@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/index.d.ts CHANGED
@@ -768,6 +768,26 @@ interface RoomInfoResponse {
768
768
  * @generated MessageType for protobuf message socket.room.RoomInfoResponse
769
769
  */
770
770
  declare const RoomInfoResponse: RoomInfoResponse$Type;
771
+ declare class ServiceError$Type extends MessageType$1<ServiceError> {
772
+ constructor();
773
+ }
774
+ /**
775
+ * @generated from protobuf message socket.room.ServiceError
776
+ */
777
+ interface ServiceError {
778
+ /**
779
+ * @generated from protobuf field: optional string message = 1;
780
+ */
781
+ message?: string;
782
+ /**
783
+ * @generated from protobuf field: optional string code = 2;
784
+ */
785
+ code?: string;
786
+ }
787
+ /**
788
+ * @generated MessageType for protobuf message socket.room.ServiceError
789
+ */
790
+ declare const ServiceError: ServiceError$Type;
771
791
  declare class CreateRoomRequestPayload$Type extends MessageType$1<CreateRoomRequestPayload> {
772
792
  constructor();
773
793
  }
@@ -2082,6 +2102,7 @@ declare class RoomSocketHandler {
2082
2102
  getUserPermissions(userId: string): Promise<Pick<PresetTypeV2['permissions'], 'chat' | 'polls' | 'plugins'>>;
2083
2103
  }
2084
2104
 
2105
+ declare const ApplyRemoteTitleSync: unique symbol;
2085
2106
  type ActiveTabType = 'screenshare' | 'plugin';
2086
2107
  interface ActiveTab {
2087
2108
  type: ActiveTabType;
@@ -2105,6 +2126,9 @@ type MetaEvents = {
2105
2126
  ['meetingStartTimeUpdate']: (payload: {
2106
2127
  meetingStartedTimestamp: Date;
2107
2128
  }) => void;
2129
+ ['meetingTitleUpdate']: (payload: {
2130
+ meetingTitle: string;
2131
+ }) => void;
2108
2132
  ['activeTabUpdate']: (tab: ActiveTab) => void;
2109
2133
  ['selfTabUpdate']: (tab: ActiveTab) => void;
2110
2134
  ['broadcastTabChangesUpdate']: (broadcastTabChanges: boolean) => void;
@@ -2120,6 +2144,7 @@ declare class Meta extends TypedEventEmitter$1<MetaEvents> {
2120
2144
  meetingTitle: string;
2121
2145
  sessionId: string;
2122
2146
  constructor(context: Context<ContextState>, self: Self, viewType: string, roomSocketHandler: RoomSocketHandler, meetingTitle: string);
2147
+ [ApplyRemoteTitleSync](meetingTitle: string): void;
2123
2148
  get meetingId(): string;
2124
2149
  setBroadcastTabChanges(broadcastTabChanges: boolean): void;
2125
2150
  setSelfActiveTab(spotlightTab: ActiveTab, tabChangeSource: TabChangeSource): void;
@@ -3863,6 +3888,7 @@ declare class ConnectedMeetingsSocketHandler {
3863
3888
  handleConnectedRoomsUpdatedRaw({ payload }: SocketServicePayload): {
3864
3889
  id: string;
3865
3890
  title: string;
3891
+ error: ServiceError;
3866
3892
  }[];
3867
3893
  handleConnectedRoomsDeletedRaw({ payload }: SocketServicePayload): {
3868
3894
  id: string;
@@ -3874,8 +3900,13 @@ declare class ConnectedMeetingsSocketHandler {
3874
3900
  createConnectedRooms(request: CreateRoomRequestPayload[]): Promise<{
3875
3901
  id: string;
3876
3902
  title: string;
3903
+ error: ServiceError;
3904
+ }[]>;
3905
+ updateConnectedRooms(request: UpdateRoomRequestPayload[]): Promise<{
3906
+ id: string;
3907
+ title: string;
3908
+ error: ServiceError;
3877
3909
  }[]>;
3878
- updateConnectedRooms(request: UpdateRoomRequestPayload[]): Promise<void>;
3879
3910
  disableConnectedRooms(meetingIds: string[]): Promise<{
3880
3911
  id: string;
3881
3912
  }[]>;
@@ -4090,7 +4121,8 @@ declare const ERROR_CODES: {
4090
4121
  };
4091
4122
  declare class ClientError extends Error {
4092
4123
  code: keyof typeof ERROR_CODES;
4093
- constructor(message: string, code?: keyof typeof ERROR_CODES, logger?: Logger | undefined, log?: boolean);
4124
+ reason?: string;
4125
+ constructor(message: string, code?: keyof typeof ERROR_CODES, logger?: Logger | undefined, log?: boolean, reason?: string | undefined);
4094
4126
  }
4095
4127
 
4096
4128
  type EventMap = {