@cloudflare/realtimekit 1.5.2-staging.9 → 2.0.0-staging.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/EncryptionManager.cjs.js +1 -1
- package/dist/EncryptionManager.d.ts +25 -54
- package/dist/EncryptionManager.es.js +58 -58
- package/dist/browser.js +12 -12
- package/dist/dependencies.txt +9 -9
- package/dist/index.cjs.js +8 -8
- package/dist/index.d.ts +25 -54
- package/dist/index.es.js +3033 -3231
- package/dist/index.es5.js +12905 -14151
- package/dist/index.rn.js +8 -8
- package/dist/ts3.4/dist/EncryptionManager.d.ts +24 -53
- package/dist/ts3.4/dist/index.d.ts +24 -53
- package/package.json +1 -1
|
@@ -2031,31 +2031,6 @@ declare class RoomSocketHandler {
|
|
|
2031
2031
|
getUserPermissions(userId: string): Promise<Pick<PresetTypeV2['permissions'], 'chat' | 'polls' | 'plugins'>>;
|
|
2032
2032
|
}
|
|
2033
2033
|
|
|
2034
|
-
type TranscriptionData = {
|
|
2035
|
-
id: string;
|
|
2036
|
-
name: string;
|
|
2037
|
-
peerId: string;
|
|
2038
|
-
userId: string;
|
|
2039
|
-
customParticipantId: string;
|
|
2040
|
-
transcript: string;
|
|
2041
|
-
isPartialTranscript: boolean;
|
|
2042
|
-
date: Date;
|
|
2043
|
-
};
|
|
2044
|
-
type AiEvents = {
|
|
2045
|
-
['transcript']: (t: TranscriptionData) => void;
|
|
2046
|
-
['*']: (event: string, ...args: any[]) => void;
|
|
2047
|
-
};
|
|
2048
|
-
declare class Ai extends TypedEventEmitter<AiEvents> {
|
|
2049
|
-
transcripts: TranscriptionData[];
|
|
2050
|
-
get telemetry(): Telemetry;
|
|
2051
|
-
constructor(context: Context<ContextState>);
|
|
2052
|
-
static init(context: Context<ContextState>, transcriptionEnabled: boolean): Promise<Ai>;
|
|
2053
|
-
static parseTranscript(transcriptData: string, isPartialTranscript?: boolean): TranscriptionData | undefined;
|
|
2054
|
-
static parseTranscripts(transcriptData: string): TranscriptionData[];
|
|
2055
|
-
getActiveTranscript(): Promise<void>;
|
|
2056
|
-
onTranscript(transcript: TranscriptionData): Promise<void>;
|
|
2057
|
-
}
|
|
2058
|
-
|
|
2059
2034
|
type ActiveTabType = 'screenshare' | 'plugin';
|
|
2060
2035
|
interface ActiveTab {
|
|
2061
2036
|
type: ActiveTabType;
|
|
@@ -2079,7 +2054,6 @@ type MetaEvents = {
|
|
|
2079
2054
|
['meetingStartTimeUpdate']: (payload: {
|
|
2080
2055
|
meetingStartedTimestamp: Date;
|
|
2081
2056
|
}) => void;
|
|
2082
|
-
['transcript']: (t: TranscriptionData) => void;
|
|
2083
2057
|
['activeTabUpdate']: (tab: ActiveTab) => void;
|
|
2084
2058
|
['selfTabUpdate']: (tab: ActiveTab) => void;
|
|
2085
2059
|
['broadcastTabChangesUpdate']: (broadcastTabChanges: boolean) => void;
|
|
@@ -2502,8 +2476,6 @@ type PermissionEvents = {
|
|
|
2502
2476
|
declare class PermissionPreset extends TypedEventEmitter<PermissionEvents> {
|
|
2503
2477
|
private constructor();
|
|
2504
2478
|
private setupEvents;
|
|
2505
|
-
static fromResponse(response: PresetPermissions, viewType: ViewType, context: Context<ContextState>): PermissionPreset;
|
|
2506
|
-
static default(context: Context<ContextState>, viewType: ViewType): PermissionPreset;
|
|
2507
2479
|
static init(context: Context<ContextState>, viewType: ViewType, response?: PresetPermissions): PermissionPreset;
|
|
2508
2480
|
get mediaRoomType(): string;
|
|
2509
2481
|
get stageEnabled(): Readonly<boolean>;
|
|
@@ -2521,29 +2493,19 @@ declare class PermissionPreset extends TypedEventEmitter<PermissionEvents> {
|
|
|
2521
2493
|
get kickParticipant(): Readonly<boolean>;
|
|
2522
2494
|
get pinParticipant(): Readonly<boolean>;
|
|
2523
2495
|
get canRecord(): Readonly<boolean>;
|
|
2524
|
-
get waitingRoomType(): Readonly<WaitingRoomTypes>;
|
|
2525
2496
|
get waitingRoomBehaviour(): Readonly<WaitingRoomTypes>;
|
|
2526
2497
|
get plugins(): Readonly<PresetPermissions['plugins']>;
|
|
2527
2498
|
get polls(): Readonly<PresetPermissions['polls']>;
|
|
2528
|
-
get produceVideo(): Readonly<MediaProductionPermissionType>;
|
|
2529
|
-
get requestProduce(): Readonly<boolean>;
|
|
2530
2499
|
get canProduceVideo(): Readonly<MediaProductionPermissionType>;
|
|
2531
|
-
get produceScreenshare(): Readonly<MediaProductionPermissionType>;
|
|
2532
2500
|
get canProduceScreenshare(): Readonly<MediaProductionPermissionType>;
|
|
2533
|
-
get produceAudio(): Readonly<MediaProductionPermissionType>;
|
|
2534
2501
|
get canProduceAudio(): Readonly<MediaProductionPermissionType>;
|
|
2535
2502
|
get chatPublic(): Readonly<PresetPermissions['chat']['public']>;
|
|
2536
2503
|
get chatPrivate(): Readonly<PresetPermissions['chat']['private']>;
|
|
2537
2504
|
get connectedMeetings(): Readonly<PresetPermissions['connectedMeetings']>;
|
|
2538
2505
|
get hiddenParticipant(): Readonly<boolean>;
|
|
2539
2506
|
get showParticipantList(): Readonly<boolean>;
|
|
2540
|
-
get canChangeParticipantRole(): Readonly<boolean>;
|
|
2541
2507
|
get canChangeParticipantPermissions(): Readonly<boolean>;
|
|
2542
|
-
get canChangeTheme(): Readonly<boolean>;
|
|
2543
|
-
get canPresent(): Readonly<boolean>;
|
|
2544
|
-
get acceptPresentRequests(): Readonly<boolean>;
|
|
2545
2508
|
get canEditDisplayName(): Readonly<boolean>;
|
|
2546
|
-
get maxScreenShareCount(): Readonly<number>;
|
|
2547
2509
|
get isRecorder(): Readonly<boolean>;
|
|
2548
2510
|
get canSpotlight(): Readonly<boolean>;
|
|
2549
2511
|
get canLivestream(): Readonly<boolean>;
|
|
@@ -2671,6 +2633,31 @@ declare class API {
|
|
|
2671
2633
|
setOrganizationId(id: string): void;
|
|
2672
2634
|
}
|
|
2673
2635
|
|
|
2636
|
+
type TranscriptionData = {
|
|
2637
|
+
id: string;
|
|
2638
|
+
name: string;
|
|
2639
|
+
peerId: string;
|
|
2640
|
+
userId: string;
|
|
2641
|
+
customParticipantId: string;
|
|
2642
|
+
transcript: string;
|
|
2643
|
+
isPartialTranscript: boolean;
|
|
2644
|
+
date: Date;
|
|
2645
|
+
};
|
|
2646
|
+
type AiEvents = {
|
|
2647
|
+
['transcript']: (t: TranscriptionData) => void;
|
|
2648
|
+
['*']: (event: string, ...args: any[]) => void;
|
|
2649
|
+
};
|
|
2650
|
+
declare class Ai extends TypedEventEmitter<AiEvents> {
|
|
2651
|
+
transcripts: TranscriptionData[];
|
|
2652
|
+
get telemetry(): Telemetry;
|
|
2653
|
+
constructor(context: Context<ContextState>);
|
|
2654
|
+
static init(context: Context<ContextState>, transcriptionEnabled: boolean): Promise<Ai>;
|
|
2655
|
+
static parseTranscript(transcriptData: string, isPartialTranscript?: boolean): TranscriptionData | undefined;
|
|
2656
|
+
static parseTranscripts(transcriptData: string): TranscriptionData[];
|
|
2657
|
+
getActiveTranscript(): Promise<void>;
|
|
2658
|
+
onTranscript(transcript: TranscriptionData): Promise<void>;
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2674
2661
|
type StageSocketMessage = GetStageRequestsResponse | GetStagePeersResponse | DenyStageAccessRequest | PeerStatusUpdate;
|
|
2675
2662
|
declare class StageSocketHandler {
|
|
2676
2663
|
constructor(socketService: SocketService);
|
|
@@ -3396,8 +3383,6 @@ declare class Client {
|
|
|
3396
3383
|
get stores(): Readonly<StoreManager>;
|
|
3397
3384
|
get audio(): AudioPlaybackManager;
|
|
3398
3385
|
get __internals__(): Readonly<Internals>;
|
|
3399
|
-
joinRoom(): Promise<void>;
|
|
3400
|
-
leaveRoom(state?: LeaveRoomState): Promise<void>;
|
|
3401
3386
|
}
|
|
3402
3387
|
|
|
3403
3388
|
type ClientType = {
|
|
@@ -3736,9 +3721,6 @@ declare class Participants extends TypedEventEmitter<ParticipantsEvents> {
|
|
|
3736
3721
|
setPage(page: number): Promise<void>;
|
|
3737
3722
|
disableAllAudio(allowUnmute: boolean): Promise<void>;
|
|
3738
3723
|
disableAllVideo(): Promise<void>;
|
|
3739
|
-
disableAudio(participantId: string): Promise<void>;
|
|
3740
|
-
disableVideo(participantId: string): Promise<void>;
|
|
3741
|
-
kick(participantId: string): Promise<void>;
|
|
3742
3724
|
kickAll(): Promise<void>;
|
|
3743
3725
|
broadcastMessage(type: Exclude<string, 'spotlight'>, payload: BroadcastMessagePayload, target?: BroadcastMessageTarget): Promise<void>;
|
|
3744
3726
|
getAllJoinedPeers(searchQuery: string, limit: number, offset: number): Promise<{
|
|
@@ -3924,19 +3906,11 @@ declare class Chat extends TypedEventEmitter<ChatEvents> {
|
|
|
3924
3906
|
editFileMessage(messageId: string, file: File | ReactNativeFile): Promise<void>;
|
|
3925
3907
|
editMessage(messageId: string, message: MessagePayload): Promise<void>;
|
|
3926
3908
|
deleteMessage(messageId: string): Promise<void>;
|
|
3927
|
-
getMessagesByUser(userId: string): Message[];
|
|
3928
|
-
getMessagesByType(type: keyof typeof MessageType): Message[];
|
|
3929
3909
|
pin(id: string): Promise<void>;
|
|
3930
3910
|
unpin(id: string): Promise<void>;
|
|
3931
3911
|
fetchPublicMessages({ timestamp, limit, direction, }: FetchMessageOptions): Promise<Message[]>;
|
|
3932
3912
|
fetchPrivateMessages({ timestamp, limit, direction, userId, }: FetchPrivateMessagesOptions): Promise<Message[]>;
|
|
3933
3913
|
fetchPinnedMessages({ timestamp, limit, direction, }: FetchMessageOptions): Promise<Message[]>;
|
|
3934
|
-
getMessages(timeStamp: number, size: number, reversed: boolean, offset?: number): Promise<{
|
|
3935
|
-
messages: Message[];
|
|
3936
|
-
next: boolean;
|
|
3937
|
-
}>;
|
|
3938
|
-
searchMessages(query: string, filters: unknown): Promise<unknown[]>;
|
|
3939
|
-
get pinned(): Message[];
|
|
3940
3914
|
}
|
|
3941
3915
|
|
|
3942
3916
|
declare const enum PRODUCERS_TYPE {
|
|
@@ -4288,7 +4262,6 @@ interface UserDetailsResponse {
|
|
|
4288
4262
|
picture?: string;
|
|
4289
4263
|
loggedIn?: boolean;
|
|
4290
4264
|
scope?: string[];
|
|
4291
|
-
clientSpecificId?: string;
|
|
4292
4265
|
customParticipantId?: string;
|
|
4293
4266
|
organizationId?: string;
|
|
4294
4267
|
}
|
|
@@ -4375,7 +4348,6 @@ interface IParticipant {
|
|
|
4375
4348
|
flags: {
|
|
4376
4349
|
[key: string]: string | boolean;
|
|
4377
4350
|
};
|
|
4378
|
-
clientSpecificId?: string;
|
|
4379
4351
|
customParticipantId?: string;
|
|
4380
4352
|
stageStatus?: StageStatus;
|
|
4381
4353
|
audioMuted: boolean;
|
|
@@ -4395,7 +4367,6 @@ declare class Participant extends TypedEventEmitter<ParticipantEvents> {
|
|
|
4395
4367
|
picture: string;
|
|
4396
4368
|
isHost: boolean;
|
|
4397
4369
|
customParticipantId?: string;
|
|
4398
|
-
get clientSpecificId(): string;
|
|
4399
4370
|
flags: {
|
|
4400
4371
|
[key: string]: string | boolean;
|
|
4401
4372
|
};
|