tencentcloud-sdk-nodejs 4.0.448 → 4.0.449

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.
Files changed (52) hide show
  1. package/CHANGELOG.md +179 -0
  2. package/SERVICE_CHANGELOG.md +277 -30
  3. package/package.json +1 -1
  4. package/products.md +9 -7
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/bpaas/index.ts +5 -0
  7. package/src/services/bpaas/v20181217/bpaas_client.ts +59 -0
  8. package/src/services/bpaas/v20181217/bpaas_models.ts +291 -0
  9. package/src/services/bpaas/v20181217/index.ts +6 -0
  10. package/src/services/cam/v20190116/cam_models.ts +2 -2
  11. package/src/services/ckafka/v20190819/ckafka_client.ts +2 -1
  12. package/src/services/ckafka/v20190819/ckafka_models.ts +86 -10
  13. package/src/services/ess/v20201111/ess_models.ts +1 -1
  14. package/src/services/index.ts +2 -0
  15. package/src/services/lcic/index.ts +5 -0
  16. package/src/services/lcic/v20220817/index.ts +6 -0
  17. package/src/services/lcic/v20220817/lcic_client.ts +115 -0
  18. package/src/services/lcic/v20220817/lcic_models.ts +371 -0
  19. package/src/services/live/v20180801/live_models.ts +19 -16
  20. package/src/services/organization/v20210331/organization_models.ts +7 -1
  21. package/src/services/postgres/v20170312/postgres_client.ts +1 -1
  22. package/src/services/postgres/v20170312/postgres_models.ts +76 -12
  23. package/tencentcloud/common/sdk_version.d.ts +1 -1
  24. package/tencentcloud/common/sdk_version.js +1 -1
  25. package/tencentcloud/services/bpaas/index.d.ts +6 -0
  26. package/tencentcloud/services/bpaas/index.js +7 -0
  27. package/tencentcloud/services/bpaas/v20181217/bpaas_client.d.ts +18 -0
  28. package/tencentcloud/services/bpaas/v20181217/bpaas_client.js +43 -0
  29. package/tencentcloud/services/bpaas/v20181217/bpaas_models.d.ts +233 -0
  30. package/tencentcloud/services/bpaas/v20181217/bpaas_models.js +18 -0
  31. package/tencentcloud/services/bpaas/v20181217/index.d.ts +6 -0
  32. package/tencentcloud/services/bpaas/v20181217/index.js +9 -0
  33. package/tencentcloud/services/cam/v20190116/cam_models.d.ts +2 -2
  34. package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +72 -8
  35. package/tencentcloud/services/ess/v20201111/ess_models.d.ts +1 -1
  36. package/tencentcloud/services/index.d.ts +2 -0
  37. package/tencentcloud/services/index.js +4 -0
  38. package/tencentcloud/services/lcic/index.d.ts +6 -0
  39. package/tencentcloud/services/lcic/index.js +7 -0
  40. package/tencentcloud/services/lcic/v20220817/index.d.ts +6 -0
  41. package/tencentcloud/services/lcic/v20220817/index.js +9 -0
  42. package/tencentcloud/services/lcic/v20220817/lcic_client.d.ts +38 -0
  43. package/tencentcloud/services/lcic/v20220817/lcic_client.js +73 -0
  44. package/tencentcloud/services/lcic/v20220817/lcic_models.d.ts +302 -0
  45. package/tencentcloud/services/lcic/v20220817/lcic_models.js +18 -0
  46. package/tencentcloud/services/live/v20180801/live_models.d.ts +16 -13
  47. package/tencentcloud/services/organization/v20210331/organization_models.d.ts +6 -1
  48. package/tencentcloud/services/postgres/v20170312/postgres_client.d.ts +1 -1
  49. package/tencentcloud/services/postgres/v20170312/postgres_client.js +1 -1
  50. package/tencentcloud/services/postgres/v20170312/postgres_models.d.ts +67 -11
  51. package/test/bpaas.v20181217.test.js +41 -0
  52. package/test/lcic.v20220817.test.js +91 -0
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Client = void 0;
4
+ /* eslint-disable @typescript-eslint/no-unused-vars */
5
+ /*
6
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing,
15
+ * software distributed under the License is distributed on an
16
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
+ * KIND, either express or implied. See the License for the
18
+ * specific language governing permissions and limitations
19
+ * under the License.
20
+ */
21
+ const abstract_client_1 = require("../../../common/abstract_client");
22
+ /**
23
+ * bpaas client
24
+ * @class
25
+ */
26
+ class Client extends abstract_client_1.AbstractClient {
27
+ constructor(clientConfig) {
28
+ super("bpaas.tencentcloudapi.com", "2018-12-17", clientConfig);
29
+ }
30
+ /**
31
+ * 查看审批详情
32
+ */
33
+ async GetBpaasApproveDetail(req, cb) {
34
+ return this.request("GetBpaasApproveDetail", req, cb);
35
+ }
36
+ /**
37
+ * 外部审批申请单
38
+ */
39
+ async OutApproveBpaasApplication(req, cb) {
40
+ return this.request("OutApproveBpaasApplication", req, cb);
41
+ }
42
+ }
43
+ exports.Client = Client;
@@ -0,0 +1,233 @@
1
+ /**
2
+ * 状态节点
3
+ */
4
+ export interface StatusNode {
5
+ /**
6
+ * 节点id
7
+ */
8
+ NodeId: string;
9
+ /**
10
+ * 节点名称
11
+ */
12
+ NodeName: string;
13
+ /**
14
+ * 节点类型 1:审批节点 2:执行节点 3:条件节点
15
+ */
16
+ NodeType: number;
17
+ /**
18
+ * 下一个节点
19
+ */
20
+ NextNode: string;
21
+ /**
22
+ * 审批意见模型
23
+ 注意:此字段可能返回 null,表示取不到有效值。
24
+ */
25
+ Opinion: ApproveOpinion;
26
+ /**
27
+ * scf函数名称
28
+ 注意:此字段可能返回 null,表示取不到有效值。
29
+ */
30
+ ScfName: string;
31
+ /**
32
+ * 状态(0:待审批,1:审批通过,2:拒绝,3:scf执行失败,4:scf执行成功)
33
+ 注意:此字段可能返回 null,表示取不到有效值。
34
+ */
35
+ SubStatus: number;
36
+ /**
37
+ * 审批节点审批人
38
+ 注意:此字段可能返回 null,表示取不到有效值。
39
+ */
40
+ ApprovedUin: Array<number>;
41
+ /**
42
+ * 审批时间
43
+ 注意:此字段可能返回 null,表示取不到有效值。
44
+ */
45
+ CreateTime: string;
46
+ /**
47
+ * 审批意见信息 审批节点:审批人意见 执行节点:scf函数执行日志
48
+ 注意:此字段可能返回 null,表示取不到有效值。
49
+ */
50
+ Msg: string;
51
+ /**
52
+ * 有权限审批该节点的uin
53
+ 注意:此字段可能返回 null,表示取不到有效值。
54
+ */
55
+ Users: ApproveUser;
56
+ /**
57
+ * 是否有权限审批该节点
58
+ 注意:此字段可能返回 null,表示取不到有效值。
59
+ */
60
+ IsApprove: boolean;
61
+ /**
62
+ * 审批id
63
+ 注意:此字段可能返回 null,表示取不到有效值。
64
+ */
65
+ ApproveId: string;
66
+ /**
67
+ * 审批方式 0或签 1会签
68
+ 注意:此字段可能返回 null,表示取不到有效值。
69
+ */
70
+ ApproveMethod: number;
71
+ /**
72
+ * 审批节点审批类型,1人工审批 2自动通过 3自动决绝 4外部审批scf
73
+ 注意:此字段可能返回 null,表示取不到有效值。
74
+ */
75
+ ApproveType: number;
76
+ /**
77
+ * 外部审批类型 scf:0或null ; CKafka:1
78
+ 注意:此字段可能返回 null,表示取不到有效值。
79
+ */
80
+ CallMethod: number;
81
+ }
82
+ /**
83
+ * 审批意见
84
+ */
85
+ export interface ApproveOpinion {
86
+ /**
87
+ * 方式 1:输入文字反馈 2:预设选项
88
+ */
89
+ Type: number;
90
+ /**
91
+ * 审批意见
92
+ 注意:此字段可能返回 null,表示取不到有效值。
93
+ */
94
+ Content?: Array<string>;
95
+ }
96
+ /**
97
+ * OutApproveBpaasApplication返回参数结构体
98
+ */
99
+ export interface OutApproveBpaasApplicationResponse {
100
+ /**
101
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
102
+ */
103
+ RequestId?: string;
104
+ }
105
+ /**
106
+ * GetBpaasApproveDetail请求参数结构体
107
+ */
108
+ export interface GetBpaasApproveDetailRequest {
109
+ /**
110
+ * 审批id
111
+ */
112
+ ApproveId: number;
113
+ }
114
+ /**
115
+ * 审批人
116
+ */
117
+ export interface ApproveUser {
118
+ /**
119
+ * 用户uin
120
+ */
121
+ Uin: number;
122
+ /**
123
+ * 用户类型 (1:用户 2:用户组)
124
+ */
125
+ Type: number;
126
+ /**
127
+ * 用户描述
128
+ 注意:此字段可能返回 null,表示取不到有效值。
129
+ */
130
+ Desc?: string;
131
+ /**
132
+ * 用户昵称
133
+ 注意:此字段可能返回 null,表示取不到有效值。
134
+ */
135
+ Nick?: string;
136
+ }
137
+ /**
138
+ * GetBpaasApproveDetail返回参数结构体
139
+ */
140
+ export interface GetBpaasApproveDetailResponse {
141
+ /**
142
+ * 申请人uin
143
+ */
144
+ ApplyUin: number;
145
+ /**
146
+ * 申请人主账号
147
+ */
148
+ ApplyOwnUin: number;
149
+ /**
150
+ * 申请人昵称
151
+ 注意:此字段可能返回 null,表示取不到有效值。
152
+ */
153
+ ApplyUinNick: string;
154
+ /**
155
+ * 审批流id
156
+ */
157
+ BpaasId: number;
158
+ /**
159
+ * 审批流名称
160
+ */
161
+ BpaasName: string;
162
+ /**
163
+ * 申请参数
164
+ 注意:此字段可能返回 null,表示取不到有效值。
165
+ */
166
+ ApplicationParams: Array<ApplyParam>;
167
+ /**
168
+ * 申请原因
169
+ 注意:此字段可能返回 null,表示取不到有效值。
170
+ */
171
+ Reason: string;
172
+ /**
173
+ * 申请时间
174
+ 注意:此字段可能返回 null,表示取不到有效值。
175
+ */
176
+ CreateTime: string;
177
+ /**
178
+ * 申请单状态
179
+ 注意:此字段可能返回 null,表示取不到有效值。
180
+ */
181
+ Status: number;
182
+ /**
183
+ * 节点信息
184
+ 注意:此字段可能返回 null,表示取不到有效值。
185
+ */
186
+ Nodes: Array<StatusNode>;
187
+ /**
188
+ * 正在审批的节点id
189
+ 注意:此字段可能返回 null,表示取不到有效值。
190
+ */
191
+ ApprovingNodeId: string;
192
+ /**
193
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
194
+ */
195
+ RequestId?: string;
196
+ }
197
+ /**
198
+ * OutApproveBpaasApplication请求参数结构体
199
+ */
200
+ export interface OutApproveBpaasApplicationRequest {
201
+ /**
202
+ * 状态 1:通过 2:拒绝
203
+ */
204
+ Status: number;
205
+ /**
206
+ * 审批单id
207
+ */
208
+ ApproveId: number;
209
+ /**
210
+ * 审批意见
211
+ */
212
+ Msg?: string;
213
+ }
214
+ /**
215
+ * bpaas申请入参
216
+ */
217
+ export interface ApplyParam {
218
+ /**
219
+ * 审批流中表单唯一标识
220
+ 注意:此字段可能返回 null,表示取不到有效值。
221
+ */
222
+ Key: string;
223
+ /**
224
+ * 表单value
225
+ 注意:此字段可能返回 null,表示取不到有效值。
226
+ */
227
+ Value: Array<string>;
228
+ /**
229
+ * 表单参数描述
230
+ 注意:此字段可能返回 null,表示取不到有效值。
231
+ */
232
+ Name?: string;
233
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import * as Models from "./bpaas_models";
2
+ import { Client } from "./bpaas_client";
3
+ export declare const v20181217: {
4
+ Client: typeof Client;
5
+ Models: typeof Models;
6
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.v20181217 = void 0;
4
+ const Models = require("./bpaas_models");
5
+ const bpaas_client_1 = require("./bpaas_client");
6
+ exports.v20181217 = {
7
+ Client: bpaas_client_1.Client,
8
+ Models: Models
9
+ };
@@ -1209,11 +1209,11 @@ export interface DetachRolePolicyRequest {
1209
1209
  */
1210
1210
  PolicyId?: number;
1211
1211
  /**
1212
- * 角色ID,用于指定角色,入参 AttachRoleIdAttachRoleName 二选一
1212
+ * 角色ID,用于指定角色,入参 DetachRoleIdDetachRoleName 二选一
1213
1213
  */
1214
1214
  DetachRoleId?: string;
1215
1215
  /**
1216
- * 角色名称,用于指定角色,入参 AttachRoleIdAttachRoleName 二选一
1216
+ * 角色名称,用于指定角色,入参 DetachRoleIdDetachRoleName 二选一
1217
1217
  */
1218
1218
  DetachRoleName?: string;
1219
1219
  /**
@@ -562,6 +562,11 @@ export interface DescribeConnectResourceResp {
562
562
  注意:此字段可能返回 null,表示取不到有效值。
563
563
  */
564
564
  CtsdbConnectParam: CtsdbConnectParam;
565
+ /**
566
+ * Doris 配置,Type 为 DORIS 时返回
567
+ 注意:此字段可能返回 null,表示取不到有效值。
568
+ */
569
+ DorisConnectParam: DorisConnectParam;
565
570
  }
566
571
  /**
567
572
  * AuthorizeToken返回参数结构体
@@ -762,6 +767,11 @@ export interface DescribeConnectResource {
762
767
  注意:此字段可能返回 null,表示取不到有效值。
763
768
  */
764
769
  CtsdbConnectParam: CtsdbConnectParam;
770
+ /**
771
+ * Doris 配置,Type 为 DORIS 时返回
772
+ 注意:此字段可能返回 null,表示取不到有效值。
773
+ */
774
+ DorisConnectParam: DorisConnectParam;
765
775
  }
766
776
  /**
767
777
  * Dts类型入参
@@ -1735,22 +1745,54 @@ export interface DynamicDiskConfig {
1735
1745
  MaxDiskSpace?: number;
1736
1746
  }
1737
1747
  /**
1738
- * 操作型结果返回值
1748
+ * Doris 连接源参数
1739
1749
  */
1740
- export interface JgwOperateResponse {
1750
+ export interface DorisConnectParam {
1741
1751
  /**
1742
- * 返回的code,0为正常,非0为错误
1752
+ * Doris jdbc 负载均衡连接 port,通常映射到 fe 的 9030 端口
1753
+ 注意:此字段可能返回 null,表示取不到有效值。
1743
1754
  */
1744
- ReturnCode: string;
1755
+ Port: number;
1745
1756
  /**
1746
- * 成功消息
1757
+ * Doris 连接源的用户名
1758
+ 注意:此字段可能返回 null,表示取不到有效值。
1747
1759
  */
1748
- ReturnMessage: string;
1760
+ UserName: string;
1749
1761
  /**
1750
- * 操作型返回的Data数据,可能有flowId等
1762
+ * Doris 连接源的密码
1751
1763
  注意:此字段可能返回 null,表示取不到有效值。
1752
1764
  */
1753
- Data: OperateResponseData;
1765
+ Password: string;
1766
+ /**
1767
+ * Doris 连接源的实例资源
1768
+ 注意:此字段可能返回 null,表示取不到有效值。
1769
+ */
1770
+ Resource: string;
1771
+ /**
1772
+ * Doris 连接源的实例vip,当为腾讯云实例时,必填
1773
+ 注意:此字段可能返回 null,表示取不到有效值。
1774
+ */
1775
+ ServiceVip?: string;
1776
+ /**
1777
+ * Doris 连接源的vpcId,当为腾讯云实例时,必填
1778
+ 注意:此字段可能返回 null,表示取不到有效值。
1779
+ */
1780
+ UniqVpcId?: string;
1781
+ /**
1782
+ * 是否更新到关联的Datahub任务
1783
+ 注意:此字段可能返回 null,表示取不到有效值。
1784
+ */
1785
+ IsUpdate?: boolean;
1786
+ /**
1787
+ * Doris 连接源是否为自建集群
1788
+ 注意:此字段可能返回 null,表示取不到有效值。
1789
+ */
1790
+ SelfBuilt?: boolean;
1791
+ /**
1792
+ * Doris 的 http 负载均衡连接 port,通常映射到 be 的 8040 端口
1793
+ 注意:此字段可能返回 null,表示取不到有效值。
1794
+ */
1795
+ BePort?: number;
1754
1796
  }
1755
1797
  /**
1756
1798
  * zone信息实体
@@ -2694,6 +2736,10 @@ export interface CreateConnectResourceRequest {
2694
2736
  * SQLServer配置,Type为SQLSERVER时必填
2695
2737
  */
2696
2738
  SQLServerConnectParam?: SQLServerConnectParam;
2739
+ /**
2740
+ * Doris 配置,Type为 DORIS 时必填
2741
+ */
2742
+ DorisConnectParam?: DorisConnectParam;
2697
2743
  }
2698
2744
  /**
2699
2745
  * MariaDB类型入参
@@ -5290,6 +5336,24 @@ export interface InstanceResponse {
5290
5336
  */
5291
5337
  TotalCount: number;
5292
5338
  }
