Atomic linking
This commit is contained in:
parent
cbd16b90bb
commit
ccb5eb0dd2
11 changed files with 735 additions and 383 deletions
|
@ -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',
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue