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
package/dist/cjs/index.node.js
CHANGED
|
@@ -12346,7 +12346,7 @@ var Moderation = class {
|
|
|
12346
12346
|
* @param options
|
|
12347
12347
|
* @returns
|
|
12348
12348
|
*/
|
|
12349
|
-
async check(entityType, entityID, entityCreatorID, moderationPayload, configKey, options) {
|
|
12349
|
+
async check(entityType, entityID, entityCreatorID, moderationPayload, configKey, options, testMode) {
|
|
12350
12350
|
return await this.client.post(
|
|
12351
12351
|
this.client.baseURL + `/api/v2/moderation/check`,
|
|
12352
12352
|
{
|
|
@@ -12355,7 +12355,8 @@ var Moderation = class {
|
|
|
12355
12355
|
entity_creator_id: entityCreatorID,
|
|
12356
12356
|
moderation_payload: moderationPayload,
|
|
12357
12357
|
config_key: configKey,
|
|
12358
|
-
options
|
|
12358
|
+
options,
|
|
12359
|
+
test_mode: testMode
|
|
12359
12360
|
}
|
|
12360
12361
|
);
|
|
12361
12362
|
}
|
|
@@ -12402,9 +12403,9 @@ var Moderation = class {
|
|
|
12402
12403
|
moderationPayload,
|
|
12403
12404
|
"user_profile:default",
|
|
12404
12405
|
{
|
|
12405
|
-
force_sync: true
|
|
12406
|
-
|
|
12407
|
-
|
|
12406
|
+
force_sync: true
|
|
12407
|
+
},
|
|
12408
|
+
true
|
|
12408
12409
|
);
|
|
12409
12410
|
}
|
|
12410
12411
|
/**
|
|
@@ -12416,6 +12417,7 @@ var Moderation = class {
|
|
|
12416
12417
|
* @param {Array} moderationPayload.texts array Array of texts to be checked for moderation
|
|
12417
12418
|
* @param {Array} moderationPayload.images array Array of images to be checked for moderation
|
|
12418
12419
|
* @param {Array} moderationPayload.videos array Array of videos to be checked for moderation
|
|
12420
|
+
* @param {object} moderationPayload.custom object Additional custom data to attach to the moderation review queue item
|
|
12419
12421
|
* @param {Array<CustomCheckFlag>} flags Array of CustomCheckFlag to be passed to flag the entity
|
|
12420
12422
|
* @returns
|
|
12421
12423
|
*/
|
|
@@ -16612,7 +16614,7 @@ var StreamChat = class _StreamChat {
|
|
|
16612
16614
|
if (this.userAgent) {
|
|
16613
16615
|
return this.userAgent;
|
|
16614
16616
|
}
|
|
16615
|
-
const version = "9.45.
|
|
16617
|
+
const version = "9.45.5";
|
|
16616
16618
|
const clientBundle = "node-cjs";
|
|
16617
16619
|
let userAgentString = "";
|
|
16618
16620
|
if (this.sdkIdentifier) {
|