Atomic linking
This commit is contained in:
@@ -184,6 +184,16 @@ export const aciSchema = z
|
||||
return x;
|
||||
});
|
||||
|
||||
export const untaggedPniSchema = z
|
||||
.string()
|
||||
.refine(isUntaggedPniString)
|
||||
.transform(x => {
|
||||
if (!isUntaggedPniString(x)) {
|
||||
throw new Error('Refine did not throw!');
|
||||
}
|
||||
return x;
|
||||
});
|
||||
|
||||
export const serviceIdSchema = z
|
||||
.string()
|
||||
.refine(isServiceIdString)
|
||||
|
7
ts/types/VerificationTransport.ts
Normal file
7
ts/types/VerificationTransport.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
// Copyright 2023 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
export enum VerificationTransport {
|
||||
SMS = 'SMS',
|
||||
Voice = 'Voice',
|
||||
}
|
Reference in New Issue
Block a user