@tachybase/plugin-auth-dingtalk 1.3.19 → 1.3.20
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/externalVersion.js +5 -5
- package/dist/node_modules/@alicloud/dingtalk/dist/agoal_1_0/client.d.ts +1750 -330
- package/dist/node_modules/@alicloud/dingtalk/dist/agoal_1_0/client.js +1733 -114
- package/dist/node_modules/@alicloud/dingtalk/dist/ai_paa_s_1_0/client.d.ts +294 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/ai_paa_s_1_0/client.js +461 -2
- package/dist/node_modules/@alicloud/dingtalk/dist/assistant_1_0/client.d.ts +691 -7
- package/dist/node_modules/@alicloud/dingtalk/dist/assistant_1_0/client.js +1143 -37
- package/dist/node_modules/@alicloud/dingtalk/dist/ats_1_0/client.d.ts +202 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/ats_1_0/client.js +335 -2
- package/dist/node_modules/@alicloud/dingtalk/dist/attendance_1_0/client.d.ts +21 -13
- package/dist/node_modules/@alicloud/dingtalk/dist/attendance_1_0/client.js +21 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/bizfinance_1_0/client.d.ts +103 -1
- package/dist/node_modules/@alicloud/dingtalk/dist/bizfinance_1_0/client.js +169 -5
- package/dist/node_modules/@alicloud/dingtalk/dist/bizfinance_2_0/client.d.ts +3261 -901
- package/dist/node_modules/@alicloud/dingtalk/dist/bizfinance_2_0/client.js +4736 -1197
- package/dist/node_modules/@alicloud/dingtalk/dist/calendar_1_0/client.d.ts +145 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/calendar_1_0/client.js +238 -6
- package/dist/node_modules/@alicloud/dingtalk/dist/card_1_0/client.d.ts +105 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/card_1_0/client.js +181 -3
- package/dist/node_modules/@alicloud/dingtalk/dist/conference_1_0/client.d.ts +159 -2
- package/dist/node_modules/@alicloud/dingtalk/dist/conference_1_0/client.js +243 -3
- package/dist/node_modules/@alicloud/dingtalk/dist/contact_1_0/client.d.ts +399 -2
- package/dist/node_modules/@alicloud/dingtalk/dist/contact_1_0/client.js +614 -11
- package/dist/node_modules/@alicloud/dingtalk/dist/contract_1_0/client.d.ts +2789 -274
- package/dist/node_modules/@alicloud/dingtalk/dist/contract_1_0/client.js +4218 -407
- package/dist/node_modules/@alicloud/dingtalk/dist/crm_1_0/client.d.ts +81 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/crm_1_0/client.js +133 -7
- package/dist/node_modules/@alicloud/dingtalk/dist/datacenter_1_0/client.d.ts +168 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/datacenter_1_0/client.js +281 -11
- package/dist/node_modules/@alicloud/dingtalk/dist/diot_1_0/client.js +0 -1
- package/dist/node_modules/@alicloud/dingtalk/dist/doc_1_0/client.d.ts +1110 -24
- package/dist/node_modules/@alicloud/dingtalk/dist/doc_1_0/client.js +1714 -115
- package/dist/node_modules/@alicloud/dingtalk/dist/doc_2_0/client.d.ts +1073 -73
- package/dist/node_modules/@alicloud/dingtalk/dist/doc_2_0/client.js +1316 -39
- package/dist/node_modules/@alicloud/dingtalk/dist/edu_1_0/client.d.ts +5893 -2422
- package/dist/node_modules/@alicloud/dingtalk/dist/edu_1_0/client.js +7232 -1965
- package/dist/node_modules/@alicloud/dingtalk/dist/event_1_0/client.js +0 -1
- package/dist/node_modules/@alicloud/dingtalk/dist/exclusive_1_0/client.d.ts +851 -51
- package/dist/node_modules/@alicloud/dingtalk/dist/exclusive_1_0/client.js +1239 -66
- package/dist/node_modules/@alicloud/dingtalk/dist/flashmeeting_1_0/client.d.ts +92 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/flashmeeting_1_0/client.js +166 -1
- package/dist/node_modules/@alicloud/dingtalk/dist/gateway_1_0/client.js +0 -1
- package/dist/node_modules/@alicloud/dingtalk/dist/hrbrain_1_0/client.d.ts +1373 -233
- package/dist/node_modules/@alicloud/dingtalk/dist/hrbrain_1_0/client.js +2004 -246
- package/dist/node_modules/@alicloud/dingtalk/dist/hrm_1_0/client.d.ts +598 -3
- package/dist/node_modules/@alicloud/dingtalk/dist/hrm_1_0/client.js +893 -33
- package/dist/node_modules/@alicloud/dingtalk/dist/im_1_0/client.d.ts +1373 -122
- package/dist/node_modules/@alicloud/dingtalk/dist/im_1_0/client.js +2099 -264
- package/dist/node_modules/@alicloud/dingtalk/dist/im_2_0/client.js +0 -1
- package/dist/node_modules/@alicloud/dingtalk/dist/index.d.ts +6 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/index.js +2 -2
- package/dist/node_modules/@alicloud/dingtalk/dist/industry_1_0/client.d.ts +160 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/industry_1_0/client.js +227 -14
- package/dist/node_modules/@alicloud/dingtalk/dist/live_1_0/client.d.ts +4 -2
- package/dist/node_modules/@alicloud/dingtalk/dist/live_1_0/client.js +6 -2
- package/dist/node_modules/@alicloud/dingtalk/dist/mail_1_0/client.d.ts +1089 -38
- package/dist/node_modules/@alicloud/dingtalk/dist/mail_1_0/client.js +1429 -62
- package/dist/node_modules/@alicloud/dingtalk/dist/manufacturing_1_0/client.js +0 -1
- package/dist/node_modules/@alicloud/dingtalk/dist/meter_1_0/client.d.ts +101 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/meter_1_0/client.js +202 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/micro_app_1_0/client.d.ts +113 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/micro_app_1_0/client.js +171 -3
- package/dist/node_modules/@alicloud/dingtalk/dist/miniapp_1_0/client.js +0 -1
- package/dist/node_modules/@alicloud/dingtalk/dist/minutes_1_0/client.d.ts +940 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/minutes_1_0/client.js +1545 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/oauth2_1_0/client.js +0 -1
- package/dist/node_modules/@alicloud/dingtalk/dist/pedia_1_0/client.d.ts +1 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/pedia_1_0/client.js +5 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/project_1_0/client.d.ts +83 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/project_1_0/client.js +68 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/rooms_1_0/client.d.ts +90 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/rooms_1_0/client.js +83 -1
- package/dist/node_modules/@alicloud/dingtalk/dist/salary_1_0/client.d.ts +642 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/salary_1_0/client.js +919 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/storage_1_0/client.d.ts +130 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/storage_1_0/client.js +171 -6
- package/dist/node_modules/@alicloud/dingtalk/dist/storage_2_0/client.d.ts +283 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/storage_2_0/client.js +340 -2
- package/dist/node_modules/@alicloud/dingtalk/dist/team_sphere_1_0/client.d.ts +223 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/team_sphere_1_0/client.js +347 -4
- package/dist/node_modules/@alicloud/dingtalk/dist/todo_1_0/client.d.ts +42 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/todo_1_0/client.js +53 -2
- package/dist/node_modules/@alicloud/dingtalk/dist/todo_e_e_1_0/client.d.ts +458 -4
- package/dist/node_modules/@alicloud/dingtalk/dist/todo_e_e_1_0/client.js +942 -153
- package/dist/node_modules/@alicloud/dingtalk/dist/trip_1_0/client.d.ts +5 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/trip_1_0/client.js +2 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/vip_member_1_0/client.d.ts +254 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/vip_member_1_0/client.js +477 -1
- package/dist/node_modules/@alicloud/dingtalk/dist/watt_1_0/client.js +0 -1
- package/dist/node_modules/@alicloud/dingtalk/dist/wiki_2_0/client.d.ts +234 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/wiki_2_0/client.js +298 -2
- package/dist/node_modules/@alicloud/dingtalk/dist/workflow_1_0/client.d.ts +746 -15
- package/dist/node_modules/@alicloud/dingtalk/dist/workflow_1_0/client.js +871 -20
- package/dist/node_modules/@alicloud/dingtalk/dist/yida_1_0/client.d.ts +402 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/yida_1_0/client.js +412 -7
- package/dist/node_modules/@alicloud/dingtalk/dist/yida_2_0/client.d.ts +890 -112
- package/dist/node_modules/@alicloud/dingtalk/dist/yida_2_0/client.js +1063 -2
- package/dist/node_modules/@alicloud/dingtalk/meter_1_0.js +1 -0
- package/dist/node_modules/@alicloud/dingtalk/minutes_1_0.js +1 -0
- package/dist/node_modules/@alicloud/dingtalk/package.json +1 -1
- package/dist/node_modules/@alicloud/dingtalk/salary_1_0.js +1 -0
- package/dist/node_modules/@alicloud/dingtalk/src/agoal_1_0/client.ts +2695 -319
- package/dist/node_modules/@alicloud/dingtalk/src/ai_paa_s_1_0/client.ts +566 -0
- package/dist/node_modules/@alicloud/dingtalk/src/assistant_1_0/client.ts +1492 -117
- package/dist/node_modules/@alicloud/dingtalk/src/ats_1_0/client.ts +420 -0
- package/dist/node_modules/@alicloud/dingtalk/src/attendance_1_0/client.ts +45 -13
- package/dist/node_modules/@alicloud/dingtalk/src/bizfinance_1_0/client.ts +232 -2
- package/dist/node_modules/@alicloud/dingtalk/src/bizfinance_2_0/client.ts +6892 -2251
- package/dist/node_modules/@alicloud/dingtalk/src/calendar_1_0/client.ts +287 -0
- package/dist/node_modules/@alicloud/dingtalk/src/card_1_0/client.ts +224 -0
- package/dist/node_modules/@alicloud/dingtalk/src/conference_1_0/client.ts +297 -2
- package/dist/node_modules/@alicloud/dingtalk/src/contact_1_0/client.ts +811 -42
- package/dist/node_modules/@alicloud/dingtalk/src/contract_1_0/client.ts +5523 -617
- package/dist/node_modules/@alicloud/dingtalk/src/crm_1_0/client.ts +157 -0
- package/dist/node_modules/@alicloud/dingtalk/src/datacenter_1_0/client.ts +340 -0
- package/dist/node_modules/@alicloud/dingtalk/src/diot_1_0/client.ts +0 -1
- package/dist/node_modules/@alicloud/dingtalk/src/doc_1_0/client.ts +2802 -720
- package/dist/node_modules/@alicloud/dingtalk/src/doc_2_0/client.ts +1889 -140
- package/dist/node_modules/@alicloud/dingtalk/src/edu_1_0/client.ts +8496 -1557
- package/dist/node_modules/@alicloud/dingtalk/src/event_1_0/client.ts +0 -1
- package/dist/node_modules/@alicloud/dingtalk/src/exclusive_1_0/client.ts +1831 -283
- package/dist/node_modules/@alicloud/dingtalk/src/flashmeeting_1_0/client.ts +201 -0
- package/dist/node_modules/@alicloud/dingtalk/src/gateway_1_0/client.ts +0 -1
- package/dist/node_modules/@alicloud/dingtalk/src/hrbrain_1_0/client.ts +2742 -542
- package/dist/node_modules/@alicloud/dingtalk/src/hrm_1_0/client.ts +1182 -33
- package/dist/node_modules/@alicloud/dingtalk/src/im_1_0/client.ts +3100 -718
- package/dist/node_modules/@alicloud/dingtalk/src/im_2_0/client.ts +0 -1
- package/dist/node_modules/@alicloud/dingtalk/src/index.ts +6 -0
- package/dist/node_modules/@alicloud/dingtalk/src/industry_1_0/client.ts +319 -0
- package/dist/node_modules/@alicloud/dingtalk/src/live_1_0/client.ts +8 -2
- package/dist/node_modules/@alicloud/dingtalk/src/mail_1_0/client.ts +2029 -159
- package/dist/node_modules/@alicloud/dingtalk/src/manufacturing_1_0/client.ts +0 -1
- package/dist/node_modules/@alicloud/dingtalk/src/meter_1_0/client.ts +201 -0
- package/dist/node_modules/@alicloud/dingtalk/src/micro_app_1_0/client.ts +215 -1
- package/dist/node_modules/@alicloud/dingtalk/src/miniapp_1_0/client.ts +0 -1
- package/dist/node_modules/@alicloud/dingtalk/src/minutes_1_0/client.ts +1871 -0
- package/dist/node_modules/@alicloud/dingtalk/src/oauth2_1_0/client.ts +0 -1
- package/dist/node_modules/@alicloud/dingtalk/src/pedia_1_0/client.ts +7 -0
- package/dist/node_modules/@alicloud/dingtalk/src/project_1_0/client.ts +161 -0
- package/dist/node_modules/@alicloud/dingtalk/src/rooms_1_0/client.ts +147 -0
- package/dist/node_modules/@alicloud/dingtalk/src/salary_1_0/client.ts +1156 -0
- package/dist/node_modules/@alicloud/dingtalk/src/storage_1_0/client.ts +226 -0
- package/dist/node_modules/@alicloud/dingtalk/src/storage_2_0/client.ts +492 -0
- package/dist/node_modules/@alicloud/dingtalk/src/team_sphere_1_0/client.ts +442 -0
- package/dist/node_modules/@alicloud/dingtalk/src/todo_1_0/client.ts +89 -0
- package/dist/node_modules/@alicloud/dingtalk/src/todo_e_e_1_0/client.ts +1061 -88
- package/dist/node_modules/@alicloud/dingtalk/src/trip_1_0/client.ts +7 -0
- package/dist/node_modules/@alicloud/dingtalk/src/vip_member_1_0/client.ts +583 -0
- package/dist/node_modules/@alicloud/dingtalk/src/watt_1_0/client.ts +0 -1
- package/dist/node_modules/@alicloud/dingtalk/src/wiki_2_0/client.ts +423 -0
- package/dist/node_modules/@alicloud/dingtalk/src/workflow_1_0/client.ts +1304 -24
- package/dist/node_modules/@alicloud/dingtalk/src/yida_1_0/client.ts +774 -102
- package/dist/node_modules/@alicloud/dingtalk/src/yida_2_0/client.ts +1910 -429
- package/dist/node_modules/@alicloud/openapi-client/package.json +1 -1
- package/dist/node_modules/@alicloud/tea-util/package.json +1 -1
- package/package.json +8 -8
|
@@ -5,22 +5,126 @@ import Util, * as $Util from '@alicloud/tea-util';
|
|
|
5
5
|
import GatewayClient from '@alicloud/gateway-dingtalk';
|
|
6
6
|
import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
|
|
7
7
|
import OpenApiUtil from '@alicloud/openapi-util';
|
|
8
|
+
import { Readable } from 'stream';
|
|
8
9
|
import * as $tea from '@alicloud/tea-typescript';
|
|
9
10
|
|
|
10
|
-
export class
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
export class DraftMessage extends $tea.Model {
|
|
12
|
+
/**
|
|
13
|
+
* @remarks
|
|
14
|
+
* This parameter is required.
|
|
15
|
+
*/
|
|
16
|
+
bccRecipients?: Recipient[];
|
|
17
|
+
/**
|
|
18
|
+
* @remarks
|
|
19
|
+
* This parameter is required.
|
|
20
|
+
*/
|
|
21
|
+
body?: DraftMessageBody;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* This parameter is required.
|
|
25
|
+
*/
|
|
26
|
+
ccRecipients?: Recipient[];
|
|
27
|
+
/**
|
|
28
|
+
* @remarks
|
|
29
|
+
* This parameter is required.
|
|
30
|
+
*/
|
|
31
|
+
from?: Recipient;
|
|
32
|
+
/**
|
|
33
|
+
* @remarks
|
|
34
|
+
* This parameter is required.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* 由RFC5322定义的邮件头集合
|
|
38
|
+
*/
|
|
39
|
+
internetMessageHeaders?: { [key: string]: any };
|
|
40
|
+
/**
|
|
41
|
+
* @remarks
|
|
42
|
+
* This parameter is required.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* uniqid@dingtalk.com
|
|
46
|
+
*/
|
|
47
|
+
internetMessageId?: Readable;
|
|
48
|
+
/**
|
|
49
|
+
* @remarks
|
|
50
|
+
* This parameter is required.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* false
|
|
54
|
+
*/
|
|
55
|
+
isReadReceiptRequested?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* @remarks
|
|
58
|
+
* This parameter is required.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* PRY_NORMAL
|
|
62
|
+
*/
|
|
63
|
+
priority?: Readable;
|
|
64
|
+
/**
|
|
65
|
+
* @remarks
|
|
66
|
+
* This parameter is required.
|
|
67
|
+
*/
|
|
68
|
+
replyTo?: Recipient;
|
|
69
|
+
/**
|
|
70
|
+
* @remarks
|
|
71
|
+
* This parameter is required.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* 主题
|
|
75
|
+
*/
|
|
76
|
+
subject?: Readable;
|
|
77
|
+
/**
|
|
78
|
+
* @remarks
|
|
79
|
+
* This parameter is required.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* 一般取邮件正文的前一段
|
|
83
|
+
*/
|
|
84
|
+
summary?: Readable;
|
|
85
|
+
/**
|
|
86
|
+
* @remarks
|
|
87
|
+
* This parameter is required.
|
|
88
|
+
*/
|
|
89
|
+
tags?: Readable[];
|
|
90
|
+
/**
|
|
91
|
+
* @remarks
|
|
92
|
+
* This parameter is required.
|
|
93
|
+
*/
|
|
94
|
+
toRecipients?: Recipient[];
|
|
13
95
|
static names(): { [key: string]: string } {
|
|
14
96
|
return {
|
|
15
|
-
|
|
16
|
-
|
|
97
|
+
bccRecipients: 'bccRecipients',
|
|
98
|
+
body: 'body',
|
|
99
|
+
ccRecipients: 'ccRecipients',
|
|
100
|
+
from: 'from',
|
|
101
|
+
internetMessageHeaders: 'internetMessageHeaders',
|
|
102
|
+
internetMessageId: 'internetMessageId',
|
|
103
|
+
isReadReceiptRequested: 'isReadReceiptRequested',
|
|
104
|
+
priority: 'priority',
|
|
105
|
+
replyTo: 'replyTo',
|
|
106
|
+
subject: 'subject',
|
|
107
|
+
summary: 'summary',
|
|
108
|
+
tags: 'tags',
|
|
109
|
+
toRecipients: 'toRecipients',
|
|
17
110
|
};
|
|
18
111
|
}
|
|
19
112
|
|
|
20
113
|
static types(): { [key: string]: any } {
|
|
21
114
|
return {
|
|
22
|
-
|
|
23
|
-
|
|
115
|
+
bccRecipients: { 'type': 'array', 'itemType': Recipient },
|
|
116
|
+
body: DraftMessageBody,
|
|
117
|
+
ccRecipients: { 'type': 'array', 'itemType': Recipient },
|
|
118
|
+
from: Recipient,
|
|
119
|
+
internetMessageHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
120
|
+
internetMessageId: 'Readable',
|
|
121
|
+
isReadReceiptRequested: 'boolean',
|
|
122
|
+
priority: 'Readable',
|
|
123
|
+
replyTo: Recipient,
|
|
124
|
+
subject: 'Readable',
|
|
125
|
+
summary: 'Readable',
|
|
126
|
+
tags: { 'type': 'array', 'itemType': 'Readable' },
|
|
127
|
+
toRecipients: { 'type': 'array', 'itemType': Recipient },
|
|
24
128
|
};
|
|
25
129
|
}
|
|
26
130
|
|
|
@@ -29,48 +133,216 @@ export class CreateUserHeaders extends $tea.Model {
|
|
|
29
133
|
}
|
|
30
134
|
}
|
|
31
135
|
|
|
32
|
-
export class
|
|
136
|
+
export class Message extends $tea.Model {
|
|
137
|
+
/**
|
|
138
|
+
* @remarks
|
|
139
|
+
* This parameter is required.
|
|
140
|
+
*/
|
|
141
|
+
bccRecipients?: Recipient[];
|
|
142
|
+
/**
|
|
143
|
+
* @remarks
|
|
144
|
+
* This parameter is required.
|
|
145
|
+
*/
|
|
146
|
+
ccRecipients?: Recipient[];
|
|
33
147
|
/**
|
|
34
148
|
* @remarks
|
|
35
149
|
* This parameter is required.
|
|
36
150
|
*
|
|
37
151
|
* @example
|
|
38
|
-
*
|
|
152
|
+
* conversationid
|
|
39
153
|
*/
|
|
40
|
-
|
|
154
|
+
conversationId?: Readable;
|
|
41
155
|
/**
|
|
42
156
|
* @remarks
|
|
43
157
|
* This parameter is required.
|
|
158
|
+
*
|
|
159
|
+
* @example
|
|
160
|
+
* 2
|
|
44
161
|
*/
|
|
45
|
-
|
|
162
|
+
folderId?: Readable;
|
|
46
163
|
/**
|
|
47
164
|
* @remarks
|
|
48
165
|
* This parameter is required.
|
|
49
166
|
*/
|
|
50
|
-
|
|
167
|
+
from?: Recipient;
|
|
51
168
|
/**
|
|
52
169
|
* @remarks
|
|
53
170
|
* This parameter is required.
|
|
54
171
|
*
|
|
55
172
|
* @example
|
|
56
|
-
*
|
|
173
|
+
* false
|
|
57
174
|
*/
|
|
58
|
-
|
|
175
|
+
hasAttachments?: boolean;
|
|
176
|
+
/**
|
|
177
|
+
* @remarks
|
|
178
|
+
* This parameter is required.
|
|
179
|
+
*
|
|
180
|
+
* @example
|
|
181
|
+
* mailid
|
|
182
|
+
*/
|
|
183
|
+
id?: Readable;
|
|
184
|
+
/**
|
|
185
|
+
* @remarks
|
|
186
|
+
* This parameter is required.
|
|
187
|
+
*
|
|
188
|
+
* @example
|
|
189
|
+
* 由RFC5322定义的邮件头集合
|
|
190
|
+
*/
|
|
191
|
+
internetMessageHeaders?: { [key: string]: any };
|
|
192
|
+
/**
|
|
193
|
+
* @remarks
|
|
194
|
+
* This parameter is required.
|
|
195
|
+
*
|
|
196
|
+
* @example
|
|
197
|
+
* uniqid@dingtalk.com
|
|
198
|
+
*/
|
|
199
|
+
internetMessageId?: Readable;
|
|
200
|
+
/**
|
|
201
|
+
* @remarks
|
|
202
|
+
* This parameter is required.
|
|
203
|
+
*
|
|
204
|
+
* @example
|
|
205
|
+
* false
|
|
206
|
+
*/
|
|
207
|
+
isForwarded?: boolean;
|
|
208
|
+
/**
|
|
209
|
+
* @remarks
|
|
210
|
+
* This parameter is required.
|
|
211
|
+
*
|
|
212
|
+
* @example
|
|
213
|
+
* false
|
|
214
|
+
*/
|
|
215
|
+
isRead?: boolean;
|
|
216
|
+
/**
|
|
217
|
+
* @remarks
|
|
218
|
+
* This parameter is required.
|
|
219
|
+
*
|
|
220
|
+
* @example
|
|
221
|
+
* false
|
|
222
|
+
*/
|
|
223
|
+
isReadReceiptRequested?: boolean;
|
|
224
|
+
/**
|
|
225
|
+
* @remarks
|
|
226
|
+
* This parameter is required.
|
|
227
|
+
*
|
|
228
|
+
* @example
|
|
229
|
+
* false
|
|
230
|
+
*/
|
|
231
|
+
isReplied?: boolean;
|
|
232
|
+
/**
|
|
233
|
+
* @remarks
|
|
234
|
+
* This parameter is required.
|
|
235
|
+
*
|
|
236
|
+
* @example
|
|
237
|
+
* 2024-10-01T00:00:00Z
|
|
238
|
+
*/
|
|
239
|
+
lastModifiedDateTime?: Readable;
|
|
240
|
+
/**
|
|
241
|
+
* @remarks
|
|
242
|
+
* This parameter is required.
|
|
243
|
+
*
|
|
244
|
+
* @example
|
|
245
|
+
* PRY_NORMAL
|
|
246
|
+
*/
|
|
247
|
+
priority?: Readable;
|
|
248
|
+
/**
|
|
249
|
+
* @remarks
|
|
250
|
+
* This parameter is required.
|
|
251
|
+
*
|
|
252
|
+
* @example
|
|
253
|
+
* 2024-10-01T00:00:00Z
|
|
254
|
+
*/
|
|
255
|
+
receivedDateTime?: Readable;
|
|
256
|
+
/**
|
|
257
|
+
* @remarks
|
|
258
|
+
* This parameter is required.
|
|
259
|
+
*/
|
|
260
|
+
replyTo?: Recipient;
|
|
261
|
+
/**
|
|
262
|
+
* @remarks
|
|
263
|
+
* This parameter is required.
|
|
264
|
+
*
|
|
265
|
+
* @example
|
|
266
|
+
* 2024-10-01T00:00:00Z
|
|
267
|
+
*/
|
|
268
|
+
sentDateTime?: Readable;
|
|
269
|
+
/**
|
|
270
|
+
* @remarks
|
|
271
|
+
* This parameter is required.
|
|
272
|
+
*
|
|
273
|
+
* @example
|
|
274
|
+
* 主题
|
|
275
|
+
*/
|
|
276
|
+
subject?: Readable;
|
|
277
|
+
/**
|
|
278
|
+
* @remarks
|
|
279
|
+
* This parameter is required.
|
|
280
|
+
*
|
|
281
|
+
* @example
|
|
282
|
+
* 一般取邮件正文的前一段
|
|
283
|
+
*/
|
|
284
|
+
summary?: Readable;
|
|
285
|
+
/**
|
|
286
|
+
* @remarks
|
|
287
|
+
* This parameter is required.
|
|
288
|
+
*/
|
|
289
|
+
tags?: string[];
|
|
290
|
+
/**
|
|
291
|
+
* @remarks
|
|
292
|
+
* This parameter is required.
|
|
293
|
+
*/
|
|
294
|
+
toRecipients?: Recipient[];
|
|
59
295
|
static names(): { [key: string]: string } {
|
|
60
296
|
return {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
297
|
+
bccRecipients: 'bccRecipients',
|
|
298
|
+
ccRecipients: 'ccRecipients',
|
|
299
|
+
conversationId: 'conversationId',
|
|
300
|
+
folderId: 'folderId',
|
|
301
|
+
from: 'from',
|
|
302
|
+
hasAttachments: 'hasAttachments',
|
|
303
|
+
id: 'id',
|
|
304
|
+
internetMessageHeaders: 'internetMessageHeaders',
|
|
305
|
+
internetMessageId: 'internetMessageId',
|
|
306
|
+
isForwarded: 'isForwarded',
|
|
307
|
+
isRead: 'isRead',
|
|
308
|
+
isReadReceiptRequested: 'isReadReceiptRequested',
|
|
309
|
+
isReplied: 'isReplied',
|
|
310
|
+
lastModifiedDateTime: 'lastModifiedDateTime',
|
|
311
|
+
priority: 'priority',
|
|
312
|
+
receivedDateTime: 'receivedDateTime',
|
|
313
|
+
replyTo: 'replyTo',
|
|
314
|
+
sentDateTime: 'sentDateTime',
|
|
315
|
+
subject: 'subject',
|
|
316
|
+
summary: 'summary',
|
|
317
|
+
tags: 'tags',
|
|
318
|
+
toRecipients: 'toRecipients',
|
|
65
319
|
};
|
|
66
320
|
}
|
|
67
321
|
|
|
68
322
|
static types(): { [key: string]: any } {
|
|
69
323
|
return {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
324
|
+
bccRecipients: { 'type': 'array', 'itemType': Recipient },
|
|
325
|
+
ccRecipients: { 'type': 'array', 'itemType': Recipient },
|
|
326
|
+
conversationId: 'Readable',
|
|
327
|
+
folderId: 'Readable',
|
|
328
|
+
from: Recipient,
|
|
329
|
+
hasAttachments: 'boolean',
|
|
330
|
+
id: 'Readable',
|
|
331
|
+
internetMessageHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
332
|
+
internetMessageId: 'Readable',
|
|
333
|
+
isForwarded: 'boolean',
|
|
334
|
+
isRead: 'boolean',
|
|
335
|
+
isReadReceiptRequested: 'boolean',
|
|
336
|
+
isReplied: 'boolean',
|
|
337
|
+
lastModifiedDateTime: 'Readable',
|
|
338
|
+
priority: 'Readable',
|
|
339
|
+
receivedDateTime: 'Readable',
|
|
340
|
+
replyTo: Recipient,
|
|
341
|
+
sentDateTime: 'Readable',
|
|
342
|
+
subject: 'Readable',
|
|
343
|
+
summary: 'Readable',
|
|
344
|
+
tags: { 'type': 'array', 'itemType': 'string' },
|
|
345
|
+
toRecipients: { 'type': 'array', 'itemType': Recipient },
|
|
74
346
|
};
|
|
75
347
|
}
|
|
76
348
|
|
|
@@ -79,42 +351,28 @@ export class CreateUserRequest extends $tea.Model {
|
|
|
79
351
|
}
|
|
80
352
|
}
|
|
81
353
|
|
|
82
|
-
export class
|
|
83
|
-
|
|
354
|
+
export class Recipient extends $tea.Model {
|
|
355
|
+
/**
|
|
356
|
+
* @example
|
|
357
|
+
* zhangsan@b.com
|
|
358
|
+
*/
|
|
359
|
+
email?: Readable;
|
|
360
|
+
/**
|
|
361
|
+
* @example
|
|
362
|
+
* ZhangSan
|
|
363
|
+
*/
|
|
364
|
+
name?: Readable;
|
|
84
365
|
static names(): { [key: string]: string } {
|
|
85
366
|
return {
|
|
86
367
|
email: 'email',
|
|
368
|
+
name: 'name',
|
|
87
369
|
};
|
|
88
370
|
}
|
|
89
371
|
|
|
90
372
|
static types(): { [key: string]: any } {
|
|
91
373
|
return {
|
|
92
|
-
email: '
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
constructor(map?: { [key: string]: any }) {
|
|
97
|
-
super(map);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export class CreateUserResponse extends $tea.Model {
|
|
102
|
-
headers?: { [key: string]: string };
|
|
103
|
-
statusCode?: number;
|
|
104
|
-
body?: CreateUserResponseBody;
|
|
105
|
-
static names(): { [key: string]: string } {
|
|
106
|
-
return {
|
|
107
|
-
headers: 'headers',
|
|
108
|
-
statusCode: 'statusCode',
|
|
109
|
-
body: 'body',
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
static types(): { [key: string]: any } {
|
|
114
|
-
return {
|
|
115
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
116
|
-
statusCode: 'number',
|
|
117
|
-
body: CreateUserResponseBody,
|
|
374
|
+
email: 'Readable',
|
|
375
|
+
name: 'Readable',
|
|
118
376
|
};
|
|
119
377
|
}
|
|
120
378
|
|
|
@@ -123,7 +381,7 @@ export class CreateUserResponse extends $tea.Model {
|
|
|
123
381
|
}
|
|
124
382
|
}
|
|
125
383
|
|
|
126
|
-
export class
|
|
384
|
+
export class CreateMailFolderHeaders extends $tea.Model {
|
|
127
385
|
commonHeaders?: { [key: string]: string };
|
|
128
386
|
xAcsDingtalkAccessToken?: string;
|
|
129
387
|
static names(): { [key: string]: string } {
|
|
@@ -145,17 +403,27 @@ export class ListMailFoldersHeaders extends $tea.Model {
|
|
|
145
403
|
}
|
|
146
404
|
}
|
|
147
405
|
|
|
148
|
-
export class
|
|
149
|
-
|
|
406
|
+
export class CreateMailFolderRequest extends $tea.Model {
|
|
407
|
+
/**
|
|
408
|
+
* @remarks
|
|
409
|
+
* This parameter is required.
|
|
410
|
+
*/
|
|
411
|
+
displayName?: string;
|
|
412
|
+
extensions?: { [key: string]: any };
|
|
413
|
+
folerId?: string;
|
|
150
414
|
static names(): { [key: string]: string } {
|
|
151
415
|
return {
|
|
152
|
-
|
|
416
|
+
displayName: 'displayName',
|
|
417
|
+
extensions: 'extensions',
|
|
418
|
+
folerId: 'folerId',
|
|
153
419
|
};
|
|
154
420
|
}
|
|
155
421
|
|
|
156
422
|
static types(): { [key: string]: any } {
|
|
157
423
|
return {
|
|
158
|
-
|
|
424
|
+
displayName: 'string',
|
|
425
|
+
extensions: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
426
|
+
folerId: 'string',
|
|
159
427
|
};
|
|
160
428
|
}
|
|
161
429
|
|
|
@@ -164,17 +432,20 @@ export class ListMailFoldersRequest extends $tea.Model {
|
|
|
164
432
|
}
|
|
165
433
|
}
|
|
166
434
|
|
|
167
|
-
export class
|
|
168
|
-
|
|
435
|
+
export class CreateMailFolderResponseBody extends $tea.Model {
|
|
436
|
+
folder?: CreateMailFolderResponseBodyFolder;
|
|
437
|
+
requestId?: string;
|
|
169
438
|
static names(): { [key: string]: string } {
|
|
170
439
|
return {
|
|
171
|
-
|
|
440
|
+
folder: 'folder',
|
|
441
|
+
requestId: 'requestId',
|
|
172
442
|
};
|
|
173
443
|
}
|
|
174
444
|
|
|
175
445
|
static types(): { [key: string]: any } {
|
|
176
446
|
return {
|
|
177
|
-
|
|
447
|
+
folder: CreateMailFolderResponseBodyFolder,
|
|
448
|
+
requestId: 'string',
|
|
178
449
|
};
|
|
179
450
|
}
|
|
180
451
|
|
|
@@ -183,10 +454,10 @@ export class ListMailFoldersResponseBody extends $tea.Model {
|
|
|
183
454
|
}
|
|
184
455
|
}
|
|
185
456
|
|
|
186
|
-
export class
|
|
457
|
+
export class CreateMailFolderResponse extends $tea.Model {
|
|
187
458
|
headers?: { [key: string]: string };
|
|
188
459
|
statusCode?: number;
|
|
189
|
-
body?:
|
|
460
|
+
body?: CreateMailFolderResponseBody;
|
|
190
461
|
static names(): { [key: string]: string } {
|
|
191
462
|
return {
|
|
192
463
|
headers: 'headers',
|
|
@@ -199,7 +470,7 @@ export class ListMailFoldersResponse extends $tea.Model {
|
|
|
199
470
|
return {
|
|
200
471
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
201
472
|
statusCode: 'number',
|
|
202
|
-
body:
|
|
473
|
+
body: CreateMailFolderResponseBody,
|
|
203
474
|
};
|
|
204
475
|
}
|
|
205
476
|
|
|
@@ -208,107 +479,1706 @@ export class ListMailFoldersResponse extends $tea.Model {
|
|
|
208
479
|
}
|
|
209
480
|
}
|
|
210
481
|
|
|
211
|
-
export class
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
482
|
+
export class CreateMessageHeaders extends $tea.Model {
|
|
483
|
+
commonHeaders?: { [key: string]: string };
|
|
484
|
+
xAcsDingtalkAccessToken?: string;
|
|
485
|
+
static names(): { [key: string]: string } {
|
|
486
|
+
return {
|
|
487
|
+
commonHeaders: 'commonHeaders',
|
|
488
|
+
xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
|
|
489
|
+
};
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
static types(): { [key: string]: any } {
|
|
493
|
+
return {
|
|
494
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
495
|
+
xAcsDingtalkAccessToken: 'string',
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
constructor(map?: { [key: string]: any }) {
|
|
500
|
+
super(map);
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
export class CreateMessageRequest extends $tea.Model {
|
|
505
|
+
message?: DraftMessage;
|
|
506
|
+
static names(): { [key: string]: string } {
|
|
507
|
+
return {
|
|
508
|
+
message: 'message',
|
|
509
|
+
};
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
static types(): { [key: string]: any } {
|
|
513
|
+
return {
|
|
514
|
+
message: DraftMessage,
|
|
515
|
+
};
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
constructor(map?: { [key: string]: any }) {
|
|
519
|
+
super(map);
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
export class CreateMessageResponseBody extends $tea.Model {
|
|
524
|
+
message?: Message;
|
|
525
|
+
requestId?: string;
|
|
526
|
+
static names(): { [key: string]: string } {
|
|
527
|
+
return {
|
|
528
|
+
message: 'message',
|
|
529
|
+
requestId: 'requestId',
|
|
530
|
+
};
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
static types(): { [key: string]: any } {
|
|
534
|
+
return {
|
|
535
|
+
message: Message,
|
|
536
|
+
requestId: 'string',
|
|
537
|
+
};
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
constructor(map?: { [key: string]: any }) {
|
|
541
|
+
super(map);
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
export class CreateMessageResponse extends $tea.Model {
|
|
546
|
+
headers?: { [key: string]: string };
|
|
547
|
+
statusCode?: number;
|
|
548
|
+
body?: CreateMessageResponseBody;
|
|
549
|
+
static names(): { [key: string]: string } {
|
|
550
|
+
return {
|
|
551
|
+
headers: 'headers',
|
|
552
|
+
statusCode: 'statusCode',
|
|
553
|
+
body: 'body',
|
|
554
|
+
};
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
static types(): { [key: string]: any } {
|
|
558
|
+
return {
|
|
559
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
560
|
+
statusCode: 'number',
|
|
561
|
+
body: CreateMessageResponseBody,
|
|
562
|
+
};
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
constructor(map?: { [key: string]: any }) {
|
|
566
|
+
super(map);
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
export class CreateUserHeaders extends $tea.Model {
|
|
571
|
+
commonHeaders?: { [key: string]: string };
|
|
572
|
+
xAcsDingtalkAccessToken?: string;
|
|
573
|
+
static names(): { [key: string]: string } {
|
|
574
|
+
return {
|
|
575
|
+
commonHeaders: 'commonHeaders',
|
|
576
|
+
xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
|
|
577
|
+
};
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
static types(): { [key: string]: any } {
|
|
581
|
+
return {
|
|
582
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
583
|
+
xAcsDingtalkAccessToken: 'string',
|
|
584
|
+
};
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
constructor(map?: { [key: string]: any }) {
|
|
588
|
+
super(map);
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
export class CreateUserRequest extends $tea.Model {
|
|
593
|
+
/**
|
|
594
|
+
* @remarks
|
|
595
|
+
* This parameter is required.
|
|
596
|
+
*
|
|
597
|
+
* @example
|
|
598
|
+
* user@yourcompany.org
|
|
599
|
+
*/
|
|
600
|
+
email?: string;
|
|
601
|
+
/**
|
|
602
|
+
* @remarks
|
|
603
|
+
* This parameter is required.
|
|
604
|
+
*/
|
|
605
|
+
employeeType?: string;
|
|
606
|
+
/**
|
|
607
|
+
* @remarks
|
|
608
|
+
* This parameter is required.
|
|
609
|
+
*/
|
|
610
|
+
name?: string;
|
|
611
|
+
/**
|
|
612
|
+
* @remarks
|
|
613
|
+
* This parameter is required.
|
|
614
|
+
*
|
|
615
|
+
* @example
|
|
616
|
+
* password
|
|
617
|
+
*/
|
|
618
|
+
password?: string;
|
|
619
|
+
static names(): { [key: string]: string } {
|
|
620
|
+
return {
|
|
621
|
+
email: 'email',
|
|
622
|
+
employeeType: 'employeeType',
|
|
623
|
+
name: 'name',
|
|
624
|
+
password: 'password',
|
|
625
|
+
};
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
static types(): { [key: string]: any } {
|
|
629
|
+
return {
|
|
630
|
+
email: 'string',
|
|
631
|
+
employeeType: 'string',
|
|
632
|
+
name: 'string',
|
|
633
|
+
password: 'string',
|
|
634
|
+
};
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
constructor(map?: { [key: string]: any }) {
|
|
638
|
+
super(map);
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
export class CreateUserResponseBody extends $tea.Model {
|
|
643
|
+
email?: string;
|
|
644
|
+
static names(): { [key: string]: string } {
|
|
645
|
+
return {
|
|
646
|
+
email: 'email',
|
|
647
|
+
};
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
static types(): { [key: string]: any } {
|
|
651
|
+
return {
|
|
652
|
+
email: 'string',
|
|
653
|
+
};
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
constructor(map?: { [key: string]: any }) {
|
|
657
|
+
super(map);
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
export class CreateUserResponse extends $tea.Model {
|
|
662
|
+
headers?: { [key: string]: string };
|
|
663
|
+
statusCode?: number;
|
|
664
|
+
body?: CreateUserResponseBody;
|
|
665
|
+
static names(): { [key: string]: string } {
|
|
666
|
+
return {
|
|
667
|
+
headers: 'headers',
|
|
668
|
+
statusCode: 'statusCode',
|
|
669
|
+
body: 'body',
|
|
670
|
+
};
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
static types(): { [key: string]: any } {
|
|
674
|
+
return {
|
|
675
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
676
|
+
statusCode: 'number',
|
|
677
|
+
body: CreateUserResponseBody,
|
|
678
|
+
};
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
constructor(map?: { [key: string]: any }) {
|
|
682
|
+
super(map);
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
export class DeleteMailFolderHeaders extends $tea.Model {
|
|
687
|
+
commonHeaders?: { [key: string]: string };
|
|
688
|
+
xAcsDingtalkAccessToken?: string;
|
|
689
|
+
static names(): { [key: string]: string } {
|
|
690
|
+
return {
|
|
691
|
+
commonHeaders: 'commonHeaders',
|
|
692
|
+
xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
|
|
693
|
+
};
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
static types(): { [key: string]: any } {
|
|
697
|
+
return {
|
|
698
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
699
|
+
xAcsDingtalkAccessToken: 'string',
|
|
700
|
+
};
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
constructor(map?: { [key: string]: any }) {
|
|
704
|
+
super(map);
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
export class DeleteMailFolderResponseBody extends $tea.Model {
|
|
709
|
+
requestId?: string;
|
|
710
|
+
static names(): { [key: string]: string } {
|
|
711
|
+
return {
|
|
712
|
+
requestId: 'requestId',
|
|
713
|
+
};
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
static types(): { [key: string]: any } {
|
|
717
|
+
return {
|
|
718
|
+
requestId: 'string',
|
|
719
|
+
};
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
constructor(map?: { [key: string]: any }) {
|
|
723
|
+
super(map);
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
export class DeleteMailFolderResponse extends $tea.Model {
|
|
728
|
+
headers?: { [key: string]: string };
|
|
729
|
+
statusCode?: number;
|
|
730
|
+
body?: DeleteMailFolderResponseBody;
|
|
731
|
+
static names(): { [key: string]: string } {
|
|
732
|
+
return {
|
|
733
|
+
headers: 'headers',
|
|
734
|
+
statusCode: 'statusCode',
|
|
735
|
+
body: 'body',
|
|
736
|
+
};
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
static types(): { [key: string]: any } {
|
|
740
|
+
return {
|
|
741
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
742
|
+
statusCode: 'number',
|
|
743
|
+
body: DeleteMailFolderResponseBody,
|
|
744
|
+
};
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
constructor(map?: { [key: string]: any }) {
|
|
748
|
+
super(map);
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
export class DeleteMessagesHeaders extends $tea.Model {
|
|
753
|
+
commonHeaders?: { [key: string]: string };
|
|
754
|
+
xAcsDingtalkAccessToken?: string;
|
|
755
|
+
static names(): { [key: string]: string } {
|
|
756
|
+
return {
|
|
757
|
+
commonHeaders: 'commonHeaders',
|
|
758
|
+
xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
|
|
759
|
+
};
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
static types(): { [key: string]: any } {
|
|
763
|
+
return {
|
|
764
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
765
|
+
xAcsDingtalkAccessToken: 'string',
|
|
766
|
+
};
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
constructor(map?: { [key: string]: any }) {
|
|
770
|
+
super(map);
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
export class DeleteMessagesRequest extends $tea.Model {
|
|
775
|
+
deleteType?: string;
|
|
776
|
+
/**
|
|
777
|
+
* @remarks
|
|
778
|
+
* This parameter is required.
|
|
779
|
+
*/
|
|
780
|
+
ids?: string[];
|
|
781
|
+
static names(): { [key: string]: string } {
|
|
782
|
+
return {
|
|
783
|
+
deleteType: 'deleteType',
|
|
784
|
+
ids: 'ids',
|
|
785
|
+
};
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
static types(): { [key: string]: any } {
|
|
789
|
+
return {
|
|
790
|
+
deleteType: 'string',
|
|
791
|
+
ids: { 'type': 'array', 'itemType': 'string' },
|
|
792
|
+
};
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
constructor(map?: { [key: string]: any }) {
|
|
796
|
+
super(map);
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
export class DeleteMessagesResponseBody extends $tea.Model {
|
|
801
|
+
requestId?: string;
|
|
802
|
+
static names(): { [key: string]: string } {
|
|
803
|
+
return {
|
|
804
|
+
requestId: 'requestId',
|
|
805
|
+
};
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
static types(): { [key: string]: any } {
|
|
809
|
+
return {
|
|
810
|
+
requestId: 'string',
|
|
811
|
+
};
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
constructor(map?: { [key: string]: any }) {
|
|
815
|
+
super(map);
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
export class DeleteMessagesResponse extends $tea.Model {
|
|
820
|
+
headers?: { [key: string]: string };
|
|
821
|
+
statusCode?: number;
|
|
822
|
+
body?: DeleteMessagesResponseBody;
|
|
823
|
+
static names(): { [key: string]: string } {
|
|
824
|
+
return {
|
|
825
|
+
headers: 'headers',
|
|
826
|
+
statusCode: 'statusCode',
|
|
827
|
+
body: 'body',
|
|
828
|
+
};
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
static types(): { [key: string]: any } {
|
|
832
|
+
return {
|
|
833
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
834
|
+
statusCode: 'number',
|
|
835
|
+
body: DeleteMessagesResponseBody,
|
|
836
|
+
};
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
constructor(map?: { [key: string]: any }) {
|
|
840
|
+
super(map);
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
export class GetMessageHeaders extends $tea.Model {
|
|
845
|
+
commonHeaders?: { [key: string]: string };
|
|
846
|
+
xAcsDingtalkAccessToken?: string;
|
|
847
|
+
static names(): { [key: string]: string } {
|
|
848
|
+
return {
|
|
849
|
+
commonHeaders: 'commonHeaders',
|
|
850
|
+
xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
|
|
851
|
+
};
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
static types(): { [key: string]: any } {
|
|
855
|
+
return {
|
|
856
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
857
|
+
xAcsDingtalkAccessToken: 'string',
|
|
858
|
+
};
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
constructor(map?: { [key: string]: any }) {
|
|
862
|
+
super(map);
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
export class GetMessageRequest extends $tea.Model {
|
|
867
|
+
selectFields?: string;
|
|
868
|
+
static names(): { [key: string]: string } {
|
|
869
|
+
return {
|
|
870
|
+
selectFields: 'selectFields',
|
|
871
|
+
};
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
static types(): { [key: string]: any } {
|
|
875
|
+
return {
|
|
876
|
+
selectFields: 'string',
|
|
877
|
+
};
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
constructor(map?: { [key: string]: any }) {
|
|
881
|
+
super(map);
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
export class GetMessageResponseBody extends $tea.Model {
|
|
886
|
+
message?: Message;
|
|
887
|
+
requestId?: string;
|
|
888
|
+
static names(): { [key: string]: string } {
|
|
889
|
+
return {
|
|
890
|
+
message: 'message',
|
|
891
|
+
requestId: 'requestId',
|
|
892
|
+
};
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
static types(): { [key: string]: any } {
|
|
896
|
+
return {
|
|
897
|
+
message: Message,
|
|
898
|
+
requestId: 'string',
|
|
899
|
+
};
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
constructor(map?: { [key: string]: any }) {
|
|
903
|
+
super(map);
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
export class GetMessageResponse extends $tea.Model {
|
|
908
|
+
headers?: { [key: string]: string };
|
|
909
|
+
statusCode?: number;
|
|
910
|
+
body?: GetMessageResponseBody;
|
|
911
|
+
static names(): { [key: string]: string } {
|
|
912
|
+
return {
|
|
913
|
+
headers: 'headers',
|
|
914
|
+
statusCode: 'statusCode',
|
|
915
|
+
body: 'body',
|
|
916
|
+
};
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
static types(): { [key: string]: any } {
|
|
920
|
+
return {
|
|
921
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
922
|
+
statusCode: 'number',
|
|
923
|
+
body: GetMessageResponseBody,
|
|
924
|
+
};
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
constructor(map?: { [key: string]: any }) {
|
|
928
|
+
super(map);
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
export class ListMailFoldersHeaders extends $tea.Model {
|
|
933
|
+
commonHeaders?: { [key: string]: string };
|
|
934
|
+
xAcsDingtalkAccessToken?: string;
|
|
935
|
+
static names(): { [key: string]: string } {
|
|
936
|
+
return {
|
|
937
|
+
commonHeaders: 'commonHeaders',
|
|
938
|
+
xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
|
|
939
|
+
};
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
static types(): { [key: string]: any } {
|
|
943
|
+
return {
|
|
944
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
945
|
+
xAcsDingtalkAccessToken: 'string',
|
|
946
|
+
};
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
constructor(map?: { [key: string]: any }) {
|
|
950
|
+
super(map);
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
export class ListMailFoldersRequest extends $tea.Model {
|
|
955
|
+
folderId?: string;
|
|
956
|
+
static names(): { [key: string]: string } {
|
|
957
|
+
return {
|
|
958
|
+
folderId: 'folderId',
|
|
959
|
+
};
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
static types(): { [key: string]: any } {
|
|
963
|
+
return {
|
|
964
|
+
folderId: 'string',
|
|
965
|
+
};
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
constructor(map?: { [key: string]: any }) {
|
|
969
|
+
super(map);
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
export class ListMailFoldersResponseBody extends $tea.Model {
|
|
974
|
+
folders?: ListMailFoldersResponseBodyFolders[];
|
|
975
|
+
static names(): { [key: string]: string } {
|
|
976
|
+
return {
|
|
977
|
+
folders: 'folders',
|
|
978
|
+
};
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
static types(): { [key: string]: any } {
|
|
982
|
+
return {
|
|
983
|
+
folders: { 'type': 'array', 'itemType': ListMailFoldersResponseBodyFolders },
|
|
984
|
+
};
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
constructor(map?: { [key: string]: any }) {
|
|
988
|
+
super(map);
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
export class ListMailFoldersResponse extends $tea.Model {
|
|
993
|
+
headers?: { [key: string]: string };
|
|
994
|
+
statusCode?: number;
|
|
995
|
+
body?: ListMailFoldersResponseBody;
|
|
996
|
+
static names(): { [key: string]: string } {
|
|
997
|
+
return {
|
|
998
|
+
headers: 'headers',
|
|
999
|
+
statusCode: 'statusCode',
|
|
1000
|
+
body: 'body',
|
|
1001
|
+
};
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
static types(): { [key: string]: any } {
|
|
1005
|
+
return {
|
|
1006
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1007
|
+
statusCode: 'number',
|
|
1008
|
+
body: ListMailFoldersResponseBody,
|
|
1009
|
+
};
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
constructor(map?: { [key: string]: any }) {
|
|
1013
|
+
super(map);
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
export class ListMessagesHeaders extends $tea.Model {
|
|
1018
|
+
commonHeaders?: { [key: string]: string };
|
|
1019
|
+
xAcsDingtalkAccessToken?: string;
|
|
1020
|
+
static names(): { [key: string]: string } {
|
|
1021
|
+
return {
|
|
1022
|
+
commonHeaders: 'commonHeaders',
|
|
1023
|
+
xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
|
|
1024
|
+
};
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
static types(): { [key: string]: any } {
|
|
1028
|
+
return {
|
|
1029
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1030
|
+
xAcsDingtalkAccessToken: 'string',
|
|
1031
|
+
};
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
constructor(map?: { [key: string]: any }) {
|
|
1035
|
+
super(map);
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
export class ListMessagesRequest extends $tea.Model {
|
|
1040
|
+
/**
|
|
1041
|
+
* @remarks
|
|
1042
|
+
* This parameter is required.
|
|
1043
|
+
*/
|
|
1044
|
+
maxResults?: number;
|
|
1045
|
+
nextToken?: string;
|
|
1046
|
+
selectFields?: string;
|
|
1047
|
+
static names(): { [key: string]: string } {
|
|
1048
|
+
return {
|
|
1049
|
+
maxResults: 'maxResults',
|
|
1050
|
+
nextToken: 'nextToken',
|
|
1051
|
+
selectFields: 'selectFields',
|
|
1052
|
+
};
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
static types(): { [key: string]: any } {
|
|
1056
|
+
return {
|
|
1057
|
+
maxResults: 'number',
|
|
1058
|
+
nextToken: 'string',
|
|
1059
|
+
selectFields: 'string',
|
|
1060
|
+
};
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
constructor(map?: { [key: string]: any }) {
|
|
1064
|
+
super(map);
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
export class ListMessagesResponseBody extends $tea.Model {
|
|
1069
|
+
hasMore?: boolean;
|
|
1070
|
+
messages?: Message[];
|
|
1071
|
+
nextToken?: string;
|
|
1072
|
+
requestId?: string;
|
|
1073
|
+
static names(): { [key: string]: string } {
|
|
1074
|
+
return {
|
|
1075
|
+
hasMore: 'hasMore',
|
|
1076
|
+
messages: 'messages',
|
|
1077
|
+
nextToken: 'nextToken',
|
|
1078
|
+
requestId: 'requestId',
|
|
1079
|
+
};
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
static types(): { [key: string]: any } {
|
|
1083
|
+
return {
|
|
1084
|
+
hasMore: 'boolean',
|
|
1085
|
+
messages: { 'type': 'array', 'itemType': Message },
|
|
1086
|
+
nextToken: 'string',
|
|
1087
|
+
requestId: 'string',
|
|
1088
|
+
};
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
constructor(map?: { [key: string]: any }) {
|
|
1092
|
+
super(map);
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
export class ListMessagesResponse extends $tea.Model {
|
|
1097
|
+
headers?: { [key: string]: string };
|
|
1098
|
+
statusCode?: number;
|
|
1099
|
+
body?: ListMessagesResponseBody;
|
|
1100
|
+
static names(): { [key: string]: string } {
|
|
1101
|
+
return {
|
|
1102
|
+
headers: 'headers',
|
|
1103
|
+
statusCode: 'statusCode',
|
|
1104
|
+
body: 'body',
|
|
1105
|
+
};
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
static types(): { [key: string]: any } {
|
|
1109
|
+
return {
|
|
1110
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1111
|
+
statusCode: 'number',
|
|
1112
|
+
body: ListMessagesResponseBody,
|
|
1113
|
+
};
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
constructor(map?: { [key: string]: any }) {
|
|
1117
|
+
super(map);
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
export class MoveMailFolderHeaders extends $tea.Model {
|
|
1122
|
+
commonHeaders?: { [key: string]: string };
|
|
1123
|
+
xAcsDingtalkAccessToken?: string;
|
|
1124
|
+
static names(): { [key: string]: string } {
|
|
1125
|
+
return {
|
|
1126
|
+
commonHeaders: 'commonHeaders',
|
|
1127
|
+
xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
|
|
1128
|
+
};
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
static types(): { [key: string]: any } {
|
|
1132
|
+
return {
|
|
1133
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1134
|
+
xAcsDingtalkAccessToken: 'string',
|
|
1135
|
+
};
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
constructor(map?: { [key: string]: any }) {
|
|
1139
|
+
super(map);
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
export class MoveMailFolderRequest extends $tea.Model {
|
|
1144
|
+
destinationFolderId?: string;
|
|
1145
|
+
static names(): { [key: string]: string } {
|
|
1146
|
+
return {
|
|
1147
|
+
destinationFolderId: 'destinationFolderId',
|
|
1148
|
+
};
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
static types(): { [key: string]: any } {
|
|
1152
|
+
return {
|
|
1153
|
+
destinationFolderId: 'string',
|
|
1154
|
+
};
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
constructor(map?: { [key: string]: any }) {
|
|
1158
|
+
super(map);
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
export class MoveMailFolderResponseBody extends $tea.Model {
|
|
1163
|
+
requestId?: string;
|
|
1164
|
+
static names(): { [key: string]: string } {
|
|
1165
|
+
return {
|
|
1166
|
+
requestId: 'requestId',
|
|
1167
|
+
};
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
static types(): { [key: string]: any } {
|
|
1171
|
+
return {
|
|
1172
|
+
requestId: 'string',
|
|
1173
|
+
};
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
constructor(map?: { [key: string]: any }) {
|
|
1177
|
+
super(map);
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
export class MoveMailFolderResponse extends $tea.Model {
|
|
1182
|
+
headers?: { [key: string]: string };
|
|
1183
|
+
statusCode?: number;
|
|
1184
|
+
body?: MoveMailFolderResponseBody;
|
|
1185
|
+
static names(): { [key: string]: string } {
|
|
1186
|
+
return {
|
|
1187
|
+
headers: 'headers',
|
|
1188
|
+
statusCode: 'statusCode',
|
|
1189
|
+
body: 'body',
|
|
1190
|
+
};
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
static types(): { [key: string]: any } {
|
|
1194
|
+
return {
|
|
1195
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1196
|
+
statusCode: 'number',
|
|
1197
|
+
body: MoveMailFolderResponseBody,
|
|
1198
|
+
};
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
constructor(map?: { [key: string]: any }) {
|
|
1202
|
+
super(map);
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
export class SendMessageHeaders extends $tea.Model {
|
|
1207
|
+
commonHeaders?: { [key: string]: string };
|
|
1208
|
+
xAcsDingtalkAccessToken?: string;
|
|
1209
|
+
static names(): { [key: string]: string } {
|
|
1210
|
+
return {
|
|
1211
|
+
commonHeaders: 'commonHeaders',
|
|
1212
|
+
xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
|
|
1213
|
+
};
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
static types(): { [key: string]: any } {
|
|
1217
|
+
return {
|
|
1218
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1219
|
+
xAcsDingtalkAccessToken: 'string',
|
|
1220
|
+
};
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
constructor(map?: { [key: string]: any }) {
|
|
1224
|
+
super(map);
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
export class SendMessageRequest extends $tea.Model {
|
|
1229
|
+
saveToSentItems?: boolean;
|
|
1230
|
+
static names(): { [key: string]: string } {
|
|
1231
|
+
return {
|
|
1232
|
+
saveToSentItems: 'saveToSentItems',
|
|
1233
|
+
};
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
static types(): { [key: string]: any } {
|
|
1237
|
+
return {
|
|
1238
|
+
saveToSentItems: 'boolean',
|
|
1239
|
+
};
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
constructor(map?: { [key: string]: any }) {
|
|
1243
|
+
super(map);
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
export class SendMessageResponseBody extends $tea.Model {
|
|
1248
|
+
requestId?: string;
|
|
1249
|
+
static names(): { [key: string]: string } {
|
|
1250
|
+
return {
|
|
1251
|
+
requestId: 'requestId',
|
|
1252
|
+
};
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
static types(): { [key: string]: any } {
|
|
1256
|
+
return {
|
|
1257
|
+
requestId: 'string',
|
|
1258
|
+
};
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
constructor(map?: { [key: string]: any }) {
|
|
1262
|
+
super(map);
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
export class SendMessageResponse extends $tea.Model {
|
|
1267
|
+
headers?: { [key: string]: string };
|
|
1268
|
+
statusCode?: number;
|
|
1269
|
+
body?: SendMessageResponseBody;
|
|
1270
|
+
static names(): { [key: string]: string } {
|
|
1271
|
+
return {
|
|
1272
|
+
headers: 'headers',
|
|
1273
|
+
statusCode: 'statusCode',
|
|
1274
|
+
body: 'body',
|
|
1275
|
+
};
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
static types(): { [key: string]: any } {
|
|
1279
|
+
return {
|
|
1280
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1281
|
+
statusCode: 'number',
|
|
1282
|
+
body: SendMessageResponseBody,
|
|
1283
|
+
};
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
constructor(map?: { [key: string]: any }) {
|
|
1287
|
+
super(map);
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
export class UpdateMailFolderHeaders extends $tea.Model {
|
|
1292
|
+
commonHeaders?: { [key: string]: string };
|
|
1293
|
+
xAcsDingtalkAccessToken?: string;
|
|
1294
|
+
static names(): { [key: string]: string } {
|
|
1295
|
+
return {
|
|
1296
|
+
commonHeaders: 'commonHeaders',
|
|
1297
|
+
xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
|
|
1298
|
+
};
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
static types(): { [key: string]: any } {
|
|
1302
|
+
return {
|
|
1303
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1304
|
+
xAcsDingtalkAccessToken: 'string',
|
|
1305
|
+
};
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
constructor(map?: { [key: string]: any }) {
|
|
1309
|
+
super(map);
|
|
1310
|
+
}
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
export class UpdateMailFolderRequest extends $tea.Model {
|
|
1314
|
+
displayName?: string;
|
|
1315
|
+
static names(): { [key: string]: string } {
|
|
1316
|
+
return {
|
|
1317
|
+
displayName: 'displayName',
|
|
1318
|
+
};
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
static types(): { [key: string]: any } {
|
|
1322
|
+
return {
|
|
1323
|
+
displayName: 'string',
|
|
1324
|
+
};
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
constructor(map?: { [key: string]: any }) {
|
|
1328
|
+
super(map);
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
export class UpdateMailFolderResponseBody extends $tea.Model {
|
|
1333
|
+
requestId?: string;
|
|
1334
|
+
static names(): { [key: string]: string } {
|
|
1335
|
+
return {
|
|
1336
|
+
requestId: 'requestId',
|
|
1337
|
+
};
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
static types(): { [key: string]: any } {
|
|
1341
|
+
return {
|
|
1342
|
+
requestId: 'string',
|
|
1343
|
+
};
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
constructor(map?: { [key: string]: any }) {
|
|
1347
|
+
super(map);
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
export class UpdateMailFolderResponse extends $tea.Model {
|
|
1352
|
+
headers?: { [key: string]: string };
|
|
1353
|
+
statusCode?: number;
|
|
1354
|
+
body?: UpdateMailFolderResponseBody;
|
|
1355
|
+
static names(): { [key: string]: string } {
|
|
1356
|
+
return {
|
|
1357
|
+
headers: 'headers',
|
|
1358
|
+
statusCode: 'statusCode',
|
|
1359
|
+
body: 'body',
|
|
1360
|
+
};
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
static types(): { [key: string]: any } {
|
|
1364
|
+
return {
|
|
1365
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1366
|
+
statusCode: 'number',
|
|
1367
|
+
body: UpdateMailFolderResponseBody,
|
|
1368
|
+
};
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
constructor(map?: { [key: string]: any }) {
|
|
1372
|
+
super(map);
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
export class UpdateMessageHeaders extends $tea.Model {
|
|
1377
|
+
commonHeaders?: { [key: string]: string };
|
|
1378
|
+
xAcsDingtalkAccessToken?: string;
|
|
1379
|
+
static names(): { [key: string]: string } {
|
|
1380
|
+
return {
|
|
1381
|
+
commonHeaders: 'commonHeaders',
|
|
1382
|
+
xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
|
|
1383
|
+
};
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
static types(): { [key: string]: any } {
|
|
1387
|
+
return {
|
|
1388
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1389
|
+
xAcsDingtalkAccessToken: 'string',
|
|
1390
|
+
};
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
constructor(map?: { [key: string]: any }) {
|
|
1394
|
+
super(map);
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
export class UpdateMessageRequest extends $tea.Model {
|
|
1399
|
+
message?: DraftMessage;
|
|
1400
|
+
static names(): { [key: string]: string } {
|
|
1401
|
+
return {
|
|
1402
|
+
message: 'message',
|
|
1403
|
+
};
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
static types(): { [key: string]: any } {
|
|
1407
|
+
return {
|
|
1408
|
+
message: DraftMessage,
|
|
1409
|
+
};
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
constructor(map?: { [key: string]: any }) {
|
|
1413
|
+
super(map);
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
export class UpdateMessageResponseBody extends $tea.Model {
|
|
1418
|
+
message?: Message;
|
|
1419
|
+
requestId?: string;
|
|
1420
|
+
static names(): { [key: string]: string } {
|
|
1421
|
+
return {
|
|
1422
|
+
message: 'message',
|
|
1423
|
+
requestId: 'requestId',
|
|
1424
|
+
};
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
static types(): { [key: string]: any } {
|
|
1428
|
+
return {
|
|
1429
|
+
message: Message,
|
|
1430
|
+
requestId: 'string',
|
|
1431
|
+
};
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
constructor(map?: { [key: string]: any }) {
|
|
1435
|
+
super(map);
|
|
1436
|
+
}
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
export class UpdateMessageResponse extends $tea.Model {
|
|
1440
|
+
headers?: { [key: string]: string };
|
|
1441
|
+
statusCode?: number;
|
|
1442
|
+
body?: UpdateMessageResponseBody;
|
|
1443
|
+
static names(): { [key: string]: string } {
|
|
1444
|
+
return {
|
|
1445
|
+
headers: 'headers',
|
|
1446
|
+
statusCode: 'statusCode',
|
|
1447
|
+
body: 'body',
|
|
1448
|
+
};
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
static types(): { [key: string]: any } {
|
|
1452
|
+
return {
|
|
1453
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1454
|
+
statusCode: 'number',
|
|
1455
|
+
body: UpdateMessageResponseBody,
|
|
1456
|
+
};
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
constructor(map?: { [key: string]: any }) {
|
|
1460
|
+
super(map);
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
export class DraftMessageBody extends $tea.Model {
|
|
1465
|
+
/**
|
|
1466
|
+
* @remarks
|
|
1467
|
+
* This parameter is required.
|
|
1468
|
+
*/
|
|
1469
|
+
bodyHtml?: Readable;
|
|
1470
|
+
/**
|
|
1471
|
+
* @remarks
|
|
1472
|
+
* This parameter is required.
|
|
1473
|
+
*/
|
|
1474
|
+
bodyText?: Readable;
|
|
1475
|
+
static names(): { [key: string]: string } {
|
|
1476
|
+
return {
|
|
1477
|
+
bodyHtml: 'bodyHtml',
|
|
1478
|
+
bodyText: 'bodyText',
|
|
1479
|
+
};
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
static types(): { [key: string]: any } {
|
|
1483
|
+
return {
|
|
1484
|
+
bodyHtml: 'Readable',
|
|
1485
|
+
bodyText: 'Readable',
|
|
1486
|
+
};
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
constructor(map?: { [key: string]: any }) {
|
|
1490
|
+
super(map);
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
export class CreateMailFolderResponseBodyFolder extends $tea.Model {
|
|
1495
|
+
childFolderCount?: number;
|
|
1496
|
+
displayName?: string;
|
|
1497
|
+
extensions?: { [key: string]: any };
|
|
1498
|
+
id?: string;
|
|
1499
|
+
parentFolderId?: string;
|
|
1500
|
+
totalItemCount?: number;
|
|
1501
|
+
unreadItemCount?: number;
|
|
1502
|
+
static names(): { [key: string]: string } {
|
|
1503
|
+
return {
|
|
1504
|
+
childFolderCount: 'childFolderCount',
|
|
1505
|
+
displayName: 'displayName',
|
|
1506
|
+
extensions: 'extensions',
|
|
1507
|
+
id: 'id',
|
|
1508
|
+
parentFolderId: 'parentFolderId',
|
|
1509
|
+
totalItemCount: 'totalItemCount',
|
|
1510
|
+
unreadItemCount: 'unreadItemCount',
|
|
1511
|
+
};
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
static types(): { [key: string]: any } {
|
|
1515
|
+
return {
|
|
1516
|
+
childFolderCount: 'number',
|
|
1517
|
+
displayName: 'string',
|
|
1518
|
+
extensions: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
1519
|
+
id: 'string',
|
|
1520
|
+
parentFolderId: 'string',
|
|
1521
|
+
totalItemCount: 'number',
|
|
1522
|
+
unreadItemCount: 'number',
|
|
1523
|
+
};
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
constructor(map?: { [key: string]: any }) {
|
|
1527
|
+
super(map);
|
|
1528
|
+
}
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1531
|
+
export class ListMailFoldersResponseBodyFolders extends $tea.Model {
|
|
1532
|
+
/**
|
|
1533
|
+
* @remarks
|
|
1534
|
+
* This parameter is required.
|
|
1535
|
+
*/
|
|
1536
|
+
childFolderCount?: number;
|
|
1537
|
+
/**
|
|
1538
|
+
* @remarks
|
|
1539
|
+
* This parameter is required.
|
|
1540
|
+
*/
|
|
1541
|
+
displayName?: string;
|
|
1542
|
+
extensions?: { [key: string]: string };
|
|
1543
|
+
/**
|
|
1544
|
+
* @remarks
|
|
1545
|
+
* This parameter is required.
|
|
1546
|
+
*/
|
|
1547
|
+
id?: string;
|
|
1548
|
+
/**
|
|
1549
|
+
* @remarks
|
|
1550
|
+
* This parameter is required.
|
|
1551
|
+
*/
|
|
1552
|
+
parentFolderId?: string;
|
|
1553
|
+
/**
|
|
1554
|
+
* @remarks
|
|
1555
|
+
* This parameter is required.
|
|
1556
|
+
*/
|
|
1557
|
+
totalItemCount?: number;
|
|
1558
|
+
/**
|
|
1559
|
+
* @remarks
|
|
1560
|
+
* This parameter is required.
|
|
1561
|
+
*/
|
|
1562
|
+
unreadItemCount?: number;
|
|
1563
|
+
static names(): { [key: string]: string } {
|
|
1564
|
+
return {
|
|
1565
|
+
childFolderCount: 'childFolderCount',
|
|
1566
|
+
displayName: 'displayName',
|
|
1567
|
+
extensions: 'extensions',
|
|
1568
|
+
id: 'id',
|
|
1569
|
+
parentFolderId: 'parentFolderId',
|
|
1570
|
+
totalItemCount: 'totalItemCount',
|
|
1571
|
+
unreadItemCount: 'unreadItemCount',
|
|
1572
|
+
};
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
static types(): { [key: string]: any } {
|
|
1576
|
+
return {
|
|
1577
|
+
childFolderCount: 'number',
|
|
1578
|
+
displayName: 'string',
|
|
1579
|
+
extensions: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1580
|
+
id: 'string',
|
|
1581
|
+
parentFolderId: 'string',
|
|
1582
|
+
totalItemCount: 'number',
|
|
1583
|
+
unreadItemCount: 'number',
|
|
1584
|
+
};
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
constructor(map?: { [key: string]: any }) {
|
|
1588
|
+
super(map);
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1592
|
+
|
|
1593
|
+
export default class Client extends OpenApi {
|
|
1594
|
+
|
|
1595
|
+
constructor(config: $OpenApi.Config) {
|
|
1596
|
+
super(config);
|
|
1597
|
+
let gatewayClient = new GatewayClient();
|
|
1598
|
+
this._spi = gatewayClient;
|
|
1599
|
+
this._endpointRule = "";
|
|
1600
|
+
if (Util.empty(this._endpoint)) {
|
|
1601
|
+
this._endpoint = "api.dingtalk.com";
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
|
|
1607
|
+
/**
|
|
1608
|
+
* 创建邮件文件夹
|
|
1609
|
+
*
|
|
1610
|
+
* @param request - CreateMailFolderRequest
|
|
1611
|
+
* @param headers - CreateMailFolderHeaders
|
|
1612
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1613
|
+
* @returns CreateMailFolderResponse
|
|
1614
|
+
*/
|
|
1615
|
+
async createMailFolderWithOptions(email: string, request: CreateMailFolderRequest, headers: CreateMailFolderHeaders, runtime: $Util.RuntimeOptions): Promise<CreateMailFolderResponse> {
|
|
1616
|
+
Util.validateModel(request);
|
|
1617
|
+
let body : {[key: string ]: any} = { };
|
|
1618
|
+
if (!Util.isUnset(request.displayName)) {
|
|
1619
|
+
body["displayName"] = request.displayName;
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
if (!Util.isUnset(request.extensions)) {
|
|
1623
|
+
body["extensions"] = request.extensions;
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
if (!Util.isUnset(request.folerId)) {
|
|
1627
|
+
body["folerId"] = request.folerId;
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
1631
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
1632
|
+
realHeaders = headers.commonHeaders;
|
|
1633
|
+
}
|
|
1634
|
+
|
|
1635
|
+
if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) {
|
|
1636
|
+
realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken);
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1640
|
+
headers: realHeaders,
|
|
1641
|
+
body: OpenApiUtil.parseToMap(body),
|
|
1642
|
+
});
|
|
1643
|
+
let params = new $OpenApi.Params({
|
|
1644
|
+
action: "CreateMailFolder",
|
|
1645
|
+
version: "mail_1.0",
|
|
1646
|
+
protocol: "HTTP",
|
|
1647
|
+
pathname: `/v1.0/mail/users/${email}/mailFolders`,
|
|
1648
|
+
method: "POST",
|
|
1649
|
+
authType: "AK",
|
|
1650
|
+
style: "ROA",
|
|
1651
|
+
reqBodyType: "none",
|
|
1652
|
+
bodyType: "json",
|
|
1653
|
+
});
|
|
1654
|
+
return $tea.cast<CreateMailFolderResponse>(await this.execute(params, req, runtime), new CreateMailFolderResponse({}));
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1657
|
+
/**
|
|
1658
|
+
* 创建邮件文件夹
|
|
1659
|
+
*
|
|
1660
|
+
* @param request - CreateMailFolderRequest
|
|
1661
|
+
* @returns CreateMailFolderResponse
|
|
1662
|
+
*/
|
|
1663
|
+
async createMailFolder(email: string, request: CreateMailFolderRequest): Promise<CreateMailFolderResponse> {
|
|
1664
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
1665
|
+
let headers = new CreateMailFolderHeaders({ });
|
|
1666
|
+
return await this.createMailFolderWithOptions(email, request, headers, runtime);
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
/**
|
|
1670
|
+
* 创建草稿
|
|
1671
|
+
*
|
|
1672
|
+
* @param request - CreateMessageRequest
|
|
1673
|
+
* @param headers - CreateMessageHeaders
|
|
1674
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1675
|
+
* @returns CreateMessageResponse
|
|
1676
|
+
*/
|
|
1677
|
+
async createMessageWithOptions(email: string, request: CreateMessageRequest, headers: CreateMessageHeaders, runtime: $Util.RuntimeOptions): Promise<CreateMessageResponse> {
|
|
1678
|
+
Util.validateModel(request);
|
|
1679
|
+
let body : {[key: string ]: any} = { };
|
|
1680
|
+
if (!Util.isUnset(request.message)) {
|
|
1681
|
+
body["message"] = request.message;
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
1685
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
1686
|
+
realHeaders = headers.commonHeaders;
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1689
|
+
if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) {
|
|
1690
|
+
realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken);
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1694
|
+
headers: realHeaders,
|
|
1695
|
+
body: OpenApiUtil.parseToMap(body),
|
|
1696
|
+
});
|
|
1697
|
+
let params = new $OpenApi.Params({
|
|
1698
|
+
action: "CreateMessage",
|
|
1699
|
+
version: "mail_1.0",
|
|
1700
|
+
protocol: "HTTP",
|
|
1701
|
+
pathname: `/v1.0/mail/users/${email}/messages`,
|
|
1702
|
+
method: "POST",
|
|
1703
|
+
authType: "AK",
|
|
1704
|
+
style: "ROA",
|
|
1705
|
+
reqBodyType: "none",
|
|
1706
|
+
bodyType: "json",
|
|
1707
|
+
});
|
|
1708
|
+
return $tea.cast<CreateMessageResponse>(await this.execute(params, req, runtime), new CreateMessageResponse({}));
|
|
1709
|
+
}
|
|
1710
|
+
|
|
1711
|
+
/**
|
|
1712
|
+
* 创建草稿
|
|
1713
|
+
*
|
|
1714
|
+
* @param request - CreateMessageRequest
|
|
1715
|
+
* @returns CreateMessageResponse
|
|
1716
|
+
*/
|
|
1717
|
+
async createMessage(email: string, request: CreateMessageRequest): Promise<CreateMessageResponse> {
|
|
1718
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
1719
|
+
let headers = new CreateMessageHeaders({ });
|
|
1720
|
+
return await this.createMessageWithOptions(email, request, headers, runtime);
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
/**
|
|
1724
|
+
* 创建企业邮箱用户
|
|
1725
|
+
*
|
|
1726
|
+
* @param request - CreateUserRequest
|
|
1727
|
+
* @param headers - CreateUserHeaders
|
|
1728
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1729
|
+
* @returns CreateUserResponse
|
|
1730
|
+
*/
|
|
1731
|
+
async createUserWithOptions(request: CreateUserRequest, headers: CreateUserHeaders, runtime: $Util.RuntimeOptions): Promise<CreateUserResponse> {
|
|
1732
|
+
Util.validateModel(request);
|
|
1733
|
+
let body : {[key: string ]: any} = { };
|
|
1734
|
+
if (!Util.isUnset(request.email)) {
|
|
1735
|
+
body["email"] = request.email;
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
if (!Util.isUnset(request.employeeType)) {
|
|
1739
|
+
body["employeeType"] = request.employeeType;
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1742
|
+
if (!Util.isUnset(request.name)) {
|
|
1743
|
+
body["name"] = request.name;
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1746
|
+
if (!Util.isUnset(request.password)) {
|
|
1747
|
+
body["password"] = request.password;
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1750
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
1751
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
1752
|
+
realHeaders = headers.commonHeaders;
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) {
|
|
1756
|
+
realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken);
|
|
1757
|
+
}
|
|
1758
|
+
|
|
1759
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1760
|
+
headers: realHeaders,
|
|
1761
|
+
body: OpenApiUtil.parseToMap(body),
|
|
1762
|
+
});
|
|
1763
|
+
let params = new $OpenApi.Params({
|
|
1764
|
+
action: "CreateUser",
|
|
1765
|
+
version: "mail_1.0",
|
|
1766
|
+
protocol: "HTTP",
|
|
1767
|
+
pathname: `/v1.0/mail/users`,
|
|
1768
|
+
method: "POST",
|
|
1769
|
+
authType: "AK",
|
|
1770
|
+
style: "ROA",
|
|
1771
|
+
reqBodyType: "none",
|
|
1772
|
+
bodyType: "json",
|
|
1773
|
+
});
|
|
1774
|
+
return $tea.cast<CreateUserResponse>(await this.execute(params, req, runtime), new CreateUserResponse({}));
|
|
1775
|
+
}
|
|
1776
|
+
|
|
1777
|
+
/**
|
|
1778
|
+
* 创建企业邮箱用户
|
|
1779
|
+
*
|
|
1780
|
+
* @param request - CreateUserRequest
|
|
1781
|
+
* @returns CreateUserResponse
|
|
1782
|
+
*/
|
|
1783
|
+
async createUser(request: CreateUserRequest): Promise<CreateUserResponse> {
|
|
1784
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
1785
|
+
let headers = new CreateUserHeaders({ });
|
|
1786
|
+
return await this.createUserWithOptions(request, headers, runtime);
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1789
|
+
/**
|
|
1790
|
+
* 删除文件夹
|
|
1791
|
+
*
|
|
1792
|
+
* @param headers - DeleteMailFolderHeaders
|
|
1793
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1794
|
+
* @returns DeleteMailFolderResponse
|
|
1795
|
+
*/
|
|
1796
|
+
async deleteMailFolderWithOptions(email: string, id: string, headers: DeleteMailFolderHeaders, runtime: $Util.RuntimeOptions): Promise<DeleteMailFolderResponse> {
|
|
1797
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
1798
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
1799
|
+
realHeaders = headers.commonHeaders;
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) {
|
|
1803
|
+
realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken);
|
|
1804
|
+
}
|
|
1805
|
+
|
|
1806
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1807
|
+
headers: realHeaders,
|
|
1808
|
+
});
|
|
1809
|
+
let params = new $OpenApi.Params({
|
|
1810
|
+
action: "DeleteMailFolder",
|
|
1811
|
+
version: "mail_1.0",
|
|
1812
|
+
protocol: "HTTP",
|
|
1813
|
+
pathname: `/v1.0/mail/users/${email}/mailFolders/${id}`,
|
|
1814
|
+
method: "DELETE",
|
|
1815
|
+
authType: "AK",
|
|
1816
|
+
style: "ROA",
|
|
1817
|
+
reqBodyType: "none",
|
|
1818
|
+
bodyType: "json",
|
|
1819
|
+
});
|
|
1820
|
+
return $tea.cast<DeleteMailFolderResponse>(await this.execute(params, req, runtime), new DeleteMailFolderResponse({}));
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
/**
|
|
1824
|
+
* 删除文件夹
|
|
1825
|
+
* @returns DeleteMailFolderResponse
|
|
1826
|
+
*/
|
|
1827
|
+
async deleteMailFolder(email: string, id: string): Promise<DeleteMailFolderResponse> {
|
|
1828
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
1829
|
+
let headers = new DeleteMailFolderHeaders({ });
|
|
1830
|
+
return await this.deleteMailFolderWithOptions(email, id, headers, runtime);
|
|
1831
|
+
}
|
|
1832
|
+
|
|
1833
|
+
/**
|
|
1834
|
+
* 批量删除邮件
|
|
1835
|
+
*
|
|
1836
|
+
* @param request - DeleteMessagesRequest
|
|
1837
|
+
* @param headers - DeleteMessagesHeaders
|
|
1838
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1839
|
+
* @returns DeleteMessagesResponse
|
|
1840
|
+
*/
|
|
1841
|
+
async deleteMessagesWithOptions(email: string, request: DeleteMessagesRequest, headers: DeleteMessagesHeaders, runtime: $Util.RuntimeOptions): Promise<DeleteMessagesResponse> {
|
|
1842
|
+
Util.validateModel(request);
|
|
1843
|
+
let body : {[key: string ]: any} = { };
|
|
1844
|
+
if (!Util.isUnset(request.deleteType)) {
|
|
1845
|
+
body["deleteType"] = request.deleteType;
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1848
|
+
if (!Util.isUnset(request.ids)) {
|
|
1849
|
+
body["ids"] = request.ids;
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
1853
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
1854
|
+
realHeaders = headers.commonHeaders;
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1857
|
+
if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) {
|
|
1858
|
+
realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken);
|
|
1859
|
+
}
|
|
1860
|
+
|
|
1861
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1862
|
+
headers: realHeaders,
|
|
1863
|
+
body: OpenApiUtil.parseToMap(body),
|
|
1864
|
+
});
|
|
1865
|
+
let params = new $OpenApi.Params({
|
|
1866
|
+
action: "DeleteMessages",
|
|
1867
|
+
version: "mail_1.0",
|
|
1868
|
+
protocol: "HTTP",
|
|
1869
|
+
pathname: `/v1.0/mail/users/${email}/messages/batchDelete`,
|
|
1870
|
+
method: "POST",
|
|
1871
|
+
authType: "AK",
|
|
1872
|
+
style: "ROA",
|
|
1873
|
+
reqBodyType: "none",
|
|
1874
|
+
bodyType: "json",
|
|
1875
|
+
});
|
|
1876
|
+
return $tea.cast<DeleteMessagesResponse>(await this.execute(params, req, runtime), new DeleteMessagesResponse({}));
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
/**
|
|
1880
|
+
* 批量删除邮件
|
|
1881
|
+
*
|
|
1882
|
+
* @param request - DeleteMessagesRequest
|
|
1883
|
+
* @returns DeleteMessagesResponse
|
|
1884
|
+
*/
|
|
1885
|
+
async deleteMessages(email: string, request: DeleteMessagesRequest): Promise<DeleteMessagesResponse> {
|
|
1886
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
1887
|
+
let headers = new DeleteMessagesHeaders({ });
|
|
1888
|
+
return await this.deleteMessagesWithOptions(email, request, headers, runtime);
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1891
|
+
/**
|
|
1892
|
+
* 获取邮件元数据
|
|
1893
|
+
*
|
|
1894
|
+
* @param request - GetMessageRequest
|
|
1895
|
+
* @param headers - GetMessageHeaders
|
|
1896
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1897
|
+
* @returns GetMessageResponse
|
|
1898
|
+
*/
|
|
1899
|
+
async getMessageWithOptions(email: string, id: string, request: GetMessageRequest, headers: GetMessageHeaders, runtime: $Util.RuntimeOptions): Promise<GetMessageResponse> {
|
|
1900
|
+
Util.validateModel(request);
|
|
1901
|
+
let query : {[key: string ]: any} = { };
|
|
1902
|
+
if (!Util.isUnset(request.selectFields)) {
|
|
1903
|
+
query["selectFields"] = request.selectFields;
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
1907
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
1908
|
+
realHeaders = headers.commonHeaders;
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) {
|
|
1912
|
+
realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken);
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1915
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1916
|
+
headers: realHeaders,
|
|
1917
|
+
query: OpenApiUtil.query(query),
|
|
1918
|
+
});
|
|
1919
|
+
let params = new $OpenApi.Params({
|
|
1920
|
+
action: "GetMessage",
|
|
1921
|
+
version: "mail_1.0",
|
|
1922
|
+
protocol: "HTTP",
|
|
1923
|
+
pathname: `/v1.0/mail/users/${email}/messages/${id}`,
|
|
1924
|
+
method: "GET",
|
|
1925
|
+
authType: "AK",
|
|
1926
|
+
style: "ROA",
|
|
1927
|
+
reqBodyType: "none",
|
|
1928
|
+
bodyType: "json",
|
|
1929
|
+
});
|
|
1930
|
+
return $tea.cast<GetMessageResponse>(await this.execute(params, req, runtime), new GetMessageResponse({}));
|
|
1931
|
+
}
|
|
1932
|
+
|
|
223
1933
|
/**
|
|
224
|
-
*
|
|
225
|
-
*
|
|
1934
|
+
* 获取邮件元数据
|
|
1935
|
+
*
|
|
1936
|
+
* @param request - GetMessageRequest
|
|
1937
|
+
* @returns GetMessageResponse
|
|
226
1938
|
*/
|
|
227
|
-
id
|
|
1939
|
+
async getMessage(email: string, id: string, request: GetMessageRequest): Promise<GetMessageResponse> {
|
|
1940
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
1941
|
+
let headers = new GetMessageHeaders({ });
|
|
1942
|
+
return await this.getMessageWithOptions(email, id, request, headers, runtime);
|
|
1943
|
+
}
|
|
1944
|
+
|
|
228
1945
|
/**
|
|
229
|
-
*
|
|
230
|
-
*
|
|
1946
|
+
* 获取指定文件夹的子文件夹列表
|
|
1947
|
+
*
|
|
1948
|
+
* @param request - ListMailFoldersRequest
|
|
1949
|
+
* @param headers - ListMailFoldersHeaders
|
|
1950
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1951
|
+
* @returns ListMailFoldersResponse
|
|
231
1952
|
*/
|
|
232
|
-
|
|
1953
|
+
async listMailFoldersWithOptions(email: string, request: ListMailFoldersRequest, headers: ListMailFoldersHeaders, runtime: $Util.RuntimeOptions): Promise<ListMailFoldersResponse> {
|
|
1954
|
+
Util.validateModel(request);
|
|
1955
|
+
let query : {[key: string ]: any} = { };
|
|
1956
|
+
if (!Util.isUnset(request.folderId)) {
|
|
1957
|
+
query["folderId"] = request.folderId;
|
|
1958
|
+
}
|
|
1959
|
+
|
|
1960
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
1961
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
1962
|
+
realHeaders = headers.commonHeaders;
|
|
1963
|
+
}
|
|
1964
|
+
|
|
1965
|
+
if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) {
|
|
1966
|
+
realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken);
|
|
1967
|
+
}
|
|
1968
|
+
|
|
1969
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1970
|
+
headers: realHeaders,
|
|
1971
|
+
query: OpenApiUtil.query(query),
|
|
1972
|
+
});
|
|
1973
|
+
let params = new $OpenApi.Params({
|
|
1974
|
+
action: "ListMailFolders",
|
|
1975
|
+
version: "mail_1.0",
|
|
1976
|
+
protocol: "HTTP",
|
|
1977
|
+
pathname: `/v1.0/mail/users/${email}/mailFolders`,
|
|
1978
|
+
method: "GET",
|
|
1979
|
+
authType: "AK",
|
|
1980
|
+
style: "ROA",
|
|
1981
|
+
reqBodyType: "none",
|
|
1982
|
+
bodyType: "json",
|
|
1983
|
+
});
|
|
1984
|
+
return $tea.cast<ListMailFoldersResponse>(await this.execute(params, req, runtime), new ListMailFoldersResponse({}));
|
|
1985
|
+
}
|
|
1986
|
+
|
|
233
1987
|
/**
|
|
234
|
-
*
|
|
235
|
-
*
|
|
1988
|
+
* 获取指定文件夹的子文件夹列表
|
|
1989
|
+
*
|
|
1990
|
+
* @param request - ListMailFoldersRequest
|
|
1991
|
+
* @returns ListMailFoldersResponse
|
|
236
1992
|
*/
|
|
237
|
-
|
|
1993
|
+
async listMailFolders(email: string, request: ListMailFoldersRequest): Promise<ListMailFoldersResponse> {
|
|
1994
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
1995
|
+
let headers = new ListMailFoldersHeaders({ });
|
|
1996
|
+
return await this.listMailFoldersWithOptions(email, request, headers, runtime);
|
|
1997
|
+
}
|
|
1998
|
+
|
|
238
1999
|
/**
|
|
239
|
-
*
|
|
240
|
-
*
|
|
2000
|
+
* 获取邮件列表
|
|
2001
|
+
*
|
|
2002
|
+
* @param request - ListMessagesRequest
|
|
2003
|
+
* @param headers - ListMessagesHeaders
|
|
2004
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2005
|
+
* @returns ListMessagesResponse
|
|
241
2006
|
*/
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
id: 'id',
|
|
249
|
-
parentFolderId: 'parentFolderId',
|
|
250
|
-
totalItemCount: 'totalItemCount',
|
|
251
|
-
unreadItemCount: 'unreadItemCount',
|
|
252
|
-
};
|
|
253
|
-
}
|
|
2007
|
+
async listMessagesWithOptions(email: string, folderId: string, request: ListMessagesRequest, headers: ListMessagesHeaders, runtime: $Util.RuntimeOptions): Promise<ListMessagesResponse> {
|
|
2008
|
+
Util.validateModel(request);
|
|
2009
|
+
let query : {[key: string ]: any} = { };
|
|
2010
|
+
if (!Util.isUnset(request.maxResults)) {
|
|
2011
|
+
query["maxResults"] = request.maxResults;
|
|
2012
|
+
}
|
|
254
2013
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
2014
|
+
if (!Util.isUnset(request.nextToken)) {
|
|
2015
|
+
query["nextToken"] = request.nextToken;
|
|
2016
|
+
}
|
|
2017
|
+
|
|
2018
|
+
if (!Util.isUnset(request.selectFields)) {
|
|
2019
|
+
query["selectFields"] = request.selectFields;
|
|
2020
|
+
}
|
|
2021
|
+
|
|
2022
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
2023
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
2024
|
+
realHeaders = headers.commonHeaders;
|
|
2025
|
+
}
|
|
2026
|
+
|
|
2027
|
+
if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) {
|
|
2028
|
+
realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken);
|
|
2029
|
+
}
|
|
2030
|
+
|
|
2031
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2032
|
+
headers: realHeaders,
|
|
2033
|
+
query: OpenApiUtil.query(query),
|
|
2034
|
+
});
|
|
2035
|
+
let params = new $OpenApi.Params({
|
|
2036
|
+
action: "ListMessages",
|
|
2037
|
+
version: "mail_1.0",
|
|
2038
|
+
protocol: "HTTP",
|
|
2039
|
+
pathname: `/v1.0/mail/users/${email}/mailFolders/${folderId}/messages`,
|
|
2040
|
+
method: "GET",
|
|
2041
|
+
authType: "AK",
|
|
2042
|
+
style: "ROA",
|
|
2043
|
+
reqBodyType: "none",
|
|
2044
|
+
bodyType: "json",
|
|
2045
|
+
});
|
|
2046
|
+
return $tea.cast<ListMessagesResponse>(await this.execute(params, req, runtime), new ListMessagesResponse({}));
|
|
265
2047
|
}
|
|
266
2048
|
|
|
267
|
-
|
|
268
|
-
|
|
2049
|
+
/**
|
|
2050
|
+
* 获取邮件列表
|
|
2051
|
+
*
|
|
2052
|
+
* @param request - ListMessagesRequest
|
|
2053
|
+
* @returns ListMessagesResponse
|
|
2054
|
+
*/
|
|
2055
|
+
async listMessages(email: string, folderId: string, request: ListMessagesRequest): Promise<ListMessagesResponse> {
|
|
2056
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2057
|
+
let headers = new ListMessagesHeaders({ });
|
|
2058
|
+
return await this.listMessagesWithOptions(email, folderId, request, headers, runtime);
|
|
269
2059
|
}
|
|
270
|
-
}
|
|
271
2060
|
|
|
2061
|
+
/**
|
|
2062
|
+
* 移动文件夹
|
|
2063
|
+
*
|
|
2064
|
+
* @param request - MoveMailFolderRequest
|
|
2065
|
+
* @param headers - MoveMailFolderHeaders
|
|
2066
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2067
|
+
* @returns MoveMailFolderResponse
|
|
2068
|
+
*/
|
|
2069
|
+
async moveMailFolderWithOptions(email: string, id: string, request: MoveMailFolderRequest, headers: MoveMailFolderHeaders, runtime: $Util.RuntimeOptions): Promise<MoveMailFolderResponse> {
|
|
2070
|
+
Util.validateModel(request);
|
|
2071
|
+
let body : {[key: string ]: any} = { };
|
|
2072
|
+
if (!Util.isUnset(request.destinationFolderId)) {
|
|
2073
|
+
body["destinationFolderId"] = request.destinationFolderId;
|
|
2074
|
+
}
|
|
272
2075
|
|
|
273
|
-
|
|
2076
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
2077
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
2078
|
+
realHeaders = headers.commonHeaders;
|
|
2079
|
+
}
|
|
274
2080
|
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
let gatewayClient = new GatewayClient();
|
|
278
|
-
this._spi = gatewayClient;
|
|
279
|
-
this._endpointRule = "";
|
|
280
|
-
if (Util.empty(this._endpoint)) {
|
|
281
|
-
this._endpoint = "api.dingtalk.com";
|
|
2081
|
+
if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) {
|
|
2082
|
+
realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken);
|
|
282
2083
|
}
|
|
283
2084
|
|
|
2085
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2086
|
+
headers: realHeaders,
|
|
2087
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2088
|
+
});
|
|
2089
|
+
let params = new $OpenApi.Params({
|
|
2090
|
+
action: "MoveMailFolder",
|
|
2091
|
+
version: "mail_1.0",
|
|
2092
|
+
protocol: "HTTP",
|
|
2093
|
+
pathname: `/v1.0/mail/users/${email}/mailFolders/${id}/move`,
|
|
2094
|
+
method: "POST",
|
|
2095
|
+
authType: "AK",
|
|
2096
|
+
style: "ROA",
|
|
2097
|
+
reqBodyType: "none",
|
|
2098
|
+
bodyType: "json",
|
|
2099
|
+
});
|
|
2100
|
+
return $tea.cast<MoveMailFolderResponse>(await this.execute(params, req, runtime), new MoveMailFolderResponse({}));
|
|
284
2101
|
}
|
|
285
2102
|
|
|
2103
|
+
/**
|
|
2104
|
+
* 移动文件夹
|
|
2105
|
+
*
|
|
2106
|
+
* @param request - MoveMailFolderRequest
|
|
2107
|
+
* @returns MoveMailFolderResponse
|
|
2108
|
+
*/
|
|
2109
|
+
async moveMailFolder(email: string, id: string, request: MoveMailFolderRequest): Promise<MoveMailFolderResponse> {
|
|
2110
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2111
|
+
let headers = new MoveMailFolderHeaders({ });
|
|
2112
|
+
return await this.moveMailFolderWithOptions(email, id, request, headers, runtime);
|
|
2113
|
+
}
|
|
286
2114
|
|
|
287
2115
|
/**
|
|
288
|
-
*
|
|
2116
|
+
* 发送邮件
|
|
289
2117
|
*
|
|
290
|
-
* @param request -
|
|
291
|
-
* @param headers -
|
|
2118
|
+
* @param request - SendMessageRequest
|
|
2119
|
+
* @param headers - SendMessageHeaders
|
|
292
2120
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
293
|
-
* @returns
|
|
2121
|
+
* @returns SendMessageResponse
|
|
294
2122
|
*/
|
|
295
|
-
async
|
|
2123
|
+
async sendMessageWithOptions(email: string, id: string, request: SendMessageRequest, headers: SendMessageHeaders, runtime: $Util.RuntimeOptions): Promise<SendMessageResponse> {
|
|
296
2124
|
Util.validateModel(request);
|
|
297
2125
|
let body : {[key: string ]: any} = { };
|
|
298
|
-
if (!Util.isUnset(request.
|
|
299
|
-
body["
|
|
2126
|
+
if (!Util.isUnset(request.saveToSentItems)) {
|
|
2127
|
+
body["saveToSentItems"] = request.saveToSentItems;
|
|
300
2128
|
}
|
|
301
2129
|
|
|
302
|
-
|
|
303
|
-
|
|
2130
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
2131
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
2132
|
+
realHeaders = headers.commonHeaders;
|
|
304
2133
|
}
|
|
305
2134
|
|
|
306
|
-
if (!Util.isUnset(
|
|
307
|
-
|
|
2135
|
+
if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) {
|
|
2136
|
+
realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken);
|
|
308
2137
|
}
|
|
309
2138
|
|
|
310
|
-
|
|
311
|
-
|
|
2139
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2140
|
+
headers: realHeaders,
|
|
2141
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2142
|
+
});
|
|
2143
|
+
let params = new $OpenApi.Params({
|
|
2144
|
+
action: "SendMessage",
|
|
2145
|
+
version: "mail_1.0",
|
|
2146
|
+
protocol: "HTTP",
|
|
2147
|
+
pathname: `/v1.0/mail/users/${email}/messages/${id}/send`,
|
|
2148
|
+
method: "POST",
|
|
2149
|
+
authType: "AK",
|
|
2150
|
+
style: "ROA",
|
|
2151
|
+
reqBodyType: "none",
|
|
2152
|
+
bodyType: "json",
|
|
2153
|
+
});
|
|
2154
|
+
return $tea.cast<SendMessageResponse>(await this.execute(params, req, runtime), new SendMessageResponse({}));
|
|
2155
|
+
}
|
|
2156
|
+
|
|
2157
|
+
/**
|
|
2158
|
+
* 发送邮件
|
|
2159
|
+
*
|
|
2160
|
+
* @param request - SendMessageRequest
|
|
2161
|
+
* @returns SendMessageResponse
|
|
2162
|
+
*/
|
|
2163
|
+
async sendMessage(email: string, id: string, request: SendMessageRequest): Promise<SendMessageResponse> {
|
|
2164
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2165
|
+
let headers = new SendMessageHeaders({ });
|
|
2166
|
+
return await this.sendMessageWithOptions(email, id, request, headers, runtime);
|
|
2167
|
+
}
|
|
2168
|
+
|
|
2169
|
+
/**
|
|
2170
|
+
* 修改文件夹信息
|
|
2171
|
+
*
|
|
2172
|
+
* @param request - UpdateMailFolderRequest
|
|
2173
|
+
* @param headers - UpdateMailFolderHeaders
|
|
2174
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2175
|
+
* @returns UpdateMailFolderResponse
|
|
2176
|
+
*/
|
|
2177
|
+
async updateMailFolderWithOptions(email: string, id: string, request: UpdateMailFolderRequest, headers: UpdateMailFolderHeaders, runtime: $Util.RuntimeOptions): Promise<UpdateMailFolderResponse> {
|
|
2178
|
+
Util.validateModel(request);
|
|
2179
|
+
let body : {[key: string ]: any} = { };
|
|
2180
|
+
if (!Util.isUnset(request.displayName)) {
|
|
2181
|
+
body["displayName"] = request.displayName;
|
|
312
2182
|
}
|
|
313
2183
|
|
|
314
2184
|
let realHeaders : {[key: string ]: string} = { };
|
|
@@ -325,44 +2195,44 @@ export default class Client extends OpenApi {
|
|
|
325
2195
|
body: OpenApiUtil.parseToMap(body),
|
|
326
2196
|
});
|
|
327
2197
|
let params = new $OpenApi.Params({
|
|
328
|
-
action: "
|
|
2198
|
+
action: "UpdateMailFolder",
|
|
329
2199
|
version: "mail_1.0",
|
|
330
2200
|
protocol: "HTTP",
|
|
331
|
-
pathname: `/v1.0/mail/users`,
|
|
2201
|
+
pathname: `/v1.0/mail/users/${email}/mailFolders/${id}/update`,
|
|
332
2202
|
method: "POST",
|
|
333
2203
|
authType: "AK",
|
|
334
2204
|
style: "ROA",
|
|
335
2205
|
reqBodyType: "none",
|
|
336
2206
|
bodyType: "json",
|
|
337
2207
|
});
|
|
338
|
-
return $tea.cast<
|
|
2208
|
+
return $tea.cast<UpdateMailFolderResponse>(await this.execute(params, req, runtime), new UpdateMailFolderResponse({}));
|
|
339
2209
|
}
|
|
340
2210
|
|
|
341
2211
|
/**
|
|
342
|
-
*
|
|
2212
|
+
* 修改文件夹信息
|
|
343
2213
|
*
|
|
344
|
-
* @param request -
|
|
345
|
-
* @returns
|
|
2214
|
+
* @param request - UpdateMailFolderRequest
|
|
2215
|
+
* @returns UpdateMailFolderResponse
|
|
346
2216
|
*/
|
|
347
|
-
async
|
|
2217
|
+
async updateMailFolder(email: string, id: string, request: UpdateMailFolderRequest): Promise<UpdateMailFolderResponse> {
|
|
348
2218
|
let runtime = new $Util.RuntimeOptions({ });
|
|
349
|
-
let headers = new
|
|
350
|
-
return await this.
|
|
2219
|
+
let headers = new UpdateMailFolderHeaders({ });
|
|
2220
|
+
return await this.updateMailFolderWithOptions(email, id, request, headers, runtime);
|
|
351
2221
|
}
|
|
352
2222
|
|
|
353
2223
|
/**
|
|
354
|
-
*
|
|
2224
|
+
* 修改草稿
|
|
355
2225
|
*
|
|
356
|
-
* @param request -
|
|
357
|
-
* @param headers -
|
|
2226
|
+
* @param request - UpdateMessageRequest
|
|
2227
|
+
* @param headers - UpdateMessageHeaders
|
|
358
2228
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
359
|
-
* @returns
|
|
2229
|
+
* @returns UpdateMessageResponse
|
|
360
2230
|
*/
|
|
361
|
-
async
|
|
2231
|
+
async updateMessageWithOptions(email: string, id: string, request: UpdateMessageRequest, headers: UpdateMessageHeaders, runtime: $Util.RuntimeOptions): Promise<UpdateMessageResponse> {
|
|
362
2232
|
Util.validateModel(request);
|
|
363
|
-
let
|
|
364
|
-
if (!Util.isUnset(request.
|
|
365
|
-
|
|
2233
|
+
let body : {[key: string ]: any} = { };
|
|
2234
|
+
if (!Util.isUnset(request.message)) {
|
|
2235
|
+
body["message"] = request.message;
|
|
366
2236
|
}
|
|
367
2237
|
|
|
368
2238
|
let realHeaders : {[key: string ]: string} = { };
|
|
@@ -376,32 +2246,32 @@ export default class Client extends OpenApi {
|
|
|
376
2246
|
|
|
377
2247
|
let req = new $OpenApi.OpenApiRequest({
|
|
378
2248
|
headers: realHeaders,
|
|
379
|
-
|
|
2249
|
+
body: OpenApiUtil.parseToMap(body),
|
|
380
2250
|
});
|
|
381
2251
|
let params = new $OpenApi.Params({
|
|
382
|
-
action: "
|
|
2252
|
+
action: "UpdateMessage",
|
|
383
2253
|
version: "mail_1.0",
|
|
384
2254
|
protocol: "HTTP",
|
|
385
|
-
pathname: `/v1.0/mail/users/${email}/
|
|
386
|
-
method: "
|
|
2255
|
+
pathname: `/v1.0/mail/users/${email}/messages/${id}/update`,
|
|
2256
|
+
method: "POST",
|
|
387
2257
|
authType: "AK",
|
|
388
2258
|
style: "ROA",
|
|
389
2259
|
reqBodyType: "none",
|
|
390
2260
|
bodyType: "json",
|
|
391
2261
|
});
|
|
392
|
-
return $tea.cast<
|
|
2262
|
+
return $tea.cast<UpdateMessageResponse>(await this.execute(params, req, runtime), new UpdateMessageResponse({}));
|
|
393
2263
|
}
|
|
394
2264
|
|
|
395
2265
|
/**
|
|
396
|
-
*
|
|
2266
|
+
* 修改草稿
|
|
397
2267
|
*
|
|
398
|
-
* @param request -
|
|
399
|
-
* @returns
|
|
2268
|
+
* @param request - UpdateMessageRequest
|
|
2269
|
+
* @returns UpdateMessageResponse
|
|
400
2270
|
*/
|
|
401
|
-
async
|
|
2271
|
+
async updateMessage(email: string, id: string, request: UpdateMessageRequest): Promise<UpdateMessageResponse> {
|
|
402
2272
|
let runtime = new $Util.RuntimeOptions({ });
|
|
403
|
-
let headers = new
|
|
404
|
-
return await this.
|
|
2273
|
+
let headers = new UpdateMessageHeaders({ });
|
|
2274
|
+
return await this.updateMessageWithOptions(email, id, request, headers, runtime);
|
|
405
2275
|
}
|
|
406
2276
|
|
|
407
2277
|
}
|