@thunderid/vue 1.19.0 → 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/cjs/index.cjs +700 -85
  2. package/dist/components/account/user-profile/BaseUserProfile.d.ts.map +1 -1
  3. package/dist/components/account/verify-attribute/BaseVerifyAttribute.d.ts.map +1 -1
  4. package/dist/components/account/verify-attribute/VerifyAttribute.css.d.ts +1 -1
  5. package/dist/components/account/verify-attribute/VerifyAttribute.css.d.ts.map +1 -1
  6. package/dist/components/auth/flow/FlowExpired.css.d.ts +3 -0
  7. package/dist/components/auth/flow/FlowExpired.css.d.ts.map +1 -0
  8. package/dist/components/auth/flow/FlowExpired.d.ts +15 -0
  9. package/dist/components/auth/flow/FlowExpired.d.ts.map +1 -0
  10. package/dist/components/auth/sign-in/BaseSignIn.d.ts.map +1 -1
  11. package/dist/components/auth/sign-in/SignIn.d.ts +16 -0
  12. package/dist/components/auth/sign-in/SignIn.d.ts.map +1 -1
  13. package/dist/components/auth/sign-up/BaseSignUp.d.ts +21 -0
  14. package/dist/components/auth/sign-up/BaseSignUp.d.ts.map +1 -1
  15. package/dist/components/auth/sign-up/SignUp.d.ts.map +1 -1
  16. package/dist/components/management/UserDetails/BaseUserDetails.d.ts +15 -1
  17. package/dist/components/management/UserDetails/BaseUserDetails.d.ts.map +1 -1
  18. package/dist/components/management/UserDetails/UserDetails.d.ts +2 -1
  19. package/dist/components/management/UserDetails/UserDetails.d.ts.map +1 -1
  20. package/dist/components/management/shared/Admin.css.d.ts +2 -2
  21. package/dist/components/management/shared/Admin.css.d.ts.map +1 -1
  22. package/dist/components/primitives/Icons.d.ts +1 -0
  23. package/dist/components/primitives/Icons.d.ts.map +1 -1
  24. package/dist/composables/auth/useFlowExpiry.d.ts +28 -0
  25. package/dist/composables/auth/useFlowExpiry.d.ts.map +1 -0
  26. package/dist/composables/auth/useFlowExpiryHandling.d.ts +37 -0
  27. package/dist/composables/auth/useFlowExpiryHandling.d.ts.map +1 -0
  28. package/dist/composables/auth/useFlowExpiryRedirect.d.ts +33 -0
  29. package/dist/composables/auth/useFlowExpiryRedirect.d.ts.map +1 -0
  30. package/dist/composables/auth/useWhenUserPresent.d.ts +12 -0
  31. package/dist/composables/auth/useWhenUserPresent.d.ts.map +1 -0
  32. package/dist/index.d.ts +8 -2
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +694 -87
  35. package/dist/providers/FlowMetaProvider.d.ts.map +1 -1
  36. package/dist/providers/ThunderIDProvider.d.ts.map +1 -1
  37. package/dist/styles/injectStyles.d.ts.map +1 -1
  38. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ADMINISTRATION_FLOW_TYPE, APPLICATION_GRANT_TYPES, AccountLifecycleFlowConfigKey, AccountLifecycleFlowConfigKey as AccountLifecycleFlowConfigKey$1, AdministrationFlowConfigKey, AdministrationFlowData, AdministrationFlowError, AdministrationFlowInput, AdministrationModes, AgentQueryKeys, AgentQueryKeys as AgentQueryKeys$1, ApplicationQueryKeys, ApplicationQueryKeys as ApplicationQueryKeys$1, AttributeVerificationConstants, AttributeVerificationConstants as AttributeVerificationConstants$1, AuthFlowSelectConstants, ConsentConstants, CredentialConstants, DEFAULT_APPLICATION_GRANT_TYPES, DEFAULT_THEME, EmbeddedFlowActionVariant, EmbeddedFlowComponentType, EmbeddedFlowComponentType as EmbeddedFlowComponentType$1, EmbeddedFlowEventType, EmbeddedFlowEventType as EmbeddedFlowEventType$1, EmbeddedFlowResponseType, EmbeddedFlowTextVariant, EmbeddedFlowType, EmbeddedSelfFlowStatus, EmbeddedSelfFlowStatus as EmbeddedSelfFlowStatus$1, EmbeddedSignInFlowStatus, EmbeddedSignInFlowStatus as EmbeddedSignInFlowStatus$1, EmbeddedSignInFlowType, EmbeddedSignInFlowType as EmbeddedSignInFlowType$1, EmbeddedSignUpFlowStatus, EmbeddedSignUpFlowStatus as EmbeddedSignUpFlowStatus$1, EmbeddedSignUpFlowType, FetchHttpClient, FieldType, FieldType as FieldType$1, FlowMetaType, GroupQueryKeys, GroupQueryKeys as GroupQueryKeys$1, ORGANIZATION_UNIT_ERROR_KEYS, OrganizationUnitQueryKeys, OrganizationUnitSwitchErrorCodes, OrganizationUnitSwitchErrorCodes as OrganizationUnitSwitchErrorCodes$1, PROJECT_ERROR_KEYS, ProjectQueryKeys, RoleQueryKeys, RoleQueryKeys as RoleQueryKeys$1, SHARING_POLICY_ERROR_KEYS, SHARING_RESOURCE_COLLECTIONS, SPAUtils, SelectConstants, SharingPolicyQueryKeys, ThunderIDAPIError, ThunderIDAPIError as ThunderIDAPIError$1, ThunderIDBrowserClient, ThunderIDError, ThunderIDRuntimeError, ThunderIDRuntimeError as ThunderIDRuntimeError$1, ThunderIDWordmark, TranslationBundleConstants, UserQueryKeys, UserQueryKeys as UserQueryKeys$1, UserSelectConstants, UserTypeSelectConstants, addGroupMembers, addGroupMembers as addGroupMembers$1, addRoleAssignments, addRoleAssignments as addRoleAssignments$1, applyGatewayConfiguration, arrayBufferToBase64url, base64urlToArrayBuffer, bem, buildValidatorFromRules, compileConsentDecisions, copyTextToClipboard, createAction, createAgent, createAgent as createAgent$1, createAgentType, createApplication, createApplication as createApplication$1, createApplicationSharingPolicy, createAuthorizationDetailType, createClassObserver, createClassObserver as createClassObserver$1, createConfigurationVersion, createConnection, createCredentialConfiguration, createDesignTheme, createFlow, createFlowSharingPolicy, createGateway, createGatewaySecret, createGatewayVariable, createGroup, createGroup as createGroup$1, createGroupByPath, createHttpClientFetcher, createLayout, createMediaQueryListener, createMediaQueryListener as createMediaQueryListener$1, createNotificationTemplate, createOrganizationUnit, createOrganizationUnit as createOrganizationUnit$1, createPackageComponentLogger, createPackageLogger, createPresentationDefinition, createProject, createProject as createProject$1, createResource, createResourceInvalidator, createResourceInvalidator as createResourceInvalidator$1, createResourceOptionsLoader, createResourceServer, createRole, createRole as createRole$1, createRoleSharingPolicy, createSecret, createTheme, createUser, createUser as createUser$1, createUserByPath, createUserSharingPolicy, createUserType, createVariable, deepMerge, deleteAction, deleteAgent, deleteAgent as deleteAgent$1, deleteAgentType, deleteApplication, deleteApplication as deleteApplication$1, deleteApplicationSharingPolicy, deleteAuthorizationDetailType, deleteClientRegistration, deleteConnection, deleteCredentialConfiguration, deleteDesignTheme, deleteFlow, deleteFlowSharingPolicy, deleteGateway, deleteGatewaySecret, deleteGatewayVariable, deleteGroup, deleteGroup as deleteGroup$1, deleteImportedConfiguration, deleteLayout, deleteNotificationTemplate, deleteOrganizationUnit, deleteOrganizationUnit as deleteOrganizationUnit$1, deleteOrganizationUnitByPath, deletePresentationDefinition, deleteProject, deleteProject as deleteProject$1, deleteResource, deleteResourceServer, deleteRole, deleteRole as deleteRole$1, deleteRoleSharingPolicy, deleteSecret, deleteTranslation, deleteTranslations, deleteUser, deleteUser as deleteUser$1, deleteUserSharingPolicy, deleteUserType, deleteVariable, describeSharingPolicyScope, detectThemeMode, detectThemeMode as detectThemeMode$1, evaluateChangePasswordForm, executeAdministrationFlow, executeEmbeddedDeviceGrantFlow, executeEmbeddedSelfFlow, executeEmbeddedSignInFlow, executeEmbeddedSignUpFlow, exportConfiguration, extractEmojiFromUri, extractUserClaimsFromIdToken, fallbackResourceInvalidator, findAdministrationFlows, generateFlattenedUserProfile, get, getAccessibleOrganizationUnits, getAccountLifecycleActions, getAccountLifecycleActions as getAccountLifecycleActions$1, getAction, getActions, getActiveTheme, getAgent, getAgent as getAgent$1, getAgentGroups, getAgentGroups as getAgentGroups$1, getAgentName, getAgentName as getAgentName$1, getAgentRoles, getAgentRoles as getAgentRoles$1, getAgentType, getAgentTypes, getAgentTypes as getAgentTypes$1, getAgents, getAgents as getAgents$1, getApplication, getApplication as getApplication$1, getApplicationClientSecret, getApplicationOAuthConfig, getApplicationOverlayRules, getApplicationSharingPolicies, getApplicationSharingPolicy, getApplications, getApplications as getApplications$1, getAuthorizationDetailType, getAuthorizationDetailTypes, getClientRegistration, getConfigurationVersion, getConfigurationVersions, getConnection, getConnectionUsages, getConnections, getConnectionsMeta, getConsentElementDecision, getCredentialConfiguration, getCredentialConfigurations, getDefaultI18nBundles, getDesignTheme, getDesignThemeUsages, getDesignThemes, getFlow, getFlowMeta, getFlowOverlayRules, getFlowSharingPolicies, getFlowSharingPolicy, getFlowStepComponents, getFlowUsages, getFlowVariables, getFlowVersion, getFlowVersions, getFlows, getFlows as getFlows$1, getGateway, getGatewayAppliedConfiguration, getGatewayAppliedVersion, getGatewayConfigurationDiff, getGatewayMaster, getGatewayMasterHistory, getGatewayMasterResource, getGatewaySecret, getGatewaySecrets, getGatewayVariable, getGatewayVariables, getGateways, getGroup, getGroup as getGroup$1, getGroupMembers, getGroupMembers as getGroupMembers$1, getGroups, getGroups as getGroups$1, getGroupsByPath, getLanguages, getLayout, getLayoutUsages, getLayouts, getNotificationTemplate, getNotificationTemplates, getOrganizationUnit, getOrganizationUnit as getOrganizationUnit$1, getOrganizationUnitByPath, getOrganizationUnitChildren, getOrganizationUnitChildren as getOrganizationUnitChildren$1, getOrganizationUnitGroups, getOrganizationUnitGroups as getOrganizationUnitGroups$1, getOrganizationUnitRoles, getOrganizationUnitRoles as getOrganizationUnitRoles$1, getOrganizationUnitUsers, getOrganizationUnitUsers as getOrganizationUnitUsers$1, getOrganizationUnits, getOrganizationUnits as getOrganizationUnits$1, getPresentationDefinition, getPresentationDefinitions, getProject, getProject as getProject$1, getProjects, getProjects as getProjects$1, getResource, getResourceServer, getResourceServerPermissions, getResourceServerPermissions as getResourceServerPermissions$1, getResourceServers, getResourceServers as getResourceServers$1, getResources, getRole, getRole as getRole$1, getRoleAssignments, getRoleAssignments as getRoleAssignments$1, getRoleOverlayRules, getRoleSharingPolicies, getRoleSharingPolicy, getRoles, getRoles as getRoles$1, getSecret, getSecrets, getSelectMessages, getServerConfig, getServerConfigs, getSharingPolicyOperations, getSupportedAuthorizationDetailsType, getSupportedAuthorizationDetailsTypes, getTokenPermissions, getUser, getUser as getUser$1, getUserGroups, getUserGroups as getUserGroups$1, getUserOverlayRules, getUserSharingPolicies, getUserSharingPolicy, getUserType, getUserTypes, getUserTypes as getUserTypes$1, getUserUsages, getUsers, getUsers as getUsers$1, getUsersByPath, getUsersMe, getUsersMeMeta, getVariable, getVariables, getVendorPrefix, getVerifiedAttributes, getVerifiedAttributes as getVerifiedAttributes$1, handleWebAuthnAuthentication, hasAuthParamsInUrl, hasAuthParamsInUrl as hasAuthParamsInUrl$1, hasCalledForThisInstanceInUrl, hasPermission, hasPermission as hasPermission$1, hasUnresolvedTranslationParams, http, importConfiguration, isApplicationSubmissionValid, isEmojiUri, isEmpty, isSharingPolicyFormValid, isVerifiableAttribute, isVerifiableAttribute as isVerifiableAttribute$1, loadUntilOptionsGrow, mapCredentialUpdateError, mergeOptionsBatch, navigate, navigate as navigate$1, normalizeBorderRadius, normalizeSelectOptions, normalizeTranslations, parseKeyValuePairs, parseKeyValuePairs as parseKeyValuePairs$1, parseRedirectUris, previewCimdDocument, readCurrentProject, regenerateAgentSecret, regenerateClientSecret, regenerateClientSecret as regenerateClientSecret$1, regenerateFlowSecret, registerClient, removeGroupMembers, removeGroupMembers as removeGroupMembers$1, removeRoleAssignments, removeRoleAssignments as removeRoleAssignments$1, resolveAdministrationFlowHandles, resolveAdministrationFlowId, resolveAdministrationFlows, resolveAdministrationFlows as resolveAdministrationFlows$1, resolveChangeCredentialPolicy, resolveDesign, resolveFlowTemplateLiterals, resolveLogoUri, resolveManagedIdentityName, resolvePageSize, resolveRequestBaseUrl, resolveResourceEndpoint, resolveTranslation, resolveTranslations, restoreFlowVersion, revertGatewayConfiguration, runAccountLifecycleAction, runAccountLifecycleAction as runAccountLifecycleAction$1, runAdministrationFlow, setTranslation, setTranslations, startCase, substituteTranslationParams, supportsCredential, suspendAgent, suspendApplication, suspendUser, toAuthFlowSelectPage, toCreateApplicationRequest, toEqualityFilter, toError, toManagementErrorMessage, toSharingPolicyFormValues, toSharingPolicyRequest, toSharingPolicyUpdateRequest, toUpdateApplicationRequest, toUserSelectPage, toUserTypeSelectPage, unlockAgent, unlockUser, unsuspendAgent, unsuspendApplication, unsuspendUser, updateAction, updateAgent, updateAgentType, updateApplication, updateApplication as updateApplication$1, updateApplicationSharingPolicy, updateAuthorizationDetailType, updateClientRegistration, updateConnection, updateCredentialConfiguration, updateDesignTheme, updateFlow, updateFlowSharingPolicy, updateFlowVariables, updateGateway, updateGatewaySecret, updateGatewayVariable, updateGroup, updateLayout, updateMeCredentials, updateMeProfile, updateNotificationTemplate, updateOrganizationUnit, updateOrganizationUnit as updateOrganizationUnit$1, updateOrganizationUnitByPath, updatePresentationDefinition, updateProject, updateProject as updateProject$1, updateResource, updateResourceServer, updateRole, updateRole as updateRole$1, updateRoleSharingPolicy, updateSecret, updateServerConfig, updateUser, updateUser as updateUser$1, updateUserCredentials, updateUserSharingPolicy, updateUserType, updateVariable, withVendorCSSClassPrefix, writeCurrentProject } from "@thunderid/browser";
