@liveblocks/node 3.14.0-pre5 → 3.14.0-rc1
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/README.md +1 -1
- package/dist/index.cjs +123 -73
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +50 -13
- package/dist/index.d.ts +50 -13
- package/dist/index.js +107 -57
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -78,7 +78,11 @@ type LiveblocksOptions = {
|
|
|
78
78
|
type CreateSessionOptions<U extends BaseUserMeta = DU> = PartialUnless<U["info"], {
|
|
79
79
|
userInfo: U["info"];
|
|
80
80
|
}> & {
|
|
81
|
+
/**
|
|
82
|
+
* @deprecated Use `organizationId` instead.
|
|
83
|
+
*/
|
|
81
84
|
tenantId?: string;
|
|
85
|
+
organizationId?: string;
|
|
82
86
|
};
|
|
83
87
|
type IdentifyUserOptions<U extends BaseUserMeta = DU> = PartialUnless<U["info"], {
|
|
84
88
|
userInfo: U["info"];
|
|
@@ -91,7 +95,11 @@ type AuthResponse = {
|
|
|
91
95
|
type Identity = {
|
|
92
96
|
userId: string;
|
|
93
97
|
groupIds: string[];
|
|
98
|
+
/**
|
|
99
|
+
* @deprecated Use `organizationId` instead.
|
|
100
|
+
*/
|
|
94
101
|
tenantId?: string;
|
|
102
|
+
organizationId?: string;
|
|
95
103
|
};
|
|
96
104
|
type ThreadParticipants = {
|
|
97
105
|
participantIds: string[];
|
|
@@ -130,6 +138,7 @@ type RoomData = {
|
|
|
130
138
|
id: string;
|
|
131
139
|
createdAt: Date;
|
|
132
140
|
lastConnectionAt?: Date;
|
|
141
|
+
organizationId: string;
|
|
133
142
|
defaultAccesses: RoomPermission;
|
|
134
143
|
usersAccesses: RoomAccesses;
|
|
135
144
|
groupsAccesses: RoomAccesses;
|
|
@@ -230,7 +239,11 @@ type CM = DCM;
|
|
|
230
239
|
type S = DS;
|
|
231
240
|
type U = DU;
|
|
232
241
|
type RoomsQueryCriteria = {
|
|
242
|
+
/**
|
|
243
|
+
* @deprecated Use `organizationId` instead.
|
|
244
|
+
*/
|
|
233
245
|
tenantId?: string;
|
|
246
|
+
organizationId?: string;
|
|
234
247
|
userId?: string;
|
|
235
248
|
groupIds?: string[];
|
|
236
249
|
/**
|
|
@@ -264,7 +277,11 @@ type RoomsQueryCriteria = {
|
|
|
264
277
|
};
|
|
265
278
|
type InboxNotificationsQueryCriteria = {
|
|
266
279
|
userId: string;
|
|
280
|
+
/**
|
|
281
|
+
* @deprecated Use `organizationId` instead.
|
|
282
|
+
*/
|
|
267
283
|
tenantId?: string;
|
|
284
|
+
organizationId?: string;
|
|
268
285
|
/**
|
|
269
286
|
* The query to filter inbox notifications by. It is based on our query language.
|
|
270
287
|
*
|
|
@@ -304,11 +321,15 @@ type CreateRoomOptions = {
|
|
|
304
321
|
groupsAccesses?: RoomAccesses;
|
|
305
322
|
usersAccesses?: RoomAccesses;
|
|
306
323
|
metadata?: RoomMetadata;
|
|
324
|
+
/**
|
|
325
|
+
* @deprecated Use `organizationId` instead.
|
|
326
|
+
*/
|
|
307
327
|
tenantId?: string;
|
|
328
|
+
organizationId?: string;
|
|
308
329
|
/**
|
|
309
|
-
*
|
|
310
|
-
*
|
|
311
|
-
*
|
|
330
|
+
* Preferred storage engine version to use when creating the room. Only takes
|
|
331
|
+
* effect if the room doesn't exist yet. Version 2 can support larger
|
|
332
|
+
* documents, is more performant, and will become the default in the future.
|
|
312
333
|
*/
|
|
313
334
|
engine?: 1 | 2;
|
|
314
335
|
};
|
|
@@ -476,7 +497,7 @@ declare class Liveblocks {
|
|
|
476
497
|
* uniquely identify the user account in your system. The uniqueness of this
|
|
477
498
|
* value will determine how many MAUs will be counted/billed.
|
|
478
499
|
*
|
|
479
|
-
* @param
|
|
500
|
+
* @param options.organizationId (optional) The organization ID to authorize the user for.
|
|
480
501
|
*
|
|
481
502
|
* @param options.userInfo Custom metadata to attach to this user. Data you
|
|
482
503
|
* add here will be visible to all other clients in the room, through the
|
|
@@ -528,7 +549,7 @@ declare class Liveblocks {
|
|
|
528
549
|
* @param params.userId (optional) A filter on users accesses.
|
|
529
550
|
* @param params.metadata (optional) A filter on metadata. Multiple metadata keys can be used to filter rooms.
|
|
530
551
|
* @param params.groupIds (optional) A filter on groups accesses. Multiple groups can be used.
|
|
531
|
-
* @param params.
|
|
552
|
+
* @param params.organizationId (optional) A filter on organization ID.
|
|
532
553
|
* @param params.query (optional) A query to filter rooms by. It is based on our query language. You can filter by metadata and room ID.
|
|
533
554
|
* @param options.signal (optional) An abort signal to cancel the request.
|
|
534
555
|
* @returns A list of rooms.
|
|
@@ -558,7 +579,7 @@ declare class Liveblocks {
|
|
|
558
579
|
* @param params.groupsAccesses (optional) The group accesses for the room. Can contain a maximum of 100 entries. Key length has a limit of 40 characters.
|
|
559
580
|
* @param params.usersAccesses (optional) The user accesses for the room. Can contain a maximum of 100 entries. Key length has a limit of 40 characters.
|
|
560
581
|
* @param params.metadata (optional) The metadata for the room. Supports upto a maximum of 50 entries. Key length has a limit of 40 characters. Value length has a limit of 256 characters.
|
|
561
|
-
* @param params.
|
|
582
|
+
* @param params.organizationId (optional) The organization ID to create the room for.
|
|
562
583
|
* @param options.signal (optional) An abort signal to cancel the request.
|
|
563
584
|
* @returns The created room.
|
|
564
585
|
*/
|
|
@@ -574,7 +595,7 @@ declare class Liveblocks {
|
|
|
574
595
|
* @param params.groupsAccesses (optional) The group accesses for the room if the room will be created. Can contain a maximum of 100 entries. Key length has a limit of 40 characters.
|
|
575
596
|
* @param params.usersAccesses (optional) The user accesses for the room if the room will be created. Can contain a maximum of 100 entries. Key length has a limit of 40 characters.
|
|
576
597
|
* @param params.metadata (optional) The metadata for the room if the room will be created. Supports upto a maximum of 50 entries. Key length has a limit of 40 characters. Value length has a limit of 256 characters.
|
|
577
|
-
* @param params.
|
|
598
|
+
* @param params.organizationId (optional) The organization ID to create the room for.
|
|
578
599
|
* @param options.signal (optional) An abort signal to cancel the request.
|
|
579
600
|
* @returns The room.
|
|
580
601
|
*/
|
|
@@ -1034,7 +1055,7 @@ declare class Liveblocks {
|
|
|
1034
1055
|
* Returns the inbox notifications for a user.
|
|
1035
1056
|
* @param params.userId The user ID to get the inbox notifications from.
|
|
1036
1057
|
* @param params.query The query to filter inbox notifications by. It is based on our query language and can filter by unread.
|
|
1037
|
-
* @param params.
|
|
1058
|
+
* @param params.organizationId (optional) The organization ID to get the inbox notifications for.
|
|
1038
1059
|
* @param options.signal (optional) An abort signal to cancel the request.
|
|
1039
1060
|
*/
|
|
1040
1061
|
getInboxNotifications(params: GetInboxNotificationsOptions, options?: RequestOptions): Promise<Page<InboxNotificationData>>;
|
|
@@ -1046,7 +1067,7 @@ declare class Liveblocks {
|
|
|
1046
1067
|
*
|
|
1047
1068
|
* @param criteria.userId The user ID to get the inbox notifications from.
|
|
1048
1069
|
* @param criteria.query The query to filter inbox notifications by. It is based on our query language and can filter by unread.
|
|
1049
|
-
* @param criteria.
|
|
1070
|
+
* @param criteria.organizationId (optional) The organization ID to get the inbox notifications for.
|
|
1050
1071
|
* @param options.pageSize (optional) The page size to use for each request.
|
|
1051
1072
|
* @param options.signal (optional) An abort signal to cancel the request.
|
|
1052
1073
|
*/
|
|
@@ -1056,13 +1077,17 @@ declare class Liveblocks {
|
|
|
1056
1077
|
/**
|
|
1057
1078
|
* Returns all room subscription settings for a user.
|
|
1058
1079
|
* @param params.userId The user ID to get the room subscription settings from.
|
|
1059
|
-
* @param params.
|
|
1080
|
+
* @param params.organizationId (optional) The organization ID to get the room subscription settings for.
|
|
1060
1081
|
* @param params.startingAfter (optional) The cursor to start the pagination from.
|
|
1061
1082
|
* @param params.limit (optional) The number of items to return.
|
|
1062
1083
|
* @param options.signal (optional) An abort signal to cancel the request.
|
|
1063
1084
|
*/
|
|
1064
1085
|
getUserRoomSubscriptionSettings(params: {
|
|
1065
1086
|
userId: string;
|
|
1087
|
+
organizationId?: string;
|
|
1088
|
+
/**
|
|
1089
|
+
* @deprecated Use `organizationId` instead.
|
|
1090
|
+
*/
|
|
1066
1091
|
tenantId?: string;
|
|
1067
1092
|
} & PaginationOptions, options?: RequestOptions): Promise<Page<UserRoomSubscriptionSettings>>;
|
|
1068
1093
|
/**
|
|
@@ -1114,13 +1139,17 @@ declare class Liveblocks {
|
|
|
1114
1139
|
* @param params.subjectId The subject ID of the triggered inbox notification.
|
|
1115
1140
|
* @param params.activityData The activity data of the triggered inbox notification.
|
|
1116
1141
|
* @param params.roomId (optional) The room ID to trigger the inbox notification for.
|
|
1117
|
-
* @param params.
|
|
1142
|
+
* @param params.organizationId (optional) The organization ID to trigger the inbox notification for.
|
|
1118
1143
|
* @param options.signal (optional) An abort signal to cancel the request.
|
|
1119
1144
|
*/
|
|
1120
1145
|
triggerInboxNotification<K extends KDAD>(params: {
|
|
1121
1146
|
userId: string;
|
|
1122
1147
|
kind: K;
|
|
1123
1148
|
roomId?: string;
|
|
1149
|
+
organizationId?: string;
|
|
1150
|
+
/**
|
|
1151
|
+
* @deprecated Use `organizationId` instead.
|
|
1152
|
+
*/
|
|
1124
1153
|
tenantId?: string;
|
|
1125
1154
|
subjectId: string;
|
|
1126
1155
|
activityData: DAD[K];
|
|
@@ -1138,11 +1167,15 @@ declare class Liveblocks {
|
|
|
1138
1167
|
/**
|
|
1139
1168
|
* Deletes all inbox notifications for a user.
|
|
1140
1169
|
* @param params.userId The user ID for which to delete all the inbox notifications.
|
|
1141
|
-
* @param params.
|
|
1170
|
+
* @param params.organizationId (optional) The organization ID to delete the inbox notifications for.
|
|
1142
1171
|
* @param options.signal (optional) An abort signal to cancel the request.
|
|
1143
1172
|
*/
|
|
1144
1173
|
deleteAllInboxNotifications(params: {
|
|
1145
1174
|
userId: string;
|
|
1175
|
+
organizationId?: string;
|
|
1176
|
+
/**
|
|
1177
|
+
* @deprecated Use `organizationId` instead.
|
|
1178
|
+
*/
|
|
1146
1179
|
tenantId?: string;
|
|
1147
1180
|
}, options?: RequestOptions): Promise<void>;
|
|
1148
1181
|
/**
|
|
@@ -1175,13 +1208,17 @@ declare class Liveblocks {
|
|
|
1175
1208
|
* Create a group
|
|
1176
1209
|
* @param params.groupId The ID of the group to create.
|
|
1177
1210
|
* @param params.memberIds The IDs of the members to add to the group.
|
|
1178
|
-
* @param params.
|
|
1211
|
+
* @param params.organizationId (optional) The organization ID to create the group for.
|
|
1179
1212
|
* @param params.scopes (optional) The scopes to grant to the group. The default is `{ mention: true }`.
|
|
1180
1213
|
* @param options.signal (optional) An abort signal to cancel the request.
|
|
1181
1214
|
*/
|
|
1182
1215
|
createGroup(params: {
|
|
1183
1216
|
groupId: string;
|
|
1184
1217
|
memberIds?: string[];
|
|
1218
|
+
organizationId?: string;
|
|
1219
|
+
/**
|
|
1220
|
+
* @deprecated Use `organizationId` instead.
|
|
1221
|
+
*/
|
|
1185
1222
|
tenantId?: string;
|
|
1186
1223
|
scopes?: GroupScopes;
|
|
1187
1224
|
}, options?: RequestOptions): Promise<GroupData>;
|
package/dist/index.d.ts
CHANGED
|
@@ -78,7 +78,11 @@ type LiveblocksOptions = {
|
|
|
78
78
|
type CreateSessionOptions<U extends BaseUserMeta = DU> = PartialUnless<U["info"], {
|
|
79
79
|
userInfo: U["info"];
|
|
80
80
|
}> & {
|
|
81
|
+
/**
|
|
82
|
+
* @deprecated Use `organizationId` instead.
|
|
83
|
+
*/
|
|
81
84
|
tenantId?: string;
|
|
85
|
+
organizationId?: string;
|
|
82
86
|
};
|
|
83
87
|
type IdentifyUserOptions<U extends BaseUserMeta = DU> = PartialUnless<U["info"], {
|
|
84
88
|
userInfo: U["info"];
|
|
@@ -91,7 +95,11 @@ type AuthResponse = {
|
|
|
91
95
|
type Identity = {
|
|
92
96
|
userId: string;
|
|
93
97
|
groupIds: string[];
|
|
98
|
+
/**
|
|
99
|
+
* @deprecated Use `organizationId` instead.
|
|
100
|
+
*/
|
|
94
101
|
tenantId?: string;
|
|
102
|
+
organizationId?: string;
|
|
95
103
|
};
|
|
96
104
|
type ThreadParticipants = {
|
|
97
105
|
participantIds: string[];
|
|
@@ -130,6 +138,7 @@ type RoomData = {
|
|
|
130
138
|
id: string;
|
|
131
139
|
createdAt: Date;
|
|
132
140
|
lastConnectionAt?: Date;
|
|
141
|
+
organizationId: string;
|
|
133
142
|
defaultAccesses: RoomPermission;
|
|
134
143
|
usersAccesses: RoomAccesses;
|
|
135
144
|
groupsAccesses: RoomAccesses;
|
|
@@ -230,7 +239,11 @@ type CM = DCM;
|
|
|
230
239
|
type S = DS;
|
|
231
240
|
type U = DU;
|
|
232
241
|
type RoomsQueryCriteria = {
|
|
242
|
+
/**
|
|
243
|
+
* @deprecated Use `organizationId` instead.
|
|
244
|
+
*/
|
|
233
245
|
tenantId?: string;
|
|
246
|
+
organizationId?: string;
|
|
234
247
|
userId?: string;
|
|
235
248
|
groupIds?: string[];
|
|
236
249
|
/**
|
|
@@ -264,7 +277,11 @@ type RoomsQueryCriteria = {
|
|
|
264
277
|
};
|
|
265
278
|
type InboxNotificationsQueryCriteria = {
|
|
266
279
|
userId: string;
|
|
280
|
+
/**
|
|
281
|
+
* @deprecated Use `organizationId` instead.
|
|
282
|
+
*/
|
|
267
283
|
tenantId?: string;
|
|
284
|
+
organizationId?: string;
|
|
268
285
|
/**
|
|
269
286
|
* The query to filter inbox notifications by. It is based on our query language.
|
|
270
287
|
*
|
|
@@ -304,11 +321,15 @@ type CreateRoomOptions = {
|
|
|
304
321
|
groupsAccesses?: RoomAccesses;
|
|
305
322
|
usersAccesses?: RoomAccesses;
|
|
306
323
|
metadata?: RoomMetadata;
|
|
324
|
+
/**
|
|
325
|
+
* @deprecated Use `organizationId` instead.
|
|
326
|
+
*/
|
|
307
327
|
tenantId?: string;
|
|
328
|
+
organizationId?: string;
|
|
308
329
|
/**
|
|
309
|
-
*
|
|
310
|
-
*
|
|
311
|
-
*
|
|
330
|
+
* Preferred storage engine version to use when creating the room. Only takes
|
|
331
|
+
* effect if the room doesn't exist yet. Version 2 can support larger
|
|
332
|
+
* documents, is more performant, and will become the default in the future.
|
|
312
333
|
*/
|
|
313
334
|
engine?: 1 | 2;
|
|
314
335
|
};
|
|
@@ -476,7 +497,7 @@ declare class Liveblocks {
|
|
|
476
497
|
* uniquely identify the user account in your system. The uniqueness of this
|
|
477
498
|
* value will determine how many MAUs will be counted/billed.
|
|
478
499
|
*
|
|
479
|
-
* @param
|
|
500
|
+
* @param options.organizationId (optional) The organization ID to authorize the user for.
|
|
480
501
|
*
|
|
481
502
|
* @param options.userInfo Custom metadata to attach to this user. Data you
|
|
482
503
|
* add here will be visible to all other clients in the room, through the
|
|
@@ -528,7 +549,7 @@ declare class Liveblocks {
|
|
|
528
549
|
* @param params.userId (optional) A filter on users accesses.
|
|
529
550
|
* @param params.metadata (optional) A filter on metadata. Multiple metadata keys can be used to filter rooms.
|
|
530
551
|
* @param params.groupIds (optional) A filter on groups accesses. Multiple groups can be used.
|
|
531
|
-
* @param params.
|
|
552
|
+
* @param params.organizationId (optional) A filter on organization ID.
|
|
532
553
|
* @param params.query (optional) A query to filter rooms by. It is based on our query language. You can filter by metadata and room ID.
|
|
533
554
|
* @param options.signal (optional) An abort signal to cancel the request.
|
|
534
555
|
* @returns A list of rooms.
|
|
@@ -558,7 +579,7 @@ declare class Liveblocks {
|
|
|
558
579
|
* @param params.groupsAccesses (optional) The group accesses for the room. Can contain a maximum of 100 entries. Key length has a limit of 40 characters.
|
|
559
580
|
* @param params.usersAccesses (optional) The user accesses for the room. Can contain a maximum of 100 entries. Key length has a limit of 40 characters.
|
|
560
581
|
* @param params.metadata (optional) The metadata for the room. Supports upto a maximum of 50 entries. Key length has a limit of 40 characters. Value length has a limit of 256 characters.
|
|
561
|
-
* @param params.
|
|
582
|
+
* @param params.organizationId (optional) The organization ID to create the room for.
|
|
562
583
|
* @param options.signal (optional) An abort signal to cancel the request.
|
|
563
584
|
* @returns The created room.
|
|
564
585
|
*/
|
|
@@ -574,7 +595,7 @@ declare class Liveblocks {
|
|
|
574
595
|
* @param params.groupsAccesses (optional) The group accesses for the room if the room will be created. Can contain a maximum of 100 entries. Key length has a limit of 40 characters.
|
|
575
596
|
* @param params.usersAccesses (optional) The user accesses for the room if the room will be created. Can contain a maximum of 100 entries. Key length has a limit of 40 characters.
|
|
576
597
|
* @param params.metadata (optional) The metadata for the room if the room will be created. Supports upto a maximum of 50 entries. Key length has a limit of 40 characters. Value length has a limit of 256 characters.
|
|
577
|
-
* @param params.
|
|
598
|
+
* @param params.organizationId (optional) The organization ID to create the room for.
|
|
578
599
|
* @param options.signal (optional) An abort signal to cancel the request.
|
|
579
600
|
* @returns The room.
|
|
580
601
|
*/
|
|
@@ -1034,7 +1055,7 @@ declare class Liveblocks {
|
|
|
1034
1055
|
* Returns the inbox notifications for a user.
|
|
1035
1056
|
* @param params.userId The user ID to get the inbox notifications from.
|
|
1036
1057
|
* @param params.query The query to filter inbox notifications by. It is based on our query language and can filter by unread.
|
|
1037
|
-
* @param params.
|
|
1058
|
+
* @param params.organizationId (optional) The organization ID to get the inbox notifications for.
|
|
1038
1059
|
* @param options.signal (optional) An abort signal to cancel the request.
|
|
1039
1060
|
*/
|
|
1040
1061
|
getInboxNotifications(params: GetInboxNotificationsOptions, options?: RequestOptions): Promise<Page<InboxNotificationData>>;
|
|
@@ -1046,7 +1067,7 @@ declare class Liveblocks {
|
|
|
1046
1067
|
*
|
|
1047
1068
|
* @param criteria.userId The user ID to get the inbox notifications from.
|
|
1048
1069
|
* @param criteria.query The query to filter inbox notifications by. It is based on our query language and can filter by unread.
|
|
1049
|
-
* @param criteria.
|
|
1070
|
+
* @param criteria.organizationId (optional) The organization ID to get the inbox notifications for.
|
|
1050
1071
|
* @param options.pageSize (optional) The page size to use for each request.
|
|
1051
1072
|
* @param options.signal (optional) An abort signal to cancel the request.
|
|
1052
1073
|
*/
|
|
@@ -1056,13 +1077,17 @@ declare class Liveblocks {
|
|
|
1056
1077
|
/**
|
|
1057
1078
|
* Returns all room subscription settings for a user.
|
|
1058
1079
|
* @param params.userId The user ID to get the room subscription settings from.
|
|
1059
|
-
* @param params.
|
|
1080
|
+
* @param params.organizationId (optional) The organization ID to get the room subscription settings for.
|
|
1060
1081
|
* @param params.startingAfter (optional) The cursor to start the pagination from.
|
|
1061
1082
|
* @param params.limit (optional) The number of items to return.
|
|
1062
1083
|
* @param options.signal (optional) An abort signal to cancel the request.
|
|
1063
1084
|
*/
|
|
1064
1085
|
getUserRoomSubscriptionSettings(params: {
|
|
1065
1086
|
userId: string;
|
|
1087
|
+
organizationId?: string;
|
|
1088
|
+
/**
|
|
1089
|
+
* @deprecated Use `organizationId` instead.
|
|
1090
|
+
*/
|
|
1066
1091
|
tenantId?: string;
|
|
1067
1092
|
} & PaginationOptions, options?: RequestOptions): Promise<Page<UserRoomSubscriptionSettings>>;
|
|
1068
1093
|
/**
|
|
@@ -1114,13 +1139,17 @@ declare class Liveblocks {
|
|
|
1114
1139
|
* @param params.subjectId The subject ID of the triggered inbox notification.
|
|
1115
1140
|
* @param params.activityData The activity data of the triggered inbox notification.
|
|
1116
1141
|
* @param params.roomId (optional) The room ID to trigger the inbox notification for.
|
|
1117
|
-
* @param params.
|
|
1142
|
+
* @param params.organizationId (optional) The organization ID to trigger the inbox notification for.
|
|
1118
1143
|
* @param options.signal (optional) An abort signal to cancel the request.
|
|
1119
1144
|
*/
|
|
1120
1145
|
triggerInboxNotification<K extends KDAD>(params: {
|
|
1121
1146
|
userId: string;
|
|
1122
1147
|
kind: K;
|
|
1123
1148
|
roomId?: string;
|
|
1149
|
+
organizationId?: string;
|
|
1150
|
+
/**
|
|
1151
|
+
* @deprecated Use `organizationId` instead.
|
|
1152
|
+
*/
|
|
1124
1153
|
tenantId?: string;
|
|
1125
1154
|
subjectId: string;
|
|
1126
1155
|
activityData: DAD[K];
|
|
@@ -1138,11 +1167,15 @@ declare class Liveblocks {
|
|
|
1138
1167
|
/**
|
|
1139
1168
|
* Deletes all inbox notifications for a user.
|
|
1140
1169
|
* @param params.userId The user ID for which to delete all the inbox notifications.
|
|
1141
|
-
* @param params.
|
|
1170
|
+
* @param params.organizationId (optional) The organization ID to delete the inbox notifications for.
|
|
1142
1171
|
* @param options.signal (optional) An abort signal to cancel the request.
|
|
1143
1172
|
*/
|
|
1144
1173
|
deleteAllInboxNotifications(params: {
|
|
1145
1174
|
userId: string;
|
|
1175
|
+
organizationId?: string;
|
|
1176
|
+
/**
|
|
1177
|
+
* @deprecated Use `organizationId` instead.
|
|
1178
|
+
*/
|
|
1146
1179
|
tenantId?: string;
|
|
1147
1180
|
}, options?: RequestOptions): Promise<void>;
|
|
1148
1181
|
/**
|
|
@@ -1175,13 +1208,17 @@ declare class Liveblocks {
|
|
|
1175
1208
|
* Create a group
|
|
1176
1209
|
* @param params.groupId The ID of the group to create.
|
|
1177
1210
|
* @param params.memberIds The IDs of the members to add to the group.
|
|
1178
|
-
* @param params.
|
|
1211
|
+
* @param params.organizationId (optional) The organization ID to create the group for.
|
|
1179
1212
|
* @param params.scopes (optional) The scopes to grant to the group. The default is `{ mention: true }`.
|
|
1180
1213
|
* @param options.signal (optional) An abort signal to cancel the request.
|
|
1181
1214
|
*/
|
|
1182
1215
|
createGroup(params: {
|
|
1183
1216
|
groupId: string;
|
|
1184
1217
|
memberIds?: string[];
|
|
1218
|
+
organizationId?: string;
|
|
1219
|
+
/**
|
|
1220
|
+
* @deprecated Use `organizationId` instead.
|
|
1221
|
+
*/
|
|
1185
1222
|
tenantId?: string;
|
|
1186
1223
|
scopes?: GroupScopes;
|
|
1187
1224
|
}, options?: RequestOptions): Promise<GroupData>;
|