stream-chat 9.45.4 → 9.45.5
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/cjs/index.browser.js +2 -1
- package/dist/cjs/index.browser.js.map +2 -2
- package/dist/cjs/index.node.js +2 -1
- package/dist/cjs/index.node.js.map +2 -2
- package/dist/esm/index.mjs +2 -1
- package/dist/esm/index.mjs.map +2 -2
- package/dist/types/moderation.d.ts +2 -0
- package/package.json +1 -1
- package/src/moderation.ts +3 -0
|
@@ -172,10 +172,12 @@ export declare class Moderation {
|
|
|
172
172
|
* @param {Array} moderationPayload.texts array Array of texts to be checked for moderation
|
|
173
173
|
* @param {Array} moderationPayload.images array Array of images to be checked for moderation
|
|
174
174
|
* @param {Array} moderationPayload.videos array Array of videos to be checked for moderation
|
|
175
|
+
* @param {object} moderationPayload.custom object Additional custom data to attach to the moderation review queue item
|
|
175
176
|
* @param {Array<CustomCheckFlag>} flags Array of CustomCheckFlag to be passed to flag the entity
|
|
176
177
|
* @returns
|
|
177
178
|
*/
|
|
178
179
|
addCustomFlags(entityType: string, entityID: string, entityCreatorID: string, moderationPayload: {
|
|
180
|
+
custom?: Record<string, any>;
|
|
179
181
|
images?: string[];
|
|
180
182
|
texts?: string[];
|
|
181
183
|
videos?: string[];
|
package/package.json
CHANGED
package/src/moderation.ts
CHANGED
|
@@ -361,6 +361,7 @@ export class Moderation {
|
|
|
361
361
|
* @param {Array} moderationPayload.texts array Array of texts to be checked for moderation
|
|
362
362
|
* @param {Array} moderationPayload.images array Array of images to be checked for moderation
|
|
363
363
|
* @param {Array} moderationPayload.videos array Array of videos to be checked for moderation
|
|
364
|
+
* @param {object} moderationPayload.custom object Additional custom data to attach to the moderation review queue item
|
|
364
365
|
* @param {Array<CustomCheckFlag>} flags Array of CustomCheckFlag to be passed to flag the entity
|
|
365
366
|
* @returns
|
|
366
367
|
*/
|
|
@@ -369,6 +370,8 @@ export class Moderation {
|
|
|
369
370
|
entityID: string,
|
|
370
371
|
entityCreatorID: string,
|
|
371
372
|
moderationPayload: {
|
|
373
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
374
|
+
custom?: Record<string, any>;
|
|
372
375
|
images?: string[];
|
|
373
376
|
texts?: string[];
|
|
374
377
|
videos?: string[];
|