@aws-amplify/ui
Version:
`@aws-amplify/ui` contains low-level logic & styles for stand-alone usage or re-use in framework-specific implementations.
72 lines (69 loc) • 2.19 kB
JavaScript
import { AiAction, Category, AuthAction, StorageAction, InAppMessagingAction, GeoAction } from '@aws-amplify/core/internals/utils';
const AI_INPUT_BASE = {
category: Category.AI,
apis: [
AiAction.CreateConversation,
AiAction.DeleteConversation,
AiAction.ListConversations,
AiAction.UpdateConversation,
AiAction.OnMessage,
AiAction.SendMessage,
AiAction.Generation,
],
};
const ACCOUNT_SETTINGS_INPUT_BASE = {
apis: [AuthAction.DeleteUser, AuthAction.UpdatePassword],
category: Category.Auth,
};
const AUTHENTICATOR_INPUT_BASE = {
apis: [
AuthAction.SignUp,
AuthAction.ConfirmSignUp,
AuthAction.ResendSignUpCode,
AuthAction.SignIn,
AuthAction.ConfirmSignIn,
AuthAction.FetchUserAttributes,
AuthAction.SignOut,
AuthAction.ResetPassword,
AuthAction.ConfirmResetPassword,
AuthAction.SignInWithRedirect,
],
category: Category.Auth,
};
const FILE_UPLOADER_BASE_INPUT = {
apis: [StorageAction.UploadData],
category: Category.Storage,
};
const IN_APP_MESSAGING_INPUT_BASE = {
apis: [InAppMessagingAction.NotifyMessageInteraction],
category: Category.InAppMessaging,
};
const LOCATION_SEARCH_INPUT_BASE = {
category: Category.Geo,
apis: [
GeoAction.SearchByText,
GeoAction.SearchForSuggestions,
GeoAction.SearchByPlaceId,
],
};
const MAP_VIEW_INPUT_BASE = {
category: Category.Geo,
apis: [],
};
const STORAGE_MANAGER_INPUT_BASE = {
apis: [StorageAction.UploadData],
category: Category.Storage,
};
const STORAGE_BROWSER_INPUT_BASE = {
apis: [
StorageAction.UploadData,
StorageAction.Copy,
StorageAction.GetUrl,
StorageAction.List,
StorageAction.Remove,
StorageAction.GetDataAccess,
StorageAction.ListCallerAccessGrants,
],
category: Category.Storage,
};
export { ACCOUNT_SETTINGS_INPUT_BASE, AI_INPUT_BASE, AUTHENTICATOR_INPUT_BASE, FILE_UPLOADER_BASE_INPUT, IN_APP_MESSAGING_INPUT_BASE, LOCATION_SEARCH_INPUT_BASE, MAP_VIEW_INPUT_BASE, STORAGE_BROWSER_INPUT_BASE, STORAGE_MANAGER_INPUT_BASE };