@liveblocks/node 3.20.0-perm4 → 3.20.0-perm6

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.cts CHANGED
@@ -26,14 +26,11 @@ import { IncomingHttpHeaders } from 'http';
26
26
  * You can define at most 10 room IDs (or patterns) in a single token,
27
27
  * otherwise the token would become too large and unwieldy.
28
28
  *
29
- * You can also use object notation for resource-specific access:
30
- *
31
- * session.allow('my-room', { default: 'write', storage: 'none' })
32
29
  */
33
30
  declare class Session {
34
31
  #private;
35
- readonly FULL_ACCESS: readonly ["room:write"];
36
- readonly READ_ACCESS: readonly ["room:read"];
32
+ readonly FULL_ACCESS: readonly ["*:write"];
33
+ readonly READ_ACCESS: readonly ["*:read"];
37
34
  allow(roomIdOrPattern: string, newPerms: RoomPermissionInput): this;
38
35
  /**
39
36
  * Call this to authorize the session to access Liveblocks. Note that this
package/dist/index.d.ts CHANGED
@@ -26,14 +26,11 @@ import { IncomingHttpHeaders } from 'http';
26
26
  * You can define at most 10 room IDs (or patterns) in a single token,
27
27
  * otherwise the token would become too large and unwieldy.
28
28
  *
29
- * You can also use object notation for resource-specific access:
30
- *
31
- * session.allow('my-room', { default: 'write', storage: 'none' })
32
29
  */
33
30
  declare class Session {
34
31
  #private;
35
- readonly FULL_ACCESS: readonly ["room:write"];
36
- readonly READ_ACCESS: readonly ["room:read"];
32
+ readonly FULL_ACCESS: readonly ["*:write"];
33
+ readonly READ_ACCESS: readonly ["*:read"];
37
34
  allow(roomIdOrPattern: string, newPerms: RoomPermissionInput): this;
38
35
  /**
39
36
  * Call this to authorize the session to access Liveblocks. Note that this
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.20.0-perm4";
6
+ var PKG_VERSION = "3.20.0-perm6";
7
7
  var PKG_FORMAT = "esm";
8
8
 
9
9
  // src/client.ts
@@ -168,8 +168,8 @@ function normalizeStatusCode(statusCode) {
168
168
 
169
169
  // src/Session.ts
170
170
  var MAX_PERMS_PER_SET = 10;
171
- var READ_ACCESS = Object.freeze([Permission.RoomRead]);
172
- var FULL_ACCESS = Object.freeze([Permission.RoomWrite]);
171
+ var READ_ACCESS = Object.freeze([Permission.Read]);
172
+ var FULL_ACCESS = Object.freeze([Permission.Write]);
173
173
  var roomPatternRegex = /^([*]|[^*]{1,128}[*]?)$/;
174
174
  var Session = class {
175
175
  FULL_ACCESS = FULL_ACCESS;