koishi-plugin-echo-cave 1.27.21 → 1.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
1
  import { Schema } from 'koishi';
2
2
  export interface Config {
3
3
  adminMessageProtection?: boolean;
4
+ adminIds?: string[];
4
5
  allowContributorDelete?: boolean;
5
6
  allowSenderDelete?: boolean;
6
7
  deleteMediaWhenDeletingMsg?: boolean;
@@ -15,5 +16,14 @@ export interface Config {
15
16
  forwardSelectTimeout?: number;
16
17
  enableForwardUserSelection?: boolean;
17
18
  alpha?: number;
19
+ mediaStorage?: 'local' | 's3';
20
+ s3Bucket?: string;
21
+ s3Region?: string;
22
+ s3Endpoint?: string;
23
+ s3AccessKeyId?: string;
24
+ s3SecretAccessKey?: string;
25
+ s3ForcePathStyle?: boolean;
26
+ s3PathPrefix?: string;
27
+ s3PresignExpiresIn?: number;
18
28
  }
19
29
  export declare const Config: Schema<Config>;
@@ -0,0 +1,5 @@
1
+ import { Config } from '../../config/config';
2
+ import { Context, Session } from 'koishi';
3
+ export declare function mergeCavesBetweenChannels(ctx: Context, session: Session, cfg: Config, sourceChannelId: string, targetChannelId: string, keepSourceOption?: string): Promise<string>;
4
+ export declare function migrateLegacyLocalMedia(ctx: Context, session: Session, cfg: Config): Promise<string>;
5
+ export declare function migrateMediaToS3(ctx: Context, session: Session, cfg: Config, keepLocalOption?: string): Promise<string>;
@@ -1,4 +1,4 @@
1
1
  import { Config } from '../../config/config';
2
2
  import { CQCode } from '@pynickle/koishi-plugin-adapter-onebot';
3
3
  import { Context } from 'koishi';
4
- export declare function processMessageContent(ctx: Context, msg: CQCode[], cfg: Config): Promise<CQCode[]>;
4
+ export declare function processMessageContent(ctx: Context, msg: CQCode[], cfg: Config, channelId: string): Promise<CQCode[]>;