@liveblocks/node 3.8.0 → 3.8.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.cjs +9 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -3
- package/dist/index.d.ts +1 -3
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -107,9 +107,7 @@ type CreateThreadOptions<M extends BaseMetadata> = {
|
|
|
107
107
|
}>;
|
|
108
108
|
};
|
|
109
109
|
type RoomPermission = [] | ["room:write"] | ["room:read", "room:presence:write"];
|
|
110
|
-
type RoomAccesses = Record<string, [
|
|
111
|
-
"room:write"
|
|
112
|
-
] | ["room:read", "room:presence:write"]>;
|
|
110
|
+
type RoomAccesses = Record<string, ["room:write"] | ["room:read", "room:presence:write"] | ["room:read", "room:presence:write", "comments:write"]>;
|
|
113
111
|
type RoomMetadata = Record<string, string | string[]>;
|
|
114
112
|
type QueryRoomMetadata = Record<string, string>;
|
|
115
113
|
type RoomData = {
|
package/dist/index.d.ts
CHANGED
|
@@ -107,9 +107,7 @@ type CreateThreadOptions<M extends BaseMetadata> = {
|
|
|
107
107
|
}>;
|
|
108
108
|
};
|
|
109
109
|
type RoomPermission = [] | ["room:write"] | ["room:read", "room:presence:write"];
|
|
110
|
-
type RoomAccesses = Record<string, [
|
|
111
|
-
"room:write"
|
|
112
|
-
] | ["room:read", "room:presence:write"]>;
|
|
110
|
+
type RoomAccesses = Record<string, ["room:write"] | ["room:read", "room:presence:write"] | ["room:read", "room:presence:write", "comments:write"]>;
|
|
113
111
|
type RoomMetadata = Record<string, string | string[]>;
|
|
114
112
|
type QueryRoomMetadata = Record<string, string>;
|
|
115
113
|
type RoomData = {
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { detectDupes } from "@liveblocks/core";
|
|
|
3
3
|
|
|
4
4
|
// src/version.ts
|
|
5
5
|
var PKG_NAME = "@liveblocks/node";
|
|
6
|
-
var PKG_VERSION = "3.8.
|
|
6
|
+
var PKG_VERSION = "3.8.1";
|
|
7
7
|
var PKG_FORMAT = "esm";
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
@@ -567,7 +567,13 @@ var Liveblocks = class {
|
|
|
567
567
|
* @returns The created room.
|
|
568
568
|
*/
|
|
569
569
|
async createRoom(roomId, params, options) {
|
|
570
|
-
const {
|
|
570
|
+
const {
|
|
571
|
+
defaultAccesses,
|
|
572
|
+
groupsAccesses,
|
|
573
|
+
usersAccesses,
|
|
574
|
+
metadata,
|
|
575
|
+
tenantId
|
|
576
|
+
} = params;
|
|
571
577
|
const res = await this.#post(
|
|
572
578
|
options?.idempotent ? url2`/v2/rooms?idempotent` : url2`/v2/rooms`,
|
|
573
579
|
{
|
|
@@ -575,6 +581,7 @@ var Liveblocks = class {
|
|
|
575
581
|
defaultAccesses,
|
|
576
582
|
groupsAccesses,
|
|
577
583
|
usersAccesses,
|
|
584
|
+
tenantId,
|
|
578
585
|
metadata
|
|
579
586
|
},
|
|
580
587
|
options
|