diff --git a/keyserver/src/socket/socket.js b/keyserver/src/socket/socket.js --- a/keyserver/src/socket/socket.js +++ b/keyserver/src/socket/socket.js @@ -144,7 +144,7 @@ id: t.Number, payload: tShape({ endpoint: t.String, - input: t.Object, + input: t.maybe(t.Object), }), }), ]); diff --git a/lib/types/endpoints.js b/lib/types/endpoints.js --- a/lib/types/endpoints.js +++ b/lib/types/endpoints.js @@ -2,7 +2,7 @@ export type APIRequest = { endpoint: Endpoint, - input: Object, + input?: Object, }; export type SocketAPIHandler = (request: APIRequest) => Promise;