@alicloud/cams20200606 4.0.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +15 -0
- package/dist/client.js +68 -0
- package/dist/client.js.map +1 -1
- package/dist/models/ChatappSyncPhoneNumberResponseBody.d.ts +130 -0
- package/dist/models/ChatappSyncPhoneNumberResponseBody.js +137 -1
- package/dist/models/ChatappSyncPhoneNumberResponseBody.js.map +1 -1
- package/dist/models/QueryChatappPhoneNumbersResponseBody.d.ts +135 -0
- package/dist/models/QueryChatappPhoneNumbersResponseBody.js +139 -1
- package/dist/models/QueryChatappPhoneNumbersResponseBody.js.map +1 -1
- package/dist/models/WhatsappCallRequest.d.ts +73 -0
- package/dist/models/WhatsappCallRequest.js +98 -0
- package/dist/models/WhatsappCallRequest.js.map +1 -0
- package/dist/models/WhatsappCallResponse.d.ts +19 -0
- package/dist/models/WhatsappCallResponse.js +69 -0
- package/dist/models/WhatsappCallResponse.js.map +1 -0
- package/dist/models/WhatsappCallResponseBody.d.ts +52 -0
- package/dist/models/WhatsappCallResponseBody.js +90 -0
- package/dist/models/WhatsappCallResponseBody.js.map +1 -0
- package/dist/models/WhatsappCallShrinkRequest.d.ts +51 -0
- package/dist/models/WhatsappCallShrinkRequest.js +74 -0
- package/dist/models/WhatsappCallShrinkRequest.js.map +1 -0
- package/dist/models/model.d.ts +16 -0
- package/dist/models/model.js +52 -20
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +80 -0
- package/src/models/ChatappSyncPhoneNumberResponseBody.ts +221 -0
- package/src/models/QueryChatappPhoneNumbersResponseBody.ts +228 -0
- package/src/models/WhatsappCallRequest.ts +117 -0
- package/src/models/WhatsappCallResponse.ts +40 -0
- package/src/models/WhatsappCallResponseBody.ts +88 -0
- package/src/models/WhatsappCallShrinkRequest.ts +80 -0
- package/src/models/model.ts +16 -0
|
@@ -2,7 +2,223 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
export class ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCallingCallHoursHolidaySchedule extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 2026-01-01
|
|
9
|
+
*/
|
|
10
|
+
date?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 2359
|
|
14
|
+
*/
|
|
15
|
+
endTime?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* 0000
|
|
19
|
+
*/
|
|
20
|
+
startTime?: string;
|
|
21
|
+
static names(): { [key: string]: string } {
|
|
22
|
+
return {
|
|
23
|
+
date: 'Date',
|
|
24
|
+
endTime: 'EndTime',
|
|
25
|
+
startTime: 'StartTime',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
date: 'string',
|
|
32
|
+
endTime: 'string',
|
|
33
|
+
startTime: 'string',
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
validate() {
|
|
38
|
+
super.validate();
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
constructor(map?: { [key: string]: any }) {
|
|
42
|
+
super(map);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export class ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCallingCallHoursWeeklyOperatingHours extends $dara.Model {
|
|
47
|
+
/**
|
|
48
|
+
* @example
|
|
49
|
+
* 2359
|
|
50
|
+
*/
|
|
51
|
+
closeTime?: string;
|
|
52
|
+
/**
|
|
53
|
+
* @example
|
|
54
|
+
* MONDAY
|
|
55
|
+
*/
|
|
56
|
+
dayOfWeek?: string;
|
|
57
|
+
/**
|
|
58
|
+
* @example
|
|
59
|
+
* 0000
|
|
60
|
+
*/
|
|
61
|
+
openTime?: string;
|
|
62
|
+
static names(): { [key: string]: string } {
|
|
63
|
+
return {
|
|
64
|
+
closeTime: 'CloseTime',
|
|
65
|
+
dayOfWeek: 'DayOfWeek',
|
|
66
|
+
openTime: 'OpenTime',
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
static types(): { [key: string]: any } {
|
|
71
|
+
return {
|
|
72
|
+
closeTime: 'string',
|
|
73
|
+
dayOfWeek: 'string',
|
|
74
|
+
openTime: 'string',
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
validate() {
|
|
79
|
+
super.validate();
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
constructor(map?: { [key: string]: any }) {
|
|
83
|
+
super(map);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export class ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCallingCallHours extends $dara.Model {
|
|
88
|
+
holidaySchedule?: ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCallingCallHoursHolidaySchedule[];
|
|
89
|
+
/**
|
|
90
|
+
* @example
|
|
91
|
+
* ENABLED
|
|
92
|
+
*/
|
|
93
|
+
status?: string;
|
|
94
|
+
/**
|
|
95
|
+
* @example
|
|
96
|
+
* Asia/Shanghai
|
|
97
|
+
*/
|
|
98
|
+
timezoneId?: string;
|
|
99
|
+
weeklyOperatingHours?: ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCallingCallHoursWeeklyOperatingHours[];
|
|
100
|
+
static names(): { [key: string]: string } {
|
|
101
|
+
return {
|
|
102
|
+
holidaySchedule: 'HolidaySchedule',
|
|
103
|
+
status: 'Status',
|
|
104
|
+
timezoneId: 'TimezoneId',
|
|
105
|
+
weeklyOperatingHours: 'WeeklyOperatingHours',
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
static types(): { [key: string]: any } {
|
|
110
|
+
return {
|
|
111
|
+
holidaySchedule: { 'type': 'array', 'itemType': ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCallingCallHoursHolidaySchedule },
|
|
112
|
+
status: 'string',
|
|
113
|
+
timezoneId: 'string',
|
|
114
|
+
weeklyOperatingHours: { 'type': 'array', 'itemType': ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCallingCallHoursWeeklyOperatingHours },
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
validate() {
|
|
119
|
+
if(Array.isArray(this.holidaySchedule)) {
|
|
120
|
+
$dara.Model.validateArray(this.holidaySchedule);
|
|
121
|
+
}
|
|
122
|
+
if(Array.isArray(this.weeklyOperatingHours)) {
|
|
123
|
+
$dara.Model.validateArray(this.weeklyOperatingHours);
|
|
124
|
+
}
|
|
125
|
+
super.validate();
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
constructor(map?: { [key: string]: any }) {
|
|
129
|
+
super(map);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export class ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCalling extends $dara.Model {
|
|
134
|
+
callHours?: ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCallingCallHours;
|
|
135
|
+
/**
|
|
136
|
+
* @example
|
|
137
|
+
* DEFAULT
|
|
138
|
+
*/
|
|
139
|
+
callIconVisibility?: string;
|
|
140
|
+
/**
|
|
141
|
+
* @example
|
|
142
|
+
* 示例值示例值示例值
|
|
143
|
+
*/
|
|
144
|
+
callbackPermissionStatus?: string;
|
|
145
|
+
/**
|
|
146
|
+
* @example
|
|
147
|
+
* ENABLED
|
|
148
|
+
*/
|
|
149
|
+
status?: string;
|
|
150
|
+
static names(): { [key: string]: string } {
|
|
151
|
+
return {
|
|
152
|
+
callHours: 'CallHours',
|
|
153
|
+
callIconVisibility: 'CallIconVisibility',
|
|
154
|
+
callbackPermissionStatus: 'CallbackPermissionStatus',
|
|
155
|
+
status: 'Status',
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
static types(): { [key: string]: any } {
|
|
160
|
+
return {
|
|
161
|
+
callHours: ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCallingCallHours,
|
|
162
|
+
callIconVisibility: 'string',
|
|
163
|
+
callbackPermissionStatus: 'string',
|
|
164
|
+
status: 'string',
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
validate() {
|
|
169
|
+
if(this.callHours && typeof (this.callHours as any).validate === 'function') {
|
|
170
|
+
(this.callHours as any).validate();
|
|
171
|
+
}
|
|
172
|
+
super.validate();
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
constructor(map?: { [key: string]: any }) {
|
|
176
|
+
super(map);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export class ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigure extends $dara.Model {
|
|
181
|
+
calling?: ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCalling;
|
|
182
|
+
/**
|
|
183
|
+
* @example
|
|
184
|
+
* http://aliyun.com
|
|
185
|
+
*/
|
|
186
|
+
callingCallbackUrl?: string;
|
|
187
|
+
/**
|
|
188
|
+
* @example
|
|
189
|
+
* 100
|
|
190
|
+
*/
|
|
191
|
+
maxTalkTime?: number;
|
|
192
|
+
static names(): { [key: string]: string } {
|
|
193
|
+
return {
|
|
194
|
+
calling: 'Calling',
|
|
195
|
+
callingCallbackUrl: 'CallingCallbackUrl',
|
|
196
|
+
maxTalkTime: 'MaxTalkTime',
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
static types(): { [key: string]: any } {
|
|
201
|
+
return {
|
|
202
|
+
calling: ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCalling,
|
|
203
|
+
callingCallbackUrl: 'string',
|
|
204
|
+
maxTalkTime: 'number',
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
validate() {
|
|
209
|
+
if(this.calling && typeof (this.calling as any).validate === 'function') {
|
|
210
|
+
(this.calling as any).validate();
|
|
211
|
+
}
|
|
212
|
+
super.validate();
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
constructor(map?: { [key: string]: any }) {
|
|
216
|
+
super(map);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
5
220
|
export class ChatappSyncPhoneNumberResponseBodyPhoneNumbers extends $dara.Model {
|
|
221
|
+
callingConfigure?: ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigure;
|
|
6
222
|
/**
|
|
7
223
|
* @remarks
|
|
8
224
|
* The verification state of the phone number.
|
|
@@ -136,6 +352,7 @@ export class ChatappSyncPhoneNumberResponseBodyPhoneNumbers extends $dara.Model
|
|
|
136
352
|
verifiedName?: string;
|
|
137
353
|
static names(): { [key: string]: string } {
|
|
138
354
|
return {
|
|
355
|
+
callingConfigure: 'CallingConfigure',
|
|
139
356
|
codeVerificationStatus: 'CodeVerificationStatus',
|
|
140
357
|
isOfficial: 'IsOfficial',
|
|
141
358
|
messagingLimitTier: 'MessagingLimitTier',
|
|
@@ -154,6 +371,7 @@ export class ChatappSyncPhoneNumberResponseBodyPhoneNumbers extends $dara.Model
|
|
|
154
371
|
|
|
155
372
|
static types(): { [key: string]: any } {
|
|
156
373
|
return {
|
|
374
|
+
callingConfigure: ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigure,
|
|
157
375
|
codeVerificationStatus: 'string',
|
|
158
376
|
isOfficial: 'string',
|
|
159
377
|
messagingLimitTier: 'string',
|
|
@@ -171,6 +389,9 @@ export class ChatappSyncPhoneNumberResponseBodyPhoneNumbers extends $dara.Model
|
|
|
171
389
|
}
|
|
172
390
|
|
|
173
391
|
validate() {
|
|
392
|
+
if(this.callingConfigure && typeof (this.callingConfigure as any).validate === 'function') {
|
|
393
|
+
(this.callingConfigure as any).validate();
|
|
394
|
+
}
|
|
174
395
|
super.validate();
|
|
175
396
|
}
|
|
176
397
|
|
|
@@ -2,7 +2,223 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
export class QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCallingCallHoursHolidaySchedule extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 2026-01-01
|
|
9
|
+
*/
|
|
10
|
+
date?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 2359
|
|
14
|
+
*/
|
|
15
|
+
endTime?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* 0000
|
|
19
|
+
*/
|
|
20
|
+
startTime?: string;
|
|
21
|
+
static names(): { [key: string]: string } {
|
|
22
|
+
return {
|
|
23
|
+
date: 'Date',
|
|
24
|
+
endTime: 'EndTime',
|
|
25
|
+
startTime: 'StartTime',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
date: 'string',
|
|
32
|
+
endTime: 'string',
|
|
33
|
+
startTime: 'string',
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
validate() {
|
|
38
|
+
super.validate();
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
constructor(map?: { [key: string]: any }) {
|
|
42
|
+
super(map);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export class QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCallingCallHoursWeeklyOperatingHours extends $dara.Model {
|
|
47
|
+
/**
|
|
48
|
+
* @example
|
|
49
|
+
* 2359
|
|
50
|
+
*/
|
|
51
|
+
closeTime?: string;
|
|
52
|
+
/**
|
|
53
|
+
* @example
|
|
54
|
+
* 示例值示例值示例值
|
|
55
|
+
*/
|
|
56
|
+
dayOfWeek?: string;
|
|
57
|
+
/**
|
|
58
|
+
* @example
|
|
59
|
+
* 0000
|
|
60
|
+
*/
|
|
61
|
+
openTime?: string;
|
|
62
|
+
static names(): { [key: string]: string } {
|
|
63
|
+
return {
|
|
64
|
+
closeTime: 'CloseTime',
|
|
65
|
+
dayOfWeek: 'DayOfWeek',
|
|
66
|
+
openTime: 'OpenTime',
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
static types(): { [key: string]: any } {
|
|
71
|
+
return {
|
|
72
|
+
closeTime: 'string',
|
|
73
|
+
dayOfWeek: 'string',
|
|
74
|
+
openTime: 'string',
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
validate() {
|
|
79
|
+
super.validate();
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
constructor(map?: { [key: string]: any }) {
|
|
83
|
+
super(map);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export class QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCallingCallHours extends $dara.Model {
|
|
88
|
+
/**
|
|
89
|
+
* @example
|
|
90
|
+
* DEFAULT
|
|
91
|
+
*/
|
|
92
|
+
callIconVisibility?: string;
|
|
93
|
+
/**
|
|
94
|
+
* @example
|
|
95
|
+
* ENABLED
|
|
96
|
+
*/
|
|
97
|
+
callbackPermissionStatus?: string;
|
|
98
|
+
holidaySchedule?: QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCallingCallHoursHolidaySchedule[];
|
|
99
|
+
/**
|
|
100
|
+
* @example
|
|
101
|
+
* ENABLED
|
|
102
|
+
*/
|
|
103
|
+
status?: string;
|
|
104
|
+
/**
|
|
105
|
+
* @example
|
|
106
|
+
* Asia/Shanghai
|
|
107
|
+
*/
|
|
108
|
+
timezoneId?: string;
|
|
109
|
+
weeklyOperatingHours?: QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCallingCallHoursWeeklyOperatingHours[];
|
|
110
|
+
static names(): { [key: string]: string } {
|
|
111
|
+
return {
|
|
112
|
+
callIconVisibility: 'CallIconVisibility',
|
|
113
|
+
callbackPermissionStatus: 'CallbackPermissionStatus',
|
|
114
|
+
holidaySchedule: 'HolidaySchedule',
|
|
115
|
+
status: 'Status',
|
|
116
|
+
timezoneId: 'TimezoneId',
|
|
117
|
+
weeklyOperatingHours: 'WeeklyOperatingHours',
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
static types(): { [key: string]: any } {
|
|
122
|
+
return {
|
|
123
|
+
callIconVisibility: 'string',
|
|
124
|
+
callbackPermissionStatus: 'string',
|
|
125
|
+
holidaySchedule: { 'type': 'array', 'itemType': QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCallingCallHoursHolidaySchedule },
|
|
126
|
+
status: 'string',
|
|
127
|
+
timezoneId: 'string',
|
|
128
|
+
weeklyOperatingHours: { 'type': 'array', 'itemType': QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCallingCallHoursWeeklyOperatingHours },
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
validate() {
|
|
133
|
+
if(Array.isArray(this.holidaySchedule)) {
|
|
134
|
+
$dara.Model.validateArray(this.holidaySchedule);
|
|
135
|
+
}
|
|
136
|
+
if(Array.isArray(this.weeklyOperatingHours)) {
|
|
137
|
+
$dara.Model.validateArray(this.weeklyOperatingHours);
|
|
138
|
+
}
|
|
139
|
+
super.validate();
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
constructor(map?: { [key: string]: any }) {
|
|
143
|
+
super(map);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export class QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCalling extends $dara.Model {
|
|
148
|
+
callHours?: QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCallingCallHours;
|
|
149
|
+
/**
|
|
150
|
+
* @example
|
|
151
|
+
* ENABLED
|
|
152
|
+
*/
|
|
153
|
+
status?: string;
|
|
154
|
+
static names(): { [key: string]: string } {
|
|
155
|
+
return {
|
|
156
|
+
callHours: 'CallHours',
|
|
157
|
+
status: 'Status',
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
static types(): { [key: string]: any } {
|
|
162
|
+
return {
|
|
163
|
+
callHours: QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCallingCallHours,
|
|
164
|
+
status: 'string',
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
validate() {
|
|
169
|
+
if(this.callHours && typeof (this.callHours as any).validate === 'function') {
|
|
170
|
+
(this.callHours as any).validate();
|
|
171
|
+
}
|
|
172
|
+
super.validate();
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
constructor(map?: { [key: string]: any }) {
|
|
176
|
+
super(map);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export class QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigure extends $dara.Model {
|
|
181
|
+
calling?: QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCalling;
|
|
182
|
+
/**
|
|
183
|
+
* @example
|
|
184
|
+
* https://aliyun.com
|
|
185
|
+
*/
|
|
186
|
+
callingCallbackUrl?: string;
|
|
187
|
+
/**
|
|
188
|
+
* @example
|
|
189
|
+
* 1000
|
|
190
|
+
*/
|
|
191
|
+
maxTalkTime?: number;
|
|
192
|
+
static names(): { [key: string]: string } {
|
|
193
|
+
return {
|
|
194
|
+
calling: 'Calling',
|
|
195
|
+
callingCallbackUrl: 'CallingCallbackUrl',
|
|
196
|
+
maxTalkTime: 'MaxTalkTime',
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
static types(): { [key: string]: any } {
|
|
201
|
+
return {
|
|
202
|
+
calling: QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCalling,
|
|
203
|
+
callingCallbackUrl: 'string',
|
|
204
|
+
maxTalkTime: 'number',
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
validate() {
|
|
209
|
+
if(this.calling && typeof (this.calling as any).validate === 'function') {
|
|
210
|
+
(this.calling as any).validate();
|
|
211
|
+
}
|
|
212
|
+
super.validate();
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
constructor(map?: { [key: string]: any }) {
|
|
216
|
+
super(map);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
5
220
|
export class QueryChatappPhoneNumbersResponseBodyPhoneNumbers extends $dara.Model {
|
|
221
|
+
callingConfigure?: QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigure;
|
|
6
222
|
/**
|
|
7
223
|
* @remarks
|
|
8
224
|
* The verification status of the phone number.
|
|
@@ -146,6 +362,7 @@ export class QueryChatappPhoneNumbersResponseBodyPhoneNumbers extends $dara.Mode
|
|
|
146
362
|
verifiedName?: string;
|
|
147
363
|
static names(): { [key: string]: string } {
|
|
148
364
|
return {
|
|
365
|
+
callingConfigure: 'CallingConfigure',
|
|
149
366
|
codeVerificationStatus: 'CodeVerificationStatus',
|
|
150
367
|
isOfficial: 'IsOfficial',
|
|
151
368
|
messagingLimitTier: 'MessagingLimitTier',
|
|
@@ -164,6 +381,7 @@ export class QueryChatappPhoneNumbersResponseBodyPhoneNumbers extends $dara.Mode
|
|
|
164
381
|
|
|
165
382
|
static types(): { [key: string]: any } {
|
|
166
383
|
return {
|
|
384
|
+
callingConfigure: QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigure,
|
|
167
385
|
codeVerificationStatus: 'string',
|
|
168
386
|
isOfficial: 'string',
|
|
169
387
|
messagingLimitTier: 'string',
|
|
@@ -181,6 +399,9 @@ export class QueryChatappPhoneNumbersResponseBodyPhoneNumbers extends $dara.Mode
|
|
|
181
399
|
}
|
|
182
400
|
|
|
183
401
|
validate() {
|
|
402
|
+
if(this.callingConfigure && typeof (this.callingConfigure as any).validate === 'function') {
|
|
403
|
+
(this.callingConfigure as any).validate();
|
|
404
|
+
}
|
|
184
405
|
super.validate();
|
|
185
406
|
}
|
|
186
407
|
|
|
@@ -209,6 +430,11 @@ export class QueryChatappPhoneNumbersResponseBody extends $dara.Model {
|
|
|
209
430
|
* OK
|
|
210
431
|
*/
|
|
211
432
|
code?: string;
|
|
433
|
+
/**
|
|
434
|
+
* @example
|
|
435
|
+
* 示例值示例值
|
|
436
|
+
*/
|
|
437
|
+
data?: string;
|
|
212
438
|
/**
|
|
213
439
|
* @remarks
|
|
214
440
|
* The message returned.
|
|
@@ -245,6 +471,7 @@ export class QueryChatappPhoneNumbersResponseBody extends $dara.Model {
|
|
|
245
471
|
return {
|
|
246
472
|
accessDeniedDetail: 'AccessDeniedDetail',
|
|
247
473
|
code: 'Code',
|
|
474
|
+
data: 'Data',
|
|
248
475
|
message: 'Message',
|
|
249
476
|
phoneNumbers: 'PhoneNumbers',
|
|
250
477
|
requestId: 'RequestId',
|
|
@@ -256,6 +483,7 @@ export class QueryChatappPhoneNumbersResponseBody extends $dara.Model {
|
|
|
256
483
|
return {
|
|
257
484
|
accessDeniedDetail: 'string',
|
|
258
485
|
code: 'string',
|
|
486
|
+
data: 'string',
|
|
259
487
|
message: 'string',
|
|
260
488
|
phoneNumbers: { 'type': 'array', 'itemType': QueryChatappPhoneNumbersResponseBodyPhoneNumbers },
|
|
261
489
|
requestId: 'string',
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class WhatsappCallRequestSession extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 示例值
|
|
9
|
+
*/
|
|
10
|
+
sdp?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 示例值
|
|
14
|
+
*/
|
|
15
|
+
sdpType?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
sdp: 'Sdp',
|
|
19
|
+
sdpType: 'SdpType',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
sdp: 'string',
|
|
26
|
+
sdpType: 'string',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export class WhatsappCallRequest extends $dara.Model {
|
|
40
|
+
/**
|
|
41
|
+
* @remarks
|
|
42
|
+
* This parameter is required.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* 示例值示例值
|
|
46
|
+
*/
|
|
47
|
+
businessNumber?: string;
|
|
48
|
+
/**
|
|
49
|
+
* @remarks
|
|
50
|
+
* This parameter is required.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* 示例值示例值示例值
|
|
54
|
+
*/
|
|
55
|
+
callAction?: string;
|
|
56
|
+
/**
|
|
57
|
+
* @example
|
|
58
|
+
* 示例值示例值
|
|
59
|
+
*/
|
|
60
|
+
callId?: string;
|
|
61
|
+
/**
|
|
62
|
+
* @remarks
|
|
63
|
+
* This parameter is required.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* 示例值
|
|
67
|
+
*/
|
|
68
|
+
custSpaceId?: string;
|
|
69
|
+
ownerId?: number;
|
|
70
|
+
resourceOwnerAccount?: string;
|
|
71
|
+
resourceOwnerId?: number;
|
|
72
|
+
session?: WhatsappCallRequestSession;
|
|
73
|
+
/**
|
|
74
|
+
* @example
|
|
75
|
+
* 示例值示例值
|
|
76
|
+
*/
|
|
77
|
+
userNumber?: string;
|
|
78
|
+
static names(): { [key: string]: string } {
|
|
79
|
+
return {
|
|
80
|
+
businessNumber: 'BusinessNumber',
|
|
81
|
+
callAction: 'CallAction',
|
|
82
|
+
callId: 'CallId',
|
|
83
|
+
custSpaceId: 'CustSpaceId',
|
|
84
|
+
ownerId: 'OwnerId',
|
|
85
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
86
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
87
|
+
session: 'Session',
|
|
88
|
+
userNumber: 'UserNumber',
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
static types(): { [key: string]: any } {
|
|
93
|
+
return {
|
|
94
|
+
businessNumber: 'string',
|
|
95
|
+
callAction: 'string',
|
|
96
|
+
callId: 'string',
|
|
97
|
+
custSpaceId: 'string',
|
|
98
|
+
ownerId: 'number',
|
|
99
|
+
resourceOwnerAccount: 'string',
|
|
100
|
+
resourceOwnerId: 'number',
|
|
101
|
+
session: WhatsappCallRequestSession,
|
|
102
|
+
userNumber: 'string',
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
validate() {
|
|
107
|
+
if(this.session && typeof (this.session as any).validate === 'function') {
|
|
108
|
+
(this.session as any).validate();
|
|
109
|
+
}
|
|
110
|
+
super.validate();
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
constructor(map?: { [key: string]: any }) {
|
|
114
|
+
super(map);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { WhatsappCallResponseBody } from "./WhatsappCallResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class WhatsappCallResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: WhatsappCallResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: WhatsappCallResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|