tencentcloud-sdk-nodejs-evt 4.1.159 → 4.1.173

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.
@@ -3,6 +3,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
3
3
  constructor(clientConfig) {
4
4
  super("evt.tencentcloudapi.com", "2025-02-17", clientConfig);
5
5
  }
6
+ async PutEvent(req, cb) {
7
+ return this.request("PutEvent", req, cb);
8
+ }
6
9
  async DeleteRoleUser(req, cb) {
7
10
  return this.request("DeleteRoleUser", req, cb);
8
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-evt",
3
- "version": "4.1.159",
3
+ "version": "4.1.173",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -1,11 +1,15 @@
1
1
  import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
- import { CreateRoleUserRequest, CompleteApprovalRequest, DeleteRoleUserRequest, DeleteRoleUserResponse, CreateRoleUserResponse, CompleteApprovalResponse, PutMessageResponse, PutMessageRequest } from "./evt_models";
2
+ import { CreateRoleUserRequest, CompleteApprovalRequest, DeleteRoleUserRequest, DeleteRoleUserResponse, PutEventResponse, CreateRoleUserResponse, PutEventRequest, CompleteApprovalResponse, PutMessageResponse, PutMessageRequest } from "./evt_models";
3
3
  /**
4
4
  * evt client
5
5
  * @class
6
6
  */
7
7
  export declare class Client extends TencentCloudCommon.AbstractClient {
8
8
  constructor(clientConfig: TencentCloudCommon.ClientConfig);
9
+ /**
10
+ * 推送事件数据
11
+ */
12
+ PutEvent(req: PutEventRequest, cb?: (error: string, rep: PutEventResponse) => void): Promise<PutEventResponse>;
9
13
  /**
10
14
  * 删除自定义用户
11
15
  */
@@ -28,6 +28,12 @@ class Client extends TencentCloudCommon.AbstractClient {
28
28
  constructor(clientConfig) {
29
29
  super("evt.tencentcloudapi.com", "2025-02-17", clientConfig);
30
30
  }
31
+ /**
32
+ * 推送事件数据
33
+ */
34
+ async PutEvent(req, cb) {
35
+ return this.request("PutEvent", req, cb);
36
+ }
31
37
  /**
32
38
  * 删除自定义用户
33
39
  */
@@ -91,6 +91,15 @@ export interface DeleteRoleUserResponse {
91
91
  */
92
92
  RequestId?: string;
93
93
  }
94
+ /**
95
+ * PutEvent返回参数结构体
96
+ */
97
+ export interface PutEventResponse {
98
+ /**
99
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
100
+ */
101
+ RequestId?: string;
102
+ }
94
103
  /**
95
104
  * CreateRoleUser返回参数结构体
96
105
  */
@@ -104,6 +113,27 @@ export interface CreateRoleUserResponse {
104
113
  */
105
114
  RequestId?: string;
106
115
  }
116
+ /**
117
+ * PutEvent请求参数结构体
118
+ */
119
+ export interface PutEventRequest {
120
+ /**
121
+ * <p>插件ID</p>
122
+ */
123
+ PluginId: string;
124
+ /**
125
+ * <p>需要推送的事件数据内容,格式为json,字段定义需要与事件中的定义一致</p>
126
+ */
127
+ Data?: string;
128
+ /**
129
+ * <p>数据推送来源,会在生成的单据中展示数据来源</p>
130
+ */
131
+ Source?: string;
132
+ /**
133
+ * <p>可以接受当前消息的Uin</p>
134
+ */
135
+ TargetUin?: number;
136
+ }
107
137
  /**
108
138
  * CompleteApproval返回参数结构体
109
139
  */