@alicloud/dm20151123 1.1.1 → 1.2.0

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": "@alicloud/dm20151123",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -2039,6 +2039,53 @@ export class GetTrackListByMailFromAndTagNameResponse extends $tea.Model {
2039
2039
  }
2040
2040
  }
2041
2041
 
2042
+ export class GetUserResponseBody extends $tea.Model {
2043
+ data?: GetUserResponseBodyData;
2044
+ requestId?: string;
2045
+ static names(): { [key: string]: string } {
2046
+ return {
2047
+ data: 'Data',
2048
+ requestId: 'RequestId',
2049
+ };
2050
+ }
2051
+
2052
+ static types(): { [key: string]: any } {
2053
+ return {
2054
+ data: GetUserResponseBodyData,
2055
+ requestId: 'string',
2056
+ };
2057
+ }
2058
+
2059
+ constructor(map?: { [key: string]: any }) {
2060
+ super(map);
2061
+ }
2062
+ }
2063
+
2064
+ export class GetUserResponse extends $tea.Model {
2065
+ headers?: { [key: string]: string };
2066
+ statusCode?: number;
2067
+ body?: GetUserResponseBody;
2068
+ static names(): { [key: string]: string } {
2069
+ return {
2070
+ headers: 'headers',
2071
+ statusCode: 'statusCode',
2072
+ body: 'body',
2073
+ };
2074
+ }
2075
+
2076
+ static types(): { [key: string]: any } {
2077
+ return {
2078
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2079
+ statusCode: 'number',
2080
+ body: GetUserResponseBody,
2081
+ };
2082
+ }
2083
+
2084
+ constructor(map?: { [key: string]: any }) {
2085
+ super(map);
2086
+ }
2087
+ }
2088
+
2042
2089
  export class ListUserSuppressionRequest extends $tea.Model {
2043
2090
  address?: string;
2044
2091
  endBounceTime?: number;
@@ -3725,6 +3772,88 @@ export class UpdateIpProtectionResponse extends $tea.Model {
3725
3772
  }
3726
3773
  }
3727
3774
 
3775
+ export class UpdateUserRequest extends $tea.Model {
3776
+ user?: UpdateUserRequestUser;
3777
+ static names(): { [key: string]: string } {
3778
+ return {
3779
+ user: 'User',
3780
+ };
3781
+ }
3782
+
3783
+ static types(): { [key: string]: any } {
3784
+ return {
3785
+ user: UpdateUserRequestUser,
3786
+ };
3787
+ }
3788
+
3789
+ constructor(map?: { [key: string]: any }) {
3790
+ super(map);
3791
+ }
3792
+ }
3793
+
3794
+ export class UpdateUserShrinkRequest extends $tea.Model {
3795
+ userShrink?: string;
3796
+ static names(): { [key: string]: string } {
3797
+ return {
3798
+ userShrink: 'User',
3799
+ };
3800
+ }
3801
+
3802
+ static types(): { [key: string]: any } {
3803
+ return {
3804
+ userShrink: 'string',
3805
+ };
3806
+ }
3807
+
3808
+ constructor(map?: { [key: string]: any }) {
3809
+ super(map);
3810
+ }
3811
+ }
3812
+
3813
+ export class UpdateUserResponseBody extends $tea.Model {
3814
+ requestId?: string;
3815
+ static names(): { [key: string]: string } {
3816
+ return {
3817
+ requestId: 'RequestId',
3818
+ };
3819
+ }
3820
+
3821
+ static types(): { [key: string]: any } {
3822
+ return {
3823
+ requestId: 'string',
3824
+ };
3825
+ }
3826
+
3827
+ constructor(map?: { [key: string]: any }) {
3828
+ super(map);
3829
+ }
3830
+ }
3831
+
3832
+ export class UpdateUserResponse extends $tea.Model {
3833
+ headers?: { [key: string]: string };
3834
+ statusCode?: number;
3835
+ body?: UpdateUserResponseBody;
3836
+ static names(): { [key: string]: string } {
3837
+ return {
3838
+ headers: 'headers',
3839
+ statusCode: 'statusCode',
3840
+ body: 'body',
3841
+ };
3842
+ }
3843
+
3844
+ static types(): { [key: string]: any } {
3845
+ return {
3846
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3847
+ statusCode: 'number',
3848
+ body: UpdateUserResponseBody,
3849
+ };
3850
+ }
3851
+
3852
+ constructor(map?: { [key: string]: any }) {
3853
+ super(map);
3854
+ }
3855
+ }
3856
+
3728
3857
  export class GetIpfilterListResponseBodyDataIpfilters extends $tea.Model {
3729
3858
  createTime?: string;
3730
3859
  id?: string;
@@ -3899,6 +4028,25 @@ export class GetTrackListByMailFromAndTagNameResponseBodyTrackList extends $tea.
3899
4028
  }
3900
4029
  }
3901
4030
 
