Changeset View
Changeset View
Standalone View
Standalone View
lib/types/request-types.js
// @flow | // @flow | ||||
import invariant from 'invariant'; | import invariant from 'invariant'; | ||||
import t, { type TUnion, type TInterface } from 'tcomb'; | import t, { type TUnion, type TInterface } from 'tcomb'; | ||||
import { type ActivityUpdate } from './activity-types.js'; | import { type ActivityUpdate } from './activity-types.js'; | ||||
import type { SignedIdentityKeysBlob } from './crypto-types.js'; | import type { SignedIdentityKeysBlob } from './crypto-types.js'; | ||||
import { signedIdentityKeysBlobValidator } from './crypto-types.js'; | import { signedIdentityKeysBlobValidator } from './crypto-types.js'; | ||||
import type { MessageID } from './db-ops-types.js'; | |||||
import type { Platform, PlatformDetails } from './device-types.js'; | import type { Platform, PlatformDetails } from './device-types.js'; | ||||
import { | import { | ||||
type RawEntryInfo, | type RawEntryInfo, | ||||
type CalendarQuery, | type CalendarQuery, | ||||
rawEntryInfoValidator, | rawEntryInfoValidator, | ||||
} from './entry-types.js'; | } from './entry-types.js'; | ||||
import type { RawThreadInfo } from './minimally-encoded-thread-permissions-types'; | import type { RawThreadInfo } from './minimally-encoded-thread-permissions-types'; | ||||
import type { | import type { | ||||
▲ Show 20 Lines • Show All 245 Lines • ▼ Show 20 Lines | |||||
export const processServerRequestsActionType = 'PROCESS_SERVER_REQUESTS'; | export const processServerRequestsActionType = 'PROCESS_SERVER_REQUESTS'; | ||||
export type ProcessServerRequestsPayload = { | export type ProcessServerRequestsPayload = { | ||||
+serverRequests: $ReadOnlyArray<ClientServerRequest>, | +serverRequests: $ReadOnlyArray<ClientServerRequest>, | ||||
+calendarQuery: CalendarQuery, | +calendarQuery: CalendarQuery, | ||||
+keyserverID: string, | +keyserverID: string, | ||||
}; | }; | ||||
export type ProcessServerRequestAction = { | export type ProcessServerRequestAction = { | ||||
+messageID?: MessageID, | |||||
+type: 'PROCESS_SERVER_REQUESTS', | +type: 'PROCESS_SERVER_REQUESTS', | ||||
+payload: ProcessServerRequestsPayload, | +payload: ProcessServerRequestsPayload, | ||||
}; | }; | ||||
export type OlmSessionInitializationInfo = { | export type OlmSessionInitializationInfo = { | ||||
+prekey: string, | +prekey: string, | ||||
+prekeySignature: string, | +prekeySignature: string, | ||||
+oneTimeKey: string, | +oneTimeKey: string, | ||||
Show All 19 Lines |