@cloudflare/realtimekit 1.2.4-staging.9 → 1.2.4

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.ts CHANGED
@@ -4448,7 +4448,7 @@ declare class Chat extends TypedEventEmitter$1<ChatEvents> {
4448
4448
  getMessagesByType(type: keyof typeof MessageType): Message[];
4449
4449
  pin(id: string): Promise<void>;
4450
4450
  unpin(id: string): Promise<void>;
4451
- fetchMessages({ timestamp, limit, direction, }: FetchMessageOptions): Promise<Message[]>;
4451
+ fetchPublicMessages({ timestamp, limit, direction, }: FetchMessageOptions): Promise<Message[]>;
4452
4452
  fetchPrivateMessages({ timestamp, limit, direction, userId, }: FetchPrivateMessagesOptions): Promise<Message[]>;
4453
4453
  fetchPinnedMessages({ timestamp, limit, direction, }: FetchMessageOptions): Promise<Message[]>;
4454
4454
  getMessages(timeStamp: number, size: number, reversed: boolean, offset?: number): Promise<{
package/dist/index.es.js CHANGED
@@ -12592,7 +12592,7 @@ let $t = (Eg = class extends Bt {
12592
12592
  */
12593
12593
  m(this, Ro);
12594
12594
  /**
12595
- * @deprecated Use `fetchMessages` method instead.
12595
+ * @deprecated Use `fetchPublicMessages` method instead.
12596
12596
  *
12597
12597
  * **Note:** Limited to the most recent 1000 messages from before joining,
12598
12598
  * plus any messages received after joining.
@@ -12934,7 +12934,7 @@ let $t = (Eg = class extends Bt {
12934
12934
  }
12935
12935
  /**
12936
12936
  * @deprecated this method is deprecated and will be removed in a future release.
12937
- * Use `fetchMessages` with appropriate filters instead.
12937
+ * Use `fetchPublicMessages` with appropriate filters instead.
12938
12938
  *
12939
12939
  * Returns an array of messages sent by a specific userId.
12940
12940
  * @param {string} userId The user id of the user that sent the message.
@@ -12944,7 +12944,7 @@ let $t = (Eg = class extends Bt {
12944
12944
  }
12945
12945
  /**
12946
12946
  * @deprecated this method is deprecated and will be removed in a future release.
12947
- * Use `fetchMessages` with appropriate filters instead.
12947
+ * Use `fetchPublicMessages` with appropriate filters instead.
12948
12948
  *
12949
12949
  * Returns an array of 'text', 'image' or 'file' messages.
12950
12950
  * @param {(
@@ -12989,7 +12989,7 @@ let $t = (Eg = class extends Bt {
12989
12989
  * @param {FetchMessageOptions} options Configuration options for fetching messages,
12990
12990
  * including timestamp, limit, and direction for pagination.
12991
12991
  */
12992
- fetchMessages(i) {
12992
+ fetchPublicMessages(i) {
12993
12993
  return u(this, arguments, function* ({
12994
12994
  timestamp: t = new Date().getTime(),
12995
12995
  limit: e,
@@ -13041,7 +13041,7 @@ let $t = (Eg = class extends Bt {
13041
13041
  });
13042
13042
  }
13043
13043
  /**
13044
- * @deprecated This method is deprecated. Use `fetchMessages` method instead.
13044
+ * @deprecated This method is deprecated. Use `fetchPublicMessages` method instead.
13045
13045
  * Gets chat messages in a paginated manner
13046
13046
  * @param {number} timeStamp
13047
13047
  * @param {number} size
@@ -13062,7 +13062,7 @@ let $t = (Eg = class extends Bt {
13062
13062
  // eslint-disable-next-line class-methods-use-this, @typescript-eslint/no-unused-vars
13063
13063
  searchMessages(t, e) {
13064
13064
  return u(this, null, function* () {
13065
- throw new A("searchMessages is disabled! Please use `fetchMessages` method instead.", "0506");
13065
+ throw new A("searchMessages is disabled! Please use `fetchPublicMessages` method instead.", "0506");
13066
13066
  });
13067
13067
  }
13068
13068
  /**
@@ -28378,7 +28378,7 @@ let Qr = ($g = class {
28378
28378
  video: !0
28379
28379
  };
28380
28380
  return a.setValue("options", e), a.setValue("peerId", t), a.setValue("modules", o), a.setValue("sdkName", "web-core"), a.setValue("meetingId", r), a.setValue("apiBase", i.apiBase), a.setValue("baseURI", i.baseURI), a.setValue("userId", i.participantId), a.setValue("organizationId", i.orgId), a.setValue("authToken", e.authToken), a.setValue("overrides", (d = e.overrides) != null ? d : {}), a.setValue("env", tw({ baseURI: i.baseURI })), a.setValue("defaults", c), a.setValue("onError", e.onError || (() => {
28381
- })), a.setValue("cachedUserDetails", _s(e.cachedUserDetails)), a.setValue("sdkVersion", "1.2.4-staging.9"), (l = e.modules) != null && l.experimentalAudioPlayback && a.setValue("audioPlayback", new MO()), a;
28381
+ })), a.setValue("cachedUserDetails", _s(e.cachedUserDetails)), a.setValue("sdkVersion", "1.2.4"), (l = e.modules) != null && l.experimentalAudioPlayback && a.setValue("audioPlayback", new MO()), a;
28382
28382
  }
28383
28383
  join() {
28384
28384
  return u(this, null, function* () {
package/dist/index.es5.js CHANGED
@@ -12123,7 +12123,7 @@ var KA = Object.defineProperty, zA = Object.getOwnPropertyDescriptor, jn = funct
12123
12123
  }()
12124
12124
  /**
12125
12125
  * @deprecated this method is deprecated and will be removed in a future release.
12126
- * Use `fetchMessages` with appropriate filters instead.
12126
+ * Use `fetchPublicMessages` with appropriate filters instead.
12127
12127
  *
12128
12128
  * Returns an array of messages sent by a specific userId.
12129
12129
  * @param {string} userId The user id of the user that sent the message.
@@ -12137,7 +12137,7 @@ var KA = Object.defineProperty, zA = Object.getOwnPropertyDescriptor, jn = funct
12137
12137
  }
12138
12138
  /**
12139
12139
  * @deprecated this method is deprecated and will be removed in a future release.
12140
- * Use `fetchMessages` with appropriate filters instead.
12140
+ * Use `fetchPublicMessages` with appropriate filters instead.
12141
12141
  *
12142
12142
  * Returns an array of 'text', 'image' or 'file' messages.
12143
12143
  * @param {(
@@ -12211,7 +12211,7 @@ var KA = Object.defineProperty, zA = Object.getOwnPropertyDescriptor, jn = funct
12211
12211
  return e.apply(this, arguments);
12212
12212
  }
12213
12213
  return r;
12214
- }() }, { key: "fetchMessages", value: function() {
12214
+ }() }, { key: "fetchPublicMessages", value: function() {
12215
12215
  var e = m(/* @__PURE__ */ h().mark(function n(a) {
12216
12216
  var i, s, u, l, d, p, v;
12217
12217
  return h().wrap(function(g) {
@@ -12307,7 +12307,7 @@ var KA = Object.defineProperty, zA = Object.getOwnPropertyDescriptor, jn = funct
12307
12307
  for (; ; )
12308
12308
  switch (u.prev = u.next) {
12309
12309
  case 0:
12310
- throw new q("searchMessages is disabled! Please use `fetchMessages` method instead.", "0506");
12310
+ throw new q("searchMessages is disabled! Please use `fetchPublicMessages` method instead.", "0506");
12311
12311
  case 1:
12312
12312
  case "end":
12313
12313
  return u.stop();