4031
+ export class GetUserResponseBodyData extends $tea.Model {
4032
+ enableEventbridge?: boolean;
4033
+ static names(): { [key: string]: string } {
4034
+ return {
4035
+ enableEventbridge: 'EnableEventbridge',
4036
+ };
4037
+ }
4038
+
4039
+ static types(): { [key: string]: any } {
4040
+ return {
4041
+ enableEventbridge: 'boolean',
4042
+ };
4043
+ }
4044
+
4045
+ constructor(map?: { [key: string]: any }) {
4046
+ super(map);
4047
+ }
4048
+ }
4049
+
3902
4050
  export class ListUserSuppressionResponseBodyDataUserSuppressions extends $tea.Model {
3903
4051
  address?: string;
3904
4052
  createTime?: number;
@@ -4497,6 +4645,25 @@ export class SenderStatisticsDetailByParamResponseBodyData extends $tea.Model {
4497
4645
  }
4498
4646
  }
4499
4647
 
4648
+ export class UpdateUserRequestUser extends $tea.Model {
4649
+ enableEventbridge?: boolean;
4650
+ static names(): { [key: string]: string } {
4651
+ return {
4652
+ enableEventbridge: 'EnableEventbridge',
4653
+ };
4654
+ }
4655
+
4656
+ static types(): { [key: string]: any } {
4657
+ return {
4658
+ enableEventbridge: 'boolean',
4659
+ };
4660
+ }
4661
+
4662
+ constructor(map?: { [key: string]: any }) {
4663
+ super(map);
4664
+ }
4665
+ }
4666
+
4500
4667
 
4501
4668
  export default class Client extends OpenApi {
4502
4669
 
@@ -5932,6 +6099,39 @@ export default class Client extends OpenApi {
5932
6099
  return await this.getTrackListByMailFromAndTagNameWithOptions(request, runtime);
5933
6100
  }
5934
6101
 
6102
+ /**
6103
+ * @summary 获取账号详情
6104
+ *
6105
+ * @param request GetUserRequest
6106
+ * @param runtime runtime options for this request RuntimeOptions
6107
+ * @return GetUserResponse
6108
+ */
6109
+ async getUserWithOptions(runtime: $Util.RuntimeOptions): Promise<GetUserResponse> {
6110
+ let req = new $OpenApi.OpenApiRequest({ });
6111
+ let params = new $OpenApi.Params({
6112
+ action: "GetUser",
6113
+ version: "2015-11-23",
6114
+ protocol: "HTTPS",
6115
+ pathname: "/",
6116
+ method: "GET",
6117
+ authType: "AK",
6118
+ style: "RPC",
6119
+ reqBodyType: "formData",
6120
+ bodyType: "json",
6121
+ });
6122
+ return $tea.cast<GetUserResponse>(await this.callApi(params, req, runtime), new GetUserResponse({}));
6123
+ }
6124
+
6125
+ /**
6126
+ * @summary 获取账号详情
6127
+ *
6128
+ * @return GetUserResponse
6129
+ */
6130
+ async getUser(): Promise<GetUserResponse> {
6131
+ let runtime = new $Util.RuntimeOptions({ });
6132
+ return await this.getUserWithOptions(runtime);
6133
+ }
6134
+
5935
6135
  /**
5936
6136
  * @summary 列出用户无效地址
5937
6137
  *
@@ -7198,4 +7398,52 @@ export default class Client extends OpenApi {
7198
7398
  return await this.updateIpProtectionWithOptions(request, runtime);
7199
7399
  }
7200
7400
 
7401
+ /**
7402
+ * @summary 更新帐号信息
7403
+ *
7404
+ * @param tmpReq UpdateUserRequest
7405
+ * @param runtime runtime options for this request RuntimeOptions
7406
+ * @return UpdateUserResponse
7407
+ */
7408
+ async updateUserWithOptions(tmpReq: UpdateUserRequest, runtime: $Util.RuntimeOptions): Promise<UpdateUserResponse> {
7409
+ Util.validateModel(tmpReq);
7410
+ let request = new UpdateUserShrinkRequest({ });
7411
+ OpenApiUtil.convert(tmpReq, request);
7412
+ if (!Util.isUnset(tmpReq.user)) {
7413
+ request.userShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.user, "User", "json");
7414
+ }
7415
+
7416
+ let body : {[key: string ]: any} = { };
7417
+ if (!Util.isUnset(request.userShrink)) {
7418
+ body["User"] = request.userShrink;
7419
+ }
7420
+
7421
+ let req = new $OpenApi.OpenApiRequest({
7422
+ body: OpenApiUtil.parseToMap(body),
7423
+ });
7424
+ let params = new $OpenApi.Params({
7425
+ action: "UpdateUser",
7426
+ version: "2015-11-23",
7427
+ protocol: "HTTPS",
7428
+ pathname: "/",
7429
+ method: "POST",
7430
+ authType: "AK",
7431
+ style: "RPC",
7432
+ reqBodyType: "formData",
7433
+ bodyType: "json",
7434
+ });
7435
+ return $tea.cast<UpdateUserResponse>(await this.callApi(params, req, runtime), new UpdateUserResponse({}));
7436
+ }
7437
+
7438
+ /**
7439
+ * @summary 更新帐号信息
7440
+ *
7441
+ * @param request UpdateUserRequest
7442
+ * @return UpdateUserResponse
7443
+ */
7444
+ async updateUser(request: UpdateUserRequest): Promise<UpdateUserResponse> {
7445
+ let runtime = new $Util.RuntimeOptions({ });
7446
+ return await this.updateUserWithOptions(request, runtime);
7447
+ }
7448
+
7201
7449
  }