@liveblocks/node 3.10.1 → 3.11.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.cts CHANGED
@@ -106,7 +106,7 @@ type CreateThreadOptions<M extends BaseMetadata> = {
106
106
  metadata: M;
107
107
  }>;
108
108
  };
109
- type RoomPermission = [] | ["room:write"] | ["room:read", "room:presence:write"];
109
+ type RoomPermission = [] | ["room:write"] | ["room:read", "room:presence:write"] | ["room:read", "room:presence:write", "comments:write"];
110
110
  type RoomAccesses = Record<string, ["room:write"] | ["room:read", "room:presence:write"] | ["room:read", "room:presence:write", "comments:write"]>;
111
111
  type RoomMetadata = Record<string, string | string[]>;
112
112
  type QueryRoomMetadata = Record<string, string>;
@@ -131,7 +131,7 @@ type AiCopilotProviderSettings = {
131
131
  seed?: number;
132
132
  maxRetries?: number;
133
133
  };
134
- type OpenAiModel = "o1" | "o1-mini" | "o3" | "o3-mini" | "o4-mini" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-4o" | "gpt-4o-mini" | "gpt-4-turbo" | "gpt-4" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gpt-5-chat-latest";
134
+ type OpenAiModel = "o1" | "o1-mini" | "o3" | "o3-mini" | "o4-mini" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-4o" | "gpt-4o-mini" | "gpt-4-turbo" | "gpt-4" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gpt-5-chat-latest" | "gpt-5.1" | "gpt-5.1-mini" | "gpt-5.1-chat-latest";
135
135
  type OpenAiProviderOptions = {
136
136
  openai: {
137
137
  reasoningEffort?: "low" | "medium" | "high";
@@ -213,6 +213,7 @@ type M = DM;
213
213
  type S = DS;
214
214
  type U = DU;
215
215
  type RoomsQueryCriteria = {
216
+ tenantId?: string;
216
217
  userId?: string;
217
218
  groupIds?: string[];
218
219
  /**
package/dist/index.d.ts CHANGED
@@ -106,7 +106,7 @@ type CreateThreadOptions<M extends BaseMetadata> = {
106
106
  metadata: M;
107
107
  }>;
108
108
  };
109
- type RoomPermission = [] | ["room:write"] | ["room:read", "room:presence:write"];
109
+ type RoomPermission = [] | ["room:write"] | ["room:read", "room:presence:write"] | ["room:read", "room:presence:write", "comments:write"];
110
110
  type RoomAccesses = Record<string, ["room:write"] | ["room:read", "room:presence:write"] | ["room:read", "room:presence:write", "comments:write"]>;
111
111
  type RoomMetadata = Record<string, string | string[]>;
112
112
  type QueryRoomMetadata = Record<string, string>;
@@ -131,7 +131,7 @@ type AiCopilotProviderSettings = {
131
131
  seed?: number;
132
132
  maxRetries?: number;
133
133
  };
134
- type OpenAiModel = "o1" | "o1-mini" | "o3" | "o3-mini" | "o4-mini" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-4o" | "gpt-4o-mini" | "gpt-4-turbo" | "gpt-4" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gpt-5-chat-latest";
134
+ type OpenAiModel = "o1" | "o1-mini" | "o3" | "o3-mini" | "o4-mini" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-4o" | "gpt-4o-mini" | "gpt-4-turbo" | "gpt-4" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gpt-5-chat-latest" | "gpt-5.1" | "gpt-5.1-mini" | "gpt-5.1-chat-latest";
135
135
  type OpenAiProviderOptions = {
136
136
  openai: {
137
137
  reasoningEffort?: "low" | "medium" | "high";
@@ -213,6 +213,7 @@ type M = DM;
213
213
  type S = DS;
214
214
  type U = DU;
215
215
  type RoomsQueryCriteria = {
216
+ tenantId?: string;
216
217
  userId?: string;
217
218
  groupIds?: string[];
218
219
  /**
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.10.1";
6
+ var PKG_VERSION = "3.11.1";
7
7
  var PKG_FORMAT = "esm";
8
8
 
9
9
  // src/client.ts
@@ -495,6 +495,7 @@ var Liveblocks = class {
495
495
  limit: params.limit,
496
496
  startingAfter: params.startingAfter,
497
497
  userId: params.userId,
498
+ tenantId: params.tenantId,
498
499
  groupIds: params.groupIds ? params.groupIds.join(",") : void 0,
499
500
  query
500
501
  };