Introduce Service Id Types

Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
Fedor Indutny
2023-08-10 18:43:33 +02:00
committed by Jamie Kyle
parent 414c0a58d3
commit 366b875fd2
269 changed files with 5832 additions and 5550 deletions

View File

@@ -4,6 +4,7 @@
import { z } from 'zod';
import Long from 'long';
import { CallMode } from './Calling';
import type { ServiceIdString } from './ServiceId';
import { bytesToUuid } from '../util/uuidToBytes';
import { SignalService as Proto } from '../protobuf';
import * as Bytes from '../Bytes';
@@ -66,7 +67,7 @@ export type CallStatus = DirectCallStatus | GroupCallStatus;
export type CallDetails = Readonly<{
callId: string;
peerId: string;
peerId: ServiceIdString | string;
ringerId: string | null;
mode: CallMode;
type: CallType;