@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/dist/client.d.ts
CHANGED
|
@@ -1024,6 +1024,7 @@ export declare class GetSuppressionListLevelResponse extends $tea.Model {
|
|
|
1024
1024
|
});
|
|
1025
1025
|
}
|
|
1026
1026
|
export declare class GetTrackListRequest extends $tea.Model {
|
|
1027
|
+
accountName?: string;
|
|
1027
1028
|
endTime?: string;
|
|
1028
1029
|
offset?: string;
|
|
1029
1030
|
offsetCreateTime?: string;
|
|
@@ -1034,6 +1035,7 @@ export declare class GetTrackListRequest extends $tea.Model {
|
|
|
1034
1035
|
resourceOwnerAccount?: string;
|
|
1035
1036
|
resourceOwnerId?: number;
|
|
1036
1037
|
startTime?: string;
|
|
1038
|
+
tagName?: string;
|
|
1037
1039
|
total?: string;
|
|
1038
1040
|
static names(): {
|
|
1039
1041
|
[key: string]: string;
|
|
@@ -1137,6 +1139,35 @@ export declare class GetTrackListByMailFromAndTagNameResponse extends $tea.Model
|
|
|
1137
1139
|
[key: string]: any;
|
|
1138
1140
|
});
|
|
1139
1141
|
}
|
|
1142
|
+
export declare class GetUserResponseBody extends $tea.Model {
|
|
1143
|
+
data?: GetUserResponseBodyData;
|
|
1144
|
+
requestId?: string;
|
|
1145
|
+
static names(): {
|
|
1146
|
+
[key: string]: string;
|
|
1147
|
+
};
|
|
1148
|
+
static types(): {
|
|
1149
|
+
[key: string]: any;
|
|
1150
|
+
};
|
|
1151
|
+
constructor(map?: {
|
|
1152
|
+
[key: string]: any;
|
|
1153
|
+
});
|
|
1154
|
+
}
|
|
1155
|
+
export declare class GetUserResponse extends $tea.Model {
|
|
1156
|
+
headers?: {
|
|
1157
|
+
[key: string]: string;
|
|
1158
|
+
};
|
|
1159
|
+
statusCode?: number;
|
|
1160
|
+
body?: GetUserResponseBody;
|
|
1161
|
+
static names(): {
|
|
1162
|
+
[key: string]: string;
|
|
1163
|
+
};
|
|
1164
|
+
static types(): {
|
|
1165
|
+
[key: string]: any;
|
|
1166
|
+
};
|
|
1167
|
+
constructor(map?: {
|
|
1168
|
+
[key: string]: any;
|
|
1169
|
+
});
|
|
1170
|
+
}
|
|
1140
1171
|
export declare class ListUserSuppressionRequest extends $tea.Model {
|
|
1141
1172
|
address?: string;
|
|
1142
1173
|
endBounceTime?: number;
|
|
@@ -2060,6 +2091,58 @@ export declare class UpdateIpProtectionResponse extends $tea.Model {
|
|
|
2060
2091
|
[key: string]: any;
|
|
2061
2092
|
});
|
|
2062
2093
|
}
|
|
2094
|
+
export declare class UpdateUserRequest extends $tea.Model {
|
|
2095
|
+
user?: UpdateUserRequestUser;
|
|
2096
|
+
static names(): {
|
|
2097
|
+
[key: string]: string;
|
|
2098
|
+
};
|
|
2099
|
+
static types(): {
|
|
2100
|
+
[key: string]: any;
|
|
2101
|
+
};
|
|
2102
|
+
constructor(map?: {
|
|
2103
|
+
[key: string]: any;
|
|
2104
|
+
});
|
|
2105
|
+
}
|
|
2106
|
+
export declare class UpdateUserShrinkRequest extends $tea.Model {
|
|
2107
|
+
userShrink?: string;
|
|
2108
|
+
static names(): {
|
|
2109
|
+
[key: string]: string;
|
|
2110
|
+
};
|
|
2111
|
+
static types(): {
|
|
2112
|
+
[key: string]: any;
|
|
2113
|
+
};
|
|
2114
|
+
constructor(map?: {
|
|
2115
|
+
[key: string]: any;
|
|
2116
|
+
});
|
|
2117
|
+
}
|
|
2118
|
+
export declare class UpdateUserResponseBody extends $tea.Model {
|
|
2119
|
+
requestId?: string;
|
|
2120
|
+
static names(): {
|
|
2121
|
+
[key: string]: string;
|
|
2122
|
+
};
|
|
2123
|
+
static types(): {
|
|
2124
|
+
[key: string]: any;
|
|
2125
|
+
};
|
|
2126
|
+
constructor(map?: {
|
|
2127
|
+
[key: string]: any;
|
|
2128
|
+
});
|
|
2129
|
+
}
|
|
2130
|
+
export declare class UpdateUserResponse extends $tea.Model {
|
|
2131
|
+
headers?: {
|
|
2132
|
+
[key: string]: string;
|
|
2133
|
+
};
|
|
2134
|
+
statusCode?: number;
|
|
2135
|
+
body?: UpdateUserResponseBody;
|
|
2136
|
+
static names(): {
|
|
2137
|
+
[key: string]: string;
|
|
2138
|
+
};
|
|
2139
|
+
static types(): {
|
|
2140
|
+
[key: string]: any;
|
|
2141
|
+
};
|
|
2142
|
+
constructor(map?: {
|
|
2143
|
+
[key: string]: any;
|
|
2144
|
+
});
|
|
2145
|
+
}
|
|
2063
2146
|
export declare class GetIpfilterListResponseBodyDataIpfilters extends $tea.Model {
|
|
2064
2147
|
createTime?: string;
|
|
2065
2148
|
id?: string;
|
|
@@ -2152,6 +2235,18 @@ export declare class GetTrackListByMailFromAndTagNameResponseBodyTrackList exten
|
|
|
2152
2235
|
[key: string]: any;
|
|
2153
2236
|
});
|
|
2154
2237
|
}
|
|
2238
|
+
export declare class GetUserResponseBodyData extends $tea.Model {
|
|
2239
|
+
enableEventbridge?: boolean;
|
|
2240
|
+
static names(): {
|
|
2241
|
+
[key: string]: string;
|
|
2242
|
+
};
|
|
2243
|
+
static types(): {
|
|
2244
|
+
[key: string]: any;
|
|
2245
|
+
};
|
|
2246
|
+
constructor(map?: {
|
|
2247
|
+
[key: string]: any;
|
|
2248
|
+
});
|
|
2249
|
+
}
|
|
2155
2250
|
export declare class ListUserSuppressionResponseBodyDataUserSuppressions extends $tea.Model {
|
|
2156
2251
|
address?: string;
|
|
2157
2252
|
createTime?: number;
|
|
@@ -2476,6 +2571,18 @@ export declare class SenderStatisticsDetailByParamResponseBodyData extends $tea.
|
|
|
2476
2571
|
[key: string]: any;
|
|
2477
2572
|
});
|
|
2478
2573
|
}
|
|
2574
|
+
export declare class UpdateUserRequestUser extends $tea.Model {
|
|
2575
|
+
enableEventbridge?: boolean;
|
|
2576
|
+
static names(): {
|
|
2577
|
+
[key: string]: string;
|
|
2578
|
+
};
|
|
2579
|
+
static types(): {
|
|
2580
|
+
[key: string]: any;
|
|
2581
|
+
};
|
|
2582
|
+
constructor(map?: {
|
|
2583
|
+
[key: string]: any;
|
|
2584
|
+
});
|
|
2585
|
+
}
|
|
2479
2586
|
export default class Client extends OpenApi {
|
|
2480
2587
|
constructor(config: $OpenApi.Config);
|
|
2481
2588
|
getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
|
|
@@ -2833,6 +2940,20 @@ export default class Client extends OpenApi {
|
|
|
2833
2940
|
* @return GetTrackListByMailFromAndTagNameResponse
|
|
2834
2941
|
*/
|
|
2835
2942
|
getTrackListByMailFromAndTagName(request: GetTrackListByMailFromAndTagNameRequest): Promise<GetTrackListByMailFromAndTagNameResponse>;
|
|
2943
|
+
/**
|
|
2944
|
+
* @summary 获取账号详情
|
|
2945
|
+
*
|
|
2946
|
+
* @param request GetUserRequest
|
|
2947
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
2948
|
+
* @return GetUserResponse
|
|
2949
|
+
*/
|
|
2950
|
+
getUserWithOptions(runtime: $Util.RuntimeOptions): Promise<GetUserResponse>;
|
|
2951
|
+
/**
|
|
2952
|
+
* @summary 获取账号详情
|
|
2953
|
+
*
|
|
2954
|
+
* @return GetUserResponse
|
|
2955
|
+
*/
|
|
2956
|
+
getUser(): Promise<GetUserResponse>;
|
|
2836
2957
|
/**
|
|
2837
2958
|
* @summary 列出用户无效地址
|
|
2838
2959
|
*
|
|
@@ -3106,4 +3227,19 @@ export default class Client extends OpenApi {
|
|
|
3106
3227
|
* @return UpdateIpProtectionResponse
|
|
3107
3228
|
*/
|
|
3108
3229
|
updateIpProtection(request: UpdateIpProtectionRequest): Promise<UpdateIpProtectionResponse>;
|
|
3230
|
+
/**
|
|
3231
|
+
* @summary 更新帐号信息
|
|
3232
|
+
*
|
|
3233
|
+
* @param tmpReq UpdateUserRequest
|
|
3234
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
3235
|
+
* @return UpdateUserResponse
|
|
3236
|
+
*/
|
|
3237
|
+
updateUserWithOptions(tmpReq: UpdateUserRequest, runtime: $Util.RuntimeOptions): Promise<UpdateUserResponse>;
|
|
3238
|
+
/**
|
|
3239
|
+
* @summary 更新帐号信息
|
|
3240
|
+
*
|
|
3241
|
+
* @param request UpdateUserRequest
|
|
3242
|
+
* @return UpdateUserResponse
|
|
3243
|
+
*/
|
|
3244
|
+
updateUser(request: UpdateUserRequest): Promise<UpdateUserResponse>;
|
|
3109
3245
|
}
|
package/dist/client.js
CHANGED
|
@@ -27,9 +27,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.DeleteTagResponseBody = exports.DeleteTagRequest = exports.DeleteReceiverDetailResponse = exports.DeleteReceiverDetailResponseBody = exports.DeleteReceiverDetailRequest = exports.DeleteReceiverResponse = exports.DeleteReceiverResponseBody = exports.DeleteReceiverRequest = exports.DeleteMailAddressResponse = exports.DeleteMailAddressResponseBody = exports.DeleteMailAddressRequest = exports.DeleteIpfilterByEdmIdResponse = exports.DeleteIpfilterByEdmIdResponseBody = exports.DeleteIpfilterByEdmIdRequest = exports.DeleteInvalidAddressResponse = exports.DeleteInvalidAddressResponseBody = exports.DeleteInvalidAddressRequest = exports.DeleteDomainResponse = exports.DeleteDomainResponseBody = exports.DeleteDomainRequest = exports.CreateUserSuppressionResponse = exports.CreateUserSuppressionResponseBody = exports.CreateUserSuppressionRequest = exports.CreateTagResponse = exports.CreateTagResponseBody = exports.CreateTagRequest = exports.CreateReceiverResponse = exports.CreateReceiverResponseBody = exports.CreateReceiverRequest = exports.CreateMailAddressResponse = exports.CreateMailAddressResponseBody = exports.CreateMailAddressRequest = exports.CreateDomainResponse = exports.CreateDomainResponseBody = exports.CreateDomainRequest = exports.CheckReplyToMailAddressResponse = exports.CheckReplyToMailAddressResponseBody = exports.CheckReplyToMailAddressRequest = exports.CheckDomainResponse = exports.CheckDomainResponseBody = exports.CheckDomainRequest = exports.BatchSendMailResponse = exports.BatchSendMailResponseBody = exports.BatchSendMailRequest = exports.ApproveReplyMailAddressResponse = exports.ApproveReplyMailAddressResponseBody = exports.ApproveReplyMailAddressRequest = exports.AddIpfilterResponse = exports.AddIpfilterResponseBody = exports.AddIpfilterRequest = void 0;
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.SenderStatisticsDetailByParamResponseBodyData = exports.SenderStatisticsDetailByParamResponseBodyDataMailDetail = exports.SenderStatisticsByTagNameAndBatchIDResponseBodyData = exports.SenderStatisticsByTagNameAndBatchIDResponseBodyDataStat = exports.SaveReceiverDetailResponseBodyData = exports.SaveReceiverDetailResponseBodyDataDetail = exports.QueryTaskByParamResponseBodyData = void 0;
|
|
30
|
+
exports.QueryReceiverDetailResponseBody = exports.QueryReceiverDetailRequest = exports.QueryReceiverByParamResponse = exports.QueryReceiverByParamResponseBody = exports.QueryReceiverByParamRequest = exports.QueryMailAddressByParamResponse = exports.QueryMailAddressByParamResponseBody = exports.QueryMailAddressByParamRequest = exports.QueryInvalidAddressResponse = exports.QueryInvalidAddressResponseBody = exports.QueryInvalidAddressRequest = exports.QueryDomainByParamResponse = exports.QueryDomainByParamResponseBody = exports.QueryDomainByParamRequest = exports.ModifyTagResponse = exports.ModifyTagResponseBody = exports.ModifyTagRequest = exports.ModifyPWByDomainResponse = exports.ModifyPWByDomainResponseBody = exports.ModifyPWByDomainRequest = exports.ModifyMailAddressResponse = exports.ModifyMailAddressResponseBody = exports.ModifyMailAddressRequest = exports.ListUserSuppressionResponse = exports.ListUserSuppressionResponseBody = exports.ListUserSuppressionRequest = exports.GetUserResponse = exports.GetUserResponseBody = exports.GetTrackListByMailFromAndTagNameResponse = exports.GetTrackListByMailFromAndTagNameResponseBody = exports.GetTrackListByMailFromAndTagNameRequest = exports.GetTrackListResponse = exports.GetTrackListResponseBody = exports.GetTrackListRequest = exports.GetSuppressionListLevelResponse = exports.GetSuppressionListLevelResponseBody = exports.GetSuppressionListLevelRequest = exports.GetIpfilterListResponse = exports.GetIpfilterListResponseBody = exports.GetIpfilterListRequest = exports.GetIpProtectionResponse = exports.GetIpProtectionResponseBody = exports.GetIpProtectionRequest = exports.DescDomainResponse = exports.DescDomainResponseBody = exports.DescDomainRequest = exports.DescAccountSummaryResponse = exports.DescAccountSummaryResponseBody = exports.DescAccountSummaryRequest = exports.DeleteTagResponse = void 0;
|
|
31
|
+
exports.QueryMailAddressByParamResponseBodyData = exports.QueryMailAddressByParamResponseBodyDataMailAddress = exports.QueryInvalidAddressResponseBodyData = exports.QueryInvalidAddressResponseBodyDataMailDetail = exports.QueryDomainByParamResponseBodyData = exports.QueryDomainByParamResponseBodyDataDomain = exports.ListUserSuppressionResponseBodyData = exports.ListUserSuppressionResponseBodyDataUserSuppressions = exports.GetUserResponseBodyData = exports.GetTrackListByMailFromAndTagNameResponseBodyTrackList = exports.GetTrackListByMailFromAndTagNameResponseBodyTrackListStat = exports.GetTrackListResponseBodyData = exports.GetTrackListResponseBodyDataStat = exports.GetIpfilterListResponseBodyData = exports.GetIpfilterListResponseBodyDataIpfilters = exports.UpdateUserResponse = exports.UpdateUserResponseBody = exports.UpdateUserShrinkRequest = exports.UpdateUserRequest = exports.UpdateIpProtectionResponse = exports.UpdateIpProtectionResponseBody = exports.UpdateIpProtectionRequest = exports.SingleSendMailResponse = exports.SingleSendMailResponseBody = exports.SingleSendMailRequest = exports.SetSuppressionListLevelResponse = exports.SetSuppressionListLevelResponseBody = exports.SetSuppressionListLevelRequest = exports.SenderStatisticsDetailByParamResponse = exports.SenderStatisticsDetailByParamResponseBody = exports.SenderStatisticsDetailByParamRequest = exports.SenderStatisticsByTagNameAndBatchIDResponse = exports.SenderStatisticsByTagNameAndBatchIDResponseBody = exports.SenderStatisticsByTagNameAndBatchIDRequest = exports.SendTestByTemplateResponse = exports.SendTestByTemplateResponseBody = exports.SendTestByTemplateRequest = exports.SaveReceiverDetailResponse = exports.SaveReceiverDetailResponseBody = exports.SaveReceiverDetailRequest = exports.RemoveUserSuppressionResponse = exports.RemoveUserSuppressionResponseBody = exports.RemoveUserSuppressionRequest = exports.QueryTaskByParamResponse = exports.QueryTaskByParamResponseBody = exports.QueryTaskByParamRequest = exports.QueryTagByParamResponse = exports.QueryTagByParamResponseBody = exports.QueryTagByParamRequest = exports.QueryReceiverDetailResponse = void 0;
|
|
32
|
+
exports.UpdateUserRequestUser = exports.SenderStatisticsDetailByParamResponseBodyData = exports.SenderStatisticsDetailByParamResponseBodyDataMailDetail = exports.SenderStatisticsByTagNameAndBatchIDResponseBodyData = exports.SenderStatisticsByTagNameAndBatchIDResponseBodyDataStat = exports.SaveReceiverDetailResponseBodyData = exports.SaveReceiverDetailResponseBodyDataDetail = exports.QueryTaskByParamResponseBodyData = exports.QueryTaskByParamResponseBodyDataTask = exports.QueryTagByParamResponseBodyData = exports.QueryTagByParamResponseBodyDataTag = exports.QueryReceiverDetailResponseBodyData = exports.QueryReceiverDetailResponseBodyDataDetail = exports.QueryReceiverByParamResponseBodyData = exports.QueryReceiverByParamResponseBodyDataReceiver = void 0;
|
|
33
33
|
// This file is auto-generated, don't edit it
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
@@ -1464,6 +1464,7 @@ exports.GetSuppressionListLevelResponse = GetSuppressionListLevelResponse;
|
|
|
1464
1464
|
class GetTrackListRequest extends $tea.Model {
|
|
1465
1465
|
static names() {
|
|
1466
1466
|
return {
|
|
1467
|
+
accountName: 'AccountName',
|
|
1467
1468
|
endTime: 'EndTime',
|
|
1468
1469
|
offset: 'Offset',
|
|
1469
1470
|
offsetCreateTime: 'OffsetCreateTime',
|
|
@@ -1474,11 +1475,13 @@ class GetTrackListRequest extends $tea.Model {
|
|
|
1474
1475
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
1475
1476
|
resourceOwnerId: 'ResourceOwnerId',
|
|
1476
1477
|
startTime: 'StartTime',
|
|
1478
|
+
tagName: 'TagName',
|
|
1477
1479
|
total: 'Total',
|
|
1478
1480
|
};
|
|
1479
1481
|
}
|
|
1480
1482
|
static types() {
|
|
1481
1483
|
return {
|
|
1484
|
+
accountName: 'string',
|
|
1482
1485
|
endTime: 'string',
|
|
1483
1486
|
offset: 'string',
|
|
1484
1487
|
offsetCreateTime: 'string',
|
|
@@ -1489,6 +1492,7 @@ class GetTrackListRequest extends $tea.Model {
|
|
|
1489
1492
|
resourceOwnerAccount: 'string',
|
|
1490
1493
|
resourceOwnerId: 'number',
|
|
1491
1494
|
startTime: 'string',
|
|
1495
|
+
tagName: 'string',
|
|
1492
1496
|
total: 'string',
|
|
1493
1497
|
};
|
|
1494
1498
|
}
|
|
@@ -1633,6 +1637,44 @@ class GetTrackListByMailFromAndTagNameResponse extends $tea.Model {
|
|
|
1633
1637
|
}
|
|
1634
1638
|
}
|
|
1635
1639
|
exports.GetTrackListByMailFromAndTagNameResponse = GetTrackListByMailFromAndTagNameResponse;
|
|
1640
|
+
class GetUserResponseBody extends $tea.Model {
|
|
1641
|
+
static names() {
|
|
1642
|
+
return {
|
|
1643
|
+
data: 'Data',
|
|
1644
|
+
requestId: 'RequestId',
|
|
1645
|
+
};
|
|
1646
|
+
}
|
|
1647
|
+
static types() {
|
|
1648
|
+
return {
|
|
1649
|
+
data: GetUserResponseBodyData,
|
|
1650
|
+
requestId: 'string',
|
|
1651
|
+
};
|
|
1652
|
+
}
|
|
1653
|
+
constructor(map) {
|
|
1654
|
+
super(map);
|
|
1655
|
+
}
|
|
1656
|
+
}
|
|
1657
|
+
exports.GetUserResponseBody = GetUserResponseBody;
|
|
1658
|
+
class GetUserResponse extends $tea.Model {
|
|
1659
|
+
static names() {
|
|
1660
|
+
return {
|
|
1661
|
+
headers: 'headers',
|
|
1662
|
+
statusCode: 'statusCode',
|
|
1663
|
+
body: 'body',
|
|
1664
|
+
};
|
|
1665
|
+
}
|
|
1666
|
+
static types() {
|
|
1667
|
+
return {
|
|
1668
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1669
|
+
statusCode: 'number',
|
|
1670
|
+
body: GetUserResponseBody,
|
|
1671
|
+
};
|
|
1672
|
+
}
|
|
1673
|
+
constructor(map) {
|
|
1674
|
+
super(map);
|
|
1675
|
+
}
|
|
1676
|
+
}
|
|
1677
|
+
exports.GetUserResponse = GetUserResponse;
|
|
1636
1678
|
class ListUserSuppressionRequest extends $tea.Model {
|
|
1637
1679
|
static names() {
|
|
1638
1680
|
return {
|
|
@@ -2947,6 +2989,74 @@ class UpdateIpProtectionResponse extends $tea.Model {
|
|
|
2947
2989
|
}
|
|
2948
2990
|
}
|
|
2949
2991
|
exports.UpdateIpProtectionResponse = UpdateIpProtectionResponse;
|
|
2992
|
+
class UpdateUserRequest extends $tea.Model {
|
|
2993
|
+
static names() {
|
|
2994
|
+
return {
|
|
2995
|
+
user: 'User',
|
|
2996
|
+
};
|
|
2997
|
+
}
|
|
2998
|
+
static types() {
|
|
2999
|
+
return {
|
|
3000
|
+
user: UpdateUserRequestUser,
|
|
3001
|
+
};
|
|
3002
|
+
}
|
|
3003
|
+
constructor(map) {
|
|
3004
|
+
super(map);
|
|
3005
|
+
}
|
|
3006
|
+
}
|
|
3007
|
+
exports.UpdateUserRequest = UpdateUserRequest;
|
|
3008
|
+
class UpdateUserShrinkRequest extends $tea.Model {
|
|
3009
|
+
static names() {
|
|
3010
|
+
return {
|
|
3011
|
+
userShrink: 'User',
|
|
3012
|
+
};
|
|
3013
|
+
}
|
|
3014
|
+
static types() {
|
|
3015
|
+
return {
|
|
3016
|
+
userShrink: 'string',
|
|
3017
|
+
};
|
|
3018
|
+
}
|
|
3019
|
+
constructor(map) {
|
|
3020
|
+
super(map);
|
|
3021
|
+
}
|
|
3022
|
+
}
|
|
3023
|
+
exports.UpdateUserShrinkRequest = UpdateUserShrinkRequest;
|
|
3024
|
+
class UpdateUserResponseBody extends $tea.Model {
|
|
3025
|
+
static names() {
|
|
3026
|
+
return {
|
|
3027
|
+
requestId: 'RequestId',
|
|
3028
|
+
};
|
|
3029
|
+
}
|
|
3030
|
+
static types() {
|
|
3031
|
+
return {
|
|
3032
|
+
requestId: 'string',
|
|
3033
|
+
};
|
|
3034
|
+
}
|
|
3035
|
+
constructor(map) {
|
|
3036
|
+
super(map);
|
|
3037
|
+
}
|
|
3038
|
+
}
|
|
3039
|
+
exports.UpdateUserResponseBody = UpdateUserResponseBody;
|
|
3040
|
+
class UpdateUserResponse extends $tea.Model {
|
|
3041
|
+
static names() {
|
|
3042
|
+
return {
|
|
3043
|
+
headers: 'headers',
|
|
3044
|
+
statusCode: 'statusCode',
|
|
3045
|
+
body: 'body',
|
|
3046
|
+
};
|
|
3047
|
+
}
|
|
3048
|
+
static types() {
|
|
3049
|
+
return {
|
|
3050
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3051
|
+
statusCode: 'number',
|
|
3052
|
+
body: UpdateUserResponseBody,
|
|
3053
|
+
};
|
|
3054
|
+
}
|
|
3055
|
+
constructor(map) {
|
|
3056
|
+
super(map);
|
|
3057
|
+
}
|
|
3058
|
+
}
|
|
3059
|
+
exports.UpdateUserResponse = UpdateUserResponse;
|
|
2950
3060
|
class GetIpfilterListResponseBodyDataIpfilters extends $tea.Model {
|
|
2951
3061
|
static names() {
|
|
2952
3062
|
return {
|
|
@@ -3083,6 +3193,22 @@ class GetTrackListByMailFromAndTagNameResponseBodyTrackList extends $tea.Model {
|
|
|
3083
3193
|
}
|
|
3084
3194
|
}
|
|
3085
3195
|
exports.GetTrackListByMailFromAndTagNameResponseBodyTrackList = GetTrackListByMailFromAndTagNameResponseBodyTrackList;
|
|
3196
|
+
class GetUserResponseBodyData extends $tea.Model {
|
|
3197
|
+
static names() {
|
|
3198
|
+
return {
|
|
3199
|
+
enableEventbridge: 'EnableEventbridge',
|
|
3200
|
+
};
|
|
3201
|
+
}
|
|
3202
|
+
static types() {
|
|
3203
|
+
return {
|
|
3204
|
+
enableEventbridge: 'boolean',
|
|
3205
|
+
};
|
|
3206
|
+
}
|
|
3207
|
+
constructor(map) {
|
|
3208
|
+
super(map);
|
|
3209
|
+
}
|
|
3210
|
+
}
|
|
3211
|
+
exports.GetUserResponseBodyData = GetUserResponseBodyData;
|
|
3086
3212
|
class ListUserSuppressionResponseBodyDataUserSuppressions extends $tea.Model {
|
|
3087
3213
|
static names() {
|
|
3088
3214
|
return {
|
|
@@ -3555,6 +3681,22 @@ class SenderStatisticsDetailByParamResponseBodyData extends $tea.Model {
|
|
|
3555
3681
|
}
|
|
3556
3682
|
}
|
|
3557
3683
|
exports.SenderStatisticsDetailByParamResponseBodyData = SenderStatisticsDetailByParamResponseBodyData;
|
|
3684
|
+
class UpdateUserRequestUser extends $tea.Model {
|
|
3685
|
+
static names() {
|
|
3686
|
+
return {
|
|
3687
|
+
enableEventbridge: 'EnableEventbridge',
|
|
3688
|
+
};
|
|
3689
|
+
}
|
|
3690
|
+
static types() {
|
|
3691
|
+
return {
|
|
3692
|
+
enableEventbridge: 'boolean',
|
|
3693
|
+
};
|
|
3694
|
+
}
|
|
3695
|
+
constructor(map) {
|
|
3696
|
+
super(map);
|
|
3697
|
+
}
|
|
3698
|
+
}
|
|
3699
|
+
exports.UpdateUserRequestUser = UpdateUserRequestUser;
|
|
3558
3700
|
class Client extends openapi_client_1.default {
|
|
3559
3701
|
constructor(config) {
|
|
3560
3702
|
super(config);
|
|
@@ -4674,6 +4816,9 @@ class Client extends openapi_client_1.default {
|
|
|
4674
4816
|
async getTrackListWithOptions(request, runtime) {
|
|
4675
4817
|
tea_util_1.default.validateModel(request);
|
|
4676
4818
|
let query = {};
|
|
4819
|
+
if (!tea_util_1.default.isUnset(request.accountName)) {
|
|
4820
|
+
query["AccountName"] = request.accountName;
|
|
4821
|
+
}
|
|
4677
4822
|
if (!tea_util_1.default.isUnset(request.endTime)) {
|
|
4678
4823
|
query["EndTime"] = request.endTime;
|
|
4679
4824
|
}
|
|
@@ -4704,6 +4849,9 @@ class Client extends openapi_client_1.default {
|
|
|
4704
4849
|
if (!tea_util_1.default.isUnset(request.startTime)) {
|
|
4705
4850
|
query["StartTime"] = request.startTime;
|
|
4706
4851
|
}
|
|
4852
|
+
if (!tea_util_1.default.isUnset(request.tagName)) {
|
|
4853
|
+
query["TagName"] = request.tagName;
|
|
4854
|
+
}
|
|
4707
4855
|
if (!tea_util_1.default.isUnset(request.total)) {
|
|
4708
4856
|
query["Total"] = request.total;
|
|
4709
4857
|
}
|
|
@@ -4808,6 +4956,37 @@ class Client extends openapi_client_1.default {
|
|
|
4808
4956
|
let runtime = new $Util.RuntimeOptions({});
|
|
4809
4957
|
return await this.getTrackListByMailFromAndTagNameWithOptions(request, runtime);
|
|
4810
4958
|
}
|
|
4959
|
+
/**
|
|
4960
|
+
* @summary 获取账号详情
|
|
4961
|
+
*
|
|
4962
|
+
* @param request GetUserRequest
|
|
4963
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
4964
|
+
* @return GetUserResponse
|
|
4965
|
+
*/
|
|
4966
|
+
async getUserWithOptions(runtime) {
|
|
4967
|
+
let req = new $OpenApi.OpenApiRequest({});
|
|
4968
|
+
let params = new $OpenApi.Params({
|
|
4969
|
+
action: "GetUser",
|
|
4970
|
+
version: "2015-11-23",
|
|
4971
|
+
protocol: "HTTPS",
|
|
4972
|
+
pathname: "/",
|
|
4973
|
+
method: "GET",
|
|
4974
|
+
authType: "AK",
|
|
4975
|
+
style: "RPC",
|
|
4976
|
+
reqBodyType: "formData",
|
|
4977
|
+
bodyType: "json",
|
|
4978
|
+
});
|
|
4979
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetUserResponse({}));
|
|
4980
|
+
}
|
|
4981
|
+
/**
|
|
4982
|
+
* @summary 获取账号详情
|
|
4983
|
+
*
|
|
4984
|
+
* @return GetUserResponse
|
|
4985
|
+
*/
|
|
4986
|
+
async getUser() {
|
|
4987
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
4988
|
+
return await this.getUserWithOptions(runtime);
|
|
4989
|
+
}
|
|
4811
4990
|
/**
|
|
4812
4991
|
* @summary 列出用户无效地址
|
|
4813
4992
|
*
|
|
@@ -5897,6 +6076,50 @@ class Client extends openapi_client_1.default {
|
|
|
5897
6076
|
let runtime = new $Util.RuntimeOptions({});
|
|
5898
6077
|
return await this.updateIpProtectionWithOptions(request, runtime);
|
|
5899
6078
|
}
|
|
6079
|
+
/**
|
|
6080
|
+
* @summary 更新帐号信息
|
|
6081
|
+
*
|
|
6082
|
+
* @param tmpReq UpdateUserRequest
|
|
6083
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
6084
|
+
* @return UpdateUserResponse
|
|
6085
|
+
*/
|
|
6086
|
+
async updateUserWithOptions(tmpReq, runtime) {
|
|
6087
|
+
tea_util_1.default.validateModel(tmpReq);
|
|
6088
|
+
let request = new UpdateUserShrinkRequest({});
|
|
6089
|
+
openapi_util_1.default.convert(tmpReq, request);
|
|
6090
|
+
if (!tea_util_1.default.isUnset(tmpReq.user)) {
|
|
6091
|
+
request.userShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.user, "User", "json");
|
|
6092
|
+
}
|
|
6093
|
+
let body = {};
|
|
6094
|
+
if (!tea_util_1.default.isUnset(request.userShrink)) {
|
|
6095
|
+
body["User"] = request.userShrink;
|
|
6096
|
+
}
|
|
6097
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
6098
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
6099
|
+
});
|
|
6100
|
+
let params = new $OpenApi.Params({
|
|
6101
|
+
action: "UpdateUser",
|
|
6102
|
+
version: "2015-11-23",
|
|
6103
|
+
protocol: "HTTPS",
|
|
6104
|
+
pathname: "/",
|
|
6105
|
+
method: "POST",
|
|
6106
|
+
authType: "AK",
|
|
6107
|
+
style: "RPC",
|
|
6108
|
+
reqBodyType: "formData",
|
|
6109
|
+
bodyType: "json",
|
|
6110
|
+
});
|
|
6111
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UpdateUserResponse({}));
|
|
6112
|
+
}
|
|
6113
|
+
/**
|
|
6114
|
+
* @summary 更新帐号信息
|
|
6115
|
+
*
|
|
6116
|
+
* @param request UpdateUserRequest
|
|
6117
|
+
* @return UpdateUserResponse
|
|
6118
|
+
*/
|
|
6119
|
+
async updateUser(request) {
|
|
6120
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
6121
|
+
return await this.updateUserWithOptions(request, runtime);
|
|
6122
|
+
}
|
|
5900
6123
|
}
|
|
5901
6124
|
exports.default = Client;
|
|
5902
6125
|
//# sourceMappingURL=client.js.map
|