From c501f3d290d82d08ab7390dc9ef4cbaff2f73099 Mon Sep 17 00:00:00 2001 From: Will Hunt Date: Thu, 19 Sep 2024 14:06:34 +0100 Subject: [PATCH] Update references to bot-sdk --- src/ManagementRoomOutput.ts | 2 +- src/MatrixEmitter.ts | 2 +- src/Mjolnir.ts | 2 +- src/ProtectedRoomsConfig.ts | 2 +- src/ProtectedRoomsSet.ts | 2 +- src/appservice/AccessControl.ts | 2 +- src/appservice/MjolnirManager.ts | 2 +- src/commands/AddRemoveProtectedRoomsCommand.ts | 2 +- src/commands/AddRemoveRoomFromDirectoryCommand.ts | 2 +- src/commands/AliasCommands.ts | 2 +- src/commands/CommandHandler.ts | 2 +- src/commands/CreateBanListCommand.ts | 2 +- src/commands/DeactivateCommand.ts | 2 +- src/commands/DumpRulesCommand.ts | 2 +- src/commands/ImportCommand.ts | 2 +- src/commands/KickCommand.ts | 2 +- src/commands/ListProtectedRoomsCommand.ts | 2 +- src/commands/MakeRoomAdminCommand.ts | 2 +- src/commands/ProtectionsCommands.ts | 2 +- src/commands/RedactCommand.ts | 2 +- src/commands/SetDefaultBanListCommand.ts | 2 +- src/commands/SetPowerLevelCommand.ts | 2 +- src/commands/SetupDecentralizedReportingCommand.ts | 2 +- src/commands/ShutdownRoomCommand.ts | 2 +- src/commands/SinceCommand.ts | 2 +- src/commands/StatusCommand.ts | 2 +- src/commands/SuspendCommand.ts | 2 +- src/commands/UnbanBanCommand.ts | 2 +- src/commands/UnsuspendCommand.ts | 2 +- src/commands/WatchUnwatchCommand.ts | 2 +- src/config.ts | 2 +- src/health/healthz.ts | 2 +- src/index.ts | 2 +- src/models/AccessControlUnit.ts | 2 +- src/models/ListRule.ts | 2 +- src/models/PolicyList.ts | 2 +- src/models/RuleServer.ts | 2 +- src/models/ServerAcl.ts | 2 +- src/protections/BasicFlooding.ts | 2 +- src/protections/DetectFederationLag.ts | 2 +- src/protections/FirstMessageIsImage.ts | 2 +- src/protections/JoinWaveShortCircuit.ts | 2 +- src/protections/LocalAbuseReports.ts | 2 +- src/protections/MessageIsMedia.ts | 2 +- src/protections/MessageIsVoice.ts | 2 +- src/protections/NsfwProtection.ts | 2 +- src/protections/ProtectionManager.ts | 2 +- src/protections/WordList.ts | 2 +- src/queues/EventRedactionQueue.ts | 2 +- src/queues/ThrottlingQueue.ts | 2 +- src/queues/UnlistedUserRedactionQueue.ts | 2 +- src/report/ReportManager.ts | 4 ++-- src/report/ReportPoller.ts | 2 +- src/utils.ts | 2 +- src/webapis/OpenMetrics.ts | 2 +- src/webapis/WebAPIs.ts | 2 +- test/appservice/integration/provisionTest.ts | 2 +- test/appservice/integration/webAPITest.ts | 2 +- test/appservice/utils/harness.ts | 2 +- test/appservice/utils/webAPIClient.ts | 2 +- test/integration/acceptInvitesFromSpaceTest.ts | 2 +- test/integration/banListTest.ts | 2 +- test/integration/clientHelper.ts | 2 +- test/integration/commands/commandUtils.ts | 2 +- test/integration/commands/makedminCommandTest.ts | 2 +- test/integration/commands/redactCommandTest.ts | 2 +- test/integration/commands/suspendCommandTest.ts | 2 +- test/integration/detectFederationLagTest.ts | 2 +- test/integration/mjolnirSetupUtils.ts | 2 +- test/integration/nsfwProtectionTest.ts | 2 +- test/integration/openMetricsTest.ts | 2 +- test/integration/policyConsumptionTest.ts | 2 +- test/integration/protectedRoomsConfigTest.ts | 2 +- test/integration/throttleQueueTest.ts | 2 +- test/integration/utilsTest.ts | 2 +- 75 files changed, 76 insertions(+), 76 deletions(-) diff --git a/src/ManagementRoomOutput.ts b/src/ManagementRoomOutput.ts index 23c5c08..fe43e6f 100644 --- a/src/ManagementRoomOutput.ts +++ b/src/ManagementRoomOutput.ts @@ -15,7 +15,7 @@ limitations under the License. */ import * as Sentry from "@sentry/node"; -import { extractRequestError, LogLevel, LogService, MessageType, Permalinks, TextualMessageEventContent, UserID } from "matrix-bot-sdk"; +import { extractRequestError, LogLevel, LogService, MessageType, Permalinks, TextualMessageEventContent, UserID } from "@vector-im/matrix-bot-sdk"; import { IConfig } from "./config"; import { MatrixSendClient } from "./MatrixEmitter"; import { htmlEscape } from "./utils"; diff --git a/src/MatrixEmitter.ts b/src/MatrixEmitter.ts index 64c7d8f..d810101 100644 --- a/src/MatrixEmitter.ts +++ b/src/MatrixEmitter.ts @@ -15,7 +15,7 @@ limitations under the License. */ import EventEmitter from "events"; -import { MatrixClient } from "matrix-bot-sdk"; +import { MatrixClient } from "@vector-im/matrix-bot-sdk"; /** * This is an interface created in order to keep the event listener diff --git a/src/Mjolnir.ts b/src/Mjolnir.ts index 8224147..9fcf885 100644 --- a/src/Mjolnir.ts +++ b/src/Mjolnir.ts @@ -19,7 +19,7 @@ import { LogLevel, LogService, MembershipEvent, -} from "matrix-bot-sdk"; +} from "@vector-im/matrix-bot-sdk"; import { ALL_RULE_TYPES as ALL_BAN_LIST_RULE_TYPES } from "./models/ListRule"; import { COMMAND_PREFIX, handleCommand } from "./commands/CommandHandler"; diff --git a/src/ProtectedRoomsConfig.ts b/src/ProtectedRoomsConfig.ts index 4e6344c..fc9af77 100644 --- a/src/ProtectedRoomsConfig.ts +++ b/src/ProtectedRoomsConfig.ts @@ -15,7 +15,7 @@ limitations under the License. */ import AwaitLock from 'await-lock'; -import { extractRequestError, LogService, Permalinks } from "matrix-bot-sdk"; +import { extractRequestError, LogService, Permalinks } from "@vector-im/matrix-bot-sdk"; import { IConfig } from "./config"; import { MatrixSendClient } from './MatrixEmitter'; const PROTECTED_ROOMS_EVENT_TYPE = "org.matrix.mjolnir.protected_rooms"; diff --git a/src/ProtectedRoomsSet.ts b/src/ProtectedRoomsSet.ts index e2d41fd..5f2908c 100644 --- a/src/ProtectedRoomsSet.ts +++ b/src/ProtectedRoomsSet.ts @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import { LogLevel, LogService, MatrixGlob, Permalinks, UserID } from "matrix-bot-sdk"; +import { LogLevel, LogService, MatrixGlob, Permalinks, UserID } from "@vector-im/matrix-bot-sdk"; import { IConfig } from "./config"; import ErrorCache, { ERROR_KIND_FATAL, ERROR_KIND_PERMISSION } from "./ErrorCache"; import ManagementRoomOutput from "./ManagementRoomOutput"; diff --git a/src/appservice/AccessControl.ts b/src/appservice/AccessControl.ts index 54500d3..1319463 100644 --- a/src/appservice/AccessControl.ts +++ b/src/appservice/AccessControl.ts @@ -17,7 +17,7 @@ limitations under the License. import { Bridge } from "matrix-appservice-bridge"; import AccessControlUnit, { EntityAccess } from "../models/AccessControlUnit"; import PolicyList from "../models/PolicyList"; -import { Permalinks } from "matrix-bot-sdk"; +import { Permalinks } from "@vector-im/matrix-bot-sdk"; /** * Utility to manage which users have access to the application service, diff --git a/src/appservice/MjolnirManager.ts b/src/appservice/MjolnirManager.ts index 9de9826..d15307d 100644 --- a/src/appservice/MjolnirManager.ts +++ b/src/appservice/MjolnirManager.ts @@ -3,7 +3,7 @@ import { Request, WeakEvent, BridgeContext, Bridge, Intent, Logger } from "matri import { getProvisionedMjolnirConfig } from "../config"; import { IConfig as IAppserviceConfig } from "./config/config"; import PolicyList from "../models/PolicyList"; -import { Permalinks, MatrixClient } from "matrix-bot-sdk"; +import { Permalinks, MatrixClient } from "@vector-im/matrix-bot-sdk"; import { DataStore } from "./datastore"; import { AccessControl } from "./AccessControl"; import { Access } from "../models/AccessControlUnit"; diff --git a/src/commands/AddRemoveProtectedRoomsCommand.ts b/src/commands/AddRemoveProtectedRoomsCommand.ts index 978b9c8..a6ec0b9 100644 --- a/src/commands/AddRemoveProtectedRoomsCommand.ts +++ b/src/commands/AddRemoveProtectedRoomsCommand.ts @@ -15,7 +15,7 @@ limitations under the License. */ import { Mjolnir } from "../Mjolnir"; -import { extractRequestError, LogLevel, LogService } from "matrix-bot-sdk"; +import { extractRequestError, LogLevel, LogService } from "@vector-im/matrix-bot-sdk"; // !mjolnir rooms add export async function execAddProtectedRoom(roomId: string, event: any, mjolnir: Mjolnir, parts: string[]) { diff --git a/src/commands/AddRemoveRoomFromDirectoryCommand.ts b/src/commands/AddRemoveRoomFromDirectoryCommand.ts index 1dd1459..b8f86a1 100644 --- a/src/commands/AddRemoveRoomFromDirectoryCommand.ts +++ b/src/commands/AddRemoveRoomFromDirectoryCommand.ts @@ -15,7 +15,7 @@ limitations under the License. */ import { Mjolnir } from "../Mjolnir"; -import { RichReply } from "matrix-bot-sdk"; +import { RichReply } from "@vector-im/matrix-bot-sdk"; async function addRemoveFromDirectory(inRoomId: string, event: any, mjolnir: Mjolnir, roomRef: string, visibility: "public" | "private") { const isAdmin = await mjolnir.isSynapseAdmin(); diff --git a/src/commands/AliasCommands.ts b/src/commands/AliasCommands.ts index 59ff4ce..23493e2 100644 --- a/src/commands/AliasCommands.ts +++ b/src/commands/AliasCommands.ts @@ -15,7 +15,7 @@ limitations under the License. */ import { Mjolnir } from "../Mjolnir"; -import { RichReply } from "matrix-bot-sdk"; +import { RichReply } from "@vector-im/matrix-bot-sdk"; import { htmlEscape } from "../utils"; // !mjolnir move diff --git a/src/commands/CommandHandler.ts b/src/commands/CommandHandler.ts index 420bc09..3638423 100644 --- a/src/commands/CommandHandler.ts +++ b/src/commands/CommandHandler.ts @@ -18,7 +18,7 @@ import { Mjolnir } from "../Mjolnir"; import { execStatusCommand } from "./StatusCommand"; import { execBanCommand, execUnbanCommand } from "./UnbanBanCommand"; import { execDumpRulesCommand, execRulesMatchingCommand } from "./DumpRulesCommand"; -import { extractRequestError, LogService, RichReply } from "matrix-bot-sdk"; +import { extractRequestError, LogService, RichReply } from "@vector-im/matrix-bot-sdk"; import { htmlEscape } from "../utils"; import { execSyncCommand } from "./SyncCommand"; import { execPermissionCheckCommand } from "./PermissionCheckCommand"; diff --git a/src/commands/CreateBanListCommand.ts b/src/commands/CreateBanListCommand.ts index 55b0345..437c8e5 100644 --- a/src/commands/CreateBanListCommand.ts +++ b/src/commands/CreateBanListCommand.ts @@ -16,7 +16,7 @@ limitations under the License. import { Mjolnir } from "../Mjolnir"; import PolicyList from "../models/PolicyList"; -import { Permalinks, RichReply } from "matrix-bot-sdk"; +import { Permalinks, RichReply } from "@vector-im/matrix-bot-sdk"; // !mjolnir list create export async function execCreateListCommand(roomId: string, event: any, mjolnir: Mjolnir, parts: string[]) { diff --git a/src/commands/DeactivateCommand.ts b/src/commands/DeactivateCommand.ts index 14a6ee0..bdcacf3 100644 --- a/src/commands/DeactivateCommand.ts +++ b/src/commands/DeactivateCommand.ts @@ -15,7 +15,7 @@ limitations under the License. */ import { Mjolnir } from "../Mjolnir"; -import { RichReply } from "matrix-bot-sdk"; +import { RichReply } from "@vector-im/matrix-bot-sdk"; // !mjolnir deactivate export async function execDeactivateCommand(roomId: string, event: any, mjolnir: Mjolnir, parts: string[]) { diff --git a/src/commands/DumpRulesCommand.ts b/src/commands/DumpRulesCommand.ts index 1fa6305..d4c54e3 100644 --- a/src/commands/DumpRulesCommand.ts +++ b/src/commands/DumpRulesCommand.ts @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import { RichReply } from "matrix-bot-sdk"; +import { RichReply } from "@vector-im/matrix-bot-sdk"; import { Mjolnir } from "../Mjolnir"; import { EntityType } from "../models/ListRule"; import { htmlEscape } from "../utils"; diff --git a/src/commands/ImportCommand.ts b/src/commands/ImportCommand.ts index 8cd2ac0..50d02c4 100644 --- a/src/commands/ImportCommand.ts +++ b/src/commands/ImportCommand.ts @@ -15,7 +15,7 @@ limitations under the License. */ import { Mjolnir } from "../Mjolnir"; -import { RichReply } from "matrix-bot-sdk"; +import { RichReply } from "@vector-im/matrix-bot-sdk"; import { EntityType } from "../models/ListRule"; import PolicyList from "../models/PolicyList"; diff --git a/src/commands/KickCommand.ts b/src/commands/KickCommand.ts index f7649f4..4fad133 100644 --- a/src/commands/KickCommand.ts +++ b/src/commands/KickCommand.ts @@ -15,7 +15,7 @@ limitations under the License. */ import { Mjolnir } from "../Mjolnir"; -import { LogLevel, MatrixGlob, RichReply } from "matrix-bot-sdk"; +import { LogLevel, MatrixGlob, RichReply } from "@vector-im/matrix-bot-sdk"; // !mjolnir kick [room] [reason] export async function execKickCommand(roomId: string, event: any, mjolnir: Mjolnir, parts: string[]) { diff --git a/src/commands/ListProtectedRoomsCommand.ts b/src/commands/ListProtectedRoomsCommand.ts index 6dc4663..829b1d3 100644 --- a/src/commands/ListProtectedRoomsCommand.ts +++ b/src/commands/ListProtectedRoomsCommand.ts @@ -15,7 +15,7 @@ limitations under the License. */ import { Mjolnir } from "../Mjolnir"; -import { Permalinks, RichReply } from "matrix-bot-sdk"; +import { Permalinks, RichReply } from "@vector-im/matrix-bot-sdk"; // !mjolnir rooms export async function execListProtectedRooms(roomId: string, event: any, mjolnir: Mjolnir) { diff --git a/src/commands/MakeRoomAdminCommand.ts b/src/commands/MakeRoomAdminCommand.ts index ea748cf..2a52c2c 100644 --- a/src/commands/MakeRoomAdminCommand.ts +++ b/src/commands/MakeRoomAdminCommand.ts @@ -15,7 +15,7 @@ limitations under the License. */ import { Mjolnir } from "../Mjolnir"; -import { RichReply } from "matrix-bot-sdk"; +import { RichReply } from "@vector-im/matrix-bot-sdk"; // !mjolnir make admin [] export async function execMakeRoomAdminCommand(roomId: string, event: any, mjolnir: Mjolnir, parts: string[]) { diff --git a/src/commands/ProtectionsCommands.ts b/src/commands/ProtectionsCommands.ts index 5611922..4262d7e 100644 --- a/src/commands/ProtectionsCommands.ts +++ b/src/commands/ProtectionsCommands.ts @@ -16,7 +16,7 @@ limitations under the License. import { htmlEscape } from "../utils"; import { Mjolnir } from "../Mjolnir"; -import { extractRequestError, LogService, RichReply } from "matrix-bot-sdk"; +import { extractRequestError, LogService, RichReply } from "@vector-im/matrix-bot-sdk"; import { isListSetting } from "../protections/ProtectionSettings"; // !mjolnir enable diff --git a/src/commands/RedactCommand.ts b/src/commands/RedactCommand.ts index f809a60..4601c6c 100644 --- a/src/commands/RedactCommand.ts +++ b/src/commands/RedactCommand.ts @@ -16,7 +16,7 @@ limitations under the License. import { Mjolnir } from "../Mjolnir"; import { redactUserMessagesIn } from "../utils"; -import { Permalinks } from "matrix-bot-sdk"; +import { Permalinks } from "@vector-im/matrix-bot-sdk"; // !mjolnir redact [room alias] [limit] export async function execRedactCommand(roomId: string, event: any, mjolnir: Mjolnir, parts: string[]) { diff --git a/src/commands/SetDefaultBanListCommand.ts b/src/commands/SetDefaultBanListCommand.ts index afef1c0..f1bf8f7 100644 --- a/src/commands/SetDefaultBanListCommand.ts +++ b/src/commands/SetDefaultBanListCommand.ts @@ -15,7 +15,7 @@ limitations under the License. */ import { Mjolnir } from "../Mjolnir"; -import { RichReply } from "matrix-bot-sdk"; +import { RichReply } from "@vector-im/matrix-bot-sdk"; export const DEFAULT_LIST_EVENT_TYPE = "org.matrix.mjolnir.default_list"; diff --git a/src/commands/SetPowerLevelCommand.ts b/src/commands/SetPowerLevelCommand.ts index 1b096db..3c8099c 100644 --- a/src/commands/SetPowerLevelCommand.ts +++ b/src/commands/SetPowerLevelCommand.ts @@ -15,7 +15,7 @@ limitations under the License. */ import { Mjolnir } from "../Mjolnir"; -import { extractRequestError, LogLevel, LogService } from "matrix-bot-sdk"; +import { extractRequestError, LogLevel, LogService } from "@vector-im/matrix-bot-sdk"; // !mjolnir powerlevel [room] export async function execSetPowerLevelCommand(roomId: string, event: any, mjolnir: Mjolnir, parts: string[]) { diff --git a/src/commands/SetupDecentralizedReportingCommand.ts b/src/commands/SetupDecentralizedReportingCommand.ts index 1b1ed01..e710e4d 100644 --- a/src/commands/SetupDecentralizedReportingCommand.ts +++ b/src/commands/SetupDecentralizedReportingCommand.ts @@ -1,5 +1,5 @@ import { Mjolnir } from "../Mjolnir"; -import { LogLevel } from "matrix-bot-sdk"; +import { LogLevel } from "@vector-im/matrix-bot-sdk"; const EVENT_MODERATED_BY = "org.matrix.msc3215.room.moderation.moderated_by"; const EVENT_MODERATOR_OF = "org.matrix.msc3215.room.moderation.moderator_of"; diff --git a/src/commands/ShutdownRoomCommand.ts b/src/commands/ShutdownRoomCommand.ts index 098c7ba..f24c4c8 100644 --- a/src/commands/ShutdownRoomCommand.ts +++ b/src/commands/ShutdownRoomCommand.ts @@ -15,7 +15,7 @@ limitations under the License. */ import { Mjolnir } from "../Mjolnir"; -import { RichReply } from "matrix-bot-sdk"; +import { RichReply } from "@vector-im/matrix-bot-sdk"; // !mjolnir shutdown room [] export async function execShutdownRoomCommand(roomId: string, event: any, mjolnir: Mjolnir, parts: string[]) { diff --git a/src/commands/SinceCommand.ts b/src/commands/SinceCommand.ts index daced1e..572ce7b 100644 --- a/src/commands/SinceCommand.ts +++ b/src/commands/SinceCommand.ts @@ -15,7 +15,7 @@ limitations under the License. */ import { Mjolnir } from "../Mjolnir"; -import { LogLevel, LogService, RichReply } from "matrix-bot-sdk"; +import { LogLevel, LogService, RichReply } from "@vector-im/matrix-bot-sdk"; import { htmlEscape, parseDuration } from "../utils"; import { ParseEntry } from "shell-quote"; import { HumanizeDurationLanguage, HumanizeDuration } from "humanize-duration-ts"; diff --git a/src/commands/StatusCommand.ts b/src/commands/StatusCommand.ts index 0f4ddd4..11c4edb 100644 --- a/src/commands/StatusCommand.ts +++ b/src/commands/StatusCommand.ts @@ -15,7 +15,7 @@ limitations under the License. */ import { Mjolnir, STATE_CHECKING_PERMISSIONS, STATE_NOT_STARTED, STATE_RUNNING, STATE_SYNCING } from "../Mjolnir"; -import { RichReply } from "matrix-bot-sdk"; +import { RichReply } from "@vector-im/matrix-bot-sdk"; import { htmlEscape, parseDuration } from "../utils"; import { HumanizeDurationLanguage, HumanizeDuration } from "humanize-duration-ts"; import PolicyList from "../models/PolicyList"; diff --git a/src/commands/SuspendCommand.ts b/src/commands/SuspendCommand.ts index db74e32..68906db 100644 --- a/src/commands/SuspendCommand.ts +++ b/src/commands/SuspendCommand.ts @@ -15,7 +15,7 @@ limitations under the License. */ import {Mjolnir} from "../Mjolnir"; -import {RichReply} from "matrix-bot-sdk"; +import {RichReply} from "@vector-im/matrix-bot-sdk"; export async function execSuspendCommand(roomId: string, event: any, mjolnir: Mjolnir, parts: string[]) { const target = parts[2]; diff --git a/src/commands/UnbanBanCommand.ts b/src/commands/UnbanBanCommand.ts index c6285ba..abaa9fc 100644 --- a/src/commands/UnbanBanCommand.ts +++ b/src/commands/UnbanBanCommand.ts @@ -16,7 +16,7 @@ limitations under the License. import { Mjolnir } from "../Mjolnir"; import PolicyList from "../models/PolicyList"; -import { extractRequestError, LogLevel, LogService, MatrixGlob, RichReply } from "matrix-bot-sdk"; +import { extractRequestError, LogLevel, LogService, MatrixGlob, RichReply } from "@vector-im/matrix-bot-sdk"; import { RULE_ROOM, RULE_SERVER, RULE_USER, USER_RULE_TYPES } from "../models/ListRule"; import { DEFAULT_LIST_EVENT_TYPE } from "./SetDefaultBanListCommand"; diff --git a/src/commands/UnsuspendCommand.ts b/src/commands/UnsuspendCommand.ts index fbb06d1..b364498 100644 --- a/src/commands/UnsuspendCommand.ts +++ b/src/commands/UnsuspendCommand.ts @@ -15,7 +15,7 @@ limitations under the License. */ import {Mjolnir} from "../Mjolnir"; -import {RichReply} from "matrix-bot-sdk"; +import {RichReply} from "@vector-im/matrix-bot-sdk"; export async function execUnsuspendCommand(roomId: string, event: any, mjolnir: Mjolnir, parts: string[]) { const target = parts[2]; diff --git a/src/commands/WatchUnwatchCommand.ts b/src/commands/WatchUnwatchCommand.ts index 0ffc05b..51459b4 100644 --- a/src/commands/WatchUnwatchCommand.ts +++ b/src/commands/WatchUnwatchCommand.ts @@ -15,7 +15,7 @@ limitations under the License. */ import { Mjolnir } from "../Mjolnir"; -import { Permalinks, RichReply } from "matrix-bot-sdk"; +import { Permalinks, RichReply } from "@vector-im/matrix-bot-sdk"; // !mjolnir watch export async function execWatchCommand(roomId: string, event: any, mjolnir: Mjolnir, parts: string[]) { diff --git a/src/config.ts b/src/config.ts index c601386..c49bbd8 100644 --- a/src/config.ts +++ b/src/config.ts @@ -16,7 +16,7 @@ limitations under the License. import * as fs from "fs"; import { load } from "js-yaml"; -import { MatrixClient, LogService } from "matrix-bot-sdk"; +import { MatrixClient, LogService } from "@vector-im/matrix-bot-sdk"; import Config from "config"; export interface IHealthConfig { diff --git a/src/health/healthz.ts b/src/health/healthz.ts index 45fea26..99c3712 100644 --- a/src/health/healthz.ts +++ b/src/health/healthz.ts @@ -15,7 +15,7 @@ limitations under the License. */ import * as http from "http"; -import { LogService } from "matrix-bot-sdk"; +import { LogService } from "@vector-im/matrix-bot-sdk"; import { IConfig } from "../config"; // allowed to use the global configuration since this is only intended to be used by `src/index.ts`. diff --git a/src/index.ts b/src/index.ts index d4e3531..bb1968d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -25,7 +25,7 @@ import { PantalaimonClient, RichConsoleLogger, SimpleFsStorageProvider -} from "matrix-bot-sdk"; +} from "@vector-im/matrix-bot-sdk"; import { read as configRead } from "./config"; import { Mjolnir } from "./Mjolnir"; diff --git a/src/models/AccessControlUnit.ts b/src/models/AccessControlUnit.ts index add6adc..aebf32b 100644 --- a/src/models/AccessControlUnit.ts +++ b/src/models/AccessControlUnit.ts @@ -16,7 +16,7 @@ limitations under the License. import PolicyList, { ChangeType, ListRuleChange } from "./PolicyList"; import { EntityType, ListRule, Recommendation, RULE_SERVER, RULE_USER } from "./ListRule"; -import { LogService, UserID } from "matrix-bot-sdk"; +import { LogService, UserID } from "@vector-im/matrix-bot-sdk"; import { ServerAcl } from "./ServerAcl"; /** diff --git a/src/models/ListRule.ts b/src/models/ListRule.ts index 18988f5..3f52fbd 100644 --- a/src/models/ListRule.ts +++ b/src/models/ListRule.ts @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import { MatrixGlob } from "matrix-bot-sdk"; +import { MatrixGlob } from "@vector-im/matrix-bot-sdk"; export enum EntityType { /// `entity` is to be parsed as a glob of users IDs diff --git a/src/models/PolicyList.ts b/src/models/PolicyList.ts index 6a82e78..68d60cd 100644 --- a/src/models/PolicyList.ts +++ b/src/models/PolicyList.ts @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import { extractRequestError, LogLevel, LogService, Permalinks, RoomCreateOptions, UserID } from "matrix-bot-sdk"; +import { extractRequestError, LogLevel, LogService, Permalinks, RoomCreateOptions, UserID } from "@vector-im/matrix-bot-sdk"; import { EventEmitter } from "events"; import { ALL_RULE_TYPES, EntityType, ListRule, Recommendation, ROOM_RULE_TYPES, RULE_ROOM, RULE_SERVER, RULE_USER, SERVER_RULE_TYPES, USER_RULE_TYPES } from "./ListRule"; import { MatrixSendClient } from "../MatrixEmitter"; diff --git a/src/models/RuleServer.ts b/src/models/RuleServer.ts index 515c131..d70e795 100644 --- a/src/models/RuleServer.ts +++ b/src/models/RuleServer.ts @@ -15,7 +15,7 @@ limitations under the License. */ import BanList, { ChangeType, ListRuleChange } from "./PolicyList" import * as crypto from "crypto"; -import { LogService } from "matrix-bot-sdk"; +import { LogService } from "@vector-im/matrix-bot-sdk"; import { EntityType, ListRule } from "./ListRule"; import PolicyList from "./PolicyList"; diff --git a/src/models/ServerAcl.ts b/src/models/ServerAcl.ts index f9d6eca..30cf69e 100644 --- a/src/models/ServerAcl.ts +++ b/src/models/ServerAcl.ts @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import { MatrixGlob } from "matrix-bot-sdk"; +import { MatrixGlob } from "@vector-im/matrix-bot-sdk"; import { setToArray } from "../utils"; export interface ServerAclContent { diff --git a/src/protections/BasicFlooding.ts b/src/protections/BasicFlooding.ts index 10ef582..a76b817 100644 --- a/src/protections/BasicFlooding.ts +++ b/src/protections/BasicFlooding.ts @@ -17,7 +17,7 @@ limitations under the License. import { Protection } from "./IProtection"; import { NumberProtectionSetting } from "./ProtectionSettings"; import { Mjolnir } from "../Mjolnir"; -import { LogLevel, LogService } from "matrix-bot-sdk"; +import { LogLevel, LogService } from "@vector-im/matrix-bot-sdk"; // if this is exceeded, we'll ban the user for spam and redact their messages export const DEFAULT_MAX_PER_MINUTE = 10; diff --git a/src/protections/DetectFederationLag.ts b/src/protections/DetectFederationLag.ts index 8ffb3f8..da53350 100644 --- a/src/protections/DetectFederationLag.ts +++ b/src/protections/DetectFederationLag.ts @@ -17,7 +17,7 @@ limitations under the License. import { Protection } from "./IProtection"; import { DurationMSProtectionSetting, NumberProtectionSetting, StringSetProtectionSetting } from "./ProtectionSettings"; import { Mjolnir } from "../Mjolnir"; -import { LogLevel, UserID } from "matrix-bot-sdk"; +import { LogLevel, UserID } from "@vector-im/matrix-bot-sdk"; const DEFAULT_BUCKET_DURATION_MS = 10_000; const DEFAULT_BUCKET_NUMBER = 6; diff --git a/src/protections/FirstMessageIsImage.ts b/src/protections/FirstMessageIsImage.ts index dd7dd41..31cfe03 100644 --- a/src/protections/FirstMessageIsImage.ts +++ b/src/protections/FirstMessageIsImage.ts @@ -16,7 +16,7 @@ limitations under the License. import { Protection } from "./IProtection"; import { Mjolnir } from "../Mjolnir"; -import { LogLevel, LogService } from "matrix-bot-sdk"; +import { LogLevel, LogService } from "@vector-im/matrix-bot-sdk"; import { isTrueJoinEvent } from "../utils"; export class FirstMessageIsImage extends Protection { diff --git a/src/protections/JoinWaveShortCircuit.ts b/src/protections/JoinWaveShortCircuit.ts index 3746a13..4ad1579 100644 --- a/src/protections/JoinWaveShortCircuit.ts +++ b/src/protections/JoinWaveShortCircuit.ts @@ -17,7 +17,7 @@ limitations under the License. import {Protection} from "./IProtection"; import {Mjolnir} from "../Mjolnir"; import {NumberProtectionSetting} from "./ProtectionSettings"; -import {LogLevel} from "matrix-bot-sdk"; +import {LogLevel} from "@vector-im/matrix-bot-sdk"; const DEFAULT_MAX_PER_TIMESCALE = 50; const DEFAULT_TIMESCALE_MINUTES = 60; diff --git a/src/protections/LocalAbuseReports.ts b/src/protections/LocalAbuseReports.ts index c0ff71f..d6bd468 100644 --- a/src/protections/LocalAbuseReports.ts +++ b/src/protections/LocalAbuseReports.ts @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import { LogLevel } from "matrix-bot-sdk"; +import { LogLevel } from "@vector-im/matrix-bot-sdk"; import { Mjolnir } from "../Mjolnir"; import { Protection } from "./IProtection"; diff --git a/src/protections/MessageIsMedia.ts b/src/protections/MessageIsMedia.ts index 7349913..68d1737 100644 --- a/src/protections/MessageIsMedia.ts +++ b/src/protections/MessageIsMedia.ts @@ -16,7 +16,7 @@ limitations under the License. import { Protection } from "./IProtection"; import { Mjolnir } from "../Mjolnir"; -import { LogLevel, Permalinks, UserID } from "matrix-bot-sdk"; +import { LogLevel, Permalinks, UserID } from "@vector-im/matrix-bot-sdk"; export class MessageIsMedia extends Protection { diff --git a/src/protections/MessageIsVoice.ts b/src/protections/MessageIsVoice.ts index ebc0f9a..6c89c14 100644 --- a/src/protections/MessageIsVoice.ts +++ b/src/protections/MessageIsVoice.ts @@ -16,7 +16,7 @@ limitations under the License. import { Protection } from "./IProtection"; import { Mjolnir } from "../Mjolnir"; -import { LogLevel, Permalinks, UserID } from "matrix-bot-sdk"; +import { LogLevel, Permalinks, UserID } from "@vector-im/matrix-bot-sdk"; export class MessageIsVoice extends Protection { diff --git a/src/protections/NsfwProtection.ts b/src/protections/NsfwProtection.ts index 2237b0b..040bf1c 100644 --- a/src/protections/NsfwProtection.ts +++ b/src/protections/NsfwProtection.ts @@ -17,7 +17,7 @@ limitations under the License. import { Protection } from "./IProtection"; import { Mjolnir } from "../Mjolnir"; import * as nsfw from 'nsfwjs'; -import {LogLevel} from "matrix-bot-sdk"; +import {LogLevel} from "@vector-im/matrix-bot-sdk"; import { node } from '@tensorflow/tfjs-node'; diff --git a/src/protections/ProtectionManager.ts b/src/protections/ProtectionManager.ts index 9bd1e2c..eba766e 100644 --- a/src/protections/ProtectionManager.ts +++ b/src/protections/ProtectionManager.ts @@ -24,7 +24,7 @@ import { MessageIsMedia } from "./MessageIsMedia"; import { TrustedReporters } from "./TrustedReporters"; import { JoinWaveShortCircuit } from "./JoinWaveShortCircuit"; import { Mjolnir } from "../Mjolnir"; -import { extractRequestError, LogLevel, LogService, Permalinks } from "matrix-bot-sdk"; +import { extractRequestError, LogLevel, LogService, Permalinks } from "@vector-im/matrix-bot-sdk"; import { ProtectionSettingValidationError } from "./ProtectionSettings"; import { Consequence } from "./consequence"; import { htmlEscape } from "../utils"; diff --git a/src/protections/WordList.ts b/src/protections/WordList.ts index 367ae57..d03976b 100644 --- a/src/protections/WordList.ts +++ b/src/protections/WordList.ts @@ -17,7 +17,7 @@ limitations under the License. import { Protection } from "./IProtection"; import { ConsequenceBan, ConsequenceRedact } from "./consequence"; import { Mjolnir } from "../Mjolnir"; -import { LogLevel, LogService } from "matrix-bot-sdk"; +import { LogLevel, LogService } from "@vector-im/matrix-bot-sdk"; import { isTrueJoinEvent } from "../utils"; export class WordList extends Protection { diff --git a/src/queues/EventRedactionQueue.ts b/src/queues/EventRedactionQueue.ts index 1bf333f..effd00b 100644 --- a/src/queues/EventRedactionQueue.ts +++ b/src/queues/EventRedactionQueue.ts @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -import { LogLevel, MatrixClient } from "matrix-bot-sdk" +import { LogLevel, MatrixClient } from "@vector-im/matrix-bot-sdk" import { ERROR_KIND_FATAL } from "../ErrorCache"; import { RoomUpdateError } from "../models/RoomUpdateError"; import { redactUserMessagesIn } from "../utils"; diff --git a/src/queues/ThrottlingQueue.ts b/src/queues/ThrottlingQueue.ts index efa3cce..171ae08 100644 --- a/src/queues/ThrottlingQueue.ts +++ b/src/queues/ThrottlingQueue.ts @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import { extractRequestError, LogLevel } from "matrix-bot-sdk"; +import { extractRequestError, LogLevel } from "@vector-im/matrix-bot-sdk"; import { Mjolnir } from "../Mjolnir"; export type Task = (queue: ThrottlingQueue) => Promise; diff --git a/src/queues/UnlistedUserRedactionQueue.ts b/src/queues/UnlistedUserRedactionQueue.ts index ee10fae..90fa50f 100644 --- a/src/queues/UnlistedUserRedactionQueue.ts +++ b/src/queues/UnlistedUserRedactionQueue.ts @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -import { extractRequestError, LogLevel, LogService, Permalinks } from "matrix-bot-sdk"; +import { extractRequestError, LogLevel, LogService, Permalinks } from "@vector-im/matrix-bot-sdk"; import { Mjolnir } from "../Mjolnir"; /** diff --git a/src/report/ReportManager.ts b/src/report/ReportManager.ts index 1d659a5..d00c3bb 100644 --- a/src/report/ReportManager.ts +++ b/src/report/ReportManager.ts @@ -14,8 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ -import { PowerLevelAction } from "matrix-bot-sdk/lib/models/PowerLevelAction"; -import { LogService, UserID } from "matrix-bot-sdk"; +import { PowerLevelAction } from "@vector-im/matrix-bot-sdk/lib/models/PowerLevelAction"; +import { LogService, UserID } from "@vector-im/matrix-bot-sdk"; import { htmlToText } from "html-to-text"; import { htmlEscape } from "../utils"; import { JSDOM } from 'jsdom'; diff --git a/src/report/ReportPoller.ts b/src/report/ReportPoller.ts index d1a03c2..913aeb4 100644 --- a/src/report/ReportPoller.ts +++ b/src/report/ReportPoller.ts @@ -16,7 +16,7 @@ limitations under the License. import { Mjolnir, REPORT_POLL_EVENT_TYPE } from "../Mjolnir"; import { ReportManager } from './ReportManager'; -import { LogLevel } from "matrix-bot-sdk"; +import { LogLevel } from "@vector-im/matrix-bot-sdk"; class InvalidStateError extends Error { } diff --git a/src/utils.ts b/src/utils.ts index 40f3244..8eae4ec 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -20,7 +20,7 @@ import { MatrixGlob, getRequestFn, setRequestFn, -} from "matrix-bot-sdk"; +} from "@vector-im/matrix-bot-sdk"; import { ClientRequest, IncomingMessage } from "http"; import { default as parseDuration } from "parse-duration"; import * as Sentry from '@sentry/node'; diff --git a/src/webapis/OpenMetrics.ts b/src/webapis/OpenMetrics.ts index 2bd3d43..fc0b273 100644 --- a/src/webapis/OpenMetrics.ts +++ b/src/webapis/OpenMetrics.ts @@ -16,7 +16,7 @@ limitations under the License. import { Server } from "http"; import express from "express"; -import { LogService } from "matrix-bot-sdk"; +import { LogService } from "@vector-im/matrix-bot-sdk"; import { IHealthConfig } from "../config"; import { collectDefaultMetrics, register } from "prom-client"; diff --git a/src/webapis/WebAPIs.ts b/src/webapis/WebAPIs.ts index e65da08..ddedc46 100644 --- a/src/webapis/WebAPIs.ts +++ b/src/webapis/WebAPIs.ts @@ -16,7 +16,7 @@ limitations under the License. import { Server } from "http"; import express from "express"; -import { LogService, MatrixClient } from "matrix-bot-sdk"; +import { LogService, MatrixClient } from "@vector-im/matrix-bot-sdk"; import RuleServer from "../models/RuleServer"; import { ReportManager } from "../report/ReportManager"; import { IConfig } from "../config"; diff --git a/test/appservice/integration/provisionTest.ts b/test/appservice/integration/provisionTest.ts index 106654a..97f5458 100644 --- a/test/appservice/integration/provisionTest.ts +++ b/test/appservice/integration/provisionTest.ts @@ -1,7 +1,7 @@ import { isPolicyRoom, readTestConfig, setupHarness } from "../utils/harness"; import { newTestUser } from "../../integration/clientHelper"; import { getFirstReply } from "../../integration/commands/commandUtils"; -import { MatrixClient } from "matrix-bot-sdk"; +import { MatrixClient } from "@vector-im/matrix-bot-sdk"; import { MjolnirAppService } from "../../../src/appservice/AppService"; import dns from 'node:dns'; diff --git a/test/appservice/integration/webAPITest.ts b/test/appservice/integration/webAPITest.ts index 1b5165e..5070e92 100644 --- a/test/appservice/integration/webAPITest.ts +++ b/test/appservice/integration/webAPITest.ts @@ -2,7 +2,7 @@ import { MjolnirAppService } from "../../../src/appservice/AppService"; import { newTestUser } from "../../integration/clientHelper"; import { isPolicyRoom, readTestConfig, setupHarness } from "../utils/harness"; import { CreateMjolnirResponse, MjolnirWebAPIClient } from "../utils/webAPIClient"; -import { MatrixClient } from "matrix-bot-sdk"; +import { MatrixClient } from "@vector-im/matrix-bot-sdk"; import { getFirstReply } from "../../integration/commands/commandUtils"; import expect from "expect"; import dns from 'node:dns'; diff --git a/test/appservice/utils/harness.ts b/test/appservice/utils/harness.ts index 00ad2ba..e923714 100644 --- a/test/appservice/utils/harness.ts +++ b/test/appservice/utils/harness.ts @@ -4,7 +4,7 @@ import { ensureAliasedRoomExists } from "../../integration/mjolnirSetupUtils"; import { read as configRead, IConfig } from "../../../src/appservice/config/config"; import { newTestUser } from "../../integration/clientHelper"; import PolicyList from "../../../src/models/PolicyList"; -import { CreateEvent, MatrixClient } from "matrix-bot-sdk"; +import { CreateEvent, MatrixClient } from "@vector-im/matrix-bot-sdk"; export function readTestConfig(): IConfig { return configRead(path.join(__dirname, "../../../src/appservice/config/config.harness.yaml")); diff --git a/test/appservice/utils/webAPIClient.ts b/test/appservice/utils/webAPIClient.ts index ef7269b..16e9191 100644 --- a/test/appservice/utils/webAPIClient.ts +++ b/test/appservice/utils/webAPIClient.ts @@ -1,5 +1,5 @@ import * as request from "request"; -import { MatrixClient } from "matrix-bot-sdk"; +import { MatrixClient } from "@vector-im/matrix-bot-sdk"; interface OpenIDTokenInfo { access_token: string, diff --git a/test/integration/acceptInvitesFromSpaceTest.ts b/test/integration/acceptInvitesFromSpaceTest.ts index 3f581a5..a538e8b 100644 --- a/test/integration/acceptInvitesFromSpaceTest.ts +++ b/test/integration/acceptInvitesFromSpaceTest.ts @@ -1,4 +1,4 @@ -import { MatrixClient } from "matrix-bot-sdk"; +import { MatrixClient } from "@vector-im/matrix-bot-sdk"; import { Mjolnir } from "../../src/Mjolnir" import { newTestUser } from "./clientHelper"; diff --git a/test/integration/banListTest.ts b/test/integration/banListTest.ts index be9bbcd..9a077e0 100644 --- a/test/integration/banListTest.ts +++ b/test/integration/banListTest.ts @@ -1,6 +1,6 @@ import { strict as assert } from "assert"; import { newTestUser } from "./clientHelper"; -import { LogService, MatrixClient, Permalinks, UserID } from "matrix-bot-sdk"; +import { LogService, MatrixClient, Permalinks, UserID } from "@vector-im/matrix-bot-sdk"; import PolicyList, { ChangeType } from "../../src/models/PolicyList"; import { ServerAcl } from "../../src/models/ServerAcl"; import { getFirstReaction } from "./commands/commandUtils"; diff --git a/test/integration/clientHelper.ts b/test/integration/clientHelper.ts index 9a8de47..15c8222 100644 --- a/test/integration/clientHelper.ts +++ b/test/integration/clientHelper.ts @@ -1,5 +1,5 @@ import { HmacSHA1 } from "crypto-js"; -import { getRequestFn, LogService, MatrixClient, MemoryStorageProvider, PantalaimonClient } from "matrix-bot-sdk"; +import { getRequestFn, LogService, MatrixClient, MemoryStorageProvider, PantalaimonClient } from "@vector-im/matrix-bot-sdk"; const REGISTRATION_ATTEMPTS = 10; const REGISTRATION_RETRY_BASE_DELAY_MS = 100; diff --git a/test/integration/commands/commandUtils.ts b/test/integration/commands/commandUtils.ts index 41aff53..d1c053b 100644 --- a/test/integration/commands/commandUtils.ts +++ b/test/integration/commands/commandUtils.ts @@ -1,4 +1,4 @@ -import { MatrixClient } from "matrix-bot-sdk"; +import { MatrixClient } from "@vector-im/matrix-bot-sdk"; import { strict as assert } from "assert"; import * as crypto from "crypto"; import { MatrixEmitter } from "../../../src/MatrixEmitter"; diff --git a/test/integration/commands/makedminCommandTest.ts b/test/integration/commands/makedminCommandTest.ts index 51be7ad..ef703cc 100644 --- a/test/integration/commands/makedminCommandTest.ts +++ b/test/integration/commands/makedminCommandTest.ts @@ -2,7 +2,7 @@ import { newTestUser } from "../clientHelper"; import { PowerLevelAction } from "matrix-bot-sdk/lib/models/PowerLevelAction"; -import { LogService } from "matrix-bot-sdk"; +import { LogService } from "@vector-im/matrix-bot-sdk"; import { getFirstReaction } from "./commandUtils"; describe("Test: The make admin command", function () { diff --git a/test/integration/commands/redactCommandTest.ts b/test/integration/commands/redactCommandTest.ts index 8ddc913..a824b40 100644 --- a/test/integration/commands/redactCommandTest.ts +++ b/test/integration/commands/redactCommandTest.ts @@ -2,7 +2,7 @@ import { strict as assert } from "assert"; import { newTestUser } from "../clientHelper"; import { getMessagesByUserIn } from "../../../src/utils"; -import { LogService } from "matrix-bot-sdk"; +import { LogService } from "@vector-im/matrix-bot-sdk"; import { getFirstReaction } from "./commandUtils"; describe("Test: The redaction command", function () { diff --git a/test/integration/commands/suspendCommandTest.ts b/test/integration/commands/suspendCommandTest.ts index f9afa2c..1223197 100644 --- a/test/integration/commands/suspendCommandTest.ts +++ b/test/integration/commands/suspendCommandTest.ts @@ -16,7 +16,7 @@ limitations under the License. import {newTestUser} from "../clientHelper"; import {strict as assert} from "assert"; -import { MatrixClient, RoomCreateOptions } from "matrix-bot-sdk"; +import { MatrixClient, RoomCreateOptions } from "@vector-im/matrix-bot-sdk"; import { read as configRead } from "../../../src/config"; describe("Test: suspend/unsuspend command", function () { diff --git a/test/integration/detectFederationLagTest.ts b/test/integration/detectFederationLagTest.ts index 16cd23b..35e4192 100644 --- a/test/integration/detectFederationLagTest.ts +++ b/test/integration/detectFederationLagTest.ts @@ -1,6 +1,6 @@ import { strict as assert } from "assert"; -import { UserID } from "matrix-bot-sdk"; +import { UserID } from "@vector-im/matrix-bot-sdk"; import { Suite } from "mocha"; import { Mjolnir } from "../../src/Mjolnir"; import { DetectFederationLag, LAG_STATE_EVENT } from "../../src/protections/DetectFederationLag"; diff --git a/test/integration/mjolnirSetupUtils.ts b/test/integration/mjolnirSetupUtils.ts index 1082c60..91658e6 100644 --- a/test/integration/mjolnirSetupUtils.ts +++ b/test/integration/mjolnirSetupUtils.ts @@ -20,7 +20,7 @@ import { LogService, LogLevel, RichConsoleLogger -} from "matrix-bot-sdk"; +} from "@vector-im/matrix-bot-sdk"; import { Mjolnir} from '../../src/Mjolnir'; import { overrideRatelimitForUser, registerUser } from "./clientHelper"; diff --git a/test/integration/nsfwProtectionTest.ts b/test/integration/nsfwProtectionTest.ts index f1aa8f1..7b867fd 100644 --- a/test/integration/nsfwProtectionTest.ts +++ b/test/integration/nsfwProtectionTest.ts @@ -1,6 +1,6 @@ import {newTestUser} from "./clientHelper"; -import {MatrixClient} from "matrix-bot-sdk"; +import {MatrixClient} from "@vector-im/matrix-bot-sdk"; import {getFirstReaction} from "./commands/commandUtils"; import {strict as assert} from "assert"; import { readFileSync } from 'fs'; diff --git a/test/integration/openMetricsTest.ts b/test/integration/openMetricsTest.ts index fb1d57d..61da8d5 100644 --- a/test/integration/openMetricsTest.ts +++ b/test/integration/openMetricsTest.ts @@ -1,5 +1,5 @@ import { strict as assert } from "assert"; -import { getRequestFn } from "matrix-bot-sdk"; +import { getRequestFn } from "@vector-im/matrix-bot-sdk"; import { IConfig } from "../../src/config"; diff --git a/test/integration/policyConsumptionTest.ts b/test/integration/policyConsumptionTest.ts index a3b8c2d..7decb7f 100644 --- a/test/integration/policyConsumptionTest.ts +++ b/test/integration/policyConsumptionTest.ts @@ -3,7 +3,7 @@ import { strict as assert } from "assert"; import { newTestUser } from "./clientHelper"; import { Mjolnir } from "../../src/Mjolnir"; import { read as configRead } from "../../src/config"; -import { getRequestFn, LogService } from "matrix-bot-sdk"; +import { getRequestFn, LogService } from "@vector-im/matrix-bot-sdk"; import { createBanList, getFirstReaction } from "./commands/commandUtils"; /** diff --git a/test/integration/protectedRoomsConfigTest.ts b/test/integration/protectedRoomsConfigTest.ts index bbfb8e7..d85196c 100644 --- a/test/integration/protectedRoomsConfigTest.ts +++ b/test/integration/protectedRoomsConfigTest.ts @@ -1,6 +1,6 @@ import { strict as assert } from "assert"; -import { MatrixClient, Permalinks, UserID } from "matrix-bot-sdk"; +import { MatrixClient, Permalinks, UserID } from "@vector-im/matrix-bot-sdk"; import { MatrixSendClient } from "../../src/MatrixEmitter"; import { Mjolnir } from "../../src/Mjolnir"; import PolicyList from "../../src/models/PolicyList"; diff --git a/test/integration/throttleQueueTest.ts b/test/integration/throttleQueueTest.ts index 829e3f3..1a461f6 100644 --- a/test/integration/throttleQueueTest.ts +++ b/test/integration/throttleQueueTest.ts @@ -1,6 +1,6 @@ import { strict as assert } from "assert"; -import { UserID } from "matrix-bot-sdk"; +import { UserID } from "@vector-im/matrix-bot-sdk"; import { ThrottlingQueue } from "../../src/queues/ThrottlingQueue"; describe("Test: ThrottlingQueue", function() { diff --git a/test/integration/utilsTest.ts b/test/integration/utilsTest.ts index 41c396d..8e33b28 100644 --- a/test/integration/utilsTest.ts +++ b/test/integration/utilsTest.ts @@ -1,5 +1,5 @@ import { strict as assert } from "assert"; -import { LogLevel } from "matrix-bot-sdk"; +import { LogLevel } from "@vector-im/matrix-bot-sdk"; import ManagementRoomOutput from "../../src/ManagementRoomOutput"; describe("Test: utils", function() {