tencentcloud-sdk-nodejs 4.0.1023 → 4.0.1025
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 +3 -3
- package/package.json +1 -1
- package/src/common/sdk_version.ts +1 -1
- package/src/services/cdb/v20170320/cdb_client.ts +4 -2
- package/src/services/cdwdoris/v20211228/cdwdoris_models.ts +0 -1
- package/src/services/lke/v20231130/lke_models.ts +12 -0
- package/src/services/lkeap/v20240522/lkeap_client.ts +101 -5
- package/src/services/lkeap/v20240522/lkeap_models.ts +109 -18
- package/src/services/mongodb/v20190725/mongodb_models.ts +6 -2
- package/src/services/ocr/v20181119/ocr_models.ts +2 -2
- package/src/services/ses/v20201002/ses_models.ts +13 -25
- package/src/services/tat/v20201028/tat_models.ts +7 -4
- package/src/services/tccatalog/v20241024/tccatalog_models.ts +14 -2
- package/src/services/trocket/v20230308/trocket_client.ts +12 -0
- package/src/services/trocket/v20230308/trocket_models.ts +37 -0
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/cdb/v20170320/cdb_client.d.ts +3 -1
- package/tencentcloud/services/cdb/v20170320/cdb_client.js +3 -1
- package/tencentcloud/services/cdwdoris/v20211228/cdwdoris_models.d.ts +0 -1
- package/tencentcloud/services/lke/v20231130/lke_models.d.ts +12 -0
- package/tencentcloud/services/lkeap/v20240522/lkeap_client.d.ts +95 -2
- package/tencentcloud/services/lkeap/v20240522/lkeap_client.js +94 -1
- package/tencentcloud/services/lkeap/v20240522/lkeap_models.d.ts +106 -18
- package/tencentcloud/services/mongodb/v20190725/mongodb_models.d.ts +6 -2
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +2 -2
- package/tencentcloud/services/ses/v20201002/ses_models.d.ts +13 -25
- package/tencentcloud/services/tat/v20201028/tat_models.d.ts +7 -4
- package/tencentcloud/services/tccatalog/v20241024/tccatalog_models.d.ts +14 -2
- package/tencentcloud/services/trocket/v20230308/trocket_client.d.ts +5 -1
- package/tencentcloud/services/trocket/v20230308/trocket_client.js +6 -0
- package/tencentcloud/services/trocket/v20230308/trocket_models.d.ts +35 -0
package/README.md
CHANGED
|
@@ -56,7 +56,7 @@ npm install tencentcloud-sdk-nodejs --save
|
|
|
56
56
|
1. 前往 [GitHub 仓库](https://github.com/tencentcloud/tencentcloud-sdk-nodejs) 或者 [Gitee 仓库](https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs) 下载源码压缩包。
|
|
57
57
|
2. 解压源码包到您项目合适的位置,例如 `sdk/tencentcloud-sdk-nodejs`。
|
|
58
58
|
3. 执行 `npm install ./sdk/tencentcloud-sdk-nodejs`。
|
|
59
|
-
4. 使用 `require("tencentcloud-sdk-nodejs")` 的方式引入
|
|
59
|
+
4. 使用 `require("tencentcloud-sdk-nodejs")` 的方式引入SDK,具体可参考示例。
|
|
60
60
|
|
|
61
61
|
# 示例
|
|
62
62
|
|
|
@@ -154,9 +154,9 @@ new XxxClient({
|
|
|
154
154
|
# 常见问题
|
|
155
155
|
- webpack打包出错/浏览器报错
|
|
156
156
|
|
|
157
|
-
请**务必不要**将此
|
|
157
|
+
请**务必不要**将此SDK直接用于web前端(包括小程序等),暴露密钥在这些环境非常不安全。
|
|
158
158
|
|
|
159
|
-
正确的做法是在自己的服务端引用此
|
|
159
|
+
正确的做法是在自己的服务端引用此SDK,并保存好密钥,做好请求鉴权;前端再调用服务端执行业务流程。
|
|
160
160
|
|
|
161
161
|
- `The "original" argument must be of type Function.`
|
|
162
162
|
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const sdkVersion = "4.0.
|
|
1
|
+
export const sdkVersion = "4.0.1025"
|
|
@@ -1767,8 +1767,10 @@ export class Client extends AbstractClient {
|
|
|
1767
1767
|
}
|
|
1768
1768
|
|
|
1769
1769
|
/**
|
|
1770
|
-
|
|
1771
|
-
|
|
1770
|
+
* DescribeCpuExpandStrategy
|
|
1771
|
+
|
|
1772
|
+
通过该 API 可以查询实例的 CPU 弹性扩容策略
|
|
1773
|
+
*/
|
|
1772
1774
|
async DescribeCpuExpandStrategy(
|
|
1773
1775
|
req: DescribeCpuExpandStrategyRequest,
|
|
1774
1776
|
cb?: (error: string, rep: DescribeCpuExpandStrategyResponse) => void
|
|
@@ -5352,6 +5352,18 @@ export interface ModelInfo {
|
|
|
5352
5352
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
5353
5353
|
*/
|
|
5354
5354
|
MaxTokens?: ModelParameter
|
|
5355
|
+
/**
|
|
5356
|
+
* 模型来源 Hunyuan:腾讯混元大模型,Industry:腾讯云行业大模型,Experience:新模型体验
|
|
5357
|
+
*/
|
|
5358
|
+
Source?: string
|
|
5359
|
+
/**
|
|
5360
|
+
* 模型图标
|
|
5361
|
+
*/
|
|
5362
|
+
Icon?: string
|
|
5363
|
+
/**
|
|
5364
|
+
* 是否免费
|
|
5365
|
+
*/
|
|
5366
|
+
IsFree?: boolean
|
|
5355
5367
|
}
|
|
5356
5368
|
|
|
5357
5369
|
/**
|
|
@@ -43,16 +43,19 @@ import {
|
|
|
43
43
|
SegmentationConfig,
|
|
44
44
|
CreateQAResponse,
|
|
45
45
|
ModifyAttributeLabelRequest,
|
|
46
|
+
GetReconstructDocumentResultResponse,
|
|
46
47
|
ReconstructDocumentSSEConfig,
|
|
47
48
|
ListDocsResponse,
|
|
48
49
|
DocumentUsage,
|
|
49
50
|
ListAttributeLabelsRequest,
|
|
50
51
|
DeleteAttributeLabelsRequest,
|
|
51
52
|
RetrieveKnowledgeRequest,
|
|
52
|
-
|
|
53
|
+
Choice,
|
|
53
54
|
CreateReconstructDocumentFlowConfig,
|
|
54
55
|
RunRerankRequest,
|
|
56
|
+
ChatUsage,
|
|
55
57
|
GetSplitDocumentResultRequest,
|
|
58
|
+
Delta,
|
|
56
59
|
ReconstructDocumentSSERequest,
|
|
57
60
|
ListAttributeLabelsResponse,
|
|
58
61
|
RetrievalRecord,
|
|
@@ -80,14 +83,14 @@ import {
|
|
|
80
83
|
CreateSplitDocumentFlowConfig,
|
|
81
84
|
RunRerankResponse,
|
|
82
85
|
CreateReconstructDocumentFlowResponse,
|
|
83
|
-
|
|
86
|
+
DeleteKnowledgeBaseRequest,
|
|
84
87
|
CreateQARequest,
|
|
85
88
|
UploadDocResponse,
|
|
86
89
|
AttributeItem,
|
|
87
90
|
EmbeddingObject,
|
|
88
91
|
Message,
|
|
89
92
|
CreateKnowledgeBaseRequest,
|
|
90
|
-
|
|
93
|
+
ChatCompletionsResponse,
|
|
91
94
|
DeleteDocsRequest,
|
|
92
95
|
} from "./lkeap_models"
|
|
93
96
|
|
|
@@ -357,8 +360,101 @@ export class Client extends AbstractClient {
|
|
|
357
360
|
}
|
|
358
361
|
|
|
359
362
|
/**
|
|
360
|
-
|
|
361
|
-
|
|
363
|
+
* #### 接口功能
|
|
364
|
+
|
|
365
|
+
调用接口,发起一次对话请求。
|
|
366
|
+
|
|
367
|
+
#### 已支持的模型
|
|
368
|
+
- DeepSeek-V3(model 参数值为**deepseek-v3**)
|
|
369
|
+
- DeepSeek-V3为671B参数MoE模型,在百科知识、数学推理等多项任务上优势突出,评测成绩在主流榜单中位列开源模型榜首。
|
|
370
|
+
- 支持64K上下文长度,最大支持8K输出长度。
|
|
371
|
+
- DeepSeek-R1(model 参数值为**deepseek-r1**)
|
|
372
|
+
- DeepSeek-R1为671B模型,使用强化学习训练,推理过程包含大量反思和验证,思维链长度可达数万字。 该系列模型在数学、代码以及各种复杂逻辑推理任务上推理效果优异,并为用户展现了完整的思考过程。
|
|
373
|
+
- 支持64K上下文长度,最大支持8K输出长度。
|
|
374
|
+
|
|
375
|
+
#### 计费说明
|
|
376
|
+
- 限时免费
|
|
377
|
+
|
|
378
|
+
本接口调用DeepSeek系列模型限时免费。即日至北京时间2025年2月25日23:59:59,所有腾讯云用户均可享受DeepSeek-V3、DeepSeek-R1模型限时免费服务,单账号限制接口并发上限为5。在此之后,模型价格将恢复至原价。
|
|
379
|
+
- 标准计费(2025年2月26日起生效)
|
|
380
|
+

|
|
381
|
+
|
|
382
|
+
### Openai兼容协议接口
|
|
383
|
+
知识引擎原子能力大模型对话 API 兼容了 OpenAI 的接口规范,这意味着您可以直接使用 OpenAI 官方提供的 SDK 来调用大模型对话接口。您仅需要将 base_url 和 [api_key](https://cloud.tencent.com/document/product/1772/115970) 替换成相关配置,不需要对应用做额外修改,即可无缝将您的应用切换到相应的大模型。
|
|
384
|
+
> base_url: https://api.lkeap.cloud.tencent.com/v1
|
|
385
|
+
|
|
386
|
+
> api_key的获取请参考[API KEY管理](https://cloud.tencent.com/document/product/1772/115970)
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
#### 快速接入
|
|
390
|
+
1. 完成[实名认证](https://console.cloud.tencent.com/developer/auth)。
|
|
391
|
+
2. 主账户前往[控制台](https://console.cloud.tencent.com/lkeap)开通服务。若为子账户,需由主账号在[权限管理](https://console.cloud.tencent.com/cam)中为子账号授权,关联预设策略,策略名称:QcloudLKEAPFullAccess。
|
|
392
|
+
3. 通过API Explorer[在线调试](https://console.cloud.tencent.com/api/explorer?Product=lkeap&Version=2024-05-22&Action=ChatCompletions)。
|
|
393
|
+
4. 使用[官方 SDK ](https://cloud.tencent.com/document/product/1772/115963#SDK)调用本接口(支持Python/Java/PHP/Go/Node.js/.NET等语言)。
|
|
394
|
+
|
|
395
|
+
-----------
|
|
396
|
+
|
|
397
|
+
### SDK调用示例
|
|
398
|
+
通过本地代码调用本接口(支持Python/Java/PHP/Go/Node.js/.NET等语言):下面的代码以 Python 语言为例,展示如何访问腾讯云上的DeepSeek模型API的样例。
|
|
399
|
+
(1)安装环境
|
|
400
|
+
```
|
|
401
|
+
python3 -m pip install --upgrade tencentcloud-sdk-python-common
|
|
402
|
+
python3 -m pip install --upgrade tencentcloud-sdk-python-lkeap
|
|
403
|
+
```
|
|
404
|
+
|
|
405
|
+
(2)示例代码
|
|
406
|
+
|
|
407
|
+
- 其中SecretKey和SecretID需要从腾讯云控制台获取
|
|
408
|
+
|
|
409
|
+
- 参数params中模型Model字段可以选择“deepseek-r1“和“deepseek-v3”
|
|
410
|
+
|
|
411
|
+
```
|
|
412
|
+
# -*- coding: utf-8 -*-
|
|
413
|
+
import json
|
|
414
|
+
|
|
415
|
+
from tencentcloud.common.common_client import CommonClient
|
|
416
|
+
from tencentcloud.common import credential
|
|
417
|
+
from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
|
|
418
|
+
from tencentcloud.common.profile.client_profile import ClientProfile
|
|
419
|
+
from tencentcloud.common.profile.http_profile import HttpProfile
|
|
420
|
+
|
|
421
|
+
class NonStreamResponse(object):
|
|
422
|
+
def __init__(self):
|
|
423
|
+
self.response = ""
|
|
424
|
+
|
|
425
|
+
def _deserialize(self, obj):
|
|
426
|
+
self.response = json.dumps(obj)
|
|
427
|
+
|
|
428
|
+
try:
|
|
429
|
+
# 实例化一个认证对象,入参需要传入腾讯云账户 SecretId 和 SecretKey,此处还需注意密钥对的保密
|
|
430
|
+
# 代码泄露可能会导致 SecretId 和 SecretKey 泄露,并威胁账号下所有资源的安全性。以下代码示例仅供参考,建议采用更安全的方式来使用密钥,请参见:https://cloud.tencent.com/document/product/1278/85305
|
|
431
|
+
# 密钥可前往官网控制台 https://console.cloud.tencent.com/cam/capi 进行获取
|
|
432
|
+
cred = credential.Credential("", "")
|
|
433
|
+
|
|
434
|
+
httpProfile = HttpProfile()
|
|
435
|
+
httpProfile.endpoint = "lkeap.tencentcloudapi.com"
|
|
436
|
+
httpProfile.reqTimeout = 40000 # 流式接口可能耗时较长
|
|
437
|
+
clientProfile = ClientProfile()
|
|
438
|
+
clientProfile.httpProfile = httpProfile
|
|
439
|
+
|
|
440
|
+
params = "{\"Model\":\"deepseek-r1\",\"Messages\":[{\"Role\":\"user\",\"Content\":\"你好\"}],\"Stream\":true}";
|
|
441
|
+
common_client = CommonClient("lkeap", "2024-05-22", cred, "ap-guangzhou", profile=clientProfile)
|
|
442
|
+
resp = common_client._call_and_deserialize("ChatCompletions", json.loads(params), NonStreamResponse)
|
|
443
|
+
if isinstance(resp, NonStreamResponse): # 非流式响应
|
|
444
|
+
print(resp.response)
|
|
445
|
+
else: # 流式响应
|
|
446
|
+
for event in resp:
|
|
447
|
+
print(event)
|
|
448
|
+
except TencentCloudSDKException as err:
|
|
449
|
+
print(err)
|
|
450
|
+
|
|
451
|
+
```
|
|
452
|
+
|
|
453
|
+
**DeepSeek-R1使用建议**
|
|
454
|
+
|
|
455
|
+
1. 将温度设置在 0.5-0.7 范围内(建议为0.6),以防止无休止的重复或不连贯的输出。
|
|
456
|
+
2. 避免添加system prompt,所有说明都应包含在user prompt中。
|
|
457
|
+
*/
|
|
362
458
|
async ChatCompletions(
|
|
363
459
|
req: ChatCompletionsRequest,
|
|
364
460
|
cb?: (error: string, rep: ChatCompletionsResponse) => void
|
|
@@ -31,6 +31,14 @@ export interface ChatCompletionsRequest {
|
|
|
31
31
|
* 是否流式输出
|
|
32
32
|
*/
|
|
33
33
|
Stream?: boolean
|
|
34
|
+
/**
|
|
35
|
+
* 控制生成的随机性,较高的值会产生更多样化的输出。
|
|
36
|
+
*/
|
|
37
|
+
Temperature?: number
|
|
38
|
+
/**
|
|
39
|
+
* 最大生成的token数量
|
|
40
|
+
*/
|
|
41
|
+
MaxTokens?: number
|
|
34
42
|
}
|
|
35
43
|
|
|
36
44
|
/**
|
|
@@ -416,6 +424,28 @@ export interface ModifyAttributeLabelRequest {
|
|
|
416
424
|
Labels?: Array<AttributeLabelItem>
|
|
417
425
|
}
|
|
418
426
|
|
|
427
|
+
/**
|
|
428
|
+
* GetReconstructDocumentResult返回参数结构体
|
|
429
|
+
*/
|
|
430
|
+
export interface GetReconstructDocumentResultResponse {
|
|
431
|
+
/**
|
|
432
|
+
* 任务状态。- `Success`:执行完成- `Processing`:执行中- `Pause`: 暂停- `Failed`:执行失败- `WaitExecute`:等待执行
|
|
433
|
+
*/
|
|
434
|
+
Status?: string
|
|
435
|
+
/**
|
|
436
|
+
* 解析结果的临时下载地址。文件类型为zip压缩包,下载链接有效期30分钟
|
|
437
|
+
*/
|
|
438
|
+
DocumentRecognizeResultUrl?: string
|
|
439
|
+
/**
|
|
440
|
+
* 文档解析失败的页码
|
|
441
|
+
*/
|
|
442
|
+
FailedPages?: Array<ReconstructDocumentFailedPage>
|
|
443
|
+
/**
|
|
444
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
445
|
+
*/
|
|
446
|
+
RequestId?: string
|
|
447
|
+
}
|
|
448
|
+
|
|
419
449
|
/**
|
|
420
450
|
* ReconstructDocumentSSE 功能配置参数
|
|
421
451
|
*/
|
|
@@ -517,25 +547,28 @@ export interface RetrieveKnowledgeRequest {
|
|
|
517
547
|
}
|
|
518
548
|
|
|
519
549
|
/**
|
|
520
|
-
*
|
|
550
|
+
* 返回的回复, 支持多个
|
|
521
551
|
*/
|
|
522
|
-
export interface
|
|
552
|
+
export interface Choice {
|
|
523
553
|
/**
|
|
524
|
-
*
|
|
554
|
+
* 结束标志位,可能为 stop、 sensitive或者tool_calls。
|
|
555
|
+
stop 表示输出正常结束。
|
|
556
|
+
sensitive 只在开启流式输出审核时会出现,表示安全审核未通过。
|
|
557
|
+
tool_calls 标识函数调用。
|
|
525
558
|
*/
|
|
526
|
-
|
|
559
|
+
FinishReason?: string
|
|
527
560
|
/**
|
|
528
|
-
*
|
|
561
|
+
* 增量返回值,流式调用时使用该字段。
|
|
529
562
|
*/
|
|
530
|
-
|
|
563
|
+
Delta?: Delta
|
|
531
564
|
/**
|
|
532
|
-
*
|
|
565
|
+
* 返回值,非流式调用时使用该字段。
|
|
533
566
|
*/
|
|
534
|
-
|
|
567
|
+
Message?: Message
|
|
535
568
|
/**
|
|
536
|
-
*
|
|
569
|
+
* 索引值,流式调用时使用该字段。
|
|
537
570
|
*/
|
|
538
|
-
|
|
571
|
+
Index?: number
|
|
539
572
|
}
|
|
540
573
|
|
|
541
574
|
/**
|
|
@@ -581,6 +614,24 @@ export interface RunRerankRequest {
|
|
|
581
614
|
Model?: string
|
|
582
615
|
}
|
|
583
616
|
|
|
617
|
+
/**
|
|
618
|
+
* 消耗量
|
|
619
|
+
*/
|
|
620
|
+
export interface ChatUsage {
|
|
621
|
+
/**
|
|
622
|
+
* 输入token数
|
|
623
|
+
*/
|
|
624
|
+
PromptTokens?: number
|
|
625
|
+
/**
|
|
626
|
+
* 输出token数
|
|
627
|
+
*/
|
|
628
|
+
CompletionTokens?: number
|
|
629
|
+
/**
|
|
630
|
+
* 总token数
|
|
631
|
+
*/
|
|
632
|
+
TotalTokens?: number
|
|
633
|
+
}
|
|
634
|
+
|
|
584
635
|
/**
|
|
585
636
|
* GetSplitDocumentResult请求参数结构体
|
|
586
637
|
*/
|
|
@@ -591,6 +642,20 @@ export interface GetSplitDocumentResultRequest {
|
|
|
591
642
|
TaskId: string
|
|
592
643
|
}
|
|
593
644
|
|
|
645
|
+
/**
|
|
646
|
+
* 返回的内容
|
|
647
|
+
*/
|
|
648
|
+
export interface Delta {
|
|
649
|
+
/**
|
|
650
|
+
* 角色名称。
|
|
651
|
+
*/
|
|
652
|
+
Role?: string
|
|
653
|
+
/**
|
|
654
|
+
* 内容详情。
|
|
655
|
+
*/
|
|
656
|
+
Content?: string
|
|
657
|
+
}
|
|
658
|
+
|
|
594
659
|
/**
|
|
595
660
|
* ReconstructDocumentSSE请求参数结构体
|
|
596
661
|
*/
|
|
@@ -1103,13 +1168,13 @@ export interface CreateReconstructDocumentFlowResponse {
|
|
|
1103
1168
|
}
|
|
1104
1169
|
|
|
1105
1170
|
/**
|
|
1106
|
-
*
|
|
1171
|
+
* DeleteKnowledgeBase请求参数结构体
|
|
1107
1172
|
*/
|
|
1108
|
-
export interface
|
|
1173
|
+
export interface DeleteKnowledgeBaseRequest {
|
|
1109
1174
|
/**
|
|
1110
|
-
*
|
|
1175
|
+
* 知识库ID
|
|
1111
1176
|
*/
|
|
1112
|
-
|
|
1177
|
+
KnowledgeBaseId: string
|
|
1113
1178
|
}
|
|
1114
1179
|
|
|
1115
1180
|
/**
|
|
@@ -1184,6 +1249,11 @@ export interface Message {
|
|
|
1184
1249
|
* 内容
|
|
1185
1250
|
*/
|
|
1186
1251
|
Content?: string
|
|
1252
|
+
/**
|
|
1253
|
+
* 思维链内容。
|
|
1254
|
+
ReasoningConent参数仅支持出参,且只有deepseek-r1模型会返回。
|
|
1255
|
+
*/
|
|
1256
|
+
ReasoningContent?: string
|
|
1187
1257
|
}
|
|
1188
1258
|
|
|
1189
1259
|
/**
|
|
@@ -1192,13 +1262,34 @@ export interface Message {
|
|
|
1192
1262
|
export type CreateKnowledgeBaseRequest = null
|
|
1193
1263
|
|
|
1194
1264
|
/**
|
|
1195
|
-
*
|
|
1265
|
+
* ChatCompletions返回参数结构体
|
|
1196
1266
|
*/
|
|
1197
|
-
export interface
|
|
1267
|
+
export interface ChatCompletionsResponse {
|
|
1198
1268
|
/**
|
|
1199
|
-
*
|
|
1269
|
+
* Unix 时间戳,单位为秒。
|
|
1200
1270
|
*/
|
|
1201
|
-
|
|
1271
|
+
Created?: number
|
|
1272
|
+
/**
|
|
1273
|
+
* Token 统计信息。
|
|
1274
|
+
按照总 Token 数量计费。
|
|
1275
|
+
*/
|
|
1276
|
+
Usage?: ChatUsage
|
|
1277
|
+
/**
|
|
1278
|
+
* 本次请求的 RequestId。
|
|
1279
|
+
*/
|
|
1280
|
+
Id?: string
|
|
1281
|
+
/**
|
|
1282
|
+
* 回复内容。
|
|
1283
|
+
*/
|
|
1284
|
+
Choices?: Array<Choice>
|
|
1285
|
+
/**
|
|
1286
|
+
* 模型名称。
|
|
1287
|
+
*/
|
|
1288
|
+
Model?: string
|
|
1289
|
+
/**
|
|
1290
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
|
|
1291
|
+
*/
|
|
1292
|
+
RequestId?: string
|
|
1202
1293
|
}
|
|
1203
1294
|
|
|
1204
1295
|
/**
|
|
@@ -99,7 +99,11 @@ export interface CreateDBInstanceRequest {
|
|
|
99
99
|
*/
|
|
100
100
|
SubnetId?: string
|
|
101
101
|
/**
|
|
102
|
-
*
|
|
102
|
+
* 实例密码。设置要求如下:
|
|
103
|
+
- 字符个数为[8,32]。
|
|
104
|
+
- 可输入[A,Z]、[a,z]、[0,9]范围内的字符。
|
|
105
|
+
- 可输入的特殊字符包括:感叹号“!”,at“@”,警号“#“、百分号”%”、插入号“^”、星号“*”、括号“()”、下划线“_”。
|
|
106
|
+
- 不能设置单一的字母或者数字。
|
|
103
107
|
*/
|
|
104
108
|
Password?: string
|
|
105
109
|
/**
|
|
@@ -276,7 +280,7 @@ export interface KillOpsRequest {
|
|
|
276
280
|
*/
|
|
277
281
|
export interface InquirePriceRenewDBInstancesRequest {
|
|
278
282
|
/**
|
|
279
|
-
* 实例ID,格式如:cmgo-p8vn
|
|
283
|
+
* 实例ID,格式如:cmgo-p8vn****。请登录[MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID,且单次最多同时查询5个实例。
|
|
280
284
|
*/
|
|
281
285
|
InstanceIds: Array<string>
|
|
282
286
|
/**
|
|
@@ -2826,7 +2826,7 @@ export interface RideHailingDriverLicenseOCRRequest {
|
|
|
2826
2826
|
*/
|
|
2827
2827
|
ImageBase64?: string
|
|
2828
2828
|
/**
|
|
2829
|
-
* 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500
|
|
2829
|
+
* 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500\*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。
|
|
2830
2830
|
建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
|
2831
2831
|
*/
|
|
2832
2832
|
ImageUrl?: string
|
|
@@ -10793,7 +10793,7 @@ export interface RideHailingTransportLicenseOCRRequest {
|
|
|
10793
10793
|
*/
|
|
10794
10794
|
ImageBase64?: string
|
|
10795
10795
|
/**
|
|
10796
|
-
* 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500
|
|
10796
|
+
* 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500\*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。
|
|
10797
10797
|
建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
|
10798
10798
|
*/
|
|
10799
10799
|
ImageUrl?: string
|
|
@@ -319,23 +319,23 @@ export interface TemplatesMetadata {
|
|
|
319
319
|
/**
|
|
320
320
|
* 创建时间
|
|
321
321
|
*/
|
|
322
|
-
CreatedTimestamp
|
|
322
|
+
CreatedTimestamp?: number
|
|
323
323
|
/**
|
|
324
324
|
* 模板名称
|
|
325
325
|
*/
|
|
326
|
-
TemplateName
|
|
326
|
+
TemplateName?: string
|
|
327
327
|
/**
|
|
328
328
|
* 模板状态。1-审核中|0-已通过|2-拒绝|其它-不可用
|
|
329
329
|
*/
|
|
330
|
-
TemplateStatus
|
|
330
|
+
TemplateStatus?: number
|
|
331
331
|
/**
|
|
332
332
|
* 模板ID
|
|
333
333
|
*/
|
|
334
|
-
TemplateID
|
|
334
|
+
TemplateID?: number
|
|
335
335
|
/**
|
|
336
336
|
* 审核原因
|
|
337
337
|
*/
|
|
338
|
-
ReviewReason
|
|
338
|
+
ReviewReason?: string
|
|
339
339
|
}
|
|
340
340
|
|
|
341
341
|
/**
|
|
@@ -356,17 +356,14 @@ export interface ReceiverDetail {
|
|
|
356
356
|
TemplateData?: string
|
|
357
357
|
/**
|
|
358
358
|
* 无效原因
|
|
359
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
360
359
|
*/
|
|
361
360
|
Reason?: string
|
|
362
361
|
/**
|
|
363
362
|
* 1:有效,2:无效
|
|
364
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
365
363
|
*/
|
|
366
364
|
Status?: number
|
|
367
365
|
/**
|
|
368
366
|
* 收件人地址id
|
|
369
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
370
367
|
*/
|
|
371
368
|
EmailId?: number
|
|
372
369
|
}
|
|
@@ -435,36 +432,36 @@ export interface Volume {
|
|
|
435
432
|
* 日期
|
|
436
433
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
437
434
|
*/
|
|
438
|
-
SendDate
|
|
435
|
+
SendDate?: string
|
|
439
436
|
/**
|
|
440
437
|
* 邮件请求数量
|
|
441
438
|
*/
|
|
442
|
-
RequestCount
|
|
439
|
+
RequestCount?: number
|
|
443
440
|
/**
|
|
444
441
|
* 腾讯云通过数量
|
|
445
442
|
*/
|
|
446
|
-
AcceptedCount
|
|
443
|
+
AcceptedCount?: number
|
|
447
444
|
/**
|
|
448
445
|
* 送达数量
|
|
449
446
|
*/
|
|
450
|
-
DeliveredCount
|
|
447
|
+
DeliveredCount?: number
|
|
451
448
|
/**
|
|
452
449
|
* 打开邮件的用户数量,根据收件人去重
|
|
453
450
|
*/
|
|
454
|
-
OpenedCount
|
|
451
|
+
OpenedCount?: number
|
|
455
452
|
/**
|
|
456
453
|
* 点击了邮件中的链接数量用户数量
|
|
457
454
|
*/
|
|
458
|
-
ClickedCount
|
|
455
|
+
ClickedCount?: number
|
|
459
456
|
/**
|
|
460
457
|
* 退信数量
|
|
461
458
|
*/
|
|
462
|
-
BounceCount
|
|
459
|
+
BounceCount?: number
|
|
463
460
|
/**
|
|
464
461
|
* 取消订阅的用户数量
|
|
465
462
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
466
463
|
*/
|
|
467
|
-
UnsubscribeCount
|
|
464
|
+
UnsubscribeCount?: number
|
|
468
465
|
}
|
|
469
466
|
|
|
470
467
|
/**
|
|
@@ -755,12 +752,10 @@ export interface ReceiverData {
|
|
|
755
752
|
Count?: number
|
|
756
753
|
/**
|
|
757
754
|
* 收件人列表描述
|
|
758
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
759
755
|
*/
|
|
760
756
|
Desc?: string
|
|
761
757
|
/**
|
|
762
758
|
* 列表状态(1 待上传 2 上传中 3 上传完成)
|
|
763
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
764
759
|
*/
|
|
765
760
|
ReceiversStatus?: number
|
|
766
761
|
/**
|
|
@@ -769,7 +764,6 @@ export interface ReceiverData {
|
|
|
769
764
|
CreateTime?: string
|
|
770
765
|
/**
|
|
771
766
|
* 无效收件人数量
|
|
772
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
773
767
|
*/
|
|
774
768
|
InvalidCount?: number
|
|
775
769
|
}
|
|
@@ -969,27 +963,22 @@ export interface ListEmailTemplatesRequest {
|
|
|
969
963
|
export interface CreateReceiverDetailWithDataResponse {
|
|
970
964
|
/**
|
|
971
965
|
* 收件人总数
|
|
972
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
973
966
|
*/
|
|
974
967
|
TotalCount?: number
|
|
975
968
|
/**
|
|
976
969
|
* 实际上传数量
|
|
977
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
978
970
|
*/
|
|
979
971
|
ValidCount?: number
|
|
980
972
|
/**
|
|
981
973
|
* 数据过长数量
|
|
982
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
983
974
|
*/
|
|
984
975
|
TooLongCount?: number
|
|
985
976
|
/**
|
|
986
977
|
* 邮件地址为空数量
|
|
987
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
988
978
|
*/
|
|
989
979
|
EmptyEmailCount?: number
|
|
990
980
|
/**
|
|
991
981
|
* 重复数量
|
|
992
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
993
982
|
*/
|
|
994
983
|
RepeatCount?: number
|
|
995
984
|
/**
|
|
@@ -1353,7 +1342,6 @@ export interface BlackEmailAddress {
|
|
|
1353
1342
|
EmailAddress?: string
|
|
1354
1343
|
/**
|
|
1355
1344
|
* 被拉黑的理由
|
|
1356
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
1357
1345
|
*/
|
|
1358
1346
|
IspDesc?: string
|
|
1359
1347
|
}
|
|
@@ -892,19 +892,22 @@ export interface DescribeCommandsResponse {
|
|
|
892
892
|
*/
|
|
893
893
|
export interface CreateRegisterCodeRequest {
|
|
894
894
|
/**
|
|
895
|
-
*
|
|
895
|
+
* 注册码描述。最大长度为 128 字符。
|
|
896
896
|
*/
|
|
897
897
|
Description?: string
|
|
898
898
|
/**
|
|
899
|
-
*
|
|
899
|
+
* 注册实例名称前缀。最大长度为 32 字符。
|
|
900
900
|
*/
|
|
901
901
|
InstanceNamePrefix?: string
|
|
902
902
|
/**
|
|
903
|
-
*
|
|
903
|
+
* 该注册码允许注册的实例数目。默认值为 10,最小值为 1,最大值为 10000。
|
|
904
904
|
*/
|
|
905
905
|
RegisterLimit?: number
|
|
906
906
|
/**
|
|
907
|
-
*
|
|
907
|
+
* 该注册码的有效时间,单位为小时。默认值为 4。
|
|
908
|
+
|
|
909
|
+
- 若传入值小于等于 99999,则以小时为单位设置有效时间。
|
|
910
|
+
- 若传入值大于 99999,则设置为长期有效。
|
|
908
911
|
*/
|
|
909
912
|
EffectiveTime?: number
|
|
910
913
|
/**
|
|
@@ -128,7 +128,7 @@ export interface TccCatalogConfig {
|
|
|
128
128
|
*/
|
|
129
129
|
export interface TccConnection {
|
|
130
130
|
/**
|
|
131
|
-
*
|
|
131
|
+
* 引擎终端节点服务Id
|
|
132
132
|
*/
|
|
133
133
|
EndpointServiceId?: string
|
|
134
134
|
/**
|
|
@@ -136,9 +136,21 @@ export interface TccConnection {
|
|
|
136
136
|
*/
|
|
137
137
|
MetaStoreUrl?: string
|
|
138
138
|
/**
|
|
139
|
-
*
|
|
139
|
+
* 网络信息
|
|
140
140
|
*/
|
|
141
141
|
NetWork?: NetWork
|
|
142
|
+
/**
|
|
143
|
+
* hive版本
|
|
144
|
+
*/
|
|
145
|
+
HiveVersion?: string
|
|
146
|
+
/**
|
|
147
|
+
* hive location
|
|
148
|
+
*/
|
|
149
|
+
Location?: string
|
|
150
|
+
/**
|
|
151
|
+
* HMS终端节点服务
|
|
152
|
+
*/
|
|
153
|
+
HmsEndpointServiceId?: string
|
|
142
154
|
}
|
|
143
155
|
|
|
144
156
|
/**
|