@rongcloud/engine 5.32.0 → 5.32.1-c-test-alpha.1
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/index.cjs +1 -1
- package/index.cjs.js +1 -1
- package/index.d.ts +8 -1
- package/index.esm.js +1 -1
- package/index.mjs +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -14349,6 +14349,12 @@ declare class PluginContext {
|
|
|
14349
14349
|
* @deprecated
|
|
14350
14350
|
*/
|
|
14351
14351
|
sendMessage(conversationType: ConversationType, targetId: string, options: ISendMsgOptions): Promise<RCResult<IReceivedMessage>>;
|
|
14352
|
+
/**
|
|
14353
|
+
* 发送消息
|
|
14354
|
+
* @param identifier 会话标识
|
|
14355
|
+
* @param options 消息发送配置
|
|
14356
|
+
* @returns 发送结果
|
|
14357
|
+
*/
|
|
14352
14358
|
sendMessageTo(identifier: IConversationIdentifier, options: IMessageSendOptions): Promise<RCResult<IReceivedMessage>>;
|
|
14353
14359
|
/**
|
|
14354
14360
|
* 消息注册
|
|
@@ -14693,6 +14699,7 @@ declare class BaseModule {
|
|
|
14693
14699
|
*/
|
|
14694
14700
|
protected readonly logger: BasicLogger;
|
|
14695
14701
|
/**
|
|
14702
|
+
* 目前为 engine 实例
|
|
14696
14703
|
* @hidden
|
|
14697
14704
|
*/
|
|
14698
14705
|
protected readonly ctx: IModuleContext;
|
|
@@ -15230,7 +15237,7 @@ declare class APIContext {
|
|
|
15230
15237
|
* @param traceId 追踪 ID
|
|
15231
15238
|
* @param onBefore 消息发送之前的回调,用于返回消息的 messageId
|
|
15232
15239
|
*/
|
|
15233
|
-
|
|
15240
|
+
sendMessageByPlugin(identifier: IConversationIdentifier, options: IMessageSendOptions, onBefore?: (messageId: number) => void): Promise<RCResult<IReceivedMessage>>;
|
|
15234
15241
|
/**
|
|
15235
15242
|
* 发送消息
|
|
15236
15243
|
* @param identifier 会话标识
|