5339
+ /**
5340
+ * 操作型结果返回值
5341
+ */
5342
+ export interface JgwOperateResponse {
5343
+ /**
5344
+ * 返回的code,0为正常,非0为错误
5345
+ */
5346
+ ReturnCode: string;
5347
+ /**
5348
+ * 成功消息
5349
+ */
5350
+ ReturnMessage: string;
5351
+ /**
5352
+ * 操作型返回的Data数据,可能有flowId等
5353
+ 注意:此字段可能返回 null,表示取不到有效值。
5354
+ */
5355
+ Data: OperateResponseData;
5356
+ }
5293
5357
  /**
5294
5358
  * DescribeGroup返回实体
5295
5359
  */
@@ -607,7 +607,7 @@ HONGKONG_MACAO_AND_TAIWAN 港澳台居民居住证(格式同居民身份证)
607
607
  */
608
608
  VerifyChannel?: Array<string>;
609
609
  /**
610
- * 是否发送短信,sms--短信通知,none--不通知,默认为sms
610
+ * 是否发送短信,sms--短信通知,none--不通知,默认为sms;发起方=签署方时不发送短信
611
611
  */
612
612
  NotifyType?: string;
613
613
  /**
@@ -26,6 +26,7 @@ export { bma } from "./bma";
26
26
  export { bmeip } from "./bmeip";
27
27
  export { bmlb } from "./bmlb";
28
28
  export { bmvpc } from "./bmvpc";
29
+ export { bpaas } from "./bpaas";
29
30
  export { bri } from "./bri";
30
31
  export { bsca } from "./bsca";
31
32
  export { btoe } from "./btoe";
@@ -114,6 +115,7 @@ export { iotvideoindustry } from "./iotvideoindustry";
114
115
  export { irp } from "./irp";
115
116
  export { ivld } from "./ivld";
116
117
  export { kms } from "./kms";
118
+ export { lcic } from "./lcic";
117
119
  export { lighthouse } from "./lighthouse";
118
120
  export { live } from "./live";
119
121
  export { lowcode } from "./lowcode";
@@ -56,6 +56,8 @@ var bmlb_1 = require("./bmlb");
56
56
  Object.defineProperty(exports, "bmlb", { enumerable: true, get: function () { return bmlb_1.bmlb; } });
57
57
  var bmvpc_1 = require("./bmvpc");
58
58
  Object.defineProperty(exports, "bmvpc", { enumerable: true, get: function () { return bmvpc_1.bmvpc; } });
59
+ var bpaas_1 = require("./bpaas");
60
+ Object.defineProperty(exports, "bpaas", { enumerable: true, get: function () { return bpaas_1.bpaas; } });
59
61
  var bri_1 = require("./bri");
60
62
  Object.defineProperty(exports, "bri", { enumerable: true, get: function () { return bri_1.bri; } });
61
63
  var bsca_1 = require("./bsca");
@@ -232,6 +234,8 @@ var ivld_1 = require("./ivld");
232
234
  Object.defineProperty(exports, "ivld", { enumerable: true, get: function () { return ivld_1.ivld; } });
233
235
  var kms_1 = require("./kms");
234
236
  Object.defineProperty(exports, "kms", { enumerable: true, get: function () { return kms_1.kms; } });
237
+ var lcic_1 = require("./lcic");
238
+ Object.defineProperty(exports, "lcic", { enumerable: true, get: function () { return lcic_1.lcic; } });
235
239
  var lighthouse_1 = require("./lighthouse");
236
240
  Object.defineProperty(exports, "lighthouse", { enumerable: true, get: function () { return lighthouse_1.lighthouse; } });
237
241
  var live_1 = require("./live");
@@ -0,0 +1,6 @@
1
+ export declare const lcic: {
2
+ v20220817: {
3
+ Client: typeof import("./v20220817/lcic_client").Client;
4
+ Models: typeof import("./v20220817/lcic_models");
5
+ };
6
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.lcic = void 0;
4
+ const v20220817_1 = require("./v20220817");
5
+ exports.lcic = {
6
+ v20220817: v20220817_1.v20220817,
7
+ };
@@ -0,0 +1,6 @@
1
+ import * as Models from "./lcic_models";
2
+ import { Client } from "./lcic_client";
3
+ export declare const v20220817: {
4
+ Client: typeof Client;
5
+ Models: typeof Models;
6
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.v20220817 = void 0;
4
+ const Models = require("./lcic_models");
5
+ const lcic_client_1 = require("./lcic_client");
6
+ exports.v20220817 = {
7
+ Client: lcic_client_1.Client,
8
+ Models: Models
9
+ };
@@ -0,0 +1,38 @@
1
+ import { AbstractClient } from "../../../common/abstract_client";
2
+ import { ClientConfig } from "../../../common/interface";
3
+ import { CreateRoomRequest, CreateSupervisorRequest, DescribeRoomResponse, RegisterUserRequest, LoginOriginIdRequest, DescribeUserRequest, RegisterUserResponse, LoginUserRequest, CreateSupervisorResponse, CreateRoomResponse, DescribeUserResponse, DescribeRoomRequest, LoginOriginIdResponse, LoginUserResponse } from "./lcic_models";
4
+ /**
5
+ * lcic client
6
+ * @class
7
+ */
8
+ export declare class Client extends AbstractClient {
9
+ constructor(clientConfig: ClientConfig);
10
+ /**
11
+ * 获取用户信息
12
+ */
13
+ DescribeUser(req: DescribeUserRequest, cb?: (error: string, rep: DescribeUserResponse) => void): Promise<DescribeUserResponse>;
14
+ /**
15
+ * 使用源账号登录,源账号为注册时填入的originId
16
+ */
17
+ LoginOriginId(req: LoginOriginIdRequest, cb?: (error: string, rep: LoginOriginIdResponse) => void): Promise<LoginOriginIdResponse>;
18
+ /**
19
+ * 注册用户
20
+ */
21
+ RegisterUser(req: RegisterUserRequest, cb?: (error: string, rep: RegisterUserResponse) => void): Promise<RegisterUserResponse>;
22
+ /**
23
+ * 登录
24
+ */
25
+ LoginUser(req: LoginUserRequest, cb?: (error: string, rep: LoginUserResponse) => void): Promise<LoginUserResponse>;
26
+ /**
27
+ * 创建巡课
28
+ */
29
+ CreateSupervisor(req?: CreateSupervisorRequest, cb?: (error: string, rep: CreateSupervisorResponse) => void): Promise<CreateSupervisorResponse>;
30
+ /**
31
+ * 获取房间信息
32
+ */
33
+ DescribeRoom(req: DescribeRoomRequest, cb?: (error: string, rep: DescribeRoomResponse) => void): Promise<DescribeRoomResponse>;
34
+ /**
35
+ * 创建房间
36
+ */
37
+ CreateRoom(req: CreateRoomRequest, cb?: (error: string, rep: CreateRoomResponse) => void): Promise<CreateRoomResponse>;
38
+ }
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Client = void 0;
4
+ /* eslint-disable @typescript-eslint/no-unused-vars */
5
+ /*
6
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing,
15
+ * software distributed under the License is distributed on an
16
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
+ * KIND, either express or implied. See the License for the
18
+ * specific language governing permissions and limitations
19
+ * under the License.
20
+ */
21
+ const abstract_client_1 = require("../../../common/abstract_client");
22
+ /**
23
+ * lcic client
24
+ * @class
25
+ */
26
+ class Client extends abstract_client_1.AbstractClient {
27
+ constructor(clientConfig) {
28
+ super("lcic.tencentcloudapi.com", "2022-08-17", clientConfig);
29
+ }
30
+ /**
31
+ * 获取用户信息
32
+ */
33
+ async DescribeUser(req, cb) {
34
+ return this.request("DescribeUser", req, cb);
35
+ }
36
+ /**
37
+ * 使用源账号登录,源账号为注册时填入的originId
38
+ */
39
+ async LoginOriginId(req, cb) {
40
+ return this.request("LoginOriginId", req, cb);
41
+ }
42
+ /**
43
+ * 注册用户
44
+ */
45
+ async RegisterUser(req, cb) {
46
+ return this.request("RegisterUser", req, cb);
47
+ }
48
+ /**
49
+ * 登录
50
+ */
51
+ async LoginUser(req, cb) {
52
+ return this.request("LoginUser", req, cb);
53
+ }
54
+ /**
55
+ * 创建巡课
56
+ */
57
+ async CreateSupervisor(req, cb) {
58
+ return this.request("CreateSupervisor", req, cb);
59
+ }
60
+ /**
61
+ * 获取房间信息
62
+ */
63
+ async DescribeRoom(req, cb) {
64
+ return this.request("DescribeRoom", req, cb);
65
+ }
66
+ /**
67
+ * 创建房间
68
+ */
69
+ async CreateRoom(req, cb) {
70
+ return this.request("CreateRoom", req, cb);
71
+ }
72
+ }
73
+ exports.Client = Client;