Add support for ACI safety numbers behind a feature flag
This commit is contained in:
parent
42cd8ce792
commit
c1580a5eb3
38 changed files with 1392 additions and 204 deletions
2
ts/types/Storage.d.ts
vendored
2
ts/types/Storage.d.ts
vendored
|
@ -74,6 +74,7 @@ export type StorageAccessType = {
|
|||
hasRegisterSupportForUnauthenticatedDelivery: boolean;
|
||||
hasSetMyStoriesPrivacy: boolean;
|
||||
hasCompletedUsernameOnboarding: boolean;
|
||||
hasCompletedSafetyNumberOnboarding: boolean;
|
||||
hasViewedOnboardingStory: boolean;
|
||||
hasStoriesDisabled: boolean;
|
||||
storyViewReceiptsEnabled: boolean;
|
||||
|
@ -128,6 +129,7 @@ export type StorageAccessType = {
|
|||
'preferred-audio-output-device': AudioDevice;
|
||||
previousAudioDeviceModule: AudioDeviceModule;
|
||||
remoteConfig: RemoteConfigType;
|
||||
serverTimeSkew: number;
|
||||
unidentifiedDeliveryIndicators: boolean;
|
||||
groupCredentials: ReadonlyArray<GroupCredentialType>;
|
||||
lastReceivedAtCounter: number;
|
||||
|
|
19
ts/types/safetyNumber.ts
Normal file
19
ts/types/safetyNumber.ts
Normal file
|
@ -0,0 +1,19 @@
|
|||
// 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;
|
||||
}>;
|
|
@ -7,3 +7,5 @@ export const UNSUPPORTED_OS_URL =
|
|||
'https://support.signal.org/hc/articles/5109141421850';
|
||||
export const LINK_SIGNAL_DESKTOP =
|
||||
'https://support.signal.org/hc/articles/360007320451#desktop_multiple_device';
|
||||
export const SAFETY_NUMBER_MIGRATION_URL =
|
||||
'https://support.signal.org/hc/en-us/articles/360007060632';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue