@poolse/react 3.8.0 → 3.10.0
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/CHANGELOG.md +61 -0
- package/README.md +54 -2
- package/dist/index.cjs +2865 -111
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +942 -3
- package/dist/index.d.ts +942 -3
- package/dist/index.js +2489 -31
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { Poolse, PoolseConfig, TrackActivityOptions, Conversation, Uuid, UnreadTotals, OutboxEntry, Me, ConversationCreateRequest, Membership, MemberRole, Message, MessageCreateRequest, Presence, RealtimeStatus, Attachment, AttachmentUploadInput, PoolseUserProfile, AppEvent, CallRoomStatus, CallParticipant, CameraFacing, CallDeviceKind, CallDevice, LiveKitModule, LiveCall } from '@poolse/sdk';
|
|
3
|
-
export { ApiError, ApiErrorCode, AppEvent, Attachment, AttachmentStatus, AttachmentUploadInput, AttachmentUploadRequest, AttachmentUploadResponse, AuthError, CallEndReason, CallLog, CallLogDisplay, CallLogEntry, CallLogMedia, CallMissedEntry, CallParticipantStatus, Conversation, ConversationCreateRequest, ConversationReadEvent, DestroyOptions, DeviceKind, LinkPreview, LinkPreviewType, LiveCall, LiveCallMember, LocalMessageStatus, Me, MemberRole, Membership, Message, MessageCreateRequest, MessageDiscardedError, MessageEdit, MessageEditList, MessageQueuedError, MessageType, MessageUpdateRequest, NetworkError, NotificationPreferences, NotifyLevel, OutboxEntry, OwnMembership, OwnMembershipUpdateRequest, Poolse, PoolseConfig, PoolseError, PoolseStorage, PoolseUserProfile, Presence, PresenceActivity, PresenceChangedEvent, PresenceState, RateLimitedError, ReadReceiptsState, RealtimeStatus, RoomSession, ThreadParticipant, ThreadUpdatedEvent, TimingEvent, TrackActivityOptions, UnreadSummary, UnreadTotals, Uuid, callLogDisplayFor, createIndexedDbStorage, describeCallLog, formatCallDuration, formatCallLogPreview, isCallLogMessage, isMessageVisibleTo, isTombstone, memoryStorage, mergeMessage, parseCallLog, parseCallLogBody, toTombstone } from '@poolse/sdk';
|
|
2
|
+
import { Poolse, PoolseConfig, TrackActivityOptions, Conversation, Uuid, UnreadTotals, OutboxEntry, Me, ConversationCreateRequest, Membership, MemberRole, Message, MessageCreateRequest, Presence, RealtimeStatus, Attachment, AttachmentUploadInput, PoolseUserProfile, AgentInfo, AppEvent, CallRoom, CallBackground, CallDisconnectReason, CallRoomStatus, CallParticipant, CameraFacing, CallDeviceKind, CallDevice, LiveKitModule, TrackProcessorsModule, LiveCall, Agenda, AgendaItem, BreakoutSession, BreakoutRoom, BreakoutPlan, RoomSession, CallMeeting, MeetingAttendee, ParticipantQuality, CallReaction, LobbyState, MarkedMoment, Question, QuestionStatus, MyRoom, RoomPresenceEntry, AnnotationState, ScreenAnnotations, StageState, StageRole, WhiteboardItem, WhiteboardModel, CallQualityReport, YjsModule, WhiteboardAccess, CallRecordingState, CallTranscriptionState, ConsentDecision, Recording, RecordingMode, LiveTranscriptSegment, Transcript, TranscriptWithSegments, RecordingStartedEvent, RecordingChangedEvent, RecordingConsentEvent, TranscriptChangedEvent, AgentApproval, AgentBrief, AgentBriefInput, CallAgent, AgentProfile, CallAgentMode, AgentSaid, AgentEscalation, EscalationReply, WhisperState, WhisperHint, ConversationAgent, AgentScopeUpdate, AgentScope, Followup, MemoryFact, MemoryKind, FollowupStatus, MeetingAnswer, CallSummary, Clip, RecordingPlayback, CatchUp, CatchUpRequest, Poll, ScheduledMessage, ScheduleMessageRequest, MessageTranslation, AttachmentKind } from '@poolse/sdk';
|
|
3
|
+
export { APPROVAL_REASON_MAX, ASK_QUESTION_MAX, AgentApproval, AgentBrief, AgentBriefInput, AgentEscalation, AgentInfo, AgentMessageKind, AgentMeta, AgentProfile, AgentSaid, AgentScope, AgentScopeUpdate, ApiError, ApiErrorCode, AppEvent, ApprovalDetail, ApprovalStatus, Attachment, AttachmentStatus, AttachmentUploadInput, AttachmentUploadRequest, AttachmentUploadResponse, AuthError, BRIEF_RULE_MAX, BRIEF_TEXT_MAX, CallAgent, CallAgentMode, CallAgentState, CallAgentStatus, CallEndReason, CallLog, CallLogDisplay, CallLogEntry, CallLogMedia, CallMissedEntry, CallParticipantStatus, CallRecordingState, CallSummary, CallTranscriptionState, Citation, CitationType, Clip, ClipInfo, ClipStatus, ConsentDecision, Conversation, ConversationAgent, ConversationCreateRequest, ConversationReadEvent, ConversationRecordingSettings, DEFAULT_DOC_LIMITS, DestroyOptions, DeviceKind, DocChannel, DocClosedReason, DocEditor, DocJoinInfo, DocLimits, DocPushError, DocRights, ESCALATION_ANSWER_MAX, EscalationDecision, EscalationReply, EscalationStatus, FollowUpDraft, Followup, FollowupStatus, LinkPreview, LinkPreviewType, LiveCall, LiveCallMember, LiveTranscriptSegment, LocalMessageStatus, Me, MeetingAnswer, MeetingCallRef, MeetingCitation, MeetingMoment, MemberRole, Membership, MemoryFact, MemoryKind, Message, MessageCreateRequest, MessageDiscardedError, MessageEdit, MessageEditList, MessageQueuedError, MessageType, MessageUpdateRequest, NetworkError, NotificationPreferences, NotifyLevel, OutboxEntry, OwnMembership, OwnMembershipUpdateRequest, PLAYBACK_RATES, POOLSE_SERVICE_IDENTITY_PREFIX, PlaybackRate, Poolse, PoolseConfig, PoolseError, PoolseStorage, PoolseUserProfile, Presence, PresenceActivity, PresenceChangedEvent, PresenceState, RateLimitedError, ReadReceiptsState, RealtimeStatus, Recording, RecordingChapter, RecordingDownload, RecordingMode, RecordingNotice, RecordingNoticeDisplay, RecordingPlayback, RecordingStatus, RoomSession, SilenceRange, SummaryActionItem, SummaryItem, SummaryMoment, SummarySection, SummaryStatus, ThreadParticipant, ThreadUpdatedEvent, TimingEvent, TrackActivityOptions, Transcript, TranscriptBlock, TranscriptSegment, TranscriptSpeaker, TranscriptWithSegments, UnreadSummary, UnreadTotals, Uuid, WhisperHint, WhisperHintKind, WhisperSource, WhisperState, activeSegmentIndex, agentFromWire, agentMetaOf, applyLiveSegment, approvalErrorMessage, approvalFromWire, approvalIdOf, approvalStatusLabel, callAgentModeLabel, callAgentOfParticipant, callAgentStateLabel, callAgentStateOf, callLogDisplayFor, captureErrorMessage, captureLabel, chapterIndexAt, chaptersOf, citationLabel, citationsOf, clipFromWire, clipOf, createIndexedDbStorage, describeCallLog, describeRecordingNotice, escalationErrorMessage, escalationStatusLabel, findInText, formatCallDuration, formatCallLogPreview, formatCallSummaryPreview, formatClock, formatDue, formatRecordingNoticePreview, formatTimeRange, groupTranscript, isCallLogMessage, isMessageVisibleTo, isServiceParticipant, isTombstone, meetingsErrorMessage, memoryStorage, mergeMessage, messageAgent, momentOf, parseCallLog, parseCallLogBody, parseCallSummary, parseRecordingNotice, parseRecordingNoticeBody, recordingNoticeDisplayFor, silencesFromSegments, silencesOf, skipSilenceTarget, speakerName, summaryFromWire, summaryStatusText, summaryStyleLabel, toTombstone, toolLabel, whisperErrorMessage, whisperHintKindLabel } from '@poolse/sdk';
|
|
4
|
+
import * as react from 'react';
|
|
4
5
|
import { ReactNode } from 'react';
|
|
5
6
|
|
|
6
7
|
interface PoolseProviderProps {
|
|
@@ -79,6 +80,13 @@ declare function PoolseProvider({ client, config: configProp, background, trackA
|
|
|
79
80
|
* realtime control).
|
|
80
81
|
*/
|
|
81
82
|
declare function usePoolse(): Poolse;
|
|
83
|
+
/**
|
|
84
|
+
* The client of the nearest provider, or null outside one — for hooks
|
|
85
|
+
* that also take an explicit client (`useUnreadTotals(client)`).
|
|
86
|
+
*
|
|
87
|
+
* @internal
|
|
88
|
+
*/
|
|
89
|
+
declare function useOptionalPoolse(): Poolse | null;
|
|
82
90
|
|
|
83
91
|
interface UseUnreadTotals extends UnreadTotals {
|
|
84
92
|
/** Fetch the totals again. */
|
|
@@ -718,6 +726,12 @@ interface UseUserState {
|
|
|
718
726
|
profile: PoolseUserProfile | null;
|
|
719
727
|
/** True while the SDK is mid-fetch (or before the first fetch fires). */
|
|
720
728
|
loading: boolean;
|
|
729
|
+
/**
|
|
730
|
+
* Set when this user is an agent (AG1) — from the server's `is_agent`
|
|
731
|
+
* on members and messages, or the resolver's `isAgent`. Show the
|
|
732
|
+
* Agent badge whenever it is set.
|
|
733
|
+
*/
|
|
734
|
+
agent: AgentInfo | null;
|
|
721
735
|
}
|
|
722
736
|
/**
|
|
723
737
|
* Resolve the tenant's `external_id` (your own user id) to
|
|
@@ -736,6 +750,11 @@ interface UseUserState {
|
|
|
736
750
|
* the new one lands.
|
|
737
751
|
*/
|
|
738
752
|
declare function useUser(externalId: string | null | undefined): UseUserState;
|
|
753
|
+
/**
|
|
754
|
+
* Whether `externalId` is an agent, live (AG1): its `AgentInfo`, or null
|
|
755
|
+
* for a person. Reads only what is known — it never calls the resolver.
|
|
756
|
+
*/
|
|
757
|
+
declare function useAgent(externalId: string | null | undefined): AgentInfo | null;
|
|
739
758
|
|
|
740
759
|
/**
|
|
741
760
|
* Run `handler` for every app-defined event sent to the signed-in user
|
|
@@ -748,6 +767,144 @@ declare function useUser(externalId: string | null | undefined): UseUserState;
|
|
|
748
767
|
*/
|
|
749
768
|
declare function useAppEvent(handler: (evt: AppEvent) => void): void;
|
|
750
769
|
|
|
770
|
+
/** A text selection: `start === end` is a caret. */
|
|
771
|
+
interface TextSelection {
|
|
772
|
+
start: number;
|
|
773
|
+
end: number;
|
|
774
|
+
}
|
|
775
|
+
/** The text after a change and where the selection goes. */
|
|
776
|
+
interface TextEdit {
|
|
777
|
+
value: string;
|
|
778
|
+
selection: TextSelection;
|
|
779
|
+
}
|
|
780
|
+
/** What the formatting toolbar can do. Every format is plain Markdown (GFM). */
|
|
781
|
+
type FormatKind = 'bold' | 'italic' | 'strike' | 'code' | 'link' | 'quote' | 'bulletList' | 'numberedList' | 'checklist' | 'codeBlock' | 'table';
|
|
782
|
+
/** The toolbar's buttons in their default order, with labels and icon names. */
|
|
783
|
+
declare const FORMAT_ACTIONS: ReadonlyArray<{
|
|
784
|
+
kind: FormatKind;
|
|
785
|
+
label: string;
|
|
786
|
+
/** Short glyph for toolbars without icons. */
|
|
787
|
+
glyph: string;
|
|
788
|
+
/** Web shortcut, if any (Cmd on macOS, Ctrl elsewhere). */
|
|
789
|
+
shortcut?: string;
|
|
790
|
+
}>;
|
|
791
|
+
/**
|
|
792
|
+
* Apply one toolbar format to `value` at `selection`.
|
|
793
|
+
*
|
|
794
|
+
* - Inline formats (bold, italic, strike, code) wrap the selection, or
|
|
795
|
+
* unwrap it when it is already wrapped; with a caret they insert the
|
|
796
|
+
* pair and put the caret between.
|
|
797
|
+
* - Line formats (quote, lists, checklist) prefix every selected line,
|
|
798
|
+
* or remove the prefix when every line already has it. Numbered lists
|
|
799
|
+
* count from 1.
|
|
800
|
+
* - `link` makes `[text](url)` and selects `url`; `codeBlock` fences the
|
|
801
|
+
* selection; `table` inserts a two-column table on its own lines.
|
|
802
|
+
*/
|
|
803
|
+
declare function applyFormat(value: string, selection: TextSelection, kind: FormatKind): TextEdit;
|
|
804
|
+
/** Map a web keyboard shortcut to a format, or `null`. `mod` is Cmd on macOS, Ctrl elsewhere. */
|
|
805
|
+
declare function formatForShortcut(e: {
|
|
806
|
+
key: string;
|
|
807
|
+
metaKey?: boolean;
|
|
808
|
+
ctrlKey?: boolean;
|
|
809
|
+
shiftKey?: boolean;
|
|
810
|
+
altKey?: boolean;
|
|
811
|
+
}): FormatKind | null;
|
|
812
|
+
/** One command the composer can suggest after `/`. */
|
|
813
|
+
interface SlashCommand {
|
|
814
|
+
/** The command without the slash, e.g. `jira`. Lowercase letters, digits, `-` and `_`. */
|
|
815
|
+
name: string;
|
|
816
|
+
/** One line: what it does. */
|
|
817
|
+
description?: string;
|
|
818
|
+
/** Argument hint shown after the name, e.g. `[issue key]`. */
|
|
819
|
+
usage?: string;
|
|
820
|
+
/** Who provides it (an app's display name), shown muted. Never an id. */
|
|
821
|
+
source?: string;
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
824
|
+
* The `/command` being typed: only at the very start of the message, before
|
|
825
|
+
* the first space. `null` otherwise (a slash mid-sentence, a URL).
|
|
826
|
+
*/
|
|
827
|
+
declare function slashQuery(value: string, caret: number): {
|
|
828
|
+
query: string;
|
|
829
|
+
} | null;
|
|
830
|
+
/** Commands matching `query`: name prefix first, then name or description containing it. */
|
|
831
|
+
declare function filterSlashCommands<T extends SlashCommand>(commands: readonly T[], query: string, limit?: number): T[];
|
|
832
|
+
/** Replace the typed `/que` with `/name ` and put the caret after it. */
|
|
833
|
+
declare function applySlashCommand(value: string, name: string): TextEdit;
|
|
834
|
+
/**
|
|
835
|
+
* The composer's suggestions from the Workspace's `GET /workspace/v1/commands`
|
|
836
|
+
* (`{commands: [{command, description, usage, app: {id, name}}]}`): the app's
|
|
837
|
+
* name becomes `source`. Run a sent command with `POST /workspace/v1/commands/run`.
|
|
838
|
+
*/
|
|
839
|
+
declare function slashCommandsFromWorkspace(commands: ReadonlyArray<{
|
|
840
|
+
command: string;
|
|
841
|
+
description?: string | null;
|
|
842
|
+
usage?: string | null;
|
|
843
|
+
app?: {
|
|
844
|
+
id?: string;
|
|
845
|
+
name?: string | null;
|
|
846
|
+
} | null;
|
|
847
|
+
}>): SlashCommand[];
|
|
848
|
+
/** Split a sent `/name args` into its parts, or `null` for a normal message. */
|
|
849
|
+
declare function parseSlashCommand(value: string): {
|
|
850
|
+
name: string;
|
|
851
|
+
args: string;
|
|
852
|
+
} | null;
|
|
853
|
+
/** A user group offered in the @ menu next to members. */
|
|
854
|
+
interface MentionGroup {
|
|
855
|
+
/** What is typed after `@`: lowercase letters, digits, `-`, `_`. */
|
|
856
|
+
handle: string;
|
|
857
|
+
/** Shown name, e.g. "Design team". */
|
|
858
|
+
name: string;
|
|
859
|
+
/** Shown as "12 people". */
|
|
860
|
+
memberCount?: number;
|
|
861
|
+
/** Shown muted instead of the count, e.g. "On call: Ana". */
|
|
862
|
+
description?: string;
|
|
863
|
+
}
|
|
864
|
+
/** Groups whose handle or name matches `query`: handle prefix, then name word prefix, then anywhere. */
|
|
865
|
+
declare function rankMentionGroups<T extends MentionGroup>(groups: readonly T[], query: string, limit?: number): T[];
|
|
866
|
+
/** "12 people", "1 person", or the description. `null` when there's neither. */
|
|
867
|
+
declare function mentionGroupMeta(g: MentionGroup): string | null;
|
|
868
|
+
/**
|
|
869
|
+
* The speeds a voice or video message cycles through (recordings of calls
|
|
870
|
+
* use the SDK's `PLAYBACK_RATES`, which add 1.25×). Times format with the
|
|
871
|
+
* SDK's `formatClock`.
|
|
872
|
+
*/
|
|
873
|
+
declare const MESSAGE_PLAYBACK_RATES: readonly [1, 1.5, 2];
|
|
874
|
+
type MessagePlaybackRate = (typeof MESSAGE_PLAYBACK_RATES)[number];
|
|
875
|
+
/** The next speed after `rate` (wraps 2× → 1×). */
|
|
876
|
+
declare function nextPlaybackRate(rate: number): MessagePlaybackRate;
|
|
877
|
+
/** `1×`, `1.5×`, `2×`. */
|
|
878
|
+
declare function playbackRateLabel(rate: number): string;
|
|
879
|
+
/**
|
|
880
|
+
* Downsample raw amplitude samples (0–1) to `bars` bars for a waveform,
|
|
881
|
+
* taking each bucket's peak. Empty input gives flat bars.
|
|
882
|
+
*/
|
|
883
|
+
declare function waveformBars(samples: readonly number[], bars: number): number[];
|
|
884
|
+
/** A timed line of a media transcript (voice and video messages). */
|
|
885
|
+
interface MediaTranscriptSegment {
|
|
886
|
+
start_ms: number;
|
|
887
|
+
end_ms: number;
|
|
888
|
+
text: string;
|
|
889
|
+
/** Speaker label, when the transcript has more than one. */
|
|
890
|
+
speaker?: string | null;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
/** One rule that matched: its name as the admin wrote it. The text itself is never echoed back. */
|
|
894
|
+
interface DlpMatch {
|
|
895
|
+
rule: string;
|
|
896
|
+
excerpt?: string;
|
|
897
|
+
}
|
|
898
|
+
interface DlpOutcome {
|
|
899
|
+
/** `warn`: may be sent with `dlp_acknowledged: true`. `block`: can't be sent. */
|
|
900
|
+
action: 'warn' | 'block';
|
|
901
|
+
matches: DlpMatch[];
|
|
902
|
+
/** The admin's own wording, when set. */
|
|
903
|
+
message?: string;
|
|
904
|
+
}
|
|
905
|
+
/** The DLP outcome carried by a failed send, or `null` for any other error. */
|
|
906
|
+
declare function readDlpError(err: unknown): DlpOutcome | null;
|
|
907
|
+
|
|
751
908
|
/**
|
|
752
909
|
* Where this message sits inside a same-sender, same-day, in-window
|
|
753
910
|
* cluster. Drives the bubble's corner treatment + the row's
|
|
@@ -793,8 +950,43 @@ interface UseCallRoomOptions {
|
|
|
793
950
|
* Pass `0` to never report it.
|
|
794
951
|
*/
|
|
795
952
|
aloneGraceMs?: number;
|
|
953
|
+
/**
|
|
954
|
+
* Bring the microphone and camera back by themselves when publish
|
|
955
|
+
* permission returns (after accepting recording consent). Defaults to
|
|
956
|
+
* true; false: call `republish` yourself.
|
|
957
|
+
*/
|
|
958
|
+
republishOnPermission?: boolean;
|
|
959
|
+
/**
|
|
960
|
+
* `@livekit/track-processors` (`import * as trackProcessors from
|
|
961
|
+
* '@livekit/track-processors'`) for background blur and replacement on
|
|
962
|
+
* the web. Optional peer; without it `backgroundSupported` is false.
|
|
963
|
+
*/
|
|
964
|
+
trackProcessors?: TrackProcessorsModule;
|
|
965
|
+
/** Start with the browser's noise suppression on (default) or off. */
|
|
966
|
+
noiseSuppression?: boolean;
|
|
796
967
|
}
|
|
797
968
|
interface UseCallRoom {
|
|
969
|
+
/**
|
|
970
|
+
* The media object itself, for the data-channel hooks
|
|
971
|
+
* (`useCallReactions`, `useScreenAnnotations`, `useCallQuality`). null
|
|
972
|
+
* until there is a conversation.
|
|
973
|
+
*/
|
|
974
|
+
room: CallRoom | null;
|
|
975
|
+
/** Background blur / replacement can run here (CL7). */
|
|
976
|
+
backgroundSupported: boolean;
|
|
977
|
+
/** The chosen camera background. */
|
|
978
|
+
background: CallBackground;
|
|
979
|
+
/** Resolves false when it could not be applied (see `error`). */
|
|
980
|
+
setBackground: (effect: CallBackground) => Promise<boolean>;
|
|
981
|
+
noiseSuppression: boolean;
|
|
982
|
+
setNoiseSuppression: (enabled: boolean) => Promise<void>;
|
|
983
|
+
/** The connection dropped and LiveKit is bringing it back (CL15). */
|
|
984
|
+
reconnecting: boolean;
|
|
985
|
+
/**
|
|
986
|
+
* Why the SFU connection last ended, or null while it hasn't. `moved`:
|
|
987
|
+
* you took the call on another device — say so, and don't hang up.
|
|
988
|
+
*/
|
|
989
|
+
disconnectReason: CallDisconnectReason | null;
|
|
798
990
|
status: CallRoomStatus;
|
|
799
991
|
/** Everyone on the call, the local participant first. */
|
|
800
992
|
participants: CallParticipant[];
|
|
@@ -874,6 +1066,18 @@ interface UseCallRoom {
|
|
|
874
1066
|
/** Share a screen (the platform's picker opens) or stop sharing. */
|
|
875
1067
|
setScreenShareEnabled: (enabled: boolean) => Promise<void>;
|
|
876
1068
|
toggleScreenShare: () => Promise<void>;
|
|
1069
|
+
/**
|
|
1070
|
+
* The SFU lets you publish. False while the call is recorded or
|
|
1071
|
+
* transcribed under `consent: "required"` and you haven't accepted —
|
|
1072
|
+
* show the consent prompt; you still hear and see everyone.
|
|
1073
|
+
*/
|
|
1074
|
+
canPublish: boolean;
|
|
1075
|
+
/**
|
|
1076
|
+
* Turn the microphone and camera back on as you last had them. Done
|
|
1077
|
+
* for you when publish permission returns unless
|
|
1078
|
+
* `republishOnPermission: false`.
|
|
1079
|
+
*/
|
|
1080
|
+
republish: () => Promise<void>;
|
|
877
1081
|
}
|
|
878
1082
|
/**
|
|
879
1083
|
* A call's media, carried by the SFU.
|
|
@@ -953,6 +1157,368 @@ interface UseRoom {
|
|
|
953
1157
|
*/
|
|
954
1158
|
declare function useRoom(conversationId: string | null, opts: UseRoomOptions): UseRoom;
|
|
955
1159
|
|
|
1160
|
+
interface UseStage {
|
|
1161
|
+
stage: StageState | null;
|
|
1162
|
+
/** Your role (`speaker` until the stage has loaded). */
|
|
1163
|
+
myRole: StageRole;
|
|
1164
|
+
isModerator: boolean;
|
|
1165
|
+
/** Your hand is up. */
|
|
1166
|
+
handRaised: boolean;
|
|
1167
|
+
roleOf: (userId: string) => StageRole;
|
|
1168
|
+
raiseHand: () => Promise<boolean>;
|
|
1169
|
+
/** Lower your hand, or (moderator) someone else's. */
|
|
1170
|
+
lowerHand: (userId?: string) => Promise<boolean>;
|
|
1171
|
+
/** Moderator: bring up (`speaker`), send back (`audience`), hand over (`moderator`). */
|
|
1172
|
+
setRole: (userId: string, role: StageRole) => Promise<boolean>;
|
|
1173
|
+
/** Moderator: turn stage mode on (`stage`) or off (`meeting`). */
|
|
1174
|
+
setMode: (mode: 'stage' | 'meeting') => Promise<boolean>;
|
|
1175
|
+
error: Error | null;
|
|
1176
|
+
pending: boolean;
|
|
1177
|
+
}
|
|
1178
|
+
/** Roles and raised hands in a call (CL3). */
|
|
1179
|
+
declare function useStage(conversationId: string | null, callId: string | null, selfUserId?: string | null): UseStage;
|
|
1180
|
+
interface UseQuestions {
|
|
1181
|
+
/** Open by votes, then answered; dismissed ones left out. */
|
|
1182
|
+
questions: Question[];
|
|
1183
|
+
openCount: number;
|
|
1184
|
+
ask: (text: string, opts?: {
|
|
1185
|
+
anonymous?: boolean;
|
|
1186
|
+
}) => Promise<boolean>;
|
|
1187
|
+
/** Vote, or take your vote back. */
|
|
1188
|
+
toggleVote: (questionId: string) => Promise<void>;
|
|
1189
|
+
setStatus: (questionId: string, status: QuestionStatus) => Promise<void>;
|
|
1190
|
+
error: Error | null;
|
|
1191
|
+
pending: boolean;
|
|
1192
|
+
}
|
|
1193
|
+
/** A call's Q&A with upvotes (CL3). Your own votes are kept across events, which don't carry them. */
|
|
1194
|
+
declare function useQuestions(conversationId: string | null, callId: string | null): UseQuestions;
|
|
1195
|
+
interface UseBreakouts {
|
|
1196
|
+
session: BreakoutSession | null;
|
|
1197
|
+
/** Your assigned room, or null. */
|
|
1198
|
+
myRoom: BreakoutRoom | null;
|
|
1199
|
+
/** Seconds until the rooms end (or, while closing, until everyone is back); null without a timer. */
|
|
1200
|
+
secondsLeft: number | null;
|
|
1201
|
+
open: (plan: BreakoutPlan) => Promise<boolean>;
|
|
1202
|
+
close: (afterSeconds?: number) => Promise<boolean>;
|
|
1203
|
+
/** Join your room: the session to connect with. */
|
|
1204
|
+
join: (roomId: string) => Promise<RoomSession | null>;
|
|
1205
|
+
returnToMain: () => Promise<RoomSession | null>;
|
|
1206
|
+
error: Error | null;
|
|
1207
|
+
pending: boolean;
|
|
1208
|
+
}
|
|
1209
|
+
interface UseBreakoutsOptions {
|
|
1210
|
+
/**
|
|
1211
|
+
* Follow the split by yourself (MEETINGS.md §5): when you get a room,
|
|
1212
|
+
* join it and hand its session to `onJoinRoom` (connect to it, then
|
|
1213
|
+
* leave the main room's media — don't hang up); when the split closes,
|
|
1214
|
+
* return and hand the main room's session to `onReturn`.
|
|
1215
|
+
*/
|
|
1216
|
+
auto?: boolean;
|
|
1217
|
+
onJoinRoom?: (session: RoomSession, room: BreakoutRoom) => void;
|
|
1218
|
+
onReturn?: (session: RoomSession) => void;
|
|
1219
|
+
}
|
|
1220
|
+
/** Breakout rooms of a call (CL5), with a ticking countdown. */
|
|
1221
|
+
declare function useBreakouts(conversationId: string | null, callId: string | null, opts?: UseBreakoutsOptions): UseBreakouts;
|
|
1222
|
+
interface UseLobby {
|
|
1223
|
+
lobby: LobbyState | null;
|
|
1224
|
+
waitingCount: number;
|
|
1225
|
+
admit: (guestId: string) => Promise<boolean>;
|
|
1226
|
+
deny: (guestId: string) => Promise<boolean>;
|
|
1227
|
+
admitAll: () => Promise<boolean>;
|
|
1228
|
+
error: Error | null;
|
|
1229
|
+
pending: boolean;
|
|
1230
|
+
}
|
|
1231
|
+
/**
|
|
1232
|
+
* Who is waiting to be let in (CL10), for members. The lobby is the
|
|
1233
|
+
* conversation's: guests can wait before the call starts (`callId`
|
|
1234
|
+
* null), and an admitted guest joins once one is live.
|
|
1235
|
+
*/
|
|
1236
|
+
declare function useLobby(conversationId: string | null, callId?: string | null): UseLobby;
|
|
1237
|
+
interface UseMoments {
|
|
1238
|
+
moments: MarkedMoment[];
|
|
1239
|
+
mark: (note?: string) => Promise<MarkedMoment | null>;
|
|
1240
|
+
/** The moment you marked last, for a "Marked" confirmation. */
|
|
1241
|
+
lastMarked: MarkedMoment | null;
|
|
1242
|
+
error: Error | null;
|
|
1243
|
+
pending: boolean;
|
|
1244
|
+
}
|
|
1245
|
+
/** Mark a moment in a call (CL14). */
|
|
1246
|
+
declare function useMoments(conversationId: string | null, callId: string | null): UseMoments;
|
|
1247
|
+
interface UseAgenda {
|
|
1248
|
+
agenda: Agenda | null;
|
|
1249
|
+
current: AgendaItem | null;
|
|
1250
|
+
/** How far the current item is over its minutes (ms), ticking. */
|
|
1251
|
+
overrunMs: number;
|
|
1252
|
+
/** The server's last over-time nudge, cleared when the item changes. */
|
|
1253
|
+
overtime: {
|
|
1254
|
+
itemId: string;
|
|
1255
|
+
overByMs: number;
|
|
1256
|
+
} | null;
|
|
1257
|
+
start: (itemId: string) => Promise<boolean>;
|
|
1258
|
+
done: (itemId: string) => Promise<boolean>;
|
|
1259
|
+
reopen: (itemId: string) => Promise<boolean>;
|
|
1260
|
+
error: Error | null;
|
|
1261
|
+
pending: boolean;
|
|
1262
|
+
}
|
|
1263
|
+
/** The agenda on a call (CA5): items checked off as they're covered, with an over-time nudge. */
|
|
1264
|
+
declare function useAgenda(conversationId: string | null, callId: string | null): UseAgenda;
|
|
1265
|
+
interface UseCallReactions {
|
|
1266
|
+
/** Reactions on screen now, oldest first; each stays `visibleMs`. */
|
|
1267
|
+
reactions: CallReaction[];
|
|
1268
|
+
send: (emoji: string) => Promise<boolean>;
|
|
1269
|
+
}
|
|
1270
|
+
/** Reactions floating over a call (CL6). `room` is `useCallRoom(…).room`. */
|
|
1271
|
+
declare function useCallReactions(room: CallRoom | null, opts?: {
|
|
1272
|
+
visibleMs?: number;
|
|
1273
|
+
max?: number;
|
|
1274
|
+
}): UseCallReactions;
|
|
1275
|
+
interface UseScreenAnnotations {
|
|
1276
|
+
state: AnnotationState | null;
|
|
1277
|
+
/** The live layer, to draw on (`begin` / `extend` / `end` / `pointer` / `clear`). */
|
|
1278
|
+
annotations: ScreenAnnotations | null;
|
|
1279
|
+
}
|
|
1280
|
+
/** The pointer and drawing layer over `sharerUserId`'s shared screen (CL4). */
|
|
1281
|
+
declare function useScreenAnnotations(room: CallRoom | null, sharerUserId: string | null, opts?: {
|
|
1282
|
+
fadeMs?: number;
|
|
1283
|
+
}): UseScreenAnnotations;
|
|
1284
|
+
/**
|
|
1285
|
+
* Your own link in plain words, polled while mounted (CL15). null before
|
|
1286
|
+
* the first reading. With `callId` each change is also reported to the
|
|
1287
|
+
* server (`POST /calls/:id/quality`, throttled), which tells the others.
|
|
1288
|
+
*/
|
|
1289
|
+
declare function useCallQuality(room: CallRoom | null, opts?: {
|
|
1290
|
+
intervalMs?: number;
|
|
1291
|
+
callId?: string | null;
|
|
1292
|
+
}): CallQualityReport | null;
|
|
1293
|
+
interface UseCallMeeting {
|
|
1294
|
+
meeting: CallMeeting | null;
|
|
1295
|
+
/** Guests and phones in the call, named. */
|
|
1296
|
+
attendees: MeetingAttendee[];
|
|
1297
|
+
/** Everyone's reported link, by identity. */
|
|
1298
|
+
quality: Record<string, ParticipantQuality>;
|
|
1299
|
+
/**
|
|
1300
|
+
* A name for any identity in the call: a guest's or phone's from the
|
|
1301
|
+
* roster, a member's from `nameFor`, else null — never the id.
|
|
1302
|
+
*/
|
|
1303
|
+
nameOf: (identity: string, nameFor?: (userId: string) => string | null | undefined) => string | null;
|
|
1304
|
+
refresh: () => void;
|
|
1305
|
+
}
|
|
1306
|
+
/** The call snapshot's `meeting` (GET /calls/:id/meeting), kept live by its events. */
|
|
1307
|
+
declare function useCallMeeting(conversationId: string | null, callId: string | null): UseCallMeeting;
|
|
1308
|
+
interface UseCaptions {
|
|
1309
|
+
/** Your captions are on. */
|
|
1310
|
+
on: boolean;
|
|
1311
|
+
/** Who has captions on. */
|
|
1312
|
+
userIds: string[];
|
|
1313
|
+
setOn: (on: boolean) => Promise<boolean>;
|
|
1314
|
+
toggle: () => Promise<boolean>;
|
|
1315
|
+
error: Error | null;
|
|
1316
|
+
pending: boolean;
|
|
1317
|
+
}
|
|
1318
|
+
/**
|
|
1319
|
+
* Your captions toggle (CL13): `PUT /calls/:id/captions`. While anyone
|
|
1320
|
+
* has them on a live transcript runs — show it with `useLiveTranscript`
|
|
1321
|
+
* and `CaptionsOverlay`. Errors: `captions_disabled`,
|
|
1322
|
+
* `transcription_unavailable`, `transcript_stopped`.
|
|
1323
|
+
*/
|
|
1324
|
+
declare function useCaptions(conversationId: string | null, callId: string | null, selfUserId: string | null | undefined): UseCaptions;
|
|
1325
|
+
interface UseWhiteboard {
|
|
1326
|
+
items: WhiteboardItem[];
|
|
1327
|
+
/** The board to draw on; null while opening. */
|
|
1328
|
+
model: WhiteboardModel | null;
|
|
1329
|
+
readOnly: boolean;
|
|
1330
|
+
error: Error | null;
|
|
1331
|
+
}
|
|
1332
|
+
/**
|
|
1333
|
+
* A call's whiteboard (CL12) over the doc relay. `Y` is `yjs`, imported
|
|
1334
|
+
* by your app (`import * as Y from 'yjs'`); `access` defaults to
|
|
1335
|
+
* `poolse.live.whiteboard(callId)`.
|
|
1336
|
+
*/
|
|
1337
|
+
declare function useWhiteboard(callId: string | null, Y: YjsModule | null, opts?: {
|
|
1338
|
+
selfUserId?: string | null;
|
|
1339
|
+
access?: (callId: string) => Promise<WhiteboardAccess>;
|
|
1340
|
+
}): UseWhiteboard;
|
|
1341
|
+
interface UseRoomPresence {
|
|
1342
|
+
/** Your rooms by name (`GET /me/rooms`), each with who's in. */
|
|
1343
|
+
rooms: MyRoom[];
|
|
1344
|
+
/** Conversation id → who's in (drop-in calls anywhere you're a member, rooms or huddles). */
|
|
1345
|
+
presence: Record<string, RoomPresenceEntry>;
|
|
1346
|
+
refresh: () => void;
|
|
1347
|
+
}
|
|
1348
|
+
/**
|
|
1349
|
+
* Who is in each room right now, for a sidebar (CL2): reads
|
|
1350
|
+
* `GET /me/rooms`, then follows `room:participants` on your user topic
|
|
1351
|
+
* (every drop-in call of every conversation you're in — no conversation
|
|
1352
|
+
* needs to be open). Re-reads after a reconnect.
|
|
1353
|
+
*/
|
|
1354
|
+
declare function useRoomPresence(): UseRoomPresence;
|
|
1355
|
+
|
|
1356
|
+
interface UseRecording {
|
|
1357
|
+
/** This server can record (LiveKit Egress). False: hide the Record button. */
|
|
1358
|
+
available: boolean;
|
|
1359
|
+
/** The call is being recorded right now. */
|
|
1360
|
+
active: boolean;
|
|
1361
|
+
/** The snapshot's recording state, kept live; null until read. */
|
|
1362
|
+
recording: CallRecordingState | null;
|
|
1363
|
+
/** The live-transcript state, kept live; null until read. */
|
|
1364
|
+
transcription: CallTranscriptionState | null;
|
|
1365
|
+
/** Something is capturing the call: a recording or a live transcript. */
|
|
1366
|
+
capturing: boolean;
|
|
1367
|
+
/**
|
|
1368
|
+
* Capture needs everyone's consent: whoever hasn't accepted may not
|
|
1369
|
+
* publish (the workspace's or room's `consent: "required"`).
|
|
1370
|
+
*/
|
|
1371
|
+
consentRequired: boolean;
|
|
1372
|
+
/** Your answer for this call; `accepted` too when you started the recording. */
|
|
1373
|
+
myConsent: ConsentDecision | null;
|
|
1374
|
+
/**
|
|
1375
|
+
* Show the consent prompt: the call is captured, consent is required
|
|
1376
|
+
* and you haven't accepted. Declining keeps it true — you stay
|
|
1377
|
+
* listen-only and may change your mind.
|
|
1378
|
+
*/
|
|
1379
|
+
needsConsent: boolean;
|
|
1380
|
+
/**
|
|
1381
|
+
* How people were told when the recording started here: `spoken` (the
|
|
1382
|
+
* assistant said it aloud) or `banner` (no speech on this server — your
|
|
1383
|
+
* banner is the notice). Null until a start was seen on this screen.
|
|
1384
|
+
*/
|
|
1385
|
+
notice: 'spoken' | 'banner' | null;
|
|
1386
|
+
/** The latest recording of this call seen in an event (its `status` moves to `ready` or `failed`). */
|
|
1387
|
+
lastRecording: Recording | null;
|
|
1388
|
+
/** A start, stop or consent request is in flight. */
|
|
1389
|
+
pending: boolean;
|
|
1390
|
+
/** The last request's failure (`ApiError.code`: `not_allowed`, `egress_failed`, …), cleared by the next. */
|
|
1391
|
+
error: Error | null;
|
|
1392
|
+
/** Start recording (`mode` defaults to the room's). Resolves false on failure (see `error`). */
|
|
1393
|
+
start: (mode?: RecordingMode) => Promise<boolean>;
|
|
1394
|
+
stop: () => Promise<boolean>;
|
|
1395
|
+
/**
|
|
1396
|
+
* Answer the consent prompt. After `accepted`, the SFU lets you publish
|
|
1397
|
+
* again: `CallRoom` republishes by itself (or use `useCallRoom().republish`).
|
|
1398
|
+
*/
|
|
1399
|
+
consent: (decision: ConsentDecision) => Promise<boolean>;
|
|
1400
|
+
/** Re-read the call snapshot. */
|
|
1401
|
+
refresh: () => void;
|
|
1402
|
+
}
|
|
1403
|
+
/**
|
|
1404
|
+
* A call's recording and consent state, with the actions — what a Record
|
|
1405
|
+
* button, a "Recording" banner and a consent prompt need. Reads the call
|
|
1406
|
+
* snapshot on mount (so a late joiner sees it at once) and after every
|
|
1407
|
+
* reconnect, then follows `recording:*` / `transcript:*` events.
|
|
1408
|
+
*
|
|
1409
|
+
* const rec = useRecording(call.id, call.conversation_id);
|
|
1410
|
+
* {rec.active && <RecordingBanner … />}
|
|
1411
|
+
* {rec.needsConsent && <ConsentPrompt onAnswer={rec.consent} />}
|
|
1412
|
+
*
|
|
1413
|
+
* Pass `initial` (e.g. `useLiveCall().call`) to skip the first read.
|
|
1414
|
+
*/
|
|
1415
|
+
declare function useRecording(callId: string | null, conversationId: string | null, initial?: {
|
|
1416
|
+
id: string;
|
|
1417
|
+
recording?: CallRecordingState;
|
|
1418
|
+
transcription?: CallTranscriptionState;
|
|
1419
|
+
} | null): UseRecording;
|
|
1420
|
+
|
|
1421
|
+
interface UseLiveTranscriptOptions {
|
|
1422
|
+
/** Open the transcript topic. Defaults to true; false leaves it (e.g. the panel is closed). */
|
|
1423
|
+
enabled?: boolean;
|
|
1424
|
+
/** How many final segments to keep. Defaults to 1000. */
|
|
1425
|
+
maxSegments?: number;
|
|
1426
|
+
}
|
|
1427
|
+
interface UseLiveTranscript {
|
|
1428
|
+
/** Final segments in time order, then each speaker's interim one. */
|
|
1429
|
+
segments: LiveTranscriptSegment[];
|
|
1430
|
+
/** Only the final segments. */
|
|
1431
|
+
finals: LiveTranscriptSegment[];
|
|
1432
|
+
/** The speakers' current interim segments (still talking). */
|
|
1433
|
+
interim: LiveTranscriptSegment[];
|
|
1434
|
+
/** The transcript, once one exists for the call (kept live by `transcript:*` events). */
|
|
1435
|
+
transcript: Transcript | null;
|
|
1436
|
+
/** Transcription is running now. */
|
|
1437
|
+
live: boolean;
|
|
1438
|
+
/** The topic is joined and the catch-up has arrived. */
|
|
1439
|
+
joined: boolean;
|
|
1440
|
+
/** The join was refused (`forbidden`, `not_found`), or a start/stop failed. */
|
|
1441
|
+
error: Error | null;
|
|
1442
|
+
pending: boolean;
|
|
1443
|
+
/**
|
|
1444
|
+
* Start (or resume) transcription — someone in the call. Errors:
|
|
1445
|
+
* `not_in_call`, `transcription_disabled`, `transcription_unavailable`.
|
|
1446
|
+
*/
|
|
1447
|
+
start: () => Promise<boolean>;
|
|
1448
|
+
stop: () => Promise<boolean>;
|
|
1449
|
+
}
|
|
1450
|
+
/**
|
|
1451
|
+
* A call's live transcript: joins `transcript:<call_id>` (opening the
|
|
1452
|
+
* transcript — only those who do get the stream), takes the last 200
|
|
1453
|
+
* final segments as catch-up, then folds in each pushed segment, an
|
|
1454
|
+
* interim one replacing the speaker's previous interim. Re-syncs on
|
|
1455
|
+
* every rejoin. `start` / `stop` switch transcription itself on and off.
|
|
1456
|
+
*/
|
|
1457
|
+
declare function useLiveTranscript(callId: string | null, opts?: UseLiveTranscriptOptions): UseLiveTranscript;
|
|
1458
|
+
|
|
1459
|
+
interface UseTranscript {
|
|
1460
|
+
/** The transcript with speakers and segments; null while loading or when there is none. */
|
|
1461
|
+
transcript: TranscriptWithSegments | null;
|
|
1462
|
+
loading: boolean;
|
|
1463
|
+
/** The call was never transcribed (`not_found`). */
|
|
1464
|
+
missing: boolean;
|
|
1465
|
+
error: Error | null;
|
|
1466
|
+
/**
|
|
1467
|
+
* Correct speaker names: key → name, or null to put back the person's
|
|
1468
|
+
* own. For someone who took part in the call or the conversation's
|
|
1469
|
+
* owners and admins — otherwise rejects with `ApiError` `forbidden`.
|
|
1470
|
+
*/
|
|
1471
|
+
renameSpeakers: (names: Record<string, string | null>) => Promise<void>;
|
|
1472
|
+
refresh: () => void;
|
|
1473
|
+
}
|
|
1474
|
+
/**
|
|
1475
|
+
* A call's stored transcript (`GET /v1/calls/:id/transcript`), for a
|
|
1476
|
+
* viewer: speakers, every segment, speaker renames — kept live by
|
|
1477
|
+
* `transcript:speakers` (someone else renaming) and re-read on
|
|
1478
|
+
* `transcript:ready` (the call ended and the transcript is complete).
|
|
1479
|
+
*/
|
|
1480
|
+
declare function useTranscript(callId: string | null): UseTranscript;
|
|
1481
|
+
interface UseCaptureList<T> {
|
|
1482
|
+
items: T[];
|
|
1483
|
+
loading: boolean;
|
|
1484
|
+
error: Error | null;
|
|
1485
|
+
refresh: () => void;
|
|
1486
|
+
}
|
|
1487
|
+
/** A conversation's transcripts, newest first (no segments) — re-read when one becomes ready. */
|
|
1488
|
+
declare function useTranscripts(conversationId: string | null, opts?: {
|
|
1489
|
+
limit?: number;
|
|
1490
|
+
}): UseCaptureList<Transcript>;
|
|
1491
|
+
/**
|
|
1492
|
+
* A conversation's recordings, newest first — re-read as one starts and
|
|
1493
|
+
* finishes. Play or save one with `poolse.calls.recording.downloadUrl(id)`.
|
|
1494
|
+
*/
|
|
1495
|
+
declare function useRecordings(conversationId: string | null, opts?: {
|
|
1496
|
+
limit?: number;
|
|
1497
|
+
}): UseCaptureList<Recording>;
|
|
1498
|
+
|
|
1499
|
+
interface CaptureState {
|
|
1500
|
+
recording: CallRecordingState | null;
|
|
1501
|
+
transcription: CallTranscriptionState | null;
|
|
1502
|
+
}
|
|
1503
|
+
type CaptureEvent = {
|
|
1504
|
+
type: 'recording:started';
|
|
1505
|
+
evt: RecordingStartedEvent;
|
|
1506
|
+
} | {
|
|
1507
|
+
type: 'recording:stopped';
|
|
1508
|
+
evt: RecordingChangedEvent;
|
|
1509
|
+
} | {
|
|
1510
|
+
type: 'recording:ready';
|
|
1511
|
+
evt: RecordingChangedEvent;
|
|
1512
|
+
} | {
|
|
1513
|
+
type: 'recording:consent';
|
|
1514
|
+
evt: RecordingConsentEvent;
|
|
1515
|
+
} | {
|
|
1516
|
+
type: 'transcript:changed';
|
|
1517
|
+
evt: TranscriptChangedEvent;
|
|
1518
|
+
};
|
|
1519
|
+
/** The capture state after one event (pure). */
|
|
1520
|
+
declare function applyCaptureEvent(state: CaptureState, e: CaptureEvent): CaptureState;
|
|
1521
|
+
|
|
956
1522
|
interface UseReadReceipts {
|
|
957
1523
|
/**
|
|
958
1524
|
* Whether this user sees other people's read state. False → show no
|
|
@@ -992,4 +1558,377 @@ declare function canEditOwnMessage(args: {
|
|
|
992
1558
|
now?: number;
|
|
993
1559
|
}): boolean;
|
|
994
1560
|
|
|
995
|
-
|
|
1561
|
+
interface UseApprovals {
|
|
1562
|
+
/** Pending approvals for you, newest first. */
|
|
1563
|
+
approvals: AgentApproval[];
|
|
1564
|
+
/** True until the first list arrives. */
|
|
1565
|
+
loading: boolean;
|
|
1566
|
+
error: Error | null;
|
|
1567
|
+
refresh: () => Promise<void>;
|
|
1568
|
+
approve: (id: string, reason?: string) => Promise<AgentApproval>;
|
|
1569
|
+
deny: (id: string, reason?: string) => Promise<AgentApproval>;
|
|
1570
|
+
}
|
|
1571
|
+
/**
|
|
1572
|
+
* Everything waiting for your answer (`GET /v1/me/approvals?status=pending`),
|
|
1573
|
+
* kept live: `agent:approval` on your user channel, your own answers, a
|
|
1574
|
+
* re-list after every reconnect, and (as a fallback) every `pollMs`
|
|
1575
|
+
* (default 60 s; 0 turns it off).
|
|
1576
|
+
*/
|
|
1577
|
+
declare function useApprovals(opts?: {
|
|
1578
|
+
pollMs?: number;
|
|
1579
|
+
}): UseApprovals;
|
|
1580
|
+
interface UseApproval {
|
|
1581
|
+
/** The newest state seen; null while loading, or when it isn't yours to see. */
|
|
1582
|
+
approval: AgentApproval | null;
|
|
1583
|
+
/** Looking it up (`id` given and not known yet). */
|
|
1584
|
+
loading: boolean;
|
|
1585
|
+
/** An answer is on its way. */
|
|
1586
|
+
pending: 'approve' | 'deny' | null;
|
|
1587
|
+
/** The last answer failed. */
|
|
1588
|
+
error: Error | null;
|
|
1589
|
+
approve: (reason?: string) => Promise<void>;
|
|
1590
|
+
deny: (reason?: string) => Promise<void>;
|
|
1591
|
+
}
|
|
1592
|
+
/**
|
|
1593
|
+
* One approval, for a card: an id (`approvalIdOf(message)` — loaded from
|
|
1594
|
+
* `GET /v1/me/approvals?status=all` when not known) or an approval from
|
|
1595
|
+
* `useApprovals()`. Follows the shared store, so an answer given here, in
|
|
1596
|
+
* the pending list or on another device shows at once.
|
|
1597
|
+
*/
|
|
1598
|
+
declare function useApproval(source: AgentApproval | string | null): UseApproval;
|
|
1599
|
+
|
|
1600
|
+
interface UseCallAgents {
|
|
1601
|
+
/** The agents in the call now. */
|
|
1602
|
+
agents: CallAgent[];
|
|
1603
|
+
/** Agents you could invite: active, voice on, not in the call yet. */
|
|
1604
|
+
available: AgentProfile[];
|
|
1605
|
+
loading: boolean;
|
|
1606
|
+
error: Error | null;
|
|
1607
|
+
/** The agent id an invite / remove is on its way for. */
|
|
1608
|
+
pending: string | null;
|
|
1609
|
+
/** Bring one in (or change the mode of one already in). */
|
|
1610
|
+
invite: (agentId: string, mode?: Exclude<CallAgentMode, 'delegate'>) => Promise<void>;
|
|
1611
|
+
setMode: (agentId: string, mode: Exclude<CallAgentMode, 'delegate'>) => Promise<void>;
|
|
1612
|
+
remove: (agentId: string) => Promise<void>;
|
|
1613
|
+
/** The last thing an agent said aloud (`agent:said`), for a caption; null until one speaks. */
|
|
1614
|
+
said: AgentSaid | null;
|
|
1615
|
+
/** The agent with this LiveKit identity (its user id), for a tile or roster row. */
|
|
1616
|
+
agentFor: (identity: string) => CallAgent | null;
|
|
1617
|
+
refresh: () => void;
|
|
1618
|
+
}
|
|
1619
|
+
/**
|
|
1620
|
+
* The agents in a live call (`GET /v1/calls/:id/agents`, then
|
|
1621
|
+
* `call:agents`), with invite / remove and the directory's agents you
|
|
1622
|
+
* could still invite. Re-reads after a reconnect.
|
|
1623
|
+
*/
|
|
1624
|
+
declare function useCallAgents(conversationId: string | null, callId: string | null): UseCallAgents;
|
|
1625
|
+
interface UseWhisper {
|
|
1626
|
+
/** Whether you get hints in this call. */
|
|
1627
|
+
on: boolean;
|
|
1628
|
+
/** The whisper as the server has it (the agent, when it started). */
|
|
1629
|
+
whisper: WhisperState | null;
|
|
1630
|
+
/** The agent whispering, when on. */
|
|
1631
|
+
agentName: string | null;
|
|
1632
|
+
/** This call's hints, oldest first (the history and the live ones). */
|
|
1633
|
+
hints: WhisperHint[];
|
|
1634
|
+
/** The newest hint that arrived live since mount (for a toast); null otherwise. */
|
|
1635
|
+
latest: WhisperHint | null;
|
|
1636
|
+
loading: boolean;
|
|
1637
|
+
/** Turning on / off is on its way. */
|
|
1638
|
+
pending: boolean;
|
|
1639
|
+
/** Use `whisperErrorMessage(error)` for the sentence. */
|
|
1640
|
+
error: Error | null;
|
|
1641
|
+
setOn: (on: boolean, opts?: {
|
|
1642
|
+
agentId?: string;
|
|
1643
|
+
}) => Promise<void>;
|
|
1644
|
+
toggle: () => Promise<void>;
|
|
1645
|
+
}
|
|
1646
|
+
/**
|
|
1647
|
+
* Your private hints in one call (AG15): on/off and the history from
|
|
1648
|
+
* `GET /v1/calls/:id/whisper`, then `whisper:hint` / `whisper:changed` on
|
|
1649
|
+
* your user topic. Nobody else in the call sees them — label the panel
|
|
1650
|
+
* "Only you see this".
|
|
1651
|
+
*/
|
|
1652
|
+
declare function useWhisper(callId: string | null): UseWhisper;
|
|
1653
|
+
interface UseEscalations {
|
|
1654
|
+
/** Waiting for your answer, newest first (only this call's with `callId`). */
|
|
1655
|
+
escalations: AgentEscalation[];
|
|
1656
|
+
/** Answered ones seen this session too, newest first. */
|
|
1657
|
+
all: AgentEscalation[];
|
|
1658
|
+
loading: boolean;
|
|
1659
|
+
error: Error | null;
|
|
1660
|
+
/** The escalation id a reply is on its way for. */
|
|
1661
|
+
pending: string | null;
|
|
1662
|
+
/** `{ decision: 'approve' | 'decline' }` or `{ answer }`. */
|
|
1663
|
+
reply: (id: string, reply: EscalationReply) => Promise<AgentEscalation>;
|
|
1664
|
+
/** The agent's name for an escalation (from the directory), else "Your agent". */
|
|
1665
|
+
agentNameOf: (escalation: AgentEscalation) => string;
|
|
1666
|
+
refresh: () => Promise<void>;
|
|
1667
|
+
}
|
|
1668
|
+
/**
|
|
1669
|
+
* Your agent's questions while it attends a meeting for you (AG16),
|
|
1670
|
+
* kept live by `agent:escalation`, a re-list on reconnect and (fallback)
|
|
1671
|
+
* every `pollMs` (default 30 s; 0 off). Answers from a notification
|
|
1672
|
+
* reach the store through the server's event.
|
|
1673
|
+
*/
|
|
1674
|
+
declare function useEscalations(opts?: {
|
|
1675
|
+
callId?: string | null;
|
|
1676
|
+
pollMs?: number;
|
|
1677
|
+
}): UseEscalations;
|
|
1678
|
+
interface UseAgentBrief {
|
|
1679
|
+
/** Your brief for this meeting / call, or null when you've written none. */
|
|
1680
|
+
brief: AgentBrief | null;
|
|
1681
|
+
loading: boolean;
|
|
1682
|
+
saving: boolean;
|
|
1683
|
+
error: Error | null;
|
|
1684
|
+
/** Create or replace (one per person per meeting/call). */
|
|
1685
|
+
save: (input: Omit<AgentBriefInput, 'scheduledMeetingId' | 'callId'>) => Promise<AgentBrief>;
|
|
1686
|
+
/** Delete it (the agent leaves if it's attending). */
|
|
1687
|
+
remove: () => Promise<void>;
|
|
1688
|
+
refresh: () => void;
|
|
1689
|
+
}
|
|
1690
|
+
/** Your brief for an agent attending a scheduled meeting or a live call for you. */
|
|
1691
|
+
declare function useAgentBrief(target: {
|
|
1692
|
+
scheduledMeetingId?: string | null;
|
|
1693
|
+
callId?: string | null;
|
|
1694
|
+
}): UseAgentBrief;
|
|
1695
|
+
|
|
1696
|
+
interface UseAgents {
|
|
1697
|
+
agents: AgentProfile[];
|
|
1698
|
+
loading: boolean;
|
|
1699
|
+
error: Error | null;
|
|
1700
|
+
refresh: () => void;
|
|
1701
|
+
}
|
|
1702
|
+
/** The agents the user can see (`GET /v1/me/agents`) — profiles for a directory or a picker. */
|
|
1703
|
+
declare function useAgents(): UseAgents;
|
|
1704
|
+
interface UseConversationAgents {
|
|
1705
|
+
/** The conversation's agents, each with its `scope` (ceiling, narrowing, effective). */
|
|
1706
|
+
agents: ConversationAgent[];
|
|
1707
|
+
loading: boolean;
|
|
1708
|
+
error: Error | null;
|
|
1709
|
+
refresh: () => void;
|
|
1710
|
+
/** Narrow an agent here (owners and admins; `ApiError` `forbidden` otherwise). */
|
|
1711
|
+
setScope: (agentId: string, patch: AgentScopeUpdate) => Promise<AgentScope>;
|
|
1712
|
+
/** Back to the admin's ceiling. */
|
|
1713
|
+
resetScope: (agentId: string) => Promise<AgentScope>;
|
|
1714
|
+
}
|
|
1715
|
+
/** A conversation's agents and their scopes (`GET /v1/conversations/:id/agents`). */
|
|
1716
|
+
declare function useConversationAgents(conversationId: string | null): UseConversationAgents;
|
|
1717
|
+
interface UseMemory {
|
|
1718
|
+
facts: MemoryFact[];
|
|
1719
|
+
loading: boolean;
|
|
1720
|
+
error: Error | null;
|
|
1721
|
+
refresh: () => void;
|
|
1722
|
+
add: (input: {
|
|
1723
|
+
kind: MemoryKind;
|
|
1724
|
+
text: string;
|
|
1725
|
+
conversationId: string;
|
|
1726
|
+
ownerUserId?: string | null;
|
|
1727
|
+
dueOn?: string | null;
|
|
1728
|
+
}) => Promise<MemoryFact>;
|
|
1729
|
+
update: (id: string, patch: {
|
|
1730
|
+
kind?: MemoryKind;
|
|
1731
|
+
text?: string;
|
|
1732
|
+
ownerUserId?: string | null;
|
|
1733
|
+
dueOn?: string | null;
|
|
1734
|
+
}) => Promise<MemoryFact>;
|
|
1735
|
+
remove: (id: string) => Promise<void>;
|
|
1736
|
+
}
|
|
1737
|
+
/** "What we know" (`GET /v1/me/memory`), optionally for one conversation, kind or search. */
|
|
1738
|
+
declare function useMemory(opts?: {
|
|
1739
|
+
conversationId?: string;
|
|
1740
|
+
kind?: MemoryKind;
|
|
1741
|
+
q?: string;
|
|
1742
|
+
limit?: number;
|
|
1743
|
+
}): UseMemory;
|
|
1744
|
+
interface UseFollowups {
|
|
1745
|
+
followups: Followup[];
|
|
1746
|
+
loading: boolean;
|
|
1747
|
+
error: Error | null;
|
|
1748
|
+
refresh: () => void;
|
|
1749
|
+
done: (id: string) => Promise<Followup>;
|
|
1750
|
+
cancel: (id: string) => Promise<Followup>;
|
|
1751
|
+
}
|
|
1752
|
+
/** Promises an agent is tracking for you (`GET /v1/me/followups`). */
|
|
1753
|
+
declare function useFollowups(opts?: {
|
|
1754
|
+
status?: FollowupStatus;
|
|
1755
|
+
}): UseFollowups;
|
|
1756
|
+
|
|
1757
|
+
interface UseAskMeetings {
|
|
1758
|
+
/** The latest answer; null before the first one or after `reset`. */
|
|
1759
|
+
answer: MeetingAnswer | null;
|
|
1760
|
+
/** The question the answer is for. */
|
|
1761
|
+
question: string | null;
|
|
1762
|
+
loading: boolean;
|
|
1763
|
+
error: Error | null;
|
|
1764
|
+
/** Ask (an empty question is ignored; a longer one is cut at `ASK_QUESTION_MAX`). */
|
|
1765
|
+
ask: (question: string) => Promise<MeetingAnswer | null>;
|
|
1766
|
+
/** Cancel a question on its way and clear the answer. */
|
|
1767
|
+
reset: () => void;
|
|
1768
|
+
}
|
|
1769
|
+
/**
|
|
1770
|
+
* Ask what was said in your meetings (`POST /v1/meetings/ask`): in one
|
|
1771
|
+
* call (`callId`), one conversation's (`conversationId`) or all of them.
|
|
1772
|
+
* A new question cancels the one before.
|
|
1773
|
+
*/
|
|
1774
|
+
declare function useAskMeetings(opts?: {
|
|
1775
|
+
callId?: string | null;
|
|
1776
|
+
conversationId?: string | null;
|
|
1777
|
+
}): UseAskMeetings;
|
|
1778
|
+
interface UseRecordingUrl {
|
|
1779
|
+
/** A short-lived link to the file; null while loading. */
|
|
1780
|
+
url: string | null;
|
|
1781
|
+
contentType: string | null;
|
|
1782
|
+
loading: boolean;
|
|
1783
|
+
error: Error | null;
|
|
1784
|
+
/** Fetch a fresh link — call it when the media fails (links last 5 minutes). */
|
|
1785
|
+
refresh: () => void;
|
|
1786
|
+
}
|
|
1787
|
+
/**
|
|
1788
|
+
* A playable link to a finished recording
|
|
1789
|
+
* (`GET /v1/recordings/:id/download-url`). Links expire after five
|
|
1790
|
+
* minutes: a player calls `refresh()` when loading fails and resumes
|
|
1791
|
+
* where it was. `not_ready` (409) while the file is still being saved.
|
|
1792
|
+
*/
|
|
1793
|
+
declare function useRecordingUrl(recordingId: string | null): UseRecordingUrl;
|
|
1794
|
+
interface UseCallSummary {
|
|
1795
|
+
/** The newest summary seen: `initial`, then the full one / updates. */
|
|
1796
|
+
summary: CallSummary | null;
|
|
1797
|
+
loading: boolean;
|
|
1798
|
+
/** None yet (`404`). */
|
|
1799
|
+
missing: boolean;
|
|
1800
|
+
error: Error | null;
|
|
1801
|
+
refresh: () => void;
|
|
1802
|
+
}
|
|
1803
|
+
/**
|
|
1804
|
+
* A call's summary, live: starts from `initial` (its chat message, via
|
|
1805
|
+
* `parseCallSummary`), fetches the full one (`GET /v1/calls/:id/summary`)
|
|
1806
|
+
* when that copy is `shortened` or absent, and again on every
|
|
1807
|
+
* `summary:ready` for the call (a regeneration, a failure, a deletion).
|
|
1808
|
+
*/
|
|
1809
|
+
declare function useCallSummary(callId: string | null, initial?: CallSummary | null): UseCallSummary;
|
|
1810
|
+
interface UseRecordingPlayback {
|
|
1811
|
+
playback: RecordingPlayback | null;
|
|
1812
|
+
loading: boolean;
|
|
1813
|
+
error: Error | null;
|
|
1814
|
+
/** Fetch again — call it when the media fails (links last 5 minutes). */
|
|
1815
|
+
refresh: () => void;
|
|
1816
|
+
}
|
|
1817
|
+
/**
|
|
1818
|
+
* What a player needs (`GET /v1/recordings/:id/playback`): a 5-minute
|
|
1819
|
+
* link, chapters and the transcript in recording time. `not_ready` (409)
|
|
1820
|
+
* while it is being saved, `recording_deleted` (410).
|
|
1821
|
+
*/
|
|
1822
|
+
declare function useRecordingPlayback(recordingId: string | null): UseRecordingPlayback;
|
|
1823
|
+
interface UseClip {
|
|
1824
|
+
clip: Clip | null;
|
|
1825
|
+
/** A link to play it once `ready` (5 minutes; `refresh` renews it). */
|
|
1826
|
+
url: string | null;
|
|
1827
|
+
loading: boolean;
|
|
1828
|
+
error: Error | null;
|
|
1829
|
+
refresh: () => void;
|
|
1830
|
+
}
|
|
1831
|
+
/**
|
|
1832
|
+
* A clip by id (`GET /v1/clips/:id`), live through `clip:ready` /
|
|
1833
|
+
* `clip:deleted` on its conversation, with a playable link once ready.
|
|
1834
|
+
* Pass `initial` (e.g. what `meetings.createClip` returned) to start from it.
|
|
1835
|
+
*/
|
|
1836
|
+
declare function useClip(clipId: string | null, initial?: Clip | null): UseClip;
|
|
1837
|
+
|
|
1838
|
+
interface UsePoll {
|
|
1839
|
+
poll: Poll | null;
|
|
1840
|
+
myOptionIds: string[];
|
|
1841
|
+
closed: boolean;
|
|
1842
|
+
/** Tap an option: replaces (single choice) or toggles (multiple). Optimistic. */
|
|
1843
|
+
toggle: (optionId: string) => Promise<void>;
|
|
1844
|
+
/** Take your votes back. */
|
|
1845
|
+
clear: () => Promise<void>;
|
|
1846
|
+
/** Close the poll (its sender or an owner/admin). */
|
|
1847
|
+
close: () => Promise<void>;
|
|
1848
|
+
pending: boolean;
|
|
1849
|
+
error: unknown;
|
|
1850
|
+
}
|
|
1851
|
+
/** A poll message's live state: seeded from the message, kept current by `poll:updated`. */
|
|
1852
|
+
declare function usePoll(message: Pick<Message, 'id' | 'conversation_id' | 'poll' | 'my_option_ids'>): UsePoll;
|
|
1853
|
+
interface UsePins {
|
|
1854
|
+
pins: Message[];
|
|
1855
|
+
loading: boolean;
|
|
1856
|
+
error: unknown;
|
|
1857
|
+
pin: (messageId: Uuid) => Promise<void>;
|
|
1858
|
+
unpin: (messageId: Uuid) => Promise<void>;
|
|
1859
|
+
refresh: () => Promise<void>;
|
|
1860
|
+
}
|
|
1861
|
+
/** A conversation's pinned messages, refreshed on `pin:added` / `pin:removed`. */
|
|
1862
|
+
declare function usePins(conversationId: Uuid): UsePins;
|
|
1863
|
+
interface UseThreadFollow {
|
|
1864
|
+
/** `null` until known. */
|
|
1865
|
+
following: boolean | null;
|
|
1866
|
+
setFollowing: (on: boolean) => Promise<void>;
|
|
1867
|
+
error: unknown;
|
|
1868
|
+
}
|
|
1869
|
+
/** Whether you follow a thread (who gets a push for its replies). */
|
|
1870
|
+
declare function useThreadFollow(rootId: Uuid | null | undefined): UseThreadFollow;
|
|
1871
|
+
interface UseCatchUp {
|
|
1872
|
+
result: CatchUp | null;
|
|
1873
|
+
loading: boolean;
|
|
1874
|
+
error: unknown;
|
|
1875
|
+
run: (opts?: CatchUpRequest) => Promise<CatchUp | null>;
|
|
1876
|
+
}
|
|
1877
|
+
/** "What did I miss" on demand: `run()` asks the server (nothing is stored). */
|
|
1878
|
+
declare function useCatchUp(conversationId: Uuid): UseCatchUp;
|
|
1879
|
+
interface UseTranslation {
|
|
1880
|
+
translation: MessageTranslation | null;
|
|
1881
|
+
loading: boolean;
|
|
1882
|
+
error: unknown;
|
|
1883
|
+
/** Show the translation (fetched once per language). */
|
|
1884
|
+
translate: () => Promise<void>;
|
|
1885
|
+
/** Back to the original. */
|
|
1886
|
+
reset: () => void;
|
|
1887
|
+
}
|
|
1888
|
+
/** Translate one message into `language` on demand (the member's preferred language). */
|
|
1889
|
+
declare function useTranslation(messageId: Uuid, language: string): UseTranslation;
|
|
1890
|
+
interface UseScheduledMessages {
|
|
1891
|
+
scheduled: ScheduledMessage[];
|
|
1892
|
+
loading: boolean;
|
|
1893
|
+
error: unknown;
|
|
1894
|
+
schedule: (conversationId: Uuid, req: ScheduleMessageRequest) => Promise<ScheduledMessage>;
|
|
1895
|
+
cancel: (id: Uuid) => Promise<void>;
|
|
1896
|
+
sendNow: (id: Uuid) => Promise<void>;
|
|
1897
|
+
reschedule: (id: Uuid, sendAt: string) => Promise<void>;
|
|
1898
|
+
refresh: () => Promise<void>;
|
|
1899
|
+
}
|
|
1900
|
+
/** Your scheduled messages (optionally in one conversation), kept current by the user-topic events. */
|
|
1901
|
+
declare function useScheduledMessages(conversationId?: Uuid): UseScheduledMessages;
|
|
1902
|
+
interface UseFiles {
|
|
1903
|
+
files: Attachment[];
|
|
1904
|
+
loading: boolean;
|
|
1905
|
+
error: unknown;
|
|
1906
|
+
hasMore: boolean;
|
|
1907
|
+
loadMore: () => Promise<void>;
|
|
1908
|
+
}
|
|
1909
|
+
/** A conversation's files, newest first, page by page; new versions arrive on `attachment:processed`. */
|
|
1910
|
+
declare function useFiles(conversationId: Uuid, kind?: AttachmentKind): UseFiles;
|
|
1911
|
+
|
|
1912
|
+
interface CustomEmoji {
|
|
1913
|
+
/** `^[a-z0-9_+-]{1,32}$`. */
|
|
1914
|
+
name: string;
|
|
1915
|
+
/** Absolute image URL (prefix the Workspace's address to its `url` path). */
|
|
1916
|
+
url: string;
|
|
1917
|
+
}
|
|
1918
|
+
/** `:name:` for a custom emoji. */
|
|
1919
|
+
declare function customEmojiToken(name: string): string;
|
|
1920
|
+
/** The name in a `:name:` token, or `null` for anything else (a Unicode emoji). */
|
|
1921
|
+
declare function parseCustomEmojiToken(token: string): string | null;
|
|
1922
|
+
/** The custom emoji a token names, when it's in `set`. */
|
|
1923
|
+
declare function findCustomEmoji(token: string, set: readonly CustomEmoji[] | undefined): CustomEmoji | null;
|
|
1924
|
+
/** Custom emoji whose name contains every query word (`:` and spaces ignored), prefix matches first. */
|
|
1925
|
+
declare function searchCustomEmoji(set: readonly CustomEmoji[], query: string): CustomEmoji[];
|
|
1926
|
+
/** Give every picker and reaction strip below it the workspace's emoji. */
|
|
1927
|
+
declare function CustomEmojiProvider({ emoji, children, }: {
|
|
1928
|
+
emoji: readonly CustomEmoji[];
|
|
1929
|
+
children?: ReactNode;
|
|
1930
|
+
}): react.FunctionComponentElement<react.ProviderProps<readonly CustomEmoji[]>>;
|
|
1931
|
+
/** The custom emoji in scope (`[]` without a provider). */
|
|
1932
|
+
declare function useCustomEmoji(): readonly CustomEmoji[];
|
|
1933
|
+
|
|
1934
|
+
export { type CaptureEvent, type CaptureState, type ConversationSearchOptions, type CustomEmoji, CustomEmojiProvider, type DlpMatch, type DlpOutcome, EDIT_WINDOW_MS, FORMAT_ACTIONS, type FormatKind, type GroupPosition, MESSAGE_PLAYBACK_RATES, type MediaTranscriptSegment, type MentionGroup, type MessagePlaybackRate, type MessageStream, PoolseProvider, type PoolseProviderProps, type ReactionMap, type SlashCommand, type TextEdit, type TextSelection, type UploadItem, type UploadItemStatus, type UseAgenda, type UseAgentBrief, type UseAgents, type UseApproval, type UseApprovals, type UseAskMeetings, type UseBreakouts, type UseBreakoutsOptions, type UseCallAgents, type UseCallMeeting, type UseCallReactions, type UseCallRoom, type UseCallRoomOptions, type UseCallSummary, type UseCaptions, type UseCaptureList, type UseCatchUp, type UseClip, type UseConversationAgents, type UseEscalations, type UseFiles, type UseFollowups, type UseLiveCall, type UseLiveTranscript, type UseLiveTranscriptOptions, type UseLobby, type UseMemory, type UseMoments, type UseOutbox, type UsePins, type UsePoll, type UseQuestions, type UseReadReceipts, type UseRecording, type UseRecordingPlayback, type UseRecordingUrl, type UseRoom, type UseRoomOptions, type UseRoomPresence, type UseScheduledMessages, type UseScreenAnnotations, type UseStage, type UseThreadFollow, type UseTranscript, type UseTranslation, type UseUnreadQueue, type UseUnreadQueueOptions, type UseUnreadTotals, type UseUserState, type UseWhisper, type UseWhiteboard, applyCaptureEvent, applyFormat, applySlashCommand, canEditOwnMessage, computeGroupPosition, customEmojiToken, filterConversations, filterSlashCommands, findCustomEmoji, formatDayLabel, formatForShortcut, mentionGroupMeta, nextPlaybackRate, orderUnread, parseCustomEmojiToken, parseSlashCommand, playbackRateLabel, rankMentionGroups, readDlpError, receiptsOf, sameDay, sameGroup, searchCustomEmoji, slashCommandsFromWorkspace, slashQuery, useAgenda, useAgent, useAgentBrief, useAgents, useAppEvent, useApproval, useApprovals, useAskMeetings, useAttachmentUpload, useAttachmentUrl, useBreakouts, useCallAgents, useCallMeeting, useCallQuality, useCallReactions, useCallRoom, useCallSummary, useCaptions, useCatchUp, useClientTimings, useClip, useConversation, useConversationAgents, useConversationPresence, useConversations, useCustomEmoji, useEscalations, useFiles, useFollowups, useLiveCall, useLiveTranscript, useLobby, useMe, useMembers, useMemory, useMessageStreams, useMessages, useMoments, useOptionalPoolse, useOutbox, usePins, usePoll, usePoolse, usePresence, usePresenceMany, useQuestions, useReactions, useReadReceipts, useRealtimeStatus, useRecording, useRecordingPlayback, useRecordingUrl, useRecordings, useRoom, useRoomPresence, useScheduledMessages, useScreenAnnotations, useStage, useThread, useThreadFollow, useTranscript, useTranscripts, useTranslation, useTyping, useUnreadQueue, useUnreadTotals, useUser, useUserPresence, useWhisper, useWhiteboard, waveformBars };
|