@cloudflare/realtimekit 1.5.2-staging.8 → 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 +3053 -3234
- package/dist/index.es5.js +12942 -14125
- 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
package/dist/index.d.ts
CHANGED
|
@@ -2069,31 +2069,6 @@ declare class RoomSocketHandler {
|
|
|
2069
2069
|
getUserPermissions(userId: string): Promise<Pick<PresetTypeV2['permissions'], 'chat' | 'polls' | 'plugins'>>;
|
|
2070
2070
|
}
|
|
2071
2071
|
|
|
2072
|
-
type TranscriptionData = {
|
|
2073
|
-
id: string;
|
|
2074
|
-
name: string;
|
|
2075
|
-
peerId: string;
|
|
2076
|
-
userId: string;
|
|
2077
|
-
customParticipantId: string;
|
|
2078
|
-
transcript: string;
|
|
2079
|
-
isPartialTranscript: boolean;
|
|
2080
|
-
date: Date;
|
|
2081
|
-
};
|
|
2082
|
-
type AiEvents = {
|
|
2083
|
-
['transcript']: (t: TranscriptionData) => void;
|
|
2084
|
-
['*']: (event: string, ...args: any[]) => void;
|
|
2085
|
-
};
|
|
2086
|
-
declare class Ai extends TypedEventEmitter$1<AiEvents> {
|
|
2087
|
-
transcripts: TranscriptionData[];
|
|
2088
|
-
get telemetry(): Telemetry;
|
|
2089
|
-
constructor(context: Context<ContextState>);
|
|
2090
|
-
static init(context: Context<ContextState>, transcriptionEnabled: boolean): Promise<Ai>;
|
|
2091
|
-
static parseTranscript(transcriptData: string, isPartialTranscript?: boolean): TranscriptionData | undefined;
|
|
2092
|
-
static parseTranscripts(transcriptData: string): TranscriptionData[];
|
|
2093
|
-
getActiveTranscript(): Promise<void>;
|
|
2094
|
-
onTranscript(transcript: TranscriptionData): Promise<void>;
|
|
2095
|
-
}
|
|
2096
|
-
|
|
2097
2072
|
type ActiveTabType = 'screenshare' | 'plugin';
|
|
2098
2073
|
interface ActiveTab {
|
|
2099
2074
|
type: ActiveTabType;
|
|
@@ -2117,7 +2092,6 @@ type MetaEvents = {
|
|
|
2117
2092
|
['meetingStartTimeUpdate']: (payload: {
|
|
2118
2093
|
meetingStartedTimestamp: Date;
|
|
2119
2094
|
}) => void;
|
|
2120
|
-
['transcript']: (t: TranscriptionData) => void;
|
|
2121
2095
|
['activeTabUpdate']: (tab: ActiveTab) => void;
|
|
2122
2096
|
['selfTabUpdate']: (tab: ActiveTab) => void;
|
|
2123
2097
|
['broadcastTabChangesUpdate']: (broadcastTabChanges: boolean) => void;
|
|
@@ -2586,9 +2560,6 @@ declare class Participants extends TypedEventEmitter$1<ParticipantsEvents> {
|
|
|
2586
2560
|
setPage(page: number): Promise<void>;
|
|
2587
2561
|
disableAllAudio(allowUnmute: boolean): Promise<void>;
|
|
2588
2562
|
disableAllVideo(): Promise<void>;
|
|
2589
|
-
disableAudio(participantId: string): Promise<void>;
|
|
2590
|
-
disableVideo(participantId: string): Promise<void>;
|
|
2591
|
-
kick(participantId: string): Promise<void>;
|
|
2592
2563
|
kickAll(): Promise<void>;
|
|
2593
2564
|
broadcastMessage(type: Exclude<string, 'spotlight'>, payload: BroadcastMessagePayload, target?: BroadcastMessageTarget): Promise<void>;
|
|
2594
2565
|
getAllJoinedPeers(searchQuery: string, limit: number, offset: number): Promise<{
|
|
@@ -3004,8 +2975,6 @@ type PermissionEvents = {
|
|
|
3004
2975
|
declare class PermissionPreset extends TypedEventEmitter$1<PermissionEvents> {
|
|
3005
2976
|
private constructor();
|
|
3006
2977
|
private setupEvents;
|
|
3007
|
-
static fromResponse(response: PresetPermissions, viewType: ViewType, context: Context<ContextState>): PermissionPreset;
|
|
3008
|
-
static default(context: Context<ContextState>, viewType: ViewType): PermissionPreset;
|
|
3009
2978
|
static init(context: Context<ContextState>, viewType: ViewType, response?: PresetPermissions): PermissionPreset;
|
|
3010
2979
|
get mediaRoomType(): string;
|
|
3011
2980
|
get stageEnabled(): Readonly<boolean>;
|
|
@@ -3023,29 +2992,19 @@ declare class PermissionPreset extends TypedEventEmitter$1<PermissionEvents> {
|
|
|
3023
2992
|
get kickParticipant(): Readonly<boolean>;
|
|
3024
2993
|
get pinParticipant(): Readonly<boolean>;
|
|
3025
2994
|
get canRecord(): Readonly<boolean>;
|
|
3026
|
-
get waitingRoomType(): Readonly<WaitingRoomTypes>;
|
|
3027
2995
|
get waitingRoomBehaviour(): Readonly<WaitingRoomTypes>;
|
|
3028
2996
|
get plugins(): Readonly<PresetPermissions['plugins']>;
|
|
3029
2997
|
get polls(): Readonly<PresetPermissions['polls']>;
|
|
3030
|
-
get produceVideo(): Readonly<MediaProductionPermissionType>;
|
|
3031
|
-
get requestProduce(): Readonly<boolean>;
|
|
3032
2998
|
get canProduceVideo(): Readonly<MediaProductionPermissionType>;
|
|
3033
|
-
get produceScreenshare(): Readonly<MediaProductionPermissionType>;
|
|
3034
2999
|
get canProduceScreenshare(): Readonly<MediaProductionPermissionType>;
|
|
3035
|
-
get produceAudio(): Readonly<MediaProductionPermissionType>;
|
|
3036
3000
|
get canProduceAudio(): Readonly<MediaProductionPermissionType>;
|
|
3037
3001
|
get chatPublic(): Readonly<PresetPermissions['chat']['public']>;
|
|
3038
3002
|
get chatPrivate(): Readonly<PresetPermissions['chat']['private']>;
|
|
3039
3003
|
get connectedMeetings(): Readonly<PresetPermissions['connectedMeetings']>;
|
|
3040
3004
|
get hiddenParticipant(): Readonly<boolean>;
|
|
3041
3005
|
get showParticipantList(): Readonly<boolean>;
|
|
3042
|
-
get canChangeParticipantRole(): Readonly<boolean>;
|
|
3043
3006
|
get canChangeParticipantPermissions(): Readonly<boolean>;
|
|
3044
|
-
get canChangeTheme(): Readonly<boolean>;
|
|
3045
|
-
get canPresent(): Readonly<boolean>;
|
|
3046
|
-
get acceptPresentRequests(): Readonly<boolean>;
|
|
3047
3007
|
get canEditDisplayName(): Readonly<boolean>;
|
|
3048
|
-
get maxScreenShareCount(): Readonly<number>;
|
|
3049
3008
|
get isRecorder(): Readonly<boolean>;
|
|
3050
3009
|
get canSpotlight(): Readonly<boolean>;
|
|
3051
3010
|
get canLivestream(): Readonly<boolean>;
|
|
@@ -3277,19 +3236,11 @@ declare class Chat extends TypedEventEmitter$1<ChatEvents> {
|
|
|
3277
3236
|
editFileMessage(messageId: string, file: File | ReactNativeFile): Promise<void>;
|
|
3278
3237
|
editMessage(messageId: string, message: MessagePayload): Promise<void>;
|
|
3279
3238
|
deleteMessage(messageId: string): Promise<void>;
|
|
3280
|
-
getMessagesByUser(userId: string): Message[];
|
|
3281
|
-
getMessagesByType(type: keyof typeof MessageType): Message[];
|
|
3282
3239
|
pin(id: string): Promise<void>;
|
|
3283
3240
|
unpin(id: string): Promise<void>;
|
|
3284
3241
|
fetchPublicMessages({ timestamp, limit, direction, }: FetchMessageOptions): Promise<Message[]>;
|
|
3285
3242
|
fetchPrivateMessages({ timestamp, limit, direction, userId, }: FetchPrivateMessagesOptions): Promise<Message[]>;
|
|
3286
3243
|
fetchPinnedMessages({ timestamp, limit, direction, }: FetchMessageOptions): Promise<Message[]>;
|
|
3287
|
-
getMessages(timeStamp: number, size: number, reversed: boolean, offset?: number): Promise<{
|
|
3288
|
-
messages: Message[];
|
|
3289
|
-
next: boolean;
|
|
3290
|
-
}>;
|
|
3291
|
-
searchMessages(query: string, filters: unknown): Promise<unknown[]>;
|
|
3292
|
-
get pinned(): Message[];
|
|
3293
3244
|
}
|
|
3294
3245
|
|
|
3295
3246
|
declare class PollSocketHandler {
|
|
@@ -3338,6 +3289,31 @@ declare class Polls extends TypedEventEmitter$1<PollsEvents> {
|
|
|
3338
3289
|
vote(id: string, index: number): Promise<void>;
|
|
3339
3290
|
}
|
|
3340
3291
|
|
|
3292
|
+
type TranscriptionData = {
|
|
3293
|
+
id: string;
|
|
3294
|
+
name: string;
|
|
3295
|
+
peerId: string;
|
|
3296
|
+
userId: string;
|
|
3297
|
+
customParticipantId: string;
|
|
3298
|
+
transcript: string;
|
|
3299
|
+
isPartialTranscript: boolean;
|
|
3300
|
+
date: Date;
|
|
3301
|
+
};
|
|
3302
|
+
type AiEvents = {
|
|
3303
|
+
['transcript']: (t: TranscriptionData) => void;
|
|
3304
|
+
['*']: (event: string, ...args: any[]) => void;
|
|
3305
|
+
};
|
|
3306
|
+
declare class Ai extends TypedEventEmitter$1<AiEvents> {
|
|
3307
|
+
transcripts: TranscriptionData[];
|
|
3308
|
+
get telemetry(): Telemetry;
|
|
3309
|
+
constructor(context: Context<ContextState>);
|
|
3310
|
+
static init(context: Context<ContextState>, transcriptionEnabled: boolean): Promise<Ai>;
|
|
3311
|
+
static parseTranscript(transcriptData: string, isPartialTranscript?: boolean): TranscriptionData | undefined;
|
|
3312
|
+
static parseTranscripts(transcriptData: string): TranscriptionData[];
|
|
3313
|
+
getActiveTranscript(): Promise<void>;
|
|
3314
|
+
onTranscript(transcript: TranscriptionData): Promise<void>;
|
|
3315
|
+
}
|
|
3316
|
+
|
|
3341
3317
|
declare class StoresSocketHandler {
|
|
3342
3318
|
constructor(context: Context<ContextState>, socketService: SocketService);
|
|
3343
3319
|
get logger(): Logger;
|
|
@@ -4236,7 +4212,6 @@ interface UserDetailsResponse {
|
|
|
4236
4212
|
picture?: string;
|
|
4237
4213
|
loggedIn?: boolean;
|
|
4238
4214
|
scope?: string[];
|
|
4239
|
-
clientSpecificId?: string;
|
|
4240
4215
|
customParticipantId?: string;
|
|
4241
4216
|
organizationId?: string;
|
|
4242
4217
|
}
|
|
@@ -4323,7 +4298,6 @@ interface IParticipant {
|
|
|
4323
4298
|
flags: {
|
|
4324
4299
|
[key: string]: string | boolean;
|
|
4325
4300
|
};
|
|
4326
|
-
clientSpecificId?: string;
|
|
4327
4301
|
customParticipantId?: string;
|
|
4328
4302
|
stageStatus?: StageStatus;
|
|
4329
4303
|
audioMuted: boolean;
|
|
@@ -4343,7 +4317,6 @@ declare class Participant extends TypedEventEmitter$1<ParticipantEvents> {
|
|
|
4343
4317
|
picture: string;
|
|
4344
4318
|
isHost: boolean;
|
|
4345
4319
|
customParticipantId?: string;
|
|
4346
|
-
get clientSpecificId(): string;
|
|
4347
4320
|
flags: {
|
|
4348
4321
|
[key: string]: string | boolean;
|
|
4349
4322
|
};
|
|
@@ -4787,8 +4760,6 @@ declare class Client {
|
|
|
4787
4760
|
get stores(): Readonly<StoreManager>;
|
|
4788
4761
|
get audio(): AudioPlaybackManager;
|
|
4789
4762
|
get __internals__(): Readonly<Internals>;
|
|
4790
|
-
joinRoom(): Promise<void>;
|
|
4791
|
-
leaveRoom(state?: LeaveRoomState): Promise<void>;
|
|
4792
4763
|
}
|
|
4793
4764
|
|
|
4794
4765
|
declare enum RequestToJoinType {
|