Migration and data access functions for stories

This commit is contained in:
Scott Nonnenberg 2021-12-08 11:52:46 -08:00 committed by GitHub
parent 9f4a01c535
commit fdc9885baa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 3428 additions and 202 deletions

14
ts/model-types.d.ts vendored
View file

@ -50,6 +50,12 @@ export type LastMessageStatus =
type TaskResultType = any;
export type SenderKeyInfoType = {
createdAtDate: number;
distributionId: string;
memberDevices: Array<DeviceType>;
};
export type CustomError = Error & {
identifier?: string;
number?: string;
@ -131,6 +137,7 @@ export type MessageAttributesType = {
requiredProtocolVersion?: number;
retryOptions?: RetryOptions;
sourceDevice?: number;
storyId?: string;
supportedVersionAtReceive?: unknown;
synced?: boolean;
unidentifiedDeliveryReceived?: boolean;
@ -150,6 +157,7 @@ export type MessageAttributesType = {
| 'message-history-unsynced'
| 'outgoing'
| 'profile-change'
| 'story'
| 'timer-notification'
| 'universal-timer-notification'
| 'change-number-notification'
@ -301,11 +309,7 @@ export type ConversationAttributesType = {
secretParams?: string;
publicParams?: string;
revision?: number;
senderKeyInfo?: {
createdAtDate: number;
distributionId: string;
memberDevices: Array<DeviceType>;
};
senderKeyInfo?: SenderKeyInfoType;
// GroupV2 other fields
accessControl?: {