import { createAction } from '@reduxjs/toolkit'; import { GalleryCategory } from '../../features/gallery/gallerySlice'; import { InvokeTabName } from '../../features/tabs/InvokeTabs'; import * as InvokeAI from '../invokeai'; /** * We can't use redux-toolkit's createSlice() to make these actions, * because they have no associated reducer. They only exist to dispatch * requests to the server via socketio. These actions will be handled * by the middleware. */ export const generateImage = createAction( 'socketio/generateImage' ); export const runESRGAN = createAction('socketio/runESRGAN'); export const runFacetool = createAction('socketio/runFacetool'); export const deleteImage = createAction('socketio/deleteImage'); export const requestImages = createAction( 'socketio/requestImages' ); export const requestNewImages = createAction( 'socketio/requestNewImages' ); export const cancelProcessing = createAction( 'socketio/cancelProcessing' ); export const uploadImage = createAction('socketio/uploadImage'); export const uploadMaskImage = createAction('socketio/uploadMaskImage'); export const requestSystemConfig = createAction( 'socketio/requestSystemConfig' ); export const requestModelChange = createAction( 'socketio/requestModelChange' );