diff --git a/lib/actions/keyserver-actions.js b/lib/actions/keyserver-actions.js new file mode 100644 --- /dev/null +++ b/lib/actions/keyserver-actions.js @@ -0,0 +1,5 @@ +// @flow + +const addKeyserverActionType = 'ADD_KEYSERVER'; + +export { addKeyserverActionType }; diff --git a/lib/types/keyserver-types.js b/lib/types/keyserver-types.js --- a/lib/types/keyserver-types.js +++ b/lib/types/keyserver-types.js @@ -27,6 +27,11 @@ +keyserverInfo: KeyserverInfo, }; +export type AddKeyserverPayload = { + +keyserverAdminUserID: string, + +newKeyserverInfo: KeyserverInfo, +}; + export const keyserverInfoValidator: TInterface = tShape({ cookie: t.maybe(t.String), diff --git a/lib/types/redux-types.js b/lib/types/redux-types.js --- a/lib/types/redux-types.js +++ b/lib/types/redux-types.js @@ -39,7 +39,7 @@ SetCalendarDeletedFilterPayload, } from './filter-types.js'; import type { IntegrityStore } from './integrity-types.js'; -import type { KeyserverStore } from './keyserver-types.js'; +import type { KeyserverStore, AddKeyserverPayload } from './keyserver-types.js'; import type { LifecycleState } from './lifecycle-state-types.js'; import type { FetchInviteLinksResponse, @@ -1229,6 +1229,10 @@ | { +type: 'UPDATE_THEME_INFO', +payload: Shape, + } + | { + +type: 'ADD_KEYSERVER', + +payload: AddKeyserverPayload, }; export type ActionPayload = ?(Object | Array<*> | $ReadOnlyArray<*> | string);