@poolse/sdk 2.9.0 → 2.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -548,11 +548,23 @@ interface VoiceRoomOptions {
548
548
  */
549
549
  detectSpeaking?: boolean;
550
550
  }
551
+ /**
552
+ * What a call carries.
553
+ *
554
+ * Fixed when the call is placed, and travelling with the ring rather
555
+ * than the connection: CallKit shows a different answer button for a
556
+ * video call and cannot be changed once the call is reported. Either
557
+ * side can still turn their camera on or off mid-call — this is what
558
+ * the call *opens* as.
559
+ */
560
+ type CallMedia = 'audio' | 'video';
551
561
  /** An inbound ring, delivered on the user's own channel. */
552
562
  interface IncomingCall {
553
563
  callId: string;
554
564
  conversationId: string;
555
565
  callerUserId: string;
566
+ /** Defaults to `'audio'` against a server that predates the field. */
567
+ media: CallMedia;
556
568
  }
557
569
  /** The far side answered; both parties should now join the room. */
558
570
  interface CallAccepted {
@@ -593,6 +605,7 @@ interface OutgoingCall {
593
605
  conversationId: string;
594
606
  /** Everyone who was rung — the conversation's members, minus you. */
595
607
  calleeUserIds: string[];
608
+ media: CallMedia;
596
609
  }
597
610
 
598
611
  /**
@@ -617,7 +630,7 @@ interface OutgoingCall {
617
630
  * gave up, and it can call {@link cancel} at that point.
618
631
  */
619
632
 
620
- type Unsubscribe$2 = () => void;
633
+ type Unsubscribe$3 = () => void;
621
634
  declare class CallsResource {
622
635
  /** Resolves the user channel lazily — it may not be joined yet. */
623
636
  private readonly getChannel;
@@ -634,7 +647,7 @@ declare class CallsResource {
634
647
  * has fanned the invite out, with the minted call id and who was rung
635
648
  * — not when anyone answers; that arrives via {@link onAccepted}.
636
649
  */
637
- invite(conversationId: string): Promise<OutgoingCall>;
650
+ invite(conversationId: string, media?: CallMedia): Promise<OutgoingCall>;
638
651
  /**
639
652
  * Answer a ringing call. This only tells the caller you picked up —
640
653
  * join the voice room yourself to actually connect audio.
@@ -665,17 +678,17 @@ declare class CallsResource {
665
678
  /** Withdraw an invite you placed — hung up before anyone answered. */
666
679
  cancel(call: OutgoingCall): Promise<void>;
667
680
  /** Somebody is ringing you. */
668
- onIncoming(fn: (call: IncomingCall) => void): Unsubscribe$2;
681
+ onIncoming(fn: (call: IncomingCall) => void): Unsubscribe$3;
669
682
  /** Your outbound call was answered — join the room now. */
670
- onAccepted(fn: (call: CallAccepted) => void): Unsubscribe$2;
683
+ onAccepted(fn: (call: CallAccepted) => void): Unsubscribe$3;
671
684
  /** Your outbound call was rejected. */
672
- onDeclined(fn: (call: CallDeclined) => void): Unsubscribe$2;
685
+ onDeclined(fn: (call: CallDeclined) => void): Unsubscribe$3;
673
686
  /** The person you called is already on another call. */
674
- onBusy(fn: (call: CallBusy) => void): Unsubscribe$2;
687
+ onBusy(fn: (call: CallBusy) => void): Unsubscribe$3;
675
688
  /** The other side ended a connected call. */
676
- onEnded(fn: (call: CallEnded) => void): Unsubscribe$2;
689
+ onEnded(fn: (call: CallEnded) => void): Unsubscribe$3;
677
690
  /** An inbound ring was withdrawn before you answered. */
678
- onCancelled(fn: (call: CallCancelled) => void): Unsubscribe$2;
691
+ onCancelled(fn: (call: CallCancelled) => void): Unsubscribe$3;
679
692
  /**
680
693
  * One Phoenix binding per event regardless of listener count; we fan
681
694
  * out ourselves, matching how the conversation channels do it.
@@ -703,7 +716,7 @@ declare class CallsResource {
703
716
  * SFU belongs.
704
717
  */
705
718
 
706
- type Unsubscribe$1 = () => void;
719
+ type Unsubscribe$2 = () => void;
707
720
  declare class VoiceRoom {
708
721
  readonly conversationId: string;
709
722
  private readonly socket;
@@ -741,9 +754,9 @@ declare class VoiceRoom {
741
754
  isMuted(): boolean;
742
755
  /** Everyone in the room, oldest join first. */
743
756
  getParticipants(): VoiceParticipant[];
744
- onStatus(fn: (status: VoiceStatus) => void): Unsubscribe$1;
745
- onParticipants(fn: (participants: VoiceParticipant[]) => void): Unsubscribe$1;
746
- onError(fn: (err: Error) => void): Unsubscribe$1;
757
+ onStatus(fn: (status: VoiceStatus) => void): Unsubscribe$2;
758
+ onParticipants(fn: (participants: VoiceParticipant[]) => void): Unsubscribe$2;
759
+ onError(fn: (err: Error) => void): Unsubscribe$2;
747
760
  /** Acquire the mic, join the channel, and start negotiating. */
748
761
  join(): Promise<void>;
749
762
  /** Announce departure, then drop every peer connection and the mic. */
@@ -892,7 +905,7 @@ type PresenceSnapshot = Record<Uuid, {
892
905
  */
893
906
  type RealtimeStatus = 'idle' | 'connecting' | 'connected' | 'reconnecting' | 'closed';
894
907
  /** Unsubscribe handle returned by `onX` listener registrations. */
895
- type Unsubscribe = () => void;
908
+ type Unsubscribe$1 = () => void;
896
909
 
897
910
  interface RealtimeOptions {
898
911
  /**
@@ -932,7 +945,7 @@ declare class PoolseRealtime {
932
945
  /** Current connection status. */
933
946
  getStatus(): RealtimeStatus;
934
947
  /** Subscribe to connection-status changes. */
935
- onStatus(listener: (status: RealtimeStatus) => void): Unsubscribe;
948
+ onStatus(listener: (status: RealtimeStatus) => void): Unsubscribe$1;
936
949
  /**
937
950
  * Open the socket (idempotent). Synchronous construction so callers
938
951
  * can join a channel on the next line; the underlying WebSocket
@@ -1003,22 +1016,22 @@ declare class ConversationChannel {
1003
1016
  private presenceStateSeen;
1004
1017
  constructor(conversationId: string, channel: Channel);
1005
1018
  /** New message pushed to the conversation. */
1006
- onMessage(fn: (msg: MessageNewEvent) => void): Unsubscribe;
1019
+ onMessage(fn: (msg: MessageNewEvent) => void): Unsubscribe$1;
1007
1020
  /** Existing message edited by its sender. */
1008
- onMessageUpdated(fn: (msg: MessageUpdatedEvent) => void): Unsubscribe;
1021
+ onMessageUpdated(fn: (msg: MessageUpdatedEvent) => void): Unsubscribe$1;
1009
1022
  /** Tombstone for a soft-deleted message. */
1010
- onMessageDeleted(fn: (evt: MessageDeletedEvent) => void): Unsubscribe;
1011
- onTypingStart(fn: (evt: TypingEvent) => void): Unsubscribe;
1012
- onTypingStop(fn: (evt: TypingEvent) => void): Unsubscribe;
1013
- onReactionAdded(fn: (evt: ReactionEvent) => void): Unsubscribe;
1014
- onReactionRemoved(fn: (evt: ReactionEvent) => void): Unsubscribe;
1023
+ onMessageDeleted(fn: (evt: MessageDeletedEvent) => void): Unsubscribe$1;
1024
+ onTypingStart(fn: (evt: TypingEvent) => void): Unsubscribe$1;
1025
+ onTypingStop(fn: (evt: TypingEvent) => void): Unsubscribe$1;
1026
+ onReactionAdded(fn: (evt: ReactionEvent) => void): Unsubscribe$1;
1027
+ onReactionRemoved(fn: (evt: ReactionEvent) => void): Unsubscribe$1;
1015
1028
  /**
1016
1029
  * A conversation member advanced their read cursor. Used to flip the
1017
1030
  * sender's read-receipt glyph from "sent" to "read" in real time.
1018
1031
  */
1019
- onMemberRead(fn: (evt: MemberReadEvent) => void): Unsubscribe;
1020
- onPresenceState(fn: (state: PresenceSnapshot) => void): Unsubscribe;
1021
- onPresenceDiff(fn: (diff: PresenceSnapshot) => void): Unsubscribe;
1032
+ onMemberRead(fn: (evt: MemberReadEvent) => void): Unsubscribe$1;
1033
+ onPresenceState(fn: (state: PresenceSnapshot) => void): Unsubscribe$1;
1034
+ onPresenceDiff(fn: (diff: PresenceSnapshot) => void): Unsubscribe$1;
1022
1035
  /** Current presence snapshot for sync access — usually used in tests. */
1023
1036
  getPresenceState(): PresenceSnapshot;
1024
1037
  /** Send a typing ping to the server. Debounced server-side. */
@@ -1046,7 +1059,7 @@ declare class UserChannel {
1046
1059
  * @internal
1047
1060
  */
1048
1061
  _channel(): Channel;
1049
- onMention(fn: (evt: MentionEvent) => void): Unsubscribe;
1062
+ onMention(fn: (evt: MentionEvent) => void): Unsubscribe$1;
1050
1063
  /**
1051
1064
  * Subscribe to "you've been added to a conversation" notifications.
1052
1065
  * Fires once per new membership — either because you created the
@@ -1055,7 +1068,7 @@ declare class UserChannel {
1055
1068
  * Payload is the full {@link Conversation} row so consumers can
1056
1069
  * prepend it to a local list without a refetch.
1057
1070
  */
1058
- onConversationCreated(fn: (conv: ConversationCreatedEvent) => void): Unsubscribe;
1071
+ onConversationCreated(fn: (conv: ConversationCreatedEvent) => void): Unsubscribe$1;
1059
1072
  /**
1060
1073
  * Subscribe to "an existing conversation changed" notifications —
1061
1074
  * fires after every `send_message` in any conversation you're a
@@ -1066,7 +1079,7 @@ declare class UserChannel {
1066
1079
  * to increment a local unread counter; the server already keeps
1067
1080
  * your own outbound messages out of your unread count.
1068
1081
  */
1069
- onConversationUpdated(fn: (evt: ConversationUpdatedEvent) => void): Unsubscribe;
1082
+ onConversationUpdated(fn: (evt: ConversationUpdatedEvent) => void): Unsubscribe$1;
1070
1083
  /** @internal */
1071
1084
  _join(): void;
1072
1085
  /** @internal */
@@ -1422,6 +1435,266 @@ declare class UsersResource {
1422
1435
  private notify;
1423
1436
  }
1424
1437
 
1438
+ /**
1439
+ * Structural types for `livekit-client`.
1440
+ *
1441
+ * Declared here rather than imported for the same reason `WebRtcAdapter`
1442
+ * exists: the module is passed IN by the app. tsup rewrites a literal
1443
+ * `require()` into `__require()`, which Metro cannot follow, so a
1444
+ * dependency this package imports for itself is absent from every React
1445
+ * Native bundle — development builds included. That failure already cost
1446
+ * us a release once with `react-native-webrtc`.
1447
+ *
1448
+ * Declaring the shape structurally also keeps the two platforms honest:
1449
+ * web passes `livekit-client`, React Native passes the same package with
1450
+ * `@livekit/react-native`'s globals registered, and neither has to match
1451
+ * a nominal type this package owns.
1452
+ *
1453
+ * Deliberately narrow — only what {@link CallRoom} actually touches.
1454
+ */
1455
+ /** A media track. Opaque here; the platform renderer consumes it. */
1456
+ type LiveKitTrack = object;
1457
+ interface LiveKitPublication {
1458
+ track?: LiveKitTrack | null | undefined;
1459
+ isMuted?: boolean;
1460
+ isSubscribed?: boolean;
1461
+ }
1462
+ interface LiveKitParticipant {
1463
+ /** The poolse user id — we mint tokens with `sub` set to it. */
1464
+ identity: string;
1465
+ name?: string | undefined;
1466
+ isMicrophoneEnabled?: boolean;
1467
+ isCameraEnabled?: boolean;
1468
+ isSpeaking?: boolean;
1469
+ getTrackPublication(source: string): LiveKitPublication | undefined;
1470
+ }
1471
+ interface LiveKitLocalParticipant extends LiveKitParticipant {
1472
+ setCameraEnabled(enabled: boolean): Promise<unknown>;
1473
+ setMicrophoneEnabled(enabled: boolean): Promise<unknown>;
1474
+ }
1475
+ interface LiveKitRoomHandle {
1476
+ localParticipant: LiveKitLocalParticipant;
1477
+ /** Keyed by identity. `remoteParticipants` is the v2 name. */
1478
+ remoteParticipants: Map<string, LiveKitParticipant>;
1479
+ connect(url: string, token: string, options?: unknown): Promise<void>;
1480
+ disconnect(): Promise<void>;
1481
+ on(event: string, handler: (...args: never[]) => void): unknown;
1482
+ off(event: string, handler: (...args: never[]) => void): unknown;
1483
+ }
1484
+ /**
1485
+ * The `livekit-client` namespace, as imported by your app:
1486
+ *
1487
+ * import * as livekit from 'livekit-client';
1488
+ *
1489
+ * Deliberately loose, for the same reason `NativeWebRtcModule` is.
1490
+ * Spelling the real signatures out here does NOT work: `Room`'s
1491
+ * constructor takes `RoomOptions`, and a constructor accepting
1492
+ * `RoomOptions` is not assignable to one accepting `unknown` —
1493
+ * parameters are contravariant. Declaring it precisely means no consumer
1494
+ * can pass `import * as livekit` in at all.
1495
+ *
1496
+ * {@link CheckedLiveKitModule} is the precise shape, narrowed once
1497
+ * inside `CallRoom` rather than at every call site.
1498
+ */
1499
+ interface LiveKitModule {
1500
+ Room: new (...args: never[]) => unknown;
1501
+ RoomEvent: Record<string, string>;
1502
+ Track: {
1503
+ Source: Record<string, string>;
1504
+ };
1505
+ }
1506
+ /** The precise shape, used internally once the module has been checked. */
1507
+ interface CheckedLiveKitModule {
1508
+ Room: new (options?: {
1509
+ adaptiveStream?: boolean;
1510
+ dynacast?: boolean;
1511
+ }) => LiveKitRoomHandle;
1512
+ RoomEvent: Record<string, string>;
1513
+ Track: {
1514
+ Source: Record<string, string>;
1515
+ };
1516
+ }
1517
+ /**
1518
+ * A track plus the context a renderer needs to draw it.
1519
+ *
1520
+ * This is LiveKit's `TrackReference` shape, rebuilt structurally so the
1521
+ * SDK doesn't depend on `@livekit/components-react`. React Native's
1522
+ * `<VideoTrack trackRef={...}>` takes it directly; the web renderer
1523
+ * ignores it and attaches the track itself.
1524
+ *
1525
+ * Adaptive streaming is the reason the reference matters rather than
1526
+ * the bare track: LiveKit uses the publication to decide which quality
1527
+ * layer to send for the size the view is actually drawn at.
1528
+ */
1529
+ interface LiveKitTrackReference {
1530
+ participant: LiveKitParticipant;
1531
+ publication: LiveKitPublication;
1532
+ source: string;
1533
+ }
1534
+ /** What `POST /v1/conversations/:id/call-token` returns. */
1535
+ interface CallConnection {
1536
+ url: string;
1537
+ token: string;
1538
+ room: string;
1539
+ expires_at: number;
1540
+ }
1541
+ /** Connection lifecycle for a call's media. */
1542
+ type CallRoomStatus = 'idle' | 'connecting' | 'connected' | 'error';
1543
+ /** Somebody on the call, including yourself. */
1544
+ interface CallParticipant {
1545
+ /** poolse user id. */
1546
+ userId: string;
1547
+ name?: string | undefined;
1548
+ isSelf: boolean;
1549
+ micEnabled: boolean;
1550
+ cameraEnabled: boolean;
1551
+ speaking: boolean;
1552
+ /**
1553
+ * The camera track, or null when their camera is off.
1554
+ *
1555
+ * Opaque on purpose — the web renderer attaches it to a `<video>`
1556
+ * element. Handing back a concrete type would force one platform's
1557
+ * renderer on the other.
1558
+ */
1559
+ videoTrack: LiveKitTrack | null;
1560
+ /**
1561
+ * The same camera track as a renderable reference, or null.
1562
+ *
1563
+ * React Native's `<VideoTrack>` needs this rather than the bare track:
1564
+ * it reads the publication to pick a quality layer matching the size
1565
+ * the view is drawn at.
1566
+ */
1567
+ videoTrackRef: LiveKitTrackReference | null;
1568
+ }
1569
+ interface CallRoomOptions {
1570
+ /**
1571
+ * `livekit-client`, imported by your app. Required — see the note at
1572
+ * the top of this file about why this package cannot import it.
1573
+ */
1574
+ livekit: LiveKitModule;
1575
+ /**
1576
+ * Resolves SFU credentials for this conversation.
1577
+ *
1578
+ * Returning `null` means the deployment has no SFU configured (the API
1579
+ * answers 503), which callers treat as "fall back to the mesh" rather
1580
+ * than as an error.
1581
+ */
1582
+ tokenProvider: () => Promise<CallConnection | null>;
1583
+ /** Publish the camera on join. Audio calls start with it off. */
1584
+ video?: boolean;
1585
+ /** Start muted. */
1586
+ muted?: boolean;
1587
+ }
1588
+
1589
+ /**
1590
+ * `/v1/conversations/:id/call-token` — SFU credentials for a call.
1591
+ *
1592
+ * This is the SFU's access control, not a convenience: LiveKit trusts
1593
+ * the token completely and checks no membership of its own, so the
1594
+ * server mints one only after verifying the caller is in the
1595
+ * conversation.
1596
+ */
1597
+ declare class CallTokensResource {
1598
+ private readonly client;
1599
+ constructor(client: RestClient);
1600
+ /**
1601
+ * POST /v1/conversations/:conversationId/call-token
1602
+ *
1603
+ * Resolves `null` when the deployment has no SFU configured (503).
1604
+ * That is deliberately not an error — the caller falls back to the
1605
+ * peer-to-peer mesh, which is how every call worked before the SFU
1606
+ * existed. A 403 still throws: that one really is a refusal.
1607
+ */
1608
+ create(conversationId: string, signal?: AbortSignal): Promise<CallConnection | null>;
1609
+ }
1610
+
1611
+ type Unsubscribe = () => void;
1612
+ /**
1613
+ * A call's media, carried by the LiveKit SFU.
1614
+ *
1615
+ * ## What this is not
1616
+ *
1617
+ * It is not the call. Ringing, accept/decline/hangup, presence, the
1618
+ * roster and mute state all stay on poolse's own channels — see
1619
+ * `CallsResource` and `VoiceRoom`. This object owns audio and video
1620
+ * packets and nothing else. A client joins both: `voice:conversation:<id>`
1621
+ * for who is here and what they are doing, this for what they sound and
1622
+ * look like.
1623
+ *
1624
+ * ## Why an SFU rather than the mesh
1625
+ *
1626
+ * {@link VoiceRoom} connects every participant to every other one, so
1627
+ * each uploads N-1 encoded copies of their own camera. At four people
1628
+ * that is roughly 3 Mbps of sustained upload from a phone plus three
1629
+ * simultaneous encodes — the handset overheats, iOS throttles, and
1630
+ * quality collapses for everyone. Audio survives it because Opus is
1631
+ * ~25x cheaper; video does not.
1632
+ *
1633
+ * The SFU also makes the mid-call camera toggle tractable. Turning a
1634
+ * camera on mid-call means renegotiating a live peer connection, which
1635
+ * the mesh cannot do — it offers once, on peer discovery. Here it is
1636
+ * `setCameraEnabled`.
1637
+ *
1638
+ * ## Availability
1639
+ *
1640
+ * A deployment with no SFU configured answers 503, which arrives as
1641
+ * `tokenProvider` returning `null`. That is not an error: the caller
1642
+ * falls back to the mesh, which is what every call used before this
1643
+ * existed. `join()` resolves `false` to say so.
1644
+ */
1645
+ declare class CallRoom {
1646
+ private readonly livekit;
1647
+ private readonly tokenProvider;
1648
+ private readonly startWithVideo;
1649
+ private readonly startMuted;
1650
+ private room;
1651
+ private status;
1652
+ private selfId;
1653
+ private holders;
1654
+ private readonly statusListeners;
1655
+ private readonly participantListeners;
1656
+ private readonly errorListeners;
1657
+ /** Bound once so `off()` in teardown removes the same references. */
1658
+ private readonly onRoomChange;
1659
+ constructor(opts: CallRoomOptions);
1660
+ getStatus(): CallRoomStatus;
1661
+ onStatus(fn: (status: CallRoomStatus) => void): Unsubscribe;
1662
+ onParticipants(fn: (participants: CallParticipant[]) => void): Unsubscribe;
1663
+ onError(fn: (error: Error) => void): Unsubscribe;
1664
+ getParticipants(): CallParticipant[];
1665
+ /**
1666
+ * Connect to the SFU.
1667
+ *
1668
+ * Resolves `true` once media is flowing, `false` when the deployment
1669
+ * has no SFU — the caller should fall back to the mesh rather than
1670
+ * treat that as a failed call.
1671
+ */
1672
+ join(): Promise<boolean>;
1673
+ /** Release one holder; disconnects once none are left. */
1674
+ leave(): void;
1675
+ /**
1676
+ * Turn the camera on or off mid-call.
1677
+ *
1678
+ * Off genuinely stops publishing rather than sending black frames, so
1679
+ * the capture indicator goes out and the uplink is freed. LiveKit
1680
+ * renegotiates underneath.
1681
+ */
1682
+ setCameraEnabled(enabled: boolean): Promise<void>;
1683
+ /** Mute or unmute the microphone. */
1684
+ setMicrophoneEnabled(enabled: boolean): Promise<void>;
1685
+ isCameraEnabled(): boolean;
1686
+ isMicrophoneEnabled(): boolean;
1687
+ private withLocal;
1688
+ private bind;
1689
+ private toParticipant;
1690
+ private teardown;
1691
+ private setStatus;
1692
+ private emitParticipants;
1693
+ private emitError;
1694
+ /** The local participant's poolse user id, once connected. */
1695
+ getSelfId(): string | null;
1696
+ }
1697
+
1425
1698
  interface IceServerResponse {
1426
1699
  ice_servers: VoiceIceServer[];
1427
1700
  ttl_seconds: number;
@@ -1481,9 +1754,27 @@ declare class Poolse {
1481
1754
  readonly realtime: PoolseRealtime;
1482
1755
  /** STUN/TURN servers for WebRTC — see `IceServersResource`. */
1483
1756
  readonly iceServers: IceServersResource;
1757
+ /** SFU credentials for a call's media — see `CallTokensResource`. */
1758
+ readonly callTokens: CallTokensResource;
1484
1759
  private readonly resolved;
1485
1760
  private readonly tokenCache;
1486
1761
  constructor(config: PoolseConfig);
1762
+ /**
1763
+ * A call's media, carried by the SFU.
1764
+ *
1765
+ * Media only — ringing, presence, roster and mute state stay on
1766
+ * poolse's own channels, and a client joins both. See {@link CallRoom}.
1767
+ *
1768
+ * `livekit` is your app's `livekit-client` import. This package cannot
1769
+ * import it for you: tsup rewrites `require()` into `__require()`,
1770
+ * which Metro cannot follow, so a dependency required from in here is
1771
+ * absent from every React Native bundle.
1772
+ *
1773
+ * import * as livekit from 'livekit-client';
1774
+ * const call = poolse.call(conversationId, { livekit, video: true });
1775
+ * const usingSfu = await call.join(); // false = no SFU, use the mesh
1776
+ */
1777
+ call(conversationId: string, opts: Omit<CallRoomOptions, 'tokenProvider'> & Partial<Pick<CallRoomOptions, 'tokenProvider'>>): CallRoom;
1487
1778
  /**
1488
1779
  * Tear down the SDK: close the WebSocket, drop all channels.
1489
1780
  * No-op for REST — fetch() doesn't keep persistent state.
@@ -1546,8 +1837,8 @@ declare class AuthError extends ApiError {
1546
1837
  declare function isWebRtcAvailable(): boolean;
1547
1838
  declare function createBrowserWebRtcAdapter(): WebRtcAdapter;
1548
1839
 
1549
- declare const version = "2.9.0";
1840
+ declare const version = "2.10.1";
1550
1841
 
1551
1842
  declare function safeUuid(): string;
1552
1843
 
1553
- export { type AddMemberOptions, ApiError, type Attachment, type AttachmentDownloadResponse, AttachmentHandle, type AttachmentOptions, type AttachmentProgressEvent, type AttachmentStatus, type AttachmentUploadInput, type AttachmentUploadRequest, type AttachmentUploadResponse, AttachmentsResource, AuthError, type CallAccepted, type CallBusy, type CallCancelled, type CallDeclined, type CallEnded, CallsResource, type Conversation, ConversationChannel, type ConversationCreateRequest, type ConversationCreatedEvent, ConversationHandle, type ConversationList, ConversationMessages, type ConversationType, type ConversationUpdateRequest, type ConversationUpdatedEvent, ConversationsResource, type Device, type DeviceEnvironment, type DevicePlatform, DevicesResource, type ErrorEnvelope, type IceServerResponse, IceServersResource, type IncomingCall, type IsoDateTime, type Me, MeResource, type MemberReadEvent, type MemberRole, type Membership, type MembershipCreateRequest, type MembershipList, type MentionEvent, type Message, type MessageCreateRequest, type MessageDeletedEvent, MessageHandle, type MessageList, type MessageNewEvent, type MessageType, type MessageUpdateRequest, type MessageUpdatedEvent, MessagesResource, NetworkError, type OutgoingCall, POOLSE_API_URL, Poolse, type PoolseConfig, PoolseError, PoolseRealtime, type PoolseUserProfile, type PresenceSnapshot, type QuotedMessagePreview, RateLimitedError, type ReactionEvent, type ReactionRequest, type ReadRequest, type RealtimeStatus, type RegisterDeviceRequest, type TypingEvent, type Unsubscribe, UserChannel, UsersResource, type Uuid, type VoiceCandidate, type VoiceDescription, type VoiceIceServer, type VoiceParticipant, type VoicePeerConnection, VoiceRoom, type VoiceRoomOptions, type VoiceStatus, type VoiceStream, type VoiceTrack, type WebRtcAdapter, createBrowserWebRtcAdapter, isWebRtcAvailable, safeUuid, version };
1844
+ export { type AddMemberOptions, ApiError, type Attachment, type AttachmentDownloadResponse, AttachmentHandle, type AttachmentOptions, type AttachmentProgressEvent, type AttachmentStatus, type AttachmentUploadInput, type AttachmentUploadRequest, type AttachmentUploadResponse, AttachmentsResource, AuthError, type CallAccepted, type CallBusy, type CallCancelled, type CallConnection, type CallDeclined, type CallEnded, type CallMedia, type CallParticipant, CallRoom, type CallRoomOptions, type CallRoomStatus, CallTokensResource, CallsResource, type CheckedLiveKitModule, type Conversation, ConversationChannel, type ConversationCreateRequest, type ConversationCreatedEvent, ConversationHandle, type ConversationList, ConversationMessages, type ConversationType, type ConversationUpdateRequest, type ConversationUpdatedEvent, ConversationsResource, type Device, type DeviceEnvironment, type DevicePlatform, DevicesResource, type ErrorEnvelope, type IceServerResponse, IceServersResource, type IncomingCall, type IsoDateTime, type LiveKitModule, type LiveKitParticipant, type LiveKitPublication, type LiveKitRoomHandle, type LiveKitTrack, type LiveKitTrackReference, type Me, MeResource, type MemberReadEvent, type MemberRole, type Membership, type MembershipCreateRequest, type MembershipList, type MentionEvent, type Message, type MessageCreateRequest, type MessageDeletedEvent, MessageHandle, type MessageList, type MessageNewEvent, type MessageType, type MessageUpdateRequest, type MessageUpdatedEvent, MessagesResource, NetworkError, type OutgoingCall, POOLSE_API_URL, Poolse, type PoolseConfig, PoolseError, PoolseRealtime, type PoolseUserProfile, type PresenceSnapshot, type QuotedMessagePreview, RateLimitedError, type ReactionEvent, type ReactionRequest, type ReadRequest, type RealtimeStatus, type RegisterDeviceRequest, type TypingEvent, type Unsubscribe$1 as Unsubscribe, UserChannel, UsersResource, type Uuid, type VoiceCandidate, type VoiceDescription, type VoiceIceServer, type VoiceParticipant, type VoicePeerConnection, VoiceRoom, type VoiceRoomOptions, type VoiceStatus, type VoiceStream, type VoiceTrack, type WebRtcAdapter, createBrowserWebRtcAdapter, isWebRtcAvailable, safeUuid, version };