stream-chat 9.45.3 → 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 +8 -6
- package/dist/cjs/index.browser.js.map +2 -2
- package/dist/cjs/index.node.js +8 -6
- package/dist/cjs/index.node.js.map +2 -2
- package/dist/esm/index.mjs +8 -6
- package/dist/esm/index.mjs.map +2 -2
- package/dist/types/moderation.d.ts +3 -2
- package/package.json +1 -1
- package/src/moderation.ts +6 -2
|
@@ -12373,7 +12373,7 @@ var Moderation = class {
|
|
|
12373
12373
|
* @param options
|
|
12374
12374
|
* @returns
|
|
12375
12375
|
*/
|
|
12376
|
-
async check(entityType, entityID, entityCreatorID, moderationPayload, configKey, options) {
|
|
12376
|
+
async check(entityType, entityID, entityCreatorID, moderationPayload, configKey, options, testMode) {
|
|
12377
12377
|
return await this.client.post(
|
|
12378
12378
|
this.client.baseURL + `/api/v2/moderation/check`,
|
|
12379
12379
|
{
|
|
@@ -12382,7 +12382,8 @@ var Moderation = class {
|
|
|
12382
12382
|
entity_creator_id: entityCreatorID,
|
|
12383
12383
|
moderation_payload: moderationPayload,
|
|
12384
12384
|
config_key: configKey,
|
|
12385
|
-
options
|
|
12385
|
+
options,
|
|
12386
|
+
test_mode: testMode
|
|
12386
12387
|
}
|
|
12387
12388
|
);
|
|
12388
12389
|
}
|
|
@@ -12429,9 +12430,9 @@ var Moderation = class {
|
|
|
12429
12430
|
moderationPayload,
|
|
12430
12431
|
"user_profile:default",
|
|
12431
12432
|
{
|
|
12432
|
-
force_sync: true
|
|
12433
|
-
|
|
12434
|
-
|
|
12433
|
+
force_sync: true
|
|
12434
|
+
},
|
|
12435
|
+
true
|
|
12435
12436
|
);
|
|
12436
12437
|
}
|
|
12437
12438
|
/**
|
|
@@ -12443,6 +12444,7 @@ var Moderation = class {
|
|
|
12443
12444
|
* @param {Array} moderationPayload.texts array Array of texts to be checked for moderation
|
|
12444
12445
|
* @param {Array} moderationPayload.images array Array of images to be checked for moderation
|
|
12445
12446
|
* @param {Array} moderationPayload.videos array Array of videos to be checked for moderation
|
|
12447
|
+
* @param {object} moderationPayload.custom object Additional custom data to attach to the moderation review queue item
|
|
12446
12448
|
* @param {Array<CustomCheckFlag>} flags Array of CustomCheckFlag to be passed to flag the entity
|
|
12447
12449
|
* @returns
|
|
12448
12450
|
*/
|
|
@@ -16639,7 +16641,7 @@ var StreamChat = class _StreamChat {
|
|
|
16639
16641
|
if (this.userAgent) {
|
|
16640
16642
|
return this.userAgent;
|
|
16641
16643
|
}
|
|
16642
|
-
const version = "9.45.
|
|
16644
|
+
const version = "9.45.5";
|
|
16643
16645
|
const clientBundle = "browser-cjs";
|
|
16644
16646
|
let userAgentString = "";
|
|
16645
16647
|
if (this.sdkIdentifier) {
|