1
+ import { ADMINISTRATION_FLOW_TYPE, APPLICATION_GRANT_TYPES, AccountLifecycleFlowConfigKey, AccountLifecycleFlowConfigKey as AccountLifecycleFlowConfigKey$1, AdministrationFlowConfigKey, AdministrationFlowConfigKey as AdministrationFlowConfigKey$1, AdministrationFlowData, AdministrationFlowError, AdministrationFlowInput, AdministrationModes, AgentQueryKeys, AgentQueryKeys as AgentQueryKeys$1, ApplicationQueryKeys, ApplicationQueryKeys as ApplicationQueryKeys$1, AttributeVerificationConstants, AttributeVerificationConstants as AttributeVerificationConstants$1, AuthFlowSelectConstants, ConsentConstants, CredentialConstants, DEFAULT_APPLICATION_GRANT_TYPES, DEFAULT_THEME, EmbeddedFlowActionVariant, EmbeddedFlowComponentType, EmbeddedFlowComponentType as EmbeddedFlowComponentType$1, EmbeddedFlowEventType, EmbeddedFlowEventType as EmbeddedFlowEventType$1, EmbeddedFlowResponseType, EmbeddedFlowTextVariant, EmbeddedFlowType, EmbeddedSelfFlowStatus, EmbeddedSelfFlowStatus as EmbeddedSelfFlowStatus$1, EmbeddedSignInFlowStatus, EmbeddedSignInFlowStatus as EmbeddedSignInFlowStatus$1, EmbeddedSignInFlowType, EmbeddedSignInFlowType as EmbeddedSignInFlowType$1, EmbeddedSignUpFlowStatus, EmbeddedSignUpFlowStatus as EmbeddedSignUpFlowStatus$1, EmbeddedSignUpFlowType, FetchHttpClient, FieldType, FieldType as FieldType$1, FlowMetaType, GroupQueryKeys, GroupQueryKeys as GroupQueryKeys$1, ORGANIZATION_UNIT_ERROR_KEYS, OrganizationUnitQueryKeys, OrganizationUnitSwitchErrorCodes, OrganizationUnitSwitchErrorCodes as OrganizationUnitSwitchErrorCodes$1, PROJECT_ERROR_KEYS, ProjectQueryKeys, RoleQueryKeys, RoleQueryKeys as RoleQueryKeys$1, SHARING_POLICY_ERROR_KEYS, SHARING_RESOURCE_COLLECTIONS, SPAUtils, SelectConstants, SharingPolicyQueryKeys, ThunderIDAPIError, ThunderIDAPIError as ThunderIDAPIError$1, ThunderIDBrowserClient, ThunderIDError, ThunderIDRuntimeError, ThunderIDRuntimeError as ThunderIDRuntimeError$1, ThunderIDWordmark, TranslationBundleConstants, UserQueryKeys, UserQueryKeys as UserQueryKeys$1, UserSelectConstants, UserTypeSelectConstants, addGroupMembers, addGroupMembers as addGroupMembers$1, addRoleAssignments, addRoleAssignments as addRoleAssignments$1, applyGatewayConfiguration, arrayBufferToBase64url, base64urlToArrayBuffer, bem, buildValidatorFromRules, compileConsentDecisions, copyTextToClipboard, createAction, createAgent, createAgent as createAgent$1, createAgentType, createApplication, createApplication as createApplication$1, createApplicationSharingPolicy, createAuthorizationDetailType, createClassObserver, createClassObserver as createClassObserver$1, createConfigurationVersion, createConnection, createCredentialConfiguration, createDesignTheme, createFlow, createFlowSharingPolicy, createGateway, createGatewaySecret, createGatewayVariable, createGroup, createGroup as createGroup$1, createGroupByPath, createHttpClientFetcher, createLayout, createMediaQueryListener, createMediaQueryListener as createMediaQueryListener$1, createNotificationTemplate, createOrganizationUnit, createOrganizationUnit as createOrganizationUnit$1, createPackageComponentLogger, createPackageLogger, createPresentationDefinition, createProject, createProject as createProject$1, createResource, createResourceInvalidator, createResourceInvalidator as createResourceInvalidator$1, createResourceOptionsLoader, createResourceServer, createRole, createRole as createRole$1, createRoleSharingPolicy, createSecret, createTheme, createUser, createUser as createUser$1, createUserByPath, createUserSharingPolicy, createUserType, createVariable, deepMerge, deleteAction, deleteAgent, deleteAgent as deleteAgent$1, deleteAgentType, deleteApplication, deleteApplication as deleteApplication$1, deleteApplicationSharingPolicy, deleteAuthorizationDetailType, deleteClientRegistration, deleteConnection, deleteCredentialConfiguration, deleteDesignTheme, deleteFlow, deleteFlowSharingPolicy, deleteGateway, deleteGatewaySecret, deleteGatewayVariable, deleteGroup, deleteGroup as deleteGroup$1, deleteImportedConfiguration, deleteLayout, deleteNotificationTemplate, deleteOrganizationUnit, deleteOrganizationUnit as deleteOrganizationUnit$1, deleteOrganizationUnitByPath, deletePresentationDefinition, deleteProject, deleteProject as deleteProject$1, deleteResource, deleteResourceServer, deleteRole, deleteRole as deleteRole$1, deleteRoleSharingPolicy, deleteSecret, deleteTranslation, deleteTranslations, deleteUser, deleteUser as deleteUser$1, deleteUserSharingPolicy, deleteUserType, deleteVariable, describeSharingPolicyScope, detectThemeMode, detectThemeMode as detectThemeMode$1, evaluateChangePasswordForm, executeAdministrationFlow, executeEmbeddedDeviceGrantFlow, executeEmbeddedSelfFlow, executeEmbeddedSignInFlow, executeEmbeddedSignUpFlow, exportConfiguration, extractEmojiFromUri, extractUserClaimsFromIdToken, fallbackResourceInvalidator, findAdministrationFlows, generateFlattenedUserProfile, get, getAccessibleOrganizationUnits, getAccountLifecycleActions, getAccountLifecycleActions as getAccountLifecycleActions$1, getAction, getActions, getActiveTheme, getAgent, getAgent as getAgent$1, getAgentGroups, getAgentGroups as getAgentGroups$1, getAgentName, getAgentName as getAgentName$1, getAgentRoles, getAgentRoles as getAgentRoles$1, getAgentType, getAgentTypes, getAgentTypes as getAgentTypes$1, getAgents, getAgents as getAgents$1, getApplication, getApplication as getApplication$1, getApplicationClientSecret, getApplicationOAuthConfig, getApplicationOverlayRules, getApplicationSharingPolicies, getApplicationSharingPolicy, getApplications, getApplications as getApplications$1, getAuthorizationDetailType, getAuthorizationDetailTypes, getClientRegistration, getConfigurationVersion, getConfigurationVersions, getConnection, getConnectionUsages, getConnections, getConnectionsMeta, getConsentElementDecision, getCredentialConfiguration, getCredentialConfigurations, getDefaultI18nBundles, getDesignTheme, getDesignThemeUsages, getDesignThemes, getFlow, getFlowMeta, getFlowOverlayRules, getFlowSharingPolicies, getFlowSharingPolicy, getFlowStepComponents, getFlowUsages, getFlowVariables, getFlowVersion, getFlowVersions, getFlows, getFlows as getFlows$1, getGateway, getGatewayAppliedConfiguration, getGatewayAppliedVersion, getGatewayConfigurationDiff, getGatewayMaster, getGatewayMasterHistory, getGatewayMasterResource, getGatewaySecret, getGatewaySecrets, getGatewayVariable, getGatewayVariables, getGateways, getGroup, getGroup as getGroup$1, getGroupMembers, getGroupMembers as getGroupMembers$1, getGroups, getGroups as getGroups$1, getGroupsByPath, getLanguages, getLayout, getLayoutUsages, getLayouts, getNotificationTemplate, getNotificationTemplates, getOrganizationUnit, getOrganizationUnit as getOrganizationUnit$1, getOrganizationUnitByPath, getOrganizationUnitChildren, getOrganizationUnitChildren as getOrganizationUnitChildren$1, getOrganizationUnitGroups, getOrganizationUnitGroups as getOrganizationUnitGroups$1, getOrganizationUnitRoles, getOrganizationUnitRoles as getOrganizationUnitRoles$1, getOrganizationUnitUsers, getOrganizationUnitUsers as getOrganizationUnitUsers$1, getOrganizationUnits, getOrganizationUnits as getOrganizationUnits$1, getPresentationDefinition, getPresentationDefinitions, getProject, getProject as getProject$1, getProjects, getProjects as getProjects$1, getResource, getResourceServer, getResourceServerPermissions, getResourceServerPermissions as getResourceServerPermissions$1, getResourceServers, getResourceServers as getResourceServers$1, getResources, getRole, getRole as getRole$1, getRoleAssignments, getRoleAssignments as getRoleAssignments$1, getRoleOverlayRules, getRoleSharingPolicies, getRoleSharingPolicy, getRoles, getRoles as getRoles$1, getSecret, getSecrets, getSelectMessages, getServerConfig, getServerConfigs, getSharingPolicyOperations, getSupportedAuthorizationDetailsType, getSupportedAuthorizationDetailsTypes, getTokenPermissions, getUser, getUser as getUser$1, getUserGroups, getUserGroups as getUserGroups$1, getUserOverlayRules, getUserSharingPolicies, getUserSharingPolicy, getUserType, getUserTypeByHandle, getUserTypes, getUserTypes as getUserTypes$1, getUserUsages, getUsers, getUsers as getUsers$1, getUsersByPath, getUsersMe, getUsersMeMeta, getVariable, getVariables, getVendorPrefix, getVerifiedAttributes, getVerifiedAttributes as getVerifiedAttributes$1, handleWebAuthnAuthentication, hasAdminVerificationStatus, hasAuthParamsInUrl, hasAuthParamsInUrl as hasAuthParamsInUrl$1, hasCalledForThisInstanceInUrl, hasPermission, hasPermission as hasPermission$1, hasUnresolvedTranslationParams, http, importConfiguration, isAdminVerifiableAttribute, isApplicationSubmissionValid, isEmojiUri, isEmpty, isFlowExpiredError, isFlowMetaUnavailableError, isSharingPolicyFormValid, isVerifiableAttribute, isVerifiableAttribute as isVerifiableAttribute$1, loadUntilOptionsGrow, mapCredentialUpdateError, mergeOptionsBatch, navigate, navigate as navigate$1, normalizeBorderRadius, normalizeSelectOptions, normalizeTranslations, parseKeyValuePairs, parseKeyValuePairs as parseKeyValuePairs$1, parseRedirectUris, previewCimdDocument, readCurrentProject, regenerateAgentSecret, regenerateClientSecret, regenerateClientSecret as regenerateClientSecret$1, regenerateFlowSecret, registerClient, removeGroupMembers, removeGroupMembers as removeGroupMembers$1, removeRoleAssignments, removeRoleAssignments as removeRoleAssignments$1, resolveAdministrationFlowHandles, resolveAdministrationFlowHandles as resolveAdministrationFlowHandles$1, resolveAdministrationFlowId, resolveAdministrationFlows, resolveAdministrationFlows as resolveAdministrationFlows$1, resolveChangeCredentialPolicy, resolveDesign, resolveFlowTemplateLiterals, resolveLogoUri, resolveManagedIdentityName, resolvePageSize, resolveRequestBaseUrl, resolveResourceEndpoint, resolveTranslation, resolveTranslations, restoreFlowVersion, revertGatewayConfiguration, runAccountLifecycleAction, runAccountLifecycleAction as runAccountLifecycleAction$1, runAdministrationFlow, sendUserAttributeVerification, sendUserAttributeVerification as sendUserAttributeVerification$1, setTranslation, setTranslations, startCase, substituteTranslationParams, supportsCredential, suspendAgent, suspendApplication, suspendUser, toAuthFlowSelectPage, toCreateApplicationRequest, toEqualityFilter, toError, toManagementErrorMessage, toSharingPolicyFormValues, toSharingPolicyRequest, toSharingPolicyUpdateRequest, toUpdateApplicationRequest, toUserSelectPage, toUserTypeSelectPage, unlockAgent, unlockUser, unsuspendAgent, unsuspendApplication, unsuspendUser, updateAction, updateAgent, updateAgentType, updateApplication, updateApplication as updateApplication$1, updateApplicationSharingPolicy, updateAuthorizationDetailType, updateClientRegistration, updateConnection, updateCredentialConfiguration, updateDesignTheme, updateFlow, updateFlowSharingPolicy, updateFlowVariables, updateGateway, updateGatewaySecret, updateGatewayVariable, updateGroup, updateLayout, updateMeCredentials, updateMeProfile, updateNotificationTemplate, updateOrganizationUnit, updateOrganizationUnit as updateOrganizationUnit$1, updateOrganizationUnitByPath, updatePresentationDefinition, updateProject, updateProject as updateProject$1, updateResource, updateResourceServer, updateRole, updateRole as updateRole$1, updateRoleSharingPolicy, updateSecret, updateServerConfig, updateUser, updateUser as updateUser$1, updateUserCredentials, updateUserSharingPolicy, updateUserType, updateVariable, withVendorCSSClassPrefix, writeCurrentProject } from "@thunderid/browser";
2
2
  import { Comment, Fragment, Teleport, cloneVNode, computed, defineComponent, getCurrentInstance, getCurrentScope, h, inject, isVNode, nextTick, onBeforeUnmount, onMounted, onScopeDispose, onUnmounted, provide, readonly, ref, shallowReadonly, shallowRef, toValue, useId, watch } from "vue";
3
3
  import DOMPurify from "dompurify";
4
4
 
