@antchain/riskplus 1.16.29 → 1.16.33
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/dist/client.d.ts +47 -0
- package/dist/client.js +72 -1
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +105 -1
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -15007,6 +15007,91 @@ export class QueryUmktRobotcallDetailResponse extends $tea.Model {
|
|
|
15007
15007
|
}
|
|
15008
15008
|
}
|
|
15009
15009
|
|
|
15010
|
+
export class ApplyUmktRealtimemarketingRequest extends $tea.Model {
|
|
15011
|
+
// OAuth模式下的授权token
|
|
15012
|
+
authToken?: string;
|
|
15013
|
+
productInstanceId?: string;
|
|
15014
|
+
// 营销盾内部租户下的子租户
|
|
15015
|
+
subTenantId?: string;
|
|
15016
|
+
//
|
|
15017
|
+
// 场景策略id
|
|
15018
|
+
sceneStrategyId: number;
|
|
15019
|
+
// 外部流水号
|
|
15020
|
+
outSerialNo: string;
|
|
15021
|
+
//
|
|
15022
|
+
// 用户参数类型
|
|
15023
|
+
paramType: string;
|
|
15024
|
+
// 触达渠道配置
|
|
15025
|
+
channelParams?: string;
|
|
15026
|
+
// 扩展字段
|
|
15027
|
+
extInfo?: string;
|
|
15028
|
+
// 手机号/手机号md5
|
|
15029
|
+
customerKey: string;
|
|
15030
|
+
static names(): { [key: string]: string } {
|
|
15031
|
+
return {
|
|
15032
|
+
authToken: 'auth_token',
|
|
15033
|
+
productInstanceId: 'product_instance_id',
|
|
15034
|
+
subTenantId: 'sub_tenant_id',
|
|
15035
|
+
sceneStrategyId: 'scene_strategy_id',
|
|
15036
|
+
outSerialNo: 'out_serial_no',
|
|
15037
|
+
paramType: 'param_type',
|
|
15038
|
+
channelParams: 'channel_params',
|
|
15039
|
+
extInfo: 'ext_info',
|
|
15040
|
+
customerKey: 'customer_key',
|
|
15041
|
+
};
|
|
15042
|
+
}
|
|
15043
|
+
|
|
15044
|
+
static types(): { [key: string]: any } {
|
|
15045
|
+
return {
|
|
15046
|
+
authToken: 'string',
|
|
15047
|
+
productInstanceId: 'string',
|
|
15048
|
+
subTenantId: 'string',
|
|
15049
|
+
sceneStrategyId: 'number',
|
|
15050
|
+
outSerialNo: 'string',
|
|
15051
|
+
paramType: 'string',
|
|
15052
|
+
channelParams: 'string',
|
|
15053
|
+
extInfo: 'string',
|
|
15054
|
+
customerKey: 'string',
|
|
15055
|
+
};
|
|
15056
|
+
}
|
|
15057
|
+
|
|
15058
|
+
constructor(map?: { [key: string]: any }) {
|
|
15059
|
+
super(map);
|
|
15060
|
+
}
|
|
15061
|
+
}
|
|
15062
|
+
|
|
15063
|
+
export class ApplyUmktRealtimemarketingResponse extends $tea.Model {
|
|
15064
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
15065
|
+
reqMsgId?: string;
|
|
15066
|
+
// 结果码,一般OK表示调用成功
|
|
15067
|
+
resultCode?: string;
|
|
15068
|
+
// 异常信息的文本描述
|
|
15069
|
+
resultMsg?: string;
|
|
15070
|
+
// 返回流水id
|
|
15071
|
+
bizId?: string;
|
|
15072
|
+
static names(): { [key: string]: string } {
|
|
15073
|
+
return {
|
|
15074
|
+
reqMsgId: 'req_msg_id',
|
|
15075
|
+
resultCode: 'result_code',
|
|
15076
|
+
resultMsg: 'result_msg',
|
|
15077
|
+
bizId: 'biz_id',
|
|
15078
|
+
};
|
|
15079
|
+
}
|
|
15080
|
+
|
|
15081
|
+
static types(): { [key: string]: any } {
|
|
15082
|
+
return {
|
|
15083
|
+
reqMsgId: 'string',
|
|
15084
|
+
resultCode: 'string',
|
|
15085
|
+
resultMsg: 'string',
|
|
15086
|
+
bizId: 'string',
|
|
15087
|
+
};
|
|
15088
|
+
}
|
|
15089
|
+
|
|
15090
|
+
constructor(map?: { [key: string]: any }) {
|
|
15091
|
+
super(map);
|
|
15092
|
+
}
|
|
15093
|
+
}
|
|
15094
|
+
|
|
15010
15095
|
export class CreateAntcloudGatewayxFileUploadRequest extends $tea.Model {
|
|
15011
15096
|
// OAuth模式下的授权token
|
|
15012
15097
|
authToken?: string;
|
|
@@ -15208,7 +15293,7 @@ export default class Client {
|
|
|
15208
15293
|
req_msg_id: AntchainUtil.getNonce(),
|
|
15209
15294
|
access_key: this._accessKeyId,
|
|
15210
15295
|
base_sdk_version: "TeaSDK-2.0",
|
|
15211
|
-
sdk_version: "1.16.
|
|
15296
|
+
sdk_version: "1.16.33",
|
|
15212
15297
|
_prod_code: "RISKPLUS",
|
|
15213
15298
|
_prod_channel: "undefined",
|
|
15214
15299
|
};
|
|
@@ -18023,6 +18108,25 @@ export default class Client {
|
|
|
18023
18108
|
return $tea.cast<QueryUmktRobotcallDetailResponse>(await this.doRequest("1.0", "riskplus.umkt.robotcall.detail.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryUmktRobotcallDetailResponse({}));
|
|
18024
18109
|
}
|
|
18025
18110
|
|
|
18111
|
+
/**
|
|
18112
|
+
* Description: 发起触达营销任务 ---目前仅支持文本短信
|
|
18113
|
+
* Summary: 发起触达营销任务
|
|
18114
|
+
*/
|
|
18115
|
+
async applyUmktRealtimemarketing(request: ApplyUmktRealtimemarketingRequest): Promise<ApplyUmktRealtimemarketingResponse> {
|
|
18116
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
18117
|
+
let headers : {[key: string ]: string} = { };
|
|
18118
|
+
return await this.applyUmktRealtimemarketingEx(request, headers, runtime);
|
|
18119
|
+
}
|
|
18120
|
+
|
|
18121
|
+
/**
|
|
18122
|
+
* Description: 发起触达营销任务 ---目前仅支持文本短信
|
|
18123
|
+
* Summary: 发起触达营销任务
|
|
18124
|
+
*/
|
|
18125
|
+
async applyUmktRealtimemarketingEx(request: ApplyUmktRealtimemarketingRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ApplyUmktRealtimemarketingResponse> {
|
|
18126
|
+
Util.validateModel(request);
|
|
18127
|
+
return $tea.cast<ApplyUmktRealtimemarketingResponse>(await this.doRequest("1.0", "riskplus.umkt.realtimemarketing.apply", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ApplyUmktRealtimemarketingResponse({}));
|
|
18128
|
+
}
|
|
18129
|
+
|
|
18026
18130
|
/**
|
|
18027
18131
|
* Description: 创建HTTP PUT提交的文件上传
|
|
18028
18132
|
* Summary: 文件上传创建
|