@futdevpro/nts-dynamo 1.14.24 → 1.14.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/_modules/ai/_services/ai-provider.service-base.d.ts +1 -1
- package/build/_modules/ai/_services/ai-provider.service-base.d.ts.map +1 -1
- package/build/_modules/ai/_services/oai-to-ai-adapter.service.d.ts +39 -0
- package/build/_modules/ai/_services/oai-to-ai-adapter.service.d.ts.map +1 -0
- package/build/_modules/ai/_services/oai-to-ai-adapter.service.js +218 -0
- package/build/_modules/ai/_services/oai-to-ai-adapter.service.js.map +1 -0
- package/build/_modules/assistant/_services/ass-io.control-service.d.ts +4 -3
- package/build/_modules/assistant/_services/ass-io.control-service.d.ts.map +1 -1
- package/build/_modules/assistant/_services/ass-io.control-service.js +6 -6
- package/build/_modules/assistant/_services/ass-io.control-service.js.map +1 -1
- package/build/_modules/assistant/_services/ass-main.control-service.d.ts +2 -2
- package/build/_modules/assistant/_services/ass-main.control-service.d.ts.map +1 -1
- package/build/_modules/assistant/_services/ass.service-base.d.ts +7 -5
- package/build/_modules/assistant/_services/ass.service-base.d.ts.map +1 -1
- package/build/_modules/assistant/_services/ass.service-base.js +6 -4
- package/build/_modules/assistant/_services/ass.service-base.js.map +1 -1
- package/build/_modules/bot/_collections/bot-operations.util.d.ts +13 -13
- package/build/_modules/bot/_collections/bot-operations.util.d.ts.map +1 -1
- package/build/_modules/bot/_collections/bot-operations.util.js.map +1 -1
- package/build/_modules/bot/_enums/bot-message-provider.enum.d.ts +8 -0
- package/build/_modules/bot/_enums/bot-message-provider.enum.d.ts.map +1 -0
- package/build/_modules/bot/_enums/bot-message-provider.enum.js +12 -0
- package/build/_modules/bot/_enums/bot-message-provider.enum.js.map +1 -0
- package/build/_modules/bot/_models/bot-channel.interface.d.ts +2 -2
- package/build/_modules/bot/_models/bot-channel.interface.d.ts.map +1 -1
- package/build/_modules/bot/_models/bot-command.interface.d.ts +3 -3
- package/build/_modules/bot/_models/bot-command.interface.d.ts.map +1 -1
- package/build/_modules/bot/_models/bot-global-settings.interface.d.ts +7 -0
- package/build/_modules/bot/_models/bot-global-settings.interface.d.ts.map +1 -1
- package/build/_modules/bot/_models/bot-message-wrapper.interface.d.ts +21 -0
- package/build/_modules/bot/_models/bot-message-wrapper.interface.d.ts.map +1 -0
- package/build/_modules/bot/_models/bot-message-wrapper.interface.js +3 -0
- package/build/_modules/bot/_models/bot-message-wrapper.interface.js.map +1 -0
- package/build/_modules/bot/_models/bot-message.interface.d.ts +2 -2
- package/build/_modules/bot/_models/bot-message.interface.d.ts.map +1 -1
- package/build/_modules/bot/_models/bot-messaging-provider.interface.d.ts +68 -0
- package/build/_modules/bot/_models/bot-messaging-provider.interface.d.ts.map +1 -0
- package/build/_modules/bot/_models/bot-messaging-provider.interface.js +3 -0
- package/build/_modules/bot/_models/bot-messaging-provider.interface.js.map +1 -0
- package/build/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.d.ts +2 -2
- package/build/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.d.ts.map +1 -1
- package/build/_modules/bot/_modules/discord-bot/_collections/dib.util.d.ts +2 -2
- package/build/_modules/bot/_modules/discord-bot/_collections/dib.util.d.ts.map +1 -1
- package/build/_modules/bot/_modules/discord-bot/_collections/dib.util.js.map +1 -1
- package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.service.d.ts +56 -0
- package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.service.d.ts.map +1 -0
- package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.service.js +379 -0
- package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.service.js.map +1 -0
- package/build/_modules/bot/_modules/discord-bot/index.d.ts +1 -1
- package/build/_modules/bot/_modules/discord-bot/index.d.ts.map +1 -1
- package/build/_modules/bot/_modules/discord-bot/index.js +1 -1
- package/build/_modules/bot/_modules/discord-bot/index.js.map +1 -1
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.d.ts +3 -3
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.d.ts.map +1 -1
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.js.map +1 -1
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb.util.d.ts +2 -2
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb.util.d.ts.map +1 -1
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb.util.js.map +1 -1
- package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.service.d.ts +55 -0
- package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.service.d.ts.map +1 -0
- package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.service.js +313 -0
- package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.service.js.map +1 -0
- package/build/_modules/bot/_modules/dynamo-bot/index.d.ts +1 -1
- package/build/_modules/bot/_modules/dynamo-bot/index.d.ts.map +1 -1
- package/build/_modules/bot/_modules/dynamo-bot/index.js +1 -1
- package/build/_modules/bot/_modules/dynamo-bot/index.js.map +1 -1
- package/build/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.d.ts +2 -2
- package/build/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.d.ts.map +1 -1
- package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.service.d.ts +41 -0
- package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.service.d.ts.map +1 -0
- package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.service.js +119 -0
- package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.service.js.map +1 -0
- package/build/_modules/bot/_modules/slack-bot/index.d.ts +1 -1
- package/build/_modules/bot/_modules/slack-bot/index.d.ts.map +1 -1
- package/build/_modules/bot/_modules/slack-bot/index.js +1 -1
- package/build/_modules/bot/_modules/slack-bot/index.js.map +1 -1
- package/build/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.d.ts +2 -2
- package/build/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.d.ts.map +1 -1
- package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.service.d.ts +41 -0
- package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.service.d.ts.map +1 -0
- package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.service.js +119 -0
- package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.service.js.map +1 -0
- package/build/_modules/bot/_modules/teams-bot/index.d.ts +1 -1
- package/build/_modules/bot/_modules/teams-bot/index.d.ts.map +1 -1
- package/build/_modules/bot/_modules/teams-bot/index.js +1 -1
- package/build/_modules/bot/_modules/teams-bot/index.js.map +1 -1
- package/build/_modules/bot/_services/bot-commands.control-service.d.ts +7 -6
- package/build/_modules/bot/_services/bot-commands.control-service.d.ts.map +1 -1
- package/build/_modules/bot/_services/bot-commands.control-service.js +3 -2
- package/build/_modules/bot/_services/bot-commands.control-service.js.map +1 -1
- package/build/_modules/bot/_services/bot-io.control-service.d.ts +13 -12
- package/build/_modules/bot/_services/bot-io.control-service.d.ts.map +1 -1
- package/build/_modules/bot/_services/bot-io.control-service.js +24 -17
- package/build/_modules/bot/_services/bot-io.control-service.js.map +1 -1
- package/build/_modules/bot/_services/bot-main.control-service.d.ts +25 -12
- package/build/_modules/bot/_services/bot-main.control-service.d.ts.map +1 -1
- package/build/_modules/bot/_services/bot-main.control-service.js +112 -2
- package/build/_modules/bot/_services/bot-main.control-service.js.map +1 -1
- package/build/_modules/bot/_services/bot-messaging-provider-factory.service.d.ts +6 -0
- package/build/_modules/bot/_services/bot-messaging-provider-factory.service.d.ts.map +1 -0
- package/build/_modules/bot/_services/bot-messaging-provider-factory.service.js +47 -0
- package/build/_modules/bot/_services/bot-messaging-provider-factory.service.js.map +1 -0
- package/build/_modules/bot/_services/bot-routines.control-service.d.ts +2 -2
- package/build/_modules/bot/_services/bot-routines.control-service.d.ts.map +1 -1
- package/build/_modules/bot/index.d.ts +4 -3
- package/build/_modules/bot/index.d.ts.map +1 -1
- package/build/_modules/bot/index.js +4 -3
- package/build/_modules/bot/index.js.map +1 -1
- package/build/_modules/discord-bot/_services/dibo-main.control-service.d.ts.map +1 -1
- package/build/_modules/discord-bot/_services/dibo-main.control-service.js +2 -0
- package/build/_modules/discord-bot/_services/dibo-main.control-service.js.map +1 -1
- package/package.json +1 -1
- package/src/_modules/ai/_services/ai-provider.service-base.ts +1 -1
- package/src/_modules/assistant/_services/ass-io.control-service.ts +14 -9
- package/src/_modules/assistant/_services/ass-main.control-service.ts +3 -3
- package/src/_modules/assistant/_services/ass.service-base.ts +22 -14
- package/src/_modules/bot/_collections/bot-operations.util.ts +14 -14
- package/src/_modules/bot/_enums/{bot-provider.enum.ts → bot-message-provider.enum.ts} +1 -1
- package/src/_modules/bot/_models/bot-channel.interface.ts +2 -2
- package/src/_modules/bot/_models/bot-command.interface.ts +3 -3
- package/src/_modules/bot/_models/bot-global-settings.interface.ts +9 -0
- package/src/_modules/bot/_models/bot-message-wrapper.interface.ts +31 -0
- package/src/_modules/bot/_models/bot-message.interface.ts +2 -2
- package/src/_modules/bot/_models/{bot-provider.interface.ts → bot-messaging-provider.interface.ts} +26 -23
- package/src/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.ts +2 -2
- package/src/_modules/bot/_modules/discord-bot/_collections/dib.util.ts +2 -2
- package/src/_modules/bot/_modules/discord-bot/_services/{dib-provider.service.ts → dib-messaging-provider.service.ts} +20 -7
- package/src/_modules/bot/_modules/discord-bot/index.ts +1 -1
- package/src/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.ts +3 -3
- package/src/_modules/bot/_modules/dynamo-bot/_collections/dyb.util.ts +2 -2
- package/src/_modules/bot/_modules/dynamo-bot/_services/{dyb-provider.service.ts → dyb-messaging-provider.service.ts} +12 -8
- package/src/_modules/bot/_modules/dynamo-bot/index.ts +1 -1
- package/src/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.ts +2 -2
- package/src/_modules/bot/_modules/slack-bot/_services/{slb-provider.service.ts → slb-messaging-provider.service.ts} +11 -7
- package/src/_modules/bot/_modules/slack-bot/index.ts +1 -1
- package/src/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.ts +2 -2
- package/src/_modules/bot/_modules/teams-bot/_services/{teb-provider.service.ts → teb-messaging-provider.service.ts} +11 -7
- package/src/_modules/bot/_modules/teams-bot/index.ts +1 -1
- package/src/_modules/bot/_services/bot-commands.control-service.ts +17 -15
- package/src/_modules/bot/_services/bot-io.control-service.ts +42 -33
- package/src/_modules/bot/_services/bot-main.control-service.ts +171 -39
- package/src/_modules/bot/_services/bot-messaging-provider-factory.service.ts +56 -0
- package/src/_modules/bot/_services/bot-routines.control-service.ts +3 -3
- package/src/_modules/bot/index.ts +4 -3
- package/src/_modules/discord-bot/_services/dibo-main.control-service.ts +2 -0
- package/src/_modules/bot/_services/bot-provider-factory.service.ts +0 -34
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface DyNTS_Bot_Channel<
|
|
1
|
+
export interface DyNTS_Bot_Channel<T_MessagingPlatformChannel = any> {
|
|
2
2
|
id: string;
|
|
3
3
|
name: string;
|
|
4
4
|
isTextBased: boolean;
|
|
5
5
|
isDM: boolean;
|
|
6
|
-
rawPlatformChannel:
|
|
6
|
+
rawPlatformChannel: T_MessagingPlatformChannel;
|
|
7
7
|
}
|
|
8
8
|
//# sourceMappingURL=bot-channel.interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bot-channel.interface.d.ts","sourceRoot":"","sources":["../../../../src/_modules/bot/_models/bot-channel.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB,CAAC,
|
|
1
|
+
{"version":3,"file":"bot-channel.interface.d.ts","sourceRoot":"","sources":["../../../../src/_modules/bot/_models/bot-channel.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB,CAAC,0BAA0B,GAAG,GAAG;IACjE,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,kBAAkB,EAAE,0BAA0B,CAAC;CAChD"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DyNTS_Bot_Message } from './bot-message.interface';
|
|
2
|
-
export interface DyNTS_Bot_Command<
|
|
2
|
+
export interface DyNTS_Bot_Command<T_MessagingPlatformMessage extends DyNTS_Bot_Message<any> = DyNTS_Bot_Message<any>> {
|
|
3
3
|
command: string;
|
|
4
4
|
description: string;
|
|
5
|
-
commandHandler: (message:
|
|
6
|
-
permissionNeeded?: (message:
|
|
5
|
+
commandHandler: (message: T_MessagingPlatformMessage) => Promise<void>;
|
|
6
|
+
permissionNeeded?: (message: T_MessagingPlatformMessage) => Promise<boolean>;
|
|
7
7
|
}
|
|
8
8
|
//# sourceMappingURL=bot-command.interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bot-command.interface.d.ts","sourceRoot":"","sources":["../../../../src/_modules/bot/_models/bot-command.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,WAAW,iBAAiB,CAAC,
|
|
1
|
+
{"version":3,"file":"bot-command.interface.d.ts","sourceRoot":"","sources":["../../../../src/_modules/bot/_models/bot-command.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,WAAW,iBAAiB,CAAC,0BAA0B,SAAS,iBAAiB,CAAC,GAAG,CAAC,GAAG,iBAAiB,CAAC,GAAG,CAAC;IACnH,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,CAAC,OAAO,EAAE,0BAA0B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACvE,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,0BAA0B,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CAC9E"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DyNTS_Bot_Command } from './bot-command.interface';
|
|
2
|
+
import { DyNTS_Bot_MessagingProvider_Config } from './bot-messaging-provider.interface';
|
|
2
3
|
export interface DyNTS_Bot_Global_Settings {
|
|
3
4
|
/**
|
|
4
5
|
* this setting will set the debug level for the bot
|
|
@@ -76,4 +77,10 @@ export interface DyNTS_Bot_Global_Settings {
|
|
|
76
77
|
};
|
|
77
78
|
allowBotsInteractEachOther: boolean;
|
|
78
79
|
}
|
|
80
|
+
export interface DyNTS_Bot_MultiMessageProvider_Settings {
|
|
81
|
+
/** Array of provider configurations (use for multiple providers) */
|
|
82
|
+
providers: DyNTS_Bot_MessagingProvider_Config[];
|
|
83
|
+
}
|
|
84
|
+
/** Union type supporting both single and multi-provider configurations */
|
|
85
|
+
export type DyNTS_Bot_Settings = DyNTS_Bot_MessagingProvider_Config | (DyNTS_Bot_Global_Settings & DyNTS_Bot_MultiMessageProvider_Settings);
|
|
79
86
|
//# sourceMappingURL=bot-global-settings.interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bot-global-settings.interface.d.ts","sourceRoot":"","sources":["../../../../src/_modules/bot/_models/bot-global-settings.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"bot-global-settings.interface.d.ts","sourceRoot":"","sources":["../../../../src/_modules/bot/_models/bot-global-settings.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,kCAAkC,EAAE,MAAM,oCAAoC,CAAC;AAExF,MAAM,WAAW,yBAAyB;IACxC;;;;;;;;;;;;OAYG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB,YAAY,EAAE,KAAK,GAAG,MAAM,EAAE,CAAC;IAE/B,eAAe,EAAE;QACf;;;WAGG;QACH,qBAAqB,EAAE,MAAM,CAAC;QAC9B;;;WAGG;QACH,sBAAsB,EAAE,MAAM,CAAC;QAC/B;;;WAGG;QACH,gBAAgB,EAAE,MAAM,CAAC;QAEzB;;;;;WAKG;QACH,SAAS,EAAE,MAAM,EAAE,CAAC;KACrB,CAAC;IAEF;;OAEG;IACH,eAAe,EAAE;QACf;;;;WAIG;QACH,iBAAiB,EAAE,MAAM,CAAC;QAE1B;;;;;WAKG;QACH,eAAe,EAAE,MAAM,EAAE,CAAC;QAC1B;;;;WAIG;QACH,WAAW,EAAE,OAAO,CAAC;QAErB;;;;;WAKG;QACH,eAAe,EAAE,MAAM,EAAE,CAAC;KAC3B,CAAC;IAEF,eAAe,EAAE;QACf,eAAe,EAAE,MAAM,CAAC;QACxB,QAAQ,EAAE,iBAAiB,EAAE,CAAC;KAC/B,CAAC;IAEF,0BAA0B,EAAE,OAAO,CAAC;CACrC;AAED,MAAM,WAAW,uCAAuC;IACtD,oEAAoE;IACpE,SAAS,EAAE,kCAAkC,EAAE,CAAC;CACjD;AAED,0EAA0E;AAC1E,MAAM,MAAM,kBAAkB,GAAG,kCAAkC,GAAG,CAAC,yBAAyB,GAAG,uCAAuC,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DyNTS_Bot_Message } from './bot-message.interface';
|
|
2
|
+
import { DyNTS_Bot_Channel } from './bot-channel.interface';
|
|
3
|
+
import { DyNTS_Bot_User } from './bot-user.interface';
|
|
4
|
+
import { DyNTS_Bot_MessagingProvider } from './bot-messaging-provider.interface';
|
|
5
|
+
import { DyNTS_Bot_MessageProvider_Type } from '../_enums/bot-message-provider.enum';
|
|
6
|
+
/**
|
|
7
|
+
* Wraps a bot message with provider context
|
|
8
|
+
* This ensures messages include the provider information needed to send replies
|
|
9
|
+
* back through the correct platform
|
|
10
|
+
*/
|
|
11
|
+
export interface DyNTS_Bot_MessageWrapper<T_MessagingPlatformMessage extends DyNTS_Bot_Message<any> = DyNTS_Bot_Message<any>> {
|
|
12
|
+
/** The wrapped message */
|
|
13
|
+
message: T_MessagingPlatformMessage;
|
|
14
|
+
/** Unique identifier for the provider instance */
|
|
15
|
+
providerId: string;
|
|
16
|
+
/** Type of the provider (discord, slack, teams, dynamo) */
|
|
17
|
+
providerType: DyNTS_Bot_MessageProvider_Type;
|
|
18
|
+
/** Reference to the provider instance for sending replies */
|
|
19
|
+
provider: DyNTS_Bot_MessagingProvider<DyNTS_Bot_Channel<any>, T_MessagingPlatformMessage, DyNTS_Bot_User<any>>;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=bot-message-wrapper.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bot-message-wrapper.interface.d.ts","sourceRoot":"","sources":["../../../../src/_modules/bot/_models/bot-message-wrapper.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAErF;;;;GAIG;AACH,MAAM,WAAW,wBAAwB,CACvC,0BAA0B,SAAS,iBAAiB,CAAC,GAAG,CAAC,GAAG,iBAAiB,CAAC,GAAG,CAAC;IAElF,0BAA0B;IAC1B,OAAO,EAAE,0BAA0B,CAAC;IAEpC,kDAAkD;IAClD,UAAU,EAAE,MAAM,CAAC;IAEnB,2DAA2D;IAC3D,YAAY,EAAE,8BAA8B,CAAC;IAE7C,6DAA6D;IAC7D,QAAQ,EAAE,2BAA2B,CACnC,iBAAiB,CAAC,GAAG,CAAC,EACtB,0BAA0B,EAC1B,cAAc,CAAC,GAAG,CAAC,CACpB,CAAC;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bot-message-wrapper.interface.js","sourceRoot":"","sources":["../../../../src/_modules/bot/_models/bot-message-wrapper.interface.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface DyNTS_Bot_Message<
|
|
1
|
+
export interface DyNTS_Bot_Message<T_MessagingPlatformMessage = any> {
|
|
2
2
|
id: string;
|
|
3
3
|
content: string;
|
|
4
4
|
authorId: string;
|
|
@@ -10,6 +10,6 @@ export interface DyNTS_Bot_Message<T_PlatformMessage = any> {
|
|
|
10
10
|
isBot: boolean;
|
|
11
11
|
replyToMessageId?: string;
|
|
12
12
|
mentions: string[];
|
|
13
|
-
rawPlatformMessage:
|
|
13
|
+
rawPlatformMessage: T_MessagingPlatformMessage;
|
|
14
14
|
}
|
|
15
15
|
//# sourceMappingURL=bot-message.interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bot-message.interface.d.ts","sourceRoot":"","sources":["../../../../src/_modules/bot/_models/bot-message.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB,CAAC,
|
|
1
|
+
{"version":3,"file":"bot-message.interface.d.ts","sourceRoot":"","sources":["../../../../src/_modules/bot/_models/bot-message.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB,CAAC,0BAA0B,GAAG,GAAG;IACjE,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,kBAAkB,EAAE,0BAA0B,CAAC;CAChD"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { DyNTS_Bot_Message } from './bot-message.interface';
|
|
2
|
+
import { DyNTS_Bot_Channel } from './bot-channel.interface';
|
|
3
|
+
import { DyNTS_Bot_User } from './bot-user.interface';
|
|
4
|
+
import { DyNTS_Bot_LastMessageDate } from './bot-last-message-date.interface';
|
|
5
|
+
import { DyNTS_Bot_LastMentionDate } from './bot-last-mention-date.interface';
|
|
6
|
+
import { DyNTS_Bot_MessageProvider_Type } from '../_enums/bot-message-provider.enum';
|
|
7
|
+
import { DyNTS_Bot_Global_Settings } from './bot-global-settings.interface';
|
|
8
|
+
export interface DyNTS_Bot_MessagingProvider_Config extends DyNTS_Bot_Global_Settings {
|
|
9
|
+
/** Unique identifier for this provider instance (required when using multiple providers) */
|
|
10
|
+
providerId?: string;
|
|
11
|
+
messageProvider: DyNTS_Bot_MessageProvider_Type;
|
|
12
|
+
messageProviderInstance?: DyNTS_Bot_MessagingProvider;
|
|
13
|
+
discord?: {
|
|
14
|
+
token: string;
|
|
15
|
+
guildId: string;
|
|
16
|
+
clientId: string;
|
|
17
|
+
oauth2Url: string;
|
|
18
|
+
};
|
|
19
|
+
slack?: {
|
|
20
|
+
token: string;
|
|
21
|
+
workspace: string;
|
|
22
|
+
};
|
|
23
|
+
teams?: {
|
|
24
|
+
appId: string;
|
|
25
|
+
appPassword: string;
|
|
26
|
+
tenantId: string;
|
|
27
|
+
};
|
|
28
|
+
dynamo?: {
|
|
29
|
+
defaultConversationId?: string;
|
|
30
|
+
botUserId?: string;
|
|
31
|
+
botDisplayName?: string;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export interface DyNTS_Bot_MessagingProvider<T_MessagingPlatformChannel extends DyNTS_Bot_Channel<any> = DyNTS_Bot_Channel<any>, T_MessagingPlatformMessage extends DyNTS_Bot_Message<any> = DyNTS_Bot_Message<any>, T_MessagingPlatformUser extends DyNTS_Bot_User<any> = DyNTS_Bot_User<any>> {
|
|
35
|
+
initialize(config: DyNTS_Bot_MessagingProvider_Config): Promise<void>;
|
|
36
|
+
login(token: string): Promise<void>;
|
|
37
|
+
getChannelByName(name: string): Promise<T_MessagingPlatformChannel>;
|
|
38
|
+
sendMessageToChannelByName(channelName: string, message: string): Promise<T_MessagingPlatformMessage>;
|
|
39
|
+
getMessagesFromChannelByChannelName(channelName: string, limit?: number): Promise<T_MessagingPlatformMessage[]>;
|
|
40
|
+
getLastMessageInChannel(channelName: string): Promise<T_MessagingPlatformMessage>;
|
|
41
|
+
clearChannel(channelId: string): Promise<void>;
|
|
42
|
+
sendMessage(channelId: string, content: string): Promise<T_MessagingPlatformMessage>;
|
|
43
|
+
replyToMessage(messageId: string, channelId: string, content: string): Promise<T_MessagingPlatformMessage>;
|
|
44
|
+
sendTyping(channelId: string): Promise<void>;
|
|
45
|
+
fetchMessages(channelId: string, limit: number): Promise<T_MessagingPlatformMessage[]>;
|
|
46
|
+
fetchAllMessagesWithPaging(channelId: string, maxFetch?: number): Promise<T_MessagingPlatformMessage[]>;
|
|
47
|
+
deleteMessage(messageId: string, channelId: string): Promise<void>;
|
|
48
|
+
getUserByName(username: string): Promise<T_MessagingPlatformUser>;
|
|
49
|
+
getUserMention(userId: string): string;
|
|
50
|
+
readMembersInChannel(channelName: string): Promise<T_MessagingPlatformUser[]>;
|
|
51
|
+
readMemberNamesInChannel(channelName: string): Promise<string[]>;
|
|
52
|
+
getLastMessageSentBy(channelName: string, username: string): Promise<T_MessagingPlatformMessage>;
|
|
53
|
+
getLastMentionOf(channelName: string, username: string): Promise<T_MessagingPlatformMessage>;
|
|
54
|
+
readLastMessageDatesByMembers(channelName: string, memberNames: string[]): Promise<DyNTS_Bot_LastMessageDate[]>;
|
|
55
|
+
readLastMessageWithMemberNamePingInIt(channelName: string, users: T_MessagingPlatformUser[]): Promise<DyNTS_Bot_LastMentionDate[]>;
|
|
56
|
+
getRoleByName?(roleName: string): any;
|
|
57
|
+
getRolePingByName?(roleName: string): Promise<string>;
|
|
58
|
+
getRolePingsByName?(roleNames: string[]): Promise<string>;
|
|
59
|
+
onMessage(handler: (message: T_MessagingPlatformMessage, issuer: string, providerId?: string) => void): void;
|
|
60
|
+
onReady(handler: () => void): void;
|
|
61
|
+
onError(handler: (error: Error) => void): void;
|
|
62
|
+
getBotId(): string;
|
|
63
|
+
getBotDisplayName(): string;
|
|
64
|
+
getProviderName(): string;
|
|
65
|
+
getProviderId(): string;
|
|
66
|
+
isReady(): boolean;
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=bot-messaging-provider.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bot-messaging-provider.interface.d.ts","sourceRoot":"","sources":["../../../../src/_modules/bot/_models/bot-messaging-provider.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAE5E,MAAM,WAAW,kCAAmC,SAAQ,yBAAyB;IACnF,4FAA4F;IAC5F,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,8BAA8B,CAAC;IAChD,uBAAuB,CAAC,EAAE,2BAA2B,CAAC;IACtD,OAAO,CAAC,EAAE;QACR,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,MA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CAAC,yBAAyB,EAAE,CAAC,CAAC;IAChH,qCAAqC,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,uBAAuB,EAAE,GAAG,OAAO,CAAC,yBAAyB,EAAE,CAAC,CAAC;IAGnI,aAAa,CAAC,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG,CAAC;IACtC,iBAAiB,CAAC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACtD,kBAAkB,CAAC,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAG1D,SAAS,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,0BAA0B,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI,CAAC;IAC7G,OAAO,CAAC,OAAO,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC;IACnC,OAAO,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,GAAG,IAAI,CAAC;IAG/C,QAAQ,IAAI,MAAM,CAAC;IACnB,iBAAiB,IAAI,MAAM,CAAC;IAC5B,eAAe,IAAI,MAAM,CAAC;IAC1B,aAAa,IAAI,MAAM,CAAC;IACxB,OAAO,IAAI,OAAO,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bot-messaging-provider.interface.js","sourceRoot":"","sources":["../../../../src/_modules/bot/_models/bot-messaging-provider.interface.ts"],"names":[],"mappings":""}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { DyNTS_Bot_Operations_Util } from '../../../_collections/bot-operations.util';
|
|
2
2
|
import { DyNTS_DiB_Message, DyNTS_DiB_Channel, DyNTS_DiB_User } from '../_models/dib-platform.types';
|
|
3
|
-
import {
|
|
3
|
+
import { DyNTS_DiB_MessagingProvider } from '../_services/dib-messaging-provider.service';
|
|
4
4
|
/**
|
|
5
5
|
* Discord Bot Operations Utility
|
|
6
6
|
*
|
|
7
7
|
* Platform-specific implementation of bot operations for Discord
|
|
8
8
|
*/
|
|
9
|
-
export declare class DyNTS_DiB_Operations_Util extends DyNTS_Bot_Operations_Util<DyNTS_DiB_Channel, DyNTS_DiB_Message, DyNTS_DiB_User,
|
|
9
|
+
export declare class DyNTS_DiB_Operations_Util extends DyNTS_Bot_Operations_Util<DyNTS_DiB_Channel, DyNTS_DiB_Message, DyNTS_DiB_User, DyNTS_DiB_MessagingProvider> {
|
|
10
10
|
}
|
|
11
11
|
//# sourceMappingURL=dib-operations.util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dib-operations.util.d.ts","sourceRoot":"","sources":["../../../../../../src/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACrG,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"dib-operations.util.d.ts","sourceRoot":"","sources":["../../../../../../src/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACrG,OAAO,EAAE,2BAA2B,EAAE,MAAM,6CAA6C,CAAC;AAE1F;;;;GAIG;AACH,qBAAa,yBAA0B,SAAQ,yBAAyB,CACtE,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,2BAA2B,CAC5B;CAGA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DyNTS_DiB_MessagingProvider } from '../_services/dib-messaging-provider.service';
|
|
2
2
|
export declare class DyNTS_DiB_Util {
|
|
3
|
-
static reportIn(provider:
|
|
3
|
+
static reportIn(provider: DyNTS_DiB_MessagingProvider): Promise<void>;
|
|
4
4
|
}
|
|
5
5
|
//# sourceMappingURL=dib.util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dib.util.d.ts","sourceRoot":"","sources":["../../../../../../src/_modules/bot/_modules/discord-bot/_collections/dib.util.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"dib.util.d.ts","sourceRoot":"","sources":["../../../../../../src/_modules/bot/_modules/discord-bot/_collections/dib.util.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,6CAA6C,CAAC;AAG1F,qBAAa,cAAc;WAEZ,QAAQ,CAAC,QAAQ,EAAE,2BAA2B,GAAG,OAAO,CAAC,IAAI,CAAC;CAa5E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dib.util.js","sourceRoot":"","sources":["../../../../../../src/_modules/bot/_modules/discord-bot/_collections/dib.util.ts"],"names":[],"mappings":";;;AAAA,sDAA6D;AAE7D,6FAA0F;AAE1F,MAAa,cAAc;IAEzB,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"dib.util.js","sourceRoot":"","sources":["../../../../../../src/_modules/bot/_modules/discord-bot/_collections/dib.util.ts"],"names":[],"mappings":";;;AAAA,sDAA6D;AAE7D,6FAA0F;AAE1F,MAAa,cAAc;IAEzB,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,QAAqC;QACzD,IAAI,CAAC;YACH,MAAM,aAAa,GAAG,GAAG,QAAQ,CAAC,iBAAiB,EAAE,oBAAoB;gBACvE,KAAK,6CAAqB,CAAC,aAAa,IAAI,6CAAqB,CAAC,YAAY,EAAE,WAAW,GAAG,CAAC;YAEjG,MAAM,QAAQ,CAAC,0BAA0B,CACvC,6CAAqB,CAAC,YAAY,EAAE,eAAe,EAAE,iBAAiB,IAAI,aAAa,EACvF,aAAa,CACd,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,uBAAU,CAAC,SAAS,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAC;QACrD,CAAC;IACH,CAAC;CACF;AAfD,wCAeC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Client, Guild, Role } from 'discord.js';
|
|
2
|
+
import { DyNTS_Bot_MessagingProvider, DyNTS_Bot_MessagingProvider_Config } from '../../../_models/bot-messaging-provider.interface';
|
|
3
|
+
import { DyNTS_Bot_LastMessageDate } from '../../../_models/bot-last-message-date.interface';
|
|
4
|
+
import { DyNTS_Bot_LastMentionDate } from '../../../_models/bot-last-mention-date.interface';
|
|
5
|
+
import { DyNTS_DiB_Message, DyNTS_DiB_Channel, DyNTS_DiB_User } from '../_models/dib-platform.types';
|
|
6
|
+
export declare class DyNTS_DiB_MessagingProvider implements DyNTS_Bot_MessagingProvider<DyNTS_DiB_Channel, DyNTS_DiB_Message, DyNTS_DiB_User> {
|
|
7
|
+
private client;
|
|
8
|
+
private guild;
|
|
9
|
+
private channelCache;
|
|
10
|
+
private roleCache;
|
|
11
|
+
private isInitialized;
|
|
12
|
+
private config;
|
|
13
|
+
private messageHandlers;
|
|
14
|
+
private readyHandlers;
|
|
15
|
+
private errorHandlers;
|
|
16
|
+
constructor();
|
|
17
|
+
get discordClient(): Client;
|
|
18
|
+
get discordGuild(): Guild;
|
|
19
|
+
initialize(config: DyNTS_Bot_MessagingProvider_Config): Promise<void>;
|
|
20
|
+
login(token: string): Promise<void>;
|
|
21
|
+
private setupEventListeners;
|
|
22
|
+
getChannelByName(name: string): Promise<DyNTS_DiB_Channel>;
|
|
23
|
+
sendMessageToChannelByName(channelName: string, message: string): Promise<DyNTS_DiB_Message>;
|
|
24
|
+
getMessagesFromChannelByChannelName(channelName: string, limit?: number): Promise<DyNTS_DiB_Message[]>;
|
|
25
|
+
getLastMessageInChannel(channelName: string): Promise<DyNTS_DiB_Message>;
|
|
26
|
+
clearChannel(channelId: string): Promise<void>;
|
|
27
|
+
sendMessage(channelId: string, content: string): Promise<DyNTS_DiB_Message>;
|
|
28
|
+
replyToMessage(messageId: string, channelId: string, content: string): Promise<DyNTS_DiB_Message>;
|
|
29
|
+
sendTyping(channelId: string): Promise<void>;
|
|
30
|
+
fetchMessages(channelId: string, limit: number): Promise<DyNTS_DiB_Message[]>;
|
|
31
|
+
fetchAllMessagesWithPaging(channelId: string, maxFetch?: number): Promise<DyNTS_DiB_Message[]>;
|
|
32
|
+
deleteMessage(messageId: string, channelId: string): Promise<void>;
|
|
33
|
+
getUserByName(username: string): Promise<DyNTS_DiB_User>;
|
|
34
|
+
getUserMention(userId: string): string;
|
|
35
|
+
readMembersInChannel(channelName: string): Promise<DyNTS_DiB_User[]>;
|
|
36
|
+
readMemberNamesInChannel(channelName: string): Promise<string[]>;
|
|
37
|
+
getLastMessageSentBy(channelName: string, username: string): Promise<DyNTS_DiB_Message>;
|
|
38
|
+
getLastMentionOf(channelName: string, username: string): Promise<DyNTS_DiB_Message>;
|
|
39
|
+
readLastMessageDatesByMembers(channelName: string, memberNames: string[]): Promise<DyNTS_Bot_LastMessageDate[]>;
|
|
40
|
+
readLastMessageWithMemberNamePingInIt(channelName: string, users: DyNTS_DiB_User[]): Promise<DyNTS_Bot_LastMentionDate[]>;
|
|
41
|
+
getRoleByName(roleName: string): Role;
|
|
42
|
+
getRolePingByName(roleName: string): Promise<string>;
|
|
43
|
+
getRolePingsByName(roleNames: string[]): Promise<string>;
|
|
44
|
+
onMessage(handler: (message: DyNTS_DiB_Message, issuer: string) => void): void;
|
|
45
|
+
onReady(handler: () => void): void;
|
|
46
|
+
onError(handler: (error: Error) => void): void;
|
|
47
|
+
getBotId(): string;
|
|
48
|
+
getBotDisplayName(): string;
|
|
49
|
+
getProviderName(): string;
|
|
50
|
+
getProviderId(): string;
|
|
51
|
+
isReady(): boolean;
|
|
52
|
+
private translateMessage;
|
|
53
|
+
private translateChannel;
|
|
54
|
+
private translateUser;
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=dib-messaging-provider.service.d.ts.map
|
package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.service.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dib-messaging-provider.service.d.ts","sourceRoot":"","sources":["../../../../../../src/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAqB,KAAK,EAA8C,IAAI,EAAe,MAAM,YAAY,CAAC;AAE7H,OAAO,EAAE,2BAA2B,EAAE,kCAAkC,EAAE,MAAM,mDAAmD,CAAC;AACpI,OAAO,EAAE,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAC7F,OAAO,EAAE,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAE7F,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAGrG,qBAAa,2BAA4B,YAAW,2BAA2B,CAC7E,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,CACf;IACC,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,KAAK,CAAQ;IACrB,OAAO,CAAC,YAAY,CAA2B;IAC/C,OAAO,CAAC,SAAS,CAAoB;IACrC,OAAO,CAAC,aAAa,CAAkB;IACvC,OAAO,CAAC,MAAM,CAAqC;IAGnD,OAAO,CAAC,eAAe,CAAmE;IAC1F,OAAO,CAAC,aAAa,CAAyB;IAC9C,OAAO,CAAC,aAAa,CAAqC;;IAQ1D,IAAI,aAAa,IAAI,MAAM,CAE1B;IAED,IAAI,YAAY,IAAI,KAAK,CAExB;IAEK,UAAU,CAAC,MAAM,EAAE,kCAAkC,GAAG,OAAO,CAAC,IAAI,CAAC;IA6BrE,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAoCzC,OAA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