mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-10-15 05:39:51 +00:00
Remove the aliases for the matrix-protection-suite packages. (#1162)
Docker Hub - Develop / docker-latest (push) Canceled after 0s
GHCR - Development Branches / ghcr-publish (push) Canceled after 0s
Tests / Build & Lint (push) Canceled after 0s
Tests / Unit tests (push) Canceled after 0s
Tests / Integration tests (push) Canceled after 0s
Tests / Application Service Integration tests (push) Canceled after 0s
Validate Docker Build / validate-docker-build (push) Canceled after 0s
Docker Hub - Develop / docker-latest (push) Canceled after 0s
GHCR - Development Branches / ghcr-publish (push) Canceled after 0s
Tests / Build & Lint (push) Canceled after 0s
Tests / Unit tests (push) Canceled after 0s
Tests / Integration tests (push) Canceled after 0s
Tests / Application Service Integration tests (push) Canceled after 0s
Validate Docker Build / validate-docker-build (push) Canceled after 0s
* Remove old matrix-protection-suite package aliases. This was leading to issues with monorepo package management. https://github.com/the-draupnir-project/Draupnir/issues/1124 * Fix badly imported symbols from packages that already export them. * Cleanup build command arguments. There was a deprecation warning for short workspaces flag.
This commit is contained in:
@@ -46,6 +46,8 @@
|
||||
"@sinclair/typebox": "0.34.49",
|
||||
"@the-draupnir-project/interface-manager": "4.2.6",
|
||||
"@the-draupnir-project/matrix-basic-types": "1.5.1",
|
||||
"@the-draupnir-project/matrix-protection-suite": "7.1.0",
|
||||
"@the-draupnir-project/matrix-protection-suite-for-matrix-bot-sdk": "5.0.1",
|
||||
"@the-draupnir-project/mps-interface-adaptor": "0.6.0",
|
||||
"@vector-im/matrix-bot-sdk": "^0.8.0-element.3",
|
||||
"better-sqlite3": "^12.8.0",
|
||||
@@ -56,15 +58,12 @@
|
||||
"js-yaml": "^4.1.0",
|
||||
"jsdom": "^24.0.0",
|
||||
"matrix-appservice-bridge": "^11.2.0",
|
||||
"matrix-protection-suite": "npm:@the-draupnir-project/matrix-protection-suite@7.1.0",
|
||||
"matrix-protection-suite-for-matrix-bot-sdk": "npm:@the-draupnir-project/matrix-protection-suite@5.0.1",
|
||||
"pg": "^8.8.0",
|
||||
"yaml": "^2.3.2"
|
||||
},
|
||||
"overrides": {
|
||||
"@the-draupnir-project/matrix-basic-types": "$the-draupnir-project/matrix-basic-types",
|
||||
"@the-draupnir-project/interface-manager": "$the-draupnir-project/interface-manager",
|
||||
"matrix-protection-suite": "$matrix-protection-suite"
|
||||
"@the-draupnir-project/interface-manager": "$the-draupnir-project/interface-manager"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=24.0.0"
|
||||
|
||||
@@ -28,7 +28,7 @@ import {
|
||||
Task,
|
||||
Value,
|
||||
isError,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { UnlistedUserRedactionQueue } from "./queues/UnlistedUserRedactionQueue";
|
||||
import { ThrottlingQueue } from "./queues/ThrottlingQueue";
|
||||
import ManagementRoomOutput from "./managementroom/ManagementRoomOutput";
|
||||
@@ -37,7 +37,7 @@ import { StandardReportManager } from "./report/ReportManager";
|
||||
import {
|
||||
MatrixSendClient,
|
||||
SynapseAdminClient,
|
||||
} from "matrix-protection-suite-for-matrix-bot-sdk";
|
||||
} from "@the-draupnir-project/matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import { IConfig } from "./config";
|
||||
import { LogLevel } from "@vector-im/matrix-bot-sdk";
|
||||
import { RendererMessageCollector } from "./capabilities/RendererMessageCollector";
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
ActionException,
|
||||
ActionExceptionKind,
|
||||
ConfigRecoverableError,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import {
|
||||
BotSDKMatrixAccountData,
|
||||
ClientCapabilityFactory,
|
||||
@@ -25,7 +25,7 @@ import {
|
||||
RoomStateManagerFactory,
|
||||
SafeMatrixEmitter,
|
||||
joinedRoomsSafe,
|
||||
} from "matrix-protection-suite-for-matrix-bot-sdk";
|
||||
} from "@the-draupnir-project/matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import { IConfig } from "./config";
|
||||
import { Draupnir } from "./Draupnir";
|
||||
import { DraupnirFactory } from "./draupnirfactory/DraupnirFactory";
|
||||
|
||||
@@ -24,7 +24,7 @@ import {
|
||||
PolicyRuleType,
|
||||
Recommendation,
|
||||
RoomJoiner,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
|
||||
/**
|
||||
* Utility to manage which users have access to the application service,
|
||||
|
||||
@@ -33,7 +33,7 @@ import {
|
||||
joinedRoomsSafe,
|
||||
resultifyBotSDKRequestError,
|
||||
resultifyBotSDKRequestErrorWith404AsUndefined,
|
||||
} from "matrix-protection-suite-for-matrix-bot-sdk";
|
||||
} from "@the-draupnir-project/matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import {
|
||||
ClientsInRoomMap,
|
||||
DefaultEventDecoder,
|
||||
@@ -42,7 +42,7 @@ import {
|
||||
StandardClientsInRoomMap,
|
||||
Task,
|
||||
isError,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { AppServiceDraupnirManager } from "./AppServiceDraupnirManager";
|
||||
import {
|
||||
StringRoomID,
|
||||
|
||||
@@ -28,7 +28,7 @@ import {
|
||||
Task,
|
||||
assertThrowableIsError,
|
||||
isError,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { Draupnir } from "../Draupnir";
|
||||
import {
|
||||
BotSDKMatrixAccountData,
|
||||
@@ -36,7 +36,7 @@ import {
|
||||
ClientForUserID,
|
||||
joinedRoomsSafe,
|
||||
RoomStateManagerFactory,
|
||||
} from "matrix-protection-suite-for-matrix-bot-sdk";
|
||||
} from "@the-draupnir-project/matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import {
|
||||
DraupnirFailType,
|
||||
StandardDraupnirManager,
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { AppserviceAdaptorContext } from "./AppserviceBotPrerequisite";
|
||||
import { ActionResult } from "matrix-protection-suite";
|
||||
import { ActionResult } from "@the-draupnir-project/matrix-protection-suite";
|
||||
import {
|
||||
MatrixUserIDPresentationType,
|
||||
describeCommand,
|
||||
|
||||
@@ -11,7 +11,10 @@ import {
|
||||
TopPresentationSchema,
|
||||
describeCommand,
|
||||
} from "@the-draupnir-project/interface-manager";
|
||||
import { ActionResult, Ok } from "matrix-protection-suite";
|
||||
import {
|
||||
ActionResult,
|
||||
Ok,
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { AppserviceBotCommands } from "./AppserviceBotCommandTable";
|
||||
import { AppserviceBotInterfaceAdaptor } from "./AppserviceBotInterfaceAdaptor";
|
||||
import {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
import { MatrixAdaptorContext } from "@the-draupnir-project/mps-interface-adaptor";
|
||||
import { MjolnirAppService } from "../AppService";
|
||||
import { MatrixSendClient } from "matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import { MatrixSendClient } from "@the-draupnir-project/matrix-protection-suite-for-matrix-bot-sdk";
|
||||
|
||||
export interface AppserviceAdaptorContext extends MatrixAdaptorContext {
|
||||
appservice: MjolnirAppService;
|
||||
|
||||
@@ -10,8 +10,8 @@ import {
|
||||
RoomMessage,
|
||||
Value,
|
||||
isError,
|
||||
} from "matrix-protection-suite";
|
||||
import { MatrixSendClient } from "matrix-protection-suite-for-matrix-bot-sdk";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { MatrixSendClient } from "@the-draupnir-project/matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import {
|
||||
StringUserID,
|
||||
StringRoomID,
|
||||
|
||||
@@ -8,14 +8,14 @@ import {
|
||||
isError,
|
||||
Ok,
|
||||
ActionError,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import {
|
||||
StringPresentationType,
|
||||
describeCommand,
|
||||
} from "@the-draupnir-project/interface-manager";
|
||||
import { isStringMediaURI } from "@the-draupnir-project/matrix-basic-types";
|
||||
import { AppserviceBotInterfaceAdaptor } from "./AppserviceBotInterfaceAdaptor";
|
||||
import { resultifyBotSDKRequestError } from "matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import { resultifyBotSDKRequestError } from "@the-draupnir-project/matrix-protection-suite-for-matrix-bot-sdk";
|
||||
|
||||
export const AppserviceAvatarCommand = describeCommand({
|
||||
summary: "Sets the avatar of the main appservice admin bot.",
|
||||
|
||||
@@ -3,13 +3,17 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { AppserviceAdaptorContext } from "./AppserviceBotPrerequisite";
|
||||
import { ActionResult, isError, Ok } from "matrix-protection-suite";
|
||||
import {
|
||||
ActionResult,
|
||||
isError,
|
||||
Ok,
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import {
|
||||
StringPresentationType,
|
||||
describeCommand,
|
||||
} from "@the-draupnir-project/interface-manager";
|
||||
import { AppserviceBotInterfaceAdaptor } from "./AppserviceBotInterfaceAdaptor";
|
||||
import { resultifyBotSDKRequestError } from "matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import { resultifyBotSDKRequestError } from "@the-draupnir-project/matrix-protection-suite-for-matrix-bot-sdk";
|
||||
|
||||
export const AppserviceDisplaynameCommand = describeCommand({
|
||||
summary: "Sets the displayname of the main appservice admin bot.",
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
ActionResult,
|
||||
isError,
|
||||
Ok,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { UnstartedDraupnir } from "../../draupnirfactory/StandardDraupnirManager";
|
||||
import { AppserviceAdaptorContext } from "./AppserviceBotPrerequisite";
|
||||
import {
|
||||
|
||||
@@ -3,7 +3,11 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { AppserviceAdaptorContext } from "./AppserviceBotPrerequisite";
|
||||
import { ActionResult, isError, Ok } from "matrix-protection-suite";
|
||||
import {
|
||||
ActionResult,
|
||||
isError,
|
||||
Ok,
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import {
|
||||
MatrixUserIDPresentationType,
|
||||
describeCommand,
|
||||
|
||||
@@ -3,7 +3,11 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { AppserviceAdaptorContext } from "./AppserviceBotPrerequisite";
|
||||
import { ActionResult, Ok, isError } from "matrix-protection-suite";
|
||||
import {
|
||||
ActionResult,
|
||||
Ok,
|
||||
isError,
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import {
|
||||
DeadDocumentJSX,
|
||||
describeCommand,
|
||||
|
||||
@@ -13,8 +13,8 @@ import { Type } from "@sinclair/typebox";
|
||||
import * as fs from "fs";
|
||||
import { load } from "js-yaml";
|
||||
import { Value } from "@sinclair/typebox/value";
|
||||
import { EDStatic } from "matrix-protection-suite";
|
||||
import { StringUserIDSchema } from "matrix-protection-suite";
|
||||
import { EDStatic } from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { StringUserIDSchema } from "@the-draupnir-project/matrix-protection-suite";
|
||||
|
||||
export function read(configPath: string): AppserviceConfig {
|
||||
const content = fs.readFileSync(configPath, "utf8");
|
||||
|
||||
@@ -2,7 +2,10 @@
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { EventDecoder, SHA256HashStore } from "matrix-protection-suite";
|
||||
import {
|
||||
EventDecoder,
|
||||
SHA256HashStore,
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { RoomAuditLog } from "../protections/RoomTakedown/RoomAuditLog";
|
||||
import { SqliteRoomStateBackingStore } from "./better-sqlite3/SqliteRoomStateBackingStore";
|
||||
import { SqliteHashReversalStore } from "./better-sqlite3/HashStore";
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
// </text>
|
||||
|
||||
import BetterSqlite3, { Database } from "better-sqlite3";
|
||||
import { Logger } from "matrix-protection-suite";
|
||||
import { Logger } from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { ensureSqliteSchema, SqliteSchemaOptions } from "./SqliteSchema";
|
||||
|
||||
export interface BetterSqliteOptions extends BetterSqlite3.Options {
|
||||
|
||||
@@ -26,7 +26,7 @@ import {
|
||||
Logger,
|
||||
UserHashRecord,
|
||||
PolicyRuleType,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { BetterSqliteStore, makeBetterSqliteDB } from "./BetterSqliteStore";
|
||||
import { Database, Statement } from "better-sqlite3";
|
||||
import path from "path";
|
||||
|
||||
@@ -15,7 +15,7 @@ import {
|
||||
StateEvent,
|
||||
assertThrowableIsError,
|
||||
isError,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import {
|
||||
BetterSqliteOptions,
|
||||
BetterSqliteStore,
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { Database } from "better-sqlite3";
|
||||
import { Logger } from "matrix-protection-suite";
|
||||
import { Logger } from "@the-draupnir-project/matrix-protection-suite";
|
||||
|
||||
export type SqliteSchemaOptions = {
|
||||
upgradeSteps: ((db: Database) => void)[];
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
DescriptionMeta,
|
||||
RoomMessageSender,
|
||||
Task,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { StringRoomID } from "@the-draupnir-project/matrix-basic-types";
|
||||
import {
|
||||
DeadDocumentJSX,
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { DocumentNode } from "@the-draupnir-project/interface-manager";
|
||||
import { Capability, DescriptionMeta } from "matrix-protection-suite";
|
||||
import {
|
||||
Capability,
|
||||
DescriptionMeta,
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
|
||||
export enum MessageType {
|
||||
Document = "Document",
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
CapabilityMethodSchema,
|
||||
describeCapabilityInterface,
|
||||
RoomBasicDetails,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
|
||||
export interface RoomDetailsProvider {
|
||||
getRoomDetails(roomID: StringRoomID): Promise<Result<RoomBasicDetails>>;
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
describeCapabilityRenderer,
|
||||
DescriptionMeta,
|
||||
RoomBasicDetails,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { RoomTakedownCapability } from "./RoomTakedownCapability";
|
||||
import { RendererMessageCollector } from "./RendererMessageCollector";
|
||||
import {
|
||||
|
||||
@@ -19,7 +19,7 @@ import {
|
||||
describeCapabilityContextGlue,
|
||||
describeCapabilityRenderer,
|
||||
isError,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { RendererMessageCollector } from "./RendererMessageCollector";
|
||||
import { Draupnir } from "../Draupnir";
|
||||
import {
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
describeCapabilityContextGlue,
|
||||
describeCapabilityRenderer,
|
||||
isError,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { RendererMessageCollector } from "./RendererMessageCollector";
|
||||
import { Draupnir } from "../Draupnir";
|
||||
import {
|
||||
|
||||
@@ -22,7 +22,7 @@ import {
|
||||
describeCapabilityContextGlue,
|
||||
describeCapabilityRenderer,
|
||||
isError,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { RendererMessageCollector } from "./RendererMessageCollector";
|
||||
import { Draupnir } from "../Draupnir";
|
||||
import {
|
||||
|
||||
@@ -7,12 +7,12 @@ import {
|
||||
describeCapabilityProvider,
|
||||
Logger,
|
||||
RoomBasicDetails,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import {
|
||||
RoomDetailsProvider,
|
||||
RoomTakedownCapability,
|
||||
} from "../RoomTakedownCapability";
|
||||
import { SynapseAdminClient } from "matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import { SynapseAdminClient } from "@the-draupnir-project/matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import { isError, Ok, Result } from "@gnuxie/typescript-result";
|
||||
import { Draupnir } from "../../Draupnir";
|
||||
import "../RoomTakedownCapability"; // needed for the interface to load.
|
||||
|
||||
@@ -8,7 +8,11 @@
|
||||
// https://github.com/matrix-org/mjolnir
|
||||
// </text>
|
||||
|
||||
import { ActionResult, isError, Ok } from "matrix-protection-suite";
|
||||
import {
|
||||
ActionResult,
|
||||
isError,
|
||||
Ok,
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { Draupnir } from "../Draupnir";
|
||||
import {
|
||||
describeCommand,
|
||||
@@ -17,7 +21,7 @@ import {
|
||||
MatrixRoomReferencePresentationSchema,
|
||||
} from "@the-draupnir-project/interface-manager";
|
||||
import { DraupnirInterfaceAdaptor } from "./DraupnirCommandPrerequisites";
|
||||
import { resultifyBotSDKRequestError } from "matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import { resultifyBotSDKRequestError } from "@the-draupnir-project/matrix-protection-suite-for-matrix-bot-sdk";
|
||||
|
||||
export const DraupnirAliasAddCommand = describeCommand({
|
||||
summary: "Add a new alias to the room on Draupnir's homeserver",
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
PolicyRoomManager,
|
||||
RoomResolver,
|
||||
WatchedPolicyRooms,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import {
|
||||
MatrixRoomReference,
|
||||
MatrixUserID,
|
||||
|
||||
@@ -8,7 +8,10 @@
|
||||
// https://github.com/matrix-org/mjolnir
|
||||
// </text>
|
||||
|
||||
import { ActionResult, isError } from "matrix-protection-suite";
|
||||
import {
|
||||
ActionResult,
|
||||
isError,
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { Draupnir } from "../Draupnir";
|
||||
import { MatrixRoomID } from "@the-draupnir-project/matrix-basic-types";
|
||||
import {
|
||||
|
||||
@@ -8,16 +8,16 @@
|
||||
// https://github.com/matrix-org/mjolnir
|
||||
// </text>
|
||||
|
||||
import { Ok } from "matrix-protection-suite";
|
||||
import { Ok } from "@the-draupnir-project/matrix-protection-suite";
|
||||
import {
|
||||
CommandTable,
|
||||
DocumentNode,
|
||||
DeadDocumentJSX,
|
||||
TopPresentationSchema,
|
||||
describeCommand,
|
||||
describeRestParameters,
|
||||
} from "@the-draupnir-project/interface-manager";
|
||||
import { DraupnirTopLevelCommands } from "./DraupnirCommandTable";
|
||||
import { TopPresentationSchema } from "@the-draupnir-project/interface-manager/dist/Command/PresentationSchema";
|
||||
import { renderTableHelp } from "@the-draupnir-project/mps-interface-adaptor";
|
||||
import { DraupnirInterfaceAdaptor } from "./DraupnirCommandPrerequisites";
|
||||
import { DOCUMENTATION_URL } from "../config";
|
||||
|
||||
@@ -19,8 +19,8 @@ import {
|
||||
StateEvent,
|
||||
Value,
|
||||
isError,
|
||||
} from "matrix-protection-suite";
|
||||
import { resolveRoomReferenceSafe } from "matrix-protection-suite-for-matrix-bot-sdk";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { resolveRoomReferenceSafe } from "@the-draupnir-project/matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import {
|
||||
MatrixRoomReferencePresentationSchema,
|
||||
describeCommand,
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
SetRoomMembership,
|
||||
isError,
|
||||
Membership,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import {
|
||||
StringUserID,
|
||||
StringRoomID,
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
ProtectionDescription,
|
||||
findCapabilityProvider,
|
||||
findProtection,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { Draupnir } from "../Draupnir";
|
||||
import { DraupnirInterfaceAdaptor } from "./DraupnirCommandPrerequisites";
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ import {
|
||||
findProtection,
|
||||
getAllProtections,
|
||||
isError,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { Draupnir } from "../Draupnir";
|
||||
import {
|
||||
DeadDocumentJSX,
|
||||
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
ProtectionDescription,
|
||||
findCompatibleCapabilityProviders,
|
||||
findProtection,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { DraupnirInterfaceAdaptor } from "./DraupnirCommandPrerequisites";
|
||||
import { StandardPersistentConfigRenderer } from "../safemode/PersistentConfigRenderer";
|
||||
|
||||
|
||||
@@ -8,9 +8,13 @@
|
||||
// https://github.com/matrix-org/mjolnir
|
||||
// </text>
|
||||
|
||||
import { ActionResult, Ok, isError } from "matrix-protection-suite";
|
||||
import {
|
||||
ActionResult,
|
||||
Ok,
|
||||
isError,
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { redactUserMessagesIn } from "../utils";
|
||||
import { resolveRoomReferenceSafe } from "matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import { resolveRoomReferenceSafe } from "@the-draupnir-project/matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import { Draupnir } from "../Draupnir";
|
||||
import {
|
||||
MatrixEventReference,
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
WatchedPolicyRoom,
|
||||
assertThrowableIsError,
|
||||
isError,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import {
|
||||
MatrixRoomID,
|
||||
MatrixRoomReference,
|
||||
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
PolicyRule,
|
||||
PolicyRuleMatchType,
|
||||
isError,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import {
|
||||
StringRoomID,
|
||||
MatrixRoomID,
|
||||
|
||||
@@ -10,8 +10,8 @@ import {
|
||||
import { isStringMediaURI } from "@the-draupnir-project/matrix-basic-types";
|
||||
import { Draupnir } from "../Draupnir";
|
||||
import { DraupnirInterfaceAdaptor } from "./DraupnirCommandPrerequisites";
|
||||
import { resultifyBotSDKRequestError } from "matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import { ActionError } from "matrix-protection-suite";
|
||||
import { resultifyBotSDKRequestError } from "@the-draupnir-project/matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import { ActionError } from "@the-draupnir-project/matrix-protection-suite";
|
||||
|
||||
export const DraupnirAvatarCommand = describeCommand({
|
||||
summary:
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
} from "@the-draupnir-project/interface-manager";
|
||||
import { Draupnir } from "../Draupnir";
|
||||
import { DraupnirInterfaceAdaptor } from "./DraupnirCommandPrerequisites";
|
||||
import { resultifyBotSDKRequestError } from "matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import { resultifyBotSDKRequestError } from "@the-draupnir-project/matrix-protection-suite-for-matrix-bot-sdk";
|
||||
|
||||
export const DraupnirDisplaynameCommand = describeCommand({
|
||||
summary:
|
||||
|
||||
@@ -21,7 +21,7 @@ import {
|
||||
WatchedPolicyRoom,
|
||||
WatchedPolicyRooms,
|
||||
isError,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { Draupnir } from "../Draupnir";
|
||||
import {
|
||||
DeadDocumentJSX,
|
||||
|
||||
@@ -23,7 +23,7 @@ import {
|
||||
SetMembershipRevision,
|
||||
ServerBanSynchronisationProtection,
|
||||
ServerBanIntentProjectionDelta,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
|
||||
function watchDeltaForMemberBanIntents(
|
||||
setMembershipPoliciesRevision: SetMembershipPolicyRevision,
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
RoomJoiner,
|
||||
WatchedPolicyRooms,
|
||||
isError,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import {
|
||||
MatrixRoomReferencePresentationSchema,
|
||||
describeCommand,
|
||||
|
||||
@@ -22,7 +22,7 @@ import {
|
||||
LiteralPolicyRule,
|
||||
Logger,
|
||||
Task,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { Draupnir } from "../../Draupnir";
|
||||
import { DraupnirInterfaceAdaptor } from "../DraupnirCommandPrerequisites";
|
||||
import { deactivateUser } from "../../protections/HomeserverUserPolicyApplication/deactivateUser";
|
||||
|
||||
@@ -13,8 +13,8 @@ import {
|
||||
ActionResult,
|
||||
Ok,
|
||||
isError,
|
||||
} from "matrix-protection-suite";
|
||||
import { resolveRoomReferenceSafe } from "matrix-protection-suite-for-matrix-bot-sdk";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { resolveRoomReferenceSafe } from "@the-draupnir-project/matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import {
|
||||
MatrixRoomReferencePresentationSchema,
|
||||
MatrixUserIDPresentationType,
|
||||
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
tuple,
|
||||
} from "@the-draupnir-project/interface-manager";
|
||||
import { Draupnir } from "../../Draupnir";
|
||||
import { ActionError } from "matrix-protection-suite";
|
||||
import { ActionError } from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { DraupnirInterfaceAdaptor } from "../DraupnirCommandPrerequisites";
|
||||
|
||||
export const SynapseAdminShutdownRoomCommand = describeCommand({
|
||||
|
||||
@@ -26,7 +26,7 @@ import {
|
||||
RoomResolver,
|
||||
SHA256HashStore,
|
||||
WatchedPolicyRooms,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { Result, ResultError } from "@gnuxie/typescript-result";
|
||||
import {
|
||||
MatrixRoomID,
|
||||
|
||||
@@ -22,7 +22,7 @@ import {
|
||||
Recommendation,
|
||||
StringTypeResult,
|
||||
StringTypeResultBuilder,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { isError, Result, ResultError } from "@gnuxie/typescript-result";
|
||||
import { findPolicyRoomEditorFromRoomReference } from "../Ban";
|
||||
import {
|
||||
|
||||
@@ -20,7 +20,7 @@ import {
|
||||
SetMembershipRevisionIssuer,
|
||||
SetRoomMembership,
|
||||
WatchedPolicyRooms,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import {
|
||||
MatrixRoomID,
|
||||
MatrixUserID,
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
Recommendation,
|
||||
RoomSetResultBuilder,
|
||||
WatchedPolicyRooms,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { ListMatches } from "../Rules";
|
||||
import { isError, Ok, Result } from "@gnuxie/typescript-result";
|
||||
import { UnbanEntityPreview, UnbanEntityResult } from "./Unban";
|
||||
|
||||
@@ -29,7 +29,7 @@ import {
|
||||
PolicyRuleType,
|
||||
PolicyRuleMatchType,
|
||||
PolicyListRevision,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { UnlistedUserRedactionQueue } from "../../queues/UnlistedUserRedactionQueue";
|
||||
import { ListMatches } from "../Rules";
|
||||
import { MemberRooms, UnbanMembersPreview, UnbanMembersResult } from "./Unban";
|
||||
|
||||
@@ -18,7 +18,10 @@ process.env.SUPPRESS_NO_CONFIG_WARNING = "y";
|
||||
import Config from "config";
|
||||
import path from "path";
|
||||
import { SafeModeBootOption } from "./safemode/BootOption";
|
||||
import { Logger, setGlobalLoggerProvider } from "matrix-protection-suite";
|
||||
import {
|
||||
Logger,
|
||||
setGlobalLoggerProvider,
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
|
||||
LogService.setLogger(new RichConsoleLogger());
|
||||
setGlobalLoggerProvider(new RichConsoleLogger());
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
Ok,
|
||||
StandardLoggableConfigTracker,
|
||||
isError,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { Draupnir } from "../Draupnir";
|
||||
import {
|
||||
ClientCapabilityFactory,
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
RoomStateManagerFactory,
|
||||
joinedRoomsSafe,
|
||||
resultifyBotSDKRequestErrorWith404AsUndefined,
|
||||
} from "matrix-protection-suite-for-matrix-bot-sdk";
|
||||
} from "@the-draupnir-project/matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import { IConfig } from "../config";
|
||||
import { makeProtectedRoomsSet } from "./DraupnirProtectedRoomsSet";
|
||||
import {
|
||||
|
||||
@@ -42,12 +42,12 @@ import {
|
||||
StandardSetRoomState,
|
||||
StandardWatchedPolicyRooms,
|
||||
isError,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import {
|
||||
BotSDKAccountDataConfigBackend,
|
||||
BotSDKRoomStateConfigBackend,
|
||||
MatrixSendClient,
|
||||
} from "matrix-protection-suite-for-matrix-bot-sdk";
|
||||
} from "@the-draupnir-project/matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import { DefaultEnabledProtectionsMigration } from "../protections/ConfigMigration/DefaultEnabledProtectionsMigration";
|
||||
import "../protections/DraupnirProtectionsIndex";
|
||||
import { IConfig } from "../config";
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
ConfigRecoverableError,
|
||||
Logger,
|
||||
isError,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { IConfig } from "../config";
|
||||
import { DraupnirFactory } from "./DraupnirFactory";
|
||||
import { Draupnir } from "../Draupnir";
|
||||
|
||||
@@ -22,8 +22,8 @@ import { StoreType } from "@matrix-org/matrix-sdk-crypto-nodejs";
|
||||
import { configRead as configRead, getStoragePath } from "./config";
|
||||
import { initializeSentry } from "./utils";
|
||||
import { DraupnirBotModeToggle } from "./DraupnirBotMode";
|
||||
import { SafeMatrixEmitterWrapper } from "matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import { DefaultEventDecoder } from "matrix-protection-suite";
|
||||
import { SafeMatrixEmitterWrapper } from "@the-draupnir-project/matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import { DefaultEventDecoder } from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { makeTopLevelStores } from "./backingstore/DraupnirStores";
|
||||
|
||||
void (async function () {
|
||||
|
||||
@@ -21,7 +21,7 @@ import {
|
||||
RoomCreator,
|
||||
RoomIDPermalinkSchema,
|
||||
RoomVersionMirror,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
|
||||
export const ZERO_TOUCH_DEPLOY_ROOM_ACCOUNT_DATA_TYPE =
|
||||
"space.draupnir.zero_touch_deploy_room";
|
||||
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
RoomCreateEvent,
|
||||
RoomMembershipRevisionIssuer,
|
||||
RoomStateRevisionIssuer,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
|
||||
export interface ManagementRoomDetail {
|
||||
isRoomPublic(): boolean;
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
} from "@vector-im/matrix-bot-sdk";
|
||||
import { IConfig } from "../config";
|
||||
import { htmlEscape } from "../utils";
|
||||
import { MatrixSendClient } from "matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import { MatrixSendClient } from "@the-draupnir-project/matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import {
|
||||
StringRoomID,
|
||||
StringUserID,
|
||||
@@ -27,7 +27,7 @@ import {
|
||||
MatrixRoomID,
|
||||
} from "@the-draupnir-project/matrix-basic-types";
|
||||
import { ManagementRoomDetail } from "./ManagementRoomDetail";
|
||||
import { Task } from "matrix-protection-suite";
|
||||
import { Task } from "@the-draupnir-project/matrix-protection-suite";
|
||||
|
||||
const levelToFn = {
|
||||
[LogLevel.DEBUG.toString()]: LogService.debug,
|
||||
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
RoomMessageSender,
|
||||
RoomUpdateError,
|
||||
isError,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { sendMatrixEventsFromDeadDocument } from "@the-draupnir-project/mps-interface-adaptor";
|
||||
import { Result } from "@gnuxie/typescript-result";
|
||||
|
||||
|
||||
@@ -33,9 +33,9 @@ import {
|
||||
allocateProtection,
|
||||
OwnLifetime,
|
||||
Protection,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { Draupnir } from "../Draupnir";
|
||||
import { resolveRoomReferenceSafe } from "matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import { resolveRoomReferenceSafe } from "@the-draupnir-project/matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import { DraupnirProtection } from "./Protection";
|
||||
import {
|
||||
MatrixRoomID,
|
||||
|
||||
@@ -32,7 +32,7 @@ import {
|
||||
UserConsequences,
|
||||
describeProtection,
|
||||
isError,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { Type } from "@sinclair/typebox";
|
||||
|
||||
const log = new Logger("BasicFloodingProtection");
|
||||
|
||||
@@ -15,7 +15,7 @@ import {
|
||||
Recommendation,
|
||||
UnknownConfig,
|
||||
WatchedPolicyRooms,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { BlockingCallback } from "../webapis/SynapseHTTPAntispam/SpamCheckEndpointPluginManager";
|
||||
import { UserMayInviteListenerArguments } from "../webapis/SynapseHTTPAntispam/UserMayInviteEndpoint";
|
||||
import { createHash } from "crypto";
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
ProtectionsConfig,
|
||||
ServerBanSynchronisationProtection,
|
||||
isError,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { IConfig } from "../config";
|
||||
import { RoomTakedownProtection } from "./RoomTakedown/RoomTakedownProtection";
|
||||
import { BlockInvitationsOnServerProtection } from "./BlockInvitationsOnServerProtection";
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
ServerACLSynchronisationCapability,
|
||||
SimulatedServerBanSynchronisationCapability,
|
||||
Value,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
|
||||
const log = new Logger("CapabilitySetProviderMigration");
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
SchemedDataManager,
|
||||
Value,
|
||||
findProtection,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { RedactionSynchronisationProtection } from "../RedactionSynchronisation";
|
||||
import { PolicyChangeNotification } from "../PolicyChangeNotification";
|
||||
import { JoinRoomsOnInviteProtection } from "../invitation/JoinRoomsOnInviteProtection";
|
||||
|
||||
@@ -22,7 +22,7 @@ import {
|
||||
ProtectionDescription,
|
||||
StandardTimedGate,
|
||||
Value,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { Draupnir } from "../../Draupnir";
|
||||
import { DraupnirProtection } from "../Protection";
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ import {
|
||||
UserConsequences,
|
||||
Value,
|
||||
describeProtection,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { Draupnir } from "../Draupnir";
|
||||
import {
|
||||
MatrixRoomID,
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ import {
|
||||
Recommendation,
|
||||
Task,
|
||||
WatchedPolicyRooms,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { UserRestrictionCapability } from "./UserRestrictionCapability";
|
||||
import { UserRestrictionAuditLog } from "./UserRestrictionAuditLog";
|
||||
import { sendPromptDeactivation } from "../../commands/server-admin/DeactivateCommand";
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ import {
|
||||
ProtectedRoomsSet,
|
||||
Protection,
|
||||
ProtectionDescription,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { UserRestrictionCapability } from "./UserRestrictionCapability";
|
||||
import { Draupnir } from "../../Draupnir";
|
||||
import { UserRestrictionAuditLog } from "./UserRestrictionAuditLog";
|
||||
|
||||
+5
-3
@@ -16,11 +16,13 @@ import {
|
||||
LiteralPolicyRule,
|
||||
Logger,
|
||||
StandardBatcher,
|
||||
} from "matrix-protection-suite";
|
||||
import { SynapseAdminClient } from "matrix-protection-suite-for-matrix-bot-sdk";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import {
|
||||
SynapseAdminClient,
|
||||
UserDetailsResponse,
|
||||
} from "@the-draupnir-project/matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import { deactivateUser } from "./deactivateUser";
|
||||
import { UserRestrictionAuditLog } from "./UserRestrictionAuditLog";
|
||||
import { UserDetailsResponse } from "matrix-protection-suite-for-matrix-bot-sdk/dist/SynapseAdmin/UserDetailsEndpoint";
|
||||
|
||||
const log = new Logger("HomeserverUserPurgingDeactivate");
|
||||
|
||||
|
||||
+2
-2
@@ -9,7 +9,7 @@ import {
|
||||
ActionResult,
|
||||
LiteralPolicyRule,
|
||||
Logger,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { UserRestrictionAuditLog } from "./UserRestrictionAuditLog";
|
||||
import {
|
||||
checkKnownTables,
|
||||
@@ -21,7 +21,7 @@ import {
|
||||
} from "../../backingstore/better-sqlite3/BetterSqliteStore";
|
||||
import { Database } from "better-sqlite3";
|
||||
import { Ok, Result } from "@gnuxie/typescript-result";
|
||||
import { AccountRestriction } from "matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import { AccountRestriction } from "@the-draupnir-project/matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import path from "path";
|
||||
|
||||
const log = new Logger("SqliteUserAuditLog");
|
||||
|
||||
+2
-2
@@ -4,8 +4,8 @@
|
||||
|
||||
import { Result } from "@gnuxie/typescript-result";
|
||||
import { StringUserID } from "@the-draupnir-project/matrix-basic-types";
|
||||
import { LiteralPolicyRule } from "matrix-protection-suite";
|
||||
import { AccountRestriction } from "matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import { LiteralPolicyRule } from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { AccountRestriction } from "@the-draupnir-project/matrix-protection-suite-for-matrix-bot-sdk";
|
||||
|
||||
export interface UserRestrictionAuditLog {
|
||||
isUserRestricted(userID: StringUserID): Promise<Result<boolean>>;
|
||||
|
||||
+2
-2
@@ -10,8 +10,8 @@ import {
|
||||
CapabilityMethodSchema,
|
||||
describeCapabilityInterface,
|
||||
LiteralPolicyRule,
|
||||
} from "matrix-protection-suite";
|
||||
import { AccountRestriction } from "matrix-protection-suite-for-matrix-bot-sdk";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { AccountRestriction } from "@the-draupnir-project/matrix-protection-suite-for-matrix-bot-sdk";
|
||||
|
||||
export interface UserRestrictionCapability extends Capability {
|
||||
isUserRestricted(userID: StringUserID): Promise<Result<boolean>>;
|
||||
|
||||
+2
-2
@@ -6,12 +6,12 @@ import {
|
||||
describeCapabilityRenderer,
|
||||
DescriptionMeta,
|
||||
LiteralPolicyRule,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { RendererMessageCollector } from "../../capabilities/RendererMessageCollector";
|
||||
import { UserRestrictionCapability } from "./UserRestrictionCapability";
|
||||
import { StringUserID } from "@the-draupnir-project/matrix-basic-types";
|
||||
import { isError, Result } from "@gnuxie/typescript-result";
|
||||
import { AccountRestriction } from "matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import { AccountRestriction } from "@the-draupnir-project/matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import { renderFailedSingularConsequence } from "@the-draupnir-project/mps-interface-adaptor";
|
||||
import {
|
||||
DeadDocumentJSX,
|
||||
|
||||
+2
-2
@@ -5,7 +5,7 @@
|
||||
import {
|
||||
AccountRestriction,
|
||||
SynapseAdminClient,
|
||||
} from "matrix-protection-suite-for-matrix-bot-sdk";
|
||||
} from "@the-draupnir-project/matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import { UserRestrictionCapability } from "./UserRestrictionCapability";
|
||||
import { UserRestrictionAuditLog } from "./UserRestrictionAuditLog";
|
||||
import { StringUserID } from "@the-draupnir-project/matrix-basic-types";
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
describeCapabilityProvider,
|
||||
LiteralPolicyRule,
|
||||
Logger,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { isError, Ok, Result, ResultError } from "@gnuxie/typescript-result";
|
||||
import { isUserAccountRestricted } from "./HomeserverUserPurgingDeactivate";
|
||||
import { Draupnir } from "../../Draupnir";
|
||||
|
||||
@@ -4,11 +4,14 @@
|
||||
|
||||
import { isError, Ok, Result } from "@gnuxie/typescript-result";
|
||||
import { StringUserID } from "@the-draupnir-project/matrix-basic-types";
|
||||
import { LiteralPolicyRule, Logger } from "matrix-protection-suite";
|
||||
import {
|
||||
LiteralPolicyRule,
|
||||
Logger,
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import {
|
||||
AccountRestriction,
|
||||
SynapseAdminClient,
|
||||
} from "matrix-protection-suite-for-matrix-bot-sdk";
|
||||
} from "@the-draupnir-project/matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import { UserRestrictionAuditLog } from "./UserRestrictionAuditLog";
|
||||
|
||||
const log = new Logger("deactivateUser");
|
||||
|
||||
@@ -19,7 +19,7 @@ import {
|
||||
RoomMessageSender,
|
||||
Task,
|
||||
UserConsequences,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { Draupnir } from "../Draupnir";
|
||||
import {
|
||||
MatrixRoomID,
|
||||
|
||||
@@ -26,7 +26,7 @@ import {
|
||||
allocateProtection,
|
||||
describeProtection,
|
||||
isError,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { LogLevel } from "@vector-im/matrix-bot-sdk";
|
||||
import { Draupnir } from "../Draupnir";
|
||||
import { DraupnirProtection } from "./Protection";
|
||||
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
UserConsequences,
|
||||
allocateProtection,
|
||||
describeProtection,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { Draupnir } from "../Draupnir";
|
||||
import {
|
||||
MatrixRoomID,
|
||||
|
||||
@@ -24,7 +24,7 @@ import {
|
||||
allocateProtection,
|
||||
describeProtection,
|
||||
isError,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { Draupnir } from "../Draupnir";
|
||||
import {
|
||||
MatrixRoomID,
|
||||
|
||||
@@ -23,7 +23,7 @@ import {
|
||||
UnknownConfig,
|
||||
Value,
|
||||
describeProtection,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { Draupnir } from "../Draupnir";
|
||||
import {
|
||||
MatrixRoomID,
|
||||
|
||||
@@ -23,7 +23,7 @@ import {
|
||||
UnknownConfig,
|
||||
Value,
|
||||
describeProtection,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { Draupnir } from "../Draupnir";
|
||||
import {
|
||||
MatrixRoomID,
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
ProtectionPermissionsChange,
|
||||
RoomMessageSender,
|
||||
Task,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import {
|
||||
renderRoomPill,
|
||||
sendMatrixEventsFromDeadDocument,
|
||||
|
||||
@@ -19,7 +19,7 @@ import {
|
||||
UserConsequences,
|
||||
describeProtection,
|
||||
isError,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { Draupnir } from "../Draupnir";
|
||||
import { IConfig } from "../config";
|
||||
import { userServerName } from "@the-draupnir-project/matrix-basic-types";
|
||||
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
RoomInviter,
|
||||
RoomMembershipManager,
|
||||
RoomStateEventSender,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { Draupnir } from "../../Draupnir";
|
||||
|
||||
export type SettingChangeAndProtectionEnableCB<
|
||||
|
||||
@@ -26,7 +26,7 @@ import {
|
||||
StringRoomIDSchema,
|
||||
describeProtection,
|
||||
isError,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { DraupnirProtection } from "./Protection";
|
||||
import { Draupnir } from "../Draupnir";
|
||||
import {
|
||||
|
||||
@@ -20,7 +20,7 @@ import {
|
||||
RoomSetResultBuilder,
|
||||
StandardBatcher,
|
||||
Task,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import {
|
||||
renderRoomSetResult,
|
||||
sendMatrixEventsFromDeadDocument,
|
||||
|
||||
@@ -27,7 +27,7 @@ import {
|
||||
Task,
|
||||
TombstoneEvent,
|
||||
Value,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { DeadDocumentJSX } from "@the-draupnir-project/interface-manager";
|
||||
|
||||
const log = new Logger("ProtectReplacementRooms");
|
||||
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
RoomStateRevision,
|
||||
StateChange,
|
||||
UnknownConfig,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { DraupnirProtection } from "../Protection";
|
||||
import { Draupnir } from "../../Draupnir";
|
||||
import { Ok, Result } from "@gnuxie/typescript-result";
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
ProtectedRoomsManager,
|
||||
RoomMessageSender,
|
||||
Task,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import {
|
||||
renderMentionPill,
|
||||
renderRoomPill,
|
||||
|
||||
@@ -13,6 +13,7 @@ import {
|
||||
RoomEvent,
|
||||
RoomJoiner,
|
||||
RoomMessageSender,
|
||||
RoomReactionSender,
|
||||
RoomStateManager,
|
||||
RoomStateRevision,
|
||||
RoomVersionMirror,
|
||||
@@ -23,7 +24,7 @@ import {
|
||||
Value,
|
||||
WatchedPolicyRoom,
|
||||
WatchedPolicyRooms,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { renderPolicyList } from "../../commands/StatusCommand";
|
||||
import { DeadDocumentJSX } from "@the-draupnir-project/interface-manager";
|
||||
import {
|
||||
@@ -42,7 +43,6 @@ import {
|
||||
renderErrorDetails,
|
||||
ReactionListener,
|
||||
} from "@the-draupnir-project/mps-interface-adaptor";
|
||||
import { RoomReactionSender } from "matrix-protection-suite/dist/Client/RoomReactionSender";
|
||||
|
||||
const log = new Logger("WatchReplacementPolicyRooms");
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
ProtectionDescription,
|
||||
RoomMessageSender,
|
||||
Task,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { StringRoomID } from "@the-draupnir-project/matrix-basic-types";
|
||||
import { sendMatrixEventsFromDeadDocument } from "@the-draupnir-project/mps-interface-adaptor";
|
||||
import { DeadDocumentJSX } from "@the-draupnir-project/interface-manager";
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
// https://github.com/matrix-org/mjolnir
|
||||
// </text>
|
||||
|
||||
import { Protection } from "matrix-protection-suite";
|
||||
import { Protection } from "@the-draupnir-project/matrix-protection-suite";
|
||||
|
||||
export interface DraupnirProtection<
|
||||
TProtectionDescription,
|
||||
|
||||
@@ -33,7 +33,7 @@ import {
|
||||
describeCapabilityProvider,
|
||||
describeCapabilityRenderer,
|
||||
describeProtection,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { Draupnir } from "../Draupnir";
|
||||
import {
|
||||
MatrixGlob,
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
Logger,
|
||||
RoomBasicDetails,
|
||||
SHA256HashStore,
|
||||
} from "matrix-protection-suite";
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
import { RoomDetailsProvider } from "../../capabilities/RoomTakedownCapability";
|
||||
import { RoomDiscovery } from "./RoomDiscovery";
|
||||
import EventEmitter from "events";
|
||||
|
||||
@@ -7,7 +7,10 @@ import {
|
||||
StringEventID,
|
||||
StringRoomID,
|
||||
} from "@the-draupnir-project/matrix-basic-types";
|
||||
import { LiteralPolicyRule, RoomBasicDetails } from "matrix-protection-suite";
|
||||
import {
|
||||
LiteralPolicyRule,
|
||||
RoomBasicDetails,
|
||||
} from "@the-draupnir-project/matrix-protection-suite";
|
||||
|
||||
export type RoomTakedownDetails = Omit<RoomBasicDetails, "avatar"> & {
|
||||
policy_id: StringEventID;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user