tencentcloud-sdk-nodejs-tcb 4.1.300 → 4.1.301
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tencentcloud-sdk-nodejs-tcb",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.301",
|
|
4
4
|
"description": "腾讯云 API NODEJS SDK",
|
|
5
5
|
"main": "./tencentcloud/index.js",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -49,7 +49,6 @@
|
|
|
49
49
|
"@types/json-bigint": "^1.0.1",
|
|
50
50
|
"@types/node": "^18.0.0",
|
|
51
51
|
"@types/node-fetch": "^2.5.7",
|
|
52
|
-
"@types/uuid": "^9.0.8",
|
|
53
52
|
"@typescript-eslint/eslint-plugin": "^2.34.0",
|
|
54
53
|
"@typescript-eslint/parser": "^2.34.0",
|
|
55
54
|
"babel-eslint": "^10.0.2",
|
|
@@ -552,6 +552,11 @@ export interface SMSProviderTemplateConfig {
|
|
|
552
552
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
553
553
|
*/
|
|
554
554
|
SignName?: string;
|
|
555
|
+
/**
|
|
556
|
+
* <p>凭证获取方式,不传默认为 SMS_AUTH_SECRET_KEY。</p><p>枚举值:</p><ul><li>SMS_AUTH_SECRET_KEY: 密钥授权,适用于跨账号腾讯云短信 / 其它厂商短信,AK/SK 加密托管至云开发平台控制台—扩展功能—授权管理</li><li>SMS_AUTH_ASSUME_ROLE: 策略授权(角色扮演),适用于同账号腾讯云短信,需预先将短信预设策略 QcloudSMSFullAccess 授权给云开发服务角色,平台以临时凭证代发,不保存任何长期密钥。选择该方式时 SecretId / SecretKey / CredentialAuthKeyId 必须为空</li></ul><p>枚举值:</p><ul><li>SMS_AUTH_SECRET_KEY: 密钥授权,适用于跨账号腾讯云短信 / 其它厂商短信,AK/SK 加密托管至云开发平台控制台—扩展功能—授权管理</li><li>SMS_AUTH_ASSUME_ROLE: 策略授权(角色扮演),适用于同账号腾讯云短信,需预先将短信预设策略 QcloudSMSFullAccess 授权给云开发服务角色,平台以临时凭证代发,不保存任何长期密钥。选择该方式时 SecretId / SecretKey / CredentialAuthKeyId 必须为空</li></ul><p>默认值:SMS_AUTH_SECRET_KEY</p>
|
|
557
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
558
|
+
*/
|
|
559
|
+
AuthType?: string;
|
|
555
560
|
/**
|
|
556
561
|
* <p>调用短信服务商发送短信接口的调用秘钥对应的ID。</p><ul><li>调用api秘钥会保存在云开发平台控制台—扩展功能—授权管理中,如果对于短信调用的api秘钥有删除需求,可在此处进行删除,删除后,短信将无法正常发送。</li><li>腾讯云的调用api秘钥在腾讯云控制台获取,建议使用子账号的秘钥ID,并且按照最小权限配置。</li></ul>
|
|
557
562
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
@@ -572,6 +577,11 @@ export interface SMSProviderTemplateConfig {
|
|
|
572
577
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
573
578
|
*/
|
|
574
579
|
TemplateExtendParam?: Array<SMSTemplateParams>;
|
|
580
|
+
/**
|
|
581
|
+
* <p>授权管理中密钥的自定义标识(创建 / 引用二合一),与 SecretId / SecretKey 组合决定行为:</p><ul><li>非空 + 带 SecretId/SecretKey → 以该标识创建新密钥;标识已存在时报错(keyID already exists)</li><li>非空 + 不带 SecretId/SecretKey → 引用授权管理中已存在的密钥(需归属当前环境)</li><li>空 + 带 SecretId/SecretKey → 使用平台按服务商生成的固定标识,覆盖更新(存量兼容)</li><li>空 + 不带 SecretId/SecretKey → 不修改密钥,沿用既有配置</li></ul><p>AuthType 为 SMS_AUTH_ASSUME_ROLE 时此参数必须为空。</p>
|
|
582
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
583
|
+
*/
|
|
584
|
+
CredentialAuthKeyId?: string;
|
|
575
585
|
}
|
|
576
586
|
/**
|
|
577
587
|
* 服务版本信息
|
|
@@ -2890,17 +2900,21 @@ export interface DescribeResourcePermissionResult {
|
|
|
2890
2900
|
*/
|
|
2891
2901
|
export interface MgoKeySchema {
|
|
2892
2902
|
/**
|
|
2893
|
-
*
|
|
2903
|
+
* <p>索引字段</p>
|
|
2894
2904
|
*/
|
|
2895
2905
|
MgoIndexKeys?: Array<MgoIndexKeys>;
|
|
2896
2906
|
/**
|
|
2897
|
-
*
|
|
2907
|
+
* <p>是否唯一索引</p>
|
|
2898
2908
|
*/
|
|
2899
2909
|
MgoIsUnique?: boolean;
|
|
2900
2910
|
/**
|
|
2901
|
-
*
|
|
2911
|
+
* <p>是否稀疏索引</p>
|
|
2902
2912
|
*/
|
|
2903
2913
|
MgoIsSparse?: boolean;
|
|
2914
|
+
/**
|
|
2915
|
+
* <p>稀疏索引表达式</p>
|
|
2916
|
+
*/
|
|
2917
|
+
PartialFilterExpression?: string;
|
|
2904
2918
|
}
|
|
2905
2919
|
/**
|
|
2906
2920
|
* UpdateAIModel返回参数结构体
|
|
@@ -4278,7 +4292,7 @@ ErrorMessage:字符串(ErrorCode 非 0 时,返回错误信息)
|
|
|
4278
4292
|
*/
|
|
4279
4293
|
export interface VerificationConfig {
|
|
4280
4294
|
/**
|
|
4281
|
-
* <p>短信验证码发送通道类型。</p><p>枚举值:</p><ul><li>default: 使用默认云开发短信包发送短信</li><li>apis: 使用云开发自定义 APIs 作为短信发送通道,需配合 Name 和 Method 参数使用。不传则不修改当前配置。</li><li>template: 自定义短信模板配置,需要配置TemplateProvider</li></ul>
|
|
4295
|
+
* <p>短信验证码发送通道类型。</p><p>枚举值:</p><ul><li>default: 使用默认云开发短信包发送短信</li><li>apis: 使用云开发自定义 APIs 作为短信发送通道,需配合 Name 和 Method 参数使用。不传则不修改当前配置。</li><li>template: 自定义短信模板配置,需要配置TemplateProvider</li><li>function: 云函数通道(第三方短信服务商),需要配置CloudFunction</li></ul>
|
|
4282
4296
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
4283
4297
|
*/
|
|
4284
4298
|
Type?: string;
|
|
@@ -4302,6 +4316,11 @@ export interface VerificationConfig {
|
|
|
4302
4316
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
4303
4317
|
*/
|
|
4304
4318
|
TemplateProvider?: SMSProviderTemplateConfig;
|
|
4319
|
+
/**
|
|
4320
|
+
* <p>云函数短信通道配置,当 Type 为 function 时必填</p>
|
|
4321
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4322
|
+
*/
|
|
4323
|
+
CloudFunction?: SMSCloudFunctionConfig;
|
|
4305
4324
|
}
|
|
4306
4325
|
/**
|
|
4307
4326
|
* DescribeTables返回参数结构体
|
|
@@ -5647,27 +5666,27 @@ export interface DescribeTableRequest {
|
|
|
5647
5666
|
*/
|
|
5648
5667
|
export interface UpdateTableRequest {
|
|
5649
5668
|
/**
|
|
5650
|
-
*
|
|
5669
|
+
* <p>表名</p>
|
|
5651
5670
|
*/
|
|
5652
5671
|
TableName: string;
|
|
5653
5672
|
/**
|
|
5654
|
-
* FlexDB实例ID
|
|
5673
|
+
* <p>FlexDB实例ID</p>
|
|
5655
5674
|
*/
|
|
5656
5675
|
Tag?: string;
|
|
5657
5676
|
/**
|
|
5658
|
-
*
|
|
5677
|
+
* <p>待删除索引信息</p>
|
|
5659
5678
|
*/
|
|
5660
5679
|
DropIndexes?: Array<DropIndex>;
|
|
5661
5680
|
/**
|
|
5662
|
-
*
|
|
5681
|
+
* <p>待创建索引信息</p>
|
|
5663
5682
|
*/
|
|
5664
5683
|
CreateIndexes?: Array<CreateIndex>;
|
|
5665
5684
|
/**
|
|
5666
|
-
*
|
|
5685
|
+
* <p>云开发环境ID</p>
|
|
5667
5686
|
*/
|
|
5668
5687
|
EnvId?: string;
|
|
5669
5688
|
/**
|
|
5670
|
-
* MongoDB
|
|
5689
|
+
* <p>MongoDB连接器配置</p>
|
|
5671
5690
|
*/
|
|
5672
5691
|
MongoConnector?: MongoConnector;
|
|
5673
5692
|
}
|
|
@@ -6663,6 +6682,16 @@ export interface OwnershipVerificationDnsInfo {
|
|
|
6663
6682
|
*/
|
|
6664
6683
|
RecordValue?: string;
|
|
6665
6684
|
}
|
|
6685
|
+
/**
|
|
6686
|
+
* 云函数短信通道配置。适用于第三方短信服务商场景:用户在环境下部署名为 SendVerificationCode 的云函数,平台在发送验证码时调用该函数,函数体内由用户自行调用任意短信服务商 SDK 完成下发。
|
|
6687
|
+
*/
|
|
6688
|
+
export interface SMSCloudFunctionConfig {
|
|
6689
|
+
/**
|
|
6690
|
+
* <p>发送验证码的云函数名,当前仅支持 SendVerificationCode。</p><p>函数入参:</p><ul><li>Mobile:字符串(手机号,连续 E.164 格式,如 +8613800000000)</li><li>VerificationCode:字符串(验证码,如 123456)</li></ul><p>函数返回值:</p><ul><li>ErrorCode:int(0 表示成功,非 0 表示失败)</li><li>ErrorMessage:字符串(ErrorCode 非 0 时返回错误信息)</li></ul>
|
|
6691
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6692
|
+
*/
|
|
6693
|
+
FunctionName: string;
|
|
6694
|
+
}
|
|
6666
6695
|
/**
|
|
6667
6696
|
* DescribeTable返回参数结构体
|
|
6668
6697
|
*/
|