stream-chat 9.31.0 → 9.32.0

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.
@@ -197,6 +197,7 @@ __export(index_exports, {
197
197
  isFileAttachment: () => isFileAttachment,
198
198
  isFileList: () => isFileList,
199
199
  isFileReference: () => isFileReference,
200
+ isGiphyAttachment: () => isGiphyAttachment,
200
201
  isImageAttachment: () => isImageAttachment,
201
202
  isImageFile: () => isImageFile,
202
203
  isLocalAttachment: () => isLocalAttachment,
@@ -2541,6 +2542,7 @@ var isVideoAttachment = (attachment, supportedVideoFormat = []) => attachment.ty
2541
2542
  var isLocalVideoAttachment = (attachment) => isVideoAttachment(attachment) && isLocalAttachment(attachment);
2542
2543
  var isUploadedAttachment = (attachment) => isAudioAttachment(attachment) || isFileAttachment(attachment) || isImageAttachment(attachment) || isVideoAttachment(attachment) || isVoiceRecordingAttachment(attachment);
2543
2544
  var isSharedLocationResponse = (location) => !!location.latitude && !!location.longitude && !!location.channel_cid;
2545
+ var isGiphyAttachment = (attachment) => attachment.type === "giphy";
2544
2546
 
2545
2547
  // src/messageComposer/fileUtils.ts
2546
2548
  var isFile = (fileLike) => !!fileLike.lastModified && !("uri" in fileLike);
@@ -15101,7 +15103,7 @@ var StreamChat = class _StreamChat {
15101
15103
  if (this.userAgent) {
15102
15104
  return this.userAgent;
15103
15105
  }
15104
- const version = "9.31.0";
15106
+ const version = "9.32.0";
15105
15107
  const clientBundle = "browser-cjs";
15106
15108
  let userAgentString = "";
15107
15109
  if (this.sdkIdentifier) {
@@ -16198,6 +16200,27 @@ var StreamChat = class _StreamChat {
16198
16200
  ...rest
16199
16201
  });
16200
16202
  }
16203
+ /**
16204
+ * queryTeamUsageStats - Queries team-level usage statistics from the warehouse database
16205
+ *
16206
+ * Returns all 16 metrics grouped by team with cursor-based pagination.
16207
+ *
16208
+ * Date Range Options (mutually exclusive):
16209
+ * - Use 'month' parameter (YYYY-MM format) for monthly aggregated values
16210
+ * - Use 'start_date'/'end_date' parameters (YYYY-MM-DD format) for daily breakdown
16211
+ * - If neither provided, defaults to current month (monthly mode)
16212
+ *
16213
+ * This endpoint is server-side only.
16214
+ *
16215
+ * @param {QueryTeamUsageStatsOptions} options The options for querying team usage stats
16216
+ * @returns {Promise<QueryTeamUsageStatsResponse>}
16217
+ */
16218
+ async queryTeamUsageStats(options = {}) {
16219
+ return await this.post(
16220
+ `${this.baseURL}/stats/team_usage`,
16221
+ options
16222
+ );
16223
+ }
16201
16224
  /**
16202
16225
  * updateLocation - Updates a location
16203
16226
  *