diff --git a/protocol/bin/flow.js b/protocol/bin/flow.js index aa8798a95202..06609a6a7d25 100644 --- a/protocol/bin/flow.js +++ b/protocol/bin/flow.js @@ -243,7 +243,8 @@ function rpcChannelMapGen(methodName, name, response, requestType, responseType) } function rpcPromiseGen(methodName, name, response, requestType, responseType) { - return `\nexport const ${name}RpcPromise = (request: ${requestType}): Promise<${responseType !== 'null' ? `${capitalize(name)}Result` : 'void'}> => new Promise((resolve, reject) => engine()._rpcOutgoing(${methodName}, request, (error, result) => error ? reject(error) : resolve(result)))` + const resultType = responseType !== 'null' ? `${capitalize(name)}Result` : 'void' + return `\nexport const ${name}RpcPromise = (request: ${requestType}): Promise<${resultType}> => new Promise((resolve, reject) => engine()._rpcOutgoing(${methodName}, request, (error: RPCError, result: ${resultType}) => error ? reject(error) : resolve(${resultType === 'void' ? '' : 'result'})))` } // Type parsing @@ -362,7 +363,7 @@ function write(typeDefs, project) { // This file is auto-generated by client/protocol/Makefile. ${project.import || ''} import engine, {EngineChannel} from '../../engine' -import type {Boolean, Bool, Bytes, Double, Int, Int64, Long, String, Uint, Uint64, WaitingHandlerType, RPCErrorHandler, CommonResponseHandler} from '../../engine/types' +import type {Boolean, Bool, Bytes, Double, Int, Int64, Long, String, Uint, Uint64, WaitingHandlerType, RPCErrorHandler, CommonResponseHandler, RPCError} from '../../engine/types' ` const incomingMap = `\nexport type IncomingCallMapType = {|` + diff --git a/protocol/js/flow-types-chat.js b/protocol/js/flow-types-chat.js index 3b2789704e62..4bcd767eaf11 100644 --- a/protocol/js/flow-types-chat.js +++ b/protocol/js/flow-types-chat.js @@ -5,7 +5,7 @@ import * as Gregor1 from './flow-types-gregor' import * as Keybase1 from './flow-types' import engine, {EngineChannel} from '../../engine' -import type {Boolean, Bool, Bytes, Double, Int, Int64, Long, String, Uint, Uint64, WaitingHandlerType, RPCErrorHandler, CommonResponseHandler} from '../../engine/types' +import type {Boolean, Bool, Bytes, Double, Int, Int64, Long, String, Uint, Uint64, WaitingHandlerType, RPCErrorHandler, CommonResponseHandler, RPCError} from '../../engine/types' export const chatUiMessageUnboxedState = { @@ -119,7 +119,7 @@ export const localBodyPlaintextVersion = { export const localCancelPostRpcChannelMap = (configKeys: Array, request: LocalCancelPostRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.CancelPost', request) -export const localCancelPostRpcPromise = (request: LocalCancelPostRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.CancelPost', request, (error, result) => error ? reject(error) : resolve(result))) +export const localCancelPostRpcPromise = (request: LocalCancelPostRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.CancelPost', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const localConversationErrorType = { permanent: 0, @@ -133,63 +133,63 @@ export const localConversationErrorType = { export const localDeleteConversationLocalRpcChannelMap = (configKeys: Array, request: LocalDeleteConversationLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.deleteConversationLocal', request) -export const localDeleteConversationLocalRpcPromise = (request: LocalDeleteConversationLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.deleteConversationLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localDeleteConversationLocalRpcPromise = (request: LocalDeleteConversationLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.deleteConversationLocal', request, (error: RPCError, result: LocalDeleteConversationLocalResult) => error ? reject(error) : resolve(result))) export const localDownloadAttachmentLocalRpcChannelMap = (configKeys: Array, request: LocalDownloadAttachmentLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.DownloadAttachmentLocal', request) -export const localDownloadAttachmentLocalRpcPromise = (request: LocalDownloadAttachmentLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.DownloadAttachmentLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localDownloadAttachmentLocalRpcPromise = (request: LocalDownloadAttachmentLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.DownloadAttachmentLocal', request, (error: RPCError, result: LocalDownloadAttachmentLocalResult) => error ? reject(error) : resolve(result))) export const localDownloadFileAttachmentLocalRpcChannelMap = (configKeys: Array, request: LocalDownloadFileAttachmentLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.DownloadFileAttachmentLocal', request) -export const localDownloadFileAttachmentLocalRpcPromise = (request: LocalDownloadFileAttachmentLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.DownloadFileAttachmentLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localDownloadFileAttachmentLocalRpcPromise = (request: LocalDownloadFileAttachmentLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.DownloadFileAttachmentLocal', request, (error: RPCError, result: LocalDownloadFileAttachmentLocalResult) => error ? reject(error) : resolve(result))) export const localFindConversationsLocalRpcChannelMap = (configKeys: Array, request: LocalFindConversationsLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.findConversationsLocal', request) -export const localFindConversationsLocalRpcPromise = (request: LocalFindConversationsLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.findConversationsLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localFindConversationsLocalRpcPromise = (request: LocalFindConversationsLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.findConversationsLocal', request, (error: RPCError, result: LocalFindConversationsLocalResult) => error ? reject(error) : resolve(result))) export const localGenerateOutboxIDRpcChannelMap = (configKeys: Array, request: LocalGenerateOutboxIDRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.generateOutboxID', request) -export const localGenerateOutboxIDRpcPromise = (request: LocalGenerateOutboxIDRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.generateOutboxID', request, (error, result) => error ? reject(error) : resolve(result))) +export const localGenerateOutboxIDRpcPromise = (request: LocalGenerateOutboxIDRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.generateOutboxID', request, (error: RPCError, result: LocalGenerateOutboxIDResult) => error ? reject(error) : resolve(result))) export const localGetCachedThreadRpcChannelMap = (configKeys: Array, request: LocalGetCachedThreadRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.getCachedThread', request) -export const localGetCachedThreadRpcPromise = (request: LocalGetCachedThreadRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getCachedThread', request, (error, result) => error ? reject(error) : resolve(result))) +export const localGetCachedThreadRpcPromise = (request: LocalGetCachedThreadRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getCachedThread', request, (error: RPCError, result: LocalGetCachedThreadResult) => error ? reject(error) : resolve(result))) export const localGetConversationForCLILocalRpcChannelMap = (configKeys: Array, request: LocalGetConversationForCLILocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.getConversationForCLILocal', request) -export const localGetConversationForCLILocalRpcPromise = (request: LocalGetConversationForCLILocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getConversationForCLILocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localGetConversationForCLILocalRpcPromise = (request: LocalGetConversationForCLILocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getConversationForCLILocal', request, (error: RPCError, result: LocalGetConversationForCLILocalResult) => error ? reject(error) : resolve(result))) export const localGetGlobalAppNotificationSettingsLocalRpcChannelMap = (configKeys: Array, request: LocalGetGlobalAppNotificationSettingsLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.getGlobalAppNotificationSettingsLocal', request) -export const localGetGlobalAppNotificationSettingsLocalRpcPromise = (request: LocalGetGlobalAppNotificationSettingsLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getGlobalAppNotificationSettingsLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localGetGlobalAppNotificationSettingsLocalRpcPromise = (request: LocalGetGlobalAppNotificationSettingsLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getGlobalAppNotificationSettingsLocal', request, (error: RPCError, result: LocalGetGlobalAppNotificationSettingsLocalResult) => error ? reject(error) : resolve(result))) export const localGetInboxAndUnboxLocalRpcChannelMap = (configKeys: Array, request: LocalGetInboxAndUnboxLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.getInboxAndUnboxLocal', request) -export const localGetInboxAndUnboxLocalRpcPromise = (request: LocalGetInboxAndUnboxLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getInboxAndUnboxLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localGetInboxAndUnboxLocalRpcPromise = (request: LocalGetInboxAndUnboxLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getInboxAndUnboxLocal', request, (error: RPCError, result: LocalGetInboxAndUnboxLocalResult) => error ? reject(error) : resolve(result))) export const localGetInboxNonblockLocalRpcChannelMap = (configKeys: Array, request: LocalGetInboxNonblockLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.getInboxNonblockLocal', request) -export const localGetInboxNonblockLocalRpcPromise = (request: LocalGetInboxNonblockLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getInboxNonblockLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localGetInboxNonblockLocalRpcPromise = (request: LocalGetInboxNonblockLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getInboxNonblockLocal', request, (error: RPCError, result: LocalGetInboxNonblockLocalResult) => error ? reject(error) : resolve(result))) export const localGetInboxSummaryForCLILocalRpcChannelMap = (configKeys: Array, request: LocalGetInboxSummaryForCLILocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.getInboxSummaryForCLILocal', request) -export const localGetInboxSummaryForCLILocalRpcPromise = (request: LocalGetInboxSummaryForCLILocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getInboxSummaryForCLILocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localGetInboxSummaryForCLILocalRpcPromise = (request: LocalGetInboxSummaryForCLILocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getInboxSummaryForCLILocal', request, (error: RPCError, result: LocalGetInboxSummaryForCLILocalResult) => error ? reject(error) : resolve(result))) export const localGetMessagesLocalRpcChannelMap = (configKeys: Array, request: LocalGetMessagesLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.GetMessagesLocal', request) -export const localGetMessagesLocalRpcPromise = (request: LocalGetMessagesLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.GetMessagesLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localGetMessagesLocalRpcPromise = (request: LocalGetMessagesLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.GetMessagesLocal', request, (error: RPCError, result: LocalGetMessagesLocalResult) => error ? reject(error) : resolve(result))) export const localGetTLFConversationsLocalRpcChannelMap = (configKeys: Array, request: LocalGetTLFConversationsLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.getTLFConversationsLocal', request) -export const localGetTLFConversationsLocalRpcPromise = (request: LocalGetTLFConversationsLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getTLFConversationsLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localGetTLFConversationsLocalRpcPromise = (request: LocalGetTLFConversationsLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getTLFConversationsLocal', request, (error: RPCError, result: LocalGetTLFConversationsLocalResult) => error ? reject(error) : resolve(result))) export const localGetThreadLocalRpcChannelMap = (configKeys: Array, request: LocalGetThreadLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.getThreadLocal', request) -export const localGetThreadLocalRpcPromise = (request: LocalGetThreadLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getThreadLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localGetThreadLocalRpcPromise = (request: LocalGetThreadLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getThreadLocal', request, (error: RPCError, result: LocalGetThreadLocalResult) => error ? reject(error) : resolve(result))) export const localGetThreadNonblockRpcChannelMap = (configKeys: Array, request: LocalGetThreadNonblockRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.getThreadNonblock', request) -export const localGetThreadNonblockRpcPromise = (request: LocalGetThreadNonblockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getThreadNonblock', request, (error, result) => error ? reject(error) : resolve(result))) +export const localGetThreadNonblockRpcPromise = (request: LocalGetThreadNonblockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getThreadNonblock', request, (error: RPCError, result: LocalGetThreadNonblockResult) => error ? reject(error) : resolve(result))) export const localHeaderPlaintextVersion = { v1: 1, @@ -206,23 +206,23 @@ export const localHeaderPlaintextVersion = { export const localJoinConversationByIDLocalRpcChannelMap = (configKeys: Array, request: LocalJoinConversationByIDLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.joinConversationByIDLocal', request) -export const localJoinConversationByIDLocalRpcPromise = (request: LocalJoinConversationByIDLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.joinConversationByIDLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localJoinConversationByIDLocalRpcPromise = (request: LocalJoinConversationByIDLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.joinConversationByIDLocal', request, (error: RPCError, result: LocalJoinConversationByIDLocalResult) => error ? reject(error) : resolve(result))) export const localJoinConversationLocalRpcChannelMap = (configKeys: Array, request: LocalJoinConversationLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.joinConversationLocal', request) -export const localJoinConversationLocalRpcPromise = (request: LocalJoinConversationLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.joinConversationLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localJoinConversationLocalRpcPromise = (request: LocalJoinConversationLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.joinConversationLocal', request, (error: RPCError, result: LocalJoinConversationLocalResult) => error ? reject(error) : resolve(result))) export const localLeaveConversationLocalRpcChannelMap = (configKeys: Array, request: LocalLeaveConversationLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.leaveConversationLocal', request) -export const localLeaveConversationLocalRpcPromise = (request: LocalLeaveConversationLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.leaveConversationLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localLeaveConversationLocalRpcPromise = (request: LocalLeaveConversationLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.leaveConversationLocal', request, (error: RPCError, result: LocalLeaveConversationLocalResult) => error ? reject(error) : resolve(result))) export const localMakePreviewRpcChannelMap = (configKeys: Array, request: LocalMakePreviewRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.makePreview', request) -export const localMakePreviewRpcPromise = (request: LocalMakePreviewRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.makePreview', request, (error, result) => error ? reject(error) : resolve(result))) +export const localMakePreviewRpcPromise = (request: LocalMakePreviewRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.makePreview', request, (error: RPCError, result: LocalMakePreviewResult) => error ? reject(error) : resolve(result))) export const localMarkAsReadLocalRpcChannelMap = (configKeys: Array, request: LocalMarkAsReadLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.markAsReadLocal', request) -export const localMarkAsReadLocalRpcPromise = (request: LocalMarkAsReadLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.markAsReadLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localMarkAsReadLocalRpcPromise = (request: LocalMarkAsReadLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.markAsReadLocal', request, (error: RPCError, result: LocalMarkAsReadLocalResult) => error ? reject(error) : resolve(result))) export const localMessageSystemType = { addedtoteam: 0, @@ -239,7 +239,7 @@ export const localMessageUnboxedErrorType = { export const localNewConversationLocalRpcChannelMap = (configKeys: Array, request: LocalNewConversationLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.newConversationLocal', request) -export const localNewConversationLocalRpcPromise = (request: LocalNewConversationLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.newConversationLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localNewConversationLocalRpcPromise = (request: LocalNewConversationLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.newConversationLocal', request, (error: RPCError, result: LocalNewConversationLocalResult) => error ? reject(error) : resolve(result))) export const localOutboxErrorType = { misc: 0, @@ -256,71 +256,71 @@ export const localOutboxStateType = { export const localPostAttachmentLocalRpcChannelMap = (configKeys: Array, request: LocalPostAttachmentLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.postAttachmentLocal', request) -export const localPostAttachmentLocalRpcPromise = (request: LocalPostAttachmentLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postAttachmentLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localPostAttachmentLocalRpcPromise = (request: LocalPostAttachmentLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postAttachmentLocal', request, (error: RPCError, result: LocalPostAttachmentLocalResult) => error ? reject(error) : resolve(result))) export const localPostDeleteNonblockRpcChannelMap = (configKeys: Array, request: LocalPostDeleteNonblockRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.postDeleteNonblock', request) -export const localPostDeleteNonblockRpcPromise = (request: LocalPostDeleteNonblockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postDeleteNonblock', request, (error, result) => error ? reject(error) : resolve(result))) +export const localPostDeleteNonblockRpcPromise = (request: LocalPostDeleteNonblockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postDeleteNonblock', request, (error: RPCError, result: LocalPostDeleteNonblockResult) => error ? reject(error) : resolve(result))) export const localPostEditNonblockRpcChannelMap = (configKeys: Array, request: LocalPostEditNonblockRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.postEditNonblock', request) -export const localPostEditNonblockRpcPromise = (request: LocalPostEditNonblockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postEditNonblock', request, (error, result) => error ? reject(error) : resolve(result))) +export const localPostEditNonblockRpcPromise = (request: LocalPostEditNonblockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postEditNonblock', request, (error: RPCError, result: LocalPostEditNonblockResult) => error ? reject(error) : resolve(result))) export const localPostFileAttachmentLocalRpcChannelMap = (configKeys: Array, request: LocalPostFileAttachmentLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.postFileAttachmentLocal', request) -export const localPostFileAttachmentLocalRpcPromise = (request: LocalPostFileAttachmentLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postFileAttachmentLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localPostFileAttachmentLocalRpcPromise = (request: LocalPostFileAttachmentLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postFileAttachmentLocal', request, (error: RPCError, result: LocalPostFileAttachmentLocalResult) => error ? reject(error) : resolve(result))) export const localPostHeadlineNonblockRpcChannelMap = (configKeys: Array, request: LocalPostHeadlineNonblockRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.postHeadlineNonblock', request) -export const localPostHeadlineNonblockRpcPromise = (request: LocalPostHeadlineNonblockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postHeadlineNonblock', request, (error, result) => error ? reject(error) : resolve(result))) +export const localPostHeadlineNonblockRpcPromise = (request: LocalPostHeadlineNonblockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postHeadlineNonblock', request, (error: RPCError, result: LocalPostHeadlineNonblockResult) => error ? reject(error) : resolve(result))) export const localPostHeadlineRpcChannelMap = (configKeys: Array, request: LocalPostHeadlineRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.postHeadline', request) -export const localPostHeadlineRpcPromise = (request: LocalPostHeadlineRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postHeadline', request, (error, result) => error ? reject(error) : resolve(result))) +export const localPostHeadlineRpcPromise = (request: LocalPostHeadlineRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postHeadline', request, (error: RPCError, result: LocalPostHeadlineResult) => error ? reject(error) : resolve(result))) export const localPostLocalNonblockRpcChannelMap = (configKeys: Array, request: LocalPostLocalNonblockRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.postLocalNonblock', request) -export const localPostLocalNonblockRpcPromise = (request: LocalPostLocalNonblockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postLocalNonblock', request, (error, result) => error ? reject(error) : resolve(result))) +export const localPostLocalNonblockRpcPromise = (request: LocalPostLocalNonblockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postLocalNonblock', request, (error: RPCError, result: LocalPostLocalNonblockResult) => error ? reject(error) : resolve(result))) export const localPostLocalRpcChannelMap = (configKeys: Array, request: LocalPostLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.postLocal', request) -export const localPostLocalRpcPromise = (request: LocalPostLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localPostLocalRpcPromise = (request: LocalPostLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postLocal', request, (error: RPCError, result: LocalPostLocalResult) => error ? reject(error) : resolve(result))) export const localPostMetadataNonblockRpcChannelMap = (configKeys: Array, request: LocalPostMetadataNonblockRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.postMetadataNonblock', request) -export const localPostMetadataNonblockRpcPromise = (request: LocalPostMetadataNonblockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postMetadataNonblock', request, (error, result) => error ? reject(error) : resolve(result))) +export const localPostMetadataNonblockRpcPromise = (request: LocalPostMetadataNonblockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postMetadataNonblock', request, (error: RPCError, result: LocalPostMetadataNonblockResult) => error ? reject(error) : resolve(result))) export const localPostMetadataRpcChannelMap = (configKeys: Array, request: LocalPostMetadataRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.postMetadata', request) -export const localPostMetadataRpcPromise = (request: LocalPostMetadataRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postMetadata', request, (error, result) => error ? reject(error) : resolve(result))) +export const localPostMetadataRpcPromise = (request: LocalPostMetadataRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postMetadata', request, (error: RPCError, result: LocalPostMetadataResult) => error ? reject(error) : resolve(result))) export const localPostTextNonblockRpcChannelMap = (configKeys: Array, request: LocalPostTextNonblockRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.postTextNonblock', request) -export const localPostTextNonblockRpcPromise = (request: LocalPostTextNonblockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postTextNonblock', request, (error, result) => error ? reject(error) : resolve(result))) +export const localPostTextNonblockRpcPromise = (request: LocalPostTextNonblockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postTextNonblock', request, (error: RPCError, result: LocalPostTextNonblockResult) => error ? reject(error) : resolve(result))) export const localRetryPostRpcChannelMap = (configKeys: Array, request: LocalRetryPostRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.RetryPost', request) -export const localRetryPostRpcPromise = (request: LocalRetryPostRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.RetryPost', request, (error, result) => error ? reject(error) : resolve(result))) +export const localRetryPostRpcPromise = (request: LocalRetryPostRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.RetryPost', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const localSetAppNotificationSettingsLocalRpcChannelMap = (configKeys: Array, request: LocalSetAppNotificationSettingsLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.setAppNotificationSettingsLocal', request) -export const localSetAppNotificationSettingsLocalRpcPromise = (request: LocalSetAppNotificationSettingsLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.setAppNotificationSettingsLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localSetAppNotificationSettingsLocalRpcPromise = (request: LocalSetAppNotificationSettingsLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.setAppNotificationSettingsLocal', request, (error: RPCError, result: LocalSetAppNotificationSettingsLocalResult) => error ? reject(error) : resolve(result))) export const localSetConversationStatusLocalRpcChannelMap = (configKeys: Array, request: LocalSetConversationStatusLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.SetConversationStatusLocal', request) -export const localSetConversationStatusLocalRpcPromise = (request: LocalSetConversationStatusLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.SetConversationStatusLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localSetConversationStatusLocalRpcPromise = (request: LocalSetConversationStatusLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.SetConversationStatusLocal', request, (error: RPCError, result: LocalSetConversationStatusLocalResult) => error ? reject(error) : resolve(result))) export const localSetGlobalAppNotificationSettingsLocalRpcChannelMap = (configKeys: Array, request: LocalSetGlobalAppNotificationSettingsLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.setGlobalAppNotificationSettingsLocal', request) -export const localSetGlobalAppNotificationSettingsLocalRpcPromise = (request: LocalSetGlobalAppNotificationSettingsLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.setGlobalAppNotificationSettingsLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localSetGlobalAppNotificationSettingsLocalRpcPromise = (request: LocalSetGlobalAppNotificationSettingsLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.setGlobalAppNotificationSettingsLocal', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const localUnboxMobilePushNotificationRpcChannelMap = (configKeys: Array, request: LocalUnboxMobilePushNotificationRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.unboxMobilePushNotification', request) -export const localUnboxMobilePushNotificationRpcPromise = (request: LocalUnboxMobilePushNotificationRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.unboxMobilePushNotification', request, (error, result) => error ? reject(error) : resolve(result))) +export const localUnboxMobilePushNotificationRpcPromise = (request: LocalUnboxMobilePushNotificationRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.unboxMobilePushNotification', request, (error: RPCError, result: LocalUnboxMobilePushNotificationResult) => error ? reject(error) : resolve(result))) export const localUpdateTypingRpcChannelMap = (configKeys: Array, request: LocalUpdateTypingRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.updateTyping', request) -export const localUpdateTypingRpcPromise = (request: LocalUpdateTypingRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.updateTyping', request, (error, result) => error ? reject(error) : resolve(result))) +export const localUpdateTypingRpcPromise = (request: LocalUpdateTypingRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.updateTyping', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const notifyChatChatActivityType = { reserved: 0, @@ -347,55 +347,55 @@ export const remoteChannelMention = { export const remoteDeleteConversationRpcChannelMap = (configKeys: Array, request: RemoteDeleteConversationRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.deleteConversation', request) -export const remoteDeleteConversationRpcPromise = (request: RemoteDeleteConversationRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.deleteConversation', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteDeleteConversationRpcPromise = (request: RemoteDeleteConversationRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.deleteConversation', request, (error: RPCError, result: RemoteDeleteConversationResult) => error ? reject(error) : resolve(result))) export const remoteGetGlobalAppNotificationSettingsRpcChannelMap = (configKeys: Array, request: RemoteGetGlobalAppNotificationSettingsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.getGlobalAppNotificationSettings', request) -export const remoteGetGlobalAppNotificationSettingsRpcPromise = (request: RemoteGetGlobalAppNotificationSettingsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.getGlobalAppNotificationSettings', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteGetGlobalAppNotificationSettingsRpcPromise = (request: RemoteGetGlobalAppNotificationSettingsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.getGlobalAppNotificationSettings', request, (error: RPCError, result: RemoteGetGlobalAppNotificationSettingsResult) => error ? reject(error) : resolve(result))) export const remoteGetInboxRemoteRpcChannelMap = (configKeys: Array, request: RemoteGetInboxRemoteRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.getInboxRemote', request) -export const remoteGetInboxRemoteRpcPromise = (request: RemoteGetInboxRemoteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.getInboxRemote', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteGetInboxRemoteRpcPromise = (request: RemoteGetInboxRemoteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.getInboxRemote', request, (error: RPCError, result: RemoteGetInboxRemoteResult) => error ? reject(error) : resolve(result))) export const remoteGetInboxVersionRpcChannelMap = (configKeys: Array, request: RemoteGetInboxVersionRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.getInboxVersion', request) -export const remoteGetInboxVersionRpcPromise = (request: RemoteGetInboxVersionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.getInboxVersion', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteGetInboxVersionRpcPromise = (request: RemoteGetInboxVersionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.getInboxVersion', request, (error: RPCError, result: RemoteGetInboxVersionResult) => error ? reject(error) : resolve(result))) export const remoteGetMessagesRemoteRpcChannelMap = (configKeys: Array, request: RemoteGetMessagesRemoteRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.getMessagesRemote', request) -export const remoteGetMessagesRemoteRpcPromise = (request: RemoteGetMessagesRemoteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.getMessagesRemote', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteGetMessagesRemoteRpcPromise = (request: RemoteGetMessagesRemoteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.getMessagesRemote', request, (error: RPCError, result: RemoteGetMessagesRemoteResult) => error ? reject(error) : resolve(result))) export const remoteGetPublicConversationsRpcChannelMap = (configKeys: Array, request: RemoteGetPublicConversationsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.getPublicConversations', request) -export const remoteGetPublicConversationsRpcPromise = (request: RemoteGetPublicConversationsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.getPublicConversations', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteGetPublicConversationsRpcPromise = (request: RemoteGetPublicConversationsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.getPublicConversations', request, (error: RPCError, result: RemoteGetPublicConversationsResult) => error ? reject(error) : resolve(result))) export const remoteGetS3ParamsRpcChannelMap = (configKeys: Array, request: RemoteGetS3ParamsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.getS3Params', request) -export const remoteGetS3ParamsRpcPromise = (request: RemoteGetS3ParamsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.getS3Params', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteGetS3ParamsRpcPromise = (request: RemoteGetS3ParamsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.getS3Params', request, (error: RPCError, result: RemoteGetS3ParamsResult) => error ? reject(error) : resolve(result))) export const remoteGetTLFConversationsRpcChannelMap = (configKeys: Array, request: RemoteGetTLFConversationsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.getTLFConversations', request) -export const remoteGetTLFConversationsRpcPromise = (request: RemoteGetTLFConversationsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.getTLFConversations', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteGetTLFConversationsRpcPromise = (request: RemoteGetTLFConversationsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.getTLFConversations', request, (error: RPCError, result: RemoteGetTLFConversationsResult) => error ? reject(error) : resolve(result))) export const remoteGetThreadRemoteRpcChannelMap = (configKeys: Array, request: RemoteGetThreadRemoteRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.getThreadRemote', request) -export const remoteGetThreadRemoteRpcPromise = (request: RemoteGetThreadRemoteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.getThreadRemote', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteGetThreadRemoteRpcPromise = (request: RemoteGetThreadRemoteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.getThreadRemote', request, (error: RPCError, result: RemoteGetThreadRemoteResult) => error ? reject(error) : resolve(result))) export const remoteGetUnreadUpdateFullRpcChannelMap = (configKeys: Array, request: RemoteGetUnreadUpdateFullRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.GetUnreadUpdateFull', request) -export const remoteGetUnreadUpdateFullRpcPromise = (request: RemoteGetUnreadUpdateFullRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.GetUnreadUpdateFull', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteGetUnreadUpdateFullRpcPromise = (request: RemoteGetUnreadUpdateFullRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.GetUnreadUpdateFull', request, (error: RPCError, result: RemoteGetUnreadUpdateFullResult) => error ? reject(error) : resolve(result))) export const remoteJoinConversationRpcChannelMap = (configKeys: Array, request: RemoteJoinConversationRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.joinConversation', request) -export const remoteJoinConversationRpcPromise = (request: RemoteJoinConversationRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.joinConversation', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteJoinConversationRpcPromise = (request: RemoteJoinConversationRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.joinConversation', request, (error: RPCError, result: RemoteJoinConversationResult) => error ? reject(error) : resolve(result))) export const remoteLeaveConversationRpcChannelMap = (configKeys: Array, request: RemoteLeaveConversationRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.leaveConversation', request) -export const remoteLeaveConversationRpcPromise = (request: RemoteLeaveConversationRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.leaveConversation', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteLeaveConversationRpcPromise = (request: RemoteLeaveConversationRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.leaveConversation', request, (error: RPCError, result: RemoteLeaveConversationResult) => error ? reject(error) : resolve(result))) export const remoteMarkAsReadRpcChannelMap = (configKeys: Array, request: RemoteMarkAsReadRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.markAsRead', request) -export const remoteMarkAsReadRpcPromise = (request: RemoteMarkAsReadRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.markAsRead', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteMarkAsReadRpcPromise = (request: RemoteMarkAsReadRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.markAsRead', request, (error: RPCError, result: RemoteMarkAsReadResult) => error ? reject(error) : resolve(result))) export const remoteMessageBoxedVersion = { vnone: 0, @@ -405,43 +405,43 @@ export const remoteMessageBoxedVersion = { export const remoteNewConversationRemote2RpcChannelMap = (configKeys: Array, request: RemoteNewConversationRemote2RpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.newConversationRemote2', request) -export const remoteNewConversationRemote2RpcPromise = (request: RemoteNewConversationRemote2RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.newConversationRemote2', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteNewConversationRemote2RpcPromise = (request: RemoteNewConversationRemote2RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.newConversationRemote2', request, (error: RPCError, result: RemoteNewConversationRemote2Result) => error ? reject(error) : resolve(result))) export const remoteNewConversationRemoteRpcChannelMap = (configKeys: Array, request: RemoteNewConversationRemoteRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.newConversationRemote', request) -export const remoteNewConversationRemoteRpcPromise = (request: RemoteNewConversationRemoteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.newConversationRemote', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteNewConversationRemoteRpcPromise = (request: RemoteNewConversationRemoteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.newConversationRemote', request, (error: RPCError, result: RemoteNewConversationRemoteResult) => error ? reject(error) : resolve(result))) export const remotePostRemoteRpcChannelMap = (configKeys: Array, request: RemotePostRemoteRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.postRemote', request) -export const remotePostRemoteRpcPromise = (request: RemotePostRemoteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.postRemote', request, (error, result) => error ? reject(error) : resolve(result))) +export const remotePostRemoteRpcPromise = (request: RemotePostRemoteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.postRemote', request, (error: RPCError, result: RemotePostRemoteResult) => error ? reject(error) : resolve(result))) export const remotePublishReadMessageRpcChannelMap = (configKeys: Array, request: RemotePublishReadMessageRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.publishReadMessage', request) -export const remotePublishReadMessageRpcPromise = (request: RemotePublishReadMessageRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.publishReadMessage', request, (error, result) => error ? reject(error) : resolve(result))) +export const remotePublishReadMessageRpcPromise = (request: RemotePublishReadMessageRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.publishReadMessage', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const remotePublishSetConversationStatusRpcChannelMap = (configKeys: Array, request: RemotePublishSetConversationStatusRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.publishSetConversationStatus', request) -export const remotePublishSetConversationStatusRpcPromise = (request: RemotePublishSetConversationStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.publishSetConversationStatus', request, (error, result) => error ? reject(error) : resolve(result))) +export const remotePublishSetConversationStatusRpcPromise = (request: RemotePublishSetConversationStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.publishSetConversationStatus', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const remoteRemoteNotificationSuccessfulRpcChannelMap = (configKeys: Array, request: RemoteRemoteNotificationSuccessfulRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.remoteNotificationSuccessful', request) -export const remoteRemoteNotificationSuccessfulRpcPromise = (request: RemoteRemoteNotificationSuccessfulRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.remoteNotificationSuccessful', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteRemoteNotificationSuccessfulRpcPromise = (request: RemoteRemoteNotificationSuccessfulRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.remoteNotificationSuccessful', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const remoteS3SignRpcChannelMap = (configKeys: Array, request: RemoteS3SignRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.s3Sign', request) -export const remoteS3SignRpcPromise = (request: RemoteS3SignRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.s3Sign', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteS3SignRpcPromise = (request: RemoteS3SignRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.s3Sign', request, (error: RPCError, result: RemoteS3SignResult) => error ? reject(error) : resolve(result))) export const remoteSetAppNotificationSettingsRpcChannelMap = (configKeys: Array, request: RemoteSetAppNotificationSettingsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.setAppNotificationSettings', request) -export const remoteSetAppNotificationSettingsRpcPromise = (request: RemoteSetAppNotificationSettingsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.setAppNotificationSettings', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteSetAppNotificationSettingsRpcPromise = (request: RemoteSetAppNotificationSettingsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.setAppNotificationSettings', request, (error: RPCError, result: RemoteSetAppNotificationSettingsResult) => error ? reject(error) : resolve(result))) export const remoteSetConversationStatusRpcChannelMap = (configKeys: Array, request: RemoteSetConversationStatusRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.SetConversationStatus', request) -export const remoteSetConversationStatusRpcPromise = (request: RemoteSetConversationStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.SetConversationStatus', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteSetConversationStatusRpcPromise = (request: RemoteSetConversationStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.SetConversationStatus', request, (error: RPCError, result: RemoteSetConversationStatusResult) => error ? reject(error) : resolve(result))) export const remoteSetGlobalAppNotificationSettingsRpcChannelMap = (configKeys: Array, request: RemoteSetGlobalAppNotificationSettingsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.setGlobalAppNotificationSettings', request) -export const remoteSetGlobalAppNotificationSettingsRpcPromise = (request: RemoteSetGlobalAppNotificationSettingsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.setGlobalAppNotificationSettings', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteSetGlobalAppNotificationSettingsRpcPromise = (request: RemoteSetGlobalAppNotificationSettingsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.setGlobalAppNotificationSettings', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const remoteSyncAllNotificationType = { state: 0, @@ -455,27 +455,27 @@ export const remoteSyncAllProtVers = { export const remoteSyncAllRpcChannelMap = (configKeys: Array, request: RemoteSyncAllRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.syncAll', request) -export const remoteSyncAllRpcPromise = (request: RemoteSyncAllRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.syncAll', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteSyncAllRpcPromise = (request: RemoteSyncAllRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.syncAll', request, (error: RPCError, result: RemoteSyncAllResult) => error ? reject(error) : resolve(result))) export const remoteSyncChatRpcChannelMap = (configKeys: Array, request: RemoteSyncChatRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.syncChat', request) -export const remoteSyncChatRpcPromise = (request: RemoteSyncChatRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.syncChat', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteSyncChatRpcPromise = (request: RemoteSyncChatRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.syncChat', request, (error: RPCError, result: RemoteSyncChatResult) => error ? reject(error) : resolve(result))) export const remoteSyncInboxRpcChannelMap = (configKeys: Array, request: RemoteSyncInboxRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.syncInbox', request) -export const remoteSyncInboxRpcPromise = (request: RemoteSyncInboxRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.syncInbox', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteSyncInboxRpcPromise = (request: RemoteSyncInboxRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.syncInbox', request, (error: RPCError, result: RemoteSyncInboxResult) => error ? reject(error) : resolve(result))) export const remoteTlfFinalizeRpcChannelMap = (configKeys: Array, request: RemoteTlfFinalizeRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.tlfFinalize', request) -export const remoteTlfFinalizeRpcPromise = (request: RemoteTlfFinalizeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.tlfFinalize', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteTlfFinalizeRpcPromise = (request: RemoteTlfFinalizeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.tlfFinalize', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const remoteTlfResolveRpcChannelMap = (configKeys: Array, request: RemoteTlfResolveRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.tlfResolve', request) -export const remoteTlfResolveRpcPromise = (request: RemoteTlfResolveRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.tlfResolve', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteTlfResolveRpcPromise = (request: RemoteTlfResolveRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.tlfResolve', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const remoteUpdateTypingRemoteRpcChannelMap = (configKeys: Array, request: RemoteUpdateTypingRemoteRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.updateTypingRemote', request) -export const remoteUpdateTypingRemoteRpcPromise = (request: RemoteUpdateTypingRemoteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.updateTypingRemote', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteUpdateTypingRemoteRpcPromise = (request: RemoteUpdateTypingRemoteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.updateTypingRemote', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export type AppNotificationSettingLocal = {|deviceType: Keybase1.DeviceType,kind: NotificationKind,enabled: Boolean,|} diff --git a/protocol/js/flow-types-gregor.js b/protocol/js/flow-types-gregor.js index f263b0af8014..7461d26400b4 100644 --- a/protocol/js/flow-types-gregor.js +++ b/protocol/js/flow-types-gregor.js @@ -4,72 +4,72 @@ // This file is auto-generated by client/protocol/Makefile. import engine, {EngineChannel} from '../../engine' -import type {Boolean, Bool, Bytes, Double, Int, Int64, Long, String, Uint, Uint64, WaitingHandlerType, RPCErrorHandler, CommonResponseHandler} from '../../engine/types' +import type {Boolean, Bool, Bytes, Double, Int, Int64, Long, String, Uint, Uint64, WaitingHandlerType, RPCErrorHandler, CommonResponseHandler, RPCError} from '../../engine/types' export const authAuthenticateSessionTokenRpcChannelMap = (configKeys: Array, request: AuthAuthenticateSessionTokenRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'gregor.1.auth.authenticateSessionToken', request) -export const authAuthenticateSessionTokenRpcPromise = (request: AuthAuthenticateSessionTokenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.auth.authenticateSessionToken', request, (error, result) => error ? reject(error) : resolve(result))) +export const authAuthenticateSessionTokenRpcPromise = (request: AuthAuthenticateSessionTokenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.auth.authenticateSessionToken', request, (error: RPCError, result: AuthAuthenticateSessionTokenResult) => error ? reject(error) : resolve(result))) export const authInternalCreateGregorSuperUserSessionTokenRpcChannelMap = (configKeys: Array, request: AuthInternalCreateGregorSuperUserSessionTokenRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'gregor.1.authInternal.createGregorSuperUserSessionToken', request) -export const authInternalCreateGregorSuperUserSessionTokenRpcPromise = (request: AuthInternalCreateGregorSuperUserSessionTokenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.authInternal.createGregorSuperUserSessionToken', request, (error, result) => error ? reject(error) : resolve(result))) +export const authInternalCreateGregorSuperUserSessionTokenRpcPromise = (request: AuthInternalCreateGregorSuperUserSessionTokenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.authInternal.createGregorSuperUserSessionToken', request, (error: RPCError, result: AuthInternalCreateGregorSuperUserSessionTokenResult) => error ? reject(error) : resolve(result))) export const authUpdateRevokeSessionIDsRpcChannelMap = (configKeys: Array, request: AuthUpdateRevokeSessionIDsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'gregor.1.authUpdate.revokeSessionIDs', request) -export const authUpdateRevokeSessionIDsRpcPromise = (request: AuthUpdateRevokeSessionIDsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.authUpdate.revokeSessionIDs', request, (error, result) => error ? reject(error) : resolve(result))) +export const authUpdateRevokeSessionIDsRpcPromise = (request: AuthUpdateRevokeSessionIDsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.authUpdate.revokeSessionIDs', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const incomingConsumeMessageMultiRpcChannelMap = (configKeys: Array, request: IncomingConsumeMessageMultiRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'gregor.1.incoming.consumeMessageMulti', request) -export const incomingConsumeMessageMultiRpcPromise = (request: IncomingConsumeMessageMultiRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.consumeMessageMulti', request, (error, result) => error ? reject(error) : resolve(result))) +export const incomingConsumeMessageMultiRpcPromise = (request: IncomingConsumeMessageMultiRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.consumeMessageMulti', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const incomingConsumeMessageRpcChannelMap = (configKeys: Array, request: IncomingConsumeMessageRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'gregor.1.incoming.consumeMessage', request) -export const incomingConsumeMessageRpcPromise = (request: IncomingConsumeMessageRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.consumeMessage', request, (error, result) => error ? reject(error) : resolve(result))) +export const incomingConsumeMessageRpcPromise = (request: IncomingConsumeMessageRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.consumeMessage', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const incomingConsumePublishMessageRpcChannelMap = (configKeys: Array, request: IncomingConsumePublishMessageRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'gregor.1.incoming.consumePublishMessage', request) -export const incomingConsumePublishMessageRpcPromise = (request: IncomingConsumePublishMessageRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.consumePublishMessage', request, (error, result) => error ? reject(error) : resolve(result))) +export const incomingConsumePublishMessageRpcPromise = (request: IncomingConsumePublishMessageRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.consumePublishMessage', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const incomingDescribeConnectedUsersInternalRpcChannelMap = (configKeys: Array, request: IncomingDescribeConnectedUsersInternalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'gregor.1.incoming.describeConnectedUsersInternal', request) -export const incomingDescribeConnectedUsersInternalRpcPromise = (request: IncomingDescribeConnectedUsersInternalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.describeConnectedUsersInternal', request, (error, result) => error ? reject(error) : resolve(result))) +export const incomingDescribeConnectedUsersInternalRpcPromise = (request: IncomingDescribeConnectedUsersInternalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.describeConnectedUsersInternal', request, (error: RPCError, result: IncomingDescribeConnectedUsersInternalResult) => error ? reject(error) : resolve(result))) export const incomingDescribeConnectedUsersRpcChannelMap = (configKeys: Array, request: IncomingDescribeConnectedUsersRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'gregor.1.incoming.describeConnectedUsers', request) -export const incomingDescribeConnectedUsersRpcPromise = (request: IncomingDescribeConnectedUsersRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.describeConnectedUsers', request, (error, result) => error ? reject(error) : resolve(result))) +export const incomingDescribeConnectedUsersRpcPromise = (request: IncomingDescribeConnectedUsersRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.describeConnectedUsers', request, (error: RPCError, result: IncomingDescribeConnectedUsersResult) => error ? reject(error) : resolve(result))) export const incomingPingRpcChannelMap = (configKeys: Array, request: IncomingPingRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'gregor.1.incoming.ping', request) -export const incomingPingRpcPromise = (request: IncomingPingRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.ping', request, (error, result) => error ? reject(error) : resolve(result))) +export const incomingPingRpcPromise = (request: IncomingPingRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.ping', request, (error: RPCError, result: IncomingPingResult) => error ? reject(error) : resolve(result))) export const incomingStateByCategoryPrefixRpcChannelMap = (configKeys: Array, request: IncomingStateByCategoryPrefixRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'gregor.1.incoming.stateByCategoryPrefix', request) -export const incomingStateByCategoryPrefixRpcPromise = (request: IncomingStateByCategoryPrefixRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.stateByCategoryPrefix', request, (error, result) => error ? reject(error) : resolve(result))) +export const incomingStateByCategoryPrefixRpcPromise = (request: IncomingStateByCategoryPrefixRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.stateByCategoryPrefix', request, (error: RPCError, result: IncomingStateByCategoryPrefixResult) => error ? reject(error) : resolve(result))) export const incomingStateRpcChannelMap = (configKeys: Array, request: IncomingStateRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'gregor.1.incoming.state', request) -export const incomingStateRpcPromise = (request: IncomingStateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.state', request, (error, result) => error ? reject(error) : resolve(result))) +export const incomingStateRpcPromise = (request: IncomingStateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.state', request, (error: RPCError, result: IncomingStateResult) => error ? reject(error) : resolve(result))) export const incomingSyncRpcChannelMap = (configKeys: Array, request: IncomingSyncRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'gregor.1.incoming.sync', request) -export const incomingSyncRpcPromise = (request: IncomingSyncRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.sync', request, (error, result) => error ? reject(error) : resolve(result))) +export const incomingSyncRpcPromise = (request: IncomingSyncRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.sync', request, (error: RPCError, result: IncomingSyncResult) => error ? reject(error) : resolve(result))) export const incomingVersionRpcChannelMap = (configKeys: Array, request: IncomingVersionRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'gregor.1.incoming.version', request) -export const incomingVersionRpcPromise = (request: IncomingVersionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.version', request, (error, result) => error ? reject(error) : resolve(result))) +export const incomingVersionRpcPromise = (request: IncomingVersionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.version', request, (error: RPCError, result: IncomingVersionResult) => error ? reject(error) : resolve(result))) export const outgoingBroadcastMessageRpcChannelMap = (configKeys: Array, request: OutgoingBroadcastMessageRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'gregor.1.outgoing.broadcastMessage', request) -export const outgoingBroadcastMessageRpcPromise = (request: OutgoingBroadcastMessageRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.outgoing.broadcastMessage', request, (error, result) => error ? reject(error) : resolve(result))) +export const outgoingBroadcastMessageRpcPromise = (request: OutgoingBroadcastMessageRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.outgoing.broadcastMessage', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const remindDeleteRemindersRpcChannelMap = (configKeys: Array, request: RemindDeleteRemindersRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'gregor.1.remind.deleteReminders', request) -export const remindDeleteRemindersRpcPromise = (request: RemindDeleteRemindersRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.remind.deleteReminders', request, (error, result) => error ? reject(error) : resolve(result))) +export const remindDeleteRemindersRpcPromise = (request: RemindDeleteRemindersRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.remind.deleteReminders', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const remindGetRemindersRpcChannelMap = (configKeys: Array, request: RemindGetRemindersRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'gregor.1.remind.getReminders', request) -export const remindGetRemindersRpcPromise = (request: RemindGetRemindersRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.remind.getReminders', request, (error, result) => error ? reject(error) : resolve(result))) +export const remindGetRemindersRpcPromise = (request: RemindGetRemindersRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.remind.getReminders', request, (error: RPCError, result: RemindGetRemindersResult) => error ? reject(error) : resolve(result))) export type AuthAuthenticateSessionTokenRpcParam = {|session: SessionToken,incomingCallMap?: IncomingCallMapType,waitingHandler?: WaitingHandlerType|} diff --git a/protocol/js/flow-types.js b/protocol/js/flow-types.js index 1c5c9415d420..f26af33bac5d 100644 --- a/protocol/js/flow-types.js +++ b/protocol/js/flow-types.js @@ -5,176 +5,176 @@ import * as Gregor1 from './flow-types-gregor' import engine, {EngineChannel} from '../../engine' -import type {Boolean, Bool, Bytes, Double, Int, Int64, Long, String, Uint, Uint64, WaitingHandlerType, RPCErrorHandler, CommonResponseHandler} from '../../engine/types' +import type {Boolean, Bool, Bytes, Double, Int, Int64, Long, String, Uint, Uint64, WaitingHandlerType, RPCErrorHandler, CommonResponseHandler, RPCError} from '../../engine/types' export const BTCRegisterBTCRpcChannelMap = (configKeys: Array, request: BTCRegisterBTCRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.BTC.registerBTC', request) -export const BTCRegisterBTCRpcPromise = (request: BTCRegisterBTCRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.BTC.registerBTC', request, (error, result) => error ? reject(error) : resolve(result))) +export const BTCRegisterBTCRpcPromise = (request: BTCRegisterBTCRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.BTC.registerBTC', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const KBFSGitCreateRepoRpcChannelMap = (configKeys: Array, request: KBFSGitCreateRepoRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.KBFSGit.createRepo', request) -export const KBFSGitCreateRepoRpcPromise = (request: KBFSGitCreateRepoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.KBFSGit.createRepo', request, (error, result) => error ? reject(error) : resolve(result))) +export const KBFSGitCreateRepoRpcPromise = (request: KBFSGitCreateRepoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.KBFSGit.createRepo', request, (error: RPCError, result: KBFSGitCreateRepoResult) => error ? reject(error) : resolve(result))) export const KBFSGitDeleteRepoRpcChannelMap = (configKeys: Array, request: KBFSGitDeleteRepoRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.KBFSGit.deleteRepo', request) -export const KBFSGitDeleteRepoRpcPromise = (request: KBFSGitDeleteRepoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.KBFSGit.deleteRepo', request, (error, result) => error ? reject(error) : resolve(result))) +export const KBFSGitDeleteRepoRpcPromise = (request: KBFSGitDeleteRepoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.KBFSGit.deleteRepo', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const KBFSGitGcRpcChannelMap = (configKeys: Array, request: KBFSGitGcRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.KBFSGit.gc', request) -export const KBFSGitGcRpcPromise = (request: KBFSGitGcRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.KBFSGit.gc', request, (error, result) => error ? reject(error) : resolve(result))) +export const KBFSGitGcRpcPromise = (request: KBFSGitGcRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.KBFSGit.gc', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const Kex2Provisionee2DidCounterSign2RpcChannelMap = (configKeys: Array, request: Kex2Provisionee2DidCounterSign2RpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.Kex2Provisionee2.didCounterSign2', request) -export const Kex2Provisionee2DidCounterSign2RpcPromise = (request: Kex2Provisionee2DidCounterSign2RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.Kex2Provisionee2.didCounterSign2', request, (error, result) => error ? reject(error) : resolve(result))) +export const Kex2Provisionee2DidCounterSign2RpcPromise = (request: Kex2Provisionee2DidCounterSign2RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.Kex2Provisionee2.didCounterSign2', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const Kex2Provisionee2Hello2RpcChannelMap = (configKeys: Array, request: Kex2Provisionee2Hello2RpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.Kex2Provisionee2.hello2', request) -export const Kex2Provisionee2Hello2RpcPromise = (request: Kex2Provisionee2Hello2RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.Kex2Provisionee2.hello2', request, (error, result) => error ? reject(error) : resolve(result))) +export const Kex2Provisionee2Hello2RpcPromise = (request: Kex2Provisionee2Hello2RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.Kex2Provisionee2.hello2', request, (error: RPCError, result: Kex2Provisionee2Hello2Result) => error ? reject(error) : resolve(result))) export const Kex2ProvisioneeDidCounterSignRpcChannelMap = (configKeys: Array, request: Kex2ProvisioneeDidCounterSignRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.Kex2Provisionee.didCounterSign', request) -export const Kex2ProvisioneeDidCounterSignRpcPromise = (request: Kex2ProvisioneeDidCounterSignRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.Kex2Provisionee.didCounterSign', request, (error, result) => error ? reject(error) : resolve(result))) +export const Kex2ProvisioneeDidCounterSignRpcPromise = (request: Kex2ProvisioneeDidCounterSignRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.Kex2Provisionee.didCounterSign', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const Kex2ProvisioneeHelloRpcChannelMap = (configKeys: Array, request: Kex2ProvisioneeHelloRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.Kex2Provisionee.hello', request) -export const Kex2ProvisioneeHelloRpcPromise = (request: Kex2ProvisioneeHelloRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.Kex2Provisionee.hello', request, (error, result) => error ? reject(error) : resolve(result))) +export const Kex2ProvisioneeHelloRpcPromise = (request: Kex2ProvisioneeHelloRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.Kex2Provisionee.hello', request, (error: RPCError, result: Kex2ProvisioneeHelloResult) => error ? reject(error) : resolve(result))) export const Kex2ProvisionerKexStartRpcChannelMap = (configKeys: Array, request: Kex2ProvisionerKexStartRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.Kex2Provisioner.kexStart', request) -export const Kex2ProvisionerKexStartRpcPromise = (request: Kex2ProvisionerKexStartRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.Kex2Provisioner.kexStart', request, (error, result) => error ? reject(error) : resolve(result))) +export const Kex2ProvisionerKexStartRpcPromise = (request: Kex2ProvisionerKexStartRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.Kex2Provisioner.kexStart', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const NotifyFSRequestFSEditListRequestRpcChannelMap = (configKeys: Array, request: NotifyFSRequestFSEditListRequestRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.NotifyFSRequest.FSEditListRequest', request) -export const NotifyFSRequestFSEditListRequestRpcPromise = (request: NotifyFSRequestFSEditListRequestRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.NotifyFSRequest.FSEditListRequest', request, (error, result) => error ? reject(error) : resolve(result))) +export const NotifyFSRequestFSEditListRequestRpcPromise = (request: NotifyFSRequestFSEditListRequestRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.NotifyFSRequest.FSEditListRequest', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const NotifyFSRequestFSSyncStatusRequestRpcChannelMap = (configKeys: Array, request: NotifyFSRequestFSSyncStatusRequestRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.NotifyFSRequest.FSSyncStatusRequest', request) -export const NotifyFSRequestFSSyncStatusRequestRpcPromise = (request: NotifyFSRequestFSSyncStatusRequestRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.NotifyFSRequest.FSSyncStatusRequest', request, (error, result) => error ? reject(error) : resolve(result))) +export const NotifyFSRequestFSSyncStatusRequestRpcPromise = (request: NotifyFSRequestFSSyncStatusRequestRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.NotifyFSRequest.FSSyncStatusRequest', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const ScanProofsScanProofsRpcChannelMap = (configKeys: Array, request: ScanProofsScanProofsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.ScanProofs.scanProofs', request) -export const ScanProofsScanProofsRpcPromise = (request: ScanProofsScanProofsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ScanProofs.scanProofs', request, (error, result) => error ? reject(error) : resolve(result))) +export const ScanProofsScanProofsRpcPromise = (request: ScanProofsScanProofsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ScanProofs.scanProofs', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const SecretKeysGetSecretKeysRpcChannelMap = (configKeys: Array, request: SecretKeysGetSecretKeysRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SecretKeys.getSecretKeys', request) -export const SecretKeysGetSecretKeysRpcPromise = (request: SecretKeysGetSecretKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SecretKeys.getSecretKeys', request, (error, result) => error ? reject(error) : resolve(result))) +export const SecretKeysGetSecretKeysRpcPromise = (request: SecretKeysGetSecretKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SecretKeys.getSecretKeys', request, (error: RPCError, result: SecretKeysGetSecretKeysResult) => error ? reject(error) : resolve(result))) export const SimpleFSSimpleFSCancelRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSCancelRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSCancel', request) -export const SimpleFSSimpleFSCancelRpcPromise = (request: SimpleFSSimpleFSCancelRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSCancel', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSCancelRpcPromise = (request: SimpleFSSimpleFSCancelRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSCancel', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const SimpleFSSimpleFSCheckRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSCheckRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSCheck', request) -export const SimpleFSSimpleFSCheckRpcPromise = (request: SimpleFSSimpleFSCheckRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSCheck', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSCheckRpcPromise = (request: SimpleFSSimpleFSCheckRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSCheck', request, (error: RPCError, result: SimpleFSSimpleFSCheckResult) => error ? reject(error) : resolve(result))) export const SimpleFSSimpleFSCloseRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSCloseRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSClose', request) -export const SimpleFSSimpleFSCloseRpcPromise = (request: SimpleFSSimpleFSCloseRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSClose', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSCloseRpcPromise = (request: SimpleFSSimpleFSCloseRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSClose', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const SimpleFSSimpleFSCopyRecursiveRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSCopyRecursiveRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSCopyRecursive', request) -export const SimpleFSSimpleFSCopyRecursiveRpcPromise = (request: SimpleFSSimpleFSCopyRecursiveRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSCopyRecursive', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSCopyRecursiveRpcPromise = (request: SimpleFSSimpleFSCopyRecursiveRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSCopyRecursive', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const SimpleFSSimpleFSCopyRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSCopyRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSCopy', request) -export const SimpleFSSimpleFSCopyRpcPromise = (request: SimpleFSSimpleFSCopyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSCopy', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSCopyRpcPromise = (request: SimpleFSSimpleFSCopyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSCopy', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const SimpleFSSimpleFSGetOpsRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSGetOpsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSGetOps', request) -export const SimpleFSSimpleFSGetOpsRpcPromise = (request: SimpleFSSimpleFSGetOpsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSGetOps', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSGetOpsRpcPromise = (request: SimpleFSSimpleFSGetOpsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSGetOps', request, (error: RPCError, result: SimpleFSSimpleFSGetOpsResult) => error ? reject(error) : resolve(result))) export const SimpleFSSimpleFSListRecursiveRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSListRecursiveRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSListRecursive', request) -export const SimpleFSSimpleFSListRecursiveRpcPromise = (request: SimpleFSSimpleFSListRecursiveRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSListRecursive', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSListRecursiveRpcPromise = (request: SimpleFSSimpleFSListRecursiveRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSListRecursive', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const SimpleFSSimpleFSListRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSListRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSList', request) -export const SimpleFSSimpleFSListRpcPromise = (request: SimpleFSSimpleFSListRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSList', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSListRpcPromise = (request: SimpleFSSimpleFSListRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSList', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const SimpleFSSimpleFSMakeOpidRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSMakeOpidRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSMakeOpid', request) -export const SimpleFSSimpleFSMakeOpidRpcPromise = (request: SimpleFSSimpleFSMakeOpidRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSMakeOpid', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSMakeOpidRpcPromise = (request: SimpleFSSimpleFSMakeOpidRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSMakeOpid', request, (error: RPCError, result: SimpleFSSimpleFSMakeOpidResult) => error ? reject(error) : resolve(result))) export const SimpleFSSimpleFSMoveRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSMoveRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSMove', request) -export const SimpleFSSimpleFSMoveRpcPromise = (request: SimpleFSSimpleFSMoveRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSMove', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSMoveRpcPromise = (request: SimpleFSSimpleFSMoveRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSMove', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const SimpleFSSimpleFSOpenRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSOpenRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSOpen', request) -export const SimpleFSSimpleFSOpenRpcPromise = (request: SimpleFSSimpleFSOpenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSOpen', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSOpenRpcPromise = (request: SimpleFSSimpleFSOpenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSOpen', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const SimpleFSSimpleFSReadListRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSReadListRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSReadList', request) -export const SimpleFSSimpleFSReadListRpcPromise = (request: SimpleFSSimpleFSReadListRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSReadList', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSReadListRpcPromise = (request: SimpleFSSimpleFSReadListRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSReadList', request, (error: RPCError, result: SimpleFSSimpleFSReadListResult) => error ? reject(error) : resolve(result))) export const SimpleFSSimpleFSReadRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSReadRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSRead', request) -export const SimpleFSSimpleFSReadRpcPromise = (request: SimpleFSSimpleFSReadRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSRead', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSReadRpcPromise = (request: SimpleFSSimpleFSReadRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSRead', request, (error: RPCError, result: SimpleFSSimpleFSReadResult) => error ? reject(error) : resolve(result))) export const SimpleFSSimpleFSRemoveRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSRemoveRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSRemove', request) -export const SimpleFSSimpleFSRemoveRpcPromise = (request: SimpleFSSimpleFSRemoveRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSRemove', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSRemoveRpcPromise = (request: SimpleFSSimpleFSRemoveRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSRemove', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const SimpleFSSimpleFSRenameRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSRenameRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSRename', request) -export const SimpleFSSimpleFSRenameRpcPromise = (request: SimpleFSSimpleFSRenameRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSRename', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSRenameRpcPromise = (request: SimpleFSSimpleFSRenameRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSRename', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const SimpleFSSimpleFSSetStatRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSSetStatRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSSetStat', request) -export const SimpleFSSimpleFSSetStatRpcPromise = (request: SimpleFSSimpleFSSetStatRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSSetStat', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSSetStatRpcPromise = (request: SimpleFSSimpleFSSetStatRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSSetStat', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const SimpleFSSimpleFSStatRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSStatRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSStat', request) -export const SimpleFSSimpleFSStatRpcPromise = (request: SimpleFSSimpleFSStatRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSStat', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSStatRpcPromise = (request: SimpleFSSimpleFSStatRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSStat', request, (error: RPCError, result: SimpleFSSimpleFSStatResult) => error ? reject(error) : resolve(result))) export const SimpleFSSimpleFSWaitRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSWaitRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSWait', request) -export const SimpleFSSimpleFSWaitRpcPromise = (request: SimpleFSSimpleFSWaitRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSWait', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSWaitRpcPromise = (request: SimpleFSSimpleFSWaitRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSWait', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const SimpleFSSimpleFSWriteRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSWriteRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSWrite', request) -export const SimpleFSSimpleFSWriteRpcPromise = (request: SimpleFSSimpleFSWriteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSWrite', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSWriteRpcPromise = (request: SimpleFSSimpleFSWriteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSWrite', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const accountEmailChangeRpcChannelMap = (configKeys: Array, request: AccountEmailChangeRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.account.emailChange', request) -export const accountEmailChangeRpcPromise = (request: AccountEmailChangeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.account.emailChange', request, (error, result) => error ? reject(error) : resolve(result))) +export const accountEmailChangeRpcPromise = (request: AccountEmailChangeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.account.emailChange', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const accountHasServerKeysRpcChannelMap = (configKeys: Array, request: AccountHasServerKeysRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.account.hasServerKeys', request) -export const accountHasServerKeysRpcPromise = (request: AccountHasServerKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.account.hasServerKeys', request, (error, result) => error ? reject(error) : resolve(result))) +export const accountHasServerKeysRpcPromise = (request: AccountHasServerKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.account.hasServerKeys', request, (error: RPCError, result: AccountHasServerKeysResult) => error ? reject(error) : resolve(result))) export const accountPassphraseChangeRpcChannelMap = (configKeys: Array, request: AccountPassphraseChangeRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.account.passphraseChange', request) -export const accountPassphraseChangeRpcPromise = (request: AccountPassphraseChangeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.account.passphraseChange', request, (error, result) => error ? reject(error) : resolve(result))) +export const accountPassphraseChangeRpcPromise = (request: AccountPassphraseChangeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.account.passphraseChange', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const accountPassphrasePromptRpcChannelMap = (configKeys: Array, request: AccountPassphrasePromptRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.account.passphrasePrompt', request) -export const accountPassphrasePromptRpcPromise = (request: AccountPassphrasePromptRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.account.passphrasePrompt', request, (error, result) => error ? reject(error) : resolve(result))) +export const accountPassphrasePromptRpcPromise = (request: AccountPassphrasePromptRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.account.passphrasePrompt', request, (error: RPCError, result: AccountPassphrasePromptResult) => error ? reject(error) : resolve(result))) export const accountResetAccountRpcChannelMap = (configKeys: Array, request: AccountResetAccountRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.account.resetAccount', request) -export const accountResetAccountRpcPromise = (request: AccountResetAccountRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.account.resetAccount', request, (error, result) => error ? reject(error) : resolve(result))) +export const accountResetAccountRpcPromise = (request: AccountResetAccountRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.account.resetAccount', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const apiserverDeleteRpcChannelMap = (configKeys: Array, request: ApiserverDeleteRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.apiserver.Delete', request) -export const apiserverDeleteRpcPromise = (request: ApiserverDeleteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.apiserver.Delete', request, (error, result) => error ? reject(error) : resolve(result))) +export const apiserverDeleteRpcPromise = (request: ApiserverDeleteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.apiserver.Delete', request, (error: RPCError, result: ApiserverDeleteResult) => error ? reject(error) : resolve(result))) export const apiserverGetRpcChannelMap = (configKeys: Array, request: ApiserverGetRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.apiserver.Get', request) -export const apiserverGetRpcPromise = (request: ApiserverGetRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.apiserver.Get', request, (error, result) => error ? reject(error) : resolve(result))) +export const apiserverGetRpcPromise = (request: ApiserverGetRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.apiserver.Get', request, (error: RPCError, result: ApiserverGetResult) => error ? reject(error) : resolve(result))) export const apiserverGetWithSessionRpcChannelMap = (configKeys: Array, request: ApiserverGetWithSessionRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.apiserver.GetWithSession', request) -export const apiserverGetWithSessionRpcPromise = (request: ApiserverGetWithSessionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.apiserver.GetWithSession', request, (error, result) => error ? reject(error) : resolve(result))) +export const apiserverGetWithSessionRpcPromise = (request: ApiserverGetWithSessionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.apiserver.GetWithSession', request, (error: RPCError, result: ApiserverGetWithSessionResult) => error ? reject(error) : resolve(result))) export const apiserverPostJSONRpcChannelMap = (configKeys: Array, request: ApiserverPostJSONRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.apiserver.PostJSON', request) -export const apiserverPostJSONRpcPromise = (request: ApiserverPostJSONRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.apiserver.PostJSON', request, (error, result) => error ? reject(error) : resolve(result))) +export const apiserverPostJSONRpcPromise = (request: ApiserverPostJSONRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.apiserver.PostJSON', request, (error: RPCError, result: ApiserverPostJSONResult) => error ? reject(error) : resolve(result))) export const apiserverPostRpcChannelMap = (configKeys: Array, request: ApiserverPostRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.apiserver.Post', request) -export const apiserverPostRpcPromise = (request: ApiserverPostRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.apiserver.Post', request, (error, result) => error ? reject(error) : resolve(result))) +export const apiserverPostRpcPromise = (request: ApiserverPostRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.apiserver.Post', request, (error: RPCError, result: ApiserverPostResult) => error ? reject(error) : resolve(result))) export const appStateAppState = { foreground: 0, @@ -185,7 +185,7 @@ export const appStateAppState = { export const appStateUpdateAppStateRpcChannelMap = (configKeys: Array, request: AppStateUpdateAppStateRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.appState.updateAppState', request) -export const appStateUpdateAppStateRpcPromise = (request: AppStateUpdateAppStateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.appState.updateAppState', request, (error, result) => error ? reject(error) : resolve(result))) +export const appStateUpdateAppStateRpcPromise = (request: AppStateUpdateAppStateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.appState.updateAppState', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const backendCommonBlockType = { data: 0, @@ -195,59 +195,59 @@ export const backendCommonBlockType = { export const badgerGetBadgeStateRpcChannelMap = (configKeys: Array, request: BadgerGetBadgeStateRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.badger.getBadgeState', request) -export const badgerGetBadgeStateRpcPromise = (request: BadgerGetBadgeStateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.badger.getBadgeState', request, (error, result) => error ? reject(error) : resolve(result))) +export const badgerGetBadgeStateRpcPromise = (request: BadgerGetBadgeStateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.badger.getBadgeState', request, (error: RPCError, result: BadgerGetBadgeStateResult) => error ? reject(error) : resolve(result))) export const blockAddReferenceRpcChannelMap = (configKeys: Array, request: BlockAddReferenceRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.block.addReference', request) -export const blockAddReferenceRpcPromise = (request: BlockAddReferenceRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.addReference', request, (error, result) => error ? reject(error) : resolve(result))) +export const blockAddReferenceRpcPromise = (request: BlockAddReferenceRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.addReference', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const blockArchiveReferenceRpcChannelMap = (configKeys: Array, request: BlockArchiveReferenceRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.block.archiveReference', request) -export const blockArchiveReferenceRpcPromise = (request: BlockArchiveReferenceRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.archiveReference', request, (error, result) => error ? reject(error) : resolve(result))) +export const blockArchiveReferenceRpcPromise = (request: BlockArchiveReferenceRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.archiveReference', request, (error: RPCError, result: BlockArchiveReferenceResult) => error ? reject(error) : resolve(result))) export const blockArchiveReferenceWithCountRpcChannelMap = (configKeys: Array, request: BlockArchiveReferenceWithCountRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.block.archiveReferenceWithCount', request) -export const blockArchiveReferenceWithCountRpcPromise = (request: BlockArchiveReferenceWithCountRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.archiveReferenceWithCount', request, (error, result) => error ? reject(error) : resolve(result))) +export const blockArchiveReferenceWithCountRpcPromise = (request: BlockArchiveReferenceWithCountRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.archiveReferenceWithCount', request, (error: RPCError, result: BlockArchiveReferenceWithCountResult) => error ? reject(error) : resolve(result))) export const blockAuthenticateSessionRpcChannelMap = (configKeys: Array, request: BlockAuthenticateSessionRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.block.authenticateSession', request) -export const blockAuthenticateSessionRpcPromise = (request: BlockAuthenticateSessionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.authenticateSession', request, (error, result) => error ? reject(error) : resolve(result))) +export const blockAuthenticateSessionRpcPromise = (request: BlockAuthenticateSessionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.authenticateSession', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const blockBlockPingRpcChannelMap = (configKeys: Array, request: BlockBlockPingRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.block.blockPing', request) -export const blockBlockPingRpcPromise = (request: BlockBlockPingRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.blockPing', request, (error, result) => error ? reject(error) : resolve(result))) +export const blockBlockPingRpcPromise = (request: BlockBlockPingRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.blockPing', request, (error: RPCError, result: BlockBlockPingResult) => error ? reject(error) : resolve(result))) export const blockDelReferenceRpcChannelMap = (configKeys: Array, request: BlockDelReferenceRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.block.delReference', request) -export const blockDelReferenceRpcPromise = (request: BlockDelReferenceRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.delReference', request, (error, result) => error ? reject(error) : resolve(result))) +export const blockDelReferenceRpcPromise = (request: BlockDelReferenceRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.delReference', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const blockDelReferenceWithCountRpcChannelMap = (configKeys: Array, request: BlockDelReferenceWithCountRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.block.delReferenceWithCount', request) -export const blockDelReferenceWithCountRpcPromise = (request: BlockDelReferenceWithCountRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.delReferenceWithCount', request, (error, result) => error ? reject(error) : resolve(result))) +export const blockDelReferenceWithCountRpcPromise = (request: BlockDelReferenceWithCountRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.delReferenceWithCount', request, (error: RPCError, result: BlockDelReferenceWithCountResult) => error ? reject(error) : resolve(result))) export const blockGetBlockRpcChannelMap = (configKeys: Array, request: BlockGetBlockRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.block.getBlock', request) -export const blockGetBlockRpcPromise = (request: BlockGetBlockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.getBlock', request, (error, result) => error ? reject(error) : resolve(result))) +export const blockGetBlockRpcPromise = (request: BlockGetBlockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.getBlock', request, (error: RPCError, result: BlockGetBlockResult) => error ? reject(error) : resolve(result))) export const blockGetSessionChallengeRpcChannelMap = (configKeys: Array, request: BlockGetSessionChallengeRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.block.getSessionChallenge', request) -export const blockGetSessionChallengeRpcPromise = (request: BlockGetSessionChallengeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.getSessionChallenge', request, (error, result) => error ? reject(error) : resolve(result))) +export const blockGetSessionChallengeRpcPromise = (request: BlockGetSessionChallengeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.getSessionChallenge', request, (error: RPCError, result: BlockGetSessionChallengeResult) => error ? reject(error) : resolve(result))) export const blockGetTeamQuotaInfoRpcChannelMap = (configKeys: Array, request: BlockGetTeamQuotaInfoRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.block.getTeamQuotaInfo', request) -export const blockGetTeamQuotaInfoRpcPromise = (request: BlockGetTeamQuotaInfoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.getTeamQuotaInfo', request, (error, result) => error ? reject(error) : resolve(result))) +export const blockGetTeamQuotaInfoRpcPromise = (request: BlockGetTeamQuotaInfoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.getTeamQuotaInfo', request, (error: RPCError, result: BlockGetTeamQuotaInfoResult) => error ? reject(error) : resolve(result))) export const blockGetUserQuotaInfoRpcChannelMap = (configKeys: Array, request: BlockGetUserQuotaInfoRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.block.getUserQuotaInfo', request) -export const blockGetUserQuotaInfoRpcPromise = (request: BlockGetUserQuotaInfoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.getUserQuotaInfo', request, (error, result) => error ? reject(error) : resolve(result))) +export const blockGetUserQuotaInfoRpcPromise = (request: BlockGetUserQuotaInfoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.getUserQuotaInfo', request, (error: RPCError, result: BlockGetUserQuotaInfoResult) => error ? reject(error) : resolve(result))) export const blockPutBlockAgainRpcChannelMap = (configKeys: Array, request: BlockPutBlockAgainRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.block.putBlockAgain', request) -export const blockPutBlockAgainRpcPromise = (request: BlockPutBlockAgainRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.putBlockAgain', request, (error, result) => error ? reject(error) : resolve(result))) +export const blockPutBlockAgainRpcPromise = (request: BlockPutBlockAgainRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.putBlockAgain', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const blockPutBlockRpcChannelMap = (configKeys: Array, request: BlockPutBlockRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.block.putBlock', request) -export const blockPutBlockRpcPromise = (request: BlockPutBlockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.putBlock', request, (error, result) => error ? reject(error) : resolve(result))) +export const blockPutBlockRpcPromise = (request: BlockPutBlockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.putBlock', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const commonClientType = { none: 0, @@ -310,11 +310,11 @@ export const commonUserOrTeamResult = { export const configCheckAPIServerOutOfDateWarningRpcChannelMap = (configKeys: Array, request: ConfigCheckAPIServerOutOfDateWarningRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.config.checkAPIServerOutOfDateWarning', request) -export const configCheckAPIServerOutOfDateWarningRpcPromise = (request: ConfigCheckAPIServerOutOfDateWarningRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.checkAPIServerOutOfDateWarning', request, (error, result) => error ? reject(error) : resolve(result))) +export const configCheckAPIServerOutOfDateWarningRpcPromise = (request: ConfigCheckAPIServerOutOfDateWarningRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.checkAPIServerOutOfDateWarning', request, (error: RPCError, result: ConfigCheckAPIServerOutOfDateWarningResult) => error ? reject(error) : resolve(result))) export const configClearValueRpcChannelMap = (configKeys: Array, request: ConfigClearValueRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.config.clearValue', request) -export const configClearValueRpcPromise = (request: ConfigClearValueRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.clearValue', request, (error, result) => error ? reject(error) : resolve(result))) +export const configClearValueRpcPromise = (request: ConfigClearValueRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.clearValue', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const configForkType = { none: 0, @@ -326,43 +326,43 @@ export const configForkType = { export const configGetBootstrapStatusRpcChannelMap = (configKeys: Array, request: ConfigGetBootstrapStatusRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.config.getBootstrapStatus', request) -export const configGetBootstrapStatusRpcPromise = (request: ConfigGetBootstrapStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.getBootstrapStatus', request, (error, result) => error ? reject(error) : resolve(result))) +export const configGetBootstrapStatusRpcPromise = (request: ConfigGetBootstrapStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.getBootstrapStatus', request, (error: RPCError, result: ConfigGetBootstrapStatusResult) => error ? reject(error) : resolve(result))) export const configGetConfigRpcChannelMap = (configKeys: Array, request: ConfigGetConfigRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.config.getConfig', request) -export const configGetConfigRpcPromise = (request: ConfigGetConfigRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.getConfig', request, (error, result) => error ? reject(error) : resolve(result))) +export const configGetConfigRpcPromise = (request: ConfigGetConfigRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.getConfig', request, (error: RPCError, result: ConfigGetConfigResult) => error ? reject(error) : resolve(result))) export const configGetCurrentStatusRpcChannelMap = (configKeys: Array, request: ConfigGetCurrentStatusRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.config.getCurrentStatus', request) -export const configGetCurrentStatusRpcPromise = (request: ConfigGetCurrentStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.getCurrentStatus', request, (error, result) => error ? reject(error) : resolve(result))) +export const configGetCurrentStatusRpcPromise = (request: ConfigGetCurrentStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.getCurrentStatus', request, (error: RPCError, result: ConfigGetCurrentStatusResult) => error ? reject(error) : resolve(result))) export const configGetExtendedStatusRpcChannelMap = (configKeys: Array, request: ConfigGetExtendedStatusRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.config.getExtendedStatus', request) -export const configGetExtendedStatusRpcPromise = (request: ConfigGetExtendedStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.getExtendedStatus', request, (error, result) => error ? reject(error) : resolve(result))) +export const configGetExtendedStatusRpcPromise = (request: ConfigGetExtendedStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.getExtendedStatus', request, (error: RPCError, result: ConfigGetExtendedStatusResult) => error ? reject(error) : resolve(result))) export const configGetValueRpcChannelMap = (configKeys: Array, request: ConfigGetValueRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.config.getValue', request) -export const configGetValueRpcPromise = (request: ConfigGetValueRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.getValue', request, (error, result) => error ? reject(error) : resolve(result))) +export const configGetValueRpcPromise = (request: ConfigGetValueRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.getValue', request, (error: RPCError, result: ConfigGetValueResult) => error ? reject(error) : resolve(result))) export const configHelloIAmRpcChannelMap = (configKeys: Array, request: ConfigHelloIAmRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.config.helloIAm', request) -export const configHelloIAmRpcPromise = (request: ConfigHelloIAmRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.helloIAm', request, (error, result) => error ? reject(error) : resolve(result))) +export const configHelloIAmRpcPromise = (request: ConfigHelloIAmRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.helloIAm', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const configSetPathRpcChannelMap = (configKeys: Array, request: ConfigSetPathRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.config.setPath', request) -export const configSetPathRpcPromise = (request: ConfigSetPathRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.setPath', request, (error, result) => error ? reject(error) : resolve(result))) +export const configSetPathRpcPromise = (request: ConfigSetPathRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.setPath', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const configSetUserConfigRpcChannelMap = (configKeys: Array, request: ConfigSetUserConfigRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.config.setUserConfig', request) -export const configSetUserConfigRpcPromise = (request: ConfigSetUserConfigRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.setUserConfig', request, (error, result) => error ? reject(error) : resolve(result))) +export const configSetUserConfigRpcPromise = (request: ConfigSetUserConfigRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.setUserConfig', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const configSetValueRpcChannelMap = (configKeys: Array, request: ConfigSetValueRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.config.setValue', request) -export const configSetValueRpcPromise = (request: ConfigSetValueRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.setValue', request, (error, result) => error ? reject(error) : resolve(result))) +export const configSetValueRpcPromise = (request: ConfigSetValueRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.setValue', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const configWaitForClientRpcChannelMap = (configKeys: Array, request: ConfigWaitForClientRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.config.waitForClient', request) -export const configWaitForClientRpcPromise = (request: ConfigWaitForClientRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.waitForClient', request, (error, result) => error ? reject(error) : resolve(result))) +export const configWaitForClientRpcPromise = (request: ConfigWaitForClientRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.waitForClient', request, (error: RPCError, result: ConfigWaitForClientResult) => error ? reject(error) : resolve(result))) export const constantsStatusCode = { scok: 0, @@ -508,47 +508,47 @@ export const constantsStatusCode = { export const cryptoSignED25519ForKBFSRpcChannelMap = (configKeys: Array, request: CryptoSignED25519ForKBFSRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.crypto.signED25519ForKBFS', request) -export const cryptoSignED25519ForKBFSRpcPromise = (request: CryptoSignED25519ForKBFSRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.crypto.signED25519ForKBFS', request, (error, result) => error ? reject(error) : resolve(result))) +export const cryptoSignED25519ForKBFSRpcPromise = (request: CryptoSignED25519ForKBFSRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.crypto.signED25519ForKBFS', request, (error: RPCError, result: CryptoSignED25519ForKBFSResult) => error ? reject(error) : resolve(result))) export const cryptoSignED25519RpcChannelMap = (configKeys: Array, request: CryptoSignED25519RpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.crypto.signED25519', request) -export const cryptoSignED25519RpcPromise = (request: CryptoSignED25519RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.crypto.signED25519', request, (error, result) => error ? reject(error) : resolve(result))) +export const cryptoSignED25519RpcPromise = (request: CryptoSignED25519RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.crypto.signED25519', request, (error: RPCError, result: CryptoSignED25519Result) => error ? reject(error) : resolve(result))) export const cryptoSignToStringRpcChannelMap = (configKeys: Array, request: CryptoSignToStringRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.crypto.signToString', request) -export const cryptoSignToStringRpcPromise = (request: CryptoSignToStringRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.crypto.signToString', request, (error, result) => error ? reject(error) : resolve(result))) +export const cryptoSignToStringRpcPromise = (request: CryptoSignToStringRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.crypto.signToString', request, (error: RPCError, result: CryptoSignToStringResult) => error ? reject(error) : resolve(result))) export const cryptoUnboxBytes32AnyRpcChannelMap = (configKeys: Array, request: CryptoUnboxBytes32AnyRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.crypto.unboxBytes32Any', request) -export const cryptoUnboxBytes32AnyRpcPromise = (request: CryptoUnboxBytes32AnyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.crypto.unboxBytes32Any', request, (error, result) => error ? reject(error) : resolve(result))) +export const cryptoUnboxBytes32AnyRpcPromise = (request: CryptoUnboxBytes32AnyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.crypto.unboxBytes32Any', request, (error: RPCError, result: CryptoUnboxBytes32AnyResult) => error ? reject(error) : resolve(result))) export const cryptoUnboxBytes32RpcChannelMap = (configKeys: Array, request: CryptoUnboxBytes32RpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.crypto.unboxBytes32', request) -export const cryptoUnboxBytes32RpcPromise = (request: CryptoUnboxBytes32RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.crypto.unboxBytes32', request, (error, result) => error ? reject(error) : resolve(result))) +export const cryptoUnboxBytes32RpcPromise = (request: CryptoUnboxBytes32RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.crypto.unboxBytes32', request, (error: RPCError, result: CryptoUnboxBytes32Result) => error ? reject(error) : resolve(result))) export const cryptocurrencyRegisterAddressRpcChannelMap = (configKeys: Array, request: CryptocurrencyRegisterAddressRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.cryptocurrency.registerAddress', request) -export const cryptocurrencyRegisterAddressRpcPromise = (request: CryptocurrencyRegisterAddressRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.cryptocurrency.registerAddress', request, (error, result) => error ? reject(error) : resolve(result))) +export const cryptocurrencyRegisterAddressRpcPromise = (request: CryptocurrencyRegisterAddressRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.cryptocurrency.registerAddress', request, (error: RPCError, result: CryptocurrencyRegisterAddressResult) => error ? reject(error) : resolve(result))) export const ctlAppExitRpcChannelMap = (configKeys: Array, request: CtlAppExitRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.ctl.appExit', request) -export const ctlAppExitRpcPromise = (request: CtlAppExitRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ctl.appExit', request, (error, result) => error ? reject(error) : resolve(result))) +export const ctlAppExitRpcPromise = (request: CtlAppExitRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ctl.appExit', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const ctlDbDeleteRpcChannelMap = (configKeys: Array, request: CtlDbDeleteRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.ctl.dbDelete', request) -export const ctlDbDeleteRpcPromise = (request: CtlDbDeleteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ctl.dbDelete', request, (error, result) => error ? reject(error) : resolve(result))) +export const ctlDbDeleteRpcPromise = (request: CtlDbDeleteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ctl.dbDelete', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const ctlDbGetRpcChannelMap = (configKeys: Array, request: CtlDbGetRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.ctl.dbGet', request) -export const ctlDbGetRpcPromise = (request: CtlDbGetRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ctl.dbGet', request, (error, result) => error ? reject(error) : resolve(result))) +export const ctlDbGetRpcPromise = (request: CtlDbGetRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ctl.dbGet', request, (error: RPCError, result: CtlDbGetResult) => error ? reject(error) : resolve(result))) export const ctlDbNukeRpcChannelMap = (configKeys: Array, request: CtlDbNukeRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.ctl.dbNuke', request) -export const ctlDbNukeRpcPromise = (request: CtlDbNukeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ctl.dbNuke', request, (error, result) => error ? reject(error) : resolve(result))) +export const ctlDbNukeRpcPromise = (request: CtlDbNukeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ctl.dbNuke', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const ctlDbPutRpcChannelMap = (configKeys: Array, request: CtlDbPutRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.ctl.dbPut', request) -export const ctlDbPutRpcPromise = (request: CtlDbPutRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ctl.dbPut', request, (error, result) => error ? reject(error) : resolve(result))) +export const ctlDbPutRpcPromise = (request: CtlDbPutRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ctl.dbPut', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const ctlDbType = { main: 0, @@ -563,75 +563,75 @@ export const ctlExitCode = { export const ctlLogRotateRpcChannelMap = (configKeys: Array, request: CtlLogRotateRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.ctl.logRotate', request) -export const ctlLogRotateRpcPromise = (request: CtlLogRotateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ctl.logRotate', request, (error, result) => error ? reject(error) : resolve(result))) +export const ctlLogRotateRpcPromise = (request: CtlLogRotateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ctl.logRotate', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const ctlReloadRpcChannelMap = (configKeys: Array, request: CtlReloadRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.ctl.reload', request) -export const ctlReloadRpcPromise = (request: CtlReloadRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ctl.reload', request, (error, result) => error ? reject(error) : resolve(result))) +export const ctlReloadRpcPromise = (request: CtlReloadRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ctl.reload', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const ctlStopRpcChannelMap = (configKeys: Array, request: CtlStopRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.ctl.stop', request) -export const ctlStopRpcPromise = (request: CtlStopRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ctl.stop', request, (error, result) => error ? reject(error) : resolve(result))) +export const ctlStopRpcPromise = (request: CtlStopRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ctl.stop', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const debuggingFirstStepRpcChannelMap = (configKeys: Array, request: DebuggingFirstStepRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.debugging.firstStep', request) -export const debuggingFirstStepRpcPromise = (request: DebuggingFirstStepRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.debugging.firstStep', request, (error, result) => error ? reject(error) : resolve(result))) +export const debuggingFirstStepRpcPromise = (request: DebuggingFirstStepRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.debugging.firstStep', request, (error: RPCError, result: DebuggingFirstStepResult) => error ? reject(error) : resolve(result))) export const debuggingIncrementRpcChannelMap = (configKeys: Array, request: DebuggingIncrementRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.debugging.increment', request) -export const debuggingIncrementRpcPromise = (request: DebuggingIncrementRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.debugging.increment', request, (error, result) => error ? reject(error) : resolve(result))) +export const debuggingIncrementRpcPromise = (request: DebuggingIncrementRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.debugging.increment', request, (error: RPCError, result: DebuggingIncrementResult) => error ? reject(error) : resolve(result))) export const debuggingSecondStepRpcChannelMap = (configKeys: Array, request: DebuggingSecondStepRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.debugging.secondStep', request) -export const debuggingSecondStepRpcPromise = (request: DebuggingSecondStepRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.debugging.secondStep', request, (error, result) => error ? reject(error) : resolve(result))) +export const debuggingSecondStepRpcPromise = (request: DebuggingSecondStepRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.debugging.secondStep', request, (error: RPCError, result: DebuggingSecondStepResult) => error ? reject(error) : resolve(result))) export const delegateUiCtlRegisterGregorFirehoseRpcChannelMap = (configKeys: Array, request: DelegateUiCtlRegisterGregorFirehoseRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.delegateUiCtl.registerGregorFirehose', request) -export const delegateUiCtlRegisterGregorFirehoseRpcPromise = (request: DelegateUiCtlRegisterGregorFirehoseRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.delegateUiCtl.registerGregorFirehose', request, (error, result) => error ? reject(error) : resolve(result))) +export const delegateUiCtlRegisterGregorFirehoseRpcPromise = (request: DelegateUiCtlRegisterGregorFirehoseRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.delegateUiCtl.registerGregorFirehose', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const delegateUiCtlRegisterIdentifyUIRpcChannelMap = (configKeys: Array, request: DelegateUiCtlRegisterIdentifyUIRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.delegateUiCtl.registerIdentifyUI', request) -export const delegateUiCtlRegisterIdentifyUIRpcPromise = (request: DelegateUiCtlRegisterIdentifyUIRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.delegateUiCtl.registerIdentifyUI', request, (error, result) => error ? reject(error) : resolve(result))) +export const delegateUiCtlRegisterIdentifyUIRpcPromise = (request: DelegateUiCtlRegisterIdentifyUIRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.delegateUiCtl.registerIdentifyUI', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const delegateUiCtlRegisterRekeyUIRpcChannelMap = (configKeys: Array, request: DelegateUiCtlRegisterRekeyUIRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.delegateUiCtl.registerRekeyUI', request) -export const delegateUiCtlRegisterRekeyUIRpcPromise = (request: DelegateUiCtlRegisterRekeyUIRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.delegateUiCtl.registerRekeyUI', request, (error, result) => error ? reject(error) : resolve(result))) +export const delegateUiCtlRegisterRekeyUIRpcPromise = (request: DelegateUiCtlRegisterRekeyUIRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.delegateUiCtl.registerRekeyUI', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const delegateUiCtlRegisterSecretUIRpcChannelMap = (configKeys: Array, request: DelegateUiCtlRegisterSecretUIRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.delegateUiCtl.registerSecretUI', request) -export const delegateUiCtlRegisterSecretUIRpcPromise = (request: DelegateUiCtlRegisterSecretUIRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.delegateUiCtl.registerSecretUI', request, (error, result) => error ? reject(error) : resolve(result))) +export const delegateUiCtlRegisterSecretUIRpcPromise = (request: DelegateUiCtlRegisterSecretUIRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.delegateUiCtl.registerSecretUI', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const delegateUiCtlRegisterUpdateUIRpcChannelMap = (configKeys: Array, request: DelegateUiCtlRegisterUpdateUIRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.delegateUiCtl.registerUpdateUI', request) -export const delegateUiCtlRegisterUpdateUIRpcPromise = (request: DelegateUiCtlRegisterUpdateUIRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.delegateUiCtl.registerUpdateUI', request, (error, result) => error ? reject(error) : resolve(result))) +export const delegateUiCtlRegisterUpdateUIRpcPromise = (request: DelegateUiCtlRegisterUpdateUIRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.delegateUiCtl.registerUpdateUI', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const deviceCheckDeviceNameForUserRpcChannelMap = (configKeys: Array, request: DeviceCheckDeviceNameForUserRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.device.checkDeviceNameForUser', request) -export const deviceCheckDeviceNameForUserRpcPromise = (request: DeviceCheckDeviceNameForUserRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.device.checkDeviceNameForUser', request, (error, result) => error ? reject(error) : resolve(result))) +export const deviceCheckDeviceNameForUserRpcPromise = (request: DeviceCheckDeviceNameForUserRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.device.checkDeviceNameForUser', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const deviceCheckDeviceNameFormatRpcChannelMap = (configKeys: Array, request: DeviceCheckDeviceNameFormatRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.device.checkDeviceNameFormat', request) -export const deviceCheckDeviceNameFormatRpcPromise = (request: DeviceCheckDeviceNameFormatRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.device.checkDeviceNameFormat', request, (error, result) => error ? reject(error) : resolve(result))) +export const deviceCheckDeviceNameFormatRpcPromise = (request: DeviceCheckDeviceNameFormatRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.device.checkDeviceNameFormat', request, (error: RPCError, result: DeviceCheckDeviceNameFormatResult) => error ? reject(error) : resolve(result))) export const deviceDeviceAddRpcChannelMap = (configKeys: Array, request: DeviceDeviceAddRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.device.deviceAdd', request) -export const deviceDeviceAddRpcPromise = (request: DeviceDeviceAddRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.device.deviceAdd', request, (error, result) => error ? reject(error) : resolve(result))) +export const deviceDeviceAddRpcPromise = (request: DeviceDeviceAddRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.device.deviceAdd', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const deviceDeviceHistoryListRpcChannelMap = (configKeys: Array, request: DeviceDeviceHistoryListRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.device.deviceHistoryList', request) -export const deviceDeviceHistoryListRpcPromise = (request: DeviceDeviceHistoryListRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.device.deviceHistoryList', request, (error, result) => error ? reject(error) : resolve(result))) +export const deviceDeviceHistoryListRpcPromise = (request: DeviceDeviceHistoryListRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.device.deviceHistoryList', request, (error: RPCError, result: DeviceDeviceHistoryListResult) => error ? reject(error) : resolve(result))) export const deviceDeviceListRpcChannelMap = (configKeys: Array, request: DeviceDeviceListRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.device.deviceList', request) -export const deviceDeviceListRpcPromise = (request: DeviceDeviceListRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.device.deviceList', request, (error, result) => error ? reject(error) : resolve(result))) +export const deviceDeviceListRpcPromise = (request: DeviceDeviceListRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.device.deviceList', request, (error: RPCError, result: DeviceDeviceListResult) => error ? reject(error) : resolve(result))) export const favoriteFavoriteAddRpcChannelMap = (configKeys: Array, request: FavoriteFavoriteAddRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.favorite.favoriteAdd', request) -export const favoriteFavoriteAddRpcPromise = (request: FavoriteFavoriteAddRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.favorite.favoriteAdd', request, (error, result) => error ? reject(error) : resolve(result))) +export const favoriteFavoriteAddRpcPromise = (request: FavoriteFavoriteAddRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.favorite.favoriteAdd', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const favoriteFavoriteIgnoreRpcChannelMap = (configKeys: Array, request: FavoriteFavoriteIgnoreRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.favorite.favoriteIgnore', request) -export const favoriteFavoriteIgnoreRpcPromise = (request: FavoriteFavoriteIgnoreRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.favorite.favoriteIgnore', request, (error, result) => error ? reject(error) : resolve(result))) +export const favoriteFavoriteIgnoreRpcPromise = (request: FavoriteFavoriteIgnoreRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.favorite.favoriteIgnore', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const favoriteFolderType = { unknown: 0, @@ -642,47 +642,47 @@ export const favoriteFolderType = { export const favoriteGetFavoritesRpcChannelMap = (configKeys: Array, request: FavoriteGetFavoritesRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.favorite.getFavorites', request) -export const favoriteGetFavoritesRpcPromise = (request: FavoriteGetFavoritesRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.favorite.getFavorites', request, (error, result) => error ? reject(error) : resolve(result))) +export const favoriteGetFavoritesRpcPromise = (request: FavoriteGetFavoritesRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.favorite.getFavorites', request, (error: RPCError, result: FavoriteGetFavoritesResult) => error ? reject(error) : resolve(result))) export const fsListRpcChannelMap = (configKeys: Array, request: FsListRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.fs.List', request) -export const fsListRpcPromise = (request: FsListRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.fs.List', request, (error, result) => error ? reject(error) : resolve(result))) +export const fsListRpcPromise = (request: FsListRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.fs.List', request, (error: RPCError, result: FsListResult) => error ? reject(error) : resolve(result))) export const gitCreatePersonalRepoRpcChannelMap = (configKeys: Array, request: GitCreatePersonalRepoRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.git.createPersonalRepo', request) -export const gitCreatePersonalRepoRpcPromise = (request: GitCreatePersonalRepoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.createPersonalRepo', request, (error, result) => error ? reject(error) : resolve(result))) +export const gitCreatePersonalRepoRpcPromise = (request: GitCreatePersonalRepoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.createPersonalRepo', request, (error: RPCError, result: GitCreatePersonalRepoResult) => error ? reject(error) : resolve(result))) export const gitCreateTeamRepoRpcChannelMap = (configKeys: Array, request: GitCreateTeamRepoRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.git.createTeamRepo', request) -export const gitCreateTeamRepoRpcPromise = (request: GitCreateTeamRepoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.createTeamRepo', request, (error, result) => error ? reject(error) : resolve(result))) +export const gitCreateTeamRepoRpcPromise = (request: GitCreateTeamRepoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.createTeamRepo', request, (error: RPCError, result: GitCreateTeamRepoResult) => error ? reject(error) : resolve(result))) export const gitDeleteGitMetadataRpcChannelMap = (configKeys: Array, request: GitDeleteGitMetadataRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.git.deleteGitMetadata', request) -export const gitDeleteGitMetadataRpcPromise = (request: GitDeleteGitMetadataRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.deleteGitMetadata', request, (error, result) => error ? reject(error) : resolve(result))) +export const gitDeleteGitMetadataRpcPromise = (request: GitDeleteGitMetadataRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.deleteGitMetadata', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const gitDeletePersonalRepoRpcChannelMap = (configKeys: Array, request: GitDeletePersonalRepoRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.git.deletePersonalRepo', request) -export const gitDeletePersonalRepoRpcPromise = (request: GitDeletePersonalRepoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.deletePersonalRepo', request, (error, result) => error ? reject(error) : resolve(result))) +export const gitDeletePersonalRepoRpcPromise = (request: GitDeletePersonalRepoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.deletePersonalRepo', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const gitDeleteTeamRepoRpcChannelMap = (configKeys: Array, request: GitDeleteTeamRepoRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.git.deleteTeamRepo', request) -export const gitDeleteTeamRepoRpcPromise = (request: GitDeleteTeamRepoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.deleteTeamRepo', request, (error, result) => error ? reject(error) : resolve(result))) +export const gitDeleteTeamRepoRpcPromise = (request: GitDeleteTeamRepoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.deleteTeamRepo', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const gitGcPersonalRepoRpcChannelMap = (configKeys: Array, request: GitGcPersonalRepoRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.git.gcPersonalRepo', request) -export const gitGcPersonalRepoRpcPromise = (request: GitGcPersonalRepoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.gcPersonalRepo', request, (error, result) => error ? reject(error) : resolve(result))) +export const gitGcPersonalRepoRpcPromise = (request: GitGcPersonalRepoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.gcPersonalRepo', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const gitGcTeamRepoRpcChannelMap = (configKeys: Array, request: GitGcTeamRepoRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.git.gcTeamRepo', request) -export const gitGcTeamRepoRpcPromise = (request: GitGcTeamRepoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.gcTeamRepo', request, (error, result) => error ? reject(error) : resolve(result))) +export const gitGcTeamRepoRpcPromise = (request: GitGcTeamRepoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.gcTeamRepo', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const gitGetAllGitMetadataRpcChannelMap = (configKeys: Array, request: GitGetAllGitMetadataRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.git.getAllGitMetadata', request) -export const gitGetAllGitMetadataRpcPromise = (request: GitGetAllGitMetadataRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.getAllGitMetadata', request, (error, result) => error ? reject(error) : resolve(result))) +export const gitGetAllGitMetadataRpcPromise = (request: GitGetAllGitMetadataRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.getAllGitMetadata', request, (error: RPCError, result: GitGetAllGitMetadataResult) => error ? reject(error) : resolve(result))) export const gitGetGitMetadataRpcChannelMap = (configKeys: Array, request: GitGetGitMetadataRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.git.getGitMetadata', request) -export const gitGetGitMetadataRpcPromise = (request: GitGetGitMetadataRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.getGitMetadata', request, (error, result) => error ? reject(error) : resolve(result))) +export const gitGetGitMetadataRpcPromise = (request: GitGetGitMetadataRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.getGitMetadata', request, (error: RPCError, result: GitGetGitMetadataResult) => error ? reject(error) : resolve(result))) export const gitGitLocalMetadataVersion = { v1: 1, @@ -695,23 +695,23 @@ export const gitGitRepoResultState = { export const gitPutGitMetadataRpcChannelMap = (configKeys: Array, request: GitPutGitMetadataRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.git.putGitMetadata', request) -export const gitPutGitMetadataRpcPromise = (request: GitPutGitMetadataRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.putGitMetadata', request, (error, result) => error ? reject(error) : resolve(result))) +export const gitPutGitMetadataRpcPromise = (request: GitPutGitMetadataRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.putGitMetadata', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const gregorDismissCategoryRpcChannelMap = (configKeys: Array, request: GregorDismissCategoryRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.gregor.dismissCategory', request) -export const gregorDismissCategoryRpcPromise = (request: GregorDismissCategoryRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.gregor.dismissCategory', request, (error, result) => error ? reject(error) : resolve(result))) +export const gregorDismissCategoryRpcPromise = (request: GregorDismissCategoryRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.gregor.dismissCategory', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const gregorDismissItemRpcChannelMap = (configKeys: Array, request: GregorDismissItemRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.gregor.dismissItem', request) -export const gregorDismissItemRpcPromise = (request: GregorDismissItemRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.gregor.dismissItem', request, (error, result) => error ? reject(error) : resolve(result))) +export const gregorDismissItemRpcPromise = (request: GregorDismissItemRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.gregor.dismissItem', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const gregorGetStateRpcChannelMap = (configKeys: Array, request: GregorGetStateRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.gregor.getState', request) -export const gregorGetStateRpcPromise = (request: GregorGetStateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.gregor.getState', request, (error, result) => error ? reject(error) : resolve(result))) +export const gregorGetStateRpcPromise = (request: GregorGetStateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.gregor.getState', request, (error: RPCError, result: GregorGetStateResult) => error ? reject(error) : resolve(result))) export const gregorInjectItemRpcChannelMap = (configKeys: Array, request: GregorInjectItemRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.gregor.injectItem', request) -export const gregorInjectItemRpcPromise = (request: GregorInjectItemRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.gregor.injectItem', request, (error, result) => error ? reject(error) : resolve(result))) +export const gregorInjectItemRpcPromise = (request: GregorInjectItemRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.gregor.injectItem', request, (error: RPCError, result: GregorInjectItemResult) => error ? reject(error) : resolve(result))) export const gregorUIPushReason = { none: 0, @@ -721,15 +721,15 @@ export const gregorUIPushReason = { export const homeHomeActionTakenRpcChannelMap = (configKeys: Array, request: HomeHomeActionTakenRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.home.homeActionTaken', request) -export const homeHomeActionTakenRpcPromise = (request: HomeHomeActionTakenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.home.homeActionTaken', request, (error, result) => error ? reject(error) : resolve(result))) +export const homeHomeActionTakenRpcPromise = (request: HomeHomeActionTakenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.home.homeActionTaken', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const homeHomeGetScreenRpcChannelMap = (configKeys: Array, request: HomeHomeGetScreenRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.home.homeGetScreen', request) -export const homeHomeGetScreenRpcPromise = (request: HomeHomeGetScreenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.home.homeGetScreen', request, (error, result) => error ? reject(error) : resolve(result))) +export const homeHomeGetScreenRpcPromise = (request: HomeHomeGetScreenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.home.homeGetScreen', request, (error: RPCError, result: HomeHomeGetScreenResult) => error ? reject(error) : resolve(result))) export const homeHomeMarkViewedRpcChannelMap = (configKeys: Array, request: HomeHomeMarkViewedRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.home.homeMarkViewed', request) -export const homeHomeMarkViewedRpcPromise = (request: HomeHomeMarkViewedRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.home.homeMarkViewed', request, (error, result) => error ? reject(error) : resolve(result))) +export const homeHomeMarkViewedRpcPromise = (request: HomeHomeMarkViewedRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.home.homeMarkViewed', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const homeHomeScreenItemType = { todo: 1, @@ -757,7 +757,7 @@ export const homeHomeScreenTodoType = { export const homeHomeSkipTodoTypeRpcChannelMap = (configKeys: Array, request: HomeHomeSkipTodoTypeRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.home.homeSkipTodoType', request) -export const homeHomeSkipTodoTypeRpcPromise = (request: HomeHomeSkipTodoTypeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.home.homeSkipTodoType', request, (error, result) => error ? reject(error) : resolve(result))) +export const homeHomeSkipTodoTypeRpcPromise = (request: HomeHomeSkipTodoTypeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.home.homeSkipTodoType', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const identifyCommonIdentifyReasonType = { none: 0, @@ -796,19 +796,19 @@ export const identifyCommonTrackStatus = { export const identifyIdentify2RpcChannelMap = (configKeys: Array, request: IdentifyIdentify2RpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.identify.identify2', request) -export const identifyIdentify2RpcPromise = (request: IdentifyIdentify2RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.identify.identify2', request, (error, result) => error ? reject(error) : resolve(result))) +export const identifyIdentify2RpcPromise = (request: IdentifyIdentify2RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.identify.identify2', request, (error: RPCError, result: IdentifyIdentify2Result) => error ? reject(error) : resolve(result))) export const identifyIdentifyLiteRpcChannelMap = (configKeys: Array, request: IdentifyIdentifyLiteRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.identify.identifyLite', request) -export const identifyIdentifyLiteRpcPromise = (request: IdentifyIdentifyLiteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.identify.identifyLite', request, (error, result) => error ? reject(error) : resolve(result))) +export const identifyIdentifyLiteRpcPromise = (request: IdentifyIdentifyLiteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.identify.identifyLite', request, (error: RPCError, result: IdentifyIdentifyLiteResult) => error ? reject(error) : resolve(result))) export const identifyResolve3RpcChannelMap = (configKeys: Array, request: IdentifyResolve3RpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.identify.Resolve3', request) -export const identifyResolve3RpcPromise = (request: IdentifyResolve3RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.identify.Resolve3', request, (error, result) => error ? reject(error) : resolve(result))) +export const identifyResolve3RpcPromise = (request: IdentifyResolve3RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.identify.Resolve3', request, (error: RPCError, result: IdentifyResolve3Result) => error ? reject(error) : resolve(result))) export const identifyResolveIdentifyImplicitTeamRpcChannelMap = (configKeys: Array, request: IdentifyResolveIdentifyImplicitTeamRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.identify.resolveIdentifyImplicitTeam', request) -export const identifyResolveIdentifyImplicitTeamRpcPromise = (request: IdentifyResolveIdentifyImplicitTeamRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.identify.resolveIdentifyImplicitTeam', request, (error, result) => error ? reject(error) : resolve(result))) +export const identifyResolveIdentifyImplicitTeamRpcPromise = (request: IdentifyResolveIdentifyImplicitTeamRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.identify.resolveIdentifyImplicitTeam', request, (error: RPCError, result: IdentifyResolveIdentifyImplicitTeamResult) => error ? reject(error) : resolve(result))) export const identifyUiCheckResultFreshness = { fresh: 0, @@ -823,7 +823,7 @@ export const identifyUiDismissReasonType = { export const installFuseStatusRpcChannelMap = (configKeys: Array, request: InstallFuseStatusRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.install.fuseStatus', request) -export const installFuseStatusRpcPromise = (request: InstallFuseStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.install.fuseStatus', request, (error, result) => error ? reject(error) : resolve(result))) +export const installFuseStatusRpcPromise = (request: InstallFuseStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.install.fuseStatus', request, (error: RPCError, result: InstallFuseStatusResult) => error ? reject(error) : resolve(result))) export const installInstallAction = { unknown: 0, @@ -835,15 +835,15 @@ export const installInstallAction = { export const installInstallCommandLinePrivilegedRpcChannelMap = (configKeys: Array, request: InstallInstallCommandLinePrivilegedRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.install.installCommandLinePrivileged', request) -export const installInstallCommandLinePrivilegedRpcPromise = (request: InstallInstallCommandLinePrivilegedRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.install.installCommandLinePrivileged', request, (error, result) => error ? reject(error) : resolve(result))) +export const installInstallCommandLinePrivilegedRpcPromise = (request: InstallInstallCommandLinePrivilegedRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.install.installCommandLinePrivileged', request, (error: RPCError, result: InstallInstallCommandLinePrivilegedResult) => error ? reject(error) : resolve(result))) export const installInstallFuseRpcChannelMap = (configKeys: Array, request: InstallInstallFuseRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.install.installFuse', request) -export const installInstallFuseRpcPromise = (request: InstallInstallFuseRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.install.installFuse', request, (error, result) => error ? reject(error) : resolve(result))) +export const installInstallFuseRpcPromise = (request: InstallInstallFuseRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.install.installFuse', request, (error: RPCError, result: InstallInstallFuseResult) => error ? reject(error) : resolve(result))) export const installInstallKBFSRpcChannelMap = (configKeys: Array, request: InstallInstallKBFSRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.install.installKBFS', request) -export const installInstallKBFSRpcPromise = (request: InstallInstallKBFSRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.install.installKBFS', request, (error, result) => error ? reject(error) : resolve(result))) +export const installInstallKBFSRpcPromise = (request: InstallInstallKBFSRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.install.installKBFS', request, (error: RPCError, result: InstallInstallKBFSResult) => error ? reject(error) : resolve(result))) export const installInstallStatus = { unknown: 0, @@ -854,7 +854,7 @@ export const installInstallStatus = { export const installUninstallKBFSRpcChannelMap = (configKeys: Array, request: InstallUninstallKBFSRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.install.uninstallKBFS', request) -export const installUninstallKBFSRpcPromise = (request: InstallUninstallKBFSRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.install.uninstallKBFS', request, (error, result) => error ? reject(error) : resolve(result))) +export const installUninstallKBFSRpcPromise = (request: InstallUninstallKBFSRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.install.uninstallKBFS', request, (error: RPCError, result: InstallUninstallKBFSResult) => error ? reject(error) : resolve(result))) export const kbfsCommonFSErrorType = { accessDenied: 0, @@ -897,207 +897,207 @@ export const kbfsCommonFSStatusCode = { export const kbfsFSEditListRpcChannelMap = (configKeys: Array, request: KbfsFSEditListRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.kbfs.FSEditList', request) -export const kbfsFSEditListRpcPromise = (request: KbfsFSEditListRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.kbfs.FSEditList', request, (error, result) => error ? reject(error) : resolve(result))) +export const kbfsFSEditListRpcPromise = (request: KbfsFSEditListRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.kbfs.FSEditList', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const kbfsFSEventRpcChannelMap = (configKeys: Array, request: KbfsFSEventRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.kbfs.FSEvent', request) -export const kbfsFSEventRpcPromise = (request: KbfsFSEventRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.kbfs.FSEvent', request, (error, result) => error ? reject(error) : resolve(result))) +export const kbfsFSEventRpcPromise = (request: KbfsFSEventRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.kbfs.FSEvent', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const kbfsFSSyncEventRpcChannelMap = (configKeys: Array, request: KbfsFSSyncEventRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.kbfs.FSSyncEvent', request) -export const kbfsFSSyncEventRpcPromise = (request: KbfsFSSyncEventRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.kbfs.FSSyncEvent', request, (error, result) => error ? reject(error) : resolve(result))) +export const kbfsFSSyncEventRpcPromise = (request: KbfsFSSyncEventRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.kbfs.FSSyncEvent', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const kbfsFSSyncStatusRpcChannelMap = (configKeys: Array, request: KbfsFSSyncStatusRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.kbfs.FSSyncStatus', request) -export const kbfsFSSyncStatusRpcPromise = (request: KbfsFSSyncStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.kbfs.FSSyncStatus', request, (error, result) => error ? reject(error) : resolve(result))) +export const kbfsFSSyncStatusRpcPromise = (request: KbfsFSSyncStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.kbfs.FSSyncStatus', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const kbfsMountGetAllAvailableMountDirsRpcChannelMap = (configKeys: Array, request: KbfsMountGetAllAvailableMountDirsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.kbfsMount.GetAllAvailableMountDirs', request) -export const kbfsMountGetAllAvailableMountDirsRpcPromise = (request: KbfsMountGetAllAvailableMountDirsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.kbfsMount.GetAllAvailableMountDirs', request, (error, result) => error ? reject(error) : resolve(result))) +export const kbfsMountGetAllAvailableMountDirsRpcPromise = (request: KbfsMountGetAllAvailableMountDirsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.kbfsMount.GetAllAvailableMountDirs', request, (error: RPCError, result: KbfsMountGetAllAvailableMountDirsResult) => error ? reject(error) : resolve(result))) export const kbfsMountGetCurrentMountDirRpcChannelMap = (configKeys: Array, request: KbfsMountGetCurrentMountDirRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.kbfsMount.GetCurrentMountDir', request) -export const kbfsMountGetCurrentMountDirRpcPromise = (request: KbfsMountGetCurrentMountDirRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.kbfsMount.GetCurrentMountDir', request, (error, result) => error ? reject(error) : resolve(result))) +export const kbfsMountGetCurrentMountDirRpcPromise = (request: KbfsMountGetCurrentMountDirRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.kbfsMount.GetCurrentMountDir', request, (error: RPCError, result: KbfsMountGetCurrentMountDirResult) => error ? reject(error) : resolve(result))) export const kbfsMountSetCurrentMountDirRpcChannelMap = (configKeys: Array, request: KbfsMountSetCurrentMountDirRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.kbfsMount.SetCurrentMountDir', request) -export const kbfsMountSetCurrentMountDirRpcPromise = (request: KbfsMountSetCurrentMountDirRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.kbfsMount.SetCurrentMountDir', request, (error, result) => error ? reject(error) : resolve(result))) +export const kbfsMountSetCurrentMountDirRpcPromise = (request: KbfsMountSetCurrentMountDirRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.kbfsMount.SetCurrentMountDir', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const logRegisterLoggerRpcChannelMap = (configKeys: Array, request: LogRegisterLoggerRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.log.registerLogger', request) -export const logRegisterLoggerRpcPromise = (request: LogRegisterLoggerRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.log.registerLogger', request, (error, result) => error ? reject(error) : resolve(result))) +export const logRegisterLoggerRpcPromise = (request: LogRegisterLoggerRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.log.registerLogger', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const loginAccountDeleteRpcChannelMap = (configKeys: Array, request: LoginAccountDeleteRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.login.accountDelete', request) -export const loginAccountDeleteRpcPromise = (request: LoginAccountDeleteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.accountDelete', request, (error, result) => error ? reject(error) : resolve(result))) +export const loginAccountDeleteRpcPromise = (request: LoginAccountDeleteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.accountDelete', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const loginClearStoredSecretRpcChannelMap = (configKeys: Array, request: LoginClearStoredSecretRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.login.clearStoredSecret', request) -export const loginClearStoredSecretRpcPromise = (request: LoginClearStoredSecretRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.clearStoredSecret', request, (error, result) => error ? reject(error) : resolve(result))) +export const loginClearStoredSecretRpcPromise = (request: LoginClearStoredSecretRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.clearStoredSecret', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const loginDeprovisionRpcChannelMap = (configKeys: Array, request: LoginDeprovisionRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.login.deprovision', request) -export const loginDeprovisionRpcPromise = (request: LoginDeprovisionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.deprovision', request, (error, result) => error ? reject(error) : resolve(result))) +export const loginDeprovisionRpcPromise = (request: LoginDeprovisionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.deprovision', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const loginGetConfiguredAccountsRpcChannelMap = (configKeys: Array, request: LoginGetConfiguredAccountsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.login.getConfiguredAccounts', request) -export const loginGetConfiguredAccountsRpcPromise = (request: LoginGetConfiguredAccountsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.getConfiguredAccounts', request, (error, result) => error ? reject(error) : resolve(result))) +export const loginGetConfiguredAccountsRpcPromise = (request: LoginGetConfiguredAccountsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.getConfiguredAccounts', request, (error: RPCError, result: LoginGetConfiguredAccountsResult) => error ? reject(error) : resolve(result))) export const loginLoginProvisionedDeviceRpcChannelMap = (configKeys: Array, request: LoginLoginProvisionedDeviceRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.login.loginProvisionedDevice', request) -export const loginLoginProvisionedDeviceRpcPromise = (request: LoginLoginProvisionedDeviceRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.loginProvisionedDevice', request, (error, result) => error ? reject(error) : resolve(result))) +export const loginLoginProvisionedDeviceRpcPromise = (request: LoginLoginProvisionedDeviceRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.loginProvisionedDevice', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const loginLoginRpcChannelMap = (configKeys: Array, request: LoginLoginRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.login.login', request) -export const loginLoginRpcPromise = (request: LoginLoginRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.login', request, (error, result) => error ? reject(error) : resolve(result))) +export const loginLoginRpcPromise = (request: LoginLoginRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.login', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const loginLoginWithPaperKeyRpcChannelMap = (configKeys: Array, request: LoginLoginWithPaperKeyRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.login.loginWithPaperKey', request) -export const loginLoginWithPaperKeyRpcPromise = (request: LoginLoginWithPaperKeyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.loginWithPaperKey', request, (error, result) => error ? reject(error) : resolve(result))) +export const loginLoginWithPaperKeyRpcPromise = (request: LoginLoginWithPaperKeyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.loginWithPaperKey', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const loginLogoutRpcChannelMap = (configKeys: Array, request: LoginLogoutRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.login.logout', request) -export const loginLogoutRpcPromise = (request: LoginLogoutRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.logout', request, (error, result) => error ? reject(error) : resolve(result))) +export const loginLogoutRpcPromise = (request: LoginLogoutRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.logout', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const loginPaperKeyRpcChannelMap = (configKeys: Array, request: LoginPaperKeyRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.login.paperKey', request) -export const loginPaperKeyRpcPromise = (request: LoginPaperKeyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.paperKey', request, (error, result) => error ? reject(error) : resolve(result))) +export const loginPaperKeyRpcPromise = (request: LoginPaperKeyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.paperKey', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const loginPaperKeySubmitRpcChannelMap = (configKeys: Array, request: LoginPaperKeySubmitRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.login.paperKeySubmit', request) -export const loginPaperKeySubmitRpcPromise = (request: LoginPaperKeySubmitRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.paperKeySubmit', request, (error, result) => error ? reject(error) : resolve(result))) +export const loginPaperKeySubmitRpcPromise = (request: LoginPaperKeySubmitRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.paperKeySubmit', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const loginPgpProvisionRpcChannelMap = (configKeys: Array, request: LoginPgpProvisionRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.login.pgpProvision', request) -export const loginPgpProvisionRpcPromise = (request: LoginPgpProvisionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.pgpProvision', request, (error, result) => error ? reject(error) : resolve(result))) +export const loginPgpProvisionRpcPromise = (request: LoginPgpProvisionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.pgpProvision', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const loginRecoverAccountFromEmailAddressRpcChannelMap = (configKeys: Array, request: LoginRecoverAccountFromEmailAddressRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.login.recoverAccountFromEmailAddress', request) -export const loginRecoverAccountFromEmailAddressRpcPromise = (request: LoginRecoverAccountFromEmailAddressRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.recoverAccountFromEmailAddress', request, (error, result) => error ? reject(error) : resolve(result))) +export const loginRecoverAccountFromEmailAddressRpcPromise = (request: LoginRecoverAccountFromEmailAddressRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.recoverAccountFromEmailAddress', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const loginUnlockRpcChannelMap = (configKeys: Array, request: LoginUnlockRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.login.unlock', request) -export const loginUnlockRpcPromise = (request: LoginUnlockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.unlock', request, (error, result) => error ? reject(error) : resolve(result))) +export const loginUnlockRpcPromise = (request: LoginUnlockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.unlock', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const loginUnlockWithPassphraseRpcChannelMap = (configKeys: Array, request: LoginUnlockWithPassphraseRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.login.unlockWithPassphrase', request) -export const loginUnlockWithPassphraseRpcPromise = (request: LoginUnlockWithPassphraseRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.unlockWithPassphrase', request, (error, result) => error ? reject(error) : resolve(result))) +export const loginUnlockWithPassphraseRpcPromise = (request: LoginUnlockWithPassphraseRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.unlockWithPassphrase', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const merkleGetCurrentMerkleRootRpcChannelMap = (configKeys: Array, request: MerkleGetCurrentMerkleRootRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.merkle.getCurrentMerkleRoot', request) -export const merkleGetCurrentMerkleRootRpcPromise = (request: MerkleGetCurrentMerkleRootRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.merkle.getCurrentMerkleRoot', request, (error, result) => error ? reject(error) : resolve(result))) +export const merkleGetCurrentMerkleRootRpcPromise = (request: MerkleGetCurrentMerkleRootRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.merkle.getCurrentMerkleRoot', request, (error: RPCError, result: MerkleGetCurrentMerkleRootResult) => error ? reject(error) : resolve(result))) export const metadataAuthenticateRpcChannelMap = (configKeys: Array, request: MetadataAuthenticateRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.authenticate', request) -export const metadataAuthenticateRpcPromise = (request: MetadataAuthenticateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.authenticate', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataAuthenticateRpcPromise = (request: MetadataAuthenticateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.authenticate', request, (error: RPCError, result: MetadataAuthenticateResult) => error ? reject(error) : resolve(result))) export const metadataDeleteKeyRpcChannelMap = (configKeys: Array, request: MetadataDeleteKeyRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.deleteKey', request) -export const metadataDeleteKeyRpcPromise = (request: MetadataDeleteKeyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.deleteKey', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataDeleteKeyRpcPromise = (request: MetadataDeleteKeyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.deleteKey', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const metadataGetChallengeRpcChannelMap = (configKeys: Array, request: MetadataGetChallengeRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.getChallenge', request) -export const metadataGetChallengeRpcPromise = (request: MetadataGetChallengeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getChallenge', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataGetChallengeRpcPromise = (request: MetadataGetChallengeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getChallenge', request, (error: RPCError, result: MetadataGetChallengeResult) => error ? reject(error) : resolve(result))) export const metadataGetFolderHandleRpcChannelMap = (configKeys: Array, request: MetadataGetFolderHandleRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.getFolderHandle', request) -export const metadataGetFolderHandleRpcPromise = (request: MetadataGetFolderHandleRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getFolderHandle', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataGetFolderHandleRpcPromise = (request: MetadataGetFolderHandleRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getFolderHandle', request, (error: RPCError, result: MetadataGetFolderHandleResult) => error ? reject(error) : resolve(result))) export const metadataGetFoldersForRekeyRpcChannelMap = (configKeys: Array, request: MetadataGetFoldersForRekeyRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.getFoldersForRekey', request) -export const metadataGetFoldersForRekeyRpcPromise = (request: MetadataGetFoldersForRekeyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getFoldersForRekey', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataGetFoldersForRekeyRpcPromise = (request: MetadataGetFoldersForRekeyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getFoldersForRekey', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const metadataGetKeyBundlesRpcChannelMap = (configKeys: Array, request: MetadataGetKeyBundlesRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.getKeyBundles', request) -export const metadataGetKeyBundlesRpcPromise = (request: MetadataGetKeyBundlesRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getKeyBundles', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataGetKeyBundlesRpcPromise = (request: MetadataGetKeyBundlesRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getKeyBundles', request, (error: RPCError, result: MetadataGetKeyBundlesResult) => error ? reject(error) : resolve(result))) export const metadataGetKeyRpcChannelMap = (configKeys: Array, request: MetadataGetKeyRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.getKey', request) -export const metadataGetKeyRpcPromise = (request: MetadataGetKeyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getKey', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataGetKeyRpcPromise = (request: MetadataGetKeyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getKey', request, (error: RPCError, result: MetadataGetKeyResult) => error ? reject(error) : resolve(result))) export const metadataGetLatestFolderHandleRpcChannelMap = (configKeys: Array, request: MetadataGetLatestFolderHandleRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.getLatestFolderHandle', request) -export const metadataGetLatestFolderHandleRpcPromise = (request: MetadataGetLatestFolderHandleRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getLatestFolderHandle', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataGetLatestFolderHandleRpcPromise = (request: MetadataGetLatestFolderHandleRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getLatestFolderHandle', request, (error: RPCError, result: MetadataGetLatestFolderHandleResult) => error ? reject(error) : resolve(result))) export const metadataGetMerkleNodeRpcChannelMap = (configKeys: Array, request: MetadataGetMerkleNodeRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.getMerkleNode', request) -export const metadataGetMerkleNodeRpcPromise = (request: MetadataGetMerkleNodeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getMerkleNode', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataGetMerkleNodeRpcPromise = (request: MetadataGetMerkleNodeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getMerkleNode', request, (error: RPCError, result: MetadataGetMerkleNodeResult) => error ? reject(error) : resolve(result))) export const metadataGetMerkleRootLatestRpcChannelMap = (configKeys: Array, request: MetadataGetMerkleRootLatestRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.getMerkleRootLatest', request) -export const metadataGetMerkleRootLatestRpcPromise = (request: MetadataGetMerkleRootLatestRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getMerkleRootLatest', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataGetMerkleRootLatestRpcPromise = (request: MetadataGetMerkleRootLatestRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getMerkleRootLatest', request, (error: RPCError, result: MetadataGetMerkleRootLatestResult) => error ? reject(error) : resolve(result))) export const metadataGetMerkleRootRpcChannelMap = (configKeys: Array, request: MetadataGetMerkleRootRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.getMerkleRoot', request) -export const metadataGetMerkleRootRpcPromise = (request: MetadataGetMerkleRootRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getMerkleRoot', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataGetMerkleRootRpcPromise = (request: MetadataGetMerkleRootRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getMerkleRoot', request, (error: RPCError, result: MetadataGetMerkleRootResult) => error ? reject(error) : resolve(result))) export const metadataGetMerkleRootSinceRpcChannelMap = (configKeys: Array, request: MetadataGetMerkleRootSinceRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.getMerkleRootSince', request) -export const metadataGetMerkleRootSinceRpcPromise = (request: MetadataGetMerkleRootSinceRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getMerkleRootSince', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataGetMerkleRootSinceRpcPromise = (request: MetadataGetMerkleRootSinceRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getMerkleRootSince', request, (error: RPCError, result: MetadataGetMerkleRootSinceResult) => error ? reject(error) : resolve(result))) export const metadataGetMetadataRpcChannelMap = (configKeys: Array, request: MetadataGetMetadataRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.getMetadata', request) -export const metadataGetMetadataRpcPromise = (request: MetadataGetMetadataRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getMetadata', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataGetMetadataRpcPromise = (request: MetadataGetMetadataRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getMetadata', request, (error: RPCError, result: MetadataGetMetadataResult) => error ? reject(error) : resolve(result))) export const metadataLockRpcChannelMap = (configKeys: Array, request: MetadataLockRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.lock', request) -export const metadataLockRpcPromise = (request: MetadataLockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.lock', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataLockRpcPromise = (request: MetadataLockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.lock', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const metadataPing2RpcChannelMap = (configKeys: Array, request: MetadataPing2RpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.ping2', request) -export const metadataPing2RpcPromise = (request: MetadataPing2RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.ping2', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataPing2RpcPromise = (request: MetadataPing2RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.ping2', request, (error: RPCError, result: MetadataPing2Result) => error ? reject(error) : resolve(result))) export const metadataPingRpcChannelMap = (configKeys: Array, request: MetadataPingRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.ping', request) -export const metadataPingRpcPromise = (request: MetadataPingRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.ping', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataPingRpcPromise = (request: MetadataPingRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.ping', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const metadataPruneBranchRpcChannelMap = (configKeys: Array, request: MetadataPruneBranchRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.pruneBranch', request) -export const metadataPruneBranchRpcPromise = (request: MetadataPruneBranchRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.pruneBranch', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataPruneBranchRpcPromise = (request: MetadataPruneBranchRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.pruneBranch', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const metadataPutKeysRpcChannelMap = (configKeys: Array, request: MetadataPutKeysRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.putKeys', request) -export const metadataPutKeysRpcPromise = (request: MetadataPutKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.putKeys', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataPutKeysRpcPromise = (request: MetadataPutKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.putKeys', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const metadataPutMetadataRpcChannelMap = (configKeys: Array, request: MetadataPutMetadataRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.putMetadata', request) -export const metadataPutMetadataRpcPromise = (request: MetadataPutMetadataRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.putMetadata', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataPutMetadataRpcPromise = (request: MetadataPutMetadataRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.putMetadata', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const metadataRegisterForUpdatesRpcChannelMap = (configKeys: Array, request: MetadataRegisterForUpdatesRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.registerForUpdates', request) -export const metadataRegisterForUpdatesRpcPromise = (request: MetadataRegisterForUpdatesRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.registerForUpdates', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataRegisterForUpdatesRpcPromise = (request: MetadataRegisterForUpdatesRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.registerForUpdates', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const metadataReleaseLockRpcChannelMap = (configKeys: Array, request: MetadataReleaseLockRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.releaseLock', request) -export const metadataReleaseLockRpcPromise = (request: MetadataReleaseLockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.releaseLock', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataReleaseLockRpcPromise = (request: MetadataReleaseLockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.releaseLock', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const metadataTruncateLockRpcChannelMap = (configKeys: Array, request: MetadataTruncateLockRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.truncateLock', request) -export const metadataTruncateLockRpcPromise = (request: MetadataTruncateLockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.truncateLock', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataTruncateLockRpcPromise = (request: MetadataTruncateLockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.truncateLock', request, (error: RPCError, result: MetadataTruncateLockResult) => error ? reject(error) : resolve(result))) export const metadataTruncateUnlockRpcChannelMap = (configKeys: Array, request: MetadataTruncateUnlockRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.truncateUnlock', request) -export const metadataTruncateUnlockRpcPromise = (request: MetadataTruncateUnlockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.truncateUnlock', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataTruncateUnlockRpcPromise = (request: MetadataTruncateUnlockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.truncateUnlock', request, (error: RPCError, result: MetadataTruncateUnlockResult) => error ? reject(error) : resolve(result))) export const metadataUpdateFolderNeedsRekeyRpcChannelMap = (configKeys: Array, request: MetadataUpdateFolderNeedsRekeyRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadataUpdate.folderNeedsRekey', request) -export const metadataUpdateFolderNeedsRekeyRpcPromise = (request: MetadataUpdateFolderNeedsRekeyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadataUpdate.folderNeedsRekey', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataUpdateFolderNeedsRekeyRpcPromise = (request: MetadataUpdateFolderNeedsRekeyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadataUpdate.folderNeedsRekey', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const metadataUpdateFoldersNeedRekeyRpcChannelMap = (configKeys: Array, request: MetadataUpdateFoldersNeedRekeyRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadataUpdate.foldersNeedRekey', request) -export const metadataUpdateFoldersNeedRekeyRpcPromise = (request: MetadataUpdateFoldersNeedRekeyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadataUpdate.foldersNeedRekey', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataUpdateFoldersNeedRekeyRpcPromise = (request: MetadataUpdateFoldersNeedRekeyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadataUpdate.foldersNeedRekey', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const metadataUpdateMetadataUpdateRpcChannelMap = (configKeys: Array, request: MetadataUpdateMetadataUpdateRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadataUpdate.metadataUpdate', request) -export const metadataUpdateMetadataUpdateRpcPromise = (request: MetadataUpdateMetadataUpdateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadataUpdate.metadataUpdate', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataUpdateMetadataUpdateRpcPromise = (request: MetadataUpdateMetadataUpdateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadataUpdate.metadataUpdate', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const notifyCtlSetNotificationsRpcChannelMap = (configKeys: Array, request: NotifyCtlSetNotificationsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.notifyCtl.setNotifications', request) -export const notifyCtlSetNotificationsRpcPromise = (request: NotifyCtlSetNotificationsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.notifyCtl.setNotifications', request, (error, result) => error ? reject(error) : resolve(result))) +export const notifyCtlSetNotificationsRpcPromise = (request: NotifyCtlSetNotificationsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.notifyCtl.setNotifications', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const paperprovisionPaperProvisionRpcChannelMap = (configKeys: Array, request: PaperprovisionPaperProvisionRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.paperprovision.paperProvision', request) -export const paperprovisionPaperProvisionRpcPromise = (request: PaperprovisionPaperProvisionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.paperprovision.paperProvision', request, (error, result) => error ? reject(error) : resolve(result))) +export const paperprovisionPaperProvisionRpcPromise = (request: PaperprovisionPaperProvisionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.paperprovision.paperProvision', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const passphraseCommonPassphraseType = { none: 0, @@ -1108,67 +1108,67 @@ export const passphraseCommonPassphraseType = { export const pgpPgpDecryptRpcChannelMap = (configKeys: Array, request: PgpPgpDecryptRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.pgp.pgpDecrypt', request) -export const pgpPgpDecryptRpcPromise = (request: PgpPgpDecryptRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpDecrypt', request, (error, result) => error ? reject(error) : resolve(result))) +export const pgpPgpDecryptRpcPromise = (request: PgpPgpDecryptRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpDecrypt', request, (error: RPCError, result: PgpPgpDecryptResult) => error ? reject(error) : resolve(result))) export const pgpPgpDeletePrimaryRpcChannelMap = (configKeys: Array, request: PgpPgpDeletePrimaryRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.pgp.pgpDeletePrimary', request) -export const pgpPgpDeletePrimaryRpcPromise = (request: PgpPgpDeletePrimaryRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpDeletePrimary', request, (error, result) => error ? reject(error) : resolve(result))) +export const pgpPgpDeletePrimaryRpcPromise = (request: PgpPgpDeletePrimaryRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpDeletePrimary', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const pgpPgpEncryptRpcChannelMap = (configKeys: Array, request: PgpPgpEncryptRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.pgp.pgpEncrypt', request) -export const pgpPgpEncryptRpcPromise = (request: PgpPgpEncryptRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpEncrypt', request, (error, result) => error ? reject(error) : resolve(result))) +export const pgpPgpEncryptRpcPromise = (request: PgpPgpEncryptRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpEncrypt', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const pgpPgpExportByFingerprintRpcChannelMap = (configKeys: Array, request: PgpPgpExportByFingerprintRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.pgp.pgpExportByFingerprint', request) -export const pgpPgpExportByFingerprintRpcPromise = (request: PgpPgpExportByFingerprintRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpExportByFingerprint', request, (error, result) => error ? reject(error) : resolve(result))) +export const pgpPgpExportByFingerprintRpcPromise = (request: PgpPgpExportByFingerprintRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpExportByFingerprint', request, (error: RPCError, result: PgpPgpExportByFingerprintResult) => error ? reject(error) : resolve(result))) export const pgpPgpExportByKIDRpcChannelMap = (configKeys: Array, request: PgpPgpExportByKIDRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.pgp.pgpExportByKID', request) -export const pgpPgpExportByKIDRpcPromise = (request: PgpPgpExportByKIDRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpExportByKID', request, (error, result) => error ? reject(error) : resolve(result))) +export const pgpPgpExportByKIDRpcPromise = (request: PgpPgpExportByKIDRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpExportByKID', request, (error: RPCError, result: PgpPgpExportByKIDResult) => error ? reject(error) : resolve(result))) export const pgpPgpExportRpcChannelMap = (configKeys: Array, request: PgpPgpExportRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.pgp.pgpExport', request) -export const pgpPgpExportRpcPromise = (request: PgpPgpExportRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpExport', request, (error, result) => error ? reject(error) : resolve(result))) +export const pgpPgpExportRpcPromise = (request: PgpPgpExportRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpExport', request, (error: RPCError, result: PgpPgpExportResult) => error ? reject(error) : resolve(result))) export const pgpPgpImportRpcChannelMap = (configKeys: Array, request: PgpPgpImportRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.pgp.pgpImport', request) -export const pgpPgpImportRpcPromise = (request: PgpPgpImportRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpImport', request, (error, result) => error ? reject(error) : resolve(result))) +export const pgpPgpImportRpcPromise = (request: PgpPgpImportRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpImport', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const pgpPgpKeyGenDefaultRpcChannelMap = (configKeys: Array, request: PgpPgpKeyGenDefaultRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.pgp.pgpKeyGenDefault', request) -export const pgpPgpKeyGenDefaultRpcPromise = (request: PgpPgpKeyGenDefaultRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpKeyGenDefault', request, (error, result) => error ? reject(error) : resolve(result))) +export const pgpPgpKeyGenDefaultRpcPromise = (request: PgpPgpKeyGenDefaultRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpKeyGenDefault', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const pgpPgpKeyGenRpcChannelMap = (configKeys: Array, request: PgpPgpKeyGenRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.pgp.pgpKeyGen', request) -export const pgpPgpKeyGenRpcPromise = (request: PgpPgpKeyGenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpKeyGen', request, (error, result) => error ? reject(error) : resolve(result))) +export const pgpPgpKeyGenRpcPromise = (request: PgpPgpKeyGenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpKeyGen', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const pgpPgpPullRpcChannelMap = (configKeys: Array, request: PgpPgpPullRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.pgp.pgpPull', request) -export const pgpPgpPullRpcPromise = (request: PgpPgpPullRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpPull', request, (error, result) => error ? reject(error) : resolve(result))) +export const pgpPgpPullRpcPromise = (request: PgpPgpPullRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpPull', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const pgpPgpPurgeRpcChannelMap = (configKeys: Array, request: PgpPgpPurgeRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.pgp.pgpPurge', request) -export const pgpPgpPurgeRpcPromise = (request: PgpPgpPurgeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpPurge', request, (error, result) => error ? reject(error) : resolve(result))) +export const pgpPgpPurgeRpcPromise = (request: PgpPgpPurgeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpPurge', request, (error: RPCError, result: PgpPgpPurgeResult) => error ? reject(error) : resolve(result))) export const pgpPgpSelectRpcChannelMap = (configKeys: Array, request: PgpPgpSelectRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.pgp.pgpSelect', request) -export const pgpPgpSelectRpcPromise = (request: PgpPgpSelectRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpSelect', request, (error, result) => error ? reject(error) : resolve(result))) +export const pgpPgpSelectRpcPromise = (request: PgpPgpSelectRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpSelect', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const pgpPgpSignRpcChannelMap = (configKeys: Array, request: PgpPgpSignRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.pgp.pgpSign', request) -export const pgpPgpSignRpcPromise = (request: PgpPgpSignRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpSign', request, (error, result) => error ? reject(error) : resolve(result))) +export const pgpPgpSignRpcPromise = (request: PgpPgpSignRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpSign', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const pgpPgpStorageDismissRpcChannelMap = (configKeys: Array, request: PgpPgpStorageDismissRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.pgp.pgpStorageDismiss', request) -export const pgpPgpStorageDismissRpcPromise = (request: PgpPgpStorageDismissRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpStorageDismiss', request, (error, result) => error ? reject(error) : resolve(result))) +export const pgpPgpStorageDismissRpcPromise = (request: PgpPgpStorageDismissRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpStorageDismiss', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const pgpPgpUpdateRpcChannelMap = (configKeys: Array, request: PgpPgpUpdateRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.pgp.pgpUpdate', request) -export const pgpPgpUpdateRpcPromise = (request: PgpPgpUpdateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpUpdate', request, (error, result) => error ? reject(error) : resolve(result))) +export const pgpPgpUpdateRpcPromise = (request: PgpPgpUpdateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpUpdate', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const pgpPgpVerifyRpcChannelMap = (configKeys: Array, request: PgpPgpVerifyRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.pgp.pgpVerify', request) -export const pgpPgpVerifyRpcPromise = (request: PgpPgpVerifyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpVerify', request, (error, result) => error ? reject(error) : resolve(result))) +export const pgpPgpVerifyRpcPromise = (request: PgpPgpVerifyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpVerify', request, (error: RPCError, result: PgpPgpVerifyResult) => error ? reject(error) : resolve(result))) export const pgpSignMode = { attached: 0, @@ -1184,7 +1184,7 @@ export const processFileType = { export const proveCheckProofRpcChannelMap = (configKeys: Array, request: ProveCheckProofRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.prove.checkProof', request) -export const proveCheckProofRpcPromise = (request: ProveCheckProofRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.prove.checkProof', request, (error, result) => error ? reject(error) : resolve(result))) +export const proveCheckProofRpcPromise = (request: ProveCheckProofRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.prove.checkProof', request, (error: RPCError, result: ProveCheckProofResult) => error ? reject(error) : resolve(result))) export const proveCommonProofState = { none: 0, @@ -1261,7 +1261,7 @@ export const proveCommonProofType = { export const proveStartProofRpcChannelMap = (configKeys: Array, request: ProveStartProofRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.prove.startProof', request) -export const proveStartProofRpcPromise = (request: ProveStartProofRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.prove.startProof', request, (error, result) => error ? reject(error) : resolve(result))) +export const proveStartProofRpcPromise = (request: ProveStartProofRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.prove.startProof', request, (error: RPCError, result: ProveStartProofResult) => error ? reject(error) : resolve(result))) export const proveUiPromptOverwriteType = { social: 0, @@ -1289,15 +1289,15 @@ export const provisionUiProvisionMethod = { export const quotaVerifySessionRpcChannelMap = (configKeys: Array, request: QuotaVerifySessionRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.quota.verifySession', request) -export const quotaVerifySessionRpcPromise = (request: QuotaVerifySessionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.quota.verifySession', request, (error, result) => error ? reject(error) : resolve(result))) +export const quotaVerifySessionRpcPromise = (request: QuotaVerifySessionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.quota.verifySession', request, (error: RPCError, result: QuotaVerifySessionResult) => error ? reject(error) : resolve(result))) export const reachabilityCheckReachabilityRpcChannelMap = (configKeys: Array, request: ReachabilityCheckReachabilityRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.reachability.checkReachability', request) -export const reachabilityCheckReachabilityRpcPromise = (request: ReachabilityCheckReachabilityRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.reachability.checkReachability', request, (error, result) => error ? reject(error) : resolve(result))) +export const reachabilityCheckReachabilityRpcPromise = (request: ReachabilityCheckReachabilityRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.reachability.checkReachability', request, (error: RPCError, result: ReachabilityCheckReachabilityResult) => error ? reject(error) : resolve(result))) export const reachabilityReachabilityChangedRpcChannelMap = (configKeys: Array, request: ReachabilityReachabilityChangedRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.reachability.reachabilityChanged', request) -export const reachabilityReachabilityChangedRpcPromise = (request: ReachabilityReachabilityChangedRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.reachability.reachabilityChanged', request, (error, result) => error ? reject(error) : resolve(result))) +export const reachabilityReachabilityChangedRpcPromise = (request: ReachabilityReachabilityChangedRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.reachability.reachabilityChanged', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const reachabilityReachable = { unknown: 0, @@ -1307,19 +1307,19 @@ export const reachabilityReachable = { export const reachabilityStartReachabilityRpcChannelMap = (configKeys: Array, request: ReachabilityStartReachabilityRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.reachability.startReachability', request) -export const reachabilityStartReachabilityRpcPromise = (request: ReachabilityStartReachabilityRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.reachability.startReachability', request, (error, result) => error ? reject(error) : resolve(result))) +export const reachabilityStartReachabilityRpcPromise = (request: ReachabilityStartReachabilityRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.reachability.startReachability', request, (error: RPCError, result: ReachabilityStartReachabilityResult) => error ? reject(error) : resolve(result))) export const rekeyDebugShowRekeyStatusRpcChannelMap = (configKeys: Array, request: RekeyDebugShowRekeyStatusRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.rekey.debugShowRekeyStatus', request) -export const rekeyDebugShowRekeyStatusRpcPromise = (request: RekeyDebugShowRekeyStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.rekey.debugShowRekeyStatus', request, (error, result) => error ? reject(error) : resolve(result))) +export const rekeyDebugShowRekeyStatusRpcPromise = (request: RekeyDebugShowRekeyStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.rekey.debugShowRekeyStatus', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const rekeyGetPendingRekeyStatusRpcChannelMap = (configKeys: Array, request: RekeyGetPendingRekeyStatusRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.rekey.getPendingRekeyStatus', request) -export const rekeyGetPendingRekeyStatusRpcPromise = (request: RekeyGetPendingRekeyStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.rekey.getPendingRekeyStatus', request, (error, result) => error ? reject(error) : resolve(result))) +export const rekeyGetPendingRekeyStatusRpcPromise = (request: RekeyGetPendingRekeyStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.rekey.getPendingRekeyStatus', request, (error: RPCError, result: RekeyGetPendingRekeyStatusResult) => error ? reject(error) : resolve(result))) export const rekeyGetRevokeWarningRpcChannelMap = (configKeys: Array, request: RekeyGetRevokeWarningRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.rekey.getRevokeWarning', request) -export const rekeyGetRevokeWarningRpcPromise = (request: RekeyGetRevokeWarningRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.rekey.getRevokeWarning', request, (error, result) => error ? reject(error) : resolve(result))) +export const rekeyGetRevokeWarningRpcPromise = (request: RekeyGetRevokeWarningRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.rekey.getRevokeWarning', request, (error: RPCError, result: RekeyGetRevokeWarningResult) => error ? reject(error) : resolve(result))) export const rekeyOutcome = { none: 0, @@ -1329,15 +1329,15 @@ export const rekeyOutcome = { export const rekeyRekeyStatusFinishRpcChannelMap = (configKeys: Array, request: RekeyRekeyStatusFinishRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.rekey.rekeyStatusFinish', request) -export const rekeyRekeyStatusFinishRpcPromise = (request: RekeyRekeyStatusFinishRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.rekey.rekeyStatusFinish', request, (error, result) => error ? reject(error) : resolve(result))) +export const rekeyRekeyStatusFinishRpcPromise = (request: RekeyRekeyStatusFinishRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.rekey.rekeyStatusFinish', request, (error: RPCError, result: RekeyRekeyStatusFinishResult) => error ? reject(error) : resolve(result))) export const rekeyRekeySyncRpcChannelMap = (configKeys: Array, request: RekeyRekeySyncRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.rekey.rekeySync', request) -export const rekeyRekeySyncRpcPromise = (request: RekeyRekeySyncRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.rekey.rekeySync', request, (error, result) => error ? reject(error) : resolve(result))) +export const rekeyRekeySyncRpcPromise = (request: RekeyRekeySyncRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.rekey.rekeySync', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const rekeyShowPendingRekeyStatusRpcChannelMap = (configKeys: Array, request: RekeyShowPendingRekeyStatusRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.rekey.showPendingRekeyStatus', request) -export const rekeyShowPendingRekeyStatusRpcPromise = (request: RekeyShowPendingRekeyStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.rekey.showPendingRekeyStatus', request, (error, result) => error ? reject(error) : resolve(result))) +export const rekeyShowPendingRekeyStatusRpcPromise = (request: RekeyShowPendingRekeyStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.rekey.showPendingRekeyStatus', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const rekeyUIRekeyEventType = { none: 0, @@ -1353,31 +1353,31 @@ export const rekeyUIRekeyEventType = { export const revokeRevokeDeviceRpcChannelMap = (configKeys: Array, request: RevokeRevokeDeviceRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.revoke.revokeDevice', request) -export const revokeRevokeDeviceRpcPromise = (request: RevokeRevokeDeviceRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.revoke.revokeDevice', request, (error, result) => error ? reject(error) : resolve(result))) +export const revokeRevokeDeviceRpcPromise = (request: RevokeRevokeDeviceRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.revoke.revokeDevice', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const revokeRevokeKeyRpcChannelMap = (configKeys: Array, request: RevokeRevokeKeyRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.revoke.revokeKey', request) -export const revokeRevokeKeyRpcPromise = (request: RevokeRevokeKeyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.revoke.revokeKey', request, (error, result) => error ? reject(error) : resolve(result))) +export const revokeRevokeKeyRpcPromise = (request: RevokeRevokeKeyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.revoke.revokeKey', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const revokeRevokeSigsRpcChannelMap = (configKeys: Array, request: RevokeRevokeSigsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.revoke.revokeSigs', request) -export const revokeRevokeSigsRpcPromise = (request: RevokeRevokeSigsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.revoke.revokeSigs', request, (error, result) => error ? reject(error) : resolve(result))) +export const revokeRevokeSigsRpcPromise = (request: RevokeRevokeSigsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.revoke.revokeSigs', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const saltpackSaltpackDecryptRpcChannelMap = (configKeys: Array, request: SaltpackSaltpackDecryptRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.saltpack.saltpackDecrypt', request) -export const saltpackSaltpackDecryptRpcPromise = (request: SaltpackSaltpackDecryptRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.saltpack.saltpackDecrypt', request, (error, result) => error ? reject(error) : resolve(result))) +export const saltpackSaltpackDecryptRpcPromise = (request: SaltpackSaltpackDecryptRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.saltpack.saltpackDecrypt', request, (error: RPCError, result: SaltpackSaltpackDecryptResult) => error ? reject(error) : resolve(result))) export const saltpackSaltpackEncryptRpcChannelMap = (configKeys: Array, request: SaltpackSaltpackEncryptRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.saltpack.saltpackEncrypt', request) -export const saltpackSaltpackEncryptRpcPromise = (request: SaltpackSaltpackEncryptRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.saltpack.saltpackEncrypt', request, (error, result) => error ? reject(error) : resolve(result))) +export const saltpackSaltpackEncryptRpcPromise = (request: SaltpackSaltpackEncryptRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.saltpack.saltpackEncrypt', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const saltpackSaltpackSignRpcChannelMap = (configKeys: Array, request: SaltpackSaltpackSignRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.saltpack.saltpackSign', request) -export const saltpackSaltpackSignRpcPromise = (request: SaltpackSaltpackSignRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.saltpack.saltpackSign', request, (error, result) => error ? reject(error) : resolve(result))) +export const saltpackSaltpackSignRpcPromise = (request: SaltpackSaltpackSignRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.saltpack.saltpackSign', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const saltpackSaltpackVerifyRpcChannelMap = (configKeys: Array, request: SaltpackSaltpackVerifyRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.saltpack.saltpackVerify', request) -export const saltpackSaltpackVerifyRpcPromise = (request: SaltpackSaltpackVerifyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.saltpack.saltpackVerify', request, (error, result) => error ? reject(error) : resolve(result))) +export const saltpackSaltpackVerifyRpcPromise = (request: SaltpackSaltpackVerifyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.saltpack.saltpackVerify', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const saltpackUiSaltpackSenderType = { notTracked: 0, @@ -1392,39 +1392,39 @@ export const saltpackUiSaltpackSenderType = { export const sessionCurrentSessionRpcChannelMap = (configKeys: Array, request: SessionCurrentSessionRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.session.currentSession', request) -export const sessionCurrentSessionRpcPromise = (request: SessionCurrentSessionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.session.currentSession', request, (error, result) => error ? reject(error) : resolve(result))) +export const sessionCurrentSessionRpcPromise = (request: SessionCurrentSessionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.session.currentSession', request, (error: RPCError, result: SessionCurrentSessionResult) => error ? reject(error) : resolve(result))) export const sessionSessionPingRpcChannelMap = (configKeys: Array, request: SessionSessionPingRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.session.sessionPing', request) -export const sessionSessionPingRpcPromise = (request: SessionSessionPingRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.session.sessionPing', request, (error, result) => error ? reject(error) : resolve(result))) +export const sessionSessionPingRpcPromise = (request: SessionSessionPingRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.session.sessionPing', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const signupCheckInvitationCodeRpcChannelMap = (configKeys: Array, request: SignupCheckInvitationCodeRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.signup.checkInvitationCode', request) -export const signupCheckInvitationCodeRpcPromise = (request: SignupCheckInvitationCodeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.signup.checkInvitationCode', request, (error, result) => error ? reject(error) : resolve(result))) +export const signupCheckInvitationCodeRpcPromise = (request: SignupCheckInvitationCodeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.signup.checkInvitationCode', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const signupCheckUsernameAvailableRpcChannelMap = (configKeys: Array, request: SignupCheckUsernameAvailableRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.signup.checkUsernameAvailable', request) -export const signupCheckUsernameAvailableRpcPromise = (request: SignupCheckUsernameAvailableRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.signup.checkUsernameAvailable', request, (error, result) => error ? reject(error) : resolve(result))) +export const signupCheckUsernameAvailableRpcPromise = (request: SignupCheckUsernameAvailableRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.signup.checkUsernameAvailable', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const signupGetInvitationCodeRpcChannelMap = (configKeys: Array, request: SignupGetInvitationCodeRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.signup.getInvitationCode', request) -export const signupGetInvitationCodeRpcPromise = (request: SignupGetInvitationCodeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.signup.getInvitationCode', request, (error, result) => error ? reject(error) : resolve(result))) +export const signupGetInvitationCodeRpcPromise = (request: SignupGetInvitationCodeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.signup.getInvitationCode', request, (error: RPCError, result: SignupGetInvitationCodeResult) => error ? reject(error) : resolve(result))) export const signupInviteRequestRpcChannelMap = (configKeys: Array, request: SignupInviteRequestRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.signup.inviteRequest', request) -export const signupInviteRequestRpcPromise = (request: SignupInviteRequestRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.signup.inviteRequest', request, (error, result) => error ? reject(error) : resolve(result))) +export const signupInviteRequestRpcPromise = (request: SignupInviteRequestRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.signup.inviteRequest', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const signupSignupRpcChannelMap = (configKeys: Array, request: SignupSignupRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.signup.signup', request) -export const signupSignupRpcPromise = (request: SignupSignupRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.signup.signup', request, (error, result) => error ? reject(error) : resolve(result))) +export const signupSignupRpcPromise = (request: SignupSignupRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.signup.signup', request, (error: RPCError, result: SignupSignupResult) => error ? reject(error) : resolve(result))) export const sigsSigListJSONRpcChannelMap = (configKeys: Array, request: SigsSigListJSONRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.sigs.sigListJSON', request) -export const sigsSigListJSONRpcPromise = (request: SigsSigListJSONRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.sigs.sigListJSON', request, (error, result) => error ? reject(error) : resolve(result))) +export const sigsSigListJSONRpcPromise = (request: SigsSigListJSONRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.sigs.sigListJSON', request, (error: RPCError, result: SigsSigListJSONResult) => error ? reject(error) : resolve(result))) export const sigsSigListRpcChannelMap = (configKeys: Array, request: SigsSigListRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.sigs.sigList', request) -export const sigsSigListRpcPromise = (request: SigsSigListRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.sigs.sigList', request, (error, result) => error ? reject(error) : resolve(result))) +export const sigsSigListRpcPromise = (request: SigsSigListRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.sigs.sigList', request, (error: RPCError, result: SigsSigListResult) => error ? reject(error) : resolve(result))) export const simpleFSAsyncOps = { list: 0, @@ -1459,27 +1459,27 @@ export const simpleFSPathType = { export const teamsGetTeamAndMemberShowcaseRpcChannelMap = (configKeys: Array, request: TeamsGetTeamAndMemberShowcaseRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.getTeamAndMemberShowcase', request) -export const teamsGetTeamAndMemberShowcaseRpcPromise = (request: TeamsGetTeamAndMemberShowcaseRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.getTeamAndMemberShowcase', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsGetTeamAndMemberShowcaseRpcPromise = (request: TeamsGetTeamAndMemberShowcaseRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.getTeamAndMemberShowcase', request, (error: RPCError, result: TeamsGetTeamAndMemberShowcaseResult) => error ? reject(error) : resolve(result))) export const teamsGetTeamRootIDRpcChannelMap = (configKeys: Array, request: TeamsGetTeamRootIDRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.getTeamRootID', request) -export const teamsGetTeamRootIDRpcPromise = (request: TeamsGetTeamRootIDRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.getTeamRootID', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsGetTeamRootIDRpcPromise = (request: TeamsGetTeamRootIDRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.getTeamRootID', request, (error: RPCError, result: TeamsGetTeamRootIDResult) => error ? reject(error) : resolve(result))) export const teamsGetTeamShowcaseRpcChannelMap = (configKeys: Array, request: TeamsGetTeamShowcaseRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.getTeamShowcase', request) -export const teamsGetTeamShowcaseRpcPromise = (request: TeamsGetTeamShowcaseRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.getTeamShowcase', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsGetTeamShowcaseRpcPromise = (request: TeamsGetTeamShowcaseRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.getTeamShowcase', request, (error: RPCError, result: TeamsGetTeamShowcaseResult) => error ? reject(error) : resolve(result))) export const teamsLoadTeamPlusApplicationKeysRpcChannelMap = (configKeys: Array, request: TeamsLoadTeamPlusApplicationKeysRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.loadTeamPlusApplicationKeys', request) -export const teamsLoadTeamPlusApplicationKeysRpcPromise = (request: TeamsLoadTeamPlusApplicationKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.loadTeamPlusApplicationKeys', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsLoadTeamPlusApplicationKeysRpcPromise = (request: TeamsLoadTeamPlusApplicationKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.loadTeamPlusApplicationKeys', request, (error: RPCError, result: TeamsLoadTeamPlusApplicationKeysResult) => error ? reject(error) : resolve(result))) export const teamsLookupImplicitTeamRpcChannelMap = (configKeys: Array, request: TeamsLookupImplicitTeamRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.lookupImplicitTeam', request) -export const teamsLookupImplicitTeamRpcPromise = (request: TeamsLookupImplicitTeamRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.lookupImplicitTeam', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsLookupImplicitTeamRpcPromise = (request: TeamsLookupImplicitTeamRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.lookupImplicitTeam', request, (error: RPCError, result: TeamsLookupImplicitTeamResult) => error ? reject(error) : resolve(result))) export const teamsLookupOrCreateImplicitTeamRpcChannelMap = (configKeys: Array, request: TeamsLookupOrCreateImplicitTeamRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.lookupOrCreateImplicitTeam', request) -export const teamsLookupOrCreateImplicitTeamRpcPromise = (request: TeamsLookupOrCreateImplicitTeamRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.lookupOrCreateImplicitTeam', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsLookupOrCreateImplicitTeamRpcPromise = (request: TeamsLookupOrCreateImplicitTeamRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.lookupOrCreateImplicitTeam', request, (error: RPCError, result: TeamsLookupOrCreateImplicitTeamResult) => error ? reject(error) : resolve(result))) export const teamsSeitanIKeyAndLabelVersion = { v1: 1, @@ -1491,27 +1491,27 @@ export const teamsSeitanIKeyLabelType = { export const teamsSetTeamMemberShowcaseRpcChannelMap = (configKeys: Array, request: TeamsSetTeamMemberShowcaseRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.setTeamMemberShowcase', request) -export const teamsSetTeamMemberShowcaseRpcPromise = (request: TeamsSetTeamMemberShowcaseRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.setTeamMemberShowcase', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsSetTeamMemberShowcaseRpcPromise = (request: TeamsSetTeamMemberShowcaseRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.setTeamMemberShowcase', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const teamsSetTeamShowcaseRpcChannelMap = (configKeys: Array, request: TeamsSetTeamShowcaseRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.setTeamShowcase', request) -export const teamsSetTeamShowcaseRpcPromise = (request: TeamsSetTeamShowcaseRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.setTeamShowcase', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsSetTeamShowcaseRpcPromise = (request: TeamsSetTeamShowcaseRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.setTeamShowcase', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const teamsTeamAcceptInviteOrRequestAccessRpcChannelMap = (configKeys: Array, request: TeamsTeamAcceptInviteOrRequestAccessRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamAcceptInviteOrRequestAccess', request) -export const teamsTeamAcceptInviteOrRequestAccessRpcPromise = (request: TeamsTeamAcceptInviteOrRequestAccessRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamAcceptInviteOrRequestAccess', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamAcceptInviteOrRequestAccessRpcPromise = (request: TeamsTeamAcceptInviteOrRequestAccessRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamAcceptInviteOrRequestAccess', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const teamsTeamAcceptInviteRpcChannelMap = (configKeys: Array, request: TeamsTeamAcceptInviteRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamAcceptInvite', request) -export const teamsTeamAcceptInviteRpcPromise = (request: TeamsTeamAcceptInviteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamAcceptInvite', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamAcceptInviteRpcPromise = (request: TeamsTeamAcceptInviteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamAcceptInvite', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const teamsTeamAddEmailsBulkRpcChannelMap = (configKeys: Array, request: TeamsTeamAddEmailsBulkRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamAddEmailsBulk', request) -export const teamsTeamAddEmailsBulkRpcPromise = (request: TeamsTeamAddEmailsBulkRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamAddEmailsBulk', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamAddEmailsBulkRpcPromise = (request: TeamsTeamAddEmailsBulkRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamAddEmailsBulk', request, (error: RPCError, result: TeamsTeamAddEmailsBulkResult) => error ? reject(error) : resolve(result))) export const teamsTeamAddMemberRpcChannelMap = (configKeys: Array, request: TeamsTeamAddMemberRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamAddMember', request) -export const teamsTeamAddMemberRpcPromise = (request: TeamsTeamAddMemberRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamAddMember', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamAddMemberRpcPromise = (request: TeamsTeamAddMemberRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamAddMember', request, (error: RPCError, result: TeamsTeamAddMemberResult) => error ? reject(error) : resolve(result))) export const teamsTeamApplication = { kbfs: 1, @@ -1523,39 +1523,39 @@ export const teamsTeamApplication = { export const teamsTeamChangeMembershipRpcChannelMap = (configKeys: Array, request: TeamsTeamChangeMembershipRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamChangeMembership', request) -export const teamsTeamChangeMembershipRpcPromise = (request: TeamsTeamChangeMembershipRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamChangeMembership', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamChangeMembershipRpcPromise = (request: TeamsTeamChangeMembershipRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamChangeMembership', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const teamsTeamCreateRpcChannelMap = (configKeys: Array, request: TeamsTeamCreateRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamCreate', request) -export const teamsTeamCreateRpcPromise = (request: TeamsTeamCreateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamCreate', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamCreateRpcPromise = (request: TeamsTeamCreateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamCreate', request, (error: RPCError, result: TeamsTeamCreateResult) => error ? reject(error) : resolve(result))) export const teamsTeamCreateSeitanTokenRpcChannelMap = (configKeys: Array, request: TeamsTeamCreateSeitanTokenRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamCreateSeitanToken', request) -export const teamsTeamCreateSeitanTokenRpcPromise = (request: TeamsTeamCreateSeitanTokenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamCreateSeitanToken', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamCreateSeitanTokenRpcPromise = (request: TeamsTeamCreateSeitanTokenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamCreateSeitanToken', request, (error: RPCError, result: TeamsTeamCreateSeitanTokenResult) => error ? reject(error) : resolve(result))) export const teamsTeamCreateWithSettingsRpcChannelMap = (configKeys: Array, request: TeamsTeamCreateWithSettingsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamCreateWithSettings', request) -export const teamsTeamCreateWithSettingsRpcPromise = (request: TeamsTeamCreateWithSettingsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamCreateWithSettings', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamCreateWithSettingsRpcPromise = (request: TeamsTeamCreateWithSettingsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamCreateWithSettings', request, (error: RPCError, result: TeamsTeamCreateWithSettingsResult) => error ? reject(error) : resolve(result))) export const teamsTeamDeleteRpcChannelMap = (configKeys: Array, request: TeamsTeamDeleteRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamDelete', request) -export const teamsTeamDeleteRpcPromise = (request: TeamsTeamDeleteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamDelete', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamDeleteRpcPromise = (request: TeamsTeamDeleteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamDelete', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const teamsTeamEditMemberRpcChannelMap = (configKeys: Array, request: TeamsTeamEditMemberRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamEditMember', request) -export const teamsTeamEditMemberRpcPromise = (request: TeamsTeamEditMemberRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamEditMember', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamEditMemberRpcPromise = (request: TeamsTeamEditMemberRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamEditMember', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const teamsTeamGetRpcChannelMap = (configKeys: Array, request: TeamsTeamGetRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamGet', request) -export const teamsTeamGetRpcPromise = (request: TeamsTeamGetRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamGet', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamGetRpcPromise = (request: TeamsTeamGetRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamGet', request, (error: RPCError, result: TeamsTeamGetResult) => error ? reject(error) : resolve(result))) export const teamsTeamIgnoreRequestRpcChannelMap = (configKeys: Array, request: TeamsTeamIgnoreRequestRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamIgnoreRequest', request) -export const teamsTeamIgnoreRequestRpcPromise = (request: TeamsTeamIgnoreRequestRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamIgnoreRequest', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamIgnoreRequestRpcPromise = (request: TeamsTeamIgnoreRequestRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamIgnoreRequest', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const teamsTeamImplicitAdminsRpcChannelMap = (configKeys: Array, request: TeamsTeamImplicitAdminsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamImplicitAdmins', request) -export const teamsTeamImplicitAdminsRpcPromise = (request: TeamsTeamImplicitAdminsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamImplicitAdmins', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamImplicitAdminsRpcPromise = (request: TeamsTeamImplicitAdminsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamImplicitAdmins', request, (error: RPCError, result: TeamsTeamImplicitAdminsResult) => error ? reject(error) : resolve(result))) export const teamsTeamInviteCategory = { none: 0, @@ -1568,35 +1568,35 @@ export const teamsTeamInviteCategory = { export const teamsTeamLeaveRpcChannelMap = (configKeys: Array, request: TeamsTeamLeaveRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamLeave', request) -export const teamsTeamLeaveRpcPromise = (request: TeamsTeamLeaveRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamLeave', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamLeaveRpcPromise = (request: TeamsTeamLeaveRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamLeave', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const teamsTeamListRequestsRpcChannelMap = (configKeys: Array, request: TeamsTeamListRequestsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamListRequests', request) -export const teamsTeamListRequestsRpcPromise = (request: TeamsTeamListRequestsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamListRequests', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamListRequestsRpcPromise = (request: TeamsTeamListRequestsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamListRequests', request, (error: RPCError, result: TeamsTeamListRequestsResult) => error ? reject(error) : resolve(result))) export const teamsTeamListRpcChannelMap = (configKeys: Array, request: TeamsTeamListRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamList', request) -export const teamsTeamListRpcPromise = (request: TeamsTeamListRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamList', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamListRpcPromise = (request: TeamsTeamListRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamList', request, (error: RPCError, result: TeamsTeamListResult) => error ? reject(error) : resolve(result))) export const teamsTeamListSubteamsRecursiveRpcChannelMap = (configKeys: Array, request: TeamsTeamListSubteamsRecursiveRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamListSubteamsRecursive', request) -export const teamsTeamListSubteamsRecursiveRpcPromise = (request: TeamsTeamListSubteamsRecursiveRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamListSubteamsRecursive', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamListSubteamsRecursiveRpcPromise = (request: TeamsTeamListSubteamsRecursiveRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamListSubteamsRecursive', request, (error: RPCError, result: TeamsTeamListSubteamsRecursiveResult) => error ? reject(error) : resolve(result))) export const teamsTeamReAddMemberAfterResetRpcChannelMap = (configKeys: Array, request: TeamsTeamReAddMemberAfterResetRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamReAddMemberAfterReset', request) -export const teamsTeamReAddMemberAfterResetRpcPromise = (request: TeamsTeamReAddMemberAfterResetRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamReAddMemberAfterReset', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamReAddMemberAfterResetRpcPromise = (request: TeamsTeamReAddMemberAfterResetRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamReAddMemberAfterReset', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const teamsTeamRemoveMemberRpcChannelMap = (configKeys: Array, request: TeamsTeamRemoveMemberRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamRemoveMember', request) -export const teamsTeamRemoveMemberRpcPromise = (request: TeamsTeamRemoveMemberRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamRemoveMember', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamRemoveMemberRpcPromise = (request: TeamsTeamRemoveMemberRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamRemoveMember', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const teamsTeamRenameRpcChannelMap = (configKeys: Array, request: TeamsTeamRenameRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamRename', request) -export const teamsTeamRenameRpcPromise = (request: TeamsTeamRenameRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamRename', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamRenameRpcPromise = (request: TeamsTeamRenameRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamRename', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const teamsTeamRequestAccessRpcChannelMap = (configKeys: Array, request: TeamsTeamRequestAccessRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamRequestAccess', request) -export const teamsTeamRequestAccessRpcPromise = (request: TeamsTeamRequestAccessRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamRequestAccess', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamRequestAccessRpcPromise = (request: TeamsTeamRequestAccessRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamRequestAccess', request, (error: RPCError, result: TeamsTeamRequestAccessResult) => error ? reject(error) : resolve(result))) export const teamsTeamRole = { none: 0, @@ -1608,39 +1608,39 @@ export const teamsTeamRole = { export const teamsTeamSetSettingsRpcChannelMap = (configKeys: Array, request: TeamsTeamSetSettingsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamSetSettings', request) -export const teamsTeamSetSettingsRpcPromise = (request: TeamsTeamSetSettingsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamSetSettings', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamSetSettingsRpcPromise = (request: TeamsTeamSetSettingsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamSetSettings', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const teamsTeamTreeRpcChannelMap = (configKeys: Array, request: TeamsTeamTreeRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamTree', request) -export const teamsTeamTreeRpcPromise = (request: TeamsTeamTreeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamTree', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamTreeRpcPromise = (request: TeamsTeamTreeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamTree', request, (error: RPCError, result: TeamsTeamTreeResult) => error ? reject(error) : resolve(result))) export const testPanicRpcChannelMap = (configKeys: Array, request: TestPanicRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.test.panic', request) -export const testPanicRpcPromise = (request: TestPanicRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.test.panic', request, (error, result) => error ? reject(error) : resolve(result))) +export const testPanicRpcPromise = (request: TestPanicRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.test.panic', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const testTestCallbackRpcChannelMap = (configKeys: Array, request: TestTestCallbackRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.test.testCallback', request) -export const testTestCallbackRpcPromise = (request: TestTestCallbackRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.test.testCallback', request, (error, result) => error ? reject(error) : resolve(result))) +export const testTestCallbackRpcPromise = (request: TestTestCallbackRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.test.testCallback', request, (error: RPCError, result: TestTestCallbackResult) => error ? reject(error) : resolve(result))) export const testTestRpcChannelMap = (configKeys: Array, request: TestTestRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.test.test', request) -export const testTestRpcPromise = (request: TestTestRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.test.test', request, (error, result) => error ? reject(error) : resolve(result))) +export const testTestRpcPromise = (request: TestTestRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.test.test', request, (error: RPCError, result: TestTestResult) => error ? reject(error) : resolve(result))) export const tlfCompleteAndCanonicalizePrivateTlfNameRpcChannelMap = (configKeys: Array, request: TlfCompleteAndCanonicalizePrivateTlfNameRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.tlf.completeAndCanonicalizePrivateTlfName', request) -export const tlfCompleteAndCanonicalizePrivateTlfNameRpcPromise = (request: TlfCompleteAndCanonicalizePrivateTlfNameRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.tlf.completeAndCanonicalizePrivateTlfName', request, (error, result) => error ? reject(error) : resolve(result))) +export const tlfCompleteAndCanonicalizePrivateTlfNameRpcPromise = (request: TlfCompleteAndCanonicalizePrivateTlfNameRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.tlf.completeAndCanonicalizePrivateTlfName', request, (error: RPCError, result: TlfCompleteAndCanonicalizePrivateTlfNameResult) => error ? reject(error) : resolve(result))) export const tlfCryptKeysRpcChannelMap = (configKeys: Array, request: TlfCryptKeysRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.tlf.CryptKeys', request) -export const tlfCryptKeysRpcPromise = (request: TlfCryptKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.tlf.CryptKeys', request, (error, result) => error ? reject(error) : resolve(result))) +export const tlfCryptKeysRpcPromise = (request: TlfCryptKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.tlf.CryptKeys', request, (error: RPCError, result: TlfCryptKeysResult) => error ? reject(error) : resolve(result))) export const tlfKeysGetPublicCanonicalTLFNameAndIDRpcChannelMap = (configKeys: Array, request: TlfKeysGetPublicCanonicalTLFNameAndIDRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.tlfKeys.getPublicCanonicalTLFNameAndID', request) -export const tlfKeysGetPublicCanonicalTLFNameAndIDRpcPromise = (request: TlfKeysGetPublicCanonicalTLFNameAndIDRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.tlfKeys.getPublicCanonicalTLFNameAndID', request, (error, result) => error ? reject(error) : resolve(result))) +export const tlfKeysGetPublicCanonicalTLFNameAndIDRpcPromise = (request: TlfKeysGetPublicCanonicalTLFNameAndIDRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.tlfKeys.getPublicCanonicalTLFNameAndID', request, (error: RPCError, result: TlfKeysGetPublicCanonicalTLFNameAndIDResult) => error ? reject(error) : resolve(result))) export const tlfKeysGetTLFCryptKeysRpcChannelMap = (configKeys: Array, request: TlfKeysGetTLFCryptKeysRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.tlfKeys.getTLFCryptKeys', request) -export const tlfKeysGetTLFCryptKeysRpcPromise = (request: TlfKeysGetTLFCryptKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.tlfKeys.getTLFCryptKeys', request, (error, result) => error ? reject(error) : resolve(result))) +export const tlfKeysGetTLFCryptKeysRpcPromise = (request: TlfKeysGetTLFCryptKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.tlfKeys.getTLFCryptKeys', request, (error: RPCError, result: TlfKeysGetTLFCryptKeysResult) => error ? reject(error) : resolve(result))) export const tlfKeysTLFIdentifyBehavior = { defaultKbfs: 0, @@ -1654,31 +1654,31 @@ export const tlfKeysTLFIdentifyBehavior = { export const tlfPublicCanonicalTLFNameAndIDRpcChannelMap = (configKeys: Array, request: TlfPublicCanonicalTLFNameAndIDRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.tlf.publicCanonicalTLFNameAndID', request) -export const tlfPublicCanonicalTLFNameAndIDRpcPromise = (request: TlfPublicCanonicalTLFNameAndIDRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.tlf.publicCanonicalTLFNameAndID', request, (error, result) => error ? reject(error) : resolve(result))) +export const tlfPublicCanonicalTLFNameAndIDRpcPromise = (request: TlfPublicCanonicalTLFNameAndIDRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.tlf.publicCanonicalTLFNameAndID', request, (error: RPCError, result: TlfPublicCanonicalTLFNameAndIDResult) => error ? reject(error) : resolve(result))) export const trackCheckTrackingRpcChannelMap = (configKeys: Array, request: TrackCheckTrackingRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.track.checkTracking', request) -export const trackCheckTrackingRpcPromise = (request: TrackCheckTrackingRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.track.checkTracking', request, (error, result) => error ? reject(error) : resolve(result))) +export const trackCheckTrackingRpcPromise = (request: TrackCheckTrackingRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.track.checkTracking', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const trackDismissWithTokenRpcChannelMap = (configKeys: Array, request: TrackDismissWithTokenRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.track.dismissWithToken', request) -export const trackDismissWithTokenRpcPromise = (request: TrackDismissWithTokenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.track.dismissWithToken', request, (error, result) => error ? reject(error) : resolve(result))) +export const trackDismissWithTokenRpcPromise = (request: TrackDismissWithTokenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.track.dismissWithToken', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const trackFakeTrackingChangedRpcChannelMap = (configKeys: Array, request: TrackFakeTrackingChangedRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.track.fakeTrackingChanged', request) -export const trackFakeTrackingChangedRpcPromise = (request: TrackFakeTrackingChangedRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.track.fakeTrackingChanged', request, (error, result) => error ? reject(error) : resolve(result))) +export const trackFakeTrackingChangedRpcPromise = (request: TrackFakeTrackingChangedRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.track.fakeTrackingChanged', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const trackTrackRpcChannelMap = (configKeys: Array, request: TrackTrackRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.track.track', request) -export const trackTrackRpcPromise = (request: TrackTrackRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.track.track', request, (error, result) => error ? reject(error) : resolve(result))) +export const trackTrackRpcPromise = (request: TrackTrackRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.track.track', request, (error: RPCError, result: TrackTrackResult) => error ? reject(error) : resolve(result))) export const trackTrackWithTokenRpcChannelMap = (configKeys: Array, request: TrackTrackWithTokenRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.track.trackWithToken', request) -export const trackTrackWithTokenRpcPromise = (request: TrackTrackWithTokenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.track.trackWithToken', request, (error, result) => error ? reject(error) : resolve(result))) +export const trackTrackWithTokenRpcPromise = (request: TrackTrackWithTokenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.track.trackWithToken', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const trackUntrackRpcChannelMap = (configKeys: Array, request: TrackUntrackRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.track.untrack', request) -export const trackUntrackRpcPromise = (request: TrackUntrackRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.track.untrack', request, (error, result) => error ? reject(error) : resolve(result))) +export const trackUntrackRpcPromise = (request: TrackUntrackRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.track.untrack', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const uPKKeyType = { none: 0, @@ -1708,79 +1708,79 @@ export const uiPromptDefault = { export const userDeleteUserRpcChannelMap = (configKeys: Array, request: UserDeleteUserRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.deleteUser', request) -export const userDeleteUserRpcPromise = (request: UserDeleteUserRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.deleteUser', request, (error, result) => error ? reject(error) : resolve(result))) +export const userDeleteUserRpcPromise = (request: UserDeleteUserRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.deleteUser', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const userInterestingPeopleRpcChannelMap = (configKeys: Array, request: UserInterestingPeopleRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.interestingPeople', request) -export const userInterestingPeopleRpcPromise = (request: UserInterestingPeopleRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.interestingPeople', request, (error, result) => error ? reject(error) : resolve(result))) +export const userInterestingPeopleRpcPromise = (request: UserInterestingPeopleRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.interestingPeople', request, (error: RPCError, result: UserInterestingPeopleResult) => error ? reject(error) : resolve(result))) export const userListTrackers2RpcChannelMap = (configKeys: Array, request: UserListTrackers2RpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.listTrackers2', request) -export const userListTrackers2RpcPromise = (request: UserListTrackers2RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.listTrackers2', request, (error, result) => error ? reject(error) : resolve(result))) +export const userListTrackers2RpcPromise = (request: UserListTrackers2RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.listTrackers2', request, (error: RPCError, result: UserListTrackers2Result) => error ? reject(error) : resolve(result))) export const userListTrackersByNameRpcChannelMap = (configKeys: Array, request: UserListTrackersByNameRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.listTrackersByName', request) -export const userListTrackersByNameRpcPromise = (request: UserListTrackersByNameRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.listTrackersByName', request, (error, result) => error ? reject(error) : resolve(result))) +export const userListTrackersByNameRpcPromise = (request: UserListTrackersByNameRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.listTrackersByName', request, (error: RPCError, result: UserListTrackersByNameResult) => error ? reject(error) : resolve(result))) export const userListTrackersRpcChannelMap = (configKeys: Array, request: UserListTrackersRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.listTrackers', request) -export const userListTrackersRpcPromise = (request: UserListTrackersRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.listTrackers', request, (error, result) => error ? reject(error) : resolve(result))) +export const userListTrackersRpcPromise = (request: UserListTrackersRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.listTrackers', request, (error: RPCError, result: UserListTrackersResult) => error ? reject(error) : resolve(result))) export const userListTrackersSelfRpcChannelMap = (configKeys: Array, request: UserListTrackersSelfRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.listTrackersSelf', request) -export const userListTrackersSelfRpcPromise = (request: UserListTrackersSelfRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.listTrackersSelf', request, (error, result) => error ? reject(error) : resolve(result))) +export const userListTrackersSelfRpcPromise = (request: UserListTrackersSelfRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.listTrackersSelf', request, (error: RPCError, result: UserListTrackersSelfResult) => error ? reject(error) : resolve(result))) export const userListTrackingJSONRpcChannelMap = (configKeys: Array, request: UserListTrackingJSONRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.listTrackingJSON', request) -export const userListTrackingJSONRpcPromise = (request: UserListTrackingJSONRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.listTrackingJSON', request, (error, result) => error ? reject(error) : resolve(result))) +export const userListTrackingJSONRpcPromise = (request: UserListTrackingJSONRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.listTrackingJSON', request, (error: RPCError, result: UserListTrackingJSONResult) => error ? reject(error) : resolve(result))) export const userListTrackingRpcChannelMap = (configKeys: Array, request: UserListTrackingRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.listTracking', request) -export const userListTrackingRpcPromise = (request: UserListTrackingRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.listTracking', request, (error, result) => error ? reject(error) : resolve(result))) +export const userListTrackingRpcPromise = (request: UserListTrackingRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.listTracking', request, (error: RPCError, result: UserListTrackingResult) => error ? reject(error) : resolve(result))) export const userLoadAllPublicKeysUnverifiedRpcChannelMap = (configKeys: Array, request: UserLoadAllPublicKeysUnverifiedRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.loadAllPublicKeysUnverified', request) -export const userLoadAllPublicKeysUnverifiedRpcPromise = (request: UserLoadAllPublicKeysUnverifiedRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.loadAllPublicKeysUnverified', request, (error, result) => error ? reject(error) : resolve(result))) +export const userLoadAllPublicKeysUnverifiedRpcPromise = (request: UserLoadAllPublicKeysUnverifiedRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.loadAllPublicKeysUnverified', request, (error: RPCError, result: UserLoadAllPublicKeysUnverifiedResult) => error ? reject(error) : resolve(result))) export const userLoadMyPublicKeysRpcChannelMap = (configKeys: Array, request: UserLoadMyPublicKeysRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.loadMyPublicKeys', request) -export const userLoadMyPublicKeysRpcPromise = (request: UserLoadMyPublicKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.loadMyPublicKeys', request, (error, result) => error ? reject(error) : resolve(result))) +export const userLoadMyPublicKeysRpcPromise = (request: UserLoadMyPublicKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.loadMyPublicKeys', request, (error: RPCError, result: UserLoadMyPublicKeysResult) => error ? reject(error) : resolve(result))) export const userLoadMySettingsRpcChannelMap = (configKeys: Array, request: UserLoadMySettingsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.loadMySettings', request) -export const userLoadMySettingsRpcPromise = (request: UserLoadMySettingsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.loadMySettings', request, (error, result) => error ? reject(error) : resolve(result))) +export const userLoadMySettingsRpcPromise = (request: UserLoadMySettingsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.loadMySettings', request, (error: RPCError, result: UserLoadMySettingsResult) => error ? reject(error) : resolve(result))) export const userLoadPublicKeysRpcChannelMap = (configKeys: Array, request: UserLoadPublicKeysRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.loadPublicKeys', request) -export const userLoadPublicKeysRpcPromise = (request: UserLoadPublicKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.loadPublicKeys', request, (error, result) => error ? reject(error) : resolve(result))) +export const userLoadPublicKeysRpcPromise = (request: UserLoadPublicKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.loadPublicKeys', request, (error: RPCError, result: UserLoadPublicKeysResult) => error ? reject(error) : resolve(result))) export const userLoadUncheckedUserSummariesRpcChannelMap = (configKeys: Array, request: UserLoadUncheckedUserSummariesRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.loadUncheckedUserSummaries', request) -export const userLoadUncheckedUserSummariesRpcPromise = (request: UserLoadUncheckedUserSummariesRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.loadUncheckedUserSummaries', request, (error, result) => error ? reject(error) : resolve(result))) +export const userLoadUncheckedUserSummariesRpcPromise = (request: UserLoadUncheckedUserSummariesRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.loadUncheckedUserSummaries', request, (error: RPCError, result: UserLoadUncheckedUserSummariesResult) => error ? reject(error) : resolve(result))) export const userLoadUserByNameRpcChannelMap = (configKeys: Array, request: UserLoadUserByNameRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.loadUserByName', request) -export const userLoadUserByNameRpcPromise = (request: UserLoadUserByNameRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.loadUserByName', request, (error, result) => error ? reject(error) : resolve(result))) +export const userLoadUserByNameRpcPromise = (request: UserLoadUserByNameRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.loadUserByName', request, (error: RPCError, result: UserLoadUserByNameResult) => error ? reject(error) : resolve(result))) export const userLoadUserPlusKeysRpcChannelMap = (configKeys: Array, request: UserLoadUserPlusKeysRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.loadUserPlusKeys', request) -export const userLoadUserPlusKeysRpcPromise = (request: UserLoadUserPlusKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.loadUserPlusKeys', request, (error, result) => error ? reject(error) : resolve(result))) +export const userLoadUserPlusKeysRpcPromise = (request: UserLoadUserPlusKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.loadUserPlusKeys', request, (error: RPCError, result: UserLoadUserPlusKeysResult) => error ? reject(error) : resolve(result))) export const userLoadUserRpcChannelMap = (configKeys: Array, request: UserLoadUserRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.loadUser', request) -export const userLoadUserRpcPromise = (request: UserLoadUserRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.loadUser', request, (error, result) => error ? reject(error) : resolve(result))) +export const userLoadUserRpcPromise = (request: UserLoadUserRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.loadUser', request, (error: RPCError, result: UserLoadUserResult) => error ? reject(error) : resolve(result))) export const userProfileEditRpcChannelMap = (configKeys: Array, request: UserProfileEditRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.profileEdit', request) -export const userProfileEditRpcPromise = (request: UserProfileEditRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.profileEdit', request, (error, result) => error ? reject(error) : resolve(result))) +export const userProfileEditRpcPromise = (request: UserProfileEditRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.profileEdit', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const userResetUserRpcChannelMap = (configKeys: Array, request: UserResetUserRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.resetUser', request) -export const userResetUserRpcPromise = (request: UserResetUserRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.resetUser', request, (error, result) => error ? reject(error) : resolve(result))) +export const userResetUserRpcPromise = (request: UserResetUserRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.resetUser', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const userSearchRpcChannelMap = (configKeys: Array, request: UserSearchRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.search', request) -export const userSearchRpcPromise = (request: UserSearchRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.search', request, (error, result) => error ? reject(error) : resolve(result))) +export const userSearchRpcPromise = (request: UserSearchRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.search', request, (error: RPCError, result: UserSearchResult) => error ? reject(error) : resolve(result))) export type APIRes = {|status: String,body: String,httpStatus: Int,appStatus: String,|} diff --git a/shared/actions/app-gen.js b/shared/actions/app-gen.js index fcdbf4327d78..1a4d39aa3108 100644 --- a/shared/actions/app-gen.js +++ b/shared/actions/app-gen.js @@ -17,7 +17,7 @@ export const mobileAppState = 'app:mobileAppState' export const createChangedActive = (payload: {|+userActive: boolean|}) => ({error: false, payload, type: changedActive}) export const createChangedFocus = (payload: {|+appFocused: boolean|}) => ({error: false, payload, type: changedFocus}) export const createLink = (payload: {|+link: string|}) => ({error: false, payload, type: link}) -export const createMobileAppState = (payload: {|+nextAppState: string|}) => ({error: false, payload, type: mobileAppState}) +export const createMobileAppState = (payload: {|+nextAppState: 'active' | 'background' | 'inactive'|}) => ({error: false, payload, type: mobileAppState}) // Action Payloads export type ChangedActivePayload = More.ReturnType diff --git a/shared/actions/chat-gen.js b/shared/actions/chat-gen.js index 24a5b454db77..e7ace9a8fa67 100644 --- a/shared/actions/chat-gen.js +++ b/shared/actions/chat-gen.js @@ -5,7 +5,7 @@ import * as I from 'immutable' import * as RPCTypes from '../constants/types/flow-types' import * as More from '../constants/types/more' -import * as TeamConstants from '../constants/teams' +import * as TeamTypes from '../constants/types/teams' import * as Types from '../constants/types/chat' import * as RPCChatTypes from '../constants/types/flow-types-chat' import HiddenString from '../util/hidden-string' @@ -136,7 +136,7 @@ export const createNewChat = () => ({error: false, payload: undefined, type: new export const createOpenAttachmentPopup = (payload: {|+message: Types.AttachmentMessage, +currentPath: Path|}) => ({error: false, payload, type: openAttachmentPopup}) export const createOpenConversation = (payload: {|+conversationIDKey: Types.ConversationIDKey|}) => ({error: false, payload, type: openConversation}) export const createOpenFolder = () => ({error: false, payload: undefined, type: openFolder}) -export const createOpenTeamConversation = (payload: {|+teamname: TeamConstants.Teamname, +channelname: string|}) => ({error: false, payload, type: openTeamConversation}) +export const createOpenTeamConversation = (payload: {|+teamname: TeamTypes.Teamname, +channelname: string|}) => ({error: false, payload, type: openTeamConversation}) export const createOpenTlfInChat = (payload: {|+tlf: string, +isTeam?: boolean|}) => ({error: false, payload, type: openTlfInChat}) export const createOutboxMessageBecameReal = (payload: {|+oldMessageKey: Types.MessageKey, +newMessageKey: Types.MessageKey|}) => ({error: false, payload, type: outboxMessageBecameReal}) export const createPendingToRealConversation = (payload: {|+oldKey: Types.ConversationIDKey, +newKey: Types.ConversationIDKey|}) => ({error: false, payload, type: pendingToRealConversation}) @@ -151,7 +151,7 @@ export const createSaveAttachment = (payload: {|+messageKey: Types.MessageKey|}) export const createSaveAttachmentNative = (payload: {|+messageKey: Types.MessageKey|}) => ({error: false, payload, type: saveAttachmentNative}) export const createSelectAttachment = (payload: {|+input: Types.AttachmentInput|}) => ({error: false, payload, type: selectAttachment}) export const createSelectConversation = (payload: {|+conversationIDKey: ?Types.ConversationIDKey, +fromUser?: boolean|}) => ({error: false, payload, type: selectConversation}) -export const createSelectNext = (payload: {|+rows: Array, +direction: -1 | 1|}) => ({error: false, payload, type: selectNext}) +export const createSelectNext = (payload: {|+rows: Array<{conversationIDKey: Types.ConversationIDKey}>, +direction: -1 | 1|}) => ({error: false, payload, type: selectNext}) export const createSetInboxFilter = (payload: {|+filter: string|}) => ({error: false, payload, type: setInboxFilter}) export const createSetInboxGlobalUntrustedState = (payload: {|+inboxGlobalUntrustedState: Types.UntrustedState|}) => ({error: false, payload, type: setInboxGlobalUntrustedState}) export const createSetLoaded = (payload: {|+conversationIDKey: Types.ConversationIDKey, +isLoaded: boolean|}) => ({error: false, payload, type: setLoaded}) diff --git a/shared/actions/chat/inbox.js b/shared/actions/chat/inbox.js index 06303f191ac6..54dd5311c8c5 100644 --- a/shared/actions/chat/inbox.js +++ b/shared/actions/chat/inbox.js @@ -40,6 +40,7 @@ const _getInboxQuery = { // Update inboxes that have been reset function* _updateFinalized(inbox: RPCChatTypes.UnverifiedInboxUIItems): Generator { const finalizedState: Types.FinalizedState = I.Map( + // TODO i *think* this typing is totally incorrect. should be .items etc (inbox.conversationsUnverified || []) .filter(c => c.metadata.finalizeInfo) .map(convoUnverified => [ @@ -198,11 +199,11 @@ function _toSupersedeInfo( conversationIDKey: Types.ConversationIDKey, supersedeData: Array ): ?Types.SupersedeInfo { - const toConvert = supersedeData.find( + const toConvert: ?RPCChatTypes.ConversationMetadata = supersedeData.find( s => s.idTriple.topicType === RPCChatTypes.commonTopicType.chat && s.finalizeInfo ) - const finalizeInfo = toConvert && toConvert.finalizeInfo + const finalizeInfo = toConvert ? toConvert.finalizeInfo : null return toConvert && finalizeInfo ? { @@ -348,10 +349,10 @@ function* _processConversation(c: RPCChatTypes.InboxUIItem): Generator = [] -function* _chatInboxConversationSubSaga({conv}) { - const pconv = JSON.parse(conv) +function* _chatInboxConversationSubSaga({conv}: {conv: string}) { + const pconv: RPCChatTypes.InboxUIItem = JSON.parse(conv) _chatInboxToProcess.push(pconv) yield Saga.put(ChatGen.createUnboxMore()) return EngineRpc.rpcResult() @@ -375,7 +376,7 @@ function* _unboxMore(): SagaGenerator { } } -function* _chatInboxFailedSubSaga(params) { +function* _chatInboxFailedSubSaga(params: RPCChatTypes.ChatUiChatInboxFailedRpcParam) { const {convID, error} = params console.log('chatInboxFailed', params) const conversationIDKey = Constants.conversationIDToKey(convID) @@ -387,7 +388,7 @@ function* _chatInboxFailedSubSaga(params) { ? I.List([].concat(error.rekeyInfo.writerNames, error.rekeyInfo.readerNames).filter(Boolean)) : I.List(error.unverifiedTLFName.split(',')), status: 'unfiled', - time: error.remoteConv.readerInfo.mtime, + time: error.remoteConv.readerInfo ? error.remoteConv.readerInfo.mtime : 0, }) yield Saga.put( @@ -403,7 +404,7 @@ function* _chatInboxFailedSubSaga(params) { // Mark the conversation as read, to avoid a state where there's a // badged conversation that can't be unbadged by clicking on it. - const {maxMsgid} = error.remoteConv.readerInfo + const {maxMsgid} = error.remoteConv.readerInfo || {} const state: TypedState = yield Saga.select() const selectedConversation = Constants.getSelectedConversation(state) if (maxMsgid && selectedConversation === conversationIDKey) { @@ -423,7 +424,7 @@ function* _chatInboxFailedSubSaga(params) { break } case RPCChatTypes.localConversationErrorType.otherrekeyneeded: { - const rekeyers = error.rekeyInfo.rekeyers + const rekeyers = (error.rekeyInfo && error.rekeyInfo.rekeyers) || [] yield Saga.put(ChatGen.createUpdateInboxRekeyOthers({conversationIDKey, rekeyers})) break } @@ -436,7 +437,7 @@ function* _chatInboxFailedSubSaga(params) { break } default: - yield Saga.put(ConfigGen.createGlobalError({globalError: error})) + yield Saga.put(ConfigGen.createGlobalError({globalError: new Error(error.message)})) } return EngineRpc.rpcResult() @@ -650,7 +651,7 @@ function* _sendNotifications(action: ChatGen.AppendMessagesPayload): Saga.SagaGe if (message && message.type === 'Text') { console.log('Sending Chat notification') const snippet = Constants.makeSnippet(Constants.serverMessageToMessageText(message)) - yield Saga.put((dispatch: Dispatch) => { + yield Saga.put(dispatch => { NotifyPopup(message.author, {body: snippet}, -1, message.author, () => { dispatch( ChatGen.createSelectConversation({ @@ -784,10 +785,13 @@ function* _badgeAppForChat(action: ChatGen.BadgeAppForChatPayload): Saga.SagaGen const badged = conv.get('badgeCounts')[ `${isMobile ? RPCTypes.commonDeviceType.mobile : RPCTypes.commonDeviceType.desktop}` ] - const conversationIDKey = Constants.conversationIDToKey(conv.get('convID')) - totals[conversationIDKey] = total - if (badged) { - badges[conversationIDKey] = badged + const convID = conv.get('convID') + if (convID) { + const conversationIDKey = Constants.conversationIDToKey(convID) + totals[conversationIDKey] = total + if (badged) { + badges[conversationIDKey] = badged + } } } }) diff --git a/shared/actions/chat/send-messages.js b/shared/actions/chat/send-messages.js index 639536261a1f..9b32a525e4a9 100644 --- a/shared/actions/chat/send-messages.js +++ b/shared/actions/chat/send-messages.js @@ -42,9 +42,12 @@ function* deleteMessage(action: ChatGen.DeleteMessagePayload): SagaGenerator { } function* _handleIncomingGregor(action: GitGen.HandleIncomingGregorPayload): Saga.SagaGenerator { - const msgs = action.payload.messages.map(msg => JSON.parse(msg.body)) + const msgs = action.payload.messages.map(msg => JSON.parse(msg.body.toString())) for (let body of msgs) { const needsLoad = ['delete', 'create', 'update'].includes(body.action) if (needsLoad) { diff --git a/shared/actions/gregor.js b/shared/actions/gregor.js index 4fbe984035c5..9910633feecd 100644 --- a/shared/actions/gregor.js +++ b/shared/actions/gregor.js @@ -146,12 +146,17 @@ function* _handlePushState(pushAction: GregorGen.PushStatePayload): SagaGenerato } function* handleKbfsFavoritesOOBM(kbfsFavoriteMessages: Array): Generator { - const msgsWithParsedBodies = kbfsFavoriteMessages.map(m => ({...m, body: JSON.parse(m.body.toString())})) - const createdTLFs = msgsWithParsedBodies.filter(m => m.body.action === 'create') - - const username: string = (yield Saga.select(usernameSelector): any) + const createdTLFs: Array<{action: string, tlf: ?string}> = kbfsFavoriteMessages + .map(m => JSON.parse(m.body.toString())) + .filter(m => m.action === 'create') + + const state: TypedState = yield Saga.select() + const username = usernameSelector(state) + if (!username) { + return + } const folderActions = createdTLFs.reduce((arr, m) => { - const folder = m.body.tlf ? folderFromPath(username, m.body.tlf) : null + const folder = m.tlf ? folderFromPath(username, m.tlf) : null if (folder) { arr.push(Saga.put(FavoriteGen.createMarkTLFCreated({folder}))) diff --git a/shared/actions/json/app.json b/shared/actions/json/app.json index 07a0a66554bd..05eeade54982 100644 --- a/shared/actions/json/app.json +++ b/shared/actions/json/app.json @@ -11,7 +11,7 @@ "link": "string" }, "mobileAppState": { - "nextAppState": "string" + "nextAppState": "'active' | 'background' | 'inactive'" } } } diff --git a/shared/actions/json/chat.json b/shared/actions/json/chat.json index bdc0dab0286a..150d28610e51 100644 --- a/shared/actions/json/chat.json +++ b/shared/actions/json/chat.json @@ -1,6 +1,6 @@ { "prelude": [ - "import * as TeamConstants from '../constants/teams'", + "import * as TeamTypes from '../constants/types/teams'", "import * as Types from '../constants/types/chat'", "import * as RPCChatTypes from '../constants/types/flow-types-chat'", "import HiddenString from '../util/hidden-string'", @@ -100,7 +100,7 @@ "forInboxSync?": "boolean" }, "selectNext": { - "rows": "Array", + "rows": "Array<{conversationIDKey: Types.ConversationIDKey}>", "direction": "-1 | 1" }, "setInboxFilter": { @@ -148,7 +148,7 @@ "conversationIDKey": "Types.ConversationIDKey" }, "openTeamConversation": { - "teamname": "TeamConstants.Teamname", + "teamname": "TeamTypes.Teamname", "channelname": "string" }, "openAttachmentPopup": { diff --git a/shared/actions/json/search.json b/shared/actions/json/search.json index 4382028ce256..0dc6755b117d 100644 --- a/shared/actions/json/search.json +++ b/shared/actions/json/search.json @@ -1,28 +1,28 @@ { "prelude": [ - "import * as Constants from '../constants/search'" + "import * as Types from '../constants/types/search'" ], "actions": { "search": { "term": "string", - "service": "Constants.Service", + "service": "Types.Service", "searchKey": "string" }, "addResultsToUserInput": { "searchKey": "string", - "searchResults": "Array" + "searchResults": "Array" }, "removeResultsToUserInput": { "searchKey": "string", - "searchResults": "Array" + "searchResults": "Array" }, "setUserInputItems": { "searchKey": "string", - "searchResults": "Array" + "searchResults": "Array" }, "userInputItemsUpdated": { "searchKey": "string", - "userInputItemIds": "Array" + "userInputItemIds": "Array" }, "addClickedFromUserInput": { "searchKey": "string" @@ -32,16 +32,16 @@ }, "updateSelectedSearchResult": { "searchKey": "string", - "id": "?Constants.SearchResultId" + "id": "?Types.SearchResultId" }, "searchSuggestions": { "maxUsers?": "number", "searchKey": "string" }, "finishedSearch": { - "searchResults": "Array", + "searchResults": "Array", "searchResultTerm": "string", - "service": "Constants.Service", + "service": "Types.Service", "searchKey": "string", "searchShowingSuggestions?": "boolean" } diff --git a/shared/actions/search-gen.js b/shared/actions/search-gen.js index 08aa6f64f08d..1f1f2149a767 100644 --- a/shared/actions/search-gen.js +++ b/shared/actions/search-gen.js @@ -5,7 +5,7 @@ import * as I from 'immutable' import * as RPCTypes from '../constants/types/flow-types' import * as More from '../constants/types/more' -import * as Constants from '../constants/search' +import * as Types from '../constants/types/search' // Constants export const resetStore = 'common:resetStore' // not a part of search but is handled by every reducer @@ -22,15 +22,15 @@ export const userInputItemsUpdated = 'search:userInputItemsUpdated' // Action Creators export const createAddClickedFromUserInput = (payload: {|+searchKey: string|}) => ({error: false, payload, type: addClickedFromUserInput}) -export const createAddResultsToUserInput = (payload: {|+searchKey: string, +searchResults: Array|}) => ({error: false, payload, type: addResultsToUserInput}) +export const createAddResultsToUserInput = (payload: {|+searchKey: string, +searchResults: Array|}) => ({error: false, payload, type: addResultsToUserInput}) export const createClearSearchResults = (payload: {|+searchKey: string|}) => ({error: false, payload, type: clearSearchResults}) -export const createFinishedSearch = (payload: {|+searchResults: Array, +searchResultTerm: string, +service: Constants.Service, +searchKey: string, +searchShowingSuggestions?: boolean|}) => ({error: false, payload, type: finishedSearch}) -export const createRemoveResultsToUserInput = (payload: {|+searchKey: string, +searchResults: Array|}) => ({error: false, payload, type: removeResultsToUserInput}) -export const createSearch = (payload: {|+term: string, +service: Constants.Service, +searchKey: string|}) => ({error: false, payload, type: search}) +export const createFinishedSearch = (payload: {|+searchResults: Array, +searchResultTerm: string, +service: Types.Service, +searchKey: string, +searchShowingSuggestions?: boolean|}) => ({error: false, payload, type: finishedSearch}) +export const createRemoveResultsToUserInput = (payload: {|+searchKey: string, +searchResults: Array|}) => ({error: false, payload, type: removeResultsToUserInput}) +export const createSearch = (payload: {|+term: string, +service: Types.Service, +searchKey: string|}) => ({error: false, payload, type: search}) export const createSearchSuggestions = (payload: {|+maxUsers?: number, +searchKey: string|}) => ({error: false, payload, type: searchSuggestions}) -export const createSetUserInputItems = (payload: {|+searchKey: string, +searchResults: Array|}) => ({error: false, payload, type: setUserInputItems}) -export const createUpdateSelectedSearchResult = (payload: {|+searchKey: string, +id: ?Constants.SearchResultId|}) => ({error: false, payload, type: updateSelectedSearchResult}) -export const createUserInputItemsUpdated = (payload: {|+searchKey: string, +userInputItemIds: Array|}) => ({error: false, payload, type: userInputItemsUpdated}) +export const createSetUserInputItems = (payload: {|+searchKey: string, +searchResults: Array|}) => ({error: false, payload, type: setUserInputItems}) +export const createUpdateSelectedSearchResult = (payload: {|+searchKey: string, +id: ?Types.SearchResultId|}) => ({error: false, payload, type: updateSelectedSearchResult}) +export const createUserInputItemsUpdated = (payload: {|+searchKey: string, +userInputItemIds: Array|}) => ({error: false, payload, type: userInputItemsUpdated}) // Action Payloads export type AddClickedFromUserInputPayload = More.ReturnType diff --git a/shared/actions/search.js b/shared/actions/search.js index d4e91c0ddf6b..3721c0eb0c14 100644 --- a/shared/actions/search.js +++ b/shared/actions/search.js @@ -1,5 +1,6 @@ // @flow import * as Constants from '../constants/search' +import * as Types from '../constants/types/search' import * as SearchGen from './search-gen' import * as EntityAction from './entities' import * as I from 'immutable' @@ -35,7 +36,7 @@ type RawResult = { }, } -function _serviceToApiServiceName(service: Constants.Service): string { +function _serviceToApiServiceName(service: Types.Service): string { return ( { Facebook: 'facebook', @@ -48,18 +49,18 @@ function _serviceToApiServiceName(service: Constants.Service): string { ) } -function _rawResultToId(serviceName: string, serviceUsername: string): Constants.SearchResultId { +function _rawResultToId(serviceName: string, serviceUsername: string): Types.SearchResultId { if (serviceName.toLowerCase() === 'keybase' || serviceName === '') { return serviceUsername } return `${serviceUsername}@${serviceName}` } -function _toSearchQuery(serviceName: string, searchTerm: string): Constants.SearchQuery { +function _toSearchQuery(serviceName: string, searchTerm: string): Types.SearchQuery { return `${serviceName}-${searchTerm}` } -function _parseKeybaseRawResult(result: RawResult): Constants.SearchResult { +function _parseKeybaseRawResult(result: RawResult): Types.SearchResult { if (result.keybase && result.service) { const {keybase, service} = result return { @@ -93,7 +94,7 @@ function _parseKeybaseRawResult(result: RawResult): Constants.SearchResult { throw new SearchError(`Invalid raw result for keybase. Missing result.keybase ${JSON.stringify(result)}`) } -function _parseThirdPartyRawResult(result: RawResult): Constants.SearchResult { +function _parseThirdPartyRawResult(result: RawResult): Types.SearchResult { if (result.service && result.keybase) { const {service, keybase} = result return { @@ -129,7 +130,8 @@ function _parseThirdPartyRawResult(result: RawResult): Constants.SearchResult { ) } -function _parseRawResultToRow(result: RawResult, service: Constants.Service) { +function _parseRawResultToRow(result: RawResult, service: Types.Service) { + // $FlowIssue shouldn't accept a '' but this logic exists and i don't want to test removing it if (service === '' || service === 'Keybase') { return _parseKeybaseRawResult(result) } else { @@ -193,7 +195,7 @@ function* search({payload: {term, service, searchKey}}: SearchGen.SearchPayload) // Make a version that maps from keybase id to SearchResult. // This is in case we want to lookup this data by their keybase id. // (like the case of upgrading a 3rd party result to a kb result) - const kbRows: Array = rows.filter(r => r.rightService === 'Keybase').map(r => ({ + const kbRows: Array = rows.filter(r => r.rightService === 'Keybase').map(r => ({ id: r.rightUsername || '', leftService: 'Keybase', leftUsername: r.rightUsername, diff --git a/shared/actions/teams/creators.js b/shared/actions/teams/creators.js index 33398b9a6459..09b35da23196 100644 --- a/shared/actions/teams/creators.js +++ b/shared/actions/teams/creators.js @@ -1,5 +1,5 @@ // @flow -import * as Constants from '../../constants/teams' +import * as Types from '../../constants/types/teams' import type {ConversationIDKey} from '../../constants/types/chat' function createNewTeam(name: string) { @@ -14,62 +14,62 @@ function createChannel(teamname: string, channelname: string, description: ?stri return {payload: {channelname, description, teamname}, type: 'teams:createChannel'} } -function getChannels(teamname: string): Constants.GetChannels { +function getChannels(teamname: string): Types.GetChannels { return {payload: {teamname}, type: 'teams:getChannels'} } -function getTeams(): Constants.GetTeams { +function getTeams(): Types.GetTeams { return {payload: {}, type: 'teams:getTeams'} } -function getDetails(teamname: string): Constants.GetDetails { +function getDetails(teamname: string): Types.GetDetails { return {payload: {teamname}, type: 'teams:getDetails'} } -function toggleChannelMembership(teamname: string, channelname: string): Constants.ToggleChannelMembership { +function toggleChannelMembership(teamname: string, channelname: string): Types.ToggleChannelMembership { return {payload: {channelname, teamname}, type: 'teams:toggleChannelMembership'} } function saveChannelMembership( teamname: string, - channelState: Constants.ChannelMembershipState -): Constants.SaveChannelMembership { + channelState: Types.ChannelMembershipState +): Types.SaveChannelMembership { return {payload: {channelState, teamname}, type: 'teams:saveChannelMembership'} } -function addPeopleToTeam(teamname: string, role: string): Constants.AddPeopleToTeam { +function addPeopleToTeam(teamname: string, role: string): Types.AddPeopleToTeam { return {payload: {role, teamname}, type: 'teams:addPeopleToTeam'} } function inviteToTeamByEmail( teamname: string, - role: Constants.TeamRoleType, + role: Types.TeamRoleType, invitees: string -): Constants.InviteToTeamByEmail { +): Types.InviteToTeamByEmail { return {payload: {invitees, role, teamname}, type: 'teams:inviteToTeamByEmail'} } function inviteToTeamByPhone( teamname: string, - role: Constants.TeamRoleType, + role: Types.TeamRoleType, phoneNumber: string -): Constants.InviteToTeamByPhone { +): Types.InviteToTeamByPhone { return {payload: {teamname, role, phoneNumber}, type: 'teams:inviteToTeamByPhone'} } -function joinTeam(teamname: string): Constants.JoinTeam { +function joinTeam(teamname: string): Types.JoinTeam { return {payload: {teamname}, type: 'teams:joinTeam'} } -function leaveTeam(teamname: string): Constants.LeaveTeam { +function leaveTeam(teamname: string): Types.LeaveTeam { return {payload: {teamname}, type: 'teams:leaveTeam'} } function makeTeamOpen( teamname: string, convertToOpen: boolean, - defaultRole: Constants.TeamRoleType -): Constants.MakeTeamOpen { + defaultRole: Types.TeamRoleType +): Types.MakeTeamOpen { return {payload: {convertToOpen, defaultRole, teamname}, type: 'teams:makeTeamOpen'} } @@ -77,25 +77,21 @@ function addToTeam( name: string, email: string, username: string, - role: Constants.TeamRoleType, + role: Types.TeamRoleType, sendChatNotification: boolean -): Constants.AddToTeam { +): Types.AddToTeam { return {payload: {name, email, username, role, sendChatNotification}, type: 'teams:addToTeam'} } -function editMembership( - name: string, - username: string, - role: Constants.TeamRoleType -): Constants.EditMembership { +function editMembership(name: string, username: string, role: Types.TeamRoleType): Types.EditMembership { return {payload: {name, username, role}, type: 'teams:editMembership'} } -function removeMember(email: string, name: string, username: string): Constants.RemoveMemberOrPendingInvite { +function removeMember(email: string, name: string, username: string): Types.RemoveMemberOrPendingInvite { return {payload: {email, name, username}, type: 'teams:removeMemberOrPendingInvite'} } -function ignoreRequest(name: string, username: string): Constants.IgnoreRequest { +function ignoreRequest(name: string, username: string): Types.IgnoreRequest { return {payload: {name, username}, type: 'teams:ignoreRequest'} } @@ -107,44 +103,44 @@ function setPublicityTeam(teamname: string, enabled: boolean) { return {payload: {enabled, teamname}, type: 'teams:setPublicityTeam'} } -function setTeamCreationError(teamCreationError: string): Constants.SetTeamCreationError { +function setTeamCreationError(teamCreationError: string): Types.SetTeamCreationError { return {payload: {teamCreationError}, type: 'teams:setTeamCreationError'} } -function setTeamCreationPending(teamCreationPending: boolean): Constants.SetTeamCreationPending { +function setTeamCreationPending(teamCreationPending: boolean): Types.SetTeamCreationPending { return {payload: {teamCreationPending}, type: 'teams:setTeamCreationPending'} } -function setTeamJoinError(teamJoinError: string): Constants.SetTeamJoinError { +function setTeamJoinError(teamJoinError: string): Types.SetTeamJoinError { return {payload: {teamJoinError}, type: 'teams:setTeamJoinError'} } -function setTeamJoinSuccess(teamJoinSuccess: boolean): Constants.SetTeamJoinSuccess { +function setTeamJoinSuccess(teamJoinSuccess: boolean): Types.SetTeamJoinSuccess { return {payload: {teamJoinSuccess}, type: 'teams:setTeamJoinSuccess'} } -function setupTeamHandlers(): Constants.SetupTeamHandlers { +function setupTeamHandlers(): Types.SetupTeamHandlers { return {payload: undefined, type: 'teams:setupTeamHandlers'} } function updateChannelName( conversationIDKey: ConversationIDKey, newChannelName: string -): Constants.UpdateChannelName { +): Types.UpdateChannelName { return {payload: {conversationIDKey, newChannelName}, type: 'teams:updateChannelName'} } -function updateTopic(conversationIDKey: ConversationIDKey, newTopic: string): Constants.UpdateTopic { +function updateTopic(conversationIDKey: ConversationIDKey, newTopic: string): Types.UpdateTopic { return {payload: {conversationIDKey, newTopic}, type: 'teams:updateTopic'} } -function deleteChannel(conversationIDKey: ConversationIDKey): Constants.DeleteChannel { +function deleteChannel(conversationIDKey: ConversationIDKey): Types.DeleteChannel { return {payload: {conversationIDKey}, type: 'teams:deleteChannel'} } function badgeAppForTeams( newTeamNames: Array, newTeamAccessRequests: Array -): Constants.BadgeAppForTeams { +): Types.BadgeAppForTeams { return {payload: {newTeamNames, newTeamAccessRequests}, type: 'teams:badgeAppForTeams'} } diff --git a/shared/actions/teams/index.js b/shared/actions/teams/index.js index 56430aabe9ad..d9fc942d88dc 100644 --- a/shared/actions/teams/index.js +++ b/shared/actions/teams/index.js @@ -3,6 +3,7 @@ import map from 'lodash/map' import keyBy from 'lodash/keyBy' import last from 'lodash/last' import * as I from 'immutable' +import * as Types from '../../constants/types/teams' import * as Constants from '../../constants/teams' import * as ChatConstants from '../../constants/chat' import * as ChatTypes from '../../constants/types/chat' @@ -27,7 +28,7 @@ import {convertToError} from '../../util/errors' import type {TypedState} from '../../constants/reducer' -const _createNewTeam = function*(action: Constants.CreateNewTeam) { +const _createNewTeam = function*(action: Types.CreateNewTeam) { const {payload: {name}} = action yield Saga.put(Creators.setTeamCreationError('')) yield Saga.put(Creators.setTeamCreationPending(true)) @@ -46,7 +47,7 @@ const _createNewTeam = function*(action: Constants.CreateNewTeam) { } } -const _joinTeam = function*(action: Constants.JoinTeam) { +const _joinTeam = function*(action: Types.JoinTeam) { const {payload: {teamname}} = action yield Saga.all([Saga.put(Creators.setTeamJoinError('')), Saga.put(Creators.setTeamJoinSuccess(false))]) try { @@ -61,7 +62,7 @@ const _joinTeam = function*(action: Constants.JoinTeam) { } } -const _leaveTeam = function(action: Constants.LeaveTeam) { +const _leaveTeam = function(action: Types.LeaveTeam) { const {payload: {teamname}} = action return Saga.call(RPCTypes.teamsTeamLeaveRpcPromise, { name: teamname, @@ -69,7 +70,7 @@ const _leaveTeam = function(action: Constants.LeaveTeam) { }) } -const _addPeopleToTeam = function*(action: Constants.AddPeopleToTeam) { +const _addPeopleToTeam = function*(action: Types.AddPeopleToTeam) { const {payload: {role, teamname}} = action yield Saga.put(replaceEntity(['teams', 'teamNameToLoading'], I.Map([[teamname, true]]))) const ids = yield Saga.select(SearchConstants.getUserInputItemIds, {searchKey: 'addToTeamSearch'}) @@ -85,7 +86,7 @@ const _addPeopleToTeam = function*(action: Constants.AddPeopleToTeam) { yield Saga.put((dispatch: Dispatch) => dispatch(Creators.getDetails(teamname))) // getDetails will unset loading } -const _inviteByEmail = function*(action: Constants.InviteToTeamByEmail) { +const _inviteByEmail = function*(action: Types.InviteToTeamByEmail) { const {payload: {invitees, role, teamname}} = action yield Saga.put(replaceEntity(['teams', 'teamNameToLoading'], I.Map([[teamname, true]]))) yield Saga.put( @@ -104,7 +105,7 @@ const _inviteByEmail = function*(action: Constants.InviteToTeamByEmail) { } } -const _addToTeam = function*(action: Constants.AddToTeam) { +const _addToTeam = function*(action: Types.AddToTeam) { const {payload: {name, email, username, role, sendChatNotification}} = action yield Saga.put(replaceEntity(['teams', 'teamNameToLoading'], I.Map([[name, true]]))) try { @@ -121,7 +122,7 @@ const _addToTeam = function*(action: Constants.AddToTeam) { } } -const _editMembership = function*(action: Constants.EditMembership) { +const _editMembership = function*(action: Types.EditMembership) { const {payload: {name, username, role}} = action yield Saga.put(replaceEntity(['teams', 'teamNameToLoading'], I.Map([[name, true]]))) try { @@ -135,7 +136,7 @@ const _editMembership = function*(action: Constants.EditMembership) { } } -const _removeMemberOrPendingInvite = function*(action: Constants.RemoveMemberOrPendingInvite) { +const _removeMemberOrPendingInvite = function*(action: Types.RemoveMemberOrPendingInvite) { const {payload: {name, username, email}} = action yield Saga.put( @@ -163,7 +164,7 @@ const _removeMemberOrPendingInvite = function*(action: Constants.RemoveMemberOrP } } -const _inviteToTeamByPhone = function*(action: Constants.InviteToTeamByPhone) { +const _inviteToTeamByPhone = function*(action: Types.InviteToTeamByPhone) { const {payload: {teamname, phoneNumber}} = action yield Saga.put( replaceEntity(['teams', 'teamNameToLoadingInvites'], I.Map([[teamname, I.Map([[phoneNumber, true]])]])) @@ -174,7 +175,7 @@ const _inviteToTeamByPhone = function*(action: Constants.InviteToTeamByPhone) { ) } -const _ignoreRequest = function*(action: Constants.IgnoreRequest) { +const _ignoreRequest = function*(action: Types.IgnoreRequest) { const {payload: {name, username}} = action yield Saga.put(replaceEntity(['teams', 'teamNameToLoading'], I.Map([[name, true]]))) try { @@ -195,7 +196,7 @@ function getPendingConvParticipants(state: TypedState, conversationIDKey: ChatTy } const _createNewTeamFromConversation = function*( - action: Constants.CreateNewTeamFromConversation + action: Types.CreateNewTeamFromConversation ): Saga.SagaGenerator { const {payload: {conversationIDKey, name}} = action const me = yield Saga.select(usernameSelector) @@ -236,7 +237,7 @@ const _createNewTeamFromConversation = function*( } } -const _getDetails = function*(action: Constants.GetDetails): Saga.SagaGenerator { +const _getDetails = function*(action: Types.GetDetails): Saga.SagaGenerator { const teamname = action.payload.teamname yield Saga.put(replaceEntity(['teams', 'teamNameToLoading'], I.Map([[teamname, true]]))) try { @@ -335,7 +336,7 @@ const _getDetails = function*(action: Constants.GetDetails): Saga.SagaGenerator< const _changeOpenTeamSetting = function*({ payload: {teamname, convertToOpen, defaultRole}, -}: Constants.MakeTeamOpen) { +}: Types.MakeTeamOpen) { const param: RPCTypes.TeamsTeamSetSettingsRpcParam = { name: teamname, settings: { @@ -348,7 +349,7 @@ const _changeOpenTeamSetting = function*({ yield Saga.put(Creators.getDetails(teamname)) } -function _getChannels(action: Constants.GetChannels) { +function _getChannels(action: Types.GetChannels) { const teamname = action.payload.teamname const waitingKey = {key: `getChannels:${teamname}`} return Saga.all([ @@ -371,9 +372,8 @@ function _afterGetChannels( const convs = results.convs || [] convs.forEach(conv => { - const convID = ChatConstants.conversationIDToKey(conv.convID) - convIDs.push(convID) - convIDToChannelInfo[convID] = Constants.makeChannelInfo({ + convIDs.push(conv.convID) + convIDToChannelInfo[conv.convID] = Constants.makeChannelInfo({ channelname: conv.channel, description: conv.headline, participants: I.Set(conv.participants || []), @@ -387,7 +387,7 @@ function _afterGetChannels( ]) } -const _getTeams = function*(action: Constants.GetTeams): Saga.SagaGenerator { +const _getTeams = function*(action: Types.GetTeams): Saga.SagaGenerator { const username = yield Saga.select(usernameSelector) yield Saga.put(replaceEntity(['teams'], I.Map([['loaded', false]]))) try { @@ -417,7 +417,7 @@ const _getTeams = function*(action: Constants.GetTeams): Saga.SagaGenerator { const {teamname, channelname} = action.payload const {conversationIDKey, participants, you} = yield Saga.select((state: TypedState) => { @@ -445,10 +445,10 @@ const _toggleChannelMembership = function*( } const _saveChannelMembership = function( - {payload: {teamname, channelState}}: Constants.SaveChannelMembership, + {payload: {teamname, channelState}}: Types.SaveChannelMembership, state: TypedState ) { - const convIDs = Constants.getConvIdsFromTeamName(state, teamname) + const convIDs: I.Set = Constants.getConvIdsFromTeamName(state, teamname) const channelnameToConvID = keyBy(convIDs.toArray(), c => Constants.getChannelNameFromConvID(state, c)) const waitingKey = {key: `saveChannel:${teamname}`} @@ -461,11 +461,14 @@ const _saveChannelMembership = function( visibility: RPCTypes.commonTLFVisibility.private, }) } - return Saga.callAndWrap(RPCChatTypes.localLeaveConversationLocalRpcPromise, { - convID: channelnameToConvID[channelname] && - ChatConstants.keyToConversationID(channelnameToConvID[channelname]), - }) - }) + const convID = + channelnameToConvID[channelname] && ChatConstants.keyToConversationID(channelnameToConvID[channelname]) + if (convID) { + return Saga.callAndWrap(RPCChatTypes.localLeaveConversationLocalRpcPromise, { + convID, + }) + } + }).filter(Boolean) return Saga.all([ Saga.all(calls), @@ -487,7 +490,7 @@ const _afterSaveChannelMembership = results => { return Saga.all([...errs, after]) } -function* _createChannel(action: Constants.CreateChannel) { +function* _createChannel(action: Types.CreateChannel) { const {payload: {channelname, description, teamname}} = action const result = yield Saga.call(RPCChatTypes.localNewConversationLocalRpcPromise, { identifyBehavior: RPCTypes.tlfKeysTLFIdentifyBehavior.chatGui, @@ -520,7 +523,7 @@ function* _createChannel(action: Constants.CreateChannel) { } } -function* _setPublicityMember(action: Constants.SetPublicityMember) { +function* _setPublicityMember(action: Types.SetPublicityMember) { const {payload: {enabled, teamname}} = action yield Saga.put(replaceEntity(['teams', 'teamNameToLoading'], I.Map([[teamname, true]]))) yield Saga.call(RPCTypes.teamsSetTeamMemberShowcaseRpcPromise, { @@ -531,7 +534,7 @@ function* _setPublicityMember(action: Constants.SetPublicityMember) { yield Saga.put((dispatch: Dispatch) => dispatch(Creators.getDetails(teamname))) } -function* _setPublicityTeam(action: Constants.SetPublicityTeam) { +function* _setPublicityTeam(action: Types.SetPublicityTeam) { const {payload: {enabled, teamname}} = action yield Saga.put(replaceEntity(['teams', 'teamNameToLoading'], I.Map([[teamname, true]]))) yield Saga.call(RPCTypes.teamsSetTeamShowcaseRpcPromise, { @@ -556,7 +559,7 @@ function* _setupTeamHandlers(): Saga.SagaGenerator { }) } -function _updateTopic({payload: {conversationIDKey, newTopic}}: Constants.UpdateTopic, state: TypedState) { +function _updateTopic({payload: {conversationIDKey, newTopic}}: Types.UpdateTopic, state: TypedState) { const teamname = Constants.getTeamNameFromConvID(state, conversationIDKey) || '' const waitingKey = {key: `updateTopic:${conversationIDKey}`} const param = { @@ -577,7 +580,7 @@ function _updateTopic({payload: {conversationIDKey, newTopic}}: Constants.Update } function _updateChannelname( - {payload: {conversationIDKey, newChannelName}}: Constants.UpdateChannelName, + {payload: {conversationIDKey, newChannelName}}: Types.UpdateChannelName, state: TypedState ) { const teamname = Constants.getTeamNameFromConvID(state, conversationIDKey) || '' @@ -616,7 +619,7 @@ function* _deleteChannel({payload: {conversationIDKey}}): Saga.SagaGenerator state.config.username) if (!username) { // Don't make any calls we don't have permission to. diff --git a/shared/app/index.native.js b/shared/app/index.native.js index 4657fd4af09e..041d3a136a6a 100644 --- a/shared/app/index.native.js +++ b/shared/app/index.native.js @@ -63,7 +63,7 @@ class Keybase extends Component { this.store.dispatch(AppGen.createLink({link: event.url})) } - _handleAppStateChange = (nextAppState: string) => { + _handleAppStateChange = (nextAppState: 'active' | 'background' | 'inactive') => { this.store.dispatch(AppGen.createMobileAppState({nextAppState})) } diff --git a/shared/chat/inbox/container.js b/shared/chat/inbox/container.js index e7fb57426b7f..8fcf6321cdde 100644 --- a/shared/chat/inbox/container.js +++ b/shared/chat/inbox/container.js @@ -1,5 +1,6 @@ // @flow import * as Constants from '../../constants/chat' +import * as More from '../../constants/types/more' import * as Types from '../../constants/types/chat' import * as Inbox from '.' import * as ChatGen from '../../actions/chat-gen' @@ -12,9 +13,9 @@ import { withHandlers, createSelector, createImmutableEqualSelector, - type TypedState, } from '../../util/container' import {scoreFilter, passesStringFilter} from './filtering' +import type {TypedState} from '../../constants/reducer' const smallTeamsCollapsedMaxShown = 5 const getAlwaysShow = (state: TypedState) => state.chat.get('inboxAlwaysShow') @@ -26,7 +27,9 @@ const getIsEmpty = (state: TypedState) => state.chat.get('inboxIsEmpty') const getPending = (state: TypedState) => state.chat.get('pendingConversations') const getSmallTimestamps = (state: TypedState) => state.chat.getIn(['inboxSmallTimestamps'], I.Map()) const getSupersededBy = (state: TypedState) => state.chat.get('inboxSupersededBy') -const _rowsForSelect = (rows: Array) => rows.filter(r => ['small', 'big'].includes(r.type)) +const _rowsForSelect = (rows: Array): Array => + // $FlowIssue doesn't underestand filter refinement sadly + rows.filter(r => r.type === 'small' || r.type === 'big') const _smallTeamsPassThrough = (_, smallTeamsExpanded) => smallTeamsExpanded // This chain of reselects is to optimize not having to redo any work @@ -63,12 +66,15 @@ const getTeamToChannel = createSelector( inboxBigChannels, inboxBigChannelsToTeam ): {[teamname: string]: {[channelname: string]: Types.ConversationIDKey}} => { - const teamToChannels = {} + const teamToChannels: {[teamname: string]: {[channelname: string]: Types.ConversationIDKey}} = {} inboxBigChannelsToTeam.forEach((teamname, id) => { if (!teamToChannels[teamname]) { teamToChannels[teamname] = {} } - teamToChannels[teamname][inboxBigChannels.get(id)] = id + const channelname = inboxBigChannels.get(id) + if (channelname) { + teamToChannels[teamname][channelname] = id + } }) return teamToChannels } @@ -180,7 +186,19 @@ const getFilteredRows = createSelector( } ) -const mapStateToProps = (state: TypedState, {isActiveRoute, routeState}) => { +type OwnProps = { + isActiveRoute: boolean, + filterFocusCount: number, + routeState: I.RecordOf<{ + smallTeamsExpanded: boolean, + }>, + focusFilter: () => void, + setRouteState: ({ + smallTeamsExpanded?: boolean, + }) => void, +} + +const mapStateToProps = (state: TypedState, {isActiveRoute, routeState}: OwnProps) => { const filter = getFilter(state) const smallTeamsExpanded = routeState.get('smallTeamsExpanded') @@ -202,14 +220,17 @@ const mapStateToProps = (state: TypedState, {isActiveRoute, routeState}) => { filter, isActiveRoute, isLoading: state.chat.get('inboxGlobalUntrustedState') === 'loading', - user: Constants.getYou(state), + _user: Constants.getYou(state), } } -const mapDispatchToProps = (dispatch: Dispatch, {focusFilter, routeState, setRouteState}) => ({ +const mapDispatchToProps = (dispatch: any => void, {focusFilter, routeState, setRouteState}: OwnProps) => ({ loadInbox: () => dispatch(ChatGen.createLoadInbox()), - _onSelectNext: (rows, direction) => dispatch(ChatGen.createSelectNext({rows, direction})), - onHotkey: cmd => { + _onSelectNext: (rows: Array, direction: -1 | 1) => + dispatch( + ChatGen.createSelectNext({rows: rows.map(r => ({conversationIDKey: r.conversationIDKey})), direction}) + ), + onHotkey: (cmd: string) => { if (cmd.endsWith('+n')) { dispatch(ChatGen.createNewChat()) } else { @@ -221,19 +242,23 @@ const mapDispatchToProps = (dispatch: Dispatch, {focusFilter, routeState, setRou dispatch(ChatGen.createSelectConversation({conversationIDKey, fromUser: true})) }, onSetFilter: (filter: string) => dispatch(ChatGen.createSetInboxFilter({filter})), - onUntrustedInboxVisible: conversationIDKeys => + onUntrustedInboxVisible: (conversationIDKeys: Array) => dispatch(ChatGen.createUnboxConversations({conversationIDKeys, reason: 'untrusted inbox visible'})), toggleSmallTeamsExpanded: () => setRouteState({smallTeamsExpanded: !routeState.get('smallTeamsExpanded')}), }) // This merge props is not spreading on purpose so we never have any random props that might mutate and force a re-render -const mergeProps = (stateProps, dispatchProps, ownProps) => { +const mergeProps = ( + stateProps: More.ReturnType, + dispatchProps: More.ReturnType, + ownProps: OwnProps +) => { return { filter: stateProps.filter, isActiveRoute: stateProps.isActiveRoute, isLoading: stateProps.isLoading, loadInbox: dispatchProps.loadInbox, - user: stateProps.user, + _user: stateProps._user, onHotkey: dispatchProps.onHotkey, onNewChat: dispatchProps.onNewChat, onSelect: dispatchProps.onSelect, @@ -262,9 +287,10 @@ export default compose( pausableConnect(mapStateToProps, mapDispatchToProps, mergeProps), lifecycle({ componentDidMount: function() { - if (_lastUser !== this.props.user) { - _lastUser = this.props.user - this.props.loadInbox() + const props: Inbox.Props & {_user: ?string} = this.props + if (_lastUser !== props._user) { + _lastUser = props._user + props.loadInbox() } }, }) diff --git a/shared/chat/inbox/index.js.flow b/shared/chat/inbox/index.js.flow index 6942e64630e3..97293ca2f5b5 100644 --- a/shared/chat/inbox/index.js.flow +++ b/shared/chat/inbox/index.js.flow @@ -2,30 +2,27 @@ import * as React from 'react' import type {ConversationIDKey} from '../../constants/types/chat' -export type RowItemSmall = { +export type RowItemSmall = {| type: 'small', conversationIDKey: ConversationIDKey, -} - -export type RowItemBigTeamsLabel = { +|} +export type RowItemBigTeamsLabel = {| type: 'bigTeamsLabel', isFiltered: boolean, -} -export type RowItemBigHeader = { +|} +export type RowItemBigHeader = {| type: 'bigHeader', teamname: string, -} -export type RowItemBig = { +|} +export type RowItemBig = {| type: 'big', - conversationIDKey: ?ConversationIDKey, + conversationIDKey: ConversationIDKey, teamname: string, channelname: string, -} - -export type RowItemDivider = { +|} +export type RowItemDivider = {| type: 'divider', - isBadged: boolean, -} +|} export type RowItem = RowItemSmall | RowItemBigTeamsLabel | RowItemBigHeader | RowItemBig | RowItemDivider diff --git a/shared/chat/manage-channels/container.js b/shared/chat/manage-channels/container.js index 01cabae23591..c4f28358d9b8 100644 --- a/shared/chat/manage-channels/container.js +++ b/shared/chat/manage-channels/container.js @@ -2,7 +2,7 @@ import pickBy from 'lodash/pickBy' import isEqual from 'lodash/isEqual' import * as I from 'immutable' -import * as Constants from '../../constants/teams' +import * as Types from '../../constants/types/teams' import ManageChannels from '.' import {withHandlers, withState, withPropsOnChange} from 'recompose' import {pausableConnect, compose, lifecycle, type TypedState} from '../../util/container' @@ -20,7 +20,7 @@ const mapStateToProps = (state: TypedState, {routeProps, routeState}) => { const channels = convIDs .map(convID => { - const info: ?Constants.ChannelInfo = state.entities.getIn(['teams', 'convIDToChannelInfo', convID]) + const info: ?Types.ChannelInfo = state.entities.getIn(['teams', 'convIDToChannelInfo', convID]) return info && info.channelname ? { diff --git a/shared/chat/manage-channels/index.js.flow b/shared/chat/manage-channels/index.js.flow index 45bc5d5a0e41..a3d907ad7032 100644 --- a/shared/chat/manage-channels/index.js.flow +++ b/shared/chat/manage-channels/index.js.flow @@ -1,6 +1,6 @@ // @flow import * as React from 'react' -import {type ChannelMembershipState} from '../../constants/teams' +import {type ChannelMembershipState} from '../../constants/types/teams' import {type ConversationIDKey} from '../../constants/types/chat' export type RowProps = { diff --git a/shared/constants/git.js b/shared/constants/git.js index 64d9bce9b822..15a7dd9a1019 100644 --- a/shared/constants/git.js +++ b/shared/constants/git.js @@ -1,19 +1,9 @@ // @flow import * as I from 'immutable' -import {type TypedState} from './reducer' +import * as Types from './types/git' +import type {TypedState} from './reducer' -type _GitInfo = { - canDelete: boolean, - devicename: string, - id: string, - lastEditTime: string, - lastEditUser: string, - name: string, - teamname: ?string, - url: string, -} -export type GitInfo = I.RecordOf<_GitInfo> -export const makeGitInfo: I.RecordFactory<_GitInfo> = I.Record({ +export const makeGitInfo: I.RecordFactory = I.Record({ canDelete: false, devicename: '', id: '', @@ -24,14 +14,7 @@ export const makeGitInfo: I.RecordFactory<_GitInfo> = I.Record({ url: '', }) -type _State = { - error: ?Error, - idToInfo: I.Map, - isNew: I.Set, - loading: boolean, -} -export type State = I.RecordOf<_State> -export const makeState: I.RecordFactory<_State> = I.Record({ +export const makeState: I.RecordFactory = I.Record({ error: null, idToInfo: I.Map(), isNew: I.Set(), diff --git a/shared/constants/reducer.js b/shared/constants/reducer.js index 5e545bf375cc..ca8c88c61d2e 100644 --- a/shared/constants/reducer.js +++ b/shared/constants/reducer.js @@ -21,26 +21,26 @@ import type {State as Tracker} from '../constants/types/tracker' import type {State as UnlockFolders} from '../constants/types/unlock-folders' import type {State as Waiting} from '../constants/types/waiting' -export type TypedState = { - config: Config, - chat: Chat, - dev: Dev, - devices: Devices, - entities: Entity, - engine: Engine, - favorite: Favorite, - gregor: Gregor, - login: Login, - notifications: Notification, - pgp: Pgp, - pinentry: Pinentry, - planBilling: Billing, - profile: Profile, - push: Push, - routeTree: RouteTree, - settings: Settings, - signup: Signup, - tracker: Tracker, - unlockFolders: UnlockFolders, - waiting: Waiting, -} +export type TypedState = {| + +config: Config, + +chat: Chat, + +dev: Dev, + +devices: Devices, + +entities: Entity, + +engine: Engine, + +favorite: Favorite, + +gregor: Gregor, + +login: Login, + +notifications: Notification, + +pgp: Pgp, + +pinentry: Pinentry, + +planBilling: Billing, + +profile: Profile, + +push: Push, + +routeTree: RouteTree, + +settings: Settings, + +signup: Signup, + +tracker: Tracker, + +unlockFolders: UnlockFolders, + +waiting: Waiting, +|} diff --git a/shared/constants/search.js b/shared/constants/search.js index cb9cbaca8892..e4b53031cfe8 100644 --- a/shared/constants/search.js +++ b/shared/constants/search.js @@ -1,68 +1,13 @@ // @flow import * as I from 'immutable' +import * as Types from './types/search' import * as SearchGen from '../actions/search-gen' import {amIFollowing, usernameSelector} from './selectors' import {type IconType} from '../common-adapters/icon' import {createSelector} from 'reselect' import {type TypedState} from './reducer' -const services: {[service: string]: true} = { - Facebook: true, - GitHub: true, - 'Hacker News': true, - Keybase: true, - Reddit: true, - Twitter: true, -} - -export type Service = $Keys - -export type FollowingState = 'Following' | 'NotFollowing' | 'NoState' | 'You' - -// This is what the api expects/returns -export type SearchPlatform = 'Keybase' | 'Twitter' | 'Github' | 'Reddit' | 'Hackernews' | 'Pgp' | 'Facebook' - -export type SearchResultId = string // i.e. marcopolo or marcopolo@github -export type SearchQuery = string - -export type RowProps = { - id: SearchResultId, - - leftFollowingState: FollowingState, - leftIcon: ?IconType, // If service is keybase this can be null - leftService: Service, - leftUsername: string, - - rightFollowingState: FollowingState, - rightFullname: ?string, - rightIcon: ?IconType, - rightService: ?Service, - rightUsername: ?string, - - showTrackerButton: boolean, - onShowTracker: () => void, - onClick: () => void, - onMouseOver?: () => void, - selected: boolean, - userIsInTeam: boolean, -} - -// A normalized version of the row props above. -// The connector should fill in the missing pieces like the following state -export type SearchResult = { - id: SearchResultId, - - leftIcon: ?IconType, // If service is keybase this can be null - leftService: Service, - leftUsername: string, - - rightFullname: ?string, - rightIcon: ?IconType, - rightService: ?Service, - rightUsername: ?string, -} - -export const makeSearchResult: I.RecordFactory = I.Record({ +export const makeSearchResult: I.RecordFactory = I.Record({ id: '', leftIcon: null, @@ -75,7 +20,7 @@ export const makeSearchResult: I.RecordFactory = I.Record({ rightUsername: null, }) -function serviceIdToService(serviceId: string): Service { +function serviceIdToService(serviceId: string): Types.Service { return { keybase: 'Keybase', twitter: 'Twitter', @@ -86,7 +31,7 @@ function serviceIdToService(serviceId: string): Service { }[serviceId] } -function followStateHelper(state: TypedState, username: string, service: Service) { +function followStateHelper(state: TypedState, username: string, service: Types.Service) { const me = usernameSelector(state) if (service === 'Keybase') { if (username === me) { @@ -100,8 +45,8 @@ function followStateHelper(state: TypedState, username: string, service: Service function maybeUpgradeSearchResultIdToKeybaseId( searchResultMap: $PropertyType<$PropertyType, 'searchResults'>, - id: SearchResultId -): SearchResultId { + id: Types.SearchResultId +): Types.SearchResultId { const searchResult = searchResultMap.get(id) if (searchResult) { if (searchResult.leftService === 'Keybase') { @@ -114,54 +59,18 @@ function maybeUpgradeSearchResultIdToKeybaseId( return id } -function platformToIcon(service: Service): IconType { - return { - Keybase: 'iconfont-identity-devices', - Twitter: 'iconfont-identity-twitter', - Github: 'iconfont-identity-github', - Reddit: 'iconfont-identity-reddit', - Hackernews: 'iconfont-identity-hn', - Pgp: 'iconfont-identity-pgp', - Facebook: 'iconfont-identity-facebook', - }[service] -} - -function platformToLogo32(service: Service): IconType { - return { - Keybase: 'icon-keybase-logo-32', - Twitter: 'icon-twitter-logo-32', - Github: 'icon-github-logo-32', - Reddit: 'icon-reddit-logo-32', - Hackernews: 'icon-hacker-news-logo-32', - Pgp: 'icon-pgp-key-32', - Facebook: 'icon-facebook-logo-32', - }[service] -} - -function platformToLogo24(service: Service): IconType { +function platformToLogo24(service: Types.Service): IconType { return { Keybase: 'icon-keybase-logo-24', Twitter: 'icon-twitter-logo-24', - Github: 'icon-github-logo-24', + GitHub: 'icon-github-logo-24', Reddit: 'icon-reddit-logo-24', - Hackernews: 'icon-hacker-news-logo-24', + 'Hacker News': 'icon-hacker-news-logo-24', Pgp: 'icon-pgp-key-24', Facebook: 'icon-facebook-logo-24', }[service] } -function platformToLogo16(service: Service): IconType { - return { - Keybase: 'icon-keybase-logo-16', - Twitter: 'icon-twitter-logo-16', - Github: 'icon-github-logo-16', - Reddit: 'icon-reddit-logo-16', - Hackernews: 'icon-hacker-news-logo-16', - Pgp: 'icon-pgp-key-16', - Facebook: 'icon-facebook-logo-16', - }[service] -} - const isUserInputItemsUpdated = (searchKey: string) => (action: any) => action.type === SearchGen.userInputItemsUpdated && action.payload && action.payload.searchKey === searchKey @@ -181,10 +90,7 @@ export { serviceIdToService, followStateHelper, maybeUpgradeSearchResultIdToKeybaseId, - platformToIcon, - platformToLogo32, platformToLogo24, - platformToLogo16, getClearSearchTextInput, getSearchResultIdsArray, getUserInputItemIds, diff --git a/shared/constants/selectors.js b/shared/constants/selectors.js index e89751ed63fd..9f956c438e01 100644 --- a/shared/constants/selectors.js +++ b/shared/constants/selectors.js @@ -2,7 +2,7 @@ // Not use util/container as we have import loops otherwise import {createSelector} from 'reselect' import {type TypedState} from './reducer' -import {type SearchQuery} from './search' +import {type SearchQuery} from './types/search' const usernameSelector = ({config: {username}}: TypedState) => username const loggedInSelector = ({config: {loggedIn}}: TypedState) => loggedIn diff --git a/shared/constants/teams.js b/shared/constants/teams.js index b75ee62be1e2..c7d8f275da1a 100644 --- a/shared/constants/teams.js +++ b/shared/constants/teams.js @@ -1,244 +1,47 @@ // @flow import * as I from 'immutable' -import * as Types from './types/chat' +import * as ChatTypes from './types/chat' +import * as Types from './types/teams' import {userIsInTeam, usernameSelector} from './selectors' import * as RPCTypes from './types/flow-types' import invert from 'lodash/invert' -import type {Service} from './search' -import {type NoErrorTypedAction} from './types/flux' +import type {Service} from './types/search' import {type TypedState} from './reducer' -type _PublicitySettings = { - member: boolean, - team: boolean, -} -export type TeamSettings = RPCTypes.TeamSettings -export type ChannelMembershipState = {[channelname: string]: boolean} - -export type CreateNewTeam = NoErrorTypedAction< - 'teams:createNewTeam', - { - name: string, - } -> - -export type CreateNewTeamFromConversation = NoErrorTypedAction< - 'teams:createNewTeamFromConversation', - { - conversationIDKey: Types.ConversationIDKey, - name: string, - } -> - export const teamRoleTypes = ['reader', 'writer', 'admin', 'owner'] -export type TeamRoleType = 'reader' | 'writer' | 'admin' | 'owner' - -export type AddToTeam = NoErrorTypedAction< - 'teams:addToTeam', - { - name: string, - email: string, - username: string, - role: ?TeamRoleType, - sendChatNotification: boolean, - } -> -export type EditMembership = NoErrorTypedAction< - 'teams:editMembership', - {name: string, username: string, role: TeamRoleType} -> -export type InviteToTeamByPhone = NoErrorTypedAction< - 'teams:inviteToTeamByPhone', - { - teamname: string, - role: string, - phoneNumber: string, - } -> - -// username -> removeMember -// email -> removePendingInvite -export type RemoveMemberOrPendingInvite = NoErrorTypedAction< - 'teams:removeMemberOrPendingInvite', - {name: string, username: string, email: string} -> -export type IgnoreRequest = NoErrorTypedAction<'teams:ignoreRequest', {name: string, username: string}> -export type JoinTeam = NoErrorTypedAction<'teams:joinTeam', {teamname: string}> -export type LeaveTeam = NoErrorTypedAction<'teams:leaveTeam', {teamname: string}> -export type GetChannels = NoErrorTypedAction<'teams:getChannels', {teamname: string}> - -export type MakeTeamOpen = NoErrorTypedAction< - 'teams:makeTeamOpen', - {convertToOpen: boolean, defaultRole: TeamRoleType, teamname: string} -> - -export type GetTeams = NoErrorTypedAction<'teams:getTeams', {}> - -export type BadgeAppForTeams = NoErrorTypedAction< - 'teams:badgeAppForTeams', - {newTeamNames?: ?Array, newTeamAccessRequests?: ?Array} -> - -export type ToggleChannelMembership = NoErrorTypedAction< - 'teams:toggleChannelMembership', - {teamname: string, channelname: string} -> - -export type SetupTeamHandlers = NoErrorTypedAction<'teams:setupTeamHandlers', void> -export type GetDetails = NoErrorTypedAction<'teams:getDetails', {teamname: string}> -export type CreateChannel = NoErrorTypedAction< - 'teams:createChannel', - {channelname: string, description: string, teamname: string} -> - -export type Teamname = string - -type _ChannelInfo = { - channelname: ?string, - description: ?string, - participants: I.Set, -} - -export type ChannelInfo = I.RecordOf<_ChannelInfo> -export const makeChannelInfo: I.RecordFactory<_ChannelInfo> = I.Record({ +export const makeChannelInfo: I.RecordFactory = I.Record({ channelname: null, description: null, participants: I.Set(), }) -type _MemberInfo = { - type: ?TeamRoleType, - username: string, -} - -export type MemberInfo = I.RecordOf<_MemberInfo> -export const makeMemberInfo: I.RecordFactory<_MemberInfo> = I.Record({ +export const makeMemberInfo: I.RecordFactory = I.Record({ type: null, username: '', }) -type _InviteInfo = { - email: string, - role: TeamRoleType, - username: string, -} - -export type InviteInfo = I.RecordOf<_InviteInfo> -export const makeInviteInfo: I.RecordFactory<_InviteInfo> = I.Record({ +export const makeInviteInfo: I.RecordFactory = I.Record({ email: '', role: 'writer', username: '', }) -type _RequestInfo = { - username: string, -} - -export type RequestInfo = I.RecordOf<_RequestInfo> -export const makeRequestInfo: I.RecordFactory<_RequestInfo> = I.Record({ +export const makeRequestInfo: I.RecordFactory = I.Record({ username: '', }) -export type TabKey = 'members' | 'requests' | 'pending' - -export type SetTeamCreationError = NoErrorTypedAction< - 'teams:setTeamCreationError', - {teamCreationError: string} -> - -export type SetTeamCreationPending = NoErrorTypedAction< - 'teams:setTeamCreationPending', - {teamCreationPending: boolean} -> - -export type SetTeamJoinError = NoErrorTypedAction<'teams:setTeamJoinError', {teamJoinError: string}> -export type SetTeamJoinSuccess = NoErrorTypedAction<'teams:setTeamJoinSuccess', {teamJoinSuccess: boolean}> - -export type AddPeopleToTeam = NoErrorTypedAction<'teams:addPeopleToTeam', {role: string, teamname: string}> - -export type InviteToTeamByEmail = NoErrorTypedAction< - 'teams:inviteToTeamByEmail', - {invitees: string, role: string, teamname: string} -> - -export type SetPublicityMember = NoErrorTypedAction< - 'teams:setPublicityMember', - {enabled: boolean, teamname: string} -> - -export type SetPublicityTeam = NoErrorTypedAction< - 'teams:setPublicityTeam', - {enabled: boolean, teamname: string} -> - -export type UpdateChannelName = NoErrorTypedAction< - 'teams:updateChannelName', - {conversationIDKey: Types.ConversationIDKey, newChannelName: string} -> - -export type UpdateTopic = NoErrorTypedAction< - 'teams:updateTopic', - {conversationIDKey: Types.ConversationIDKey, newTopic: string} -> - -export type DeleteChannel = NoErrorTypedAction< - 'teams:deleteChannel', - {conversationIDKey: Types.ConversationIDKey} -> - -export type SaveChannelMembership = NoErrorTypedAction< - 'teams:saveChannelMembership', - {channelState: ChannelMembershipState, teamname: string} -> - export const teamRoleByEnum = invert(RPCTypes.teamsTeamRole) -export type TypeMap = { - admin: string | boolean, - owner: string | boolean, - reader: string | boolean, - writer: string | boolean, -} - -export const typeToLabel: TypeMap = { +export const typeToLabel: Types.TypeMap = { admin: 'Admin', owner: 'Owner', reader: 'Reader', writer: 'Writer', } -type _State = { - convIDToChannelInfo: I.Map, - sawChatBanner: boolean, - teamNameToConvIDs: I.Map>, - teamNameToInvites: I.Map< - Teamname, - I.Set< - I.RecordOf<{ - email: string, - role: TeamRoleType, - username: string, - }> - > - >, - teamNameToLoadingInvites: I.Map>, - teamNameToMembers: I.Map>, - teamNameToMemberUsernames: I.Map>, - teamNameToImplicitAdminUsernames: I.Map>, - teamNameToLoading: I.Map, - teamNameToRequests: I.Map>, - teamNameToTeamSettings: I.Map, - teamNameToPublicitySettings: I.Map, - teamnames: I.Set, - teammembercounts: I.Map, - newTeams: I.Set, - newTeamRequests: I.List, - loaded: boolean, -} -export type State = I.RecordOf<_State> -export const makeState: I.RecordFactory<_State> = I.Record({ +export const makeState: I.RecordFactory = I.Record({ convIDToChannelInfo: I.Map(), loaded: false, sawChatBanner: false, @@ -264,22 +67,22 @@ const userIsInTeamHelper = (state: TypedState, username: string, service: Servic // TODO this is broken. channelnames are not unique const getConversationIDKeyFromChannelName = (state: TypedState, channelname: string) => null -const getConvIdsFromTeamName = (state: TypedState, teamname: string) => +const getConvIdsFromTeamName = (state: TypedState, teamname: string): I.Set => state.entities.teams.teamNameToConvIDs.get(teamname, I.Set()) -const getTeamNameFromConvID = (state: TypedState, conversationIDKey: Types.ConversationIDKey) => +const getTeamNameFromConvID = (state: TypedState, conversationIDKey: ChatTypes.ConversationIDKey) => state.entities.teams.teamNameToConvIDs.findKey(i => i.has(conversationIDKey)) -const getChannelNameFromConvID = (state: TypedState, conversationIDKey: Types.ConversationIDKey) => +const getChannelNameFromConvID = (state: TypedState, conversationIDKey: ChatTypes.ConversationIDKey) => state.entities.teams.convIDToChannelInfo.getIn([conversationIDKey, 'channelname'], null) -const getTopicFromConvID = (state: TypedState, conversationIDKey: Types.ConversationIDKey) => +const getTopicFromConvID = (state: TypedState, conversationIDKey: ChatTypes.ConversationIDKey) => state.entities.teams.convIDToChannelInfo.getIn([conversationIDKey, 'description'], null) -const getParticipants = (state: TypedState, conversationIDKey: Types.ConversationIDKey) => +const getParticipants = (state: TypedState, conversationIDKey: ChatTypes.ConversationIDKey) => state.entities.getIn(['teams', 'convIDToChannelInfo', conversationIDKey, 'participants'], I.Set()) -const getMembersFromConvID = (state: TypedState, conversationIDKey: Types.ConversationIDKey) => { +const getMembersFromConvID = (state: TypedState, conversationIDKey: ChatTypes.ConversationIDKey) => { const teamname = getTeamNameFromConvID(state, conversationIDKey) if (teamname) { return state.entities.teams.teamNameToMembers.get(teamname, I.Set()) @@ -287,7 +90,7 @@ const getMembersFromConvID = (state: TypedState, conversationIDKey: Types.Conver return I.Set() } -const getYourRoleFromConvID = (state: TypedState, conversationIDKey: Types.ConversationIDKey) => { +const getYourRoleFromConvID = (state: TypedState, conversationIDKey: ChatTypes.ConversationIDKey) => { const members = getMembersFromConvID(state, conversationIDKey) const you = usernameSelector(state) const youAsMember = members.find(m => m.username === you) @@ -297,8 +100,8 @@ const getYourRoleFromConvID = (state: TypedState, conversationIDKey: Types.Conve return null } -const isAdmin = (type: TeamRoleType) => type === 'admin' -const isOwner = (type: TeamRoleType) => type === 'owner' +const isAdmin = (type: Types.TeamRoleType) => type === 'admin' +const isOwner = (type: Types.TeamRoleType) => type === 'owner' export const getFollowingMap = (state: TypedState) => state.config.following export const getFollowerMap = (state: TypedState) => state.config.followers diff --git a/shared/constants/types/chat.js b/shared/constants/types/chat.js index f8e077076a6f..991c7e5ebf7b 100644 --- a/shared/constants/types/chat.js +++ b/shared/constants/types/chat.js @@ -2,7 +2,7 @@ import * as I from 'immutable' import * as RPCChatTypes from './flow-types-chat' import * as RPCTypes from './flow-types' -import * as SearchConstants from '../search' +import * as SearchTypes from './search' import HiddenString from '../../util/hidden-string' import type {DeviceType} from './devices' @@ -240,7 +240,7 @@ export type _ConversationState = { typing: I.Set, } export type _ConversationBadgeState = { - convID: ConversationID, + convID: ?ConversationID, unreadMessages: number, badgeCounts: {[key: string]: number}, } @@ -284,7 +284,7 @@ export type _InboxState = { export type InboxState = I.RecordOf<_InboxState> export type SupersedeInfo = { - conversationIDKey: ConversationID, + conversationIDKey: ConversationIDKey, finalizeInfo: RPCChatTypes.ConversationFinalizeInfo, } @@ -358,9 +358,9 @@ export type _State = { rekeyInfos: I.Map, searchPending: boolean, searchResultTerm: string, - searchResults: ?I.List, + searchResults: ?I.List, searchShowingSuggestions: boolean, - selectedUsersInSearch: I.List, + selectedUsersInSearch: I.List, supersededByState: SupersededByState, supersedesState: SupersedesState, teamCreationError: string, diff --git a/shared/constants/types/entities.js b/shared/constants/types/entities.js index 276a0fa43eaa..bf457dd11bc5 100644 --- a/shared/constants/types/entities.js +++ b/shared/constants/types/entities.js @@ -1,9 +1,9 @@ // @flow import * as I from 'immutable' -import * as Teams from '../teams' +import * as Teams from './teams' import * as ChatTypes from './chat' -import * as SearchConstants from '../search' -import * as Git from '../git' +import * as SearchTypes from './search' +import * as Git from './git' import {type NoErrorTypedAction} from './flux' import {type DeviceDetail} from './devices' @@ -26,14 +26,14 @@ export type Subtract = NoErrorTypedAction< export type Actions = Delete | Merge | Replace | Subtract export type _SearchSubState = { - searchResults: I.Map>, - searchQueryToResult: I.Map>, - searchKeyToResults: I.Map>, + searchResults: I.Map>, + searchQueryToResult: I.Map>, + searchKeyToResults: I.Map>, searchKeyToPending: I.Map, - searchKeyToSelectedId: I.Map, + searchKeyToSelectedId: I.Map, searchKeyToShowSearchSuggestion: I.Map, - searchKeyToUserInputItemIds: I.Map>, - searchKeyToSearchResultQuery: I.Map, + searchKeyToUserInputItemIds: I.Map>, + searchKeyToSearchResultQuery: I.Map, searchKeyToClearSearchTextInput: I.Map, } export type SearchSubState = I.RecordOf<_SearchSubState> @@ -62,8 +62,8 @@ export type _State = { messages: I.Map, pagination: PaginationState, search: SearchSubState, - searchQueryToResult: I.Map>, - searchResults: I.Map, + searchQueryToResult: I.Map>, + searchResults: I.Map, teams: Teams.State, } diff --git a/shared/constants/types/flow-types-chat.js b/shared/constants/types/flow-types-chat.js index 3b2789704e62..4bcd767eaf11 100644 --- a/shared/constants/types/flow-types-chat.js +++ b/shared/constants/types/flow-types-chat.js @@ -5,7 +5,7 @@ import * as Gregor1 from './flow-types-gregor' import * as Keybase1 from './flow-types' import engine, {EngineChannel} from '../../engine' -import type {Boolean, Bool, Bytes, Double, Int, Int64, Long, String, Uint, Uint64, WaitingHandlerType, RPCErrorHandler, CommonResponseHandler} from '../../engine/types' +import type {Boolean, Bool, Bytes, Double, Int, Int64, Long, String, Uint, Uint64, WaitingHandlerType, RPCErrorHandler, CommonResponseHandler, RPCError} from '../../engine/types' export const chatUiMessageUnboxedState = { @@ -119,7 +119,7 @@ export const localBodyPlaintextVersion = { export const localCancelPostRpcChannelMap = (configKeys: Array, request: LocalCancelPostRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.CancelPost', request) -export const localCancelPostRpcPromise = (request: LocalCancelPostRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.CancelPost', request, (error, result) => error ? reject(error) : resolve(result))) +export const localCancelPostRpcPromise = (request: LocalCancelPostRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.CancelPost', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const localConversationErrorType = { permanent: 0, @@ -133,63 +133,63 @@ export const localConversationErrorType = { export const localDeleteConversationLocalRpcChannelMap = (configKeys: Array, request: LocalDeleteConversationLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.deleteConversationLocal', request) -export const localDeleteConversationLocalRpcPromise = (request: LocalDeleteConversationLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.deleteConversationLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localDeleteConversationLocalRpcPromise = (request: LocalDeleteConversationLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.deleteConversationLocal', request, (error: RPCError, result: LocalDeleteConversationLocalResult) => error ? reject(error) : resolve(result))) export const localDownloadAttachmentLocalRpcChannelMap = (configKeys: Array, request: LocalDownloadAttachmentLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.DownloadAttachmentLocal', request) -export const localDownloadAttachmentLocalRpcPromise = (request: LocalDownloadAttachmentLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.DownloadAttachmentLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localDownloadAttachmentLocalRpcPromise = (request: LocalDownloadAttachmentLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.DownloadAttachmentLocal', request, (error: RPCError, result: LocalDownloadAttachmentLocalResult) => error ? reject(error) : resolve(result))) export const localDownloadFileAttachmentLocalRpcChannelMap = (configKeys: Array, request: LocalDownloadFileAttachmentLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.DownloadFileAttachmentLocal', request) -export const localDownloadFileAttachmentLocalRpcPromise = (request: LocalDownloadFileAttachmentLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.DownloadFileAttachmentLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localDownloadFileAttachmentLocalRpcPromise = (request: LocalDownloadFileAttachmentLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.DownloadFileAttachmentLocal', request, (error: RPCError, result: LocalDownloadFileAttachmentLocalResult) => error ? reject(error) : resolve(result))) export const localFindConversationsLocalRpcChannelMap = (configKeys: Array, request: LocalFindConversationsLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.findConversationsLocal', request) -export const localFindConversationsLocalRpcPromise = (request: LocalFindConversationsLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.findConversationsLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localFindConversationsLocalRpcPromise = (request: LocalFindConversationsLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.findConversationsLocal', request, (error: RPCError, result: LocalFindConversationsLocalResult) => error ? reject(error) : resolve(result))) export const localGenerateOutboxIDRpcChannelMap = (configKeys: Array, request: LocalGenerateOutboxIDRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.generateOutboxID', request) -export const localGenerateOutboxIDRpcPromise = (request: LocalGenerateOutboxIDRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.generateOutboxID', request, (error, result) => error ? reject(error) : resolve(result))) +export const localGenerateOutboxIDRpcPromise = (request: LocalGenerateOutboxIDRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.generateOutboxID', request, (error: RPCError, result: LocalGenerateOutboxIDResult) => error ? reject(error) : resolve(result))) export const localGetCachedThreadRpcChannelMap = (configKeys: Array, request: LocalGetCachedThreadRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.getCachedThread', request) -export const localGetCachedThreadRpcPromise = (request: LocalGetCachedThreadRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getCachedThread', request, (error, result) => error ? reject(error) : resolve(result))) +export const localGetCachedThreadRpcPromise = (request: LocalGetCachedThreadRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getCachedThread', request, (error: RPCError, result: LocalGetCachedThreadResult) => error ? reject(error) : resolve(result))) export const localGetConversationForCLILocalRpcChannelMap = (configKeys: Array, request: LocalGetConversationForCLILocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.getConversationForCLILocal', request) -export const localGetConversationForCLILocalRpcPromise = (request: LocalGetConversationForCLILocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getConversationForCLILocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localGetConversationForCLILocalRpcPromise = (request: LocalGetConversationForCLILocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getConversationForCLILocal', request, (error: RPCError, result: LocalGetConversationForCLILocalResult) => error ? reject(error) : resolve(result))) export const localGetGlobalAppNotificationSettingsLocalRpcChannelMap = (configKeys: Array, request: LocalGetGlobalAppNotificationSettingsLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.getGlobalAppNotificationSettingsLocal', request) -export const localGetGlobalAppNotificationSettingsLocalRpcPromise = (request: LocalGetGlobalAppNotificationSettingsLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getGlobalAppNotificationSettingsLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localGetGlobalAppNotificationSettingsLocalRpcPromise = (request: LocalGetGlobalAppNotificationSettingsLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getGlobalAppNotificationSettingsLocal', request, (error: RPCError, result: LocalGetGlobalAppNotificationSettingsLocalResult) => error ? reject(error) : resolve(result))) export const localGetInboxAndUnboxLocalRpcChannelMap = (configKeys: Array, request: LocalGetInboxAndUnboxLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.getInboxAndUnboxLocal', request) -export const localGetInboxAndUnboxLocalRpcPromise = (request: LocalGetInboxAndUnboxLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getInboxAndUnboxLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localGetInboxAndUnboxLocalRpcPromise = (request: LocalGetInboxAndUnboxLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getInboxAndUnboxLocal', request, (error: RPCError, result: LocalGetInboxAndUnboxLocalResult) => error ? reject(error) : resolve(result))) export const localGetInboxNonblockLocalRpcChannelMap = (configKeys: Array, request: LocalGetInboxNonblockLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.getInboxNonblockLocal', request) -export const localGetInboxNonblockLocalRpcPromise = (request: LocalGetInboxNonblockLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getInboxNonblockLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localGetInboxNonblockLocalRpcPromise = (request: LocalGetInboxNonblockLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getInboxNonblockLocal', request, (error: RPCError, result: LocalGetInboxNonblockLocalResult) => error ? reject(error) : resolve(result))) export const localGetInboxSummaryForCLILocalRpcChannelMap = (configKeys: Array, request: LocalGetInboxSummaryForCLILocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.getInboxSummaryForCLILocal', request) -export const localGetInboxSummaryForCLILocalRpcPromise = (request: LocalGetInboxSummaryForCLILocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getInboxSummaryForCLILocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localGetInboxSummaryForCLILocalRpcPromise = (request: LocalGetInboxSummaryForCLILocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getInboxSummaryForCLILocal', request, (error: RPCError, result: LocalGetInboxSummaryForCLILocalResult) => error ? reject(error) : resolve(result))) export const localGetMessagesLocalRpcChannelMap = (configKeys: Array, request: LocalGetMessagesLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.GetMessagesLocal', request) -export const localGetMessagesLocalRpcPromise = (request: LocalGetMessagesLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.GetMessagesLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localGetMessagesLocalRpcPromise = (request: LocalGetMessagesLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.GetMessagesLocal', request, (error: RPCError, result: LocalGetMessagesLocalResult) => error ? reject(error) : resolve(result))) export const localGetTLFConversationsLocalRpcChannelMap = (configKeys: Array, request: LocalGetTLFConversationsLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.getTLFConversationsLocal', request) -export const localGetTLFConversationsLocalRpcPromise = (request: LocalGetTLFConversationsLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getTLFConversationsLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localGetTLFConversationsLocalRpcPromise = (request: LocalGetTLFConversationsLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getTLFConversationsLocal', request, (error: RPCError, result: LocalGetTLFConversationsLocalResult) => error ? reject(error) : resolve(result))) export const localGetThreadLocalRpcChannelMap = (configKeys: Array, request: LocalGetThreadLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.getThreadLocal', request) -export const localGetThreadLocalRpcPromise = (request: LocalGetThreadLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getThreadLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localGetThreadLocalRpcPromise = (request: LocalGetThreadLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getThreadLocal', request, (error: RPCError, result: LocalGetThreadLocalResult) => error ? reject(error) : resolve(result))) export const localGetThreadNonblockRpcChannelMap = (configKeys: Array, request: LocalGetThreadNonblockRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.getThreadNonblock', request) -export const localGetThreadNonblockRpcPromise = (request: LocalGetThreadNonblockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getThreadNonblock', request, (error, result) => error ? reject(error) : resolve(result))) +export const localGetThreadNonblockRpcPromise = (request: LocalGetThreadNonblockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.getThreadNonblock', request, (error: RPCError, result: LocalGetThreadNonblockResult) => error ? reject(error) : resolve(result))) export const localHeaderPlaintextVersion = { v1: 1, @@ -206,23 +206,23 @@ export const localHeaderPlaintextVersion = { export const localJoinConversationByIDLocalRpcChannelMap = (configKeys: Array, request: LocalJoinConversationByIDLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.joinConversationByIDLocal', request) -export const localJoinConversationByIDLocalRpcPromise = (request: LocalJoinConversationByIDLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.joinConversationByIDLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localJoinConversationByIDLocalRpcPromise = (request: LocalJoinConversationByIDLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.joinConversationByIDLocal', request, (error: RPCError, result: LocalJoinConversationByIDLocalResult) => error ? reject(error) : resolve(result))) export const localJoinConversationLocalRpcChannelMap = (configKeys: Array, request: LocalJoinConversationLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.joinConversationLocal', request) -export const localJoinConversationLocalRpcPromise = (request: LocalJoinConversationLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.joinConversationLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localJoinConversationLocalRpcPromise = (request: LocalJoinConversationLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.joinConversationLocal', request, (error: RPCError, result: LocalJoinConversationLocalResult) => error ? reject(error) : resolve(result))) export const localLeaveConversationLocalRpcChannelMap = (configKeys: Array, request: LocalLeaveConversationLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.leaveConversationLocal', request) -export const localLeaveConversationLocalRpcPromise = (request: LocalLeaveConversationLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.leaveConversationLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localLeaveConversationLocalRpcPromise = (request: LocalLeaveConversationLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.leaveConversationLocal', request, (error: RPCError, result: LocalLeaveConversationLocalResult) => error ? reject(error) : resolve(result))) export const localMakePreviewRpcChannelMap = (configKeys: Array, request: LocalMakePreviewRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.makePreview', request) -export const localMakePreviewRpcPromise = (request: LocalMakePreviewRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.makePreview', request, (error, result) => error ? reject(error) : resolve(result))) +export const localMakePreviewRpcPromise = (request: LocalMakePreviewRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.makePreview', request, (error: RPCError, result: LocalMakePreviewResult) => error ? reject(error) : resolve(result))) export const localMarkAsReadLocalRpcChannelMap = (configKeys: Array, request: LocalMarkAsReadLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.markAsReadLocal', request) -export const localMarkAsReadLocalRpcPromise = (request: LocalMarkAsReadLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.markAsReadLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localMarkAsReadLocalRpcPromise = (request: LocalMarkAsReadLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.markAsReadLocal', request, (error: RPCError, result: LocalMarkAsReadLocalResult) => error ? reject(error) : resolve(result))) export const localMessageSystemType = { addedtoteam: 0, @@ -239,7 +239,7 @@ export const localMessageUnboxedErrorType = { export const localNewConversationLocalRpcChannelMap = (configKeys: Array, request: LocalNewConversationLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.newConversationLocal', request) -export const localNewConversationLocalRpcPromise = (request: LocalNewConversationLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.newConversationLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localNewConversationLocalRpcPromise = (request: LocalNewConversationLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.newConversationLocal', request, (error: RPCError, result: LocalNewConversationLocalResult) => error ? reject(error) : resolve(result))) export const localOutboxErrorType = { misc: 0, @@ -256,71 +256,71 @@ export const localOutboxStateType = { export const localPostAttachmentLocalRpcChannelMap = (configKeys: Array, request: LocalPostAttachmentLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.postAttachmentLocal', request) -export const localPostAttachmentLocalRpcPromise = (request: LocalPostAttachmentLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postAttachmentLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localPostAttachmentLocalRpcPromise = (request: LocalPostAttachmentLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postAttachmentLocal', request, (error: RPCError, result: LocalPostAttachmentLocalResult) => error ? reject(error) : resolve(result))) export const localPostDeleteNonblockRpcChannelMap = (configKeys: Array, request: LocalPostDeleteNonblockRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.postDeleteNonblock', request) -export const localPostDeleteNonblockRpcPromise = (request: LocalPostDeleteNonblockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postDeleteNonblock', request, (error, result) => error ? reject(error) : resolve(result))) +export const localPostDeleteNonblockRpcPromise = (request: LocalPostDeleteNonblockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postDeleteNonblock', request, (error: RPCError, result: LocalPostDeleteNonblockResult) => error ? reject(error) : resolve(result))) export const localPostEditNonblockRpcChannelMap = (configKeys: Array, request: LocalPostEditNonblockRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.postEditNonblock', request) -export const localPostEditNonblockRpcPromise = (request: LocalPostEditNonblockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postEditNonblock', request, (error, result) => error ? reject(error) : resolve(result))) +export const localPostEditNonblockRpcPromise = (request: LocalPostEditNonblockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postEditNonblock', request, (error: RPCError, result: LocalPostEditNonblockResult) => error ? reject(error) : resolve(result))) export const localPostFileAttachmentLocalRpcChannelMap = (configKeys: Array, request: LocalPostFileAttachmentLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.postFileAttachmentLocal', request) -export const localPostFileAttachmentLocalRpcPromise = (request: LocalPostFileAttachmentLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postFileAttachmentLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localPostFileAttachmentLocalRpcPromise = (request: LocalPostFileAttachmentLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postFileAttachmentLocal', request, (error: RPCError, result: LocalPostFileAttachmentLocalResult) => error ? reject(error) : resolve(result))) export const localPostHeadlineNonblockRpcChannelMap = (configKeys: Array, request: LocalPostHeadlineNonblockRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.postHeadlineNonblock', request) -export const localPostHeadlineNonblockRpcPromise = (request: LocalPostHeadlineNonblockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postHeadlineNonblock', request, (error, result) => error ? reject(error) : resolve(result))) +export const localPostHeadlineNonblockRpcPromise = (request: LocalPostHeadlineNonblockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postHeadlineNonblock', request, (error: RPCError, result: LocalPostHeadlineNonblockResult) => error ? reject(error) : resolve(result))) export const localPostHeadlineRpcChannelMap = (configKeys: Array, request: LocalPostHeadlineRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.postHeadline', request) -export const localPostHeadlineRpcPromise = (request: LocalPostHeadlineRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postHeadline', request, (error, result) => error ? reject(error) : resolve(result))) +export const localPostHeadlineRpcPromise = (request: LocalPostHeadlineRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postHeadline', request, (error: RPCError, result: LocalPostHeadlineResult) => error ? reject(error) : resolve(result))) export const localPostLocalNonblockRpcChannelMap = (configKeys: Array, request: LocalPostLocalNonblockRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.postLocalNonblock', request) -export const localPostLocalNonblockRpcPromise = (request: LocalPostLocalNonblockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postLocalNonblock', request, (error, result) => error ? reject(error) : resolve(result))) +export const localPostLocalNonblockRpcPromise = (request: LocalPostLocalNonblockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postLocalNonblock', request, (error: RPCError, result: LocalPostLocalNonblockResult) => error ? reject(error) : resolve(result))) export const localPostLocalRpcChannelMap = (configKeys: Array, request: LocalPostLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.postLocal', request) -export const localPostLocalRpcPromise = (request: LocalPostLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localPostLocalRpcPromise = (request: LocalPostLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postLocal', request, (error: RPCError, result: LocalPostLocalResult) => error ? reject(error) : resolve(result))) export const localPostMetadataNonblockRpcChannelMap = (configKeys: Array, request: LocalPostMetadataNonblockRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.postMetadataNonblock', request) -export const localPostMetadataNonblockRpcPromise = (request: LocalPostMetadataNonblockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postMetadataNonblock', request, (error, result) => error ? reject(error) : resolve(result))) +export const localPostMetadataNonblockRpcPromise = (request: LocalPostMetadataNonblockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postMetadataNonblock', request, (error: RPCError, result: LocalPostMetadataNonblockResult) => error ? reject(error) : resolve(result))) export const localPostMetadataRpcChannelMap = (configKeys: Array, request: LocalPostMetadataRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.postMetadata', request) -export const localPostMetadataRpcPromise = (request: LocalPostMetadataRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postMetadata', request, (error, result) => error ? reject(error) : resolve(result))) +export const localPostMetadataRpcPromise = (request: LocalPostMetadataRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postMetadata', request, (error: RPCError, result: LocalPostMetadataResult) => error ? reject(error) : resolve(result))) export const localPostTextNonblockRpcChannelMap = (configKeys: Array, request: LocalPostTextNonblockRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.postTextNonblock', request) -export const localPostTextNonblockRpcPromise = (request: LocalPostTextNonblockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postTextNonblock', request, (error, result) => error ? reject(error) : resolve(result))) +export const localPostTextNonblockRpcPromise = (request: LocalPostTextNonblockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.postTextNonblock', request, (error: RPCError, result: LocalPostTextNonblockResult) => error ? reject(error) : resolve(result))) export const localRetryPostRpcChannelMap = (configKeys: Array, request: LocalRetryPostRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.RetryPost', request) -export const localRetryPostRpcPromise = (request: LocalRetryPostRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.RetryPost', request, (error, result) => error ? reject(error) : resolve(result))) +export const localRetryPostRpcPromise = (request: LocalRetryPostRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.RetryPost', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const localSetAppNotificationSettingsLocalRpcChannelMap = (configKeys: Array, request: LocalSetAppNotificationSettingsLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.setAppNotificationSettingsLocal', request) -export const localSetAppNotificationSettingsLocalRpcPromise = (request: LocalSetAppNotificationSettingsLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.setAppNotificationSettingsLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localSetAppNotificationSettingsLocalRpcPromise = (request: LocalSetAppNotificationSettingsLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.setAppNotificationSettingsLocal', request, (error: RPCError, result: LocalSetAppNotificationSettingsLocalResult) => error ? reject(error) : resolve(result))) export const localSetConversationStatusLocalRpcChannelMap = (configKeys: Array, request: LocalSetConversationStatusLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.SetConversationStatusLocal', request) -export const localSetConversationStatusLocalRpcPromise = (request: LocalSetConversationStatusLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.SetConversationStatusLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localSetConversationStatusLocalRpcPromise = (request: LocalSetConversationStatusLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.SetConversationStatusLocal', request, (error: RPCError, result: LocalSetConversationStatusLocalResult) => error ? reject(error) : resolve(result))) export const localSetGlobalAppNotificationSettingsLocalRpcChannelMap = (configKeys: Array, request: LocalSetGlobalAppNotificationSettingsLocalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.setGlobalAppNotificationSettingsLocal', request) -export const localSetGlobalAppNotificationSettingsLocalRpcPromise = (request: LocalSetGlobalAppNotificationSettingsLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.setGlobalAppNotificationSettingsLocal', request, (error, result) => error ? reject(error) : resolve(result))) +export const localSetGlobalAppNotificationSettingsLocalRpcPromise = (request: LocalSetGlobalAppNotificationSettingsLocalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.setGlobalAppNotificationSettingsLocal', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const localUnboxMobilePushNotificationRpcChannelMap = (configKeys: Array, request: LocalUnboxMobilePushNotificationRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.unboxMobilePushNotification', request) -export const localUnboxMobilePushNotificationRpcPromise = (request: LocalUnboxMobilePushNotificationRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.unboxMobilePushNotification', request, (error, result) => error ? reject(error) : resolve(result))) +export const localUnboxMobilePushNotificationRpcPromise = (request: LocalUnboxMobilePushNotificationRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.unboxMobilePushNotification', request, (error: RPCError, result: LocalUnboxMobilePushNotificationResult) => error ? reject(error) : resolve(result))) export const localUpdateTypingRpcChannelMap = (configKeys: Array, request: LocalUpdateTypingRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.local.updateTyping', request) -export const localUpdateTypingRpcPromise = (request: LocalUpdateTypingRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.updateTyping', request, (error, result) => error ? reject(error) : resolve(result))) +export const localUpdateTypingRpcPromise = (request: LocalUpdateTypingRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.local.updateTyping', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const notifyChatChatActivityType = { reserved: 0, @@ -347,55 +347,55 @@ export const remoteChannelMention = { export const remoteDeleteConversationRpcChannelMap = (configKeys: Array, request: RemoteDeleteConversationRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.deleteConversation', request) -export const remoteDeleteConversationRpcPromise = (request: RemoteDeleteConversationRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.deleteConversation', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteDeleteConversationRpcPromise = (request: RemoteDeleteConversationRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.deleteConversation', request, (error: RPCError, result: RemoteDeleteConversationResult) => error ? reject(error) : resolve(result))) export const remoteGetGlobalAppNotificationSettingsRpcChannelMap = (configKeys: Array, request: RemoteGetGlobalAppNotificationSettingsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.getGlobalAppNotificationSettings', request) -export const remoteGetGlobalAppNotificationSettingsRpcPromise = (request: RemoteGetGlobalAppNotificationSettingsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.getGlobalAppNotificationSettings', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteGetGlobalAppNotificationSettingsRpcPromise = (request: RemoteGetGlobalAppNotificationSettingsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.getGlobalAppNotificationSettings', request, (error: RPCError, result: RemoteGetGlobalAppNotificationSettingsResult) => error ? reject(error) : resolve(result))) export const remoteGetInboxRemoteRpcChannelMap = (configKeys: Array, request: RemoteGetInboxRemoteRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.getInboxRemote', request) -export const remoteGetInboxRemoteRpcPromise = (request: RemoteGetInboxRemoteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.getInboxRemote', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteGetInboxRemoteRpcPromise = (request: RemoteGetInboxRemoteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.getInboxRemote', request, (error: RPCError, result: RemoteGetInboxRemoteResult) => error ? reject(error) : resolve(result))) export const remoteGetInboxVersionRpcChannelMap = (configKeys: Array, request: RemoteGetInboxVersionRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.getInboxVersion', request) -export const remoteGetInboxVersionRpcPromise = (request: RemoteGetInboxVersionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.getInboxVersion', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteGetInboxVersionRpcPromise = (request: RemoteGetInboxVersionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.getInboxVersion', request, (error: RPCError, result: RemoteGetInboxVersionResult) => error ? reject(error) : resolve(result))) export const remoteGetMessagesRemoteRpcChannelMap = (configKeys: Array, request: RemoteGetMessagesRemoteRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.getMessagesRemote', request) -export const remoteGetMessagesRemoteRpcPromise = (request: RemoteGetMessagesRemoteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.getMessagesRemote', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteGetMessagesRemoteRpcPromise = (request: RemoteGetMessagesRemoteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.getMessagesRemote', request, (error: RPCError, result: RemoteGetMessagesRemoteResult) => error ? reject(error) : resolve(result))) export const remoteGetPublicConversationsRpcChannelMap = (configKeys: Array, request: RemoteGetPublicConversationsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.getPublicConversations', request) -export const remoteGetPublicConversationsRpcPromise = (request: RemoteGetPublicConversationsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.getPublicConversations', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteGetPublicConversationsRpcPromise = (request: RemoteGetPublicConversationsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.getPublicConversations', request, (error: RPCError, result: RemoteGetPublicConversationsResult) => error ? reject(error) : resolve(result))) export const remoteGetS3ParamsRpcChannelMap = (configKeys: Array, request: RemoteGetS3ParamsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.getS3Params', request) -export const remoteGetS3ParamsRpcPromise = (request: RemoteGetS3ParamsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.getS3Params', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteGetS3ParamsRpcPromise = (request: RemoteGetS3ParamsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.getS3Params', request, (error: RPCError, result: RemoteGetS3ParamsResult) => error ? reject(error) : resolve(result))) export const remoteGetTLFConversationsRpcChannelMap = (configKeys: Array, request: RemoteGetTLFConversationsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.getTLFConversations', request) -export const remoteGetTLFConversationsRpcPromise = (request: RemoteGetTLFConversationsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.getTLFConversations', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteGetTLFConversationsRpcPromise = (request: RemoteGetTLFConversationsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.getTLFConversations', request, (error: RPCError, result: RemoteGetTLFConversationsResult) => error ? reject(error) : resolve(result))) export const remoteGetThreadRemoteRpcChannelMap = (configKeys: Array, request: RemoteGetThreadRemoteRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.getThreadRemote', request) -export const remoteGetThreadRemoteRpcPromise = (request: RemoteGetThreadRemoteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.getThreadRemote', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteGetThreadRemoteRpcPromise = (request: RemoteGetThreadRemoteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.getThreadRemote', request, (error: RPCError, result: RemoteGetThreadRemoteResult) => error ? reject(error) : resolve(result))) export const remoteGetUnreadUpdateFullRpcChannelMap = (configKeys: Array, request: RemoteGetUnreadUpdateFullRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.GetUnreadUpdateFull', request) -export const remoteGetUnreadUpdateFullRpcPromise = (request: RemoteGetUnreadUpdateFullRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.GetUnreadUpdateFull', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteGetUnreadUpdateFullRpcPromise = (request: RemoteGetUnreadUpdateFullRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.GetUnreadUpdateFull', request, (error: RPCError, result: RemoteGetUnreadUpdateFullResult) => error ? reject(error) : resolve(result))) export const remoteJoinConversationRpcChannelMap = (configKeys: Array, request: RemoteJoinConversationRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.joinConversation', request) -export const remoteJoinConversationRpcPromise = (request: RemoteJoinConversationRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.joinConversation', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteJoinConversationRpcPromise = (request: RemoteJoinConversationRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.joinConversation', request, (error: RPCError, result: RemoteJoinConversationResult) => error ? reject(error) : resolve(result))) export const remoteLeaveConversationRpcChannelMap = (configKeys: Array, request: RemoteLeaveConversationRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.leaveConversation', request) -export const remoteLeaveConversationRpcPromise = (request: RemoteLeaveConversationRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.leaveConversation', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteLeaveConversationRpcPromise = (request: RemoteLeaveConversationRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.leaveConversation', request, (error: RPCError, result: RemoteLeaveConversationResult) => error ? reject(error) : resolve(result))) export const remoteMarkAsReadRpcChannelMap = (configKeys: Array, request: RemoteMarkAsReadRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.markAsRead', request) -export const remoteMarkAsReadRpcPromise = (request: RemoteMarkAsReadRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.markAsRead', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteMarkAsReadRpcPromise = (request: RemoteMarkAsReadRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.markAsRead', request, (error: RPCError, result: RemoteMarkAsReadResult) => error ? reject(error) : resolve(result))) export const remoteMessageBoxedVersion = { vnone: 0, @@ -405,43 +405,43 @@ export const remoteMessageBoxedVersion = { export const remoteNewConversationRemote2RpcChannelMap = (configKeys: Array, request: RemoteNewConversationRemote2RpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.newConversationRemote2', request) -export const remoteNewConversationRemote2RpcPromise = (request: RemoteNewConversationRemote2RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.newConversationRemote2', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteNewConversationRemote2RpcPromise = (request: RemoteNewConversationRemote2RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.newConversationRemote2', request, (error: RPCError, result: RemoteNewConversationRemote2Result) => error ? reject(error) : resolve(result))) export const remoteNewConversationRemoteRpcChannelMap = (configKeys: Array, request: RemoteNewConversationRemoteRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.newConversationRemote', request) -export const remoteNewConversationRemoteRpcPromise = (request: RemoteNewConversationRemoteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.newConversationRemote', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteNewConversationRemoteRpcPromise = (request: RemoteNewConversationRemoteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.newConversationRemote', request, (error: RPCError, result: RemoteNewConversationRemoteResult) => error ? reject(error) : resolve(result))) export const remotePostRemoteRpcChannelMap = (configKeys: Array, request: RemotePostRemoteRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.postRemote', request) -export const remotePostRemoteRpcPromise = (request: RemotePostRemoteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.postRemote', request, (error, result) => error ? reject(error) : resolve(result))) +export const remotePostRemoteRpcPromise = (request: RemotePostRemoteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.postRemote', request, (error: RPCError, result: RemotePostRemoteResult) => error ? reject(error) : resolve(result))) export const remotePublishReadMessageRpcChannelMap = (configKeys: Array, request: RemotePublishReadMessageRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.publishReadMessage', request) -export const remotePublishReadMessageRpcPromise = (request: RemotePublishReadMessageRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.publishReadMessage', request, (error, result) => error ? reject(error) : resolve(result))) +export const remotePublishReadMessageRpcPromise = (request: RemotePublishReadMessageRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.publishReadMessage', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const remotePublishSetConversationStatusRpcChannelMap = (configKeys: Array, request: RemotePublishSetConversationStatusRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.publishSetConversationStatus', request) -export const remotePublishSetConversationStatusRpcPromise = (request: RemotePublishSetConversationStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.publishSetConversationStatus', request, (error, result) => error ? reject(error) : resolve(result))) +export const remotePublishSetConversationStatusRpcPromise = (request: RemotePublishSetConversationStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.publishSetConversationStatus', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const remoteRemoteNotificationSuccessfulRpcChannelMap = (configKeys: Array, request: RemoteRemoteNotificationSuccessfulRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.remoteNotificationSuccessful', request) -export const remoteRemoteNotificationSuccessfulRpcPromise = (request: RemoteRemoteNotificationSuccessfulRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.remoteNotificationSuccessful', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteRemoteNotificationSuccessfulRpcPromise = (request: RemoteRemoteNotificationSuccessfulRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.remoteNotificationSuccessful', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const remoteS3SignRpcChannelMap = (configKeys: Array, request: RemoteS3SignRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.s3Sign', request) -export const remoteS3SignRpcPromise = (request: RemoteS3SignRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.s3Sign', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteS3SignRpcPromise = (request: RemoteS3SignRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.s3Sign', request, (error: RPCError, result: RemoteS3SignResult) => error ? reject(error) : resolve(result))) export const remoteSetAppNotificationSettingsRpcChannelMap = (configKeys: Array, request: RemoteSetAppNotificationSettingsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.setAppNotificationSettings', request) -export const remoteSetAppNotificationSettingsRpcPromise = (request: RemoteSetAppNotificationSettingsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.setAppNotificationSettings', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteSetAppNotificationSettingsRpcPromise = (request: RemoteSetAppNotificationSettingsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.setAppNotificationSettings', request, (error: RPCError, result: RemoteSetAppNotificationSettingsResult) => error ? reject(error) : resolve(result))) export const remoteSetConversationStatusRpcChannelMap = (configKeys: Array, request: RemoteSetConversationStatusRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.SetConversationStatus', request) -export const remoteSetConversationStatusRpcPromise = (request: RemoteSetConversationStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.SetConversationStatus', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteSetConversationStatusRpcPromise = (request: RemoteSetConversationStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.SetConversationStatus', request, (error: RPCError, result: RemoteSetConversationStatusResult) => error ? reject(error) : resolve(result))) export const remoteSetGlobalAppNotificationSettingsRpcChannelMap = (configKeys: Array, request: RemoteSetGlobalAppNotificationSettingsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.setGlobalAppNotificationSettings', request) -export const remoteSetGlobalAppNotificationSettingsRpcPromise = (request: RemoteSetGlobalAppNotificationSettingsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.setGlobalAppNotificationSettings', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteSetGlobalAppNotificationSettingsRpcPromise = (request: RemoteSetGlobalAppNotificationSettingsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.setGlobalAppNotificationSettings', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const remoteSyncAllNotificationType = { state: 0, @@ -455,27 +455,27 @@ export const remoteSyncAllProtVers = { export const remoteSyncAllRpcChannelMap = (configKeys: Array, request: RemoteSyncAllRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.syncAll', request) -export const remoteSyncAllRpcPromise = (request: RemoteSyncAllRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.syncAll', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteSyncAllRpcPromise = (request: RemoteSyncAllRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.syncAll', request, (error: RPCError, result: RemoteSyncAllResult) => error ? reject(error) : resolve(result))) export const remoteSyncChatRpcChannelMap = (configKeys: Array, request: RemoteSyncChatRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.syncChat', request) -export const remoteSyncChatRpcPromise = (request: RemoteSyncChatRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.syncChat', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteSyncChatRpcPromise = (request: RemoteSyncChatRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.syncChat', request, (error: RPCError, result: RemoteSyncChatResult) => error ? reject(error) : resolve(result))) export const remoteSyncInboxRpcChannelMap = (configKeys: Array, request: RemoteSyncInboxRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.syncInbox', request) -export const remoteSyncInboxRpcPromise = (request: RemoteSyncInboxRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.syncInbox', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteSyncInboxRpcPromise = (request: RemoteSyncInboxRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.syncInbox', request, (error: RPCError, result: RemoteSyncInboxResult) => error ? reject(error) : resolve(result))) export const remoteTlfFinalizeRpcChannelMap = (configKeys: Array, request: RemoteTlfFinalizeRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.tlfFinalize', request) -export const remoteTlfFinalizeRpcPromise = (request: RemoteTlfFinalizeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.tlfFinalize', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteTlfFinalizeRpcPromise = (request: RemoteTlfFinalizeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.tlfFinalize', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const remoteTlfResolveRpcChannelMap = (configKeys: Array, request: RemoteTlfResolveRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.tlfResolve', request) -export const remoteTlfResolveRpcPromise = (request: RemoteTlfResolveRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.tlfResolve', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteTlfResolveRpcPromise = (request: RemoteTlfResolveRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.tlfResolve', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const remoteUpdateTypingRemoteRpcChannelMap = (configKeys: Array, request: RemoteUpdateTypingRemoteRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'chat.1.remote.updateTypingRemote', request) -export const remoteUpdateTypingRemoteRpcPromise = (request: RemoteUpdateTypingRemoteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.updateTypingRemote', request, (error, result) => error ? reject(error) : resolve(result))) +export const remoteUpdateTypingRemoteRpcPromise = (request: RemoteUpdateTypingRemoteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('chat.1.remote.updateTypingRemote', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export type AppNotificationSettingLocal = {|deviceType: Keybase1.DeviceType,kind: NotificationKind,enabled: Boolean,|} diff --git a/shared/constants/types/flow-types-gregor.js b/shared/constants/types/flow-types-gregor.js index f263b0af8014..7461d26400b4 100644 --- a/shared/constants/types/flow-types-gregor.js +++ b/shared/constants/types/flow-types-gregor.js @@ -4,72 +4,72 @@ // This file is auto-generated by client/protocol/Makefile. import engine, {EngineChannel} from '../../engine' -import type {Boolean, Bool, Bytes, Double, Int, Int64, Long, String, Uint, Uint64, WaitingHandlerType, RPCErrorHandler, CommonResponseHandler} from '../../engine/types' +import type {Boolean, Bool, Bytes, Double, Int, Int64, Long, String, Uint, Uint64, WaitingHandlerType, RPCErrorHandler, CommonResponseHandler, RPCError} from '../../engine/types' export const authAuthenticateSessionTokenRpcChannelMap = (configKeys: Array, request: AuthAuthenticateSessionTokenRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'gregor.1.auth.authenticateSessionToken', request) -export const authAuthenticateSessionTokenRpcPromise = (request: AuthAuthenticateSessionTokenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.auth.authenticateSessionToken', request, (error, result) => error ? reject(error) : resolve(result))) +export const authAuthenticateSessionTokenRpcPromise = (request: AuthAuthenticateSessionTokenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.auth.authenticateSessionToken', request, (error: RPCError, result: AuthAuthenticateSessionTokenResult) => error ? reject(error) : resolve(result))) export const authInternalCreateGregorSuperUserSessionTokenRpcChannelMap = (configKeys: Array, request: AuthInternalCreateGregorSuperUserSessionTokenRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'gregor.1.authInternal.createGregorSuperUserSessionToken', request) -export const authInternalCreateGregorSuperUserSessionTokenRpcPromise = (request: AuthInternalCreateGregorSuperUserSessionTokenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.authInternal.createGregorSuperUserSessionToken', request, (error, result) => error ? reject(error) : resolve(result))) +export const authInternalCreateGregorSuperUserSessionTokenRpcPromise = (request: AuthInternalCreateGregorSuperUserSessionTokenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.authInternal.createGregorSuperUserSessionToken', request, (error: RPCError, result: AuthInternalCreateGregorSuperUserSessionTokenResult) => error ? reject(error) : resolve(result))) export const authUpdateRevokeSessionIDsRpcChannelMap = (configKeys: Array, request: AuthUpdateRevokeSessionIDsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'gregor.1.authUpdate.revokeSessionIDs', request) -export const authUpdateRevokeSessionIDsRpcPromise = (request: AuthUpdateRevokeSessionIDsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.authUpdate.revokeSessionIDs', request, (error, result) => error ? reject(error) : resolve(result))) +export const authUpdateRevokeSessionIDsRpcPromise = (request: AuthUpdateRevokeSessionIDsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.authUpdate.revokeSessionIDs', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const incomingConsumeMessageMultiRpcChannelMap = (configKeys: Array, request: IncomingConsumeMessageMultiRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'gregor.1.incoming.consumeMessageMulti', request) -export const incomingConsumeMessageMultiRpcPromise = (request: IncomingConsumeMessageMultiRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.consumeMessageMulti', request, (error, result) => error ? reject(error) : resolve(result))) +export const incomingConsumeMessageMultiRpcPromise = (request: IncomingConsumeMessageMultiRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.consumeMessageMulti', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const incomingConsumeMessageRpcChannelMap = (configKeys: Array, request: IncomingConsumeMessageRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'gregor.1.incoming.consumeMessage', request) -export const incomingConsumeMessageRpcPromise = (request: IncomingConsumeMessageRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.consumeMessage', request, (error, result) => error ? reject(error) : resolve(result))) +export const incomingConsumeMessageRpcPromise = (request: IncomingConsumeMessageRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.consumeMessage', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const incomingConsumePublishMessageRpcChannelMap = (configKeys: Array, request: IncomingConsumePublishMessageRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'gregor.1.incoming.consumePublishMessage', request) -export const incomingConsumePublishMessageRpcPromise = (request: IncomingConsumePublishMessageRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.consumePublishMessage', request, (error, result) => error ? reject(error) : resolve(result))) +export const incomingConsumePublishMessageRpcPromise = (request: IncomingConsumePublishMessageRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.consumePublishMessage', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const incomingDescribeConnectedUsersInternalRpcChannelMap = (configKeys: Array, request: IncomingDescribeConnectedUsersInternalRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'gregor.1.incoming.describeConnectedUsersInternal', request) -export const incomingDescribeConnectedUsersInternalRpcPromise = (request: IncomingDescribeConnectedUsersInternalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.describeConnectedUsersInternal', request, (error, result) => error ? reject(error) : resolve(result))) +export const incomingDescribeConnectedUsersInternalRpcPromise = (request: IncomingDescribeConnectedUsersInternalRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.describeConnectedUsersInternal', request, (error: RPCError, result: IncomingDescribeConnectedUsersInternalResult) => error ? reject(error) : resolve(result))) export const incomingDescribeConnectedUsersRpcChannelMap = (configKeys: Array, request: IncomingDescribeConnectedUsersRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'gregor.1.incoming.describeConnectedUsers', request) -export const incomingDescribeConnectedUsersRpcPromise = (request: IncomingDescribeConnectedUsersRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.describeConnectedUsers', request, (error, result) => error ? reject(error) : resolve(result))) +export const incomingDescribeConnectedUsersRpcPromise = (request: IncomingDescribeConnectedUsersRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.describeConnectedUsers', request, (error: RPCError, result: IncomingDescribeConnectedUsersResult) => error ? reject(error) : resolve(result))) export const incomingPingRpcChannelMap = (configKeys: Array, request: IncomingPingRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'gregor.1.incoming.ping', request) -export const incomingPingRpcPromise = (request: IncomingPingRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.ping', request, (error, result) => error ? reject(error) : resolve(result))) +export const incomingPingRpcPromise = (request: IncomingPingRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.ping', request, (error: RPCError, result: IncomingPingResult) => error ? reject(error) : resolve(result))) export const incomingStateByCategoryPrefixRpcChannelMap = (configKeys: Array, request: IncomingStateByCategoryPrefixRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'gregor.1.incoming.stateByCategoryPrefix', request) -export const incomingStateByCategoryPrefixRpcPromise = (request: IncomingStateByCategoryPrefixRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.stateByCategoryPrefix', request, (error, result) => error ? reject(error) : resolve(result))) +export const incomingStateByCategoryPrefixRpcPromise = (request: IncomingStateByCategoryPrefixRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.stateByCategoryPrefix', request, (error: RPCError, result: IncomingStateByCategoryPrefixResult) => error ? reject(error) : resolve(result))) export const incomingStateRpcChannelMap = (configKeys: Array, request: IncomingStateRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'gregor.1.incoming.state', request) -export const incomingStateRpcPromise = (request: IncomingStateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.state', request, (error, result) => error ? reject(error) : resolve(result))) +export const incomingStateRpcPromise = (request: IncomingStateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.state', request, (error: RPCError, result: IncomingStateResult) => error ? reject(error) : resolve(result))) export const incomingSyncRpcChannelMap = (configKeys: Array, request: IncomingSyncRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'gregor.1.incoming.sync', request) -export const incomingSyncRpcPromise = (request: IncomingSyncRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.sync', request, (error, result) => error ? reject(error) : resolve(result))) +export const incomingSyncRpcPromise = (request: IncomingSyncRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.sync', request, (error: RPCError, result: IncomingSyncResult) => error ? reject(error) : resolve(result))) export const incomingVersionRpcChannelMap = (configKeys: Array, request: IncomingVersionRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'gregor.1.incoming.version', request) -export const incomingVersionRpcPromise = (request: IncomingVersionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.version', request, (error, result) => error ? reject(error) : resolve(result))) +export const incomingVersionRpcPromise = (request: IncomingVersionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.incoming.version', request, (error: RPCError, result: IncomingVersionResult) => error ? reject(error) : resolve(result))) export const outgoingBroadcastMessageRpcChannelMap = (configKeys: Array, request: OutgoingBroadcastMessageRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'gregor.1.outgoing.broadcastMessage', request) -export const outgoingBroadcastMessageRpcPromise = (request: OutgoingBroadcastMessageRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.outgoing.broadcastMessage', request, (error, result) => error ? reject(error) : resolve(result))) +export const outgoingBroadcastMessageRpcPromise = (request: OutgoingBroadcastMessageRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.outgoing.broadcastMessage', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const remindDeleteRemindersRpcChannelMap = (configKeys: Array, request: RemindDeleteRemindersRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'gregor.1.remind.deleteReminders', request) -export const remindDeleteRemindersRpcPromise = (request: RemindDeleteRemindersRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.remind.deleteReminders', request, (error, result) => error ? reject(error) : resolve(result))) +export const remindDeleteRemindersRpcPromise = (request: RemindDeleteRemindersRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.remind.deleteReminders', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const remindGetRemindersRpcChannelMap = (configKeys: Array, request: RemindGetRemindersRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'gregor.1.remind.getReminders', request) -export const remindGetRemindersRpcPromise = (request: RemindGetRemindersRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.remind.getReminders', request, (error, result) => error ? reject(error) : resolve(result))) +export const remindGetRemindersRpcPromise = (request: RemindGetRemindersRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('gregor.1.remind.getReminders', request, (error: RPCError, result: RemindGetRemindersResult) => error ? reject(error) : resolve(result))) export type AuthAuthenticateSessionTokenRpcParam = {|session: SessionToken,incomingCallMap?: IncomingCallMapType,waitingHandler?: WaitingHandlerType|} diff --git a/shared/constants/types/flow-types.js b/shared/constants/types/flow-types.js index 1c5c9415d420..f26af33bac5d 100644 --- a/shared/constants/types/flow-types.js +++ b/shared/constants/types/flow-types.js @@ -5,176 +5,176 @@ import * as Gregor1 from './flow-types-gregor' import engine, {EngineChannel} from '../../engine' -import type {Boolean, Bool, Bytes, Double, Int, Int64, Long, String, Uint, Uint64, WaitingHandlerType, RPCErrorHandler, CommonResponseHandler} from '../../engine/types' +import type {Boolean, Bool, Bytes, Double, Int, Int64, Long, String, Uint, Uint64, WaitingHandlerType, RPCErrorHandler, CommonResponseHandler, RPCError} from '../../engine/types' export const BTCRegisterBTCRpcChannelMap = (configKeys: Array, request: BTCRegisterBTCRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.BTC.registerBTC', request) -export const BTCRegisterBTCRpcPromise = (request: BTCRegisterBTCRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.BTC.registerBTC', request, (error, result) => error ? reject(error) : resolve(result))) +export const BTCRegisterBTCRpcPromise = (request: BTCRegisterBTCRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.BTC.registerBTC', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const KBFSGitCreateRepoRpcChannelMap = (configKeys: Array, request: KBFSGitCreateRepoRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.KBFSGit.createRepo', request) -export const KBFSGitCreateRepoRpcPromise = (request: KBFSGitCreateRepoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.KBFSGit.createRepo', request, (error, result) => error ? reject(error) : resolve(result))) +export const KBFSGitCreateRepoRpcPromise = (request: KBFSGitCreateRepoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.KBFSGit.createRepo', request, (error: RPCError, result: KBFSGitCreateRepoResult) => error ? reject(error) : resolve(result))) export const KBFSGitDeleteRepoRpcChannelMap = (configKeys: Array, request: KBFSGitDeleteRepoRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.KBFSGit.deleteRepo', request) -export const KBFSGitDeleteRepoRpcPromise = (request: KBFSGitDeleteRepoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.KBFSGit.deleteRepo', request, (error, result) => error ? reject(error) : resolve(result))) +export const KBFSGitDeleteRepoRpcPromise = (request: KBFSGitDeleteRepoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.KBFSGit.deleteRepo', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const KBFSGitGcRpcChannelMap = (configKeys: Array, request: KBFSGitGcRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.KBFSGit.gc', request) -export const KBFSGitGcRpcPromise = (request: KBFSGitGcRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.KBFSGit.gc', request, (error, result) => error ? reject(error) : resolve(result))) +export const KBFSGitGcRpcPromise = (request: KBFSGitGcRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.KBFSGit.gc', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const Kex2Provisionee2DidCounterSign2RpcChannelMap = (configKeys: Array, request: Kex2Provisionee2DidCounterSign2RpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.Kex2Provisionee2.didCounterSign2', request) -export const Kex2Provisionee2DidCounterSign2RpcPromise = (request: Kex2Provisionee2DidCounterSign2RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.Kex2Provisionee2.didCounterSign2', request, (error, result) => error ? reject(error) : resolve(result))) +export const Kex2Provisionee2DidCounterSign2RpcPromise = (request: Kex2Provisionee2DidCounterSign2RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.Kex2Provisionee2.didCounterSign2', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const Kex2Provisionee2Hello2RpcChannelMap = (configKeys: Array, request: Kex2Provisionee2Hello2RpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.Kex2Provisionee2.hello2', request) -export const Kex2Provisionee2Hello2RpcPromise = (request: Kex2Provisionee2Hello2RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.Kex2Provisionee2.hello2', request, (error, result) => error ? reject(error) : resolve(result))) +export const Kex2Provisionee2Hello2RpcPromise = (request: Kex2Provisionee2Hello2RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.Kex2Provisionee2.hello2', request, (error: RPCError, result: Kex2Provisionee2Hello2Result) => error ? reject(error) : resolve(result))) export const Kex2ProvisioneeDidCounterSignRpcChannelMap = (configKeys: Array, request: Kex2ProvisioneeDidCounterSignRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.Kex2Provisionee.didCounterSign', request) -export const Kex2ProvisioneeDidCounterSignRpcPromise = (request: Kex2ProvisioneeDidCounterSignRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.Kex2Provisionee.didCounterSign', request, (error, result) => error ? reject(error) : resolve(result))) +export const Kex2ProvisioneeDidCounterSignRpcPromise = (request: Kex2ProvisioneeDidCounterSignRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.Kex2Provisionee.didCounterSign', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const Kex2ProvisioneeHelloRpcChannelMap = (configKeys: Array, request: Kex2ProvisioneeHelloRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.Kex2Provisionee.hello', request) -export const Kex2ProvisioneeHelloRpcPromise = (request: Kex2ProvisioneeHelloRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.Kex2Provisionee.hello', request, (error, result) => error ? reject(error) : resolve(result))) +export const Kex2ProvisioneeHelloRpcPromise = (request: Kex2ProvisioneeHelloRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.Kex2Provisionee.hello', request, (error: RPCError, result: Kex2ProvisioneeHelloResult) => error ? reject(error) : resolve(result))) export const Kex2ProvisionerKexStartRpcChannelMap = (configKeys: Array, request: Kex2ProvisionerKexStartRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.Kex2Provisioner.kexStart', request) -export const Kex2ProvisionerKexStartRpcPromise = (request: Kex2ProvisionerKexStartRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.Kex2Provisioner.kexStart', request, (error, result) => error ? reject(error) : resolve(result))) +export const Kex2ProvisionerKexStartRpcPromise = (request: Kex2ProvisionerKexStartRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.Kex2Provisioner.kexStart', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const NotifyFSRequestFSEditListRequestRpcChannelMap = (configKeys: Array, request: NotifyFSRequestFSEditListRequestRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.NotifyFSRequest.FSEditListRequest', request) -export const NotifyFSRequestFSEditListRequestRpcPromise = (request: NotifyFSRequestFSEditListRequestRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.NotifyFSRequest.FSEditListRequest', request, (error, result) => error ? reject(error) : resolve(result))) +export const NotifyFSRequestFSEditListRequestRpcPromise = (request: NotifyFSRequestFSEditListRequestRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.NotifyFSRequest.FSEditListRequest', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const NotifyFSRequestFSSyncStatusRequestRpcChannelMap = (configKeys: Array, request: NotifyFSRequestFSSyncStatusRequestRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.NotifyFSRequest.FSSyncStatusRequest', request) -export const NotifyFSRequestFSSyncStatusRequestRpcPromise = (request: NotifyFSRequestFSSyncStatusRequestRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.NotifyFSRequest.FSSyncStatusRequest', request, (error, result) => error ? reject(error) : resolve(result))) +export const NotifyFSRequestFSSyncStatusRequestRpcPromise = (request: NotifyFSRequestFSSyncStatusRequestRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.NotifyFSRequest.FSSyncStatusRequest', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const ScanProofsScanProofsRpcChannelMap = (configKeys: Array, request: ScanProofsScanProofsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.ScanProofs.scanProofs', request) -export const ScanProofsScanProofsRpcPromise = (request: ScanProofsScanProofsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ScanProofs.scanProofs', request, (error, result) => error ? reject(error) : resolve(result))) +export const ScanProofsScanProofsRpcPromise = (request: ScanProofsScanProofsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ScanProofs.scanProofs', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const SecretKeysGetSecretKeysRpcChannelMap = (configKeys: Array, request: SecretKeysGetSecretKeysRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SecretKeys.getSecretKeys', request) -export const SecretKeysGetSecretKeysRpcPromise = (request: SecretKeysGetSecretKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SecretKeys.getSecretKeys', request, (error, result) => error ? reject(error) : resolve(result))) +export const SecretKeysGetSecretKeysRpcPromise = (request: SecretKeysGetSecretKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SecretKeys.getSecretKeys', request, (error: RPCError, result: SecretKeysGetSecretKeysResult) => error ? reject(error) : resolve(result))) export const SimpleFSSimpleFSCancelRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSCancelRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSCancel', request) -export const SimpleFSSimpleFSCancelRpcPromise = (request: SimpleFSSimpleFSCancelRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSCancel', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSCancelRpcPromise = (request: SimpleFSSimpleFSCancelRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSCancel', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const SimpleFSSimpleFSCheckRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSCheckRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSCheck', request) -export const SimpleFSSimpleFSCheckRpcPromise = (request: SimpleFSSimpleFSCheckRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSCheck', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSCheckRpcPromise = (request: SimpleFSSimpleFSCheckRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSCheck', request, (error: RPCError, result: SimpleFSSimpleFSCheckResult) => error ? reject(error) : resolve(result))) export const SimpleFSSimpleFSCloseRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSCloseRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSClose', request) -export const SimpleFSSimpleFSCloseRpcPromise = (request: SimpleFSSimpleFSCloseRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSClose', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSCloseRpcPromise = (request: SimpleFSSimpleFSCloseRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSClose', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const SimpleFSSimpleFSCopyRecursiveRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSCopyRecursiveRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSCopyRecursive', request) -export const SimpleFSSimpleFSCopyRecursiveRpcPromise = (request: SimpleFSSimpleFSCopyRecursiveRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSCopyRecursive', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSCopyRecursiveRpcPromise = (request: SimpleFSSimpleFSCopyRecursiveRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSCopyRecursive', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const SimpleFSSimpleFSCopyRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSCopyRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSCopy', request) -export const SimpleFSSimpleFSCopyRpcPromise = (request: SimpleFSSimpleFSCopyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSCopy', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSCopyRpcPromise = (request: SimpleFSSimpleFSCopyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSCopy', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const SimpleFSSimpleFSGetOpsRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSGetOpsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSGetOps', request) -export const SimpleFSSimpleFSGetOpsRpcPromise = (request: SimpleFSSimpleFSGetOpsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSGetOps', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSGetOpsRpcPromise = (request: SimpleFSSimpleFSGetOpsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSGetOps', request, (error: RPCError, result: SimpleFSSimpleFSGetOpsResult) => error ? reject(error) : resolve(result))) export const SimpleFSSimpleFSListRecursiveRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSListRecursiveRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSListRecursive', request) -export const SimpleFSSimpleFSListRecursiveRpcPromise = (request: SimpleFSSimpleFSListRecursiveRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSListRecursive', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSListRecursiveRpcPromise = (request: SimpleFSSimpleFSListRecursiveRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSListRecursive', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const SimpleFSSimpleFSListRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSListRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSList', request) -export const SimpleFSSimpleFSListRpcPromise = (request: SimpleFSSimpleFSListRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSList', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSListRpcPromise = (request: SimpleFSSimpleFSListRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSList', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const SimpleFSSimpleFSMakeOpidRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSMakeOpidRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSMakeOpid', request) -export const SimpleFSSimpleFSMakeOpidRpcPromise = (request: SimpleFSSimpleFSMakeOpidRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSMakeOpid', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSMakeOpidRpcPromise = (request: SimpleFSSimpleFSMakeOpidRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSMakeOpid', request, (error: RPCError, result: SimpleFSSimpleFSMakeOpidResult) => error ? reject(error) : resolve(result))) export const SimpleFSSimpleFSMoveRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSMoveRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSMove', request) -export const SimpleFSSimpleFSMoveRpcPromise = (request: SimpleFSSimpleFSMoveRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSMove', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSMoveRpcPromise = (request: SimpleFSSimpleFSMoveRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSMove', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const SimpleFSSimpleFSOpenRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSOpenRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSOpen', request) -export const SimpleFSSimpleFSOpenRpcPromise = (request: SimpleFSSimpleFSOpenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSOpen', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSOpenRpcPromise = (request: SimpleFSSimpleFSOpenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSOpen', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const SimpleFSSimpleFSReadListRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSReadListRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSReadList', request) -export const SimpleFSSimpleFSReadListRpcPromise = (request: SimpleFSSimpleFSReadListRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSReadList', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSReadListRpcPromise = (request: SimpleFSSimpleFSReadListRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSReadList', request, (error: RPCError, result: SimpleFSSimpleFSReadListResult) => error ? reject(error) : resolve(result))) export const SimpleFSSimpleFSReadRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSReadRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSRead', request) -export const SimpleFSSimpleFSReadRpcPromise = (request: SimpleFSSimpleFSReadRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSRead', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSReadRpcPromise = (request: SimpleFSSimpleFSReadRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSRead', request, (error: RPCError, result: SimpleFSSimpleFSReadResult) => error ? reject(error) : resolve(result))) export const SimpleFSSimpleFSRemoveRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSRemoveRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSRemove', request) -export const SimpleFSSimpleFSRemoveRpcPromise = (request: SimpleFSSimpleFSRemoveRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSRemove', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSRemoveRpcPromise = (request: SimpleFSSimpleFSRemoveRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSRemove', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const SimpleFSSimpleFSRenameRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSRenameRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSRename', request) -export const SimpleFSSimpleFSRenameRpcPromise = (request: SimpleFSSimpleFSRenameRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSRename', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSRenameRpcPromise = (request: SimpleFSSimpleFSRenameRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSRename', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const SimpleFSSimpleFSSetStatRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSSetStatRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSSetStat', request) -export const SimpleFSSimpleFSSetStatRpcPromise = (request: SimpleFSSimpleFSSetStatRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSSetStat', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSSetStatRpcPromise = (request: SimpleFSSimpleFSSetStatRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSSetStat', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const SimpleFSSimpleFSStatRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSStatRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSStat', request) -export const SimpleFSSimpleFSStatRpcPromise = (request: SimpleFSSimpleFSStatRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSStat', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSStatRpcPromise = (request: SimpleFSSimpleFSStatRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSStat', request, (error: RPCError, result: SimpleFSSimpleFSStatResult) => error ? reject(error) : resolve(result))) export const SimpleFSSimpleFSWaitRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSWaitRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSWait', request) -export const SimpleFSSimpleFSWaitRpcPromise = (request: SimpleFSSimpleFSWaitRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSWait', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSWaitRpcPromise = (request: SimpleFSSimpleFSWaitRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSWait', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const SimpleFSSimpleFSWriteRpcChannelMap = (configKeys: Array, request: SimpleFSSimpleFSWriteRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.SimpleFS.simpleFSWrite', request) -export const SimpleFSSimpleFSWriteRpcPromise = (request: SimpleFSSimpleFSWriteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSWrite', request, (error, result) => error ? reject(error) : resolve(result))) +export const SimpleFSSimpleFSWriteRpcPromise = (request: SimpleFSSimpleFSWriteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.SimpleFS.simpleFSWrite', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const accountEmailChangeRpcChannelMap = (configKeys: Array, request: AccountEmailChangeRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.account.emailChange', request) -export const accountEmailChangeRpcPromise = (request: AccountEmailChangeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.account.emailChange', request, (error, result) => error ? reject(error) : resolve(result))) +export const accountEmailChangeRpcPromise = (request: AccountEmailChangeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.account.emailChange', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const accountHasServerKeysRpcChannelMap = (configKeys: Array, request: AccountHasServerKeysRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.account.hasServerKeys', request) -export const accountHasServerKeysRpcPromise = (request: AccountHasServerKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.account.hasServerKeys', request, (error, result) => error ? reject(error) : resolve(result))) +export const accountHasServerKeysRpcPromise = (request: AccountHasServerKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.account.hasServerKeys', request, (error: RPCError, result: AccountHasServerKeysResult) => error ? reject(error) : resolve(result))) export const accountPassphraseChangeRpcChannelMap = (configKeys: Array, request: AccountPassphraseChangeRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.account.passphraseChange', request) -export const accountPassphraseChangeRpcPromise = (request: AccountPassphraseChangeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.account.passphraseChange', request, (error, result) => error ? reject(error) : resolve(result))) +export const accountPassphraseChangeRpcPromise = (request: AccountPassphraseChangeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.account.passphraseChange', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const accountPassphrasePromptRpcChannelMap = (configKeys: Array, request: AccountPassphrasePromptRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.account.passphrasePrompt', request) -export const accountPassphrasePromptRpcPromise = (request: AccountPassphrasePromptRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.account.passphrasePrompt', request, (error, result) => error ? reject(error) : resolve(result))) +export const accountPassphrasePromptRpcPromise = (request: AccountPassphrasePromptRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.account.passphrasePrompt', request, (error: RPCError, result: AccountPassphrasePromptResult) => error ? reject(error) : resolve(result))) export const accountResetAccountRpcChannelMap = (configKeys: Array, request: AccountResetAccountRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.account.resetAccount', request) -export const accountResetAccountRpcPromise = (request: AccountResetAccountRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.account.resetAccount', request, (error, result) => error ? reject(error) : resolve(result))) +export const accountResetAccountRpcPromise = (request: AccountResetAccountRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.account.resetAccount', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const apiserverDeleteRpcChannelMap = (configKeys: Array, request: ApiserverDeleteRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.apiserver.Delete', request) -export const apiserverDeleteRpcPromise = (request: ApiserverDeleteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.apiserver.Delete', request, (error, result) => error ? reject(error) : resolve(result))) +export const apiserverDeleteRpcPromise = (request: ApiserverDeleteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.apiserver.Delete', request, (error: RPCError, result: ApiserverDeleteResult) => error ? reject(error) : resolve(result))) export const apiserverGetRpcChannelMap = (configKeys: Array, request: ApiserverGetRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.apiserver.Get', request) -export const apiserverGetRpcPromise = (request: ApiserverGetRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.apiserver.Get', request, (error, result) => error ? reject(error) : resolve(result))) +export const apiserverGetRpcPromise = (request: ApiserverGetRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.apiserver.Get', request, (error: RPCError, result: ApiserverGetResult) => error ? reject(error) : resolve(result))) export const apiserverGetWithSessionRpcChannelMap = (configKeys: Array, request: ApiserverGetWithSessionRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.apiserver.GetWithSession', request) -export const apiserverGetWithSessionRpcPromise = (request: ApiserverGetWithSessionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.apiserver.GetWithSession', request, (error, result) => error ? reject(error) : resolve(result))) +export const apiserverGetWithSessionRpcPromise = (request: ApiserverGetWithSessionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.apiserver.GetWithSession', request, (error: RPCError, result: ApiserverGetWithSessionResult) => error ? reject(error) : resolve(result))) export const apiserverPostJSONRpcChannelMap = (configKeys: Array, request: ApiserverPostJSONRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.apiserver.PostJSON', request) -export const apiserverPostJSONRpcPromise = (request: ApiserverPostJSONRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.apiserver.PostJSON', request, (error, result) => error ? reject(error) : resolve(result))) +export const apiserverPostJSONRpcPromise = (request: ApiserverPostJSONRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.apiserver.PostJSON', request, (error: RPCError, result: ApiserverPostJSONResult) => error ? reject(error) : resolve(result))) export const apiserverPostRpcChannelMap = (configKeys: Array, request: ApiserverPostRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.apiserver.Post', request) -export const apiserverPostRpcPromise = (request: ApiserverPostRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.apiserver.Post', request, (error, result) => error ? reject(error) : resolve(result))) +export const apiserverPostRpcPromise = (request: ApiserverPostRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.apiserver.Post', request, (error: RPCError, result: ApiserverPostResult) => error ? reject(error) : resolve(result))) export const appStateAppState = { foreground: 0, @@ -185,7 +185,7 @@ export const appStateAppState = { export const appStateUpdateAppStateRpcChannelMap = (configKeys: Array, request: AppStateUpdateAppStateRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.appState.updateAppState', request) -export const appStateUpdateAppStateRpcPromise = (request: AppStateUpdateAppStateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.appState.updateAppState', request, (error, result) => error ? reject(error) : resolve(result))) +export const appStateUpdateAppStateRpcPromise = (request: AppStateUpdateAppStateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.appState.updateAppState', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const backendCommonBlockType = { data: 0, @@ -195,59 +195,59 @@ export const backendCommonBlockType = { export const badgerGetBadgeStateRpcChannelMap = (configKeys: Array, request: BadgerGetBadgeStateRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.badger.getBadgeState', request) -export const badgerGetBadgeStateRpcPromise = (request: BadgerGetBadgeStateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.badger.getBadgeState', request, (error, result) => error ? reject(error) : resolve(result))) +export const badgerGetBadgeStateRpcPromise = (request: BadgerGetBadgeStateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.badger.getBadgeState', request, (error: RPCError, result: BadgerGetBadgeStateResult) => error ? reject(error) : resolve(result))) export const blockAddReferenceRpcChannelMap = (configKeys: Array, request: BlockAddReferenceRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.block.addReference', request) -export const blockAddReferenceRpcPromise = (request: BlockAddReferenceRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.addReference', request, (error, result) => error ? reject(error) : resolve(result))) +export const blockAddReferenceRpcPromise = (request: BlockAddReferenceRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.addReference', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const blockArchiveReferenceRpcChannelMap = (configKeys: Array, request: BlockArchiveReferenceRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.block.archiveReference', request) -export const blockArchiveReferenceRpcPromise = (request: BlockArchiveReferenceRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.archiveReference', request, (error, result) => error ? reject(error) : resolve(result))) +export const blockArchiveReferenceRpcPromise = (request: BlockArchiveReferenceRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.archiveReference', request, (error: RPCError, result: BlockArchiveReferenceResult) => error ? reject(error) : resolve(result))) export const blockArchiveReferenceWithCountRpcChannelMap = (configKeys: Array, request: BlockArchiveReferenceWithCountRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.block.archiveReferenceWithCount', request) -export const blockArchiveReferenceWithCountRpcPromise = (request: BlockArchiveReferenceWithCountRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.archiveReferenceWithCount', request, (error, result) => error ? reject(error) : resolve(result))) +export const blockArchiveReferenceWithCountRpcPromise = (request: BlockArchiveReferenceWithCountRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.archiveReferenceWithCount', request, (error: RPCError, result: BlockArchiveReferenceWithCountResult) => error ? reject(error) : resolve(result))) export const blockAuthenticateSessionRpcChannelMap = (configKeys: Array, request: BlockAuthenticateSessionRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.block.authenticateSession', request) -export const blockAuthenticateSessionRpcPromise = (request: BlockAuthenticateSessionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.authenticateSession', request, (error, result) => error ? reject(error) : resolve(result))) +export const blockAuthenticateSessionRpcPromise = (request: BlockAuthenticateSessionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.authenticateSession', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const blockBlockPingRpcChannelMap = (configKeys: Array, request: BlockBlockPingRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.block.blockPing', request) -export const blockBlockPingRpcPromise = (request: BlockBlockPingRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.blockPing', request, (error, result) => error ? reject(error) : resolve(result))) +export const blockBlockPingRpcPromise = (request: BlockBlockPingRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.blockPing', request, (error: RPCError, result: BlockBlockPingResult) => error ? reject(error) : resolve(result))) export const blockDelReferenceRpcChannelMap = (configKeys: Array, request: BlockDelReferenceRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.block.delReference', request) -export const blockDelReferenceRpcPromise = (request: BlockDelReferenceRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.delReference', request, (error, result) => error ? reject(error) : resolve(result))) +export const blockDelReferenceRpcPromise = (request: BlockDelReferenceRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.delReference', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const blockDelReferenceWithCountRpcChannelMap = (configKeys: Array, request: BlockDelReferenceWithCountRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.block.delReferenceWithCount', request) -export const blockDelReferenceWithCountRpcPromise = (request: BlockDelReferenceWithCountRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.delReferenceWithCount', request, (error, result) => error ? reject(error) : resolve(result))) +export const blockDelReferenceWithCountRpcPromise = (request: BlockDelReferenceWithCountRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.delReferenceWithCount', request, (error: RPCError, result: BlockDelReferenceWithCountResult) => error ? reject(error) : resolve(result))) export const blockGetBlockRpcChannelMap = (configKeys: Array, request: BlockGetBlockRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.block.getBlock', request) -export const blockGetBlockRpcPromise = (request: BlockGetBlockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.getBlock', request, (error, result) => error ? reject(error) : resolve(result))) +export const blockGetBlockRpcPromise = (request: BlockGetBlockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.getBlock', request, (error: RPCError, result: BlockGetBlockResult) => error ? reject(error) : resolve(result))) export const blockGetSessionChallengeRpcChannelMap = (configKeys: Array, request: BlockGetSessionChallengeRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.block.getSessionChallenge', request) -export const blockGetSessionChallengeRpcPromise = (request: BlockGetSessionChallengeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.getSessionChallenge', request, (error, result) => error ? reject(error) : resolve(result))) +export const blockGetSessionChallengeRpcPromise = (request: BlockGetSessionChallengeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.getSessionChallenge', request, (error: RPCError, result: BlockGetSessionChallengeResult) => error ? reject(error) : resolve(result))) export const blockGetTeamQuotaInfoRpcChannelMap = (configKeys: Array, request: BlockGetTeamQuotaInfoRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.block.getTeamQuotaInfo', request) -export const blockGetTeamQuotaInfoRpcPromise = (request: BlockGetTeamQuotaInfoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.getTeamQuotaInfo', request, (error, result) => error ? reject(error) : resolve(result))) +export const blockGetTeamQuotaInfoRpcPromise = (request: BlockGetTeamQuotaInfoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.getTeamQuotaInfo', request, (error: RPCError, result: BlockGetTeamQuotaInfoResult) => error ? reject(error) : resolve(result))) export const blockGetUserQuotaInfoRpcChannelMap = (configKeys: Array, request: BlockGetUserQuotaInfoRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.block.getUserQuotaInfo', request) -export const blockGetUserQuotaInfoRpcPromise = (request: BlockGetUserQuotaInfoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.getUserQuotaInfo', request, (error, result) => error ? reject(error) : resolve(result))) +export const blockGetUserQuotaInfoRpcPromise = (request: BlockGetUserQuotaInfoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.getUserQuotaInfo', request, (error: RPCError, result: BlockGetUserQuotaInfoResult) => error ? reject(error) : resolve(result))) export const blockPutBlockAgainRpcChannelMap = (configKeys: Array, request: BlockPutBlockAgainRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.block.putBlockAgain', request) -export const blockPutBlockAgainRpcPromise = (request: BlockPutBlockAgainRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.putBlockAgain', request, (error, result) => error ? reject(error) : resolve(result))) +export const blockPutBlockAgainRpcPromise = (request: BlockPutBlockAgainRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.putBlockAgain', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const blockPutBlockRpcChannelMap = (configKeys: Array, request: BlockPutBlockRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.block.putBlock', request) -export const blockPutBlockRpcPromise = (request: BlockPutBlockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.putBlock', request, (error, result) => error ? reject(error) : resolve(result))) +export const blockPutBlockRpcPromise = (request: BlockPutBlockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.block.putBlock', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const commonClientType = { none: 0, @@ -310,11 +310,11 @@ export const commonUserOrTeamResult = { export const configCheckAPIServerOutOfDateWarningRpcChannelMap = (configKeys: Array, request: ConfigCheckAPIServerOutOfDateWarningRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.config.checkAPIServerOutOfDateWarning', request) -export const configCheckAPIServerOutOfDateWarningRpcPromise = (request: ConfigCheckAPIServerOutOfDateWarningRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.checkAPIServerOutOfDateWarning', request, (error, result) => error ? reject(error) : resolve(result))) +export const configCheckAPIServerOutOfDateWarningRpcPromise = (request: ConfigCheckAPIServerOutOfDateWarningRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.checkAPIServerOutOfDateWarning', request, (error: RPCError, result: ConfigCheckAPIServerOutOfDateWarningResult) => error ? reject(error) : resolve(result))) export const configClearValueRpcChannelMap = (configKeys: Array, request: ConfigClearValueRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.config.clearValue', request) -export const configClearValueRpcPromise = (request: ConfigClearValueRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.clearValue', request, (error, result) => error ? reject(error) : resolve(result))) +export const configClearValueRpcPromise = (request: ConfigClearValueRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.clearValue', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const configForkType = { none: 0, @@ -326,43 +326,43 @@ export const configForkType = { export const configGetBootstrapStatusRpcChannelMap = (configKeys: Array, request: ConfigGetBootstrapStatusRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.config.getBootstrapStatus', request) -export const configGetBootstrapStatusRpcPromise = (request: ConfigGetBootstrapStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.getBootstrapStatus', request, (error, result) => error ? reject(error) : resolve(result))) +export const configGetBootstrapStatusRpcPromise = (request: ConfigGetBootstrapStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.getBootstrapStatus', request, (error: RPCError, result: ConfigGetBootstrapStatusResult) => error ? reject(error) : resolve(result))) export const configGetConfigRpcChannelMap = (configKeys: Array, request: ConfigGetConfigRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.config.getConfig', request) -export const configGetConfigRpcPromise = (request: ConfigGetConfigRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.getConfig', request, (error, result) => error ? reject(error) : resolve(result))) +export const configGetConfigRpcPromise = (request: ConfigGetConfigRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.getConfig', request, (error: RPCError, result: ConfigGetConfigResult) => error ? reject(error) : resolve(result))) export const configGetCurrentStatusRpcChannelMap = (configKeys: Array, request: ConfigGetCurrentStatusRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.config.getCurrentStatus', request) -export const configGetCurrentStatusRpcPromise = (request: ConfigGetCurrentStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.getCurrentStatus', request, (error, result) => error ? reject(error) : resolve(result))) +export const configGetCurrentStatusRpcPromise = (request: ConfigGetCurrentStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.getCurrentStatus', request, (error: RPCError, result: ConfigGetCurrentStatusResult) => error ? reject(error) : resolve(result))) export const configGetExtendedStatusRpcChannelMap = (configKeys: Array, request: ConfigGetExtendedStatusRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.config.getExtendedStatus', request) -export const configGetExtendedStatusRpcPromise = (request: ConfigGetExtendedStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.getExtendedStatus', request, (error, result) => error ? reject(error) : resolve(result))) +export const configGetExtendedStatusRpcPromise = (request: ConfigGetExtendedStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.getExtendedStatus', request, (error: RPCError, result: ConfigGetExtendedStatusResult) => error ? reject(error) : resolve(result))) export const configGetValueRpcChannelMap = (configKeys: Array, request: ConfigGetValueRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.config.getValue', request) -export const configGetValueRpcPromise = (request: ConfigGetValueRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.getValue', request, (error, result) => error ? reject(error) : resolve(result))) +export const configGetValueRpcPromise = (request: ConfigGetValueRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.getValue', request, (error: RPCError, result: ConfigGetValueResult) => error ? reject(error) : resolve(result))) export const configHelloIAmRpcChannelMap = (configKeys: Array, request: ConfigHelloIAmRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.config.helloIAm', request) -export const configHelloIAmRpcPromise = (request: ConfigHelloIAmRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.helloIAm', request, (error, result) => error ? reject(error) : resolve(result))) +export const configHelloIAmRpcPromise = (request: ConfigHelloIAmRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.helloIAm', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const configSetPathRpcChannelMap = (configKeys: Array, request: ConfigSetPathRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.config.setPath', request) -export const configSetPathRpcPromise = (request: ConfigSetPathRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.setPath', request, (error, result) => error ? reject(error) : resolve(result))) +export const configSetPathRpcPromise = (request: ConfigSetPathRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.setPath', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const configSetUserConfigRpcChannelMap = (configKeys: Array, request: ConfigSetUserConfigRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.config.setUserConfig', request) -export const configSetUserConfigRpcPromise = (request: ConfigSetUserConfigRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.setUserConfig', request, (error, result) => error ? reject(error) : resolve(result))) +export const configSetUserConfigRpcPromise = (request: ConfigSetUserConfigRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.setUserConfig', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const configSetValueRpcChannelMap = (configKeys: Array, request: ConfigSetValueRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.config.setValue', request) -export const configSetValueRpcPromise = (request: ConfigSetValueRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.setValue', request, (error, result) => error ? reject(error) : resolve(result))) +export const configSetValueRpcPromise = (request: ConfigSetValueRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.setValue', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const configWaitForClientRpcChannelMap = (configKeys: Array, request: ConfigWaitForClientRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.config.waitForClient', request) -export const configWaitForClientRpcPromise = (request: ConfigWaitForClientRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.waitForClient', request, (error, result) => error ? reject(error) : resolve(result))) +export const configWaitForClientRpcPromise = (request: ConfigWaitForClientRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.config.waitForClient', request, (error: RPCError, result: ConfigWaitForClientResult) => error ? reject(error) : resolve(result))) export const constantsStatusCode = { scok: 0, @@ -508,47 +508,47 @@ export const constantsStatusCode = { export const cryptoSignED25519ForKBFSRpcChannelMap = (configKeys: Array, request: CryptoSignED25519ForKBFSRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.crypto.signED25519ForKBFS', request) -export const cryptoSignED25519ForKBFSRpcPromise = (request: CryptoSignED25519ForKBFSRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.crypto.signED25519ForKBFS', request, (error, result) => error ? reject(error) : resolve(result))) +export const cryptoSignED25519ForKBFSRpcPromise = (request: CryptoSignED25519ForKBFSRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.crypto.signED25519ForKBFS', request, (error: RPCError, result: CryptoSignED25519ForKBFSResult) => error ? reject(error) : resolve(result))) export const cryptoSignED25519RpcChannelMap = (configKeys: Array, request: CryptoSignED25519RpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.crypto.signED25519', request) -export const cryptoSignED25519RpcPromise = (request: CryptoSignED25519RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.crypto.signED25519', request, (error, result) => error ? reject(error) : resolve(result))) +export const cryptoSignED25519RpcPromise = (request: CryptoSignED25519RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.crypto.signED25519', request, (error: RPCError, result: CryptoSignED25519Result) => error ? reject(error) : resolve(result))) export const cryptoSignToStringRpcChannelMap = (configKeys: Array, request: CryptoSignToStringRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.crypto.signToString', request) -export const cryptoSignToStringRpcPromise = (request: CryptoSignToStringRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.crypto.signToString', request, (error, result) => error ? reject(error) : resolve(result))) +export const cryptoSignToStringRpcPromise = (request: CryptoSignToStringRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.crypto.signToString', request, (error: RPCError, result: CryptoSignToStringResult) => error ? reject(error) : resolve(result))) export const cryptoUnboxBytes32AnyRpcChannelMap = (configKeys: Array, request: CryptoUnboxBytes32AnyRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.crypto.unboxBytes32Any', request) -export const cryptoUnboxBytes32AnyRpcPromise = (request: CryptoUnboxBytes32AnyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.crypto.unboxBytes32Any', request, (error, result) => error ? reject(error) : resolve(result))) +export const cryptoUnboxBytes32AnyRpcPromise = (request: CryptoUnboxBytes32AnyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.crypto.unboxBytes32Any', request, (error: RPCError, result: CryptoUnboxBytes32AnyResult) => error ? reject(error) : resolve(result))) export const cryptoUnboxBytes32RpcChannelMap = (configKeys: Array, request: CryptoUnboxBytes32RpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.crypto.unboxBytes32', request) -export const cryptoUnboxBytes32RpcPromise = (request: CryptoUnboxBytes32RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.crypto.unboxBytes32', request, (error, result) => error ? reject(error) : resolve(result))) +export const cryptoUnboxBytes32RpcPromise = (request: CryptoUnboxBytes32RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.crypto.unboxBytes32', request, (error: RPCError, result: CryptoUnboxBytes32Result) => error ? reject(error) : resolve(result))) export const cryptocurrencyRegisterAddressRpcChannelMap = (configKeys: Array, request: CryptocurrencyRegisterAddressRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.cryptocurrency.registerAddress', request) -export const cryptocurrencyRegisterAddressRpcPromise = (request: CryptocurrencyRegisterAddressRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.cryptocurrency.registerAddress', request, (error, result) => error ? reject(error) : resolve(result))) +export const cryptocurrencyRegisterAddressRpcPromise = (request: CryptocurrencyRegisterAddressRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.cryptocurrency.registerAddress', request, (error: RPCError, result: CryptocurrencyRegisterAddressResult) => error ? reject(error) : resolve(result))) export const ctlAppExitRpcChannelMap = (configKeys: Array, request: CtlAppExitRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.ctl.appExit', request) -export const ctlAppExitRpcPromise = (request: CtlAppExitRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ctl.appExit', request, (error, result) => error ? reject(error) : resolve(result))) +export const ctlAppExitRpcPromise = (request: CtlAppExitRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ctl.appExit', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const ctlDbDeleteRpcChannelMap = (configKeys: Array, request: CtlDbDeleteRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.ctl.dbDelete', request) -export const ctlDbDeleteRpcPromise = (request: CtlDbDeleteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ctl.dbDelete', request, (error, result) => error ? reject(error) : resolve(result))) +export const ctlDbDeleteRpcPromise = (request: CtlDbDeleteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ctl.dbDelete', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const ctlDbGetRpcChannelMap = (configKeys: Array, request: CtlDbGetRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.ctl.dbGet', request) -export const ctlDbGetRpcPromise = (request: CtlDbGetRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ctl.dbGet', request, (error, result) => error ? reject(error) : resolve(result))) +export const ctlDbGetRpcPromise = (request: CtlDbGetRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ctl.dbGet', request, (error: RPCError, result: CtlDbGetResult) => error ? reject(error) : resolve(result))) export const ctlDbNukeRpcChannelMap = (configKeys: Array, request: CtlDbNukeRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.ctl.dbNuke', request) -export const ctlDbNukeRpcPromise = (request: CtlDbNukeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ctl.dbNuke', request, (error, result) => error ? reject(error) : resolve(result))) +export const ctlDbNukeRpcPromise = (request: CtlDbNukeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ctl.dbNuke', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const ctlDbPutRpcChannelMap = (configKeys: Array, request: CtlDbPutRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.ctl.dbPut', request) -export const ctlDbPutRpcPromise = (request: CtlDbPutRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ctl.dbPut', request, (error, result) => error ? reject(error) : resolve(result))) +export const ctlDbPutRpcPromise = (request: CtlDbPutRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ctl.dbPut', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const ctlDbType = { main: 0, @@ -563,75 +563,75 @@ export const ctlExitCode = { export const ctlLogRotateRpcChannelMap = (configKeys: Array, request: CtlLogRotateRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.ctl.logRotate', request) -export const ctlLogRotateRpcPromise = (request: CtlLogRotateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ctl.logRotate', request, (error, result) => error ? reject(error) : resolve(result))) +export const ctlLogRotateRpcPromise = (request: CtlLogRotateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ctl.logRotate', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const ctlReloadRpcChannelMap = (configKeys: Array, request: CtlReloadRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.ctl.reload', request) -export const ctlReloadRpcPromise = (request: CtlReloadRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ctl.reload', request, (error, result) => error ? reject(error) : resolve(result))) +export const ctlReloadRpcPromise = (request: CtlReloadRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ctl.reload', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const ctlStopRpcChannelMap = (configKeys: Array, request: CtlStopRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.ctl.stop', request) -export const ctlStopRpcPromise = (request: CtlStopRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ctl.stop', request, (error, result) => error ? reject(error) : resolve(result))) +export const ctlStopRpcPromise = (request: CtlStopRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.ctl.stop', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const debuggingFirstStepRpcChannelMap = (configKeys: Array, request: DebuggingFirstStepRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.debugging.firstStep', request) -export const debuggingFirstStepRpcPromise = (request: DebuggingFirstStepRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.debugging.firstStep', request, (error, result) => error ? reject(error) : resolve(result))) +export const debuggingFirstStepRpcPromise = (request: DebuggingFirstStepRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.debugging.firstStep', request, (error: RPCError, result: DebuggingFirstStepResult) => error ? reject(error) : resolve(result))) export const debuggingIncrementRpcChannelMap = (configKeys: Array, request: DebuggingIncrementRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.debugging.increment', request) -export const debuggingIncrementRpcPromise = (request: DebuggingIncrementRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.debugging.increment', request, (error, result) => error ? reject(error) : resolve(result))) +export const debuggingIncrementRpcPromise = (request: DebuggingIncrementRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.debugging.increment', request, (error: RPCError, result: DebuggingIncrementResult) => error ? reject(error) : resolve(result))) export const debuggingSecondStepRpcChannelMap = (configKeys: Array, request: DebuggingSecondStepRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.debugging.secondStep', request) -export const debuggingSecondStepRpcPromise = (request: DebuggingSecondStepRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.debugging.secondStep', request, (error, result) => error ? reject(error) : resolve(result))) +export const debuggingSecondStepRpcPromise = (request: DebuggingSecondStepRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.debugging.secondStep', request, (error: RPCError, result: DebuggingSecondStepResult) => error ? reject(error) : resolve(result))) export const delegateUiCtlRegisterGregorFirehoseRpcChannelMap = (configKeys: Array, request: DelegateUiCtlRegisterGregorFirehoseRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.delegateUiCtl.registerGregorFirehose', request) -export const delegateUiCtlRegisterGregorFirehoseRpcPromise = (request: DelegateUiCtlRegisterGregorFirehoseRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.delegateUiCtl.registerGregorFirehose', request, (error, result) => error ? reject(error) : resolve(result))) +export const delegateUiCtlRegisterGregorFirehoseRpcPromise = (request: DelegateUiCtlRegisterGregorFirehoseRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.delegateUiCtl.registerGregorFirehose', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const delegateUiCtlRegisterIdentifyUIRpcChannelMap = (configKeys: Array, request: DelegateUiCtlRegisterIdentifyUIRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.delegateUiCtl.registerIdentifyUI', request) -export const delegateUiCtlRegisterIdentifyUIRpcPromise = (request: DelegateUiCtlRegisterIdentifyUIRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.delegateUiCtl.registerIdentifyUI', request, (error, result) => error ? reject(error) : resolve(result))) +export const delegateUiCtlRegisterIdentifyUIRpcPromise = (request: DelegateUiCtlRegisterIdentifyUIRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.delegateUiCtl.registerIdentifyUI', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const delegateUiCtlRegisterRekeyUIRpcChannelMap = (configKeys: Array, request: DelegateUiCtlRegisterRekeyUIRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.delegateUiCtl.registerRekeyUI', request) -export const delegateUiCtlRegisterRekeyUIRpcPromise = (request: DelegateUiCtlRegisterRekeyUIRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.delegateUiCtl.registerRekeyUI', request, (error, result) => error ? reject(error) : resolve(result))) +export const delegateUiCtlRegisterRekeyUIRpcPromise = (request: DelegateUiCtlRegisterRekeyUIRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.delegateUiCtl.registerRekeyUI', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const delegateUiCtlRegisterSecretUIRpcChannelMap = (configKeys: Array, request: DelegateUiCtlRegisterSecretUIRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.delegateUiCtl.registerSecretUI', request) -export const delegateUiCtlRegisterSecretUIRpcPromise = (request: DelegateUiCtlRegisterSecretUIRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.delegateUiCtl.registerSecretUI', request, (error, result) => error ? reject(error) : resolve(result))) +export const delegateUiCtlRegisterSecretUIRpcPromise = (request: DelegateUiCtlRegisterSecretUIRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.delegateUiCtl.registerSecretUI', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const delegateUiCtlRegisterUpdateUIRpcChannelMap = (configKeys: Array, request: DelegateUiCtlRegisterUpdateUIRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.delegateUiCtl.registerUpdateUI', request) -export const delegateUiCtlRegisterUpdateUIRpcPromise = (request: DelegateUiCtlRegisterUpdateUIRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.delegateUiCtl.registerUpdateUI', request, (error, result) => error ? reject(error) : resolve(result))) +export const delegateUiCtlRegisterUpdateUIRpcPromise = (request: DelegateUiCtlRegisterUpdateUIRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.delegateUiCtl.registerUpdateUI', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const deviceCheckDeviceNameForUserRpcChannelMap = (configKeys: Array, request: DeviceCheckDeviceNameForUserRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.device.checkDeviceNameForUser', request) -export const deviceCheckDeviceNameForUserRpcPromise = (request: DeviceCheckDeviceNameForUserRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.device.checkDeviceNameForUser', request, (error, result) => error ? reject(error) : resolve(result))) +export const deviceCheckDeviceNameForUserRpcPromise = (request: DeviceCheckDeviceNameForUserRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.device.checkDeviceNameForUser', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const deviceCheckDeviceNameFormatRpcChannelMap = (configKeys: Array, request: DeviceCheckDeviceNameFormatRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.device.checkDeviceNameFormat', request) -export const deviceCheckDeviceNameFormatRpcPromise = (request: DeviceCheckDeviceNameFormatRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.device.checkDeviceNameFormat', request, (error, result) => error ? reject(error) : resolve(result))) +export const deviceCheckDeviceNameFormatRpcPromise = (request: DeviceCheckDeviceNameFormatRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.device.checkDeviceNameFormat', request, (error: RPCError, result: DeviceCheckDeviceNameFormatResult) => error ? reject(error) : resolve(result))) export const deviceDeviceAddRpcChannelMap = (configKeys: Array, request: DeviceDeviceAddRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.device.deviceAdd', request) -export const deviceDeviceAddRpcPromise = (request: DeviceDeviceAddRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.device.deviceAdd', request, (error, result) => error ? reject(error) : resolve(result))) +export const deviceDeviceAddRpcPromise = (request: DeviceDeviceAddRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.device.deviceAdd', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const deviceDeviceHistoryListRpcChannelMap = (configKeys: Array, request: DeviceDeviceHistoryListRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.device.deviceHistoryList', request) -export const deviceDeviceHistoryListRpcPromise = (request: DeviceDeviceHistoryListRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.device.deviceHistoryList', request, (error, result) => error ? reject(error) : resolve(result))) +export const deviceDeviceHistoryListRpcPromise = (request: DeviceDeviceHistoryListRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.device.deviceHistoryList', request, (error: RPCError, result: DeviceDeviceHistoryListResult) => error ? reject(error) : resolve(result))) export const deviceDeviceListRpcChannelMap = (configKeys: Array, request: DeviceDeviceListRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.device.deviceList', request) -export const deviceDeviceListRpcPromise = (request: DeviceDeviceListRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.device.deviceList', request, (error, result) => error ? reject(error) : resolve(result))) +export const deviceDeviceListRpcPromise = (request: DeviceDeviceListRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.device.deviceList', request, (error: RPCError, result: DeviceDeviceListResult) => error ? reject(error) : resolve(result))) export const favoriteFavoriteAddRpcChannelMap = (configKeys: Array, request: FavoriteFavoriteAddRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.favorite.favoriteAdd', request) -export const favoriteFavoriteAddRpcPromise = (request: FavoriteFavoriteAddRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.favorite.favoriteAdd', request, (error, result) => error ? reject(error) : resolve(result))) +export const favoriteFavoriteAddRpcPromise = (request: FavoriteFavoriteAddRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.favorite.favoriteAdd', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const favoriteFavoriteIgnoreRpcChannelMap = (configKeys: Array, request: FavoriteFavoriteIgnoreRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.favorite.favoriteIgnore', request) -export const favoriteFavoriteIgnoreRpcPromise = (request: FavoriteFavoriteIgnoreRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.favorite.favoriteIgnore', request, (error, result) => error ? reject(error) : resolve(result))) +export const favoriteFavoriteIgnoreRpcPromise = (request: FavoriteFavoriteIgnoreRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.favorite.favoriteIgnore', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const favoriteFolderType = { unknown: 0, @@ -642,47 +642,47 @@ export const favoriteFolderType = { export const favoriteGetFavoritesRpcChannelMap = (configKeys: Array, request: FavoriteGetFavoritesRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.favorite.getFavorites', request) -export const favoriteGetFavoritesRpcPromise = (request: FavoriteGetFavoritesRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.favorite.getFavorites', request, (error, result) => error ? reject(error) : resolve(result))) +export const favoriteGetFavoritesRpcPromise = (request: FavoriteGetFavoritesRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.favorite.getFavorites', request, (error: RPCError, result: FavoriteGetFavoritesResult) => error ? reject(error) : resolve(result))) export const fsListRpcChannelMap = (configKeys: Array, request: FsListRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.fs.List', request) -export const fsListRpcPromise = (request: FsListRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.fs.List', request, (error, result) => error ? reject(error) : resolve(result))) +export const fsListRpcPromise = (request: FsListRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.fs.List', request, (error: RPCError, result: FsListResult) => error ? reject(error) : resolve(result))) export const gitCreatePersonalRepoRpcChannelMap = (configKeys: Array, request: GitCreatePersonalRepoRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.git.createPersonalRepo', request) -export const gitCreatePersonalRepoRpcPromise = (request: GitCreatePersonalRepoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.createPersonalRepo', request, (error, result) => error ? reject(error) : resolve(result))) +export const gitCreatePersonalRepoRpcPromise = (request: GitCreatePersonalRepoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.createPersonalRepo', request, (error: RPCError, result: GitCreatePersonalRepoResult) => error ? reject(error) : resolve(result))) export const gitCreateTeamRepoRpcChannelMap = (configKeys: Array, request: GitCreateTeamRepoRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.git.createTeamRepo', request) -export const gitCreateTeamRepoRpcPromise = (request: GitCreateTeamRepoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.createTeamRepo', request, (error, result) => error ? reject(error) : resolve(result))) +export const gitCreateTeamRepoRpcPromise = (request: GitCreateTeamRepoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.createTeamRepo', request, (error: RPCError, result: GitCreateTeamRepoResult) => error ? reject(error) : resolve(result))) export const gitDeleteGitMetadataRpcChannelMap = (configKeys: Array, request: GitDeleteGitMetadataRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.git.deleteGitMetadata', request) -export const gitDeleteGitMetadataRpcPromise = (request: GitDeleteGitMetadataRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.deleteGitMetadata', request, (error, result) => error ? reject(error) : resolve(result))) +export const gitDeleteGitMetadataRpcPromise = (request: GitDeleteGitMetadataRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.deleteGitMetadata', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const gitDeletePersonalRepoRpcChannelMap = (configKeys: Array, request: GitDeletePersonalRepoRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.git.deletePersonalRepo', request) -export const gitDeletePersonalRepoRpcPromise = (request: GitDeletePersonalRepoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.deletePersonalRepo', request, (error, result) => error ? reject(error) : resolve(result))) +export const gitDeletePersonalRepoRpcPromise = (request: GitDeletePersonalRepoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.deletePersonalRepo', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const gitDeleteTeamRepoRpcChannelMap = (configKeys: Array, request: GitDeleteTeamRepoRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.git.deleteTeamRepo', request) -export const gitDeleteTeamRepoRpcPromise = (request: GitDeleteTeamRepoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.deleteTeamRepo', request, (error, result) => error ? reject(error) : resolve(result))) +export const gitDeleteTeamRepoRpcPromise = (request: GitDeleteTeamRepoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.deleteTeamRepo', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const gitGcPersonalRepoRpcChannelMap = (configKeys: Array, request: GitGcPersonalRepoRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.git.gcPersonalRepo', request) -export const gitGcPersonalRepoRpcPromise = (request: GitGcPersonalRepoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.gcPersonalRepo', request, (error, result) => error ? reject(error) : resolve(result))) +export const gitGcPersonalRepoRpcPromise = (request: GitGcPersonalRepoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.gcPersonalRepo', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const gitGcTeamRepoRpcChannelMap = (configKeys: Array, request: GitGcTeamRepoRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.git.gcTeamRepo', request) -export const gitGcTeamRepoRpcPromise = (request: GitGcTeamRepoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.gcTeamRepo', request, (error, result) => error ? reject(error) : resolve(result))) +export const gitGcTeamRepoRpcPromise = (request: GitGcTeamRepoRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.gcTeamRepo', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const gitGetAllGitMetadataRpcChannelMap = (configKeys: Array, request: GitGetAllGitMetadataRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.git.getAllGitMetadata', request) -export const gitGetAllGitMetadataRpcPromise = (request: GitGetAllGitMetadataRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.getAllGitMetadata', request, (error, result) => error ? reject(error) : resolve(result))) +export const gitGetAllGitMetadataRpcPromise = (request: GitGetAllGitMetadataRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.getAllGitMetadata', request, (error: RPCError, result: GitGetAllGitMetadataResult) => error ? reject(error) : resolve(result))) export const gitGetGitMetadataRpcChannelMap = (configKeys: Array, request: GitGetGitMetadataRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.git.getGitMetadata', request) -export const gitGetGitMetadataRpcPromise = (request: GitGetGitMetadataRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.getGitMetadata', request, (error, result) => error ? reject(error) : resolve(result))) +export const gitGetGitMetadataRpcPromise = (request: GitGetGitMetadataRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.getGitMetadata', request, (error: RPCError, result: GitGetGitMetadataResult) => error ? reject(error) : resolve(result))) export const gitGitLocalMetadataVersion = { v1: 1, @@ -695,23 +695,23 @@ export const gitGitRepoResultState = { export const gitPutGitMetadataRpcChannelMap = (configKeys: Array, request: GitPutGitMetadataRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.git.putGitMetadata', request) -export const gitPutGitMetadataRpcPromise = (request: GitPutGitMetadataRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.putGitMetadata', request, (error, result) => error ? reject(error) : resolve(result))) +export const gitPutGitMetadataRpcPromise = (request: GitPutGitMetadataRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.git.putGitMetadata', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const gregorDismissCategoryRpcChannelMap = (configKeys: Array, request: GregorDismissCategoryRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.gregor.dismissCategory', request) -export const gregorDismissCategoryRpcPromise = (request: GregorDismissCategoryRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.gregor.dismissCategory', request, (error, result) => error ? reject(error) : resolve(result))) +export const gregorDismissCategoryRpcPromise = (request: GregorDismissCategoryRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.gregor.dismissCategory', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const gregorDismissItemRpcChannelMap = (configKeys: Array, request: GregorDismissItemRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.gregor.dismissItem', request) -export const gregorDismissItemRpcPromise = (request: GregorDismissItemRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.gregor.dismissItem', request, (error, result) => error ? reject(error) : resolve(result))) +export const gregorDismissItemRpcPromise = (request: GregorDismissItemRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.gregor.dismissItem', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const gregorGetStateRpcChannelMap = (configKeys: Array, request: GregorGetStateRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.gregor.getState', request) -export const gregorGetStateRpcPromise = (request: GregorGetStateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.gregor.getState', request, (error, result) => error ? reject(error) : resolve(result))) +export const gregorGetStateRpcPromise = (request: GregorGetStateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.gregor.getState', request, (error: RPCError, result: GregorGetStateResult) => error ? reject(error) : resolve(result))) export const gregorInjectItemRpcChannelMap = (configKeys: Array, request: GregorInjectItemRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.gregor.injectItem', request) -export const gregorInjectItemRpcPromise = (request: GregorInjectItemRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.gregor.injectItem', request, (error, result) => error ? reject(error) : resolve(result))) +export const gregorInjectItemRpcPromise = (request: GregorInjectItemRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.gregor.injectItem', request, (error: RPCError, result: GregorInjectItemResult) => error ? reject(error) : resolve(result))) export const gregorUIPushReason = { none: 0, @@ -721,15 +721,15 @@ export const gregorUIPushReason = { export const homeHomeActionTakenRpcChannelMap = (configKeys: Array, request: HomeHomeActionTakenRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.home.homeActionTaken', request) -export const homeHomeActionTakenRpcPromise = (request: HomeHomeActionTakenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.home.homeActionTaken', request, (error, result) => error ? reject(error) : resolve(result))) +export const homeHomeActionTakenRpcPromise = (request: HomeHomeActionTakenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.home.homeActionTaken', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const homeHomeGetScreenRpcChannelMap = (configKeys: Array, request: HomeHomeGetScreenRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.home.homeGetScreen', request) -export const homeHomeGetScreenRpcPromise = (request: HomeHomeGetScreenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.home.homeGetScreen', request, (error, result) => error ? reject(error) : resolve(result))) +export const homeHomeGetScreenRpcPromise = (request: HomeHomeGetScreenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.home.homeGetScreen', request, (error: RPCError, result: HomeHomeGetScreenResult) => error ? reject(error) : resolve(result))) export const homeHomeMarkViewedRpcChannelMap = (configKeys: Array, request: HomeHomeMarkViewedRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.home.homeMarkViewed', request) -export const homeHomeMarkViewedRpcPromise = (request: HomeHomeMarkViewedRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.home.homeMarkViewed', request, (error, result) => error ? reject(error) : resolve(result))) +export const homeHomeMarkViewedRpcPromise = (request: HomeHomeMarkViewedRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.home.homeMarkViewed', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const homeHomeScreenItemType = { todo: 1, @@ -757,7 +757,7 @@ export const homeHomeScreenTodoType = { export const homeHomeSkipTodoTypeRpcChannelMap = (configKeys: Array, request: HomeHomeSkipTodoTypeRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.home.homeSkipTodoType', request) -export const homeHomeSkipTodoTypeRpcPromise = (request: HomeHomeSkipTodoTypeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.home.homeSkipTodoType', request, (error, result) => error ? reject(error) : resolve(result))) +export const homeHomeSkipTodoTypeRpcPromise = (request: HomeHomeSkipTodoTypeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.home.homeSkipTodoType', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const identifyCommonIdentifyReasonType = { none: 0, @@ -796,19 +796,19 @@ export const identifyCommonTrackStatus = { export const identifyIdentify2RpcChannelMap = (configKeys: Array, request: IdentifyIdentify2RpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.identify.identify2', request) -export const identifyIdentify2RpcPromise = (request: IdentifyIdentify2RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.identify.identify2', request, (error, result) => error ? reject(error) : resolve(result))) +export const identifyIdentify2RpcPromise = (request: IdentifyIdentify2RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.identify.identify2', request, (error: RPCError, result: IdentifyIdentify2Result) => error ? reject(error) : resolve(result))) export const identifyIdentifyLiteRpcChannelMap = (configKeys: Array, request: IdentifyIdentifyLiteRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.identify.identifyLite', request) -export const identifyIdentifyLiteRpcPromise = (request: IdentifyIdentifyLiteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.identify.identifyLite', request, (error, result) => error ? reject(error) : resolve(result))) +export const identifyIdentifyLiteRpcPromise = (request: IdentifyIdentifyLiteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.identify.identifyLite', request, (error: RPCError, result: IdentifyIdentifyLiteResult) => error ? reject(error) : resolve(result))) export const identifyResolve3RpcChannelMap = (configKeys: Array, request: IdentifyResolve3RpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.identify.Resolve3', request) -export const identifyResolve3RpcPromise = (request: IdentifyResolve3RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.identify.Resolve3', request, (error, result) => error ? reject(error) : resolve(result))) +export const identifyResolve3RpcPromise = (request: IdentifyResolve3RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.identify.Resolve3', request, (error: RPCError, result: IdentifyResolve3Result) => error ? reject(error) : resolve(result))) export const identifyResolveIdentifyImplicitTeamRpcChannelMap = (configKeys: Array, request: IdentifyResolveIdentifyImplicitTeamRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.identify.resolveIdentifyImplicitTeam', request) -export const identifyResolveIdentifyImplicitTeamRpcPromise = (request: IdentifyResolveIdentifyImplicitTeamRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.identify.resolveIdentifyImplicitTeam', request, (error, result) => error ? reject(error) : resolve(result))) +export const identifyResolveIdentifyImplicitTeamRpcPromise = (request: IdentifyResolveIdentifyImplicitTeamRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.identify.resolveIdentifyImplicitTeam', request, (error: RPCError, result: IdentifyResolveIdentifyImplicitTeamResult) => error ? reject(error) : resolve(result))) export const identifyUiCheckResultFreshness = { fresh: 0, @@ -823,7 +823,7 @@ export const identifyUiDismissReasonType = { export const installFuseStatusRpcChannelMap = (configKeys: Array, request: InstallFuseStatusRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.install.fuseStatus', request) -export const installFuseStatusRpcPromise = (request: InstallFuseStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.install.fuseStatus', request, (error, result) => error ? reject(error) : resolve(result))) +export const installFuseStatusRpcPromise = (request: InstallFuseStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.install.fuseStatus', request, (error: RPCError, result: InstallFuseStatusResult) => error ? reject(error) : resolve(result))) export const installInstallAction = { unknown: 0, @@ -835,15 +835,15 @@ export const installInstallAction = { export const installInstallCommandLinePrivilegedRpcChannelMap = (configKeys: Array, request: InstallInstallCommandLinePrivilegedRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.install.installCommandLinePrivileged', request) -export const installInstallCommandLinePrivilegedRpcPromise = (request: InstallInstallCommandLinePrivilegedRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.install.installCommandLinePrivileged', request, (error, result) => error ? reject(error) : resolve(result))) +export const installInstallCommandLinePrivilegedRpcPromise = (request: InstallInstallCommandLinePrivilegedRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.install.installCommandLinePrivileged', request, (error: RPCError, result: InstallInstallCommandLinePrivilegedResult) => error ? reject(error) : resolve(result))) export const installInstallFuseRpcChannelMap = (configKeys: Array, request: InstallInstallFuseRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.install.installFuse', request) -export const installInstallFuseRpcPromise = (request: InstallInstallFuseRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.install.installFuse', request, (error, result) => error ? reject(error) : resolve(result))) +export const installInstallFuseRpcPromise = (request: InstallInstallFuseRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.install.installFuse', request, (error: RPCError, result: InstallInstallFuseResult) => error ? reject(error) : resolve(result))) export const installInstallKBFSRpcChannelMap = (configKeys: Array, request: InstallInstallKBFSRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.install.installKBFS', request) -export const installInstallKBFSRpcPromise = (request: InstallInstallKBFSRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.install.installKBFS', request, (error, result) => error ? reject(error) : resolve(result))) +export const installInstallKBFSRpcPromise = (request: InstallInstallKBFSRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.install.installKBFS', request, (error: RPCError, result: InstallInstallKBFSResult) => error ? reject(error) : resolve(result))) export const installInstallStatus = { unknown: 0, @@ -854,7 +854,7 @@ export const installInstallStatus = { export const installUninstallKBFSRpcChannelMap = (configKeys: Array, request: InstallUninstallKBFSRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.install.uninstallKBFS', request) -export const installUninstallKBFSRpcPromise = (request: InstallUninstallKBFSRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.install.uninstallKBFS', request, (error, result) => error ? reject(error) : resolve(result))) +export const installUninstallKBFSRpcPromise = (request: InstallUninstallKBFSRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.install.uninstallKBFS', request, (error: RPCError, result: InstallUninstallKBFSResult) => error ? reject(error) : resolve(result))) export const kbfsCommonFSErrorType = { accessDenied: 0, @@ -897,207 +897,207 @@ export const kbfsCommonFSStatusCode = { export const kbfsFSEditListRpcChannelMap = (configKeys: Array, request: KbfsFSEditListRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.kbfs.FSEditList', request) -export const kbfsFSEditListRpcPromise = (request: KbfsFSEditListRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.kbfs.FSEditList', request, (error, result) => error ? reject(error) : resolve(result))) +export const kbfsFSEditListRpcPromise = (request: KbfsFSEditListRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.kbfs.FSEditList', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const kbfsFSEventRpcChannelMap = (configKeys: Array, request: KbfsFSEventRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.kbfs.FSEvent', request) -export const kbfsFSEventRpcPromise = (request: KbfsFSEventRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.kbfs.FSEvent', request, (error, result) => error ? reject(error) : resolve(result))) +export const kbfsFSEventRpcPromise = (request: KbfsFSEventRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.kbfs.FSEvent', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const kbfsFSSyncEventRpcChannelMap = (configKeys: Array, request: KbfsFSSyncEventRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.kbfs.FSSyncEvent', request) -export const kbfsFSSyncEventRpcPromise = (request: KbfsFSSyncEventRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.kbfs.FSSyncEvent', request, (error, result) => error ? reject(error) : resolve(result))) +export const kbfsFSSyncEventRpcPromise = (request: KbfsFSSyncEventRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.kbfs.FSSyncEvent', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const kbfsFSSyncStatusRpcChannelMap = (configKeys: Array, request: KbfsFSSyncStatusRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.kbfs.FSSyncStatus', request) -export const kbfsFSSyncStatusRpcPromise = (request: KbfsFSSyncStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.kbfs.FSSyncStatus', request, (error, result) => error ? reject(error) : resolve(result))) +export const kbfsFSSyncStatusRpcPromise = (request: KbfsFSSyncStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.kbfs.FSSyncStatus', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const kbfsMountGetAllAvailableMountDirsRpcChannelMap = (configKeys: Array, request: KbfsMountGetAllAvailableMountDirsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.kbfsMount.GetAllAvailableMountDirs', request) -export const kbfsMountGetAllAvailableMountDirsRpcPromise = (request: KbfsMountGetAllAvailableMountDirsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.kbfsMount.GetAllAvailableMountDirs', request, (error, result) => error ? reject(error) : resolve(result))) +export const kbfsMountGetAllAvailableMountDirsRpcPromise = (request: KbfsMountGetAllAvailableMountDirsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.kbfsMount.GetAllAvailableMountDirs', request, (error: RPCError, result: KbfsMountGetAllAvailableMountDirsResult) => error ? reject(error) : resolve(result))) export const kbfsMountGetCurrentMountDirRpcChannelMap = (configKeys: Array, request: KbfsMountGetCurrentMountDirRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.kbfsMount.GetCurrentMountDir', request) -export const kbfsMountGetCurrentMountDirRpcPromise = (request: KbfsMountGetCurrentMountDirRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.kbfsMount.GetCurrentMountDir', request, (error, result) => error ? reject(error) : resolve(result))) +export const kbfsMountGetCurrentMountDirRpcPromise = (request: KbfsMountGetCurrentMountDirRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.kbfsMount.GetCurrentMountDir', request, (error: RPCError, result: KbfsMountGetCurrentMountDirResult) => error ? reject(error) : resolve(result))) export const kbfsMountSetCurrentMountDirRpcChannelMap = (configKeys: Array, request: KbfsMountSetCurrentMountDirRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.kbfsMount.SetCurrentMountDir', request) -export const kbfsMountSetCurrentMountDirRpcPromise = (request: KbfsMountSetCurrentMountDirRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.kbfsMount.SetCurrentMountDir', request, (error, result) => error ? reject(error) : resolve(result))) +export const kbfsMountSetCurrentMountDirRpcPromise = (request: KbfsMountSetCurrentMountDirRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.kbfsMount.SetCurrentMountDir', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const logRegisterLoggerRpcChannelMap = (configKeys: Array, request: LogRegisterLoggerRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.log.registerLogger', request) -export const logRegisterLoggerRpcPromise = (request: LogRegisterLoggerRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.log.registerLogger', request, (error, result) => error ? reject(error) : resolve(result))) +export const logRegisterLoggerRpcPromise = (request: LogRegisterLoggerRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.log.registerLogger', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const loginAccountDeleteRpcChannelMap = (configKeys: Array, request: LoginAccountDeleteRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.login.accountDelete', request) -export const loginAccountDeleteRpcPromise = (request: LoginAccountDeleteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.accountDelete', request, (error, result) => error ? reject(error) : resolve(result))) +export const loginAccountDeleteRpcPromise = (request: LoginAccountDeleteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.accountDelete', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const loginClearStoredSecretRpcChannelMap = (configKeys: Array, request: LoginClearStoredSecretRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.login.clearStoredSecret', request) -export const loginClearStoredSecretRpcPromise = (request: LoginClearStoredSecretRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.clearStoredSecret', request, (error, result) => error ? reject(error) : resolve(result))) +export const loginClearStoredSecretRpcPromise = (request: LoginClearStoredSecretRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.clearStoredSecret', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const loginDeprovisionRpcChannelMap = (configKeys: Array, request: LoginDeprovisionRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.login.deprovision', request) -export const loginDeprovisionRpcPromise = (request: LoginDeprovisionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.deprovision', request, (error, result) => error ? reject(error) : resolve(result))) +export const loginDeprovisionRpcPromise = (request: LoginDeprovisionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.deprovision', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const loginGetConfiguredAccountsRpcChannelMap = (configKeys: Array, request: LoginGetConfiguredAccountsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.login.getConfiguredAccounts', request) -export const loginGetConfiguredAccountsRpcPromise = (request: LoginGetConfiguredAccountsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.getConfiguredAccounts', request, (error, result) => error ? reject(error) : resolve(result))) +export const loginGetConfiguredAccountsRpcPromise = (request: LoginGetConfiguredAccountsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.getConfiguredAccounts', request, (error: RPCError, result: LoginGetConfiguredAccountsResult) => error ? reject(error) : resolve(result))) export const loginLoginProvisionedDeviceRpcChannelMap = (configKeys: Array, request: LoginLoginProvisionedDeviceRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.login.loginProvisionedDevice', request) -export const loginLoginProvisionedDeviceRpcPromise = (request: LoginLoginProvisionedDeviceRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.loginProvisionedDevice', request, (error, result) => error ? reject(error) : resolve(result))) +export const loginLoginProvisionedDeviceRpcPromise = (request: LoginLoginProvisionedDeviceRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.loginProvisionedDevice', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const loginLoginRpcChannelMap = (configKeys: Array, request: LoginLoginRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.login.login', request) -export const loginLoginRpcPromise = (request: LoginLoginRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.login', request, (error, result) => error ? reject(error) : resolve(result))) +export const loginLoginRpcPromise = (request: LoginLoginRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.login', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const loginLoginWithPaperKeyRpcChannelMap = (configKeys: Array, request: LoginLoginWithPaperKeyRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.login.loginWithPaperKey', request) -export const loginLoginWithPaperKeyRpcPromise = (request: LoginLoginWithPaperKeyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.loginWithPaperKey', request, (error, result) => error ? reject(error) : resolve(result))) +export const loginLoginWithPaperKeyRpcPromise = (request: LoginLoginWithPaperKeyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.loginWithPaperKey', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const loginLogoutRpcChannelMap = (configKeys: Array, request: LoginLogoutRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.login.logout', request) -export const loginLogoutRpcPromise = (request: LoginLogoutRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.logout', request, (error, result) => error ? reject(error) : resolve(result))) +export const loginLogoutRpcPromise = (request: LoginLogoutRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.logout', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const loginPaperKeyRpcChannelMap = (configKeys: Array, request: LoginPaperKeyRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.login.paperKey', request) -export const loginPaperKeyRpcPromise = (request: LoginPaperKeyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.paperKey', request, (error, result) => error ? reject(error) : resolve(result))) +export const loginPaperKeyRpcPromise = (request: LoginPaperKeyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.paperKey', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const loginPaperKeySubmitRpcChannelMap = (configKeys: Array, request: LoginPaperKeySubmitRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.login.paperKeySubmit', request) -export const loginPaperKeySubmitRpcPromise = (request: LoginPaperKeySubmitRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.paperKeySubmit', request, (error, result) => error ? reject(error) : resolve(result))) +export const loginPaperKeySubmitRpcPromise = (request: LoginPaperKeySubmitRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.paperKeySubmit', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const loginPgpProvisionRpcChannelMap = (configKeys: Array, request: LoginPgpProvisionRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.login.pgpProvision', request) -export const loginPgpProvisionRpcPromise = (request: LoginPgpProvisionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.pgpProvision', request, (error, result) => error ? reject(error) : resolve(result))) +export const loginPgpProvisionRpcPromise = (request: LoginPgpProvisionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.pgpProvision', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const loginRecoverAccountFromEmailAddressRpcChannelMap = (configKeys: Array, request: LoginRecoverAccountFromEmailAddressRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.login.recoverAccountFromEmailAddress', request) -export const loginRecoverAccountFromEmailAddressRpcPromise = (request: LoginRecoverAccountFromEmailAddressRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.recoverAccountFromEmailAddress', request, (error, result) => error ? reject(error) : resolve(result))) +export const loginRecoverAccountFromEmailAddressRpcPromise = (request: LoginRecoverAccountFromEmailAddressRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.recoverAccountFromEmailAddress', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const loginUnlockRpcChannelMap = (configKeys: Array, request: LoginUnlockRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.login.unlock', request) -export const loginUnlockRpcPromise = (request: LoginUnlockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.unlock', request, (error, result) => error ? reject(error) : resolve(result))) +export const loginUnlockRpcPromise = (request: LoginUnlockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.unlock', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const loginUnlockWithPassphraseRpcChannelMap = (configKeys: Array, request: LoginUnlockWithPassphraseRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.login.unlockWithPassphrase', request) -export const loginUnlockWithPassphraseRpcPromise = (request: LoginUnlockWithPassphraseRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.unlockWithPassphrase', request, (error, result) => error ? reject(error) : resolve(result))) +export const loginUnlockWithPassphraseRpcPromise = (request: LoginUnlockWithPassphraseRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.login.unlockWithPassphrase', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const merkleGetCurrentMerkleRootRpcChannelMap = (configKeys: Array, request: MerkleGetCurrentMerkleRootRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.merkle.getCurrentMerkleRoot', request) -export const merkleGetCurrentMerkleRootRpcPromise = (request: MerkleGetCurrentMerkleRootRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.merkle.getCurrentMerkleRoot', request, (error, result) => error ? reject(error) : resolve(result))) +export const merkleGetCurrentMerkleRootRpcPromise = (request: MerkleGetCurrentMerkleRootRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.merkle.getCurrentMerkleRoot', request, (error: RPCError, result: MerkleGetCurrentMerkleRootResult) => error ? reject(error) : resolve(result))) export const metadataAuthenticateRpcChannelMap = (configKeys: Array, request: MetadataAuthenticateRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.authenticate', request) -export const metadataAuthenticateRpcPromise = (request: MetadataAuthenticateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.authenticate', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataAuthenticateRpcPromise = (request: MetadataAuthenticateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.authenticate', request, (error: RPCError, result: MetadataAuthenticateResult) => error ? reject(error) : resolve(result))) export const metadataDeleteKeyRpcChannelMap = (configKeys: Array, request: MetadataDeleteKeyRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.deleteKey', request) -export const metadataDeleteKeyRpcPromise = (request: MetadataDeleteKeyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.deleteKey', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataDeleteKeyRpcPromise = (request: MetadataDeleteKeyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.deleteKey', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const metadataGetChallengeRpcChannelMap = (configKeys: Array, request: MetadataGetChallengeRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.getChallenge', request) -export const metadataGetChallengeRpcPromise = (request: MetadataGetChallengeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getChallenge', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataGetChallengeRpcPromise = (request: MetadataGetChallengeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getChallenge', request, (error: RPCError, result: MetadataGetChallengeResult) => error ? reject(error) : resolve(result))) export const metadataGetFolderHandleRpcChannelMap = (configKeys: Array, request: MetadataGetFolderHandleRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.getFolderHandle', request) -export const metadataGetFolderHandleRpcPromise = (request: MetadataGetFolderHandleRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getFolderHandle', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataGetFolderHandleRpcPromise = (request: MetadataGetFolderHandleRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getFolderHandle', request, (error: RPCError, result: MetadataGetFolderHandleResult) => error ? reject(error) : resolve(result))) export const metadataGetFoldersForRekeyRpcChannelMap = (configKeys: Array, request: MetadataGetFoldersForRekeyRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.getFoldersForRekey', request) -export const metadataGetFoldersForRekeyRpcPromise = (request: MetadataGetFoldersForRekeyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getFoldersForRekey', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataGetFoldersForRekeyRpcPromise = (request: MetadataGetFoldersForRekeyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getFoldersForRekey', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const metadataGetKeyBundlesRpcChannelMap = (configKeys: Array, request: MetadataGetKeyBundlesRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.getKeyBundles', request) -export const metadataGetKeyBundlesRpcPromise = (request: MetadataGetKeyBundlesRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getKeyBundles', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataGetKeyBundlesRpcPromise = (request: MetadataGetKeyBundlesRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getKeyBundles', request, (error: RPCError, result: MetadataGetKeyBundlesResult) => error ? reject(error) : resolve(result))) export const metadataGetKeyRpcChannelMap = (configKeys: Array, request: MetadataGetKeyRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.getKey', request) -export const metadataGetKeyRpcPromise = (request: MetadataGetKeyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getKey', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataGetKeyRpcPromise = (request: MetadataGetKeyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getKey', request, (error: RPCError, result: MetadataGetKeyResult) => error ? reject(error) : resolve(result))) export const metadataGetLatestFolderHandleRpcChannelMap = (configKeys: Array, request: MetadataGetLatestFolderHandleRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.getLatestFolderHandle', request) -export const metadataGetLatestFolderHandleRpcPromise = (request: MetadataGetLatestFolderHandleRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getLatestFolderHandle', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataGetLatestFolderHandleRpcPromise = (request: MetadataGetLatestFolderHandleRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getLatestFolderHandle', request, (error: RPCError, result: MetadataGetLatestFolderHandleResult) => error ? reject(error) : resolve(result))) export const metadataGetMerkleNodeRpcChannelMap = (configKeys: Array, request: MetadataGetMerkleNodeRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.getMerkleNode', request) -export const metadataGetMerkleNodeRpcPromise = (request: MetadataGetMerkleNodeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getMerkleNode', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataGetMerkleNodeRpcPromise = (request: MetadataGetMerkleNodeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getMerkleNode', request, (error: RPCError, result: MetadataGetMerkleNodeResult) => error ? reject(error) : resolve(result))) export const metadataGetMerkleRootLatestRpcChannelMap = (configKeys: Array, request: MetadataGetMerkleRootLatestRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.getMerkleRootLatest', request) -export const metadataGetMerkleRootLatestRpcPromise = (request: MetadataGetMerkleRootLatestRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getMerkleRootLatest', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataGetMerkleRootLatestRpcPromise = (request: MetadataGetMerkleRootLatestRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getMerkleRootLatest', request, (error: RPCError, result: MetadataGetMerkleRootLatestResult) => error ? reject(error) : resolve(result))) export const metadataGetMerkleRootRpcChannelMap = (configKeys: Array, request: MetadataGetMerkleRootRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.getMerkleRoot', request) -export const metadataGetMerkleRootRpcPromise = (request: MetadataGetMerkleRootRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getMerkleRoot', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataGetMerkleRootRpcPromise = (request: MetadataGetMerkleRootRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getMerkleRoot', request, (error: RPCError, result: MetadataGetMerkleRootResult) => error ? reject(error) : resolve(result))) export const metadataGetMerkleRootSinceRpcChannelMap = (configKeys: Array, request: MetadataGetMerkleRootSinceRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.getMerkleRootSince', request) -export const metadataGetMerkleRootSinceRpcPromise = (request: MetadataGetMerkleRootSinceRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getMerkleRootSince', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataGetMerkleRootSinceRpcPromise = (request: MetadataGetMerkleRootSinceRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getMerkleRootSince', request, (error: RPCError, result: MetadataGetMerkleRootSinceResult) => error ? reject(error) : resolve(result))) export const metadataGetMetadataRpcChannelMap = (configKeys: Array, request: MetadataGetMetadataRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.getMetadata', request) -export const metadataGetMetadataRpcPromise = (request: MetadataGetMetadataRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getMetadata', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataGetMetadataRpcPromise = (request: MetadataGetMetadataRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.getMetadata', request, (error: RPCError, result: MetadataGetMetadataResult) => error ? reject(error) : resolve(result))) export const metadataLockRpcChannelMap = (configKeys: Array, request: MetadataLockRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.lock', request) -export const metadataLockRpcPromise = (request: MetadataLockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.lock', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataLockRpcPromise = (request: MetadataLockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.lock', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const metadataPing2RpcChannelMap = (configKeys: Array, request: MetadataPing2RpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.ping2', request) -export const metadataPing2RpcPromise = (request: MetadataPing2RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.ping2', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataPing2RpcPromise = (request: MetadataPing2RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.ping2', request, (error: RPCError, result: MetadataPing2Result) => error ? reject(error) : resolve(result))) export const metadataPingRpcChannelMap = (configKeys: Array, request: MetadataPingRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.ping', request) -export const metadataPingRpcPromise = (request: MetadataPingRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.ping', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataPingRpcPromise = (request: MetadataPingRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.ping', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const metadataPruneBranchRpcChannelMap = (configKeys: Array, request: MetadataPruneBranchRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.pruneBranch', request) -export const metadataPruneBranchRpcPromise = (request: MetadataPruneBranchRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.pruneBranch', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataPruneBranchRpcPromise = (request: MetadataPruneBranchRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.pruneBranch', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const metadataPutKeysRpcChannelMap = (configKeys: Array, request: MetadataPutKeysRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.putKeys', request) -export const metadataPutKeysRpcPromise = (request: MetadataPutKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.putKeys', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataPutKeysRpcPromise = (request: MetadataPutKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.putKeys', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const metadataPutMetadataRpcChannelMap = (configKeys: Array, request: MetadataPutMetadataRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.putMetadata', request) -export const metadataPutMetadataRpcPromise = (request: MetadataPutMetadataRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.putMetadata', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataPutMetadataRpcPromise = (request: MetadataPutMetadataRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.putMetadata', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const metadataRegisterForUpdatesRpcChannelMap = (configKeys: Array, request: MetadataRegisterForUpdatesRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.registerForUpdates', request) -export const metadataRegisterForUpdatesRpcPromise = (request: MetadataRegisterForUpdatesRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.registerForUpdates', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataRegisterForUpdatesRpcPromise = (request: MetadataRegisterForUpdatesRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.registerForUpdates', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const metadataReleaseLockRpcChannelMap = (configKeys: Array, request: MetadataReleaseLockRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.releaseLock', request) -export const metadataReleaseLockRpcPromise = (request: MetadataReleaseLockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.releaseLock', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataReleaseLockRpcPromise = (request: MetadataReleaseLockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.releaseLock', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const metadataTruncateLockRpcChannelMap = (configKeys: Array, request: MetadataTruncateLockRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.truncateLock', request) -export const metadataTruncateLockRpcPromise = (request: MetadataTruncateLockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.truncateLock', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataTruncateLockRpcPromise = (request: MetadataTruncateLockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.truncateLock', request, (error: RPCError, result: MetadataTruncateLockResult) => error ? reject(error) : resolve(result))) export const metadataTruncateUnlockRpcChannelMap = (configKeys: Array, request: MetadataTruncateUnlockRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadata.truncateUnlock', request) -export const metadataTruncateUnlockRpcPromise = (request: MetadataTruncateUnlockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.truncateUnlock', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataTruncateUnlockRpcPromise = (request: MetadataTruncateUnlockRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadata.truncateUnlock', request, (error: RPCError, result: MetadataTruncateUnlockResult) => error ? reject(error) : resolve(result))) export const metadataUpdateFolderNeedsRekeyRpcChannelMap = (configKeys: Array, request: MetadataUpdateFolderNeedsRekeyRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadataUpdate.folderNeedsRekey', request) -export const metadataUpdateFolderNeedsRekeyRpcPromise = (request: MetadataUpdateFolderNeedsRekeyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadataUpdate.folderNeedsRekey', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataUpdateFolderNeedsRekeyRpcPromise = (request: MetadataUpdateFolderNeedsRekeyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadataUpdate.folderNeedsRekey', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const metadataUpdateFoldersNeedRekeyRpcChannelMap = (configKeys: Array, request: MetadataUpdateFoldersNeedRekeyRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadataUpdate.foldersNeedRekey', request) -export const metadataUpdateFoldersNeedRekeyRpcPromise = (request: MetadataUpdateFoldersNeedRekeyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadataUpdate.foldersNeedRekey', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataUpdateFoldersNeedRekeyRpcPromise = (request: MetadataUpdateFoldersNeedRekeyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadataUpdate.foldersNeedRekey', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const metadataUpdateMetadataUpdateRpcChannelMap = (configKeys: Array, request: MetadataUpdateMetadataUpdateRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.metadataUpdate.metadataUpdate', request) -export const metadataUpdateMetadataUpdateRpcPromise = (request: MetadataUpdateMetadataUpdateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadataUpdate.metadataUpdate', request, (error, result) => error ? reject(error) : resolve(result))) +export const metadataUpdateMetadataUpdateRpcPromise = (request: MetadataUpdateMetadataUpdateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.metadataUpdate.metadataUpdate', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const notifyCtlSetNotificationsRpcChannelMap = (configKeys: Array, request: NotifyCtlSetNotificationsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.notifyCtl.setNotifications', request) -export const notifyCtlSetNotificationsRpcPromise = (request: NotifyCtlSetNotificationsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.notifyCtl.setNotifications', request, (error, result) => error ? reject(error) : resolve(result))) +export const notifyCtlSetNotificationsRpcPromise = (request: NotifyCtlSetNotificationsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.notifyCtl.setNotifications', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const paperprovisionPaperProvisionRpcChannelMap = (configKeys: Array, request: PaperprovisionPaperProvisionRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.paperprovision.paperProvision', request) -export const paperprovisionPaperProvisionRpcPromise = (request: PaperprovisionPaperProvisionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.paperprovision.paperProvision', request, (error, result) => error ? reject(error) : resolve(result))) +export const paperprovisionPaperProvisionRpcPromise = (request: PaperprovisionPaperProvisionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.paperprovision.paperProvision', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const passphraseCommonPassphraseType = { none: 0, @@ -1108,67 +1108,67 @@ export const passphraseCommonPassphraseType = { export const pgpPgpDecryptRpcChannelMap = (configKeys: Array, request: PgpPgpDecryptRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.pgp.pgpDecrypt', request) -export const pgpPgpDecryptRpcPromise = (request: PgpPgpDecryptRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpDecrypt', request, (error, result) => error ? reject(error) : resolve(result))) +export const pgpPgpDecryptRpcPromise = (request: PgpPgpDecryptRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpDecrypt', request, (error: RPCError, result: PgpPgpDecryptResult) => error ? reject(error) : resolve(result))) export const pgpPgpDeletePrimaryRpcChannelMap = (configKeys: Array, request: PgpPgpDeletePrimaryRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.pgp.pgpDeletePrimary', request) -export const pgpPgpDeletePrimaryRpcPromise = (request: PgpPgpDeletePrimaryRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpDeletePrimary', request, (error, result) => error ? reject(error) : resolve(result))) +export const pgpPgpDeletePrimaryRpcPromise = (request: PgpPgpDeletePrimaryRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpDeletePrimary', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const pgpPgpEncryptRpcChannelMap = (configKeys: Array, request: PgpPgpEncryptRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.pgp.pgpEncrypt', request) -export const pgpPgpEncryptRpcPromise = (request: PgpPgpEncryptRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpEncrypt', request, (error, result) => error ? reject(error) : resolve(result))) +export const pgpPgpEncryptRpcPromise = (request: PgpPgpEncryptRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpEncrypt', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const pgpPgpExportByFingerprintRpcChannelMap = (configKeys: Array, request: PgpPgpExportByFingerprintRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.pgp.pgpExportByFingerprint', request) -export const pgpPgpExportByFingerprintRpcPromise = (request: PgpPgpExportByFingerprintRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpExportByFingerprint', request, (error, result) => error ? reject(error) : resolve(result))) +export const pgpPgpExportByFingerprintRpcPromise = (request: PgpPgpExportByFingerprintRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpExportByFingerprint', request, (error: RPCError, result: PgpPgpExportByFingerprintResult) => error ? reject(error) : resolve(result))) export const pgpPgpExportByKIDRpcChannelMap = (configKeys: Array, request: PgpPgpExportByKIDRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.pgp.pgpExportByKID', request) -export const pgpPgpExportByKIDRpcPromise = (request: PgpPgpExportByKIDRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpExportByKID', request, (error, result) => error ? reject(error) : resolve(result))) +export const pgpPgpExportByKIDRpcPromise = (request: PgpPgpExportByKIDRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpExportByKID', request, (error: RPCError, result: PgpPgpExportByKIDResult) => error ? reject(error) : resolve(result))) export const pgpPgpExportRpcChannelMap = (configKeys: Array, request: PgpPgpExportRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.pgp.pgpExport', request) -export const pgpPgpExportRpcPromise = (request: PgpPgpExportRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpExport', request, (error, result) => error ? reject(error) : resolve(result))) +export const pgpPgpExportRpcPromise = (request: PgpPgpExportRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpExport', request, (error: RPCError, result: PgpPgpExportResult) => error ? reject(error) : resolve(result))) export const pgpPgpImportRpcChannelMap = (configKeys: Array, request: PgpPgpImportRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.pgp.pgpImport', request) -export const pgpPgpImportRpcPromise = (request: PgpPgpImportRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpImport', request, (error, result) => error ? reject(error) : resolve(result))) +export const pgpPgpImportRpcPromise = (request: PgpPgpImportRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpImport', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const pgpPgpKeyGenDefaultRpcChannelMap = (configKeys: Array, request: PgpPgpKeyGenDefaultRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.pgp.pgpKeyGenDefault', request) -export const pgpPgpKeyGenDefaultRpcPromise = (request: PgpPgpKeyGenDefaultRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpKeyGenDefault', request, (error, result) => error ? reject(error) : resolve(result))) +export const pgpPgpKeyGenDefaultRpcPromise = (request: PgpPgpKeyGenDefaultRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpKeyGenDefault', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const pgpPgpKeyGenRpcChannelMap = (configKeys: Array, request: PgpPgpKeyGenRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.pgp.pgpKeyGen', request) -export const pgpPgpKeyGenRpcPromise = (request: PgpPgpKeyGenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpKeyGen', request, (error, result) => error ? reject(error) : resolve(result))) +export const pgpPgpKeyGenRpcPromise = (request: PgpPgpKeyGenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpKeyGen', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const pgpPgpPullRpcChannelMap = (configKeys: Array, request: PgpPgpPullRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.pgp.pgpPull', request) -export const pgpPgpPullRpcPromise = (request: PgpPgpPullRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpPull', request, (error, result) => error ? reject(error) : resolve(result))) +export const pgpPgpPullRpcPromise = (request: PgpPgpPullRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpPull', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const pgpPgpPurgeRpcChannelMap = (configKeys: Array, request: PgpPgpPurgeRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.pgp.pgpPurge', request) -export const pgpPgpPurgeRpcPromise = (request: PgpPgpPurgeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpPurge', request, (error, result) => error ? reject(error) : resolve(result))) +export const pgpPgpPurgeRpcPromise = (request: PgpPgpPurgeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpPurge', request, (error: RPCError, result: PgpPgpPurgeResult) => error ? reject(error) : resolve(result))) export const pgpPgpSelectRpcChannelMap = (configKeys: Array, request: PgpPgpSelectRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.pgp.pgpSelect', request) -export const pgpPgpSelectRpcPromise = (request: PgpPgpSelectRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpSelect', request, (error, result) => error ? reject(error) : resolve(result))) +export const pgpPgpSelectRpcPromise = (request: PgpPgpSelectRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpSelect', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const pgpPgpSignRpcChannelMap = (configKeys: Array, request: PgpPgpSignRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.pgp.pgpSign', request) -export const pgpPgpSignRpcPromise = (request: PgpPgpSignRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpSign', request, (error, result) => error ? reject(error) : resolve(result))) +export const pgpPgpSignRpcPromise = (request: PgpPgpSignRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpSign', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const pgpPgpStorageDismissRpcChannelMap = (configKeys: Array, request: PgpPgpStorageDismissRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.pgp.pgpStorageDismiss', request) -export const pgpPgpStorageDismissRpcPromise = (request: PgpPgpStorageDismissRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpStorageDismiss', request, (error, result) => error ? reject(error) : resolve(result))) +export const pgpPgpStorageDismissRpcPromise = (request: PgpPgpStorageDismissRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpStorageDismiss', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const pgpPgpUpdateRpcChannelMap = (configKeys: Array, request: PgpPgpUpdateRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.pgp.pgpUpdate', request) -export const pgpPgpUpdateRpcPromise = (request: PgpPgpUpdateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpUpdate', request, (error, result) => error ? reject(error) : resolve(result))) +export const pgpPgpUpdateRpcPromise = (request: PgpPgpUpdateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpUpdate', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const pgpPgpVerifyRpcChannelMap = (configKeys: Array, request: PgpPgpVerifyRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.pgp.pgpVerify', request) -export const pgpPgpVerifyRpcPromise = (request: PgpPgpVerifyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpVerify', request, (error, result) => error ? reject(error) : resolve(result))) +export const pgpPgpVerifyRpcPromise = (request: PgpPgpVerifyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.pgp.pgpVerify', request, (error: RPCError, result: PgpPgpVerifyResult) => error ? reject(error) : resolve(result))) export const pgpSignMode = { attached: 0, @@ -1184,7 +1184,7 @@ export const processFileType = { export const proveCheckProofRpcChannelMap = (configKeys: Array, request: ProveCheckProofRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.prove.checkProof', request) -export const proveCheckProofRpcPromise = (request: ProveCheckProofRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.prove.checkProof', request, (error, result) => error ? reject(error) : resolve(result))) +export const proveCheckProofRpcPromise = (request: ProveCheckProofRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.prove.checkProof', request, (error: RPCError, result: ProveCheckProofResult) => error ? reject(error) : resolve(result))) export const proveCommonProofState = { none: 0, @@ -1261,7 +1261,7 @@ export const proveCommonProofType = { export const proveStartProofRpcChannelMap = (configKeys: Array, request: ProveStartProofRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.prove.startProof', request) -export const proveStartProofRpcPromise = (request: ProveStartProofRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.prove.startProof', request, (error, result) => error ? reject(error) : resolve(result))) +export const proveStartProofRpcPromise = (request: ProveStartProofRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.prove.startProof', request, (error: RPCError, result: ProveStartProofResult) => error ? reject(error) : resolve(result))) export const proveUiPromptOverwriteType = { social: 0, @@ -1289,15 +1289,15 @@ export const provisionUiProvisionMethod = { export const quotaVerifySessionRpcChannelMap = (configKeys: Array, request: QuotaVerifySessionRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.quota.verifySession', request) -export const quotaVerifySessionRpcPromise = (request: QuotaVerifySessionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.quota.verifySession', request, (error, result) => error ? reject(error) : resolve(result))) +export const quotaVerifySessionRpcPromise = (request: QuotaVerifySessionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.quota.verifySession', request, (error: RPCError, result: QuotaVerifySessionResult) => error ? reject(error) : resolve(result))) export const reachabilityCheckReachabilityRpcChannelMap = (configKeys: Array, request: ReachabilityCheckReachabilityRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.reachability.checkReachability', request) -export const reachabilityCheckReachabilityRpcPromise = (request: ReachabilityCheckReachabilityRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.reachability.checkReachability', request, (error, result) => error ? reject(error) : resolve(result))) +export const reachabilityCheckReachabilityRpcPromise = (request: ReachabilityCheckReachabilityRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.reachability.checkReachability', request, (error: RPCError, result: ReachabilityCheckReachabilityResult) => error ? reject(error) : resolve(result))) export const reachabilityReachabilityChangedRpcChannelMap = (configKeys: Array, request: ReachabilityReachabilityChangedRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.reachability.reachabilityChanged', request) -export const reachabilityReachabilityChangedRpcPromise = (request: ReachabilityReachabilityChangedRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.reachability.reachabilityChanged', request, (error, result) => error ? reject(error) : resolve(result))) +export const reachabilityReachabilityChangedRpcPromise = (request: ReachabilityReachabilityChangedRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.reachability.reachabilityChanged', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const reachabilityReachable = { unknown: 0, @@ -1307,19 +1307,19 @@ export const reachabilityReachable = { export const reachabilityStartReachabilityRpcChannelMap = (configKeys: Array, request: ReachabilityStartReachabilityRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.reachability.startReachability', request) -export const reachabilityStartReachabilityRpcPromise = (request: ReachabilityStartReachabilityRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.reachability.startReachability', request, (error, result) => error ? reject(error) : resolve(result))) +export const reachabilityStartReachabilityRpcPromise = (request: ReachabilityStartReachabilityRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.reachability.startReachability', request, (error: RPCError, result: ReachabilityStartReachabilityResult) => error ? reject(error) : resolve(result))) export const rekeyDebugShowRekeyStatusRpcChannelMap = (configKeys: Array, request: RekeyDebugShowRekeyStatusRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.rekey.debugShowRekeyStatus', request) -export const rekeyDebugShowRekeyStatusRpcPromise = (request: RekeyDebugShowRekeyStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.rekey.debugShowRekeyStatus', request, (error, result) => error ? reject(error) : resolve(result))) +export const rekeyDebugShowRekeyStatusRpcPromise = (request: RekeyDebugShowRekeyStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.rekey.debugShowRekeyStatus', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const rekeyGetPendingRekeyStatusRpcChannelMap = (configKeys: Array, request: RekeyGetPendingRekeyStatusRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.rekey.getPendingRekeyStatus', request) -export const rekeyGetPendingRekeyStatusRpcPromise = (request: RekeyGetPendingRekeyStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.rekey.getPendingRekeyStatus', request, (error, result) => error ? reject(error) : resolve(result))) +export const rekeyGetPendingRekeyStatusRpcPromise = (request: RekeyGetPendingRekeyStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.rekey.getPendingRekeyStatus', request, (error: RPCError, result: RekeyGetPendingRekeyStatusResult) => error ? reject(error) : resolve(result))) export const rekeyGetRevokeWarningRpcChannelMap = (configKeys: Array, request: RekeyGetRevokeWarningRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.rekey.getRevokeWarning', request) -export const rekeyGetRevokeWarningRpcPromise = (request: RekeyGetRevokeWarningRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.rekey.getRevokeWarning', request, (error, result) => error ? reject(error) : resolve(result))) +export const rekeyGetRevokeWarningRpcPromise = (request: RekeyGetRevokeWarningRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.rekey.getRevokeWarning', request, (error: RPCError, result: RekeyGetRevokeWarningResult) => error ? reject(error) : resolve(result))) export const rekeyOutcome = { none: 0, @@ -1329,15 +1329,15 @@ export const rekeyOutcome = { export const rekeyRekeyStatusFinishRpcChannelMap = (configKeys: Array, request: RekeyRekeyStatusFinishRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.rekey.rekeyStatusFinish', request) -export const rekeyRekeyStatusFinishRpcPromise = (request: RekeyRekeyStatusFinishRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.rekey.rekeyStatusFinish', request, (error, result) => error ? reject(error) : resolve(result))) +export const rekeyRekeyStatusFinishRpcPromise = (request: RekeyRekeyStatusFinishRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.rekey.rekeyStatusFinish', request, (error: RPCError, result: RekeyRekeyStatusFinishResult) => error ? reject(error) : resolve(result))) export const rekeyRekeySyncRpcChannelMap = (configKeys: Array, request: RekeyRekeySyncRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.rekey.rekeySync', request) -export const rekeyRekeySyncRpcPromise = (request: RekeyRekeySyncRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.rekey.rekeySync', request, (error, result) => error ? reject(error) : resolve(result))) +export const rekeyRekeySyncRpcPromise = (request: RekeyRekeySyncRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.rekey.rekeySync', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const rekeyShowPendingRekeyStatusRpcChannelMap = (configKeys: Array, request: RekeyShowPendingRekeyStatusRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.rekey.showPendingRekeyStatus', request) -export const rekeyShowPendingRekeyStatusRpcPromise = (request: RekeyShowPendingRekeyStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.rekey.showPendingRekeyStatus', request, (error, result) => error ? reject(error) : resolve(result))) +export const rekeyShowPendingRekeyStatusRpcPromise = (request: RekeyShowPendingRekeyStatusRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.rekey.showPendingRekeyStatus', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const rekeyUIRekeyEventType = { none: 0, @@ -1353,31 +1353,31 @@ export const rekeyUIRekeyEventType = { export const revokeRevokeDeviceRpcChannelMap = (configKeys: Array, request: RevokeRevokeDeviceRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.revoke.revokeDevice', request) -export const revokeRevokeDeviceRpcPromise = (request: RevokeRevokeDeviceRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.revoke.revokeDevice', request, (error, result) => error ? reject(error) : resolve(result))) +export const revokeRevokeDeviceRpcPromise = (request: RevokeRevokeDeviceRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.revoke.revokeDevice', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const revokeRevokeKeyRpcChannelMap = (configKeys: Array, request: RevokeRevokeKeyRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.revoke.revokeKey', request) -export const revokeRevokeKeyRpcPromise = (request: RevokeRevokeKeyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.revoke.revokeKey', request, (error, result) => error ? reject(error) : resolve(result))) +export const revokeRevokeKeyRpcPromise = (request: RevokeRevokeKeyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.revoke.revokeKey', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const revokeRevokeSigsRpcChannelMap = (configKeys: Array, request: RevokeRevokeSigsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.revoke.revokeSigs', request) -export const revokeRevokeSigsRpcPromise = (request: RevokeRevokeSigsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.revoke.revokeSigs', request, (error, result) => error ? reject(error) : resolve(result))) +export const revokeRevokeSigsRpcPromise = (request: RevokeRevokeSigsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.revoke.revokeSigs', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const saltpackSaltpackDecryptRpcChannelMap = (configKeys: Array, request: SaltpackSaltpackDecryptRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.saltpack.saltpackDecrypt', request) -export const saltpackSaltpackDecryptRpcPromise = (request: SaltpackSaltpackDecryptRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.saltpack.saltpackDecrypt', request, (error, result) => error ? reject(error) : resolve(result))) +export const saltpackSaltpackDecryptRpcPromise = (request: SaltpackSaltpackDecryptRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.saltpack.saltpackDecrypt', request, (error: RPCError, result: SaltpackSaltpackDecryptResult) => error ? reject(error) : resolve(result))) export const saltpackSaltpackEncryptRpcChannelMap = (configKeys: Array, request: SaltpackSaltpackEncryptRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.saltpack.saltpackEncrypt', request) -export const saltpackSaltpackEncryptRpcPromise = (request: SaltpackSaltpackEncryptRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.saltpack.saltpackEncrypt', request, (error, result) => error ? reject(error) : resolve(result))) +export const saltpackSaltpackEncryptRpcPromise = (request: SaltpackSaltpackEncryptRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.saltpack.saltpackEncrypt', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const saltpackSaltpackSignRpcChannelMap = (configKeys: Array, request: SaltpackSaltpackSignRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.saltpack.saltpackSign', request) -export const saltpackSaltpackSignRpcPromise = (request: SaltpackSaltpackSignRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.saltpack.saltpackSign', request, (error, result) => error ? reject(error) : resolve(result))) +export const saltpackSaltpackSignRpcPromise = (request: SaltpackSaltpackSignRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.saltpack.saltpackSign', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const saltpackSaltpackVerifyRpcChannelMap = (configKeys: Array, request: SaltpackSaltpackVerifyRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.saltpack.saltpackVerify', request) -export const saltpackSaltpackVerifyRpcPromise = (request: SaltpackSaltpackVerifyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.saltpack.saltpackVerify', request, (error, result) => error ? reject(error) : resolve(result))) +export const saltpackSaltpackVerifyRpcPromise = (request: SaltpackSaltpackVerifyRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.saltpack.saltpackVerify', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const saltpackUiSaltpackSenderType = { notTracked: 0, @@ -1392,39 +1392,39 @@ export const saltpackUiSaltpackSenderType = { export const sessionCurrentSessionRpcChannelMap = (configKeys: Array, request: SessionCurrentSessionRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.session.currentSession', request) -export const sessionCurrentSessionRpcPromise = (request: SessionCurrentSessionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.session.currentSession', request, (error, result) => error ? reject(error) : resolve(result))) +export const sessionCurrentSessionRpcPromise = (request: SessionCurrentSessionRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.session.currentSession', request, (error: RPCError, result: SessionCurrentSessionResult) => error ? reject(error) : resolve(result))) export const sessionSessionPingRpcChannelMap = (configKeys: Array, request: SessionSessionPingRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.session.sessionPing', request) -export const sessionSessionPingRpcPromise = (request: SessionSessionPingRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.session.sessionPing', request, (error, result) => error ? reject(error) : resolve(result))) +export const sessionSessionPingRpcPromise = (request: SessionSessionPingRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.session.sessionPing', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const signupCheckInvitationCodeRpcChannelMap = (configKeys: Array, request: SignupCheckInvitationCodeRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.signup.checkInvitationCode', request) -export const signupCheckInvitationCodeRpcPromise = (request: SignupCheckInvitationCodeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.signup.checkInvitationCode', request, (error, result) => error ? reject(error) : resolve(result))) +export const signupCheckInvitationCodeRpcPromise = (request: SignupCheckInvitationCodeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.signup.checkInvitationCode', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const signupCheckUsernameAvailableRpcChannelMap = (configKeys: Array, request: SignupCheckUsernameAvailableRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.signup.checkUsernameAvailable', request) -export const signupCheckUsernameAvailableRpcPromise = (request: SignupCheckUsernameAvailableRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.signup.checkUsernameAvailable', request, (error, result) => error ? reject(error) : resolve(result))) +export const signupCheckUsernameAvailableRpcPromise = (request: SignupCheckUsernameAvailableRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.signup.checkUsernameAvailable', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const signupGetInvitationCodeRpcChannelMap = (configKeys: Array, request: SignupGetInvitationCodeRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.signup.getInvitationCode', request) -export const signupGetInvitationCodeRpcPromise = (request: SignupGetInvitationCodeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.signup.getInvitationCode', request, (error, result) => error ? reject(error) : resolve(result))) +export const signupGetInvitationCodeRpcPromise = (request: SignupGetInvitationCodeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.signup.getInvitationCode', request, (error: RPCError, result: SignupGetInvitationCodeResult) => error ? reject(error) : resolve(result))) export const signupInviteRequestRpcChannelMap = (configKeys: Array, request: SignupInviteRequestRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.signup.inviteRequest', request) -export const signupInviteRequestRpcPromise = (request: SignupInviteRequestRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.signup.inviteRequest', request, (error, result) => error ? reject(error) : resolve(result))) +export const signupInviteRequestRpcPromise = (request: SignupInviteRequestRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.signup.inviteRequest', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const signupSignupRpcChannelMap = (configKeys: Array, request: SignupSignupRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.signup.signup', request) -export const signupSignupRpcPromise = (request: SignupSignupRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.signup.signup', request, (error, result) => error ? reject(error) : resolve(result))) +export const signupSignupRpcPromise = (request: SignupSignupRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.signup.signup', request, (error: RPCError, result: SignupSignupResult) => error ? reject(error) : resolve(result))) export const sigsSigListJSONRpcChannelMap = (configKeys: Array, request: SigsSigListJSONRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.sigs.sigListJSON', request) -export const sigsSigListJSONRpcPromise = (request: SigsSigListJSONRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.sigs.sigListJSON', request, (error, result) => error ? reject(error) : resolve(result))) +export const sigsSigListJSONRpcPromise = (request: SigsSigListJSONRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.sigs.sigListJSON', request, (error: RPCError, result: SigsSigListJSONResult) => error ? reject(error) : resolve(result))) export const sigsSigListRpcChannelMap = (configKeys: Array, request: SigsSigListRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.sigs.sigList', request) -export const sigsSigListRpcPromise = (request: SigsSigListRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.sigs.sigList', request, (error, result) => error ? reject(error) : resolve(result))) +export const sigsSigListRpcPromise = (request: SigsSigListRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.sigs.sigList', request, (error: RPCError, result: SigsSigListResult) => error ? reject(error) : resolve(result))) export const simpleFSAsyncOps = { list: 0, @@ -1459,27 +1459,27 @@ export const simpleFSPathType = { export const teamsGetTeamAndMemberShowcaseRpcChannelMap = (configKeys: Array, request: TeamsGetTeamAndMemberShowcaseRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.getTeamAndMemberShowcase', request) -export const teamsGetTeamAndMemberShowcaseRpcPromise = (request: TeamsGetTeamAndMemberShowcaseRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.getTeamAndMemberShowcase', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsGetTeamAndMemberShowcaseRpcPromise = (request: TeamsGetTeamAndMemberShowcaseRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.getTeamAndMemberShowcase', request, (error: RPCError, result: TeamsGetTeamAndMemberShowcaseResult) => error ? reject(error) : resolve(result))) export const teamsGetTeamRootIDRpcChannelMap = (configKeys: Array, request: TeamsGetTeamRootIDRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.getTeamRootID', request) -export const teamsGetTeamRootIDRpcPromise = (request: TeamsGetTeamRootIDRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.getTeamRootID', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsGetTeamRootIDRpcPromise = (request: TeamsGetTeamRootIDRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.getTeamRootID', request, (error: RPCError, result: TeamsGetTeamRootIDResult) => error ? reject(error) : resolve(result))) export const teamsGetTeamShowcaseRpcChannelMap = (configKeys: Array, request: TeamsGetTeamShowcaseRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.getTeamShowcase', request) -export const teamsGetTeamShowcaseRpcPromise = (request: TeamsGetTeamShowcaseRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.getTeamShowcase', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsGetTeamShowcaseRpcPromise = (request: TeamsGetTeamShowcaseRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.getTeamShowcase', request, (error: RPCError, result: TeamsGetTeamShowcaseResult) => error ? reject(error) : resolve(result))) export const teamsLoadTeamPlusApplicationKeysRpcChannelMap = (configKeys: Array, request: TeamsLoadTeamPlusApplicationKeysRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.loadTeamPlusApplicationKeys', request) -export const teamsLoadTeamPlusApplicationKeysRpcPromise = (request: TeamsLoadTeamPlusApplicationKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.loadTeamPlusApplicationKeys', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsLoadTeamPlusApplicationKeysRpcPromise = (request: TeamsLoadTeamPlusApplicationKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.loadTeamPlusApplicationKeys', request, (error: RPCError, result: TeamsLoadTeamPlusApplicationKeysResult) => error ? reject(error) : resolve(result))) export const teamsLookupImplicitTeamRpcChannelMap = (configKeys: Array, request: TeamsLookupImplicitTeamRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.lookupImplicitTeam', request) -export const teamsLookupImplicitTeamRpcPromise = (request: TeamsLookupImplicitTeamRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.lookupImplicitTeam', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsLookupImplicitTeamRpcPromise = (request: TeamsLookupImplicitTeamRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.lookupImplicitTeam', request, (error: RPCError, result: TeamsLookupImplicitTeamResult) => error ? reject(error) : resolve(result))) export const teamsLookupOrCreateImplicitTeamRpcChannelMap = (configKeys: Array, request: TeamsLookupOrCreateImplicitTeamRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.lookupOrCreateImplicitTeam', request) -export const teamsLookupOrCreateImplicitTeamRpcPromise = (request: TeamsLookupOrCreateImplicitTeamRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.lookupOrCreateImplicitTeam', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsLookupOrCreateImplicitTeamRpcPromise = (request: TeamsLookupOrCreateImplicitTeamRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.lookupOrCreateImplicitTeam', request, (error: RPCError, result: TeamsLookupOrCreateImplicitTeamResult) => error ? reject(error) : resolve(result))) export const teamsSeitanIKeyAndLabelVersion = { v1: 1, @@ -1491,27 +1491,27 @@ export const teamsSeitanIKeyLabelType = { export const teamsSetTeamMemberShowcaseRpcChannelMap = (configKeys: Array, request: TeamsSetTeamMemberShowcaseRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.setTeamMemberShowcase', request) -export const teamsSetTeamMemberShowcaseRpcPromise = (request: TeamsSetTeamMemberShowcaseRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.setTeamMemberShowcase', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsSetTeamMemberShowcaseRpcPromise = (request: TeamsSetTeamMemberShowcaseRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.setTeamMemberShowcase', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const teamsSetTeamShowcaseRpcChannelMap = (configKeys: Array, request: TeamsSetTeamShowcaseRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.setTeamShowcase', request) -export const teamsSetTeamShowcaseRpcPromise = (request: TeamsSetTeamShowcaseRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.setTeamShowcase', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsSetTeamShowcaseRpcPromise = (request: TeamsSetTeamShowcaseRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.setTeamShowcase', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const teamsTeamAcceptInviteOrRequestAccessRpcChannelMap = (configKeys: Array, request: TeamsTeamAcceptInviteOrRequestAccessRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamAcceptInviteOrRequestAccess', request) -export const teamsTeamAcceptInviteOrRequestAccessRpcPromise = (request: TeamsTeamAcceptInviteOrRequestAccessRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamAcceptInviteOrRequestAccess', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamAcceptInviteOrRequestAccessRpcPromise = (request: TeamsTeamAcceptInviteOrRequestAccessRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamAcceptInviteOrRequestAccess', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const teamsTeamAcceptInviteRpcChannelMap = (configKeys: Array, request: TeamsTeamAcceptInviteRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamAcceptInvite', request) -export const teamsTeamAcceptInviteRpcPromise = (request: TeamsTeamAcceptInviteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamAcceptInvite', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamAcceptInviteRpcPromise = (request: TeamsTeamAcceptInviteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamAcceptInvite', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const teamsTeamAddEmailsBulkRpcChannelMap = (configKeys: Array, request: TeamsTeamAddEmailsBulkRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamAddEmailsBulk', request) -export const teamsTeamAddEmailsBulkRpcPromise = (request: TeamsTeamAddEmailsBulkRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamAddEmailsBulk', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamAddEmailsBulkRpcPromise = (request: TeamsTeamAddEmailsBulkRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamAddEmailsBulk', request, (error: RPCError, result: TeamsTeamAddEmailsBulkResult) => error ? reject(error) : resolve(result))) export const teamsTeamAddMemberRpcChannelMap = (configKeys: Array, request: TeamsTeamAddMemberRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamAddMember', request) -export const teamsTeamAddMemberRpcPromise = (request: TeamsTeamAddMemberRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamAddMember', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamAddMemberRpcPromise = (request: TeamsTeamAddMemberRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamAddMember', request, (error: RPCError, result: TeamsTeamAddMemberResult) => error ? reject(error) : resolve(result))) export const teamsTeamApplication = { kbfs: 1, @@ -1523,39 +1523,39 @@ export const teamsTeamApplication = { export const teamsTeamChangeMembershipRpcChannelMap = (configKeys: Array, request: TeamsTeamChangeMembershipRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamChangeMembership', request) -export const teamsTeamChangeMembershipRpcPromise = (request: TeamsTeamChangeMembershipRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamChangeMembership', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamChangeMembershipRpcPromise = (request: TeamsTeamChangeMembershipRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamChangeMembership', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const teamsTeamCreateRpcChannelMap = (configKeys: Array, request: TeamsTeamCreateRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamCreate', request) -export const teamsTeamCreateRpcPromise = (request: TeamsTeamCreateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamCreate', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamCreateRpcPromise = (request: TeamsTeamCreateRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamCreate', request, (error: RPCError, result: TeamsTeamCreateResult) => error ? reject(error) : resolve(result))) export const teamsTeamCreateSeitanTokenRpcChannelMap = (configKeys: Array, request: TeamsTeamCreateSeitanTokenRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamCreateSeitanToken', request) -export const teamsTeamCreateSeitanTokenRpcPromise = (request: TeamsTeamCreateSeitanTokenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamCreateSeitanToken', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamCreateSeitanTokenRpcPromise = (request: TeamsTeamCreateSeitanTokenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamCreateSeitanToken', request, (error: RPCError, result: TeamsTeamCreateSeitanTokenResult) => error ? reject(error) : resolve(result))) export const teamsTeamCreateWithSettingsRpcChannelMap = (configKeys: Array, request: TeamsTeamCreateWithSettingsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamCreateWithSettings', request) -export const teamsTeamCreateWithSettingsRpcPromise = (request: TeamsTeamCreateWithSettingsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamCreateWithSettings', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamCreateWithSettingsRpcPromise = (request: TeamsTeamCreateWithSettingsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamCreateWithSettings', request, (error: RPCError, result: TeamsTeamCreateWithSettingsResult) => error ? reject(error) : resolve(result))) export const teamsTeamDeleteRpcChannelMap = (configKeys: Array, request: TeamsTeamDeleteRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamDelete', request) -export const teamsTeamDeleteRpcPromise = (request: TeamsTeamDeleteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamDelete', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamDeleteRpcPromise = (request: TeamsTeamDeleteRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamDelete', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const teamsTeamEditMemberRpcChannelMap = (configKeys: Array, request: TeamsTeamEditMemberRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamEditMember', request) -export const teamsTeamEditMemberRpcPromise = (request: TeamsTeamEditMemberRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamEditMember', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamEditMemberRpcPromise = (request: TeamsTeamEditMemberRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamEditMember', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const teamsTeamGetRpcChannelMap = (configKeys: Array, request: TeamsTeamGetRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamGet', request) -export const teamsTeamGetRpcPromise = (request: TeamsTeamGetRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamGet', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamGetRpcPromise = (request: TeamsTeamGetRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamGet', request, (error: RPCError, result: TeamsTeamGetResult) => error ? reject(error) : resolve(result))) export const teamsTeamIgnoreRequestRpcChannelMap = (configKeys: Array, request: TeamsTeamIgnoreRequestRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamIgnoreRequest', request) -export const teamsTeamIgnoreRequestRpcPromise = (request: TeamsTeamIgnoreRequestRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamIgnoreRequest', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamIgnoreRequestRpcPromise = (request: TeamsTeamIgnoreRequestRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamIgnoreRequest', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const teamsTeamImplicitAdminsRpcChannelMap = (configKeys: Array, request: TeamsTeamImplicitAdminsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamImplicitAdmins', request) -export const teamsTeamImplicitAdminsRpcPromise = (request: TeamsTeamImplicitAdminsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamImplicitAdmins', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamImplicitAdminsRpcPromise = (request: TeamsTeamImplicitAdminsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamImplicitAdmins', request, (error: RPCError, result: TeamsTeamImplicitAdminsResult) => error ? reject(error) : resolve(result))) export const teamsTeamInviteCategory = { none: 0, @@ -1568,35 +1568,35 @@ export const teamsTeamInviteCategory = { export const teamsTeamLeaveRpcChannelMap = (configKeys: Array, request: TeamsTeamLeaveRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamLeave', request) -export const teamsTeamLeaveRpcPromise = (request: TeamsTeamLeaveRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamLeave', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamLeaveRpcPromise = (request: TeamsTeamLeaveRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamLeave', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const teamsTeamListRequestsRpcChannelMap = (configKeys: Array, request: TeamsTeamListRequestsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamListRequests', request) -export const teamsTeamListRequestsRpcPromise = (request: TeamsTeamListRequestsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamListRequests', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamListRequestsRpcPromise = (request: TeamsTeamListRequestsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamListRequests', request, (error: RPCError, result: TeamsTeamListRequestsResult) => error ? reject(error) : resolve(result))) export const teamsTeamListRpcChannelMap = (configKeys: Array, request: TeamsTeamListRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamList', request) -export const teamsTeamListRpcPromise = (request: TeamsTeamListRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamList', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamListRpcPromise = (request: TeamsTeamListRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamList', request, (error: RPCError, result: TeamsTeamListResult) => error ? reject(error) : resolve(result))) export const teamsTeamListSubteamsRecursiveRpcChannelMap = (configKeys: Array, request: TeamsTeamListSubteamsRecursiveRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamListSubteamsRecursive', request) -export const teamsTeamListSubteamsRecursiveRpcPromise = (request: TeamsTeamListSubteamsRecursiveRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamListSubteamsRecursive', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamListSubteamsRecursiveRpcPromise = (request: TeamsTeamListSubteamsRecursiveRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamListSubteamsRecursive', request, (error: RPCError, result: TeamsTeamListSubteamsRecursiveResult) => error ? reject(error) : resolve(result))) export const teamsTeamReAddMemberAfterResetRpcChannelMap = (configKeys: Array, request: TeamsTeamReAddMemberAfterResetRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamReAddMemberAfterReset', request) -export const teamsTeamReAddMemberAfterResetRpcPromise = (request: TeamsTeamReAddMemberAfterResetRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamReAddMemberAfterReset', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamReAddMemberAfterResetRpcPromise = (request: TeamsTeamReAddMemberAfterResetRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamReAddMemberAfterReset', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const teamsTeamRemoveMemberRpcChannelMap = (configKeys: Array, request: TeamsTeamRemoveMemberRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamRemoveMember', request) -export const teamsTeamRemoveMemberRpcPromise = (request: TeamsTeamRemoveMemberRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamRemoveMember', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamRemoveMemberRpcPromise = (request: TeamsTeamRemoveMemberRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamRemoveMember', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const teamsTeamRenameRpcChannelMap = (configKeys: Array, request: TeamsTeamRenameRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamRename', request) -export const teamsTeamRenameRpcPromise = (request: TeamsTeamRenameRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamRename', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamRenameRpcPromise = (request: TeamsTeamRenameRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamRename', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const teamsTeamRequestAccessRpcChannelMap = (configKeys: Array, request: TeamsTeamRequestAccessRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamRequestAccess', request) -export const teamsTeamRequestAccessRpcPromise = (request: TeamsTeamRequestAccessRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamRequestAccess', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamRequestAccessRpcPromise = (request: TeamsTeamRequestAccessRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamRequestAccess', request, (error: RPCError, result: TeamsTeamRequestAccessResult) => error ? reject(error) : resolve(result))) export const teamsTeamRole = { none: 0, @@ -1608,39 +1608,39 @@ export const teamsTeamRole = { export const teamsTeamSetSettingsRpcChannelMap = (configKeys: Array, request: TeamsTeamSetSettingsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamSetSettings', request) -export const teamsTeamSetSettingsRpcPromise = (request: TeamsTeamSetSettingsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamSetSettings', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamSetSettingsRpcPromise = (request: TeamsTeamSetSettingsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamSetSettings', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const teamsTeamTreeRpcChannelMap = (configKeys: Array, request: TeamsTeamTreeRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.teams.teamTree', request) -export const teamsTeamTreeRpcPromise = (request: TeamsTeamTreeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamTree', request, (error, result) => error ? reject(error) : resolve(result))) +export const teamsTeamTreeRpcPromise = (request: TeamsTeamTreeRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.teams.teamTree', request, (error: RPCError, result: TeamsTeamTreeResult) => error ? reject(error) : resolve(result))) export const testPanicRpcChannelMap = (configKeys: Array, request: TestPanicRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.test.panic', request) -export const testPanicRpcPromise = (request: TestPanicRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.test.panic', request, (error, result) => error ? reject(error) : resolve(result))) +export const testPanicRpcPromise = (request: TestPanicRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.test.panic', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const testTestCallbackRpcChannelMap = (configKeys: Array, request: TestTestCallbackRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.test.testCallback', request) -export const testTestCallbackRpcPromise = (request: TestTestCallbackRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.test.testCallback', request, (error, result) => error ? reject(error) : resolve(result))) +export const testTestCallbackRpcPromise = (request: TestTestCallbackRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.test.testCallback', request, (error: RPCError, result: TestTestCallbackResult) => error ? reject(error) : resolve(result))) export const testTestRpcChannelMap = (configKeys: Array, request: TestTestRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.test.test', request) -export const testTestRpcPromise = (request: TestTestRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.test.test', request, (error, result) => error ? reject(error) : resolve(result))) +export const testTestRpcPromise = (request: TestTestRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.test.test', request, (error: RPCError, result: TestTestResult) => error ? reject(error) : resolve(result))) export const tlfCompleteAndCanonicalizePrivateTlfNameRpcChannelMap = (configKeys: Array, request: TlfCompleteAndCanonicalizePrivateTlfNameRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.tlf.completeAndCanonicalizePrivateTlfName', request) -export const tlfCompleteAndCanonicalizePrivateTlfNameRpcPromise = (request: TlfCompleteAndCanonicalizePrivateTlfNameRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.tlf.completeAndCanonicalizePrivateTlfName', request, (error, result) => error ? reject(error) : resolve(result))) +export const tlfCompleteAndCanonicalizePrivateTlfNameRpcPromise = (request: TlfCompleteAndCanonicalizePrivateTlfNameRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.tlf.completeAndCanonicalizePrivateTlfName', request, (error: RPCError, result: TlfCompleteAndCanonicalizePrivateTlfNameResult) => error ? reject(error) : resolve(result))) export const tlfCryptKeysRpcChannelMap = (configKeys: Array, request: TlfCryptKeysRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.tlf.CryptKeys', request) -export const tlfCryptKeysRpcPromise = (request: TlfCryptKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.tlf.CryptKeys', request, (error, result) => error ? reject(error) : resolve(result))) +export const tlfCryptKeysRpcPromise = (request: TlfCryptKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.tlf.CryptKeys', request, (error: RPCError, result: TlfCryptKeysResult) => error ? reject(error) : resolve(result))) export const tlfKeysGetPublicCanonicalTLFNameAndIDRpcChannelMap = (configKeys: Array, request: TlfKeysGetPublicCanonicalTLFNameAndIDRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.tlfKeys.getPublicCanonicalTLFNameAndID', request) -export const tlfKeysGetPublicCanonicalTLFNameAndIDRpcPromise = (request: TlfKeysGetPublicCanonicalTLFNameAndIDRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.tlfKeys.getPublicCanonicalTLFNameAndID', request, (error, result) => error ? reject(error) : resolve(result))) +export const tlfKeysGetPublicCanonicalTLFNameAndIDRpcPromise = (request: TlfKeysGetPublicCanonicalTLFNameAndIDRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.tlfKeys.getPublicCanonicalTLFNameAndID', request, (error: RPCError, result: TlfKeysGetPublicCanonicalTLFNameAndIDResult) => error ? reject(error) : resolve(result))) export const tlfKeysGetTLFCryptKeysRpcChannelMap = (configKeys: Array, request: TlfKeysGetTLFCryptKeysRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.tlfKeys.getTLFCryptKeys', request) -export const tlfKeysGetTLFCryptKeysRpcPromise = (request: TlfKeysGetTLFCryptKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.tlfKeys.getTLFCryptKeys', request, (error, result) => error ? reject(error) : resolve(result))) +export const tlfKeysGetTLFCryptKeysRpcPromise = (request: TlfKeysGetTLFCryptKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.tlfKeys.getTLFCryptKeys', request, (error: RPCError, result: TlfKeysGetTLFCryptKeysResult) => error ? reject(error) : resolve(result))) export const tlfKeysTLFIdentifyBehavior = { defaultKbfs: 0, @@ -1654,31 +1654,31 @@ export const tlfKeysTLFIdentifyBehavior = { export const tlfPublicCanonicalTLFNameAndIDRpcChannelMap = (configKeys: Array, request: TlfPublicCanonicalTLFNameAndIDRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.tlf.publicCanonicalTLFNameAndID', request) -export const tlfPublicCanonicalTLFNameAndIDRpcPromise = (request: TlfPublicCanonicalTLFNameAndIDRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.tlf.publicCanonicalTLFNameAndID', request, (error, result) => error ? reject(error) : resolve(result))) +export const tlfPublicCanonicalTLFNameAndIDRpcPromise = (request: TlfPublicCanonicalTLFNameAndIDRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.tlf.publicCanonicalTLFNameAndID', request, (error: RPCError, result: TlfPublicCanonicalTLFNameAndIDResult) => error ? reject(error) : resolve(result))) export const trackCheckTrackingRpcChannelMap = (configKeys: Array, request: TrackCheckTrackingRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.track.checkTracking', request) -export const trackCheckTrackingRpcPromise = (request: TrackCheckTrackingRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.track.checkTracking', request, (error, result) => error ? reject(error) : resolve(result))) +export const trackCheckTrackingRpcPromise = (request: TrackCheckTrackingRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.track.checkTracking', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const trackDismissWithTokenRpcChannelMap = (configKeys: Array, request: TrackDismissWithTokenRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.track.dismissWithToken', request) -export const trackDismissWithTokenRpcPromise = (request: TrackDismissWithTokenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.track.dismissWithToken', request, (error, result) => error ? reject(error) : resolve(result))) +export const trackDismissWithTokenRpcPromise = (request: TrackDismissWithTokenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.track.dismissWithToken', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const trackFakeTrackingChangedRpcChannelMap = (configKeys: Array, request: TrackFakeTrackingChangedRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.track.fakeTrackingChanged', request) -export const trackFakeTrackingChangedRpcPromise = (request: TrackFakeTrackingChangedRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.track.fakeTrackingChanged', request, (error, result) => error ? reject(error) : resolve(result))) +export const trackFakeTrackingChangedRpcPromise = (request: TrackFakeTrackingChangedRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.track.fakeTrackingChanged', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const trackTrackRpcChannelMap = (configKeys: Array, request: TrackTrackRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.track.track', request) -export const trackTrackRpcPromise = (request: TrackTrackRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.track.track', request, (error, result) => error ? reject(error) : resolve(result))) +export const trackTrackRpcPromise = (request: TrackTrackRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.track.track', request, (error: RPCError, result: TrackTrackResult) => error ? reject(error) : resolve(result))) export const trackTrackWithTokenRpcChannelMap = (configKeys: Array, request: TrackTrackWithTokenRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.track.trackWithToken', request) -export const trackTrackWithTokenRpcPromise = (request: TrackTrackWithTokenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.track.trackWithToken', request, (error, result) => error ? reject(error) : resolve(result))) +export const trackTrackWithTokenRpcPromise = (request: TrackTrackWithTokenRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.track.trackWithToken', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const trackUntrackRpcChannelMap = (configKeys: Array, request: TrackUntrackRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.track.untrack', request) -export const trackUntrackRpcPromise = (request: TrackUntrackRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.track.untrack', request, (error, result) => error ? reject(error) : resolve(result))) +export const trackUntrackRpcPromise = (request: TrackUntrackRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.track.untrack', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const uPKKeyType = { none: 0, @@ -1708,79 +1708,79 @@ export const uiPromptDefault = { export const userDeleteUserRpcChannelMap = (configKeys: Array, request: UserDeleteUserRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.deleteUser', request) -export const userDeleteUserRpcPromise = (request: UserDeleteUserRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.deleteUser', request, (error, result) => error ? reject(error) : resolve(result))) +export const userDeleteUserRpcPromise = (request: UserDeleteUserRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.deleteUser', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const userInterestingPeopleRpcChannelMap = (configKeys: Array, request: UserInterestingPeopleRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.interestingPeople', request) -export const userInterestingPeopleRpcPromise = (request: UserInterestingPeopleRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.interestingPeople', request, (error, result) => error ? reject(error) : resolve(result))) +export const userInterestingPeopleRpcPromise = (request: UserInterestingPeopleRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.interestingPeople', request, (error: RPCError, result: UserInterestingPeopleResult) => error ? reject(error) : resolve(result))) export const userListTrackers2RpcChannelMap = (configKeys: Array, request: UserListTrackers2RpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.listTrackers2', request) -export const userListTrackers2RpcPromise = (request: UserListTrackers2RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.listTrackers2', request, (error, result) => error ? reject(error) : resolve(result))) +export const userListTrackers2RpcPromise = (request: UserListTrackers2RpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.listTrackers2', request, (error: RPCError, result: UserListTrackers2Result) => error ? reject(error) : resolve(result))) export const userListTrackersByNameRpcChannelMap = (configKeys: Array, request: UserListTrackersByNameRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.listTrackersByName', request) -export const userListTrackersByNameRpcPromise = (request: UserListTrackersByNameRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.listTrackersByName', request, (error, result) => error ? reject(error) : resolve(result))) +export const userListTrackersByNameRpcPromise = (request: UserListTrackersByNameRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.listTrackersByName', request, (error: RPCError, result: UserListTrackersByNameResult) => error ? reject(error) : resolve(result))) export const userListTrackersRpcChannelMap = (configKeys: Array, request: UserListTrackersRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.listTrackers', request) -export const userListTrackersRpcPromise = (request: UserListTrackersRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.listTrackers', request, (error, result) => error ? reject(error) : resolve(result))) +export const userListTrackersRpcPromise = (request: UserListTrackersRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.listTrackers', request, (error: RPCError, result: UserListTrackersResult) => error ? reject(error) : resolve(result))) export const userListTrackersSelfRpcChannelMap = (configKeys: Array, request: UserListTrackersSelfRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.listTrackersSelf', request) -export const userListTrackersSelfRpcPromise = (request: UserListTrackersSelfRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.listTrackersSelf', request, (error, result) => error ? reject(error) : resolve(result))) +export const userListTrackersSelfRpcPromise = (request: UserListTrackersSelfRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.listTrackersSelf', request, (error: RPCError, result: UserListTrackersSelfResult) => error ? reject(error) : resolve(result))) export const userListTrackingJSONRpcChannelMap = (configKeys: Array, request: UserListTrackingJSONRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.listTrackingJSON', request) -export const userListTrackingJSONRpcPromise = (request: UserListTrackingJSONRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.listTrackingJSON', request, (error, result) => error ? reject(error) : resolve(result))) +export const userListTrackingJSONRpcPromise = (request: UserListTrackingJSONRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.listTrackingJSON', request, (error: RPCError, result: UserListTrackingJSONResult) => error ? reject(error) : resolve(result))) export const userListTrackingRpcChannelMap = (configKeys: Array, request: UserListTrackingRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.listTracking', request) -export const userListTrackingRpcPromise = (request: UserListTrackingRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.listTracking', request, (error, result) => error ? reject(error) : resolve(result))) +export const userListTrackingRpcPromise = (request: UserListTrackingRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.listTracking', request, (error: RPCError, result: UserListTrackingResult) => error ? reject(error) : resolve(result))) export const userLoadAllPublicKeysUnverifiedRpcChannelMap = (configKeys: Array, request: UserLoadAllPublicKeysUnverifiedRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.loadAllPublicKeysUnverified', request) -export const userLoadAllPublicKeysUnverifiedRpcPromise = (request: UserLoadAllPublicKeysUnverifiedRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.loadAllPublicKeysUnverified', request, (error, result) => error ? reject(error) : resolve(result))) +export const userLoadAllPublicKeysUnverifiedRpcPromise = (request: UserLoadAllPublicKeysUnverifiedRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.loadAllPublicKeysUnverified', request, (error: RPCError, result: UserLoadAllPublicKeysUnverifiedResult) => error ? reject(error) : resolve(result))) export const userLoadMyPublicKeysRpcChannelMap = (configKeys: Array, request: UserLoadMyPublicKeysRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.loadMyPublicKeys', request) -export const userLoadMyPublicKeysRpcPromise = (request: UserLoadMyPublicKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.loadMyPublicKeys', request, (error, result) => error ? reject(error) : resolve(result))) +export const userLoadMyPublicKeysRpcPromise = (request: UserLoadMyPublicKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.loadMyPublicKeys', request, (error: RPCError, result: UserLoadMyPublicKeysResult) => error ? reject(error) : resolve(result))) export const userLoadMySettingsRpcChannelMap = (configKeys: Array, request: UserLoadMySettingsRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.loadMySettings', request) -export const userLoadMySettingsRpcPromise = (request: UserLoadMySettingsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.loadMySettings', request, (error, result) => error ? reject(error) : resolve(result))) +export const userLoadMySettingsRpcPromise = (request: UserLoadMySettingsRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.loadMySettings', request, (error: RPCError, result: UserLoadMySettingsResult) => error ? reject(error) : resolve(result))) export const userLoadPublicKeysRpcChannelMap = (configKeys: Array, request: UserLoadPublicKeysRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.loadPublicKeys', request) -export const userLoadPublicKeysRpcPromise = (request: UserLoadPublicKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.loadPublicKeys', request, (error, result) => error ? reject(error) : resolve(result))) +export const userLoadPublicKeysRpcPromise = (request: UserLoadPublicKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.loadPublicKeys', request, (error: RPCError, result: UserLoadPublicKeysResult) => error ? reject(error) : resolve(result))) export const userLoadUncheckedUserSummariesRpcChannelMap = (configKeys: Array, request: UserLoadUncheckedUserSummariesRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.loadUncheckedUserSummaries', request) -export const userLoadUncheckedUserSummariesRpcPromise = (request: UserLoadUncheckedUserSummariesRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.loadUncheckedUserSummaries', request, (error, result) => error ? reject(error) : resolve(result))) +export const userLoadUncheckedUserSummariesRpcPromise = (request: UserLoadUncheckedUserSummariesRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.loadUncheckedUserSummaries', request, (error: RPCError, result: UserLoadUncheckedUserSummariesResult) => error ? reject(error) : resolve(result))) export const userLoadUserByNameRpcChannelMap = (configKeys: Array, request: UserLoadUserByNameRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.loadUserByName', request) -export const userLoadUserByNameRpcPromise = (request: UserLoadUserByNameRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.loadUserByName', request, (error, result) => error ? reject(error) : resolve(result))) +export const userLoadUserByNameRpcPromise = (request: UserLoadUserByNameRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.loadUserByName', request, (error: RPCError, result: UserLoadUserByNameResult) => error ? reject(error) : resolve(result))) export const userLoadUserPlusKeysRpcChannelMap = (configKeys: Array, request: UserLoadUserPlusKeysRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.loadUserPlusKeys', request) -export const userLoadUserPlusKeysRpcPromise = (request: UserLoadUserPlusKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.loadUserPlusKeys', request, (error, result) => error ? reject(error) : resolve(result))) +export const userLoadUserPlusKeysRpcPromise = (request: UserLoadUserPlusKeysRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.loadUserPlusKeys', request, (error: RPCError, result: UserLoadUserPlusKeysResult) => error ? reject(error) : resolve(result))) export const userLoadUserRpcChannelMap = (configKeys: Array, request: UserLoadUserRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.loadUser', request) -export const userLoadUserRpcPromise = (request: UserLoadUserRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.loadUser', request, (error, result) => error ? reject(error) : resolve(result))) +export const userLoadUserRpcPromise = (request: UserLoadUserRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.loadUser', request, (error: RPCError, result: UserLoadUserResult) => error ? reject(error) : resolve(result))) export const userProfileEditRpcChannelMap = (configKeys: Array, request: UserProfileEditRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.profileEdit', request) -export const userProfileEditRpcPromise = (request: UserProfileEditRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.profileEdit', request, (error, result) => error ? reject(error) : resolve(result))) +export const userProfileEditRpcPromise = (request: UserProfileEditRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.profileEdit', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const userResetUserRpcChannelMap = (configKeys: Array, request: UserResetUserRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.resetUser', request) -export const userResetUserRpcPromise = (request: UserResetUserRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.resetUser', request, (error, result) => error ? reject(error) : resolve(result))) +export const userResetUserRpcPromise = (request: UserResetUserRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.resetUser', request, (error: RPCError, result: void) => error ? reject(error) : resolve())) export const userSearchRpcChannelMap = (configKeys: Array, request: UserSearchRpcParam): EngineChannel => engine()._channelMapRpcHelper(configKeys, 'keybase.1.user.search', request) -export const userSearchRpcPromise = (request: UserSearchRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.search', request, (error, result) => error ? reject(error) : resolve(result))) +export const userSearchRpcPromise = (request: UserSearchRpcParam): Promise => new Promise((resolve, reject) => engine()._rpcOutgoing('keybase.1.user.search', request, (error: RPCError, result: UserSearchResult) => error ? reject(error) : resolve(result))) export type APIRes = {|status: String,body: String,httpStatus: Int,appStatus: String,|} diff --git a/shared/constants/types/git.js b/shared/constants/types/git.js new file mode 100644 index 000000000000..910c3d1623b8 --- /dev/null +++ b/shared/constants/types/git.js @@ -0,0 +1,21 @@ +// @flow +import * as I from 'immutable' + +export type _GitInfo = { + canDelete: boolean, + devicename: string, + id: string, + lastEditTime: string, + lastEditUser: string, + name: string, + teamname: ?string, + url: string, +} +export type GitInfo = I.RecordOf<_GitInfo> +export type _State = { + error: ?Error, + idToInfo: I.Map, + isNew: I.Set, + loading: boolean, +} +export type State = I.RecordOf<_State> diff --git a/shared/constants/types/search.js b/shared/constants/types/search.js new file mode 100644 index 000000000000..be5afcdfe0cc --- /dev/null +++ b/shared/constants/types/search.js @@ -0,0 +1,47 @@ +// @flow +import {type IconType} from '../../common-adapters/icon' +export type Service = 'Facebook' | 'GitHub' | 'Hacker News' | 'Keybase' | 'Reddit' | 'Twitter' + +export type FollowingState = 'Following' | 'NotFollowing' | 'NoState' | 'You' + +// This is what the api expects/returns +export type SearchPlatform = 'Keybase' | 'Twitter' | 'Github' | 'Reddit' | 'Hackernews' | 'Pgp' | 'Facebook' + +export type SearchResultId = string // i.e. marcopolo or marcopolo@github +export type SearchQuery = string + +export type RowProps = { + id: SearchResultId, + + leftFollowingState: FollowingState, + leftIcon: ?IconType, // If service is keybase this can be null + leftService: Service, + leftUsername: string, + + rightFollowingState: FollowingState, + rightFullname: ?string, + rightIcon: ?IconType, + rightService: ?Service, + rightUsername: ?string, + + showTrackerButton: boolean, + onShowTracker: () => void, + onClick: () => void, + onMouseOver?: () => void, + selected: boolean, + userIsInTeam: boolean, +} +// A normalized version of the row props above. +// The connector should fill in the missing pieces like the following state +export type SearchResult = { + id: SearchResultId, + + leftIcon: ?IconType, // If service is keybase this can be null + leftService: Service, + leftUsername: string, + + rightFullname: ?string, + rightIcon: ?IconType, + rightService: ?Service, + rightUsername: ?string, +} diff --git a/shared/constants/types/teams.js b/shared/constants/types/teams.js new file mode 100644 index 000000000000..ae7b85111908 --- /dev/null +++ b/shared/constants/types/teams.js @@ -0,0 +1,205 @@ +// @flow +import * as I from 'immutable' +import * as Types from './chat' +import * as RPCTypes from './flow-types' + +import {type NoErrorTypedAction} from './flux' + +export type TeamRoleType = 'reader' | 'writer' | 'admin' | 'owner' + +type _PublicitySettings = { + member: boolean, + team: boolean, +} +export type TeamSettings = RPCTypes.TeamSettings +export type ChannelMembershipState = {[channelname: string]: boolean} + +export type CreateNewTeam = NoErrorTypedAction< + 'teams:createNewTeam', + { + name: string, + } +> + +export type CreateNewTeamFromConversation = NoErrorTypedAction< + 'teams:createNewTeamFromConversation', + { + conversationIDKey: Types.ConversationIDKey, + name: string, + } +> + +export type AddToTeam = NoErrorTypedAction< + 'teams:addToTeam', + { + name: string, + email: string, + username: string, + role: ?TeamRoleType, + sendChatNotification: boolean, + } +> +export type EditMembership = NoErrorTypedAction< + 'teams:editMembership', + {name: string, username: string, role: TeamRoleType} +> +export type InviteToTeamByPhone = NoErrorTypedAction< + 'teams:inviteToTeamByPhone', + { + teamname: string, + role: string, + phoneNumber: string, + } +> + +// username -> removeMember +// email -> removePendingInvite +export type RemoveMemberOrPendingInvite = NoErrorTypedAction< + 'teams:removeMemberOrPendingInvite', + {name: string, username: string, email: string} +> + +export type IgnoreRequest = NoErrorTypedAction<'teams:ignoreRequest', {name: string, username: string}> +export type JoinTeam = NoErrorTypedAction<'teams:joinTeam', {teamname: string}> +export type LeaveTeam = NoErrorTypedAction<'teams:leaveTeam', {teamname: string}> +export type GetChannels = NoErrorTypedAction<'teams:getChannels', {teamname: string}> + +export type MakeTeamOpen = NoErrorTypedAction< + 'teams:makeTeamOpen', + {convertToOpen: boolean, defaultRole: TeamRoleType, teamname: string} +> + +export type GetTeams = NoErrorTypedAction<'teams:getTeams', {}> + +export type BadgeAppForTeams = NoErrorTypedAction< + 'teams:badgeAppForTeams', + {newTeamNames?: ?Array, newTeamAccessRequests?: ?Array} +> + +export type ToggleChannelMembership = NoErrorTypedAction< + 'teams:toggleChannelMembership', + {teamname: string, channelname: string} +> + +export type SetupTeamHandlers = NoErrorTypedAction<'teams:setupTeamHandlers', void> +export type GetDetails = NoErrorTypedAction<'teams:getDetails', {teamname: string}> +export type CreateChannel = NoErrorTypedAction< + 'teams:createChannel', + {channelname: string, description: string, teamname: string} +> + +export type Teamname = string + +export type _ChannelInfo = { + channelname: ?string, + description: ?string, + participants: I.Set, +} + +export type ChannelInfo = I.RecordOf<_ChannelInfo> +export type _MemberInfo = { + type: ?TeamRoleType, + username: string, +} + +export type MemberInfo = I.RecordOf<_MemberInfo> +export type _InviteInfo = { + email: string, + role: TeamRoleType, + username: string, +} + +export type InviteInfo = I.RecordOf<_InviteInfo> +export type _RequestInfo = { + username: string, +} + +export type RequestInfo = I.RecordOf<_RequestInfo> +export type TabKey = 'members' | 'requests' | 'pending' + +export type SetTeamCreationError = NoErrorTypedAction< + 'teams:setTeamCreationError', + {teamCreationError: string} +> + +export type SetTeamCreationPending = NoErrorTypedAction< + 'teams:setTeamCreationPending', + {teamCreationPending: boolean} +> + +export type SetTeamJoinError = NoErrorTypedAction<'teams:setTeamJoinError', {teamJoinError: string}> +export type SetTeamJoinSuccess = NoErrorTypedAction<'teams:setTeamJoinSuccess', {teamJoinSuccess: boolean}> + +export type AddPeopleToTeam = NoErrorTypedAction<'teams:addPeopleToTeam', {role: string, teamname: string}> + +export type InviteToTeamByEmail = NoErrorTypedAction< + 'teams:inviteToTeamByEmail', + {invitees: string, role: string, teamname: string} +> + +export type SetPublicityMember = NoErrorTypedAction< + 'teams:setPublicityMember', + {enabled: boolean, teamname: string} +> + +export type SetPublicityTeam = NoErrorTypedAction< + 'teams:setPublicityTeam', + {enabled: boolean, teamname: string} +> + +export type UpdateChannelName = NoErrorTypedAction< + 'teams:updateChannelName', + {conversationIDKey: Types.ConversationIDKey, newChannelName: string} +> + +export type UpdateTopic = NoErrorTypedAction< + 'teams:updateTopic', + {conversationIDKey: Types.ConversationIDKey, newTopic: string} +> + +export type DeleteChannel = NoErrorTypedAction< + 'teams:deleteChannel', + {conversationIDKey: Types.ConversationIDKey} +> + +export type SaveChannelMembership = NoErrorTypedAction< + 'teams:saveChannelMembership', + {channelState: ChannelMembershipState, teamname: string} +> + +export type TypeMap = { + admin: string | boolean, + owner: string | boolean, + reader: string | boolean, + writer: string | boolean, +} + +export type _State = { + convIDToChannelInfo: I.Map, + sawChatBanner: boolean, + teamNameToConvIDs: I.Map>, + teamNameToInvites: I.Map< + Teamname, + I.Set< + I.RecordOf<{ + email: string, + role: TeamRoleType, + username: string, + }> + > + >, + teamNameToLoadingInvites: I.Map>, + teamNameToMembers: I.Map>, + teamNameToMemberUsernames: I.Map>, + teamNameToImplicitAdminUsernames: I.Map>, + teamNameToLoading: I.Map, + teamNameToRequests: I.Map>, + teamNameToTeamSettings: I.Map, + teamNameToPublicitySettings: I.Map, + teamnames: I.Set, + teammembercounts: I.Map, + newTeams: I.Set, + newTeamRequests: I.List, + loaded: boolean, +} +export type State = I.RecordOf<_State> diff --git a/shared/engine/index.js.flow b/shared/engine/index.js.flow new file mode 100644 index 000000000000..96e76de9fcd9 --- /dev/null +++ b/shared/engine/index.js.flow @@ -0,0 +1,37 @@ +// @flow +// Sep. engine file so we can avoid import cycles w/ flow-types.js +// A lot of weak typing here as we're usually interfacing with this through helpers, could make it more accurate later + +declare export class EngineChannel { + map: () => any, + close(): void, + take(key: string): Generator, + race(options: ?{timeout?: number, racers?: Object}): Generator, +} + +declare export class Engine { + reset(): void, + cancelRPC(): void, + cancelSession(sessionID: any): void, + rpc(): void, + setFailOnError(): void, + listenOnConnect(key: string, f: () => void): void, + listenOnDisconnect(key: string, f: () => void): void, + hasEverConnected(): void, + setIncomingHandler(name: string, callback: Function): void, + setIncomingActionCreator(method: string, actionCreator: (param: Object, response: ?Object) => ?any): void, + createSession(incomingCallMap: ?any, waitingHandler: ?any, cancelHandler: ?any, dangling?: boolean): any, + _channelMapRpcHelper(configKeys: Array, method: string, params: any): EngineChannel, + _rpcOutgoing( + method: string, + params: ?{ + incomingCallMap?: any, // IncomingCallMapType, actually a mix of all the incomingcallmap types, which we don't handle yet TODO we could mix them all + waitingHandler?: any, + }, + callback: (...args: Array) => void + ): void, +} + +declare export function getEngine(): Engine +declare export function makeEngine(any): Engine +export default getEngine diff --git a/shared/engine/types.js.flow b/shared/engine/types.js.flow index 48b14328f351..cb668285b9ac 100644 --- a/shared/engine/types.js.flow +++ b/shared/engine/types.js.flow @@ -1,6 +1,5 @@ // @flow import {RPCError} from '../util/errors' -import {Buffer} from 'buffer' export type EndHandlerType = (session: Object) => void export type MethodKey = string export type SessionID = number @@ -22,3 +21,4 @@ export type Long = number export type String = string export type Uint = number export type Uint64 = number +export {RPCError} from '../util/errors' diff --git a/shared/folders/list.js.flow b/shared/folders/list.js.flow index e503e7a64244..3e5145e90390 100644 --- a/shared/folders/list.js.flow +++ b/shared/folders/list.js.flow @@ -1,8 +1,8 @@ // @flow import * as React from 'react' -import {type FolderType} from '.' import * as Constants from '../constants/folders' +export type FolderType = 'public' | 'private' | 'team' export type Folder = Constants.Folder export type Props = { diff --git a/shared/git/container.js b/shared/git/container.js index bd6da4477915..2ca67f260058 100644 --- a/shared/git/container.js +++ b/shared/git/container.js @@ -2,6 +2,7 @@ import Git from '.' import * as I from 'immutable' import * as GitGen from '../actions/git-gen' +import * as Types from '../constants/types/git' import * as Constants from '../constants/git' import {compose, lifecycle, connect, type TypedState} from '../util/container' import {createSelector} from 'reselect' @@ -10,7 +11,7 @@ import sortBy from 'lodash/sortBy' const sortRepos = git => sortBy(git, ['teamname', 'name']) -const getRepos = createSelector([Constants.getIdToGit], (git: ?I.Map) => { +const getRepos = createSelector([Constants.getIdToGit], (git: ?I.Map) => { if (!git) { return { personals: [], diff --git a/shared/package.json b/shared/package.json index b2fc87f49418..4b8a190f34da 100644 --- a/shared/package.json +++ b/shared/package.json @@ -42,7 +42,8 @@ "storybook": "start-storybook -s . -p 6006", "rn-storybook": "storybook start -p 7007", "build-storybook": "build-storybook", - "modules": "yarn install --pure-lockfile" + "modules": "yarn install --pure-lockfile", + "coverage": "flow-coverage-report -i '**/*.js' -i '**/*.js.flow' -x 'node_modules/**' -x 'markdown/parser.js' -x 'flow-typed/**' -x 'desktop/dist/**' -x 'coverage/**' -f ./node_modules/.bin/flow -o ./coverage -t text -t html" }, "jest": { "modulePaths": [ diff --git a/shared/profile/non-user-profile.js.flow b/shared/profile/non-user-profile.js.flow index 1477c9b091a8..c702514d873e 100644 --- a/shared/profile/non-user-profile.js.flow +++ b/shared/profile/non-user-profile.js.flow @@ -1,7 +1,7 @@ // @flow import {Component} from 'react' -import type {Service} from '../constants/search' +import type {Service} from '../constants/types/search' export type Props = { avatar: ?string, diff --git a/shared/search/helpers.js b/shared/search/helpers.js index 0e566093a308..077574f802ce 100644 --- a/shared/search/helpers.js +++ b/shared/search/helpers.js @@ -1,19 +1,19 @@ // @flow import {compose, withHandlers, withPropsOnChange, withState, lifecycle} from 'recompose' -import * as Constants from '../constants/search' +import * as Types from '../constants/types/search' import debounce from 'lodash/debounce' const debounceTimeout = 1e3 type OwnProps = { onChangeSearchText: ?(s: string) => void, - search: (term: string, service: Constants.Service) => void, - selectedService: Constants.Service, - searchResultIds: Array, - selectedSearchId: ?Constants.SearchResultId, - onUpdateSelectedSearchResult: (id: ?Constants.SearchResultId) => void, - onAddUser: (id: Constants.SearchResultId) => void, + search: (term: string, service: Types.Service) => void, + selectedService: Types.Service, + searchResultIds: Array, + selectedSearchId: ?Types.SearchResultId, + onUpdateSelectedSearchResult: (id: ?Types.SearchResultId) => void, + onAddUser: (id: Types.SearchResultId) => void, searchResultTerm: string, } @@ -34,13 +34,13 @@ const selectedSearchIdHoc = compose( // TODO hook up this type /* type InProps = { - onRemoveUser: (id: Constants.SearchResultId) => void, + onRemoveUser: (id: Types.SearchResultId) => void, onExitSearch: () => void, - userItems: Array<{id: Constants.SearchResultId}>, + userItems: Array<{id: Types.SearchResultId}>, searchText: string, onChangeSearchText: (nextText: string) => void, clearSearchResults: () => void, - search: (search: string, service: Constants.Service) => void, + search: (search: string, service: Types.Service) => void, } type OutProps = { diff --git a/shared/search/icon-or-avatar.js b/shared/search/icon-or-avatar.js index 86c21783438f..2a65d01c3116 100644 --- a/shared/search/icon-or-avatar.js +++ b/shared/search/icon-or-avatar.js @@ -1,5 +1,5 @@ // @flow -import * as Constants from '../constants/search' +import * as Types from '../constants/types/search' import * as React from 'react' import {Avatar, Icon} from '../common-adapters' @@ -7,7 +7,7 @@ import type {AvatarSize} from '../common-adapters/avatar' import type {IconType} from '../common-adapters/icon' type Props = {| - service: ?Constants.Service, + service: ?Types.Service, username: ?string, icon: ?IconType, avatarSize: AvatarSize, diff --git a/shared/search/result-row/container.js b/shared/search/result-row/container.js index 19afa7f28539..d162d77e116b 100644 --- a/shared/search/result-row/container.js +++ b/shared/search/result-row/container.js @@ -2,7 +2,8 @@ import SearchResultRow from '.' import {Map} from 'immutable' import {userIsInTeamHelper} from '../../constants/teams' -import {followStateHelper, type SearchResultId} from '../../constants/search' +import {followStateHelper} from '../../constants/search' +import {type SearchResultId} from '../../constants/types/search' import {connect, type MapStateToProps, type TypedState} from '../../util/container' const mapStateToProps: MapStateToProps<*, *, *> = ( diff --git a/shared/search/result-row/index.js b/shared/search/result-row/index.js index e3a868054150..1d6537d1ffeb 100644 --- a/shared/search/result-row/index.js +++ b/shared/search/result-row/index.js @@ -1,5 +1,5 @@ // @flow -import * as Constants from '../../constants/search' +import * as Types from '../../constants/types/search' import * as React from 'react' import {Box, Icon, ClickableBox, Text} from '../../common-adapters/index' import {globalColors, globalStyles, globalMargins, hairlineWidth} from '../../styles' @@ -116,7 +116,7 @@ const Line = () => ( /> ) -const SearchResultRow = (props: Constants.RowProps) => ( +const SearchResultRow = (props: Types.RowProps) => ( void, + selectedService: Types.Service, + onSelectService: (service: Types.Service) => void, } const bubbleColors = { @@ -24,7 +24,7 @@ const bubbleColors = { const servicesOrder = ['Keybase', 'Twitter', 'Facebook', 'GitHub', 'Reddit', 'Hacker News'] -const selectedIconMap: {[service: Constants.Service]: IconType} = { +const selectedIconMap: {[service: Types.Service]: IconType} = { Facebook: isMobile ? 'icon-search-facebook-active-40' : 'icon-search-facebook-active-32', GitHub: isMobile ? 'icon-search-github-active-40' : 'icon-search-github-active-32', 'Hacker News': isMobile ? 'icon-search-hacker-news-active-40' : 'icon-search-hacker-news-active-32', @@ -33,7 +33,7 @@ const selectedIconMap: {[service: Constants.Service]: IconType} = { Twitter: isMobile ? 'icon-search-twitter-active-40' : 'icon-search-twitter-active-32', } -const unselectedIconMap: {[service: Constants.Service]: IconType} = { +const unselectedIconMap: {[service: Types.Service]: IconType} = { Facebook: isMobile ? 'icon-search-facebook-inactive-40' : 'icon-search-facebook-inactive-32', GitHub: isMobile ? 'icon-search-github-inactive-40' : 'icon-search-github-inactive-32', 'Hacker News': isMobile ? 'icon-search-hacker-news-inactive-40' : 'icon-search-hacker-news-inactive-32', @@ -92,12 +92,12 @@ const Service = ({service, selected, hovering, onHover, onSelect}) => { } // Holds all the services and keeps track of which one is hovered -class Filter extends Component { +class Filter extends Component { state = { hoveredService: null, } - _hoverChanged = (service: Constants.Service, hovering: boolean) => { + _hoverChanged = (service: Types.Service, hovering: boolean) => { if (hovering) { this.setState({hoveredService: service}) } else if (this.state.hoveredService === service) { @@ -105,14 +105,14 @@ class Filter extends Component { } } - _selectService = (service: Constants.Service) => { + _selectService = (service: Types.Service) => { this.props.onSelectService(service) } render() { return ( - {servicesOrder.map((service: Constants.Service) => ( + {servicesOrder.map((service: Types.Service) => ( { +const followingStateToStyle = (followingState: Types.FollowingState) => { return { Following: { color: globalColors.green2, diff --git a/shared/search/user-input/index.js.flow b/shared/search/user-input/index.js.flow index 7c1ffec313b0..85da40bda38f 100644 --- a/shared/search/user-input/index.js.flow +++ b/shared/search/user-input/index.js.flow @@ -1,13 +1,13 @@ // @flow import {Component} from 'react' -import * as Constants from '../../constants/search' +import * as Types from '../../constants/types/search' import type {IconType} from '../../common-adapters/icon' export type UserDetails = { id: string, - followingState: Constants.FollowingState, + followingState: Types.FollowingState, icon: ?IconType, - service: Constants.Service, + service: Types.Service, username: string, } @@ -18,7 +18,7 @@ export type Props = { usernameText: string, onChangeText: (usernameText: string) => void, onRemoveUser: (id: string) => void, - onClickAddButton: ?(() => void), + onClickAddButton: ?() => void, onMoveSelectUp: () => void, onMoveSelectDown: () => void, onCancel?: () => void, diff --git a/shared/teams/add-people/index.js b/shared/teams/add-people/index.js index d67783a01439..b64d2eecda4a 100644 --- a/shared/teams/add-people/index.js +++ b/shared/teams/add-people/index.js @@ -15,7 +15,8 @@ import {isMobile} from '../../constants/platform' import UserInput from '../../search/user-input/container' import SearchResultsList from '../../search/results-list/container' -import {teamRoleTypes, type TeamRoleType} from '../../constants/teams' +import {teamRoleTypes} from '../../constants/teams' +import {type TeamRoleType} from '../../constants/types/teams' const MaybePopup = isMobile ? (props: {onClose: () => void, children: React.Node}) => ( diff --git a/shared/teams/container.js b/shared/teams/container.js index 98ce45509de4..3583c65fb1a4 100644 --- a/shared/teams/container.js +++ b/shared/teams/container.js @@ -7,7 +7,7 @@ import openURL from '../util/open-url' import {getTeams} from '../actions/teams/creators' import {navigateAppend} from '../actions/route-tree' import {compose, lifecycle, type TypedState, pausableConnect} from '../util/container' -import {type Teamname} from '../constants/teams' +import {type Teamname} from '../constants/types/teams' type StateProps = { _teamnames: I.Set, diff --git a/shared/teams/invite-by-email/index.desktop.js b/shared/teams/invite-by-email/index.desktop.js index f2bec5d3e33d..c04fead8665e 100644 --- a/shared/teams/invite-by-email/index.desktop.js +++ b/shared/teams/invite-by-email/index.desktop.js @@ -4,8 +4,8 @@ import {Box, Button, ClickableBox, Dropdown, Input, PopupDialog, Text} from '../ import {globalStyles, globalMargins, globalColors} from '../../styles' import capitalize from 'lodash/capitalize' import {isMobile} from '../../constants/platform' - -import {teamRoleTypes, type TeamRoleType} from '../../constants/teams' +import {teamRoleTypes} from '../../constants/teams' +import {type TeamRoleType} from '../../constants/types/teams' const MaybePopup = isMobile ? (props: {onClose: () => void, children: React.Node}) => ( diff --git a/shared/teams/invite-by-email/index.js.flow b/shared/teams/invite-by-email/index.js.flow index 36408b38a783..771f7aff26b9 100644 --- a/shared/teams/invite-by-email/index.js.flow +++ b/shared/teams/invite-by-email/index.js.flow @@ -1,6 +1,6 @@ // @flow import * as React from 'react' -import {type TeamRoleType} from '../../constants/teams' +import {type TeamRoleType} from '../../constants/types/teams' import {isMobile} from '../../constants/platform' // Note: 'on Android the entire display name is passed in the givenName field. middleName and familyName will be empty strings.' diff --git a/shared/teams/invite-by-email/index.native.js b/shared/teams/invite-by-email/index.native.js index d94cbab624c6..ba307dd8e77a 100644 --- a/shared/teams/invite-by-email/index.native.js +++ b/shared/teams/invite-by-email/index.native.js @@ -14,7 +14,7 @@ import { import {globalStyles, globalMargins, globalColors} from '../../styles' import {Linking, StyleSheet, NativeModules} from 'react-native' import type {MobileProps, ContactRowProps} from './index' -import {type TeamRoleType} from '../../constants/teams' +import {type TeamRoleType} from '../../constants/types/teams' import {isAndroid} from '../../constants/platform' const settingsURL = 'app-settings:' diff --git a/shared/teams/main/team-list.js b/shared/teams/main/team-list.js index e0086b99321e..34660f077b18 100644 --- a/shared/teams/main/team-list.js +++ b/shared/teams/main/team-list.js @@ -14,7 +14,7 @@ import { import {globalMargins, globalStyles, globalColors} from '../../styles' import {isMobile} from '../../constants/platform' -import type {Teamname} from '../../constants/teams' +import type {Teamname} from '../../constants/types/teams' export type Props = { teamnames: Array, diff --git a/shared/teams/open-team/container.js b/shared/teams/open-team/container.js index 4f5dfedd2633..deacb3c5b406 100644 --- a/shared/teams/open-team/container.js +++ b/shared/teams/open-team/container.js @@ -6,7 +6,7 @@ import {MakeOpenTeamConfirm, MakeTeamClosed, type OpenTeamConfirmProps} from '.' import {connect} from 'react-redux' import {compose, withState, withPropsOnChange} from 'recompose' import * as Creators from '../../actions/teams/creators' -import * as Constants from '../../constants/teams' +import * as Constants from '../../constants/types/teams' type OpenTeamSettingProps = { navigateUp: Function, diff --git a/shared/teams/role-picker/container.js b/shared/teams/role-picker/container.js index 0e2fc3e2c58a..412165c6a958 100644 --- a/shared/teams/role-picker/container.js +++ b/shared/teams/role-picker/container.js @@ -4,12 +4,12 @@ import * as I from 'immutable' import {compose, withState} from 'recompose' import RolePicker from '.' import * as Creators from '../../actions/teams/creators' -import * as Constants from '../../constants/teams' +import * as Types from '../../constants/types/teams' import type {TypedState} from '../../constants/reducer' type StateProps = { - _memberInfo: I.Set, + _memberInfo: I.Set, you: ?string, username: string, teamname: string, @@ -25,12 +25,12 @@ const mapStateToProps = (state: TypedState, {routeProps}): StateProps => ({ // TODO add stuff for edit membership options type DispatchProps = { _onAddMember: ( - teamname: Constants.Teamname, + teamname: Types.Teamname, username: string, - role: Constants.TeamRoleType, + role: Types.TeamRoleType, sendNotification: boolean ) => void, - _onEditMember: (teamname: Constants.Teamname, username: string, role: Constants.TeamRoleType) => void, + _onEditMember: (teamname: Types.Teamname, username: string, role: Types.TeamRoleType) => void, onBack: () => void, } @@ -44,7 +44,7 @@ const mapDispatchToProps = (dispatch: Dispatch, {navigateUp}): DispatchProps => const mergeProps = (stateProps: StateProps, dispatchProps: DispatchProps, ownProps) => { const yourInfo = stateProps._memberInfo.find(member => member.username === stateProps.you) const user = stateProps._memberInfo.find(member => member.username === stateProps.username) - const onComplete = (role: Constants.TeamRoleType, sendNotification?: boolean) => { + const onComplete = (role: Types.TeamRoleType, sendNotification?: boolean) => { if (user) { dispatchProps._onEditMember(stateProps.teamname, stateProps.username, role) } else { diff --git a/shared/teams/role-picker/controlled-container.js b/shared/teams/role-picker/controlled-container.js index 641dbebabaf2..81ca8d4148ca 100644 --- a/shared/teams/role-picker/controlled-container.js +++ b/shared/teams/role-picker/controlled-container.js @@ -6,7 +6,7 @@ import {compose, withHandlers, withState} from 'recompose' import {PopupDialog, HeaderHoc, ScrollView} from '../../common-adapters/index' import {isMobile} from '../../constants/platform' import {type TypedState} from '../../constants/reducer' -import {type TeamRoleType} from '../../constants/teams' +import {type TeamRoleType} from '../../constants/types/teams' /* Pass through via routeprops diff --git a/shared/teams/role-picker/index.js b/shared/teams/role-picker/index.js index f1810f066182..8fa5d9eaeb07 100644 --- a/shared/teams/role-picker/index.js +++ b/shared/teams/role-picker/index.js @@ -13,7 +13,7 @@ import { Checkbox, } from '../../common-adapters/index' import {isMobile} from '../../constants/platform' -import {type TeamRoleType} from '../../constants/teams' +import {type TeamRoleType} from '../../constants/types/teams' import {globalColors, globalMargins, globalStyles} from '../../styles' import {roleIconMap, roleDescMap, permissionMap} from './index.meta' diff --git a/shared/teams/team/container.js b/shared/teams/team/container.js index 993cc0329d3e..c36dec52304f 100644 --- a/shared/teams/team/container.js +++ b/shared/teams/team/container.js @@ -1,5 +1,5 @@ // @flow -import * as Constants from '../../constants/teams' +import * as Types from '../../constants/types/teams' import * as Creators from '../../actions/teams/creators' import * as SearchGen from '../../actions/search-gen' import * as I from 'immutable' @@ -15,14 +15,14 @@ import {navigateAppend} from '../../actions/route-tree' import {createShowUserProfile} from '../../actions/profile-gen' type StateProps = { - _invites: I.Set, - _memberInfo: I.Set, + _invites: I.Set, + _memberInfo: I.Set, _implicitAdminUsernames: I.Set, - _requests: I.Set, + _requests: I.Set, _newTeamRequests: I.List, isTeamOpen: boolean, loading: boolean, - name: Constants.Teamname, + name: Types.Teamname, publicityMember: boolean, publicityTeam: boolean, selectedTab: string, @@ -62,13 +62,13 @@ const mapStateToProps = (state: TypedState, {routeProps, routeState}): StateProp } type DispatchProps = { - _loadTeam: (teamname: Constants.Teamname) => void, - _onOpenFolder: (teamname: Constants.Teamname) => void, - _onAddPeople: (teamname: Constants.Teamname) => void, - _onAddSelf: (teamname: Constants.Teamname, you: string) => void, - _onInviteByEmail: (teamname: Constants.Teamname) => void, - _onManageChat: (teamname: Constants.Teamname) => void, - _onLeaveTeam: (teamname: Constants.Teamname) => void, + _loadTeam: (teamname: Types.Teamname) => void, + _onOpenFolder: (teamname: Types.Teamname) => void, + _onAddPeople: (teamname: Types.Teamname) => void, + _onAddSelf: (teamname: Types.Teamname, you: string) => void, + _onInviteByEmail: (teamname: Types.Teamname) => void, + _onManageChat: (teamname: Types.Teamname) => void, + _onLeaveTeam: (teamname: Types.Teamname) => void, setSelectedTab: (tab: string) => void, onBack: () => void, _onClickOpenTeamSetting: () => void, @@ -76,31 +76,31 @@ type DispatchProps = { const mapDispatchToProps = (dispatch: Dispatch, {navigateUp, setRouteState, routeProps}): DispatchProps => ({ _loadTeam: teamname => dispatch(Creators.getDetails(teamname)), - _onAddPeople: (teamname: Constants.Teamname) => + _onAddPeople: (teamname: Types.Teamname) => dispatch(navigateAppend([{props: {teamname}, selected: 'addPeople'}])), - _onAddSelf: (teamname: Constants.Teamname, you: ?string) => { + _onAddSelf: (teamname: Types.Teamname, you: ?string) => { if (you) { dispatch(navigateAppend([{props: {teamname}, selected: 'addPeople'}])) dispatch(SearchGen.createAddResultsToUserInput({searchKey: 'addToTeamSearch', searchResults: [you]})) } }, - _onCreateSubteam: (teamname: Constants.Teamname) => + _onCreateSubteam: (teamname: Types.Teamname) => dispatch(navigateAppend([{props: {name: `${teamname}.`}, selected: 'showNewTeamDialog'}])), - _onInviteByEmail: (teamname: Constants.Teamname) => + _onInviteByEmail: (teamname: Types.Teamname) => dispatch(navigateAppend([{props: {teamname}, selected: 'inviteByEmail'}])), - _onLeaveTeam: (teamname: Constants.Teamname) => + _onLeaveTeam: (teamname: Types.Teamname) => dispatch(navigateAppend([{props: {teamname}, selected: 'reallyLeaveTeam'}])), - _onManageChat: (teamname: Constants.Teamname) => + _onManageChat: (teamname: Types.Teamname) => dispatch(navigateAppend([{props: {teamname}, selected: 'manageChannels'}])), - _onOpenFolder: (teamname: Constants.Teamname) => + _onOpenFolder: (teamname: Types.Teamname) => dispatch(KBFSGen.createOpen({path: `/keybase/team/${teamname}`})), onUsernameClick: (username: string) => { isMobile ? dispatch(createShowUserProfile({username})) : dispatch(getProfile(username, true, true)) }, setSelectedTab: selectedTab => setRouteState({selectedTab}), - _setPublicityMember: (teamname: Constants.Teamname, checked: boolean) => + _setPublicityMember: (teamname: Types.Teamname, checked: boolean) => dispatch(Creators.setPublicityMember(teamname, checked)), - _setPublicityTeam: (teamname: Constants.Teamname, checked: boolean) => + _setPublicityTeam: (teamname: Types.Teamname, checked: boolean) => dispatch(Creators.setPublicityTeam(teamname, checked)), onBack: () => dispatch(navigateUp()), _onClickOpenTeamSetting: isTeamOpen => @@ -116,7 +116,7 @@ const mapDispatchToProps = (dispatch: Dispatch, {navigateUp, setRouteState, rout ), }) -const isExplicitAdmin = (memberInfo: I.Set, user: string): boolean => { +const isExplicitAdmin = (memberInfo: I.Set, user: string): boolean => { const info = memberInfo.find(member => member.username === user) if (!info) { return false @@ -168,7 +168,7 @@ const mergeProps = (stateProps, dispatchProps, ownProps) => { invites: stateProps._invites.toJS(), members: stateProps._memberInfo .toArray() - .sort((a: Constants.MemberInfo, b: Constants.MemberInfo) => a.username.localeCompare(b.username)), + .sort((a: Types.MemberInfo, b: Types.MemberInfo) => a.username.localeCompare(b.username)), requests: stateProps._requests.toJS(), newTeamRequests: stateProps._newTeamRequests.toArray(), onAddPeople, diff --git a/shared/teams/team/index.js b/shared/teams/team/index.js index 7fa32b28a82c..62e9ae36f20b 100644 --- a/shared/teams/team/index.js +++ b/shared/teams/team/index.js @@ -1,6 +1,6 @@ // @flow import * as React from 'react' -import * as Constants from '../../constants/teams' +import * as Types from '../../constants/types/teams' import { Avatar, Badge, @@ -22,21 +22,21 @@ import TeamMemberRow from './member-row/container' import TeamRequestRow from './request-row/container' import flags from '../../util/feature-flags' -export type MemberRowProps = Constants.MemberInfo -type InviteRowProps = Constants.InviteInfo -type RequestRowProps = Constants.RequestInfo +export type MemberRowProps = Types.MemberInfo +type InviteRowProps = Types.InviteInfo +type RequestRowProps = Types.RequestInfo export type Props = { invites: Array, isTeamOpen: boolean, - newTeamRequests: Array, + newTeamRequests: Array, loading: boolean, members: Array, - name: Constants.Teamname, + name: Types.Teamname, onAddPeople: () => void, onAddSelf: () => void, onInviteByEmail: () => void, - setSelectedTab: (t: ?Constants.TabKey) => void, + setSelectedTab: (t: ?Types.TabKey) => void, onCreateSubteam: () => void, onLeaveTeam: () => void, onManageChat: () => void, @@ -44,7 +44,7 @@ export type Props = { publicityMember: boolean, publicityTeam: boolean, requests: Array, - selectedTab: Constants.TabKey, + selectedTab: Types.TabKey, showAddYourselfBanner: boolean, setPublicityMember: (checked: boolean) => void, setPublicityTeam: (checked: boolean) => void, @@ -57,7 +57,7 @@ export type Props = { const Help = isMobile ? () => null - : ({name}: {name: Constants.Teamname}) => ( + : ({name}: {name: Types.Teamname}) => ( You can also manage teams from the terminal: @@ -72,12 +72,12 @@ type TeamTabsProps = { admin: boolean, invites: Array, members: Array, - name: Constants.Teamname, - newTeamRequests: Array, + name: Types.Teamname, + newTeamRequests: Array, requests: Array, loading?: boolean, selectedTab?: string, - setSelectedTab: (?Constants.TabKey) => void, + setSelectedTab: (?Types.TabKey) => void, } const TeamRequestOrInviteRow = (index, row) => diff --git a/shared/teams/team/invite-row/container.js b/shared/teams/team/invite-row/container.js index bf4ffe2e6c90..69321d1cea80 100644 --- a/shared/teams/team/invite-row/container.js +++ b/shared/teams/team/invite-row/container.js @@ -2,6 +2,7 @@ import * as React from 'react' import {connect} from 'react-redux' import * as Constants from '../../../constants/teams' +import * as Types from '../../../constants/types/teams' import * as I from 'immutable' import {TeamInviteRow} from '.' import {navigateAppend} from '../../../actions/route-tree' @@ -22,8 +23,8 @@ const getFollowing = (state, username: string) => { type StateProps = { following: boolean, you: ?string, - _invites: I.Set, - _members: I.Set, + _invites: I.Set, + _members: I.Set, } const mapStateToProps = (state: TypedState, {teamname, username}: OwnProps): StateProps => ({ diff --git a/shared/teams/team/member-row/container.js b/shared/teams/team/member-row/container.js index 6cdec5532b9b..47795d621db3 100644 --- a/shared/teams/team/member-row/container.js +++ b/shared/teams/team/member-row/container.js @@ -2,6 +2,7 @@ import * as React from 'react' import {connect} from 'react-redux' import * as Constants from '../../../constants/teams' +import * as Types from '../../../constants/types/teams' import * as I from 'immutable' import {TeamMemberRow} from '.' import {navigateAppend} from '../../../actions/route-tree' @@ -21,7 +22,7 @@ const getFollowing = (state, username: string) => { type StateProps = { following: boolean, you: ?string, - _members: I.Set, + _members: I.Set, } const mapStateToProps = (state: TypedState, {teamname, username}: OwnProps): StateProps => ({ diff --git a/shared/teams/team/member-row/index.js b/shared/teams/team/member-row/index.js index ea9cb1c318cb..26379efc0fb4 100644 --- a/shared/teams/team/member-row/index.js +++ b/shared/teams/team/member-row/index.js @@ -3,7 +3,8 @@ import * as React from 'react' import {Avatar, Box, ClickableBox, Text, Icon, Usernames} from '../../../common-adapters' import {globalStyles, globalMargins, globalColors} from '../../../styles' import {isMobile} from '../../../constants/platform' -import {typeToLabel, type TypeMap} from '../../../constants/teams' +import {typeToLabel} from '../../../constants/teams' +import {type TypeMap} from '../../../constants/types/teams' export type Props = { username: string, diff --git a/shared/teams/team/member/container.js b/shared/teams/team/member/container.js index d96afe415e8d..b32342a43e8b 100644 --- a/shared/teams/team/member/container.js +++ b/shared/teams/team/member/container.js @@ -1,4 +1,5 @@ // @flow +import * as Types from '../../../constants/types/teams' import * as Constants from '../../../constants/teams' import * as I from 'immutable' import {connect} from 'react-redux' @@ -17,7 +18,7 @@ type StateProps = { follower: boolean, _you: ?string, _username: string, - _memberInfo: I.Set, + _memberInfo: I.Set, loading: boolean, } diff --git a/shared/teams/team/member/index.js b/shared/teams/team/member/index.js index 7aef8c2318de..9d61482f648a 100644 --- a/shared/teams/team/member/index.js +++ b/shared/teams/team/member/index.js @@ -1,6 +1,6 @@ // @flow import * as React from 'react' -import * as Constants from '../../../constants/teams' +import * as Types from '../../../constants/types/teams' import {Avatar, Box, ProgressIndicator, Text, Button, Icon, Usernames} from '../../../common-adapters' import {globalStyles, globalMargins} from '../../../styles' import {isMobile} from '../../../constants/platform' @@ -11,9 +11,9 @@ export type Props = { follower: boolean, following: boolean, loading: boolean, - user: Constants.MemberInfo, + user: Types.MemberInfo, teamname: string, - you: ?Constants.MemberInfo, + you: ?Types.MemberInfo, onOpenProfile: () => void, onChat: () => void, onEditMembership: () => void, diff --git a/shared/util/container.js b/shared/util/container.js index add934da8598..f60ff47182b8 100644 --- a/shared/util/container.js +++ b/shared/util/container.js @@ -25,7 +25,7 @@ export { } from 'recompose' export {default as createCachedSelector} from 're-reselect' export {default as pausableConnect} from './pausable-connect' -export {TypedState} from '../constants/reducer' +export type {TypedState} from '../constants/reducer' export { createShallowEqualSelector, createImmutableEqualSelector,