tencentcloud-sdk-nodejs-ess 4.0.1027 → 4.0.1029

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/README.md CHANGED
@@ -1,21 +1,20 @@
1
1
  # 简介
2
2
 
3
- 欢迎使用腾讯云开发者工具套件(SDK),NODEJS SDK 4.0 是云 API 3.0 平台的配套工具。
4
- 为方便 NODEJS 开发者调试和接入腾讯云产品 API,这里向您介绍适用于 NODEJS 的腾讯云开发工具包,并提供首次使用开发工具包的简单示例。让您快速获取腾讯云 NODEJS SDK 并开始调用。
3
+ 欢迎使用腾讯云开发者工具套件(SDK),Node.js SDK 4.0 是云 API 3.0 平台的配套工具。
4
+ 为方便 Node.js 开发者调试和接入腾讯云产品 API,这里向您介绍适用于 Node.js 的腾讯云开发工具包,并提供首次使用开发工具包的简单示例。让您快速获取腾讯云 Node.js SDK 并开始调用。
5
5
 
6
6
  # 依赖环境
7
7
 
8
- 1. NODEJS 10.0.0 版本及以上
9
- 2. 从腾讯云控制台 开通相应产品
10
- 3. 获取 SecretID、SecretKey 以及调用地址(endpoint),endpoint 一般形式为\*.tencentcloudapi.com,如 CVM 的调用地址为 cvm.tencentcloudapi.com,具体参考各产品说明。
8
+ 1. Node.js 10.0.0 版本及以上。
9
+ 2. 注意:部分产品需在 [腾讯云控制台](https://console.cloud.tencent.com/) 开通服务后才能使用。
11
10
 
12
11
  # 获取安装
13
12
 
14
- 安装 NODEJS SDK 前,先获取安全凭证。在第一次使用云 API 之前,用户首先需要在腾讯云控制台上申请安全凭证,安全凭证包括 SecretID SecretKey, SecretID 是用于标识 API 调用者的身份,SecretKey 是用于加密签名字符串和服务器端验证签名字符串的密钥。SecretKey 必须严格保管,避免泄露。
13
+ 使用 SDK 需要 API 密钥,可前往 [腾讯云控制台 - 访问密钥](https://console.cloud.tencent.com/cam/capi) 页面申请,API 密钥包括 SecretID SecretKey,密钥须严格保管,避免泄露。
15
14
 
16
- ## 通过 NPM 安装
15
+ ## 通过 npm 安装
17
16
 
18
- 通过 NPM 获取安装是使用 NODEJS SDK 的推荐方法,NPM NODEJS 的包管理工具。关于 NPM 详细可参考 [NPM 官网](https://www.npmjs.com/) 。
17
+ 通过 npm 获取安装是使用 Node.js SDK 的推荐方法,关于 npm 详细可参考 [NPM 官网](https://www.npmjs.com/) 。
19
18
 
20
19
  ### 安装指定产品 SDK(推荐)
21
20
 
@@ -56,10 +55,12 @@ npm install tencentcloud-sdk-nodejs --save
56
55
  1. 前往 [GitHub 仓库](https://github.com/tencentcloud/tencentcloud-sdk-nodejs) 或者 [Gitee 仓库](https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs) 下载源码压缩包。
57
56
  2. 解压源码包到您项目合适的位置,例如 `sdk/tencentcloud-sdk-nodejs`。
58
57
  3. 执行 `npm install ./sdk/tencentcloud-sdk-nodejs`。
59
- 4. 使用 `require("tencentcloud-sdk-nodejs")` 的方式引入SDK,具体可参考示例。
58
+ 4. 使用 `require("tencentcloud-sdk-nodejs")` 的方式引入 SDK,具体可参考示例。
60
59
 
61
60
  # 示例
62
61
 
62
+ 以云服务器产品查询可用区列表接口为例。
63
+
63
64
  ```js
64
65
  const tencentcloud = require("tencentcloud-sdk-nodejs")
65
66
 
@@ -102,7 +103,7 @@ client.DescribeZones().then(
102
103
  )
103
104
  ```
104
105
 
105
- 在支持 typescript 项目中,采用如下方式调用
106
+ 在支持 TypeScript 项目中,采用如下方式调用
106
107
 
107
108
  ```js
108
109
  import * as tencentcloud from "tencentcloud-sdk-nodejs"
@@ -112,10 +113,11 @@ const CvmClient = tencentcloud.cvm.v20170312.Client
112
113
  // ...
113
114
  ```
114
115
 
115
- 实例化`Client` 的入参支持 `clientConfig` 数据结构和说明 详见 [ClientConfig](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/blob/master/src/common/interface.ts)
116
+ 实例化 `Client` 的入参支持 `clientConfig`,数据结构和说明详见 [ClientConfig](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/blob/master/src/common/interface.ts)
116
117
 
117
118
  ## Common Client
118
- 从 4.0.714 版本开始腾讯云 NODEJS SDK 支持使用泛用性的 API 调用方式(Common Client)进行请求。您只需要安装 tencentcloud-sdk-nodejs-common 包,即可向任何产品发起调用。
119
+
120
+ 从 4.0.714 版本开始,腾讯云 Node.js SDK 支持使用泛用性的 API 调用方式(Common Client)进行请求。您只需要安装 tencentcloud-sdk-nodejs-common 包,即可向任何产品发起调用。
119
121
 
120
122
  **注意,您必须明确知道您调用的接口所需参数,否则可能会调用失败。**
121
123
 
@@ -123,19 +125,19 @@ const CvmClient = tencentcloud.cvm.v20170312.Client
123
125
 
124
126
  ## 更多示例
125
127
 
126
- 更丰富的使用 demo 请在 examples 目录中寻找。
128
+ 请参考 [examples](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/tree/master/examples) 目录。
127
129
 
128
130
  # 相关配置
129
131
 
130
132
  ## 代理
131
133
 
132
- 如果是有代理的环境下,需要配置代理,请在创建Client时传入 [profile.httpProfile.proxy](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/blob/master/src/common/interface.ts#L78) 参数,或设置系统环境变量 `http_proxy` ,否则可能无法正常调用,抛出连接超时的异常。
134
+ 如果是有代理的环境下,需要配置代理,请在创建 Client 时传入 [profile.httpProfile.proxy](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/blob/master/src/common/interface.ts#L78) 参数,或设置系统环境变量 `http_proxy` ,否则可能无法正常调用,抛出连接超时的异常。
133
135
 
134
136
  # 凭证管理
135
137
 
136
138
  除显式传入凭证外,从 `v4.0.506` 起支持 [腾讯云实例角色](https://cloud.tencent.com/document/product/213/47668)
137
139
 
138
- 在您为实例绑定角色后,您可以在实例中访问相关元数据接口获取临时凭证。用法可参考 [js示例代码](./examples/cvm_role.js) 或 [ts示例代码](./examples/cvm_role.ts)
140
+ 在您为实例绑定角色后,您可以在实例中访问相关元数据接口获取临时凭证。用法可参考 [js 示例代码](./examples/cvm_role.js) 或 [ts 示例代码](./examples/cvm_role.ts)
139
141
  ```javascript
140
142
  // ...
141
143
  const CvmRoleCredential = require("tencentcloud-sdk-nodejs/tencentcloud/common/cvm_role_credential").default
@@ -147,20 +149,16 @@ new XxxClient({
147
149
  })
148
150
  ```
149
151
 
150
- # 旧版 SDK
151
-
152
- 我们推荐使用新版 NODEJS SDK,如果一定要用旧版 SDK,请前往[GitHub 仓库](https://github.com/CFETeam/qcloudapi-sdk)下载。
153
-
154
152
  # 常见问题
155
- - webpack打包出错/浏览器报错
153
+ - webpack 打包出错/浏览器报错
156
154
 
157
- 请**务必不要**将此SDK直接用于web前端(包括小程序等),暴露密钥在这些环境非常不安全。
155
+ 请**务必不要**将此 SDK 直接用于 Web 前端(包括小程序等),暴露密钥在这些环境非常不安全。
158
156
 
159
- 正确的做法是在自己的服务端引用此SDK,并保存好密钥,做好请求鉴权;前端再调用服务端执行业务流程。
157
+ 正确的做法是在自己的服务端引用此 SDK,并保存好密钥,做好请求鉴权,前端再调用服务端执行业务流程。
160
158
 
161
159
  - `The "original" argument must be of type Function.`
162
160
 
163
- 通常是因为nodejs版本低于 `v10` ,或处于非node环境,请再次确认执行环境。
161
+ 通常是因为 Node.js 版本低于 `v10` ,或处于非 Node.js 环境,请再次确认执行环境。
164
162
 
165
163
  - 请求不通
166
164
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-ess",
3
- "version": "4.0.1027",
3
+ "version": "4.0.1029",
4
4
  "description": "Tencent Cloud API NODEJS SDK",
5
5
  "main": "tencentcloud/index.js",
6
6
  "scripts": {
@@ -23,6 +23,7 @@ import {
23
23
  BillUsageDetail,
24
24
  DescribeCancelFlowsTaskResponse,
25
25
  IntentionActionResult,
26
+ DescribeFileCounterSignResultRequest,
26
27
  CreateSealRequest,
27
28
  FlowGroupUrlInfo,
28
29
  CancelFlowResponse,
@@ -32,13 +33,14 @@ import {
32
33
  CreatePreparedPersonalEsignRequest,
33
34
  CreateLegalSealQrCodeResponse,
34
35
  DescribeIntegrationDepartmentsResponse,
36
+ CreateFileCounterSignRequest,
35
37
  FileInfo,
36
38
  DescribeOrganizationVerifyStatusResponse,
37
39
  DeleteExtendedServiceAuthInfosResponse,
38
40
  CreateDynamicFlowApproverRequest,
39
41
  CreateFlowApproversResponse,
40
42
  DescribeFileUrlsResponse,
41
- CreateExtendedServiceAuthInfosRequest,
43
+ CreateFlowRemindsRequest,
42
44
  IntentionQuestionResult,
43
45
  CancelUserAutoSignEnableUrlRequest,
44
46
  AuthInfoDetail,
@@ -179,12 +181,13 @@ import {
179
181
  CreateDocumentRequest,
180
182
  RemindFlowRecords,
181
183
  CreatePreparedPersonalEsignResponse,
184
+ VerifyDigitFileResponse,
182
185
  DescribeOrganizationSealsResponse,
183
186
  CreateUserMobileChangeUrlRequest,
184
187
  RegistrationOrganizationInfo,
185
188
  CreateEmbedWebUrlRequest,
186
189
  DeleteIntegrationEmployeesRequest,
187
- FailedUpdateStaffData,
190
+ DescribeUserAutoSignStatusRequest,
188
191
  GetTaskResultApiRequest,
189
192
  FlowGroupOptions,
190
193
  DescribeFlowBriefsResponse,
@@ -233,6 +236,7 @@ import {
233
236
  CreatePrepareFlowResponse,
234
237
  ModifyIntegrationDepartmentResponse,
235
238
  GetTaskResultApiResponse,
239
+ FailedUpdateStaffData,
236
240
  DescribeOrganizationVerifyStatusRequest,
237
241
  SubOrgBillSummary,
238
242
  DeleteStaffsResult,
@@ -240,7 +244,8 @@ import {
240
244
  DeleteIntegrationDepartmentRequest,
241
245
  CancelUserAutoSignEnableUrlResponse,
242
246
  ModifyApplicationCallbackInfoRequest,
243
- DescribeUserAutoSignStatusRequest,
247
+ CreateFileCounterSignResponse,
248
+ VerifyDigitFileResult,
244
249
  StartFlowRequest,
245
250
  CreateSealResponse,
246
251
  CreatePrepareFlowRequest,
@@ -250,7 +255,7 @@ import {
250
255
  ModifyExtendedServiceResponse,
251
256
  CreateFlowGroupByTemplatesRequest,
252
257
  FlowGroupApproverInfo,
253
- DescribeOrganizationSealsRequest,
258
+ DescribeFileCounterSignResultResponse,
254
259
  PermissionGroup,
255
260
  CancelFlowRequest,
256
261
  UploadFile,
@@ -259,7 +264,8 @@ import {
259
264
  DescribeExtendedServiceAuthInfosRequest,
260
265
  DescribeIntegrationRolesResponse,
261
266
  CreateBatchSignUrlRequest,
262
- CreateFlowRemindsRequest,
267
+ CreateExtendedServiceAuthInfosRequest,
268
+ VerifyDigitFileRequest,
263
269
  UpdateIntegrationEmployeesRequest,
264
270
  FlowGroupApprovers,
265
271
  DescribeFlowBriefsRequest,
@@ -279,6 +285,7 @@ import {
279
285
  DescribeFlowTemplatesResponse,
280
286
  DescribeBatchOrganizationRegistrationUrlsResponse,
281
287
  UploadFilesRequest,
288
+ DescribeOrganizationSealsRequest,
282
289
  DescribePersonCertificateRequest,
283
290
  RelieveInfo,
284
291
  UserFlowType,
@@ -618,6 +625,16 @@ export class Client extends TencentCloudCommon.AbstractClient {
618
625
  return this.request("CreateFlowGroupByTemplates", req, cb)
619
626
  }
620
627
 
628
+ /**
629
+ * 对加签后的文件进行数字签名验证,判断数字签名是否有效。
630
+ */
631
+ async VerifyDigitFile(
632
+ req: VerifyDigitFileRequest,
633
+ cb?: (error: string, rep: VerifyDigitFileResponse) => void
634
+ ): Promise<VerifyDigitFileResponse> {
635
+ return this.request("VerifyDigitFile", req, cb)
636
+ }
637
+
621
638
  /**
622
639
  * 创建一个用于他方自动签授权的链接(可选择他方授权或我方授权)。通过这个链接,合作方企业可以直接进入小程序,进行自动签授权操作。
623
640
 
@@ -2004,6 +2021,18 @@ httpProfile.setEndpoint("file.test.ess.tencent.cn");
2004
2021
  return this.request("DescribeFlowEvidenceReport", req, cb)
2005
2022
  }
2006
2023
 
2024
+ /**
2025
+ * 文件CA加签任务结果查询接口,用于查询 CreateFileCounterSign接口 发起的异步加签任务。
2026
+
2027
+ 注意:`此接口为『数字文件CA加签服务』白名单功能,使用前请联系对接的客户经理沟通。`
2028
+ */
2029
+ async DescribeFileCounterSignResult(
2030
+ req: DescribeFileCounterSignResultRequest,
2031
+ cb?: (error: string, rep: DescribeFileCounterSignResultResponse) => void
2032
+ ): Promise<DescribeFileCounterSignResultResponse> {
2033
+ return this.request("DescribeFileCounterSignResult", req, cb)
2034
+ }
2035
+
2007
2036
  /**
2008
2037
  * 此接口(GetTaskResultApi)用来查询转换任务的状态。如需发起转换任务,请使用<a href="https://qian.tencent.com/developers/companyApis/templatesAndFiles/CreateConvertTaskApi" target="_blank">创建文件转换任务接口</a>进行资源文件的转换操作<br />
2009
2038
  前提条件:已调用 <a href="https://qian.tencent.com/developers/companyApis/templatesAndFiles/CreateConvertTaskApi" target="_blank">创建文件转换任务接口</a>进行文件转换,并得到了返回的转换任务Id。<br />
@@ -2119,6 +2148,18 @@ httpProfile.setEndpoint("file.test.ess.tencent.cn");
2119
2148
  return this.request("DescribeThirdPartyAuthCode", req, cb)
2120
2149
  }
2121
2150
 
2151
+ /**
2152
+ * 此接口用于发起数字文件CA加签操作。可以使用同步或者异步模式进行。
2153
+
2154
+ **注意: 1. 文件类型暂时仅支持PDF类型文件。2. 此接口为『数字文件CA加签服务』白名单功能,使用前请联系对接的客户经理沟通。**
2155
+ */
2156
+ async CreateFileCounterSign(
2157
+ req: CreateFileCounterSignRequest,
2158
+ cb?: (error: string, rep: CreateFileCounterSignResponse) => void
2159
+ ): Promise<CreateFileCounterSignResponse> {
2160
+ return this.request("CreateFileCounterSign", req, cb)
2161
+ }
2162
+
2122
2163
  /**
2123
2164
  * 查询企业印章列表。
2124
2165