signal-desktop/ts/textsecure.d.ts

50 lines
1.4 KiB
TypeScript
Raw Normal View History

// Copyright 2020-2021 Signal Messenger, LLC
2020-10-30 20:34:04 +00:00
// SPDX-License-Identifier: AGPL-3.0-only
2021-05-28 19:11:19 +00:00
import { UnidentifiedSenderMessageContent } from '@signalapp/signal-client';
2020-09-09 02:25:05 +00:00
import MessageSender from './textsecure/SendMessage';
2021-04-08 16:24:21 +00:00
import SyncRequest from './textsecure/SyncRequest';
import EventTarget from './textsecure/EventTarget';
import SendMessage, { SendOptionsType } from './textsecure/SendMessage';
2020-06-04 18:16:19 +00:00
import { WebAPIType } from './textsecure/WebAPI';
import utils from './textsecure/Helpers';
2020-09-28 19:02:35 +00:00
import { CallingMessage as CallingMessageClass } from 'ringrtc';
2020-11-20 17:30:45 +00:00
import { WhatIsThis } from './window.d';
import { Storage } from './textsecure/Storage';
import {
StorageServiceCallOptionsType,
StorageServiceCredentials,
2021-07-09 19:36:10 +00:00
ProcessedAttachment,
} from './textsecure/Types.d';
export type UnprocessedType = {
attempts: number;
decrypted?: string;
envelope?: string;
id: string;
2021-03-04 21:44:57 +00:00
timestamp: number;
serverGuid?: string;
serverTimestamp?: number;
source?: string;
sourceDevice?: number;
sourceUuid?: string;
2021-07-09 19:36:10 +00:00
messageAgeSec?: number;
version: number;
};
export { StorageServiceCallOptionsType, StorageServiceCredentials };
export type TextSecureType = {
storage: Storage;
server: WebAPIType;
messageSender: MessageSender;
messaging: SendMessage;
utils: typeof utils;
EventTarget: typeof EventTarget;
AccountManager: WhatIsThis;
2021-05-03 16:38:20 +00:00
MessageSender: typeof MessageSender;
2021-04-08 16:24:21 +00:00
SyncRequest: typeof SyncRequest;
};