@twurple/api
Advanced tools
Comparing version 7.1.0-pre.4 to 7.1.0-pre.5
@@ -192,2 +192,3 @@ "use strict"; | ||
userId: (0, shared_utils_1.mapOptional)(user, common_1.extractUserId), | ||
canOverrideScopedUserContext, | ||
forceType: usesAppAuth ? 'app' : 'user', | ||
@@ -656,3 +657,3 @@ jsonBody, | ||
const broadcasterId = (0, common_1.extractUserId)(broadcaster); | ||
return await this.createSubscription('channel.chat.clear', '1', (0, eventSub_external_1.createEventSubUserCondition)(broadcasterId, this._getUserContextIdWithDefault(broadcasterId)), transport, broadcaster, ['user:read:chat']); | ||
return await this.createSubscription('channel.chat.clear', '1', (0, eventSub_external_1.createEventSubUserCondition)(broadcasterId, this._getUserContextIdWithDefault(broadcasterId)), transport, broadcaster, ['user:read:chat'], true); | ||
} | ||
@@ -667,3 +668,3 @@ /** | ||
const broadcasterId = (0, common_1.extractUserId)(broadcaster); | ||
return await this.createSubscription('channel.chat.clear_user_messages', '1', (0, eventSub_external_1.createEventSubUserCondition)(broadcasterId, this._getUserContextIdWithDefault(broadcasterId)), transport, broadcaster, ['user:read:chat']); | ||
return await this.createSubscription('channel.chat.clear_user_messages', '1', (0, eventSub_external_1.createEventSubUserCondition)(broadcasterId, this._getUserContextIdWithDefault(broadcasterId)), transport, broadcaster, ['user:read:chat'], true); | ||
} | ||
@@ -678,3 +679,3 @@ /** | ||
const broadcasterId = (0, common_1.extractUserId)(broadcaster); | ||
return await this.createSubscription('channel.chat.message_delete', '1', (0, eventSub_external_1.createEventSubUserCondition)(broadcasterId, this._getUserContextIdWithDefault(broadcasterId)), transport, broadcaster, ['user:read:chat']); | ||
return await this.createSubscription('channel.chat.message_delete', '1', (0, eventSub_external_1.createEventSubUserCondition)(broadcasterId, this._getUserContextIdWithDefault(broadcasterId)), transport, broadcaster, ['user:read:chat'], true); | ||
} | ||
@@ -689,3 +690,3 @@ /** | ||
const broadcasterId = (0, common_1.extractUserId)(broadcaster); | ||
return await this.createSubscription('channel.chat.notification', '1', (0, eventSub_external_1.createEventSubUserCondition)(broadcasterId, this._getUserContextIdWithDefault(broadcasterId)), transport, broadcaster, ['user:read:chat']); | ||
return await this.createSubscription('channel.chat.notification', '1', (0, eventSub_external_1.createEventSubUserCondition)(broadcasterId, this._getUserContextIdWithDefault(broadcasterId)), transport, broadcaster, ['user:read:chat'], true); | ||
} | ||
@@ -700,3 +701,3 @@ /** | ||
const broadcasterId = (0, common_1.extractUserId)(broadcaster); | ||
return await this.createSubscription('channel.chat.message', '1', (0, eventSub_external_1.createEventSubUserCondition)(broadcasterId, this._getUserContextIdWithDefault(broadcasterId)), transport, broadcaster, ['user:read:chat']); | ||
return await this.createSubscription('channel.chat.message', '1', (0, eventSub_external_1.createEventSubUserCondition)(broadcasterId, this._getUserContextIdWithDefault(broadcasterId)), transport, broadcaster, ['user:read:chat'], true); | ||
} | ||
@@ -703,0 +704,0 @@ /** |
@@ -171,5 +171,3 @@ "use strict"; | ||
query: (0, api_call_1.createBroadcasterQuery)(channel), | ||
jsonBody: { | ||
data, | ||
}, | ||
jsonBody: (0, moderation_external_1.createCheckAutoModStatusBody)(data), | ||
}); | ||
@@ -176,0 +174,0 @@ return result.data.map(statusData => new HelixAutoModStatus_1.HelixAutoModStatus(statusData)); |
import { type HelixPaginatedResponseWithTotal } from '@twurple/api-call'; | ||
export type HelixEventSubSubscriptionStatus = 'enabled' | 'webhook_callback_verification_pending' | 'webhook_callback_verification_failed' | 'websocket_disconnected' | 'notification_failures_exceeded' | 'authorization_revoked' | 'user_removed'; | ||
export type HelixEventSubSubscriptionStatus = 'enabled' | 'webhook_callback_verification_pending' | 'webhook_callback_verification_failed' | 'websocket_disconnected' | 'notification_failures_exceeded' | 'authorization_revoked' | 'user_removed' | 'version_removed'; | ||
/** @private */ | ||
@@ -4,0 +4,0 @@ export interface HelixEventSubWebHookTransportData { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createUpdateShieldModeStatusBody = exports.createBanUserBody = exports.createAutoModSettingsBody = exports.createAutoModProcessBody = exports.createModeratorModifyQuery = exports.createModerationUserListQuery = void 0; | ||
exports.createCheckAutoModStatusBody = exports.createUpdateShieldModeStatusBody = exports.createBanUserBody = exports.createAutoModSettingsBody = exports.createAutoModProcessBody = exports.createModeratorModifyQuery = exports.createModerationUserListQuery = void 0; | ||
const common_1 = require("@twurple/common"); | ||
@@ -63,1 +63,11 @@ /** @internal */ | ||
exports.createUpdateShieldModeStatusBody = createUpdateShieldModeStatusBody; | ||
/** @internal */ | ||
function createCheckAutoModStatusBody(data) { | ||
return { | ||
data: data.map(entry => ({ | ||
msg_id: entry.messageId, | ||
msg_text: entry.messageText, | ||
})), | ||
}; | ||
} | ||
exports.createCheckAutoModStatusBody = createCheckAutoModStatusBody; |
{ | ||
"name": "@twurple/api", | ||
"version": "7.1.0-pre.4", | ||
"version": "7.1.0-pre.5", | ||
"publishConfig": { | ||
@@ -43,4 +43,4 @@ "access": "public" | ||
"@d-fischer/typed-event-emitter": "^3.3.1", | ||
"@twurple/api-call": "7.1.0-pre.4", | ||
"@twurple/common": "7.1.0-pre.4", | ||
"@twurple/api-call": "7.1.0-pre.5", | ||
"@twurple/common": "7.1.0-pre.5", | ||
"retry": "^0.13.1", | ||
@@ -50,7 +50,7 @@ "tslib": "^2.0.3" | ||
"devDependencies": { | ||
"@twurple/auth": "7.1.0-pre.4", | ||
"@twurple/auth": "7.1.0-pre.5", | ||
"@types/retry": "^0.12.2" | ||
}, | ||
"peerDependencies": { | ||
"@twurple/auth": "7.1.0-pre.4" | ||
"@twurple/auth": "7.1.0-pre.5" | ||
}, | ||
@@ -57,0 +57,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1113515
29902
+ Added@twurple/api-call@7.1.0-pre.5(transitive)
+ Added@twurple/auth@7.1.0-pre.5(transitive)
+ Added@twurple/common@7.1.0-pre.5(transitive)
- Removed@twurple/api-call@7.1.0-pre.4(transitive)
- Removed@twurple/auth@7.1.0-pre.4(transitive)
- Removed@twurple/common@7.1.0-pre.4(transitive)
Updated@twurple/common@7.1.0-pre.5