@rool-dev/extension 0.3.11-dev.22c312e → 0.3.11-dev.a6ddf33

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.
@@ -5352,7 +5352,6 @@ var GraphQLClient = class {
5352
5352
  createdAt
5353
5353
  updatedAt
5354
5354
  linkAccess
5355
- memberCount
5356
5355
  }
5357
5356
  }
5358
5357
  `)).listSpaces;
@@ -5364,7 +5363,6 @@ var GraphQLClient = class {
5364
5363
  name
5365
5364
  role
5366
5365
  linkAccess
5367
- memberCount
5368
5366
  channels {
5369
5367
  id
5370
5368
  name
@@ -6681,8 +6679,7 @@ var ClientSubscriptionManager = class {
6681
6679
  createdAt: raw.createdAt,
6682
6680
  updatedAt: raw.updatedAt,
6683
6681
  role: raw.role,
6684
- linkAccess: raw.linkAccess,
6685
- memberCount: raw.memberCount
6682
+ linkAccess: raw.linkAccess
6686
6683
  };
6687
6684
  case "user_storage_changed": return {
6688
6685
  type,
@@ -8342,7 +8339,6 @@ var RoolSpace = class {
8342
8339
  _name;
8343
8340
  _role;
8344
8341
  _linkAccess;
8345
- _memberCount;
8346
8342
  _channels;
8347
8343
  graphqlClient;
8348
8344
  mediaClient;
@@ -8352,7 +8348,6 @@ var RoolSpace = class {
8352
8348
  this._name = config.name;
8353
8349
  this._role = config.role;
8354
8350
  this._linkAccess = config.linkAccess;
8355
- this._memberCount = config.memberCount;
8356
8351
  this._channels = config.channels;
8357
8352
  this.graphqlClient = config.graphqlClient;
8358
8353
  this.mediaClient = config.mediaClient;
@@ -8370,12 +8365,6 @@ var RoolSpace = class {
8370
8365
  get linkAccess() {
8371
8366
  return this._linkAccess;
8372
8367
  }
8373
- get memberCount() {
8374
- return this._memberCount;
8375
- }
8376
- get isPrivate() {
8377
- return this._linkAccess === "none" && this._memberCount === 1;
8378
- }
8379
8368
  /**
8380
8369
  * Open a channel on this space.
8381
8370
  * If the channel doesn't exist, the server creates it.
@@ -8454,11 +8443,10 @@ var RoolSpace = class {
8454
8443
  * Updates name, role, linkAccess, and channel list.
8455
8444
  */
8456
8445
  async refresh() {
8457
- const { name, role, linkAccess, memberCount, channels } = await this.graphqlClient.openSpace(this._id);
8446
+ const { name, role, linkAccess, channels } = await this.graphqlClient.openSpace(this._id);
8458
8447
  this._name = name;
8459
8448
  this._role = role;
8460
8449
  this._linkAccess = linkAccess;
8461
- this._memberCount = memberCount;
8462
8450
  this._channels = channels;
8463
8451
  }
8464
8452
  };
@@ -8661,13 +8649,12 @@ var RoolClient = class extends EventEmitter {
8661
8649
  * To work with objects and AI, call space.openChannel(channelId).
8662
8650
  */
8663
8651
  async openSpace(spaceId) {
8664
- const { name, role, linkAccess, memberCount, channels } = await this.graphqlClient.openSpace(spaceId);
8652
+ const { name, role, linkAccess, channels } = await this.graphqlClient.openSpace(spaceId);
8665
8653
  return new RoolSpace({
8666
8654
  id: spaceId,
8667
8655
  name,
8668
8656
  role,
8669
8657
  linkAccess,
8670
- memberCount,
8671
8658
  channels,
8672
8659
  graphqlClient: this.graphqlClient,
8673
8660
  mediaClient: this.mediaClient,
@@ -8687,7 +8674,6 @@ var RoolClient = class extends EventEmitter {
8687
8674
  name,
8688
8675
  role: "owner",
8689
8676
  linkAccess: "none",
8690
- memberCount: 1,
8691
8677
  channels: [],
8692
8678
  graphqlClient: this.graphqlClient,
8693
8679
  mediaClient: this.mediaClient,
@@ -8919,8 +8905,7 @@ var RoolClient = class extends EventEmitter {
8919
8905
  size: event.size ?? 0,
8920
8906
  createdAt: event.createdAt ?? (/* @__PURE__ */ new Date()).toISOString(),
8921
8907
  updatedAt: event.updatedAt ?? (/* @__PURE__ */ new Date()).toISOString(),
8922
- linkAccess: "none",
8923
- memberCount: 1
8908
+ linkAccess: "none"
8924
8909
  });
8925
8910
  break;
8926
8911
  case "space_deleted":
@@ -8939,8 +8924,7 @@ var RoolClient = class extends EventEmitter {
8939
8924
  size: event.size,
8940
8925
  createdAt: event.createdAt,
8941
8926
  updatedAt: event.updatedAt,
8942
- linkAccess: event.linkAccess,
8943
- memberCount: event.memberCount
8927
+ linkAccess: event.linkAccess
8944
8928
  });
8945
8929
  break;
8946
8930
  case "user_storage_changed":