@@ -60,6 +60,26 @@ const FlowMetaProvider = defineComponent({
60
60
  const baseUrl = thunderIDContext?.baseUrl;
61
61
  const applicationId = thunderIDContext?.applicationId;
62
62
  const flowMetaUrl = resolveResourceEndpoint("flowMeta", { endpoints: thunderIDContext?.endpoints });
63
+ const loadMeta = async (language) => {
64
+ try {
65
+ if (props.fetchMeta) return await props.fetchMeta({
66
+ applicationId,
67
+ ...language ? { language } : {}
68
+ }) ?? null;
69
+ return await getFlowMeta({
70
+ baseUrl,
71
+ url: flowMetaUrl,
72
+ ...applicationId ? {
73
+ id: applicationId,
74
+ type: FlowMetaType.App
75
+ } : {},
76
+ ...language ? { language } : {}
77
+ });
78
+ } catch (err) {
79
+ if (isFlowMetaUnavailableError(err)) return null;
80
+ throw err;
81
+ }
82
+ };
63
83
  const fetchFlowMeta = async () => {
64
84
  if (!props.enabled) {
65
85
  meta.value = null;
@@ -68,14 +88,7 @@ const FlowMetaProvider = defineComponent({
68
88
  isLoading.value = true;
69
89
  error.value = null;
70
90
  try {
71
- meta.value = props.fetchMeta ? await props.fetchMeta({ applicationId }) : await getFlowMeta({
72
- baseUrl,
73
- url: flowMetaUrl,
74
- ...applicationId ? {
75
- id: applicationId,
76
- type: FlowMetaType.App
77
- } : {}
78
- });
91
+ meta.value = await loadMeta();
79
92
  } catch (err) {
80
93
  error.value = err instanceof Error ? err : new Error(String(err));
81
94
  } finally {
@@ -87,19 +100,8 @@ const FlowMetaProvider = defineComponent({
87
100
  isLoading.value = true;
88
101
  error.value = null;
89
102
  try {
90
- const result = props.fetchMeta ? await props.fetchMeta({
91
- applicationId,
92
- language
93
- }) : await getFlowMeta({
94
- baseUrl,
95
- url: flowMetaUrl,
96
- ...applicationId ? {
97
- id: applicationId,
98
- type: FlowMetaType.App
99
- } : {},
100
- language
101
- });
102
- if (result.i18n?.translations && i18nContext?.injectBundles) {
103
+ const result = await loadMeta(language);
104
+ if (result?.i18n?.translations && i18nContext?.injectBundles) {
103
105
  const flatTranslations = {};
104
106
  Object.entries(result.i18n.translations).forEach(([namespace, keys]) => {
105
107
  Object.entries(keys).forEach(([key, value]) => {
@@ -1135,6 +1137,7 @@ const ThunderIDProvider = defineComponent({
1135
1137
  }
1136
1138
  return await client.signIn(...args);
1137
1139
  } catch (error) {
1140
+ if (error instanceof ThunderIDAPIError$1) throw error;
1138
1141
  throw new ThunderIDRuntimeError$1(`Sign in failed: ${error instanceof Error ? error.message : String(JSON.stringify(error))}`, "thunderid-signIn-Error", "vue", "An error occurred while trying to sign in.");
1139
1142
  } finally {
1140
1143
  if (!isV2FlowRequest) {
@@ -2586,16 +2589,6 @@ const VERIFY_ATTRIBUTE_CSS = `
2586
2589
  gap: calc(var(--thunderid-spacing-unit) * 1.5);
2587
2590
  }
2588
2591
 
2589
- .thunderid-verify-attribute__content .thunderid-otp-field__inputs {
2590
- justify-content: flex-start;
2591
- }
2592
-
2593
- .thunderid-verify-attribute__content .thunderid-otp-field__digit {
2594
- flex: 1 1 calc(var(--thunderid-spacing-unit) * 4);
2595
- max-width: calc(var(--thunderid-spacing-unit) * 6);
2596
- min-width: 0;
2597
- }
2598
-
2599
2592
  .thunderid-verify-attribute__alert {
2600
2593
  width: 100%;
2601
2594
  }
@@ -2626,7 +2619,7 @@ var VerifyAttribute_css_default = VERIFY_ATTRIBUTE_CSS;
2626
2619
  * Section: __header | __heading | __title | __description | __actions
2627
2620
  * Forms: __form | __form-actions
2628
2621
  * Parts: __panel | __panel-header | __panel-title | __detail | __detail-label | __detail-value
2629
- * __chip-list | __chip | __confirm | __muted | __row | __avatar | __picker
2622
+ * __chip-list | __chip | __status-chip | __confirm | __muted | __row | __avatar | __picker
2630
2623
  *
2631
2624
  * Each component root also carries its own block class (for example `.thunderid-user-list`), so an
2632
2625
  * application can target a single component.
@@ -2747,6 +2740,35 @@ const ADMIN_CSS = `
2747
2740
  color: var(--thunderid-color-text-primary);
2748
2741
  }
2749
2742
 
2743
+ .thunderid-admin__status-chip {
2744
+ display: inline-flex;
2745
+ flex-shrink: 0;
2746
+ gap: calc(var(--thunderid-spacing-unit) * 0.5);
2747
+ align-items: center;
2748
+ padding: 0 var(--thunderid-spacing-unit);
2749
+ border-radius: 999px;
2750
+ font-size: 0.75rem;
2751
+ font-weight: 500;
2752
+ line-height: 22px;
2753
+ white-space: nowrap;
2754
+ }
2755
+
2756
+ .thunderid-admin__status-chip svg {
2757
+ width: 12px;
2758
+ height: 12px;
2759
+ }
2760
+
2761
+ .thunderid-admin__status-chip--success {
2762
+ color: var(--thunderid-color-success-dark, var(--thunderid-color-success-main));
2763
+ background: color-mix(in srgb, var(--thunderid-color-success-main) 12%, transparent);
2764
+ }
2765
+
2766
+ /* Amber marks an action the administrator can take. */
2767
+ .thunderid-admin__status-chip--warning {
2768
+ color: var(--thunderid-color-warning-contrastText);
2769
+ background: color-mix(in srgb, var(--thunderid-color-warning-main) 14%, transparent);
2770
+ }
2771
+
2750
2772
  .thunderid-admin__confirm {
2751
2773
  display: inline-flex;
2752
2774
  flex-wrap: wrap;
@@ -2770,6 +2792,32 @@ const ADMIN_CSS = `
2770
2792
  gap: calc(var(--thunderid-spacing-unit) * 1.5);
2771
2793
  }
2772
2794
 
2795
+ /* The value and its status on the left, the send action at the row's end. */
2796
+ .thunderid-admin__verification-row {
2797
+ display: flex;
2798
+ align-items: center;
2799
+ justify-content: space-between;
2800
+ gap: calc(var(--thunderid-spacing-unit) * 1.5);
2801
+ }
2802
+
2803
+ /* The action's padding must not make the row taller than its label. */
2804
+ .thunderid-admin__verification-row > button {
2805
+ margin-block: calc(var(--thunderid-spacing-unit) * -0.75);
2806
+ }
2807
+
2808
+ .thunderid-admin__verification-value {
2809
+ display: inline-flex;
2810
+ flex-wrap: wrap;
2811
+ align-items: center;
2812
+ gap: var(--thunderid-spacing-unit);
2813
+ min-width: 0;
2814
+ }
2815
+
2816
+ .thunderid-admin__verification-row svg {
2817
+ width: 14px;
2818
+ height: 14px;
2819
+ }
2820
+
2773
2821
  .thunderid-admin__name {
2774
2822
  display: inline-flex;
2775
2823
  align-items: center;
@@ -2973,6 +3021,56 @@ const CONSENT_CSS = `
2973
3021
  `;
2974
3022
  var Consent_css_default = CONSENT_CSS;
2975
3023
 
3024
+ //#endregion
3025
+ //#region src/components/auth/flow/FlowExpired.css.ts
3026
+ const FLOW_EXPIRED_CSS = `
3027
+ .${withVendorCSSClassPrefix("flow-expired")} {
3028
+ align-items: center;
3029
+ display: flex;
3030
+ flex-direction: column;
3031
+ gap: calc(var(--thunderid-spacing-unit) * 1.5);
3032
+ padding-block: var(--thunderid-spacing-unit);
3033
+ text-align: center;
3034
+ }
3035
+
3036
+ /* Focused only for a screen reader to read it, so it shows no ring. It is not a control. */
3037
+ .${withVendorCSSClassPrefix("flow-expired")}:focus {
3038
+ outline: none;
3039
+ }
3040
+
3041
+ .${withVendorCSSClassPrefix("flow-expired__icon")} {
3042
+ color: var(--thunderid-color-warning-main);
3043
+ display: flex;
3044
+ }
3045
+
3046
+ .${withVendorCSSClassPrefix("flow-expired__action")} {
3047
+ margin-top: var(--thunderid-spacing-unit);
3048
+ }
3049
+
3050
+ /* Keeps the text on one line, with its own spaces. */
3051
+ .${withVendorCSSClassPrefix("flow-expired__link")} {
3052
+ color: var(--thunderid-color-primary-main);
3053
+ display: inline-flex;
3054
+ font-weight: var(--thunderid-typography-fontWeight-semibold);
3055
+ margin-top: var(--thunderid-spacing-unit);
3056
+ max-width: 100%;
3057
+ text-decoration: none;
3058
+ white-space: pre;
3059
+ }
3060
+
3061
+ .${withVendorCSSClassPrefix("flow-expired__link")}:hover {
3062
+ text-decoration: underline;
3063
+ }
3064
+
3065
+ .${withVendorCSSClassPrefix("flow-expired__name")} {
3066
+ min-width: 0;
3067
+ overflow: hidden;
3068
+ text-overflow: ellipsis;
3069
+ white-space: nowrap;
3070
+ }
3071
+ `;
3072
+ var FlowExpired_css_default = FLOW_EXPIRED_CSS;
3073
+
2976
3074
  //#endregion
2977
3075
  //#region src/components/auth/sign-in/BaseSignIn.css.ts
2978
3076
  /**
@@ -4697,6 +4795,7 @@ const STYLES = [
4697
4795
  DataTable_css_default,
4698
4796
  BaseSignIn_css_default,
4699
4797
  Consent_css_default,
4798
+ FlowExpired_css_default,
4700
4799
  BaseDeviceGrant_css_default,
4701
4800
  ChangeCredential_css_default,
4702
4801
  OrganizationUnitSwitcher_css_default,
@@ -5071,6 +5170,201 @@ const useFetchAuthFlows = () => {
5071
5170
  };
5072
5171
  var useFetchAuthFlows_default = useFetchAuthFlows;
5073
5172
 
5173
+ //#endregion
5174
+ //#region src/composables/auth/useFlowExpiry.ts
5175
+ const MAX_TIMEOUT_MS = 2147483647;
5176
+ /**
5177
+ * Expiry of a flow execution, from the `expiresIn` of its latest step response or a refusal the caller
5178
+ * reports with `expireFlow()`. `expiresIn` is counted from when the response arrived, on this device's own
5179
+ * clock, so a device clock that differs from the server's does not move the expiry. The expiry is raised
5180
+ * when that time passes, and re-checked when the page becomes visible again, since a timer can fire late in
5181
+ * a background tab or after the device sleeps. It is keyed to `step`, so a new step response clears it.
5182
+ *
5183
+ * @param step - The latest step response, a new object for each response. Null or undefined before one.
5184
+ */
5185
+ const useFlowExpiry = (step) => {
5186
+ const expiredFor = shallowRef(null);
5187
+ const isFlowExpired = computed(() => expiredFor.value !== null && expiredFor.value.step === toValue(step));
5188
+ const expireFlow = () => {
5189
+ if (!isFlowExpired.value) expiredFor.value = { step: toValue(step) };
5190
+ };
5191
+ const resetFlowExpiry = () => {
5192
+ expiredFor.value = null;
5193
+ };
5194
+ watch(() => toValue(step), (current, _previous, onCleanup) => {
5195
+ const expiresIn = current?.expiresIn;
5196
+ if (expiresIn === void 0) return;
5197
+ const delay = Math.max(expiresIn * 1e3, 0);
5198
+ const deadline = Date.now() + delay;
5199
+ const checkExpiry = () => {
5200
+ if (Date.now() >= deadline) expireFlow();
5201
+ };
5202
+ const onVisibilityChange = () => {
5203
+ if (document.visibilityState === "visible") checkExpiry();
5204
+ };
5205
+ const timerId = delay <= MAX_TIMEOUT_MS ? setTimeout(checkExpiry, delay) : void 0;
5206
+ document.addEventListener("visibilitychange", onVisibilityChange);
5207
+ onCleanup(() => {
5208
+ clearTimeout(timerId);
5209
+ document.removeEventListener("visibilitychange", onVisibilityChange);
5210
+ });
5211
+ }, { immediate: true });
5212
+ return {
5213
+ expireFlow,
5214
+ expiry: computed(() => isFlowExpired.value ? expiredFor.value : null),
5215
+ isFlowExpired,
5216
+ resetFlowExpiry
5217
+ };
5218
+ };
5219
+ var useFlowExpiry_default = useFlowExpiry;
5220
+
5221
+ //#endregion
5222
+ //#region src/composables/auth/useWhenUserPresent.ts
5223
+ /** Whether the user is looking at the page now, i.e. it is visible and has focus. */
5224
+ const isUserPresent = () => document.visibilityState === "visible" && document.hasFocus();
5225
+ /**
5226
+ * Runs `action` once while `enabled`, as soon as the user is on the page: at once when they already are, or
5227
+ * when they come back to the tab or the window. Lets an expired flow wait for the user before it acts, so a
5228
+ * user who left the tab still sees what happened.
5229
+ *
5230
+ * @param enabled - Whether to run the action. A change to `true` arms it again.
5231
+ * @param action - What to run. The latest one runs.
5232
+ */
5233
+ const useWhenUserPresent = (enabled, action) => {
5234
+ watch(() => toValue(enabled), (isEnabled, _previous, onCleanup) => {
5235
+ if (!isEnabled) return;
5236
+ let done = false;
5237
+ const run = () => {
5238
+ if (!done) {
5239
+ done = true;
5240
+ action();
5241
+ }
5242
+ };
5243
+ const runOnReturn = () => {
5244
+ if (document.visibilityState === "visible") run();
5245
+ };
5246
+ const timerId = setTimeout(() => {
5247
+ if (isUserPresent()) run();
5248
+ }, 0);
5249
+ document.addEventListener("visibilitychange", runOnReturn);
5250
+ window.addEventListener("focus", runOnReturn);
5251
+ onCleanup(() => {
5252
+ clearTimeout(timerId);
5253
+ document.removeEventListener("visibilitychange", runOnReturn);
5254
+ window.removeEventListener("focus", runOnReturn);
5255
+ });
5256
+ }, { immediate: true });
5257
+ };
5258
+ var useWhenUserPresent_default = useWhenUserPresent;
5259
+
5260
+ //#endregion
5261
+ //#region src/composables/auth/useFlowExpiryRedirect.ts
5262
+ /** How long an expired flow counts down before it sends the user back to the application. */
5263
+ const FLOW_EXPIRY_REDIRECT_SECONDS = 10;
5264
+ /** How long the page waits after the redirect before it treats the redirect as not having happened. */
5265
+ const REDIRECT_FALLBACK_MS = 3e3;
5266
+ /**
5267
+ * Counts down and sends the user back to `url` once a flow expires. The countdown starts only while the user
5268
+ * is on the page, so a user who comes back to the tab still sees why they are being sent back. The state is
5269
+ * keyed to `expiry`, so a new expiry starts over.
5270
+ *
5271
+ * @param expiry - The expiry being handled, from `useFlowExpiry`, or null while the flow is active.
5272
+ * @param url - Where to send the user back to. Without it there is no redirect.
5273
+ * @returns The countdown, or null when there is nothing to count down.
5274
+ */
5275
+ const useFlowExpiryRedirect = (expiry, url) => {
5276
+ const started = shallowRef(null);
5277
+ const failedFor = shallowRef(null);
5278
+ const now = ref(Date.now());
5279
+ const isActive = computed(() => toValue(expiry) !== null && Boolean(toValue(url)));
5280
+ const isStarted = computed(() => isActive.value && started.value !== null && started.value.expiry === toValue(expiry));
5281
+ const isRedirectFailed = computed(() => isActive.value && failedFor.value !== null && failedFor.value === toValue(expiry));
5282
+ useWhenUserPresent_default(isActive, () => {
5283
+ const current = toValue(expiry);
5284
+ if (current !== null) started.value = {
5285
+ at: Date.now(),
5286
+ expiry: current
5287
+ };
5288
+ });
5289
+ watch([
5290
+ isStarted,
5291
+ started,
5292
+ () => toValue(url)
5293
+ ], (_values, _previous, onCleanup) => {
5294
+ const target = toValue(url);
5295
+ if (!isStarted.value || started.value === null || !target) return;
5296
+ const { at, expiry: startedFor } = started.value;
5297
+ const intervalId = setInterval(() => {
5298
+ now.value = Date.now();
5299
+ }, 1e3);
5300
+ let fallbackId;
5301
+ const redirectId = setTimeout(() => {
5302
+ clearInterval(intervalId);
5303
+ now.value = Date.now();
5304
+ try {
5305
+ window.location.replace(target);
5306
+ } catch {
5307
+ failedFor.value = startedFor;
5308
+ return;
5309
+ }
5310
+ fallbackId = setTimeout(() => {
5311
+ failedFor.value = startedFor;
5312
+ }, REDIRECT_FALLBACK_MS);
5313
+ }, Math.max(at + FLOW_EXPIRY_REDIRECT_SECONDS * 1e3 - Date.now(), 0));
5314
+ onCleanup(() => {
5315
+ clearInterval(intervalId);
5316
+ clearTimeout(redirectId);
5317
+ clearTimeout(fallbackId);
5318
+ });
5319
+ }, { immediate: true });
5320
+ return computed(() => {
5321
+ const target = toValue(url);
5322
+ if (!isActive.value || !target) return null;
5323
+ const remainingMs = isStarted.value && started.value ? started.value.at + FLOW_EXPIRY_REDIRECT_SECONDS * 1e3 - now.value : Infinity;
5324
+ return {
5325
+ countdownSeconds: FLOW_EXPIRY_REDIRECT_SECONDS,
5326
+ isCountingDown: isStarted.value && !isRedirectFailed.value,
5327
+ isRedirectFailed: isRedirectFailed.value,
5328
+ secondsLeft: Math.min(Math.max(Math.ceil(remainingMs / 1e3), 0), FLOW_EXPIRY_REDIRECT_SECONDS),
5329
+ url: target
5330
+ };
5331
+ });
5332
+ };
5333
+ var useFlowExpiryRedirect_default = useFlowExpiryRedirect;
5334
+
5335
+ //#endregion
5336
+ //#region src/composables/auth/useFlowExpiryHandling.ts
5337
+ /**
5338
+ * What a flow component does once its execution expires. With `afterFlowExpiredUrl`, it counts down and sends
5339
+ * the user back there. Otherwise, when it can, it starts the flow again in place once the user is on the page,
5340
+ * and says so. When it can do neither, the user is left to go back to the application.
5341
+ */
5342
+ const useFlowExpiryHandling = ({ afterFlowExpiredUrl = void 0, canRestart, restart, step = void 0 }) => {
5343
+ const { expireFlow, expiry, isFlowExpired, resetFlowExpiry } = useFlowExpiry_default(step);
5344
+ const flowExpiryRedirect = useFlowExpiryRedirect_default(expiry, () => toValue(afterFlowExpiredUrl));
5345
+ const isFlowRestarted = ref(false);
5346
+ const restartsInPlace = computed(() => !toValue(afterFlowExpiredUrl) && toValue(canRestart));
5347
+ const restartFlow = () => {
5348
+ resetFlowExpiry();
5349
+ isFlowRestarted.value = true;
5350
+ restart();
5351
+ };
5352
+ const clearFlowRestarted = () => {
5353
+ isFlowRestarted.value = false;
5354
+ };
5355
+ useWhenUserPresent_default(() => isFlowExpired.value && restartsInPlace.value, restartFlow);
5356
+ return {
5357
+ clearFlowRestarted,
5358
+ expireFlow,
5359
+ flowExpiryRedirect,
5360
+ isFlowExpired,
5361
+ isFlowRestarted,
5362
+ restartFlow,
5363
+ restartsInPlace
5364
+ };
5365
+ };
5366
+ var useFlowExpiryHandling_default = useFlowExpiryHandling;
5367
+
5074
5368
  //#endregion
5075
5369
  //#region src/composables/management/useInfiniteOptions.ts
5076
5370
  const logger$5 = createPackageComponentLogger("@thunderid/vue", "useInfiniteOptions");
@@ -5734,6 +6028,7 @@ const TriangleAlertIcon = () => icon([
5734
6028
  y2: "17"
5735
6029
  })
5736
6030
  ]);
6031
+ const SendIcon = () => icon([h("path", { d: "m22 2-7 20-4-9-9-4Z" }), h("path", { d: "M22 2 11 13" })]);
5737
6032
  const PlusIcon = () => icon([h("line", {
5738
6033
  x1: "12",
5739
6034
  x2: "12",
@@ -8945,6 +9240,113 @@ const renderInviteUserComponents = (components, formValues, touchedFields, formE
8945
9240
  key: component.id || index
8946
9241
  })).filter((v) => v !== null);
8947
9242
 
9243
+ //#endregion
9244
+ //#region src/components/auth/flow/FlowExpired.ts
9245
+ const APPLICATION_MARKER = "\0";
9246
+ const TimerIcon = () => h("svg", {
9247
+ fill: "none",
9248
+ height: "44",
9249
+ stroke: "currentColor",
9250
+ "stroke-linecap": "round",
9251
+ "stroke-linejoin": "round",
9252
+ "stroke-width": "1.6",
9253
+ viewBox: "0 0 24 24",
9254
+ width: "44",
9255
+ xmlns: "http://www.w3.org/2000/svg"
9256
+ }, [
9257
+ h("line", {
9258
+ x1: "10",
9259
+ x2: "14",
9260
+ y1: "2",
9261
+ y2: "2"
9262
+ }),
9263
+ h("line", {
9264
+ x1: "12",
9265
+ x2: "15",
9266
+ y1: "14",
9267
+ y2: "11"
9268
+ }),
9269
+ h("circle", {
9270
+ cx: "12",
9271
+ cy: "14",
9272
+ r: "8"
9273
+ })
9274
+ ]);
9275
+ /**
9276
+ * Shown in place of a sign-in or sign-up flow whose execution expired. The flow cannot continue, so it counts
9277
+ * down to the application, offers to start again, or tells the user to go back to the application.
9278
+ */
9279
+ const FlowExpired = defineComponent({
9280
+ name: "FlowExpired",
9281
+ props: {
9282
+ onRestart: {
9283
+ default: void 0,
9284
+ type: Function
9285
+ },
9286
+ redirect: {
9287
+ default: null,
9288
+ type: Object
9289
+ }
9290
+ },
9291
+ setup(props) {
9292
+ const { meta } = useFlowMeta_default();
9293
+ const { t } = useI18n_default();
9294
+ const rootRef = ref(null);
9295
+ onMounted(() => {
9296
+ rootRef.value?.focus();
9297
+ });
9298
+ return () => {
9299
+ const { redirect, onRestart } = props;
9300
+ const name = meta.value?.application?.name;
9301
+ const application = name !== void 0 && name !== "" ? name : t("flow.expired.application");
9302
+ const renderAction = () => {
9303
+ if (redirect) {
9304
+ const [before = "", after = ""] = t(redirect.isCountingDown ? "flow.expired.redirect.now" : "flow.expired.redirect.link", { application: APPLICATION_MARKER }).split(APPLICATION_MARKER);
9305
+ return h("a", {
9306
+ class: withVendorCSSClassPrefix("flow-expired__link"),
9307
+ href: redirect.url
9308
+ }, [
9309
+ before,
9310
+ h("span", { class: withVendorCSSClassPrefix("flow-expired__name") }, application),
9311
+ after
9312
+ ]);
9313
+ }
9314
+ if (onRestart) return h(Button_default, {
9315
+ class: withVendorCSSClassPrefix("flow-expired__action"),
9316
+ onClick: onRestart,
9317
+ variant: "outline"
9318
+ }, () => t("flow.expired.restart"));
9319
+ return null;
9320
+ };
9321
+ const description = () => {
9322
+ if (redirect?.isCountingDown) return t("flow.expired.redirecting", {
9323
+ application,
9324
+ seconds: redirect.secondsLeft
9325
+ });
9326
+ if (!redirect && onRestart) return t("flow.expired.restart.description");
9327
+ return t("flow.expired.return.description", { application });
9328
+ };
9329
+ return h("div", {
9330
+ class: withVendorCSSClassPrefix("flow-expired"),
9331
+ ref: rootRef,
9332
+ tabindex: -1
9333
+ }, [
9334
+ h("span", {
9335
+ "aria-hidden": "true",
9336
+ class: withVendorCSSClassPrefix("flow-expired__icon")
9337
+ }, [TimerIcon()]),
9338
+ h(Typography_default, {
9339
+ component: "h1",
9340
+ variant: "h5"
9341
+ }, () => t("flow.expired.heading")),
9342
+ h(Typography_default, { variant: "body1" }, () => description()),
9343
+ renderAction()
9344
+ ]);
9345
+ };
9346
+ }
9347
+ });
9348
+ var FlowExpired_default = FlowExpired;
9349
+
8948
9350
  //#endregion
8949
9351
  //#region src/components/auth/sign-in/BaseSignIn.ts
8950
9352
  const extractFormFields$1 = (flowComponents) => {
@@ -9009,6 +9411,10 @@ const BaseSignIn = defineComponent({
9009
9411
  default: "",
9010
9412
  type: String
9011
9413
  },
9414
+ flowExpiryRedirect: {
9415
+ default: null,
9416
+ type: Object
9417
+ },
9012
9418
  inputClassName: {
9013
9419
  default: "",
9014
9420
  type: String
@@ -9017,6 +9423,14 @@ const BaseSignIn = defineComponent({
9017
9423
  default: () => ({}),
9018
9424
  type: Object
9019
9425
  },
9426
+ isFlowExpired: {
9427
+ default: false,
9428
+ type: Boolean
9429
+ },
9430
+ isFlowRestarted: {
9431
+ default: false,
9432
+ type: Boolean
9433
+ },
9020
9434
  isLoading: {
9021
9435
  default: false,
9022
9436
  type: Boolean
@@ -9029,6 +9443,10 @@ const BaseSignIn = defineComponent({
9029
9443
  default: "",
9030
9444
  type: String
9031
9445
  },
9446
+ onRestart: {
9447
+ default: void 0,
9448
+ type: Function
9449
+ },
9032
9450
  onSubmit: {
9033
9451
  default: void 0,
9034
9452
  type: Function
@@ -9231,6 +9649,13 @@ const BaseSignIn = defineComponent({
9231
9649
  class: [containerClass, attrs.class].filter(Boolean).join(" ")
9232
9650
  }, slots["default"](renderProps));
9233
9651
  }
9652
+ if (props.isFlowExpired) return h(Card_default, {
9653
+ class: containerClass,
9654
+ variant: props.variant
9655
+ }, () => h(FlowExpired_default, {
9656
+ onRestart: props.onRestart,
9657
+ redirect: props.flowExpiryRedirect
9658
+ }));
9234
9659
  if (isLoading.value && (!props.components || props.components.length === 0)) return h(Card_default, {
9235
9660
  class: containerClass,
9236
9661
  variant: props.variant
@@ -9245,10 +9670,14 @@ const BaseSignIn = defineComponent({
9245
9670
  ...attrs,
9246
9671
  class: [containerClass, attrs.class].filter(Boolean).join(" "),
9247
9672
  variant: props.variant
9248
- }, () => [(externalError || messages.length > 0) && h("div", { class: [withVendorCSSClassPrefix("signin__messages"), props.messageClassName].filter(Boolean).join(" ") }, [externalError && h(Alert_default, { severity: "error" }, () => h(Typography_default, { variant: "body2" }, () => externalError.message)), ...messages.map((msg, index) => h(Alert_default, {
9249
- key: index,
9250
- severity: msg.type === "error" ? "error" : "info"
9251
- }, () => h(Typography_default, { variant: "body2" }, () => msg.message)))]), h("div", { class: withVendorCSSClassPrefix("signin__content") }, renderComponents())]);
9673
+ }, () => [(props.isFlowRestarted || externalError || messages.length > 0) && h("div", { class: [withVendorCSSClassPrefix("signin__messages"), props.messageClassName].filter(Boolean).join(" ") }, [
9674
+ props.isFlowRestarted && h(Alert_default, { severity: "info" }, () => h(Typography_default, { variant: "body2" }, () => t("flow.expired.restarted"))),
9675
+ externalError && h(Alert_default, { severity: "error" }, () => h(Typography_default, { variant: "body2" }, () => externalError.message)),
9676
+ ...messages.map((msg, index) => h(Alert_default, {
9677
+ key: index,
9678
+ severity: msg.type === "error" ? "error" : "info"
9679
+ }, () => h(Typography_default, { variant: "body2" }, () => msg.message)))
9680
+ ]), h("div", { class: withVendorCSSClassPrefix("signin__content") }, renderComponents())]);
9252
9681
  };
9253
9682
  }
9254
9683
  });
@@ -9388,6 +9817,10 @@ const handlePasskeyAuthentication = async (challengeData) => {
9388
9817
  const SignIn = defineComponent({
9389
9818
  name: "SignIn",
9390
9819
  props: {
9820
+ afterFlowExpiredUrl: {
9821
+ default: void 0,
9822
+ type: String
9823
+ },
9391
9824
  className: {
9392
9825
  default: "",
9393
9826
  type: String
@@ -9428,6 +9861,17 @@ const SignIn = defineComponent({
9428
9861
  executionId: null,
9429
9862
  isActive: false
9430
9863
  });
9864
+ const flowExpiryStep = shallowRef(null);
9865
+ const startedApplicationId = ref(null);
9866
+ const isStartedByAuthorizeRequest = ref(false);
9867
+ const { clearFlowRestarted, expireFlow, flowExpiryRedirect, isFlowExpired, isFlowRestarted, restartFlow, restartsInPlace } = useFlowExpiryHandling_default({
9868
+ afterFlowExpiredUrl: () => props.afterFlowExpiredUrl,
9869
+ canRestart: () => Boolean(applicationId || startedApplicationId.value) && !isStartedByAuthorizeRequest.value,
9870
+ restart: () => {
9871
+ startFlowAgain();
9872
+ },
9873
+ step: flowExpiryStep
9874
+ });
9431
9875
  let initializationAttempted = false;
9432
9876
  const oauthCodeProcessedFlag = { value: false };
9433
9877
  let passkeyProcessed = false;
@@ -9497,6 +9941,18 @@ const SignIn = defineComponent({
9497
9941
  isFlowInitialized.value = true;
9498
9942
  emit("error", flowError.value);
9499
9943
  };
9944
+ const sessionExpiredError = (translate) => new ThunderIDRuntimeError$1(translate("errors.signin.session.expired") || "Your session has expired. Please return to the application and sign in again.", "SIGN_IN_ERROR", "vue");
9945
+ /**
9946
+ * Marks the flow as expired. Unless the flow is started again in place, the error follows from the expiry,
9947
+ * set by the watcher below; once already expired, it is set again here since a new submission clears it.
9948
+ */
9949
+ const handleFlowExpired = () => {
9950
+ if (isFlowExpired.value && !restartsInPlace.value) setError(sessionExpiredError);
9951
+ else expireFlow();
9952
+ };
9953
+ watch(() => isFlowExpired.value && !restartsInPlace.value, (isExpiredForGood) => {
9954
+ if (isExpiredForGood) setError(sessionExpiredError);
9955
+ });
9500
9956
  /**
9501
9957
  * Updates challengeTokenRef immediately and persists via the provider's
9502
9958
  * StorageManager so the token survives OAuth redirects.
@@ -9513,7 +9969,9 @@ const SignIn = defineComponent({
9513
9969
  const urlParams = getUrlParams$1();
9514
9970
  oauthCodeProcessedFlag.value = false;
9515
9971
  await storeAuthId(urlParams.authId, urlParams.executionId);
9516
- const effectiveApplicationId = applicationId || urlParams.applicationId;
9972
+ const effectiveApplicationId = applicationId || urlParams.applicationId || startedApplicationId.value;
9973
+ if (effectiveApplicationId) startedApplicationId.value = effectiveApplicationId;
9974
+ if (urlParams.authId) isStartedByAuthorizeRequest.value = true;
9517
9975
  if (!urlParams.executionId && !effectiveApplicationId) {
9518
9976
  setError(new ThunderIDRuntimeError$1("Either executionId or applicationId is required for authentication", "SIGN_IN_ERROR", "vue"));
9519
9977
  return;
@@ -9545,16 +10003,31 @@ const SignIn = defineComponent({
9545
10003
  additionalData.value = normalizedAdditionalData ?? {};
9546
10004
  isFlowInitialized.value = true;
9547
10005
  isTimeoutDisabled.value = false;
10006
+ flowExpiryStep.value = { expiresIn: response.expiresIn };
9548
10007
  await storeAuthId(urlParams.authId, normalizedExecutionId);
9549
10008
  cleanupFlowUrlParams();
9550
10009
  }
9551
10010
  } catch (error) {
10011
+ if (isFlowExpiredError(error)) {
10012
+ handleFlowExpired();
10013
+ return;
10014
+ }
9552
10015
  const err = error;
9553
10016
  clearFlowState();
9554
10017
  setError(err);
9555
10018
  initializationAttempted = false;
9556
10019
  }
9557
10020
  };
10021
+ /**
10022
+ * Starts an expired flow again for the application it was started for. The expired execution is dropped
10023
+ * from the URL and storage first, so the new flow does not resume it.
10024
+ */
10025
+ const startFlowAgain = async () => {
10026
+ await clearFlowState();
10027
+ cleanupFlowUrlParams();
10028
+ flowExpiryStep.value = null;
10029
+ await initializeFlow();
10030
+ };
9558
10031
  const handleSubmit = async (payload) => {
9559
10032
  const effectiveExecutionId = payload.executionId || currentExecutionId.value;
9560
10033
  if (!effectiveExecutionId) throw new Error("No active flow ID");
@@ -9578,6 +10051,7 @@ const SignIn = defineComponent({
9578
10051
  ...isDeny ? { reason: ConsentConstants.REASON_USER_DENIED } : {}
9579
10052
  });
9580
10053
  } catch {}
10054
+ clearFlowRestarted();
9581
10055
  try {
9582
10056
  isSubmitting.value = true;
9583
10057
  flowErrorSource.value = null;
@@ -9639,12 +10113,17 @@ const SignIn = defineComponent({
9639
10113
  additionalData.value = normalizedAdditionalData ?? {};
9640
10114
  isTimeoutDisabled.value = false;
9641
10115
  isFlowInitialized.value = true;
10116
+ flowExpiryStep.value = { expiresIn: response.expiresIn };
9642
10117
  cleanupFlowUrlParams();
9643
10118
  if (response?.error) flowErrorSource.value = response;
9644
10119
  }
9645
10120
  } catch (error) {
9646
10121
  const err = error;
9647
10122
  if (err instanceof Error && flowError.value === err) throw err;
10123
+ if (isFlowExpiredError(err)) {
10124
+ handleFlowExpired();
10125
+ return;
10126
+ }
9648
10127
  clearFlowState();
9649
10128
  setError(err);
9650
10129
  } finally {
@@ -9772,7 +10251,10 @@ const SignIn = defineComponent({
9772
10251
  additionalData: additionalData.value,
9773
10252
  components: components.value,
9774
10253
  error: flowError.value,
10254
+ flowExpiryRedirect: flowExpiryRedirect.value,
9775
10255
  initialize: initializeFlow,
10256
+ isFlowExpired: isFlowExpired.value,
10257
+ isFlowRestarted: isFlowRestarted.value,
9776
10258
  isInitialized: isFlowInitialized.value,
9777
10259
  isLoading: combinedIsLoading,
9778
10260
  isTimeoutDisabled: isTimeoutDisabled.value,
@@ -9787,9 +10269,13 @@ const SignIn = defineComponent({
9787
10269
  class: props.className,
9788
10270
  components: components.value,
9789
10271
  error: flowError.value,
10272
+ flowExpiryRedirect: flowExpiryRedirect.value,
10273
+ isFlowExpired: isFlowExpired.value,
10274
+ isFlowRestarted: isFlowRestarted.value,
9790
10275
  isLoading: combinedIsLoading || !isFlowInitialized.value,
9791
10276
  isTimeoutDisabled: isTimeoutDisabled.value,
9792
10277
  onError: (err) => emit("error", err),
10278
+ onRestart: restartsInPlace.value ? restartFlow : void 0,
9793
10279
  onSubmit: handleSubmit,
9794
10280
  size: props.size,
9795
10281
  variant: props.variant
@@ -10322,6 +10808,10 @@ const extractFormFields = (components) => {
10322
10808
  const BaseSignUp = defineComponent({
10323
10809
  name: "BaseSignUp",
10324
10810
  props: {
10811
+ afterFlowExpiredUrl: {
10812
+ default: void 0,
10813
+ type: String
10814
+ },
10325
10815
  afterSignUpUrl: {
10326
10816
  default: void 0,
10327
10817
  type: String
@@ -10402,6 +10892,15 @@ const BaseSignUp = defineComponent({
10402
10892
  const isLoading = ref(false);
10403
10893
  const isFlowInitialized = ref(false);
10404
10894
  const currentFlow = ref(null);
10895
+ const restartCount = ref(0);
10896
+ const { clearFlowRestarted, expireFlow, flowExpiryRedirect, isFlowExpired, isFlowRestarted, restartFlow, restartsInPlace } = useFlowExpiryHandling_default({
10897
+ afterFlowExpiredUrl: () => props.afterFlowExpiredUrl,
10898
+ canRestart: true,
10899
+ restart: () => {
10900
+ startFlowAgain();
10901
+ },
10902
+ step: () => currentFlow.value
10903
+ });
10405
10904
  const apiErrorSource = shallowRef(null);
10406
10905
  const apiError = computed(() => apiErrorSource.value === null ? null : resolveFlowError(apiErrorSource.value, t));
10407
10906
  const flowMessages = ref([]);
@@ -10419,12 +10918,17 @@ const BaseSignUp = defineComponent({
10419
10918
  let initializationAttempted = false;
10420
10919
  let passkeyProcessed = false;
10421
10920
  const handleError = (error) => {
10921
+ if (isFlowExpiredError(error)) expireFlow();
10422
10922
  apiErrorSource.value = error;
10423
10923
  flowMessages.value = [{
10424
10924
  message: apiError.value.message,
10425
10925
  type: "error"
10426
10926
  }];
10427
10927
  };
10928
+ const reportError = (error) => {
10929
+ if (restartsInPlace.value && isFlowExpiredError(error)) return;
10930
+ props.onError?.(error);
10931
+ };
10428
10932
  watch(() => apiError.value?.message, (message) => {
10429
10933
  if (message) flowMessages.value = [{
10430
10934
  message,
@@ -10570,7 +11074,7 @@ const BaseSignUp = defineComponent({
10570
11074
  popup.close();
10571
11075
  } catch (err) {
10572
11076
  handleError(err);
10573
- props.onError?.(err);
11077
+ reportError(err);
10574
11078
  popup.close();
10575
11079
  cleanup();
10576
11080
  }
@@ -10623,6 +11127,7 @@ const BaseSignUp = defineComponent({
10623
11127
  if (!validateForm().isValid) return;
10624
11128
  }
10625
11129
  isLoading.value = true;
11130
+ clearFlowRestarted();
10626
11131
  apiErrorSource.value = null;
10627
11132
  flowMessages.value = [];
10628
11133
  try {
@@ -10664,7 +11169,7 @@ const BaseSignUp = defineComponent({
10664
11169
  }
10665
11170
  } catch (err) {
10666
11171
  handleError(err);
10667
- props.onError?.(err);
11172
+ reportError(err);
10668
11173
  } finally {
10669
11174
  isLoading.value = false;
10670
11175
  }
@@ -10709,10 +11214,14 @@ const BaseSignUp = defineComponent({
10709
11214
  isActive: false
10710
11215
  };
10711
11216
  handleError(error);
10712
- props.onError?.(error);
11217
+ reportError(error);
10713
11218
  }
10714
11219
  }, { deep: true });
10715
- watch(() => [props.isInitialized, isFlowInitialized.value], ([initialized, flowInit]) => {
11220
+ watch(() => [
11221
+ props.isInitialized,
11222
+ isFlowInitialized.value,
11223
+ restartCount.value
11224
+ ], ([initialized, flowInit]) => {
10716
11225
  if (typeof window !== "undefined") {
10717
11226
  const urlParams = new URL(window.location.href).searchParams;
10718
11227
  if (urlParams.get("code") || urlParams.get("state")) return;
@@ -10738,13 +11247,30 @@ const BaseSignUp = defineComponent({
10738
11247
  }
10739
11248
  } catch (err) {
10740
11249
  handleError(err);
10741
- props.onError?.(err);
11250
+ reportError(err);
10742
11251
  } finally {
10743
11252
  isLoading.value = false;
10744
11253
  }
10745
11254
  })();
10746
11255
  }
10747
11256
  }, { immediate: true });
11257
+ /**
11258
+ * Starts an expired flow again: clears it, drops the expired execution from the URL so it is not resumed,
11259
+ * and runs the initialization once more.
11260
+ */
11261
+ const startFlowAgain = () => {
11262
+ currentFlow.value = null;
11263
+ apiErrorSource.value = null;
11264
+ flowMessages.value = [];
11265
+ if (typeof window !== "undefined" && window.location?.href) {
11266
+ const url = new URL(window.location.href);
11267
+ url.searchParams.delete("executionId");
11268
+ window.history.replaceState({}, "", url.toString());
11269
+ }
11270
+ initializationAttempted = false;
11271
+ isFlowInitialized.value = false;
11272
+ restartCount.value += 1;
11273
+ };
10748
11274
  return () => {
10749
11275
  const containerClass = [
10750
11276
  withVendorCSSClassPrefix("signup"),
@@ -10758,8 +11284,11 @@ const BaseSignUp = defineComponent({
10758
11284
  components: currentFlow.value?.data?.components || [],
10759
11285
  error: apiError.value,
10760
11286
  fieldErrors: formErrors.value,
11287
+ flowExpiryRedirect: flowExpiryRedirect.value,
10761
11288
  handleInputChange,
10762
11289
  handleSubmit,
11290
+ isFlowExpired: isFlowExpired.value,
11291
+ isFlowRestarted: isFlowRestarted.value,
10763
11292
  isLoading: isLoading.value,
10764
11293
  isValid: isFormValid.value,
10765
11294
  messages: flowMessages.value,
@@ -10777,6 +11306,13 @@ const BaseSignUp = defineComponent({
10777
11306
  };
10778
11307
  return h("div", { class: containerClass }, slots["default"](renderProps));
10779
11308
  }
11309
+ if (isFlowExpired.value) return h(Card_default, {
11310
+ class: containerClass,
11311
+ variant: props.variant
11312
+ }, () => h(FlowExpired_default, {
11313
+ onRestart: restartsInPlace.value ? restartFlow : void 0,
11314
+ redirect: flowExpiryRedirect.value
11315
+ }));
10780
11316
  if (!isFlowInitialized.value && isLoading.value) return h(Card_default, {
10781
11317
  class: containerClass,
10782
11318
  variant: props.variant
@@ -10807,6 +11343,7 @@ const BaseSignUp = defineComponent({
10807
11343
  style: "margin-top: 0.25rem",
10808
11344
  variant: "body1"
10809
11345
  }, () => subtitle) : null]) : null,
11346
+ isFlowRestarted.value ? h("div", { style: "padding: 0 1rem" }, h(Alert_default, { severity: "info" }, () => t("flow.expired.restarted"))) : null,
10810
11347
  props.error ? h("div", { style: "padding: 0 1rem" }, h(Alert_default, { variant: "error" }, () => props.error.message)) : null,
10811
11348
  flowMessages.value.length > 0 ? h("div", { style: "padding: 0 1rem" }, flowMessages.value.map((msg, i) => h(Alert_default, {
10812
11349
  key: i,
@@ -10827,6 +11364,10 @@ var BaseSignUp_default = BaseSignUp;
10827
11364
  const SignUp = defineComponent({
10828
11365
  name: "SignUp",
10829
11366
  props: {
11367
+ afterFlowExpiredUrl: {
11368
+ default: void 0,
11369
+ type: String
11370
+ },
10830
11371
  afterSignUpUrl: {
10831
11372
  default: void 0,
10832
11373
  type: String
@@ -10903,6 +11444,7 @@ const SignUp = defineComponent({
10903
11444
  if (props.shouldRedirectAfterSignUp && response?.type === EmbeddedFlowResponseType.Redirection && response?.data?.redirectURL && !response.data.redirectURL.includes("oauth") && !response.data.redirectURL.includes("auth")) window.location.href = response.data.redirectURL;
10904
11445
  };
10905
11446
  return () => h(BaseSignUp_default, {
11447
+ afterFlowExpiredUrl: props.afterFlowExpiredUrl,
10906
11448
  afterSignUpUrl: props.afterSignUpUrl,
10907
11449
  buttonClassName: props.buttonClassName,
10908
11450
  className: props.className,
@@ -11162,7 +11704,6 @@ const AVATAR_GRADIENTS$1 = [
11162
11704
  "linear-gradient(135deg, #f97316 0%, #ec4899 100%)"
11163
11705
  ];
11164
11706
  const isVerificationType = (type) => !!type && AttributeVerificationConstants$1.VERIFIABLE_ATTRIBUTE_TYPES.includes(type.toLowerCase());
11165
- const isVerifiedAfterSave = (type) => !!type && AttributeVerificationConstants$1.VERIFY_AFTER_SAVE_ATTRIBUTE_TYPES.includes(type.toLowerCase());
11166
11707
  const storedValueOf = (user, name) => {
11167
11708
  return (user?.["attributes"])?.[name] ?? user?.[name];
11168
11709
  };
@@ -11306,26 +11847,8 @@ const BaseUserProfile = defineComponent({
11306
11847
  focusBeforeDialog = null;
11307
11848
  }
11308
11849
  });
11309
- const pendingVerification = ref(null);
11310
11850
  const storedUser = () => props.flattenedProfile ?? props.profile ?? null;
11311
11851
  const reportedVerifiedAttributes = () => getVerifiedAttributes$1(props.profile ?? props.flattenedProfile);
11312
- watch(() => [
11313
- props.profile,
11314
- props.flattenedProfile,
11315
- props.error
11316
- ], () => {
11317
- const pending = pendingVerification.value;
11318
- if (!pending) return;
11319
- if (props.error) {
11320
- pendingVerification.value = null;
11321
- return;
11322
- }
11323
- const storedValue = storedValueOf(storedUser(), pending.name);
11324
- if (storedValue === pending.previousValue) return;
11325
- const verified = reportedVerifiedAttributes();
11326
- if (verified && typeof storedValue === "string" && storedValue.trim() !== "" && !verified[pending.name]) openVerification(pending.name);
11327
- pendingVerification.value = null;
11328
- });
11329
11852
  function shouldShowField(fieldName, isSchemaBased = false) {
11330
11853
  if (!isSchemaBased && FIELDS_TO_SKIP.includes(fieldName)) return false;
11331
11854
  if (props.hideFields && props.hideFields.length > 0 && props.hideFields.includes(fieldName)) return false;
@@ -11403,13 +11926,7 @@ const BaseUserProfile = defineComponent({
11403
11926
  ...fieldErrors.value,
11404
11927
  [fieldName]: ""
11405
11928
  };
11406
- const submitVal = typeof value === "string" ? strVal : value;
11407
- const payload = buildPatchValue(fieldName, submitVal, schema.schemaId, schema.multiValued);
11408
- const previousValue = storedValueOf(storedUser(), fieldName);
11409
- pendingVerification.value = slots["verification"] && isVerifiedAfterSave(schema.type) && isVerifiableAttribute$1(props.userSchema, fieldName) && typeof submitVal === "string" && submitVal !== "" && submitVal !== previousValue ? {
11410
- name: fieldName,
11411
- previousValue
11412
- } : null;
11929
+ const payload = buildPatchValue(fieldName, typeof value === "string" ? strVal : value, schema.schemaId, schema.multiValued);
11413
11930
  try {
11414
11931
  await props.onUpdate(payload);
11415
11932
  editingFields.value = {
@@ -11417,9 +11934,7 @@ const BaseUserProfile = defineComponent({
11417
11934
  [fieldName]: false
11418
11935
  };
11419
11936
  clearEditedValue(fieldName);
11420
- } catch {
11421
- pendingVerification.value = null;
11422
- }
11937
+ } catch {}
11423
11938
  }
11424
11939
  function renderVerificationStatus(name) {
11425
11940
  const verification = reportedVerifiedAttributes()?.[name];
@@ -12117,20 +12632,21 @@ const BaseVerifyAttribute = defineComponent({
12117
12632
  t,
12118
12633
  variant: props.variant
12119
12634
  }).map((node) => withFlowTestIds(node, flowIds))) : null,
12120
- props.onCancel || showDone ? h("div", { class: px("verify-attribute__actions") }, [showDone ? h(Button_default, {
12121
- color: "primary",
12122
- "data-testid": "thunderid-action-verificationDone",
12123
- onClick: () => props.onDone?.(),
12124
- size: "small",
12125
- variant: "solid"
12126
- }, () => t("user.verification.buttons.done.text")) : null, props.onCancel ? h(Button_default, {
12635
+ props.onCancel || showDone ? h("div", { class: px("verify-attribute__actions") }, [props.onCancel ? h(Button_default, {
12127
12636
  color: "secondary",
12128
12637
  "data-testid": "thunderid-action-verificationCancel",
12129
12638
  disabled: isSubmitting.value,
12130
12639
  onClick: () => props.onCancel?.(),
12131
12640
  size: "small",
12132
- variant: "outline"
12133
- }, () => state.value === "active" || state.value === "loading" ? t("user.verification.buttons.cancel.text") : t("user.verification.buttons.close.text")) : null]) : null
12641
+ type: "button",
12642
+ variant: "text"
12643
+ }, () => state.value === "active" || state.value === "loading" ? t("user.verification.buttons.cancel.text") : t("user.verification.buttons.close.text")) : null, showDone ? h(Button_default, {
12644
+ color: "primary",
12645
+ "data-testid": "thunderid-action-verificationDone",
12646
+ onClick: () => props.onDone?.(),
12647
+ size: "small",
12648
+ variant: "solid"
12649
+ }, () => t("user.verification.buttons.done.text")) : null]) : null
12134
12650
  ]);
12135
12651
  };
12136
12652
  }
@@ -16023,6 +16539,10 @@ const BaseUserDetails = defineComponent({
16023
16539
  default: false,
16024
16540
  type: Boolean
16025
16541
  },
16542
+ isSendingVerification: {
16543
+ default: false,
16544
+ type: Boolean
16545
+ },
16026
16546
  isUpdating: {
16027
16547
  default: false,
16028
16548
  type: Boolean
@@ -16039,6 +16559,10 @@ const BaseUserDetails = defineComponent({
16039
16559
  default: void 0,
16040
16560
  type: Function
16041
16561
  },
16562
+ onSendVerification: {
16563
+ default: void 0,
16564
+ type: Function
16565
+ },
16042
16566
  onUpdate: {
16043
16567
  default: void 0,
16044
16568
  type: Function
@@ -16047,17 +16571,29 @@ const BaseUserDetails = defineComponent({
16047
16571
  default: void 0,
16048
16572
  type: Object
16049
16573
  },
16574
+ sentVerification: {
16575
+ default: null,
16576
+ type: Object
16577
+ },
16050
16578
  user: {
16051
16579
  default: void 0,
16052
16580
  type: Object
16581
+ },
16582
+ userSchema: {
16583
+ default: void 0,
16584
+ type: Object
16053
16585
  }
16054
16586
  },
16055
16587
  setup(props, { slots }) {
16056
16588
  const t = useAdminTranslation_default(() => props.preferences);
16057
16589
  const uid = useId();
16058
16590
  const draft = ref(null);
16591
+ const sendingAttribute = ref(null);
16059
16592
  return () => {
16060
16593
  const { user } = props;
16594
+ const visibleAttributeNames = Object.keys(user?.attributes ?? {}).filter((name) => !props.hiddenAttributes.includes(name));
16595
+ const verifiableAttributes = visibleAttributeNames.filter((name) => isAdminVerifiableAttribute(user, name, props.userSchema));
16596
+ const verificationStatusAttributes = visibleAttributeNames.filter((name) => hasAdminVerificationStatus(user, name, props.userSchema));
16061
16597
  if (slots["default"]) {
16062
16598
  const isWritable = Boolean(user) && !user?.isReadOnly;
16063
16599
  const renderProps = {
@@ -16068,12 +16604,20 @@ const BaseUserDetails = defineComponent({
16068
16604
  isDeleting: props.isDeleting,
16069
16605
  isLoading: props.isLoading,
16070
16606
  isRunningLifecycleAction: props.isRunningLifecycleAction,
16607
+ isSendingVerification: props.isSendingVerification,
16071
16608
  isUpdating: props.isUpdating,
16072
16609
  lifecycleActions: props.onLifecycleAction && user ? props.lifecycleActions : [],
16073
16610
  onDelete: isWritable ? props.onDelete : void 0,
16074
16611
  onLifecycleAction: user ? props.onLifecycleAction : void 0,
16612
+ onSendVerification: isWritable && !props.isUpdating && props.onSendVerification ? (name) => {
16613
+ if (verifiableAttributes.includes(name) && !user?.verifiedAttributes?.[name]) props.onSendVerification?.(name);
16614
+ } : void 0,
16075
16615
  onUpdate: isWritable ? props.onUpdate : void 0,
16076
- user
16616
+ sentVerification: props.sentVerification,
16617
+ user,
16618
+ verifiableAttributes,
16619
+ verificationStatusAttributes,
16620
+ verifiedAttributes: user?.verifiedAttributes
16077
16621
  };
16078
16622
  return h("div", { class: props.className }, slots["default"](renderProps));
16079
16623
  }
@@ -16095,6 +16639,26 @@ const BaseUserDetails = defineComponent({
16095
16639
  const attributes = Object.entries(user.attributes ?? {}).filter(([name]) => !props.hiddenAttributes.includes(name));
16096
16640
  const editableAttributes = attributes.filter((entry) => typeof entry[1] === "string");
16097
16641
  const canEdit = Boolean(props.onUpdate) && !user.isReadOnly && editableAttributes.length > 0;
16642
+ const renderVerificationStatus = (name) => {
16643
+ const isVerified = user.verifiedAttributes?.[name] !== void 0;
16644
+ return h("span", { class: [cls$10("status-chip"), isVerified ? cls$10("status-chip--success") : cls$10("status-chip--warning")] }, [h(isVerified ? CircleCheckIcon : CircleAlertIcon, { "aria-hidden": "true" }), isVerified ? t("admin.users.details.verification.status.verified") : t("admin.users.details.verification.status.unverified")]);
16645
+ };
16646
+ const renderAttributeValue = (name, value) => {
16647
+ if (!verificationStatusAttributes.includes(name)) return stringify(value);
16648
+ const canSend = props.onSendVerification && !user.isReadOnly && verifiableAttributes.includes(name) && user.verifiedAttributes?.[name] === void 0;
16649
+ return h("span", { class: cls$10("verification-row") }, [h("span", { class: cls$10("verification-value") }, [h("span", stringify(value)), renderVerificationStatus(name)]), canSend ? h(Button_default, {
16650
+ "aria-label": `${t("admin.users.details.verification.verify")} ${name}`,
16651
+ disabled: props.isSendingVerification || props.isUpdating,
16652
+ loading: props.isSendingVerification && sendingAttribute.value === name,
16653
+ onClick: () => {
16654
+ sendingAttribute.value = name;
16655
+ props.onSendVerification?.(name);
16656
+ },
16657
+ size: "small",
16658
+ startIcon: h(SendIcon, { "aria-hidden": "true" }),
16659
+ variant: "text"
16660
+ }, { default: () => t("admin.users.details.verification.verify") }) : null]);
16661
+ };
16098
16662
  const renderAttributes = () => {
16099
16663
  if (draft.value) {
16100
16664
  const current = draft.value;
@@ -16134,7 +16698,7 @@ const BaseUserDetails = defineComponent({
16134
16698
  }
16135
16699
  if (attributes.length > 0) return h(DetailList_default, { items: attributes.map(([name, value]) => ({
16136
16700
  label: name,
16137
- value: stringify(value)
16701
+ value: renderAttributeValue(name, value)
16138
16702
  })) });
16139
16703
  return h("span", { class: cls$10("muted") }, t("admin.users.details.no_attributes"));
16140
16704
  };
@@ -16163,6 +16727,7 @@ const BaseUserDetails = defineComponent({
16163
16727
  ],
16164
16728
  default: () => [
16165
16729
  props.error ? h(Alert_default, { severity: "error" }, { default: () => [props.error] }) : null,
16730
+ props.sentVerification && !props.error ? h(Alert_default, { severity: props.sentVerification.emailSent === false ? "error" : "success" }, { default: () => [props.sentVerification?.emailSent === false ? t("admin.users.details.verification.error") : props.sentVerification?.maskedDestination ? t("admin.users.details.verification.sent", { destination: props.sentVerification.maskedDestination }) : t("admin.users.details.verification.sent_generic")] }) : null,
16166
16731
  h("div", { class: cls$10("row") }, [
16167
16732
  h(AdminAvatar_default, {
16168
16733
  name: displayName,
@@ -16252,7 +16817,8 @@ var useAccountLifecycle_default = useAccountLifecycle;
16252
16817
  //#region src/components/management/UserDetails/UserDetails.ts
16253
16818
  /**
16254
16819
  * Shows a user and the groups they belong to, and optionally lets the signed-in user edit or delete
16255
- * them. Emits `deleted` after the user has been deleted.
16820
+ * them, run account lifecycle actions or send them a link to verify their email. Emits `deleted` after
16821
+ * the user has been deleted.
16256
16822
  *
16257
16823
  * Slots: `actions`, rendered next to the user's name.
16258
16824
  *
@@ -16268,6 +16834,10 @@ const UserDetails = defineComponent({
16268
16834
  default: void 0,
16269
16835
  type: String
16270
16836
  },
16837
+ attributeVerification: {
16838
+ default: false,
16839
+ type: Boolean
16840
+ },
16271
16841
  className: {
16272
16842
  default: "",
16273
16843
  type: String
@@ -16307,6 +16877,13 @@ const UserDetails = defineComponent({
16307
16877
  fetcher,
16308
16878
  userId: props.userId
16309
16879
  }), { enabled: hasUserId });
16880
+ const userTypesEndpoint = useManagementEndpoint_default("userTypes");
16881
+ const typeHandle = () => user.data.value?.id === props.userId ? user.data.value.type : void 0;
16882
+ const userType = useResourceQuery_default(() => [UserQueryKeys$1.USER_TYPES, { handle: typeHandle() }], (fetcher) => getUserTypeByHandle({
16883
+ ...userTypesEndpoint,
16884
+ fetcher,
16885
+ handle: typeHandle()
16886
+ }), { enabled: () => props.attributeVerification && Boolean(typeHandle() && user.data.value?.verifiedAttributes) });
16310
16887
  const groups = useResourceQuery_default(() => [
16311
16888
  GroupQueryKeys$1.MEMBERSHIPS,
16312
16889
  "user",
@@ -16330,6 +16907,20 @@ const UserDetails = defineComponent({
16330
16907
  payload: data,
16331
16908
  userId
16332
16909
  }), ({ userId }) => [[UserQueryKeys$1.USER, userId], [UserQueryKeys$1.USERS]]);
16910
+ const { baseUrl } = useThunderID_default();
16911
+ const verificationFlow = useResourceQuery_default(() => ["administration-flows", "attribute-verification"], (fetcher) => resolveAdministrationFlowHandles$1({
16912
+ baseUrl,
16913
+ fetcher
16914
+ }, [AdministrationFlowConfigKey$1.ADMIN_ATTRIBUTE_VERIFICATION]), { enabled: () => props.attributeVerification });
16915
+ const verificationHandle = () => verificationFlow.data.value?.[AdministrationFlowConfigKey$1.ADMIN_ATTRIBUTE_VERIFICATION];
16916
+ const verificationTarget = shallowRef(null);
16917
+ const verification = useResourceMutation_default(({ attribute, userId }, fetcher) => sendUserAttributeVerification$1({
16918
+ ...endpoint,
16919
+ attribute,
16920
+ fetcher,
16921
+ handle: verificationHandle(),
16922
+ userId
16923
+ }), ({ userId }) => [[UserQueryKeys$1.USER, userId]]);
16333
16924
  const lifecycle = useAccountLifecycle_default({
16334
16925
  enabled: () => props.lifecycleActions,
16335
16926
  invalidatedKeys: () => [[UserQueryKeys$1.USER, props.userId], [UserQueryKeys$1.USERS]],
@@ -16339,18 +16930,32 @@ const UserDetails = defineComponent({
16339
16930
  });
16340
16931
  return () => {
16341
16932
  const current = user.data.value;
16933
+ const userSchema = userType.data.value?.handle === typeHandle() ? userType.data.value?.schema : void 0;
16934
+ const target = verificationTarget.value;
16935
+ const showVerificationResult = props.attributeVerification && target?.userId === props.userId && current?.attributes?.[target.attribute] === target.value;
16342
16936
  return h(BaseUserDetails_default, {
16343
16937
  className: props.className,
16344
- error: toManagementErrorMessage(t, user.error.value, "admin.users.details.error") ?? toManagementErrorMessage(t, deletion.error.value, "admin.users.details.delete.error") ?? toManagementErrorMessage(t, update.error.value, "admin.users.details.edit.error") ?? toManagementErrorMessage(t, lifecycle.error.value, "admin.common.lifecycle.error") ?? toManagementErrorMessage(t, lifecycle.loadError.value, "admin.common.lifecycle.load_error"),
16938
+ error: toManagementErrorMessage(t, user.error.value, "admin.users.details.error") ?? toManagementErrorMessage(t, deletion.error.value, "admin.users.details.delete.error") ?? toManagementErrorMessage(t, update.error.value, "admin.users.details.edit.error") ?? toManagementErrorMessage(t, showVerificationResult ? verification.error.value : null, "admin.users.details.verification.error") ?? toManagementErrorMessage(t, lifecycle.error.value, "admin.common.lifecycle.error") ?? toManagementErrorMessage(t, lifecycle.loadError.value, "admin.common.lifecycle.load_error") ?? toManagementErrorMessage(t, verificationFlow.error.value ?? userType.error.value, "admin.users.details.verification.load_error"),
16345
16939
  groups: groups.data.value?.groups ?? [],
16346
16940
  hiddenAttributes: props.hiddenAttributes,
16347
16941
  isDeleting: deletion.isLoading.value,
16348
16942
  isLoading: user.isLoading.value,
16349
16943
  isRunningLifecycleAction: lifecycle.isRunning.value,
16944
+ isSendingVerification: verification.isLoading.value,
16350
16945
  isUpdating: update.isLoading.value,
16351
16946
  lifecycleActions: lifecycle.actions.value,
16352
16947
  onDelete: props.deletable ? () => void deletion.mutate(props.userId) : void 0,
16353
16948
  onLifecycleAction: props.lifecycleActions ? lifecycle.run : void 0,
16949
+ onSendVerification: props.attributeVerification && verificationHandle() && userSchema && current?.id === props.userId ? (attribute) => {
16950
+ const target$1 = {
16951
+ attribute,
16952
+ userId: props.userId,
16953
+ value: current?.attributes?.[attribute]
16954
+ };
16955
+ verificationTarget.value = target$1;
16956
+ verification.reset();
16957
+ verification.mutate(target$1);
16958
+ } : void 0,
16354
16959
  onUpdate: props.editable && current ? (attributes) => void update.mutate({
16355
16960
  data: {
16356
16961
  attributes,
@@ -16360,7 +16965,9 @@ const UserDetails = defineComponent({
16360
16965
  userId: props.userId
16361
16966
  }) : void 0,
16362
16967
  preferences: props.preferences,
16363
- user: current
16968
+ sentVerification: showVerificationResult ? verification.data.value ?? null : null,
16969
+ user: current,
16970
+ userSchema
16364
16971
  }, { ...slots });
16365
16972
  };
16366
16973
  }
@@ -21613,4 +22220,4 @@ const createCallbackRoute = (options = {}) => {
21613
22220
  };
21614
22221
 
21615
22222
  //#endregion
21616
- export { ADMINISTRATION_FLOW_TYPE, AcceptInvite_default as AcceptInvite, AccountLifecycleFlowConfigKey, AdministrationFlowConfigKey, AdministrationFlowData, AdministrationFlowError, AdministrationFlowInput, AdministrationModes, AgentCreate_default as AgentCreate, AgentDetails_default as AgentDetails, AgentList_default as AgentList, AgentQueryKeys, Alert_default as Alert, ApplicationCreate_default as ApplicationCreate, ApplicationDetails_default as ApplicationDetails, ApplicationList_default as ApplicationList, ApplicationQueryKeys, ArrowLeftRightIcon, AttributeVerificationConstants, Attribution_default as Attribution, AuthFlowSelect_default as AuthFlowSelect, BaseAcceptInvite_default as BaseAcceptInvite, BaseAgentCreate_default as BaseAgentCreate, BaseAgentDetails_default as BaseAgentDetails, BaseAgentList_default as BaseAgentList, BaseApplicationCreate_default as BaseApplicationCreate, BaseApplicationDetails_default as BaseApplicationDetails, BaseApplicationList_default as BaseApplicationList, BaseAuthFlowSelect_default as BaseAuthFlowSelect, BaseChangeCredential_default as BaseChangeCredential, BaseDeviceGrant_default as BaseDeviceGrant, BaseGroupCreate_default as BaseGroupCreate, BaseGroupDetails_default as BaseGroupDetails, BaseGroupList_default as BaseGroupList, BaseGroupMembers_default as BaseGroupMembers, BaseInviteUser_default as BaseInviteUser, BaseLanguageSwitcher_default as BaseLanguageSwitcher, BaseOrganizationUnitCreate_default as BaseOrganizationUnitCreate, BaseOrganizationUnitDetails_default as BaseOrganizationUnitDetails, BaseOrganizationUnitList_default as BaseOrganizationUnitList, BaseOrganizationUnitSwitcher_default as BaseOrganizationUnitSwitcher, BaseProjectCreate_default as BaseProjectCreate, BaseProjectDetails_default as BaseProjectDetails, BaseProjectList_default as BaseProjectList, BaseProjectSwitcher_default as BaseProjectSwitcher, BaseRoleAssignments_default as BaseRoleAssignments, BaseRoleCreate_default as BaseRoleCreate, BaseRoleDetails_default as BaseRoleDetails, BaseRoleList_default as BaseRoleList, BaseRolePermissions_default as BaseRolePermissions, BaseSharingPolicies_default as BaseSharingPolicies, BaseSignIn_default as BaseSignIn, BaseSignInButton_default as BaseSignInButton, BaseSignOutButton_default as BaseSignOutButton, BaseSignUp_default as BaseSignUp, BaseSignUpButton_default as BaseSignUpButton, BaseUserCreate_default as BaseUserCreate, BaseUserDetails_default as BaseUserDetails, BaseUserDropdown_default as BaseUserDropdown, BaseUserList_default as BaseUserList, BaseUserProfile_default as BaseUserProfile, BaseUserSelect_default as BaseUserSelect, BaseUserTypeSelect_default as BaseUserTypeSelect, BaseVerifyAttribute_default as BaseVerifyAttribute, BuildingIcon, Button_default as Button, Callback_default as Callback, Card_default as Card, ChangeCredential_default as ChangeCredential, CheckIcon, Checkbox_default as Checkbox, ChevronDownIcon, CircleAlertIcon, CircleCheckIcon, Consent_default as Consent, CopyableText_default as CopyableText, DEFAULT_USER_CREATE_FIELDS, DataTable_default as DataTable, DatePicker_default as DatePicker, DeviceGrant_default as DeviceGrant, Divider_default as Divider, EmbeddedFlowActionVariant, EmbeddedFlowComponentType, EmbeddedFlowEventType, EmbeddedFlowTextVariant, EmbeddedSelfFlowStatus, EmbeddedSignInFlowStatus, EmbeddedSignInFlowType, EmbeddedSignUpFlowStatus, EmbeddedSignUpFlowType, EyeIcon, EyeOffIcon, FLOW_KEY, FLOW_META_KEY, FacebookButton_default as FacebookButton, FieldFactory_default as FieldFactory, FieldType, FlowMetaProvider_default as FlowMetaProvider, FlowProvider_default as FlowProvider, GitHubButton_default as GitHubButton, GlobeIcon, GoogleButton_default as GoogleButton, GroupCreate_default as GroupCreate, GroupDetails_default as GroupDetails, GroupList_default as GroupList, GroupMembers_default as GroupMembers, GroupQueryKeys, I18N_KEY, I18nProvider_default as I18nProvider, InfoIcon, InviteUser_default as InviteUser, KeyValueList_default as KeyValueList, LanguageSwitcher_default as LanguageSwitcher, Loading_default as Loading, LogOutIcon, Logo_default as Logo, MicrosoftButton_default as MicrosoftButton, OrganizationUnitCreate_default as OrganizationUnitCreate, OrganizationUnitDetails_default as OrganizationUnitDetails, OrganizationUnitList_default as OrganizationUnitList, OrganizationUnitSwitchErrorCodes, OrganizationUnitSwitcher_default as OrganizationUnitSwitcher, OtpField_default as OtpField, PasswordField_default as PasswordField, PencilIcon, PlusIcon, ProjectCreate_default as ProjectCreate, ProjectDetails_default as ProjectDetails, ProjectList_default as ProjectList, ProjectSwitcher_default as ProjectSwitcher, RoleAssignments_default as RoleAssignments, RoleCreate_default as RoleCreate, RoleDetails_default as RoleDetails, RoleList_default as RoleList, RolePermissions_default as RolePermissions, RoleQueryKeys, Select_default as Select, SharingPolicies_default as SharingPolicies, SignIn_default as SignIn, SignInButton_default as SignInButton, SignOutButton_default as SignOutButton, SignUp_default as SignUp, SignUpButton_default as SignUpButton, SignedIn_default as SignedIn, SignedOut_default as SignedOut, Spinner_default as Spinner, THEME_KEY, THUNDERID_KEY, TextField_default as TextField, ThemeProvider_default as ThemeProvider, ThunderIDAPIError, ThunderIDPlugin_default as ThunderIDPlugin, ThunderIDProvider_default as ThunderIDProvider, ThunderIDRuntimeError, ThunderIDVueClient_default as ThunderIDVueClient, TriangleAlertIcon, Typography_default as Typography, USER_KEY, User_default as User, UserCreate_default as UserCreate, UserDetails_default as UserDetails, UserDropdown_default as UserDropdown, UserIcon, UserList_default as UserList, UserProfile_default as UserProfile, UserProvider_default as UserProvider, UserQueryKeys, UserSelect_default as UserSelect, UserTypeSelect_default as UserTypeSelect, VerifyAttribute_default as VerifyAttribute, XIcon, addGroupMembers, addRoleAssignments, applyGatewayConfiguration, buildThemeConfigFromFlowMeta_default as buildThemeConfigFromFlowMeta, createAction, createAgent, createAgentType, createApplication, createApplicationSharingPolicy, createAuthorizationDetailType, createCallbackRoute, createClassObserver, createConfigurationVersion, createConnection, createCredentialConfiguration, createDesignTheme, createField, createFlow, createFlowSharingPolicy, createGateway, createGatewaySecret, createGatewayVariable, createGroup, createGroupByPath, createLayout, createMediaQueryListener, createNotificationTemplate, createOrganizationUnit, createPresentationDefinition, createProject, createResource, createResourceInvalidator, createResourceServer, createRole, createRoleSharingPolicy, createSecret, createThunderIDGuard, createUser, createUserByPath, createUserSharingPolicy, createUserType, createVariable, deleteAction, deleteAgent, deleteAgentType, deleteApplication, deleteApplicationSharingPolicy, deleteAuthorizationDetailType, deleteClientRegistration, deleteConnection, deleteCredentialConfiguration, deleteDesignTheme, deleteFlow, deleteFlowSharingPolicy, deleteGateway, deleteGatewaySecret, deleteGatewayVariable, deleteGroup, deleteImportedConfiguration, deleteLayout, deleteNotificationTemplate, deleteOrganizationUnit, deleteOrganizationUnitByPath, deletePresentationDefinition, deleteProject, deleteResource, deleteResourceServer, deleteRole, deleteRoleSharingPolicy, deleteSecret, deleteTranslation, deleteTranslations, deleteUser, deleteUserSharingPolicy, deleteUserType, deleteVariable, detectThemeMode, executeAdministrationFlow, executeEmbeddedSelfFlow_default as executeEmbeddedSelfFlow, exportConfiguration, extractErrorMessage, findAdministrationFlows, getAccessibleOrganizationUnits_default as getAccessibleOrganizationUnits, getAccountLifecycleActions, getAction, getActions, getActiveTheme, getAgent, getAgentGroups, getAgentName, getAgentRoles, getAgentType, getAgentTypes, getAgents, getApplication, getApplicationOverlayRules, getApplicationSharingPolicies, getApplicationSharingPolicy, getApplications, getAuthComponentHeadings_default as getAuthComponentHeadings, getAuthorizationDetailType, getAuthorizationDetailTypes, getClientRegistration, getConfigurationVersion, getConfigurationVersions, getConnection, getConnectionUsages, getConnections, getConnectionsMeta, getCredentialConfiguration, getCredentialConfigurations, getDesignTheme, getDesignThemeUsages, getDesignThemes, getFlow, getFlowOverlayRules, getFlowSharingPolicies, getFlowSharingPolicy, getFlowUsages, getFlowVariables, getFlowVersion, getFlowVersions, getFlows, getGateway, getGatewayAppliedConfiguration, getGatewayAppliedVersion, getGatewayConfigurationDiff, getGatewayMaster, getGatewayMasterHistory, getGatewayMasterResource, getGatewaySecret, getGatewaySecrets, getGatewayVariable, getGatewayVariables, getGateways, getGroup, getGroupMembers, getGroups, getGroupsByPath, getLanguages, getLayout, getLayoutUsages, getLayouts, getNotificationTemplate, getNotificationTemplates, getOrganizationUnit, getOrganizationUnitByPath, getOrganizationUnitChildren, getOrganizationUnitGroups, getOrganizationUnitRoles, getOrganizationUnitUsers, getOrganizationUnits, getPresentationDefinition, getPresentationDefinitions, getProject, getProjects, getResource, getResourceServer, getResourceServerPermissions, getResourceServers, getResources, getRole, getRoleAssignments, getRoleOverlayRules, getRoleSharingPolicies, getRoleSharingPolicy, getRoles, getSecret, getSecrets, getServerConfig, getServerConfigs, getSupportedAuthorizationDetailsType, getSupportedAuthorizationDetailsTypes, getTokenPermissions, getUser, getUserGroups, getUserOverlayRules, getUserSharingPolicies, getUserSharingPolicy, getUserType, getUserTypes, getUserUsages, getUsers, getUsersByPath, getUsersMeMeta_default as getUsersMeMeta, getVariable, getVariables, getVerifiedAttributes, handlePasskeyAuthentication, handlePasskeyRegistration, handleWebAuthnAuthentication, hasAuthParamsInUrl, hasPermission, http, importConfiguration, initiateOAuthRedirect, isVerifiableAttribute, navigate, normalizeFlowResponse, parseKeyValuePairs, previewCimdDocument, regenerateAgentSecret, regenerateClientSecret, regenerateFlowSecret, registerClient, removeGroupMembers, removeRoleAssignments, resolveAdministrationFlowHandles, resolveAdministrationFlowId, resolveAdministrationFlows, resolveDesign, resolveTranslation, resolveTranslations, restoreFlowVersion, revertGatewayConfiguration, runAccountLifecycleAction, runAdministrationFlow, setTranslation, setTranslations, suspendAgent, suspendApplication, suspendUser, unlockAgent, unlockUser, unsuspendAgent, unsuspendApplication, unsuspendUser, updateAction, updateAgent, updateAgentType, updateApplication, updateApplicationSharingPolicy, updateAuthorizationDetailType, updateClientRegistration, updateConnection, updateCredentialConfiguration, updateDesignTheme, updateFlow, updateFlowSharingPolicy, updateFlowVariables, updateGateway, updateGatewaySecret, updateGatewayVariable, updateGroup, updateLayout, updateNotificationTemplate, updateOrganizationUnit, updateOrganizationUnitByPath, updatePresentationDefinition, updateProject, updateResource, updateResourceServer, updateRole, updateRoleSharingPolicy, updateSecret, updateServerConfig, updateUser, updateUserCredentials, updateUserSharingPolicy, updateUserType, updateVariable, useCurrentProjectState_default as useCurrentProjectState, useFetchAuthFlows_default as useFetchAuthFlows, useFetchUserTypes_default as useFetchUserTypes, useFetchUsers_default as useFetchUsers, useFlow_default as useFlow, useFlowMeta_default as useFlowMeta, useGrantedPermissions_default as useGrantedPermissions, useI18n_default as useI18n, useInfiniteOptions_default as useInfiniteOptions, useManagementEndpoint_default as useManagementEndpoint, useManagementRequestConfig_default as useManagementRequestConfig, useOAuthCallback, useTheme_default as useTheme, useThunderID_default as useThunderID, useUser_default as useUser, validateFieldValue };
22223
+ export { ADMINISTRATION_FLOW_TYPE, AcceptInvite_default as AcceptInvite, AccountLifecycleFlowConfigKey, AdministrationFlowConfigKey, AdministrationFlowData, AdministrationFlowError, AdministrationFlowInput, AdministrationModes, AgentCreate_default as AgentCreate, AgentDetails_default as AgentDetails, AgentList_default as AgentList, AgentQueryKeys, Alert_default as Alert, ApplicationCreate_default as ApplicationCreate, ApplicationDetails_default as ApplicationDetails, ApplicationList_default as ApplicationList, ApplicationQueryKeys, ArrowLeftRightIcon, AttributeVerificationConstants, Attribution_default as Attribution, AuthFlowSelect_default as AuthFlowSelect, BaseAcceptInvite_default as BaseAcceptInvite, BaseAgentCreate_default as BaseAgentCreate, BaseAgentDetails_default as BaseAgentDetails, BaseAgentList_default as BaseAgentList, BaseApplicationCreate_default as BaseApplicationCreate, BaseApplicationDetails_default as BaseApplicationDetails, BaseApplicationList_default as BaseApplicationList, BaseAuthFlowSelect_default as BaseAuthFlowSelect, BaseChangeCredential_default as BaseChangeCredential, BaseDeviceGrant_default as BaseDeviceGrant, BaseGroupCreate_default as BaseGroupCreate, BaseGroupDetails_default as BaseGroupDetails, BaseGroupList_default as BaseGroupList, BaseGroupMembers_default as BaseGroupMembers, BaseInviteUser_default as BaseInviteUser, BaseLanguageSwitcher_default as BaseLanguageSwitcher, BaseOrganizationUnitCreate_default as BaseOrganizationUnitCreate, BaseOrganizationUnitDetails_default as BaseOrganizationUnitDetails, BaseOrganizationUnitList_default as BaseOrganizationUnitList, BaseOrganizationUnitSwitcher_default as BaseOrganizationUnitSwitcher, BaseProjectCreate_default as BaseProjectCreate, BaseProjectDetails_default as BaseProjectDetails, BaseProjectList_default as BaseProjectList, BaseProjectSwitcher_default as BaseProjectSwitcher, BaseRoleAssignments_default as BaseRoleAssignments, BaseRoleCreate_default as BaseRoleCreate, BaseRoleDetails_default as BaseRoleDetails, BaseRoleList_default as BaseRoleList, BaseRolePermissions_default as BaseRolePermissions, BaseSharingPolicies_default as BaseSharingPolicies, BaseSignIn_default as BaseSignIn, BaseSignInButton_default as BaseSignInButton, BaseSignOutButton_default as BaseSignOutButton, BaseSignUp_default as BaseSignUp, BaseSignUpButton_default as BaseSignUpButton, BaseUserCreate_default as BaseUserCreate, BaseUserDetails_default as BaseUserDetails, BaseUserDropdown_default as BaseUserDropdown, BaseUserList_default as BaseUserList, BaseUserProfile_default as BaseUserProfile, BaseUserSelect_default as BaseUserSelect, BaseUserTypeSelect_default as BaseUserTypeSelect, BaseVerifyAttribute_default as BaseVerifyAttribute, BuildingIcon, Button_default as Button, Callback_default as Callback, Card_default as Card, ChangeCredential_default as ChangeCredential, CheckIcon, Checkbox_default as Checkbox, ChevronDownIcon, CircleAlertIcon, CircleCheckIcon, Consent_default as Consent, CopyableText_default as CopyableText, DEFAULT_USER_CREATE_FIELDS, DataTable_default as DataTable, DatePicker_default as DatePicker, DeviceGrant_default as DeviceGrant, Divider_default as Divider, EmbeddedFlowActionVariant, EmbeddedFlowComponentType, EmbeddedFlowEventType, EmbeddedFlowTextVariant, EmbeddedSelfFlowStatus, EmbeddedSignInFlowStatus, EmbeddedSignInFlowType, EmbeddedSignUpFlowStatus, EmbeddedSignUpFlowType, EyeIcon, EyeOffIcon, FLOW_KEY, FLOW_META_KEY, FacebookButton_default as FacebookButton, FieldFactory_default as FieldFactory, FieldType, FlowExpired_default as FlowExpired, FlowMetaProvider_default as FlowMetaProvider, FlowProvider_default as FlowProvider, GitHubButton_default as GitHubButton, GlobeIcon, GoogleButton_default as GoogleButton, GroupCreate_default as GroupCreate, GroupDetails_default as GroupDetails, GroupList_default as GroupList, GroupMembers_default as GroupMembers, GroupQueryKeys, I18N_KEY, I18nProvider_default as I18nProvider, InfoIcon, InviteUser_default as InviteUser, KeyValueList_default as KeyValueList, LanguageSwitcher_default as LanguageSwitcher, Loading_default as Loading, LogOutIcon, Logo_default as Logo, MicrosoftButton_default as MicrosoftButton, OrganizationUnitCreate_default as OrganizationUnitCreate, OrganizationUnitDetails_default as OrganizationUnitDetails, OrganizationUnitList_default as OrganizationUnitList, OrganizationUnitSwitchErrorCodes, OrganizationUnitSwitcher_default as OrganizationUnitSwitcher, OtpField_default as OtpField, PasswordField_default as PasswordField, PencilIcon, PlusIcon, ProjectCreate_default as ProjectCreate, ProjectDetails_default as ProjectDetails, ProjectList_default as ProjectList, ProjectSwitcher_default as ProjectSwitcher, RoleAssignments_default as RoleAssignments, RoleCreate_default as RoleCreate, RoleDetails_default as RoleDetails, RoleList_default as RoleList, RolePermissions_default as RolePermissions, RoleQueryKeys, Select_default as Select, SharingPolicies_default as SharingPolicies, SignIn_default as SignIn, SignInButton_default as SignInButton, SignOutButton_default as SignOutButton, SignUp_default as SignUp, SignUpButton_default as SignUpButton, SignedIn_default as SignedIn, SignedOut_default as SignedOut, Spinner_default as Spinner, THEME_KEY, THUNDERID_KEY, TextField_default as TextField, ThemeProvider_default as ThemeProvider, ThunderIDAPIError, ThunderIDPlugin_default as ThunderIDPlugin, ThunderIDProvider_default as ThunderIDProvider, ThunderIDRuntimeError, ThunderIDVueClient_default as ThunderIDVueClient, TriangleAlertIcon, Typography_default as Typography, USER_KEY, User_default as User, UserCreate_default as UserCreate, UserDetails_default as UserDetails, UserDropdown_default as UserDropdown, UserIcon, UserList_default as UserList, UserProfile_default as UserProfile, UserProvider_default as UserProvider, UserQueryKeys, UserSelect_default as UserSelect, UserTypeSelect_default as UserTypeSelect, VerifyAttribute_default as VerifyAttribute, XIcon, addGroupMembers, addRoleAssignments, applyGatewayConfiguration, buildThemeConfigFromFlowMeta_default as buildThemeConfigFromFlowMeta, createAction, createAgent, createAgentType, createApplication, createApplicationSharingPolicy, createAuthorizationDetailType, createCallbackRoute, createClassObserver, createConfigurationVersion, createConnection, createCredentialConfiguration, createDesignTheme, createField, createFlow, createFlowSharingPolicy, createGateway, createGatewaySecret, createGatewayVariable, createGroup, createGroupByPath, createLayout, createMediaQueryListener, createNotificationTemplate, createOrganizationUnit, createPresentationDefinition, createProject, createResource, createResourceInvalidator, createResourceServer, createRole, createRoleSharingPolicy, createSecret, createThunderIDGuard, createUser, createUserByPath, createUserSharingPolicy, createUserType, createVariable, deleteAction, deleteAgent, deleteAgentType, deleteApplication, deleteApplicationSharingPolicy, deleteAuthorizationDetailType, deleteClientRegistration, deleteConnection, deleteCredentialConfiguration, deleteDesignTheme, deleteFlow, deleteFlowSharingPolicy, deleteGateway, deleteGatewaySecret, deleteGatewayVariable, deleteGroup, deleteImportedConfiguration, deleteLayout, deleteNotificationTemplate, deleteOrganizationUnit, deleteOrganizationUnitByPath, deletePresentationDefinition, deleteProject, deleteResource, deleteResourceServer, deleteRole, deleteRoleSharingPolicy, deleteSecret, deleteTranslation, deleteTranslations, deleteUser, deleteUserSharingPolicy, deleteUserType, deleteVariable, detectThemeMode, executeAdministrationFlow, executeEmbeddedSelfFlow_default as executeEmbeddedSelfFlow, exportConfiguration, extractErrorMessage, findAdministrationFlows, getAccessibleOrganizationUnits_default as getAccessibleOrganizationUnits, getAccountLifecycleActions, getAction, getActions, getActiveTheme, getAgent, getAgentGroups, getAgentName, getAgentRoles, getAgentType, getAgentTypes, getAgents, getApplication, getApplicationOverlayRules, getApplicationSharingPolicies, getApplicationSharingPolicy, getApplications, getAuthComponentHeadings_default as getAuthComponentHeadings, getAuthorizationDetailType, getAuthorizationDetailTypes, getClientRegistration, getConfigurationVersion, getConfigurationVersions, getConnection, getConnectionUsages, getConnections, getConnectionsMeta, getCredentialConfiguration, getCredentialConfigurations, getDesignTheme, getDesignThemeUsages, getDesignThemes, getFlow, getFlowOverlayRules, getFlowSharingPolicies, getFlowSharingPolicy, getFlowUsages, getFlowVariables, getFlowVersion, getFlowVersions, getFlows, getGateway, getGatewayAppliedConfiguration, getGatewayAppliedVersion, getGatewayConfigurationDiff, getGatewayMaster, getGatewayMasterHistory, getGatewayMasterResource, getGatewaySecret, getGatewaySecrets, getGatewayVariable, getGatewayVariables, getGateways, getGroup, getGroupMembers, getGroups, getGroupsByPath, getLanguages, getLayout, getLayoutUsages, getLayouts, getNotificationTemplate, getNotificationTemplates, getOrganizationUnit, getOrganizationUnitByPath, getOrganizationUnitChildren, getOrganizationUnitGroups, getOrganizationUnitRoles, getOrganizationUnitUsers, getOrganizationUnits, getPresentationDefinition, getPresentationDefinitions, getProject, getProjects, getResource, getResourceServer, getResourceServerPermissions, getResourceServers, getResources, getRole, getRoleAssignments, getRoleOverlayRules, getRoleSharingPolicies, getRoleSharingPolicy, getRoles, getSecret, getSecrets, getServerConfig, getServerConfigs, getSupportedAuthorizationDetailsType, getSupportedAuthorizationDetailsTypes, getTokenPermissions, getUser, getUserGroups, getUserOverlayRules, getUserSharingPolicies, getUserSharingPolicy, getUserType, getUserTypes, getUserUsages, getUsers, getUsersByPath, getUsersMeMeta_default as getUsersMeMeta, getVariable, getVariables, getVerifiedAttributes, handlePasskeyAuthentication, handlePasskeyRegistration, handleWebAuthnAuthentication, hasAuthParamsInUrl, hasPermission, http, importConfiguration, initiateOAuthRedirect, isVerifiableAttribute, navigate, normalizeFlowResponse, parseKeyValuePairs, previewCimdDocument, regenerateAgentSecret, regenerateClientSecret, regenerateFlowSecret, registerClient, removeGroupMembers, removeRoleAssignments, resolveAdministrationFlowHandles, resolveAdministrationFlowId, resolveAdministrationFlows, resolveDesign, resolveTranslation, resolveTranslations, restoreFlowVersion, revertGatewayConfiguration, runAccountLifecycleAction, runAdministrationFlow, sendUserAttributeVerification, setTranslation, setTranslations, suspendAgent, suspendApplication, suspendUser, unlockAgent, unlockUser, unsuspendAgent, unsuspendApplication, unsuspendUser, updateAction, updateAgent, updateAgentType, updateApplication, updateApplicationSharingPolicy, updateAuthorizationDetailType, updateClientRegistration, updateConnection, updateCredentialConfiguration, updateDesignTheme, updateFlow, updateFlowSharingPolicy, updateFlowVariables, updateGateway, updateGatewaySecret, updateGatewayVariable, updateGroup, updateLayout, updateNotificationTemplate, updateOrganizationUnit, updateOrganizationUnitByPath, updatePresentationDefinition, updateProject, updateResource, updateResourceServer, updateRole, updateRoleSharingPolicy, updateSecret, updateServerConfig, updateUser, updateUserCredentials, updateUserSharingPolicy, updateUserType, updateVariable, useCurrentProjectState_default as useCurrentProjectState, useFetchAuthFlows_default as useFetchAuthFlows, useFetchUserTypes_default as useFetchUserTypes, useFetchUsers_default as useFetchUsers, useFlow_default as useFlow, useFlowExpiryHandling_default as useFlowExpiryHandling, useFlowMeta_default as useFlowMeta, useGrantedPermissions_default as useGrantedPermissions, useI18n_default as useI18n, useInfiniteOptions_default as useInfiniteOptions, useManagementEndpoint_default as useManagementEndpoint, useManagementRequestConfig_default as useManagementRequestConfig, useOAuthCallback, useTheme_default as useTheme, useThunderID_default as useThunderID, useUser_default as useUser, validateFieldValue };