@alicloud/dm20151123 1.1.2 → 1.2.1
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 +136 -0
- package/dist/client.js +226 -3
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +262 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/dm20151123",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/client.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@alicloud/tea-typescript": "^1.7.1",
|
|
23
23
|
"@alicloud/tea-util": "^1.4.8",
|
|
24
|
-
"@alicloud/openapi-client": "^0.4.
|
|
24
|
+
"@alicloud/openapi-client": "^0.4.10",
|
|
25
25
|
"@alicloud/openapi-util": "^0.3.2",
|
|
26
26
|
"@alicloud/endpoint-util": "^0.0.1"
|
|
27
27
|
},
|
package/src/client.ts
CHANGED
|
@@ -1812,6 +1812,7 @@ export class GetSuppressionListLevelResponse extends $tea.Model {
|
|
|
1812
1812
|
}
|
|
1813
1813
|
|
|
1814
1814
|
export class GetTrackListRequest extends $tea.Model {
|
|
1815
|
+
accountName?: string;
|
|
1815
1816
|
endTime?: string;
|
|
1816
1817
|
offset?: string;
|
|
1817
1818
|
offsetCreateTime?: string;
|
|
@@ -1822,9 +1823,11 @@ export class GetTrackListRequest extends $tea.Model {
|
|
|
1822
1823
|
resourceOwnerAccount?: string;
|
|
1823
1824
|
resourceOwnerId?: number;
|
|
1824
1825
|
startTime?: string;
|
|
1826
|
+
tagName?: string;
|
|
1825
1827
|
total?: string;
|
|
1826
1828
|
static names(): { [key: string]: string } {
|
|
1827
1829
|
return {
|
|
1830
|
+
accountName: 'AccountName',
|
|
1828
1831
|
endTime: 'EndTime',
|
|
1829
1832
|
offset: 'Offset',
|
|
1830
1833
|
offsetCreateTime: 'OffsetCreateTime',
|
|
@@ -1835,12 +1838,14 @@ export class GetTrackListRequest extends $tea.Model {
|
|
|
1835
1838
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
1836
1839
|
resourceOwnerId: 'ResourceOwnerId',
|
|
1837
1840
|
startTime: 'StartTime',
|
|
1841
|
+
tagName: 'TagName',
|
|
1838
1842
|
total: 'Total',
|
|
1839
1843
|
};
|
|
1840
1844
|
}
|
|
1841
1845
|
|
|
1842
1846
|
static types(): { [key: string]: any } {
|
|
1843
1847
|
return {
|
|
1848
|
+
accountName: 'string',
|
|
1844
1849
|
endTime: 'string',
|
|
1845
1850
|
offset: 'string',
|
|
1846
1851
|
offsetCreateTime: 'string',
|
|
@@ -1851,6 +1856,7 @@ export class GetTrackListRequest extends $tea.Model {
|
|
|
1851
1856
|
resourceOwnerAccount: 'string',
|
|
1852
1857
|
resourceOwnerId: 'number',
|
|
1853
1858
|
startTime: 'string',
|
|
1859
|
+
tagName: 'string',
|
|
1854
1860
|
total: 'string',
|
|
1855
1861
|
};
|
|
1856
1862
|
}
|
|
@@ -2039,6 +2045,53 @@ export class GetTrackListByMailFromAndTagNameResponse extends $tea.Model {
|
|
|
2039
2045
|
}
|
|
2040
2046
|
}
|
|
2041
2047
|
|
|
2048
|
+
export class GetUserResponseBody extends $tea.Model {
|
|
2049
|
+
data?: GetUserResponseBodyData;
|
|
2050
|
+
requestId?: string;
|
|
2051
|
+
static names(): { [key: string]: string } {
|
|
2052
|
+
return {
|
|
2053
|
+
data: 'Data',
|
|
2054
|
+
requestId: 'RequestId',
|
|
2055
|
+
};
|
|
2056
|
+
}
|
|
2057
|
+
|
|
2058
|
+
static types(): { [key: string]: any } {
|
|
2059
|
+
return {
|
|
2060
|
+
data: GetUserResponseBodyData,
|
|
2061
|
+
requestId: 'string',
|
|
2062
|
+
};
|
|
2063
|
+
}
|
|
2064
|
+
|
|
2065
|
+
constructor(map?: { [key: string]: any }) {
|
|
2066
|
+
super(map);
|
|
2067
|
+
}
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
export class GetUserResponse extends $tea.Model {
|
|
2071
|
+
headers?: { [key: string]: string };
|
|
2072
|
+
statusCode?: number;
|
|
2073
|
+
body?: GetUserResponseBody;
|
|
2074
|
+
static names(): { [key: string]: string } {
|
|
2075
|
+
return {
|
|
2076
|
+
headers: 'headers',
|
|
2077
|
+
statusCode: 'statusCode',
|
|
2078
|
+
body: 'body',
|
|
2079
|
+
};
|
|
2080
|
+
}
|
|
2081
|
+
|
|
2082
|
+
static types(): { [key: string]: any } {
|
|
2083
|
+
return {
|
|
2084
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2085
|
+
statusCode: 'number',
|
|
2086
|
+
body: GetUserResponseBody,
|
|
2087
|
+
};
|
|
2088
|
+
}
|
|
2089
|
+
|
|
2090
|
+
constructor(map?: { [key: string]: any }) {
|
|
2091
|
+
super(map);
|
|
2092
|
+
}
|
|
2093
|
+
}
|
|
2094
|
+
|
|
2042
2095
|
export class ListUserSuppressionRequest extends $tea.Model {
|
|
2043
2096
|
address?: string;
|
|
2044
2097
|
endBounceTime?: number;
|
|
@@ -3725,6 +3778,88 @@ export class UpdateIpProtectionResponse extends $tea.Model {
|
|
|
3725
3778
|
}
|
|
3726
3779
|
}
|
|
3727
3780
|
|
|
3781
|
+
export class UpdateUserRequest extends $tea.Model {
|
|
3782
|
+
user?: UpdateUserRequestUser;
|
|
3783
|
+
static names(): { [key: string]: string } {
|
|
3784
|
+
return {
|
|
3785
|
+
user: 'User',
|
|
3786
|
+
};
|
|
3787
|
+
}
|
|
3788
|
+
|
|
3789
|
+
static types(): { [key: string]: any } {
|
|
3790
|
+
return {
|
|
3791
|
+
user: UpdateUserRequestUser,
|
|
3792
|
+
};
|
|
3793
|
+
}
|
|
3794
|
+
|
|
3795
|
+
constructor(map?: { [key: string]: any }) {
|
|
3796
|
+
super(map);
|
|
3797
|
+
}
|
|
3798
|
+
}
|
|
3799
|
+
|
|
3800
|
+
export class UpdateUserShrinkRequest extends $tea.Model {
|
|
3801
|
+
userShrink?: string;
|
|
3802
|
+
static names(): { [key: string]: string } {
|
|
3803
|
+
return {
|
|
3804
|
+
userShrink: 'User',
|
|
3805
|
+
};
|
|
3806
|
+
}
|
|
3807
|
+
|
|
3808
|
+
static types(): { [key: string]: any } {
|
|
3809
|
+
return {
|
|
3810
|
+
userShrink: 'string',
|
|
3811
|
+
};
|
|
3812
|
+
}
|
|
3813
|
+
|
|
3814
|
+
constructor(map?: { [key: string]: any }) {
|
|
3815
|
+
super(map);
|
|
3816
|
+
}
|
|
3817
|
+
}
|
|
3818
|
+
|
|
3819
|
+
export class UpdateUserResponseBody extends $tea.Model {
|
|
3820
|
+
requestId?: string;
|
|
3821
|
+
static names(): { [key: string]: string } {
|
|
3822
|
+
return {
|
|
3823
|
+
requestId: 'RequestId',
|
|
3824
|
+
};
|
|
3825
|
+
}
|
|
3826
|
+
|
|
3827
|
+
static types(): { [key: string]: any } {
|
|
3828
|
+
return {
|
|
3829
|
+
requestId: 'string',
|
|
3830
|
+
};
|
|
3831
|
+
}
|
|
3832
|
+
|
|
3833
|
+
constructor(map?: { [key: string]: any }) {
|
|
3834
|
+
super(map);
|
|
3835
|
+
}
|
|
3836
|
+
}
|
|
3837
|
+
|
|
3838
|
+
export class UpdateUserResponse extends $tea.Model {
|
|
3839
|
+
headers?: { [key: string]: string };
|
|
3840
|
+
statusCode?: number;
|
|
3841
|
+
body?: UpdateUserResponseBody;
|
|
3842
|
+
static names(): { [key: string]: string } {
|
|
3843
|
+
return {
|
|
3844
|
+
headers: 'headers',
|
|
3845
|
+
statusCode: 'statusCode',
|
|
3846
|
+
body: 'body',
|
|
3847
|
+
};
|
|
3848
|
+
}
|
|
3849
|
+
|
|
3850
|
+
static types(): { [key: string]: any } {
|
|
3851
|
+
return {
|
|
3852
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3853
|
+
statusCode: 'number',
|
|
3854
|
+
body: UpdateUserResponseBody,
|
|
3855
|
+
};
|
|
3856
|
+
}
|
|
3857
|
+
|
|
3858
|
+
constructor(map?: { [key: string]: any }) {
|
|
3859
|
+
super(map);
|
|
3860
|
+
}
|
|
3861
|
+
}
|
|
3862
|
+
|
|
3728
3863
|
export class GetIpfilterListResponseBodyDataIpfilters extends $tea.Model {
|
|
3729
3864
|
createTime?: string;
|
|
3730
3865
|
id?: string;
|
|
@@ -3899,6 +4034,25 @@ export class GetTrackListByMailFromAndTagNameResponseBodyTrackList extends $tea.
|
|
|
3899
4034
|
}
|
|
3900
4035
|
}
|
|
3901
4036
|
|
|
4037
|
+
export class GetUserResponseBodyData extends $tea.Model {
|
|
4038
|
+
enableEventbridge?: boolean;
|
|
4039
|
+
static names(): { [key: string]: string } {
|
|
4040
|
+
return {
|
|
4041
|
+
enableEventbridge: 'EnableEventbridge',
|
|
4042
|
+
};
|
|
4043
|
+
}
|
|
4044
|
+
|
|
4045
|
+
static types(): { [key: string]: any } {
|
|
4046
|
+
return {
|
|
4047
|
+
enableEventbridge: 'boolean',
|
|
4048
|
+
};
|
|
4049
|
+
}
|
|
4050
|
+
|
|
4051
|
+
constructor(map?: { [key: string]: any }) {
|
|
4052
|
+
super(map);
|
|
4053
|
+
}
|
|
4054
|
+
}
|
|
4055
|
+
|
|
3902
4056
|
export class ListUserSuppressionResponseBodyDataUserSuppressions extends $tea.Model {
|
|
3903
4057
|
address?: string;
|
|
3904
4058
|
createTime?: number;
|
|
@@ -4497,6 +4651,25 @@ export class SenderStatisticsDetailByParamResponseBodyData extends $tea.Model {
|
|
|
4497
4651
|
}
|
|
4498
4652
|
}
|
|
4499
4653
|
|
|
4654
|
+
export class UpdateUserRequestUser extends $tea.Model {
|
|
4655
|
+
enableEventbridge?: boolean;
|
|
4656
|
+
static names(): { [key: string]: string } {
|
|
4657
|
+
return {
|
|
4658
|
+
enableEventbridge: 'EnableEventbridge',
|
|
4659
|
+
};
|
|
4660
|
+
}
|
|
4661
|
+
|
|
4662
|
+
static types(): { [key: string]: any } {
|
|
4663
|
+
return {
|
|
4664
|
+
enableEventbridge: 'boolean',
|
|
4665
|
+
};
|
|
4666
|
+
}
|
|
4667
|
+
|
|
4668
|
+
constructor(map?: { [key: string]: any }) {
|
|
4669
|
+
super(map);
|
|
4670
|
+
}
|
|
4671
|
+
}
|
|
4672
|
+
|
|
4500
4673
|
|
|
4501
4674
|
export default class Client extends OpenApi {
|
|
4502
4675
|
|
|
@@ -5770,6 +5943,10 @@ export default class Client extends OpenApi {
|
|
|
5770
5943
|
async getTrackListWithOptions(request: GetTrackListRequest, runtime: $Util.RuntimeOptions): Promise<GetTrackListResponse> {
|
|
5771
5944
|
Util.validateModel(request);
|
|
5772
5945
|
let query = { };
|
|
5946
|
+
if (!Util.isUnset(request.accountName)) {
|
|
5947
|
+
query["AccountName"] = request.accountName;
|
|
5948
|
+
}
|
|
5949
|
+
|
|
5773
5950
|
if (!Util.isUnset(request.endTime)) {
|
|
5774
5951
|
query["EndTime"] = request.endTime;
|
|
5775
5952
|
}
|
|
@@ -5810,6 +5987,10 @@ export default class Client extends OpenApi {
|
|
|
5810
5987
|
query["StartTime"] = request.startTime;
|
|
5811
5988
|
}
|
|
5812
5989
|
|
|
5990
|
+
if (!Util.isUnset(request.tagName)) {
|
|
5991
|
+
query["TagName"] = request.tagName;
|
|
5992
|
+
}
|
|
5993
|
+
|
|
5813
5994
|
if (!Util.isUnset(request.total)) {
|
|
5814
5995
|
query["Total"] = request.total;
|
|
5815
5996
|
}
|
|
@@ -5932,6 +6113,39 @@ export default class Client extends OpenApi {
|
|
|
5932
6113
|
return await this.getTrackListByMailFromAndTagNameWithOptions(request, runtime);
|
|
5933
6114
|
}
|
|
5934
6115
|
|
|
6116
|
+
/**
|
|
6117
|
+
* @summary 获取账号详情
|
|
6118
|
+
*
|
|
6119
|
+
* @param request GetUserRequest
|
|
6120
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
6121
|
+
* @return GetUserResponse
|
|
6122
|
+
*/
|
|
6123
|
+
async getUserWithOptions(runtime: $Util.RuntimeOptions): Promise<GetUserResponse> {
|
|
6124
|
+
let req = new $OpenApi.OpenApiRequest({ });
|
|
6125
|
+
let params = new $OpenApi.Params({
|
|
6126
|
+
action: "GetUser",
|
|
6127
|
+
version: "2015-11-23",
|
|
6128
|
+
protocol: "HTTPS",
|
|
6129
|
+
pathname: "/",
|
|
6130
|
+
method: "GET",
|
|
6131
|
+
authType: "AK",
|
|
6132
|
+
style: "RPC",
|
|
6133
|
+
reqBodyType: "formData",
|
|
6134
|
+
bodyType: "json",
|
|
6135
|
+
});
|
|
6136
|
+
return $tea.cast<GetUserResponse>(await this.callApi(params, req, runtime), new GetUserResponse({}));
|
|
6137
|
+
}
|
|
6138
|
+
|
|
6139
|
+
/**
|
|
6140
|
+
* @summary 获取账号详情
|
|
6141
|
+
*
|
|
6142
|
+
* @return GetUserResponse
|
|
6143
|
+
*/
|
|
6144
|
+
async getUser(): Promise<GetUserResponse> {
|
|
6145
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
6146
|
+
return await this.getUserWithOptions(runtime);
|
|
6147
|
+
}
|
|
6148
|
+
|
|
5935
6149
|
/**
|
|
5936
6150
|
* @summary 列出用户无效地址
|
|
5937
6151
|
*
|
|
@@ -7198,4 +7412,52 @@ export default class Client extends OpenApi {
|
|
|
7198
7412
|
return await this.updateIpProtectionWithOptions(request, runtime);
|
|
7199
7413
|
}
|
|
7200
7414
|
|
|
7415
|
+
/**
|
|
7416
|
+
* @summary 更新帐号信息
|
|
7417
|
+
*
|
|
7418
|
+
* @param tmpReq UpdateUserRequest
|
|
7419
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
7420
|
+
* @return UpdateUserResponse
|
|
7421
|
+
*/
|
|
7422
|
+
async updateUserWithOptions(tmpReq: UpdateUserRequest, runtime: $Util.RuntimeOptions): Promise<UpdateUserResponse> {
|
|
7423
|
+
Util.validateModel(tmpReq);
|
|
7424
|
+
let request = new UpdateUserShrinkRequest({ });
|
|
7425
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
7426
|
+
if (!Util.isUnset(tmpReq.user)) {
|
|
7427
|
+
request.userShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.user, "User", "json");
|
|
7428
|
+
}
|
|
7429
|
+
|
|
7430
|
+
let body : {[key: string ]: any} = { };
|
|
7431
|
+
if (!Util.isUnset(request.userShrink)) {
|
|
7432
|
+
body["User"] = request.userShrink;
|
|
7433
|
+
}
|
|
7434
|
+
|
|
7435
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
7436
|
+
body: OpenApiUtil.parseToMap(body),
|
|
7437
|
+
});
|
|
7438
|
+
let params = new $OpenApi.Params({
|
|
7439
|
+
action: "UpdateUser",
|
|
7440
|
+
version: "2015-11-23",
|
|
7441
|
+
protocol: "HTTPS",
|
|
7442
|
+
pathname: "/",
|
|
7443
|
+
method: "POST",
|
|
7444
|
+
authType: "AK",
|
|
7445
|
+
style: "RPC",
|
|
7446
|
+
reqBodyType: "formData",
|
|
7447
|
+
bodyType: "json",
|
|
7448
|
+
});
|
|
7449
|
+
return $tea.cast<UpdateUserResponse>(await this.callApi(params, req, runtime), new UpdateUserResponse({}));
|
|
7450
|
+
}
|
|
7451
|
+
|
|
7452
|
+
/**
|
|
7453
|
+
* @summary 更新帐号信息
|
|
7454
|
+
*
|
|
7455
|
+
* @param request UpdateUserRequest
|
|
7456
|
+
* @return UpdateUserResponse
|
|
7457
|
+
*/
|
|
7458
|
+
async updateUser(request: UpdateUserRequest): Promise<UpdateUserResponse> {
|
|
7459
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
7460
|
+
return await this.updateUserWithOptions(request, runtime);
|
|
7461
|
+
}
|
|
7462
|
+
|
|
7201
7463
|
}
|