stream-chat 9.30.0 → 9.30.1
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 +22 -16
- package/dist/cjs/index.browser.js.map +2 -2
- package/dist/cjs/index.node.js +22 -16
- package/dist/cjs/index.node.js.map +2 -2
- package/dist/esm/index.mjs +22 -16
- package/dist/esm/index.mjs.map +2 -2
- package/dist/types/moderation.d.ts +10 -21
- package/dist/types/types.d.ts +53 -0
- package/package.json +1 -1
- package/src/moderation.ts +29 -22
- package/src/types.ts +67 -0
|
@@ -11091,14 +11091,17 @@ var Moderation = class {
|
|
|
11091
11091
|
* @returns
|
|
11092
11092
|
*/
|
|
11093
11093
|
async check(entityType, entityID, entityCreatorID, moderationPayload, configKey, options) {
|
|
11094
|
-
return await this.client.post(
|
|
11095
|
-
|
|
11096
|
-
|
|
11097
|
-
|
|
11098
|
-
|
|
11099
|
-
|
|
11100
|
-
|
|
11101
|
-
|
|
11094
|
+
return await this.client.post(
|
|
11095
|
+
this.client.baseURL + `/api/v2/moderation/check`,
|
|
11096
|
+
{
|
|
11097
|
+
entity_type: entityType,
|
|
11098
|
+
entity_id: entityID,
|
|
11099
|
+
entity_creator_id: entityCreatorID,
|
|
11100
|
+
moderation_payload: moderationPayload,
|
|
11101
|
+
config_key: configKey,
|
|
11102
|
+
options
|
|
11103
|
+
}
|
|
11104
|
+
);
|
|
11102
11105
|
}
|
|
11103
11106
|
/**
|
|
11104
11107
|
* Experimental: Check user profile
|
|
@@ -11161,13 +11164,16 @@ var Moderation = class {
|
|
|
11161
11164
|
* @returns
|
|
11162
11165
|
*/
|
|
11163
11166
|
async addCustomFlags(entityType, entityID, entityCreatorID, moderationPayload, flags) {
|
|
11164
|
-
return await this.client.post(
|
|
11165
|
-
|
|
11166
|
-
|
|
11167
|
-
|
|
11168
|
-
|
|
11169
|
-
|
|
11170
|
-
|
|
11167
|
+
return await this.client.post(
|
|
11168
|
+
this.client.baseURL + `/api/v2/moderation/custom_check`,
|
|
11169
|
+
{
|
|
11170
|
+
entity_type: entityType,
|
|
11171
|
+
entity_id: entityID,
|
|
11172
|
+
entity_creator_id: entityCreatorID,
|
|
11173
|
+
moderation_payload: moderationPayload,
|
|
11174
|
+
flags
|
|
11175
|
+
}
|
|
11176
|
+
);
|
|
11171
11177
|
}
|
|
11172
11178
|
/**
|
|
11173
11179
|
* Add custom flags to a message
|
|
@@ -15087,7 +15093,7 @@ var StreamChat = class _StreamChat {
|
|
|
15087
15093
|
if (this.userAgent) {
|
|
15088
15094
|
return this.userAgent;
|
|
15089
15095
|
}
|
|
15090
|
-
const version = "9.30.
|
|
15096
|
+
const version = "9.30.1";
|
|
15091
15097
|
const clientBundle = "browser-cjs";
|
|
15092
15098
|
let userAgentString = "";
|
|
15093
15099
|
if (this.sdkIdentifier) {
|