Files
Signal-Desktop/ts/types/safetyNumber.ts
2023-07-19 16:21:30 -07:00

20 lines
447 B
TypeScript

// Copyright 2023 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
export enum SafetyNumberMode {
E164 = 'E164',
ACIAndE164 = 'ACIAndE164',
ACI = 'ACI',
}
export enum SafetyNumberIdentifierType {
ACIIdentifier = 'ACIIdentifier',
E164Identifier = 'E164Identifier',
}
export type SafetyNumberType = Readonly<{
identifierType: SafetyNumberIdentifierType;
numberBlocks: ReadonlyArray<string>;
qrData: Uint8Array;
}>;