"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "ts/window.d.ts" between
Signal-Desktop-1.35.2.tar.gz and Signal-Desktop-1.36.1.tar.gz

About: Signal-Desktop is a cross-platform encrypted messaging service (also available for mobile devices).

window.d.ts  (Signal-Desktop-1.35.2):window.d.ts  (Signal-Desktop-1.36.1)
skipping to change at line 19 skipping to change at line 19
MessageModelCollectionType, MessageModelCollectionType,
MessageModelType, MessageModelType,
} from './model-types.d'; } from './model-types.d';
import { import {
LibSignalType, LibSignalType,
SignalProtocolAddressClass, SignalProtocolAddressClass,
StorageType, StorageType,
} from './libsignal.d'; } from './libsignal.d';
import { ContactRecordIdentityState, TextSecureType } from './textsecure.d'; import { ContactRecordIdentityState, TextSecureType } from './textsecure.d';
import { WebAPIConnectType } from './textsecure/WebAPI'; import { WebAPIConnectType } from './textsecure/WebAPI';
import { CallingClass, CallHistoryDetailsType } from './services/calling'; import { CallingClass } from './services/calling';
import * as Crypto from './Crypto'; import * as Crypto from './Crypto';
import * as RemoteConfig from './RemoteConfig';
import { LocalizerType } from './types/Util'; import { LocalizerType } from './types/Util';
import { CallHistoryDetailsType } from './types/Calling';
import { ColorType } from './types/Colors'; import { ColorType } from './types/Colors';
import { ConversationController } from './ConversationController'; import { ConversationController } from './ConversationController';
import { ReduxActions } from './state/types';
import { SendOptionsType } from './textsecure/SendMessage'; import { SendOptionsType } from './textsecure/SendMessage';
import AccountManager from './textsecure/AccountManager';
import Data from './sql/Client'; import Data from './sql/Client';
export { Long } from 'long';
type TaskResultType = any; type TaskResultType = any;
declare global { declare global {
interface Window { interface Window {
dcodeIO: DCodeIOType; dcodeIO: DCodeIOType;
getAccountManager: () => AccountManager | undefined;
getAlwaysRelayCalls: () => Promise<boolean>; getAlwaysRelayCalls: () => Promise<boolean>;
getCallRingtoneNotification: () => Promise<boolean>; getCallRingtoneNotification: () => Promise<boolean>;
getCallSystemNotification: () => Promise<boolean>; getCallSystemNotification: () => Promise<boolean>;
getConversations: () => ConversationModelCollectionType; getConversations: () => ConversationModelCollectionType;
getEnvironment: () => string; getEnvironment: () => string;
getExpiration: () => string; getExpiration: () => string;
getGuid: () => string; getGuid: () => string;
getInboxCollection: () => ConversationModelCollectionType; getInboxCollection: () => ConversationModelCollectionType;
getIncomingCallNotification: () => Promise<boolean>; getIncomingCallNotification: () => Promise<boolean>;
getMediaCameraPermissions: () => Promise<boolean>; getMediaCameraPermissions: () => Promise<boolean>;
getMediaPermissions: () => Promise<boolean>; getMediaPermissions: () => Promise<boolean>;
getServerPublicParams: () => string;
getSocketStatus: () => number; getSocketStatus: () => number;
getTitle: () => string; getTitle: () => string;
waitForEmptyEventQueue: () => Promise<void>;
getVersion: () => string;
showCallingPermissionsPopup: (forCamera: boolean) => Promise<void>; showCallingPermissionsPopup: (forCamera: boolean) => Promise<void>;
i18n: LocalizerType; i18n: LocalizerType;
isValidGuid: (maybeGuid: string) => boolean; isValidGuid: (maybeGuid: string) => boolean;
libphonenumber: { libphonenumber: {
util: { util: {
getRegionCodeForNumber: (number: string) => string; getRegionCodeForNumber: (number: string) => string;
}; };
}; };
libsignal: LibSignalType; libsignal: LibSignalType;
log: { log: {
info: LoggerType; info: LoggerType;
warn: LoggerType; warn: LoggerType;
error: LoggerType; error: LoggerType;
}; };
normalizeUuids: (obj: any, paths: Array<string>, context: string) => any; normalizeUuids: (obj: any, paths: Array<string>, context: string) => any;
platform: string; platform: string;
reduxActions: ReduxActions;
restart: () => void; restart: () => void;
showWindow: () => void; showWindow: () => void;
setBadgeCount: (count: number) => void; setBadgeCount: (count: number) => void;
storage: { storage: {
put: (key: string, value: any) => void; put: (key: string, value: any) => void;
remove: (key: string) => Promise<void>; remove: (key: string) => Promise<void>;
get: <T = any>(key: string) => T | undefined; get: <T = any>(key: string) => T | undefined;
addBlockedNumber: (number: string) => void; addBlockedNumber: (number: string) => void;
isBlocked: (number: string) => boolean; isBlocked: (number: string) => boolean;
removeBlockedNumber: (number: string) => void; removeBlockedNumber: (number: string) => void;
skipping to change at line 85 skipping to change at line 96
Backbone: typeof Backbone; Backbone: typeof Backbone;
Signal: { Signal: {
Crypto: typeof Crypto; Crypto: typeof Crypto;
Data: typeof Data; Data: typeof Data;
Metadata: { Metadata: {
SecretSessionCipher: typeof SecretSessionCipherClass; SecretSessionCipher: typeof SecretSessionCipherClass;
createCertificateValidator: ( createCertificateValidator: (
trustRoot: ArrayBuffer trustRoot: ArrayBuffer
) => CertificateValidatorType; ) => CertificateValidatorType;
}; };
RemoteConfig: typeof RemoteConfig;
Services: { Services: {
calling: CallingClass; calling: CallingClass;
}; };
Migrations: {
deleteAttachmentData: (path: string) => Promise<void>;
writeNewAttachmentData: (data: ArrayBuffer) => Promise<string>;
};
Types: {
Message: {
CURRENT_SCHEMA_VERSION: number;
};
};
}; };
ConversationController: ConversationController; ConversationController: ConversationController;
MessageController: MessageControllerType;
WebAPI: WebAPIConnectType; WebAPI: WebAPIConnectType;
Whisper: WhisperType; Whisper: WhisperType;
// Flags // Flags
CALLING: boolean; CALLING: boolean;
GV2: boolean;
} }
interface Error { interface Error {
cause?: Event; cause?: Event;
} }
} }
export type DCodeIOType = { export type DCodeIOType = {
ByteBuffer: typeof ByteBufferClass; ByteBuffer: typeof ByteBufferClass & {
Long: { BIG_ENDIAN: number;
LITTLE_ENDIAN: number;
Long: DCodeIOType['Long'];
};
Long: Long & {
fromBits: (low: number, high: number, unsigned: boolean) => number; fromBits: (low: number, high: number, unsigned: boolean) => number;
fromString: (str: string) => Long;
}; };
}; };
type MessageControllerType = {
register: (id: string, model: MessageModelType) => MessageModelType;
};
export class CertificateValidatorType { export class CertificateValidatorType {
validate: (cerficate: any, certificateTime: number) => Promise<void>; validate: (cerficate: any, certificateTime: number) => Promise<void>;
} }
export class SecretSessionCipherClass { export class SecretSessionCipherClass {
constructor(storage: StorageType); constructor(storage: StorageType);
decrypt: ( decrypt: (
validator: CertificateValidatorType, validator: CertificateValidatorType,
ciphertext: ArrayBuffer, ciphertext: ArrayBuffer,
serverTimestamp: number, serverTimestamp: number,
skipping to change at line 140 skipping to change at line 172
address: SignalProtocolAddressClass address: SignalProtocolAddressClass
) => Promise<void>; ) => Promise<void>;
encrypt: ( encrypt: (
address: SignalProtocolAddressClass, address: SignalProtocolAddressClass,
senderCertificate: any, senderCertificate: any,
plaintext: ArrayBuffer | Uint8Array plaintext: ArrayBuffer | Uint8Array
) => Promise<ArrayBuffer>; ) => Promise<ArrayBuffer>;
} }
export class ByteBufferClass { export class ByteBufferClass {
constructor(value?: any, encoding?: string); constructor(value?: any, littleEndian?: number);
static wrap: (value: any, type?: string) => ByteBufferClass; static wrap: (
value: any,
encoding?: string,
littleEndian?: number
) => ByteBufferClass;
buffer: ArrayBuffer;
toString: (type: string) => string; toString: (type: string) => string;
toArrayBuffer: () => ArrayBuffer; toArrayBuffer: () => ArrayBuffer;
toBinary: () => string; toBinary: () => string;
slice: (start: number, end?: number) => ByteBufferClass; slice: (start: number, end?: number) => ByteBufferClass;
append: (data: ArrayBuffer) => void; append: (data: ArrayBuffer) => void;
limit: number; limit: number;
offset: 0; offset: 0;
readInt: (offset: number) => number;
readLong: (offset: number) => Long;
readShort: (offset: number) => number;
readVarint32: () => number; readVarint32: () => number;
writeLong: (l: Long) => void;
skip: (length: number) => void; skip: (length: number) => void;
} }
export class GumVideoCapturer { export class GumVideoCapturer {
constructor( constructor(
maxWidth: number, maxWidth: number,
maxHeight: number, maxHeight: number,
maxFramerate: number, maxFramerate: number,
localPreview: Ref<HTMLVideoElement> localPreview: Ref<HTMLVideoElement>
); );
 End of changes. 20 change blocks. 
5 lines changed or deleted 46 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)