@cloudflare/realtimekit 2.0.5-staging.1 → 2.1.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/ClientMock.cjs.js +1 -1
- package/dist/ClientMock.es.js +2 -1
- package/dist/EncryptionManager.cjs.js +1 -1
- package/dist/EncryptionManager.d.ts +34 -2
- package/dist/EncryptionManager.es.js +242 -242
- package/dist/browser.js +10 -10
- package/dist/dependencies.txt +1 -1
- package/dist/index.cjs.js +7 -7
- package/dist/index.d.ts +34 -2
- package/dist/index.es.js +2423 -2370
- package/dist/index.es5.js +1710 -1675
- package/dist/index.rn.js +7 -7
- package/dist/ts3.4/dist/EncryptionManager.d.ts +34 -2
- package/dist/ts3.4/dist/index.d.ts +34 -2
- package/package.json +5 -1
- package/AGENTS.md +0 -63
- /package/{LICENSE.txt → LICENSE} +0 -0
|
@@ -799,6 +799,26 @@ interface RoomInfoResponse {
|
|
|
799
799
|
* @generated MessageType for protobuf message socket.room.RoomInfoResponse
|
|
800
800
|
*/
|
|
801
801
|
declare const RoomInfoResponse: RoomInfoResponse$Type;
|
|
802
|
+
declare class ServiceError$Type extends MessageType$1<ServiceError> {
|
|
803
|
+
constructor();
|
|
804
|
+
}
|
|
805
|
+
/**
|
|
806
|
+
* @generated from protobuf message socket.room.ServiceError
|
|
807
|
+
*/
|
|
808
|
+
interface ServiceError {
|
|
809
|
+
/**
|
|
810
|
+
* @generated from protobuf field: optional string message = 1;
|
|
811
|
+
*/
|
|
812
|
+
message?: string;
|
|
813
|
+
/**
|
|
814
|
+
* @generated from protobuf field: optional string code = 2;
|
|
815
|
+
*/
|
|
816
|
+
code?: string;
|
|
817
|
+
}
|
|
818
|
+
/**
|
|
819
|
+
* @generated MessageType for protobuf message socket.room.ServiceError
|
|
820
|
+
*/
|
|
821
|
+
declare const ServiceError: ServiceError$Type;
|
|
802
822
|
declare class CreateRoomRequestPayload$Type extends MessageType$1<CreateRoomRequestPayload> {
|
|
803
823
|
constructor();
|
|
804
824
|
}
|
|
@@ -2044,6 +2064,7 @@ declare class RoomSocketHandler {
|
|
|
2044
2064
|
getUserPermissions(userId: string): Promise<Pick<PresetTypeV2['permissions'], 'chat' | 'polls' | 'plugins'>>;
|
|
2045
2065
|
}
|
|
2046
2066
|
|
|
2067
|
+
declare const ApplyRemoteTitleSync: unique symbol;
|
|
2047
2068
|
type ActiveTabType = 'screenshare' | 'plugin';
|
|
2048
2069
|
interface ActiveTab {
|
|
2049
2070
|
type: ActiveTabType;
|
|
@@ -2067,6 +2088,9 @@ type MetaEvents = {
|
|
|
2067
2088
|
['meetingStartTimeUpdate']: (payload: {
|
|
2068
2089
|
meetingStartedTimestamp: Date;
|
|
2069
2090
|
}) => void;
|
|
2091
|
+
['meetingTitleUpdate']: (payload: {
|
|
2092
|
+
meetingTitle: string;
|
|
2093
|
+
}) => void;
|
|
2070
2094
|
['activeTabUpdate']: (tab: ActiveTab) => void;
|
|
2071
2095
|
['selfTabUpdate']: (tab: ActiveTab) => void;
|
|
2072
2096
|
['broadcastTabChangesUpdate']: (broadcastTabChanges: boolean) => void;
|
|
@@ -2082,6 +2106,7 @@ declare class Meta extends TypedEventEmitter<MetaEvents> {
|
|
|
2082
2106
|
meetingTitle: string;
|
|
2083
2107
|
sessionId: string;
|
|
2084
2108
|
constructor(context: Context<ContextState>, self: Self, viewType: string, roomSocketHandler: RoomSocketHandler, meetingTitle: string);
|
|
2109
|
+
[ApplyRemoteTitleSync](meetingTitle: string): void;
|
|
2085
2110
|
get meetingId(): string;
|
|
2086
2111
|
setBroadcastTabChanges(broadcastTabChanges: boolean): void;
|
|
2087
2112
|
setSelfActiveTab(spotlightTab: ActiveTab, tabChangeSource: TabChangeSource): void;
|
|
@@ -3242,7 +3267,8 @@ declare const ERROR_CODES: {
|
|
|
3242
3267
|
};
|
|
3243
3268
|
declare class ClientError extends Error {
|
|
3244
3269
|
code: keyof typeof ERROR_CODES;
|
|
3245
|
-
|
|
3270
|
+
reason?: string;
|
|
3271
|
+
constructor(message: string, code?: keyof typeof ERROR_CODES, logger?: Logger | undefined, log?: boolean, reason?: string | undefined);
|
|
3246
3272
|
}
|
|
3247
3273
|
|
|
3248
3274
|
declare class StoreManager {
|
|
@@ -3285,6 +3311,7 @@ declare class ConnectedMeetingsSocketHandler {
|
|
|
3285
3311
|
handleConnectedRoomsUpdatedRaw({ payload }: SocketServicePayload): {
|
|
3286
3312
|
id: string;
|
|
3287
3313
|
title: string;
|
|
3314
|
+
error: ServiceError;
|
|
3288
3315
|
}[];
|
|
3289
3316
|
handleConnectedRoomsDeletedRaw({ payload }: SocketServicePayload): {
|
|
3290
3317
|
id: string;
|
|
@@ -3296,8 +3323,13 @@ declare class ConnectedMeetingsSocketHandler {
|
|
|
3296
3323
|
createConnectedRooms(request: CreateRoomRequestPayload[]): Promise<{
|
|
3297
3324
|
id: string;
|
|
3298
3325
|
title: string;
|
|
3326
|
+
error: ServiceError;
|
|
3327
|
+
}[]>;
|
|
3328
|
+
updateConnectedRooms(request: UpdateRoomRequestPayload[]): Promise<{
|
|
3329
|
+
id: string;
|
|
3330
|
+
title: string;
|
|
3331
|
+
error: ServiceError;
|
|
3299
3332
|
}[]>;
|
|
3300
|
-
updateConnectedRooms(request: UpdateRoomRequestPayload[]): Promise<void>;
|
|
3301
3333
|
disableConnectedRooms(meetingIds: string[]): Promise<{
|
|
3302
3334
|
id: string;
|
|
3303
3335
|
}[]>;
|