@alicloud/dyvmsapi20170525 4.2.0 → 4.3.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.
Files changed (105) hide show
  1. package/dist/client.d.ts +120 -0
  2. package/dist/client.js +645 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CloudGetObCdrRequest.d.ts +33 -0
  5. package/dist/models/CloudGetObCdrRequest.js +60 -0
  6. package/dist/models/CloudGetObCdrRequest.js.map +1 -0
  7. package/dist/models/CloudGetObCdrResponse.d.ts +19 -0
  8. package/dist/models/CloudGetObCdrResponse.js +69 -0
  9. package/dist/models/CloudGetObCdrResponse.js.map +1 -0
  10. package/dist/models/CloudGetObCdrResponseBody.d.ts +293 -0
  11. package/dist/models/CloudGetObCdrResponseBody.js +175 -0
  12. package/dist/models/CloudGetObCdrResponseBody.js.map +1 -0
  13. package/dist/models/CloudGetRecordUrlRequest.d.ts +73 -0
  14. package/dist/models/CloudGetRecordUrlRequest.js +70 -0
  15. package/dist/models/CloudGetRecordUrlRequest.js.map +1 -0
  16. package/dist/models/CloudGetRecordUrlResponse.d.ts +19 -0
  17. package/dist/models/CloudGetRecordUrlResponse.js +69 -0
  18. package/dist/models/CloudGetRecordUrlResponse.js.map +1 -0
  19. package/dist/models/CloudGetRecordUrlResponseBody.d.ts +50 -0
  20. package/dist/models/CloudGetRecordUrlResponseBody.js +88 -0
  21. package/dist/models/CloudGetRecordUrlResponseBody.js.map +1 -0
  22. package/dist/models/CloudOutboundObClidReportRequest.d.ts +103 -0
  23. package/dist/models/CloudOutboundObClidReportRequest.js +76 -0
  24. package/dist/models/CloudOutboundObClidReportRequest.js.map +1 -0
  25. package/dist/models/CloudOutboundObClidReportResponse.d.ts +19 -0
  26. package/dist/models/CloudOutboundObClidReportResponse.js +69 -0
  27. package/dist/models/CloudOutboundObClidReportResponse.js.map +1 -0
  28. package/dist/models/CloudOutboundObClidReportResponseBody.d.ts +256 -0
  29. package/dist/models/CloudOutboundObClidReportResponseBody.js +158 -0
  30. package/dist/models/CloudOutboundObClidReportResponseBody.js.map +1 -0
  31. package/dist/models/CloudOutboundPreviewObReportRequest.d.ts +105 -0
  32. package/dist/models/CloudOutboundPreviewObReportRequest.js +76 -0
  33. package/dist/models/CloudOutboundPreviewObReportRequest.js.map +1 -0
  34. package/dist/models/CloudOutboundPreviewObReportResponse.d.ts +19 -0
  35. package/dist/models/CloudOutboundPreviewObReportResponse.js +69 -0
  36. package/dist/models/CloudOutboundPreviewObReportResponse.js.map +1 -0
  37. package/dist/models/CloudOutboundPreviewObReportResponseBody.d.ts +318 -0
  38. package/dist/models/CloudOutboundPreviewObReportResponseBody.js +176 -0
  39. package/dist/models/CloudOutboundPreviewObReportResponseBody.js.map +1 -0
  40. package/dist/models/CloudQueryIbCdrRequest.d.ts +167 -0
  41. package/dist/models/CloudQueryIbCdrRequest.js +94 -0
  42. package/dist/models/CloudQueryIbCdrRequest.js.map +1 -0
  43. package/dist/models/CloudQueryIbCdrResponse.d.ts +19 -0
  44. package/dist/models/CloudQueryIbCdrResponse.js +69 -0
  45. package/dist/models/CloudQueryIbCdrResponse.js.map +1 -0
  46. package/dist/models/CloudQueryIbCdrResponseBody.d.ts +302 -0
  47. package/dist/models/CloudQueryIbCdrResponseBody.js +189 -0
  48. package/dist/models/CloudQueryIbCdrResponseBody.js.map +1 -0
  49. package/dist/models/CloudQueryObCdrRequest.d.ts +215 -0
  50. package/dist/models/CloudQueryObCdrRequest.js +106 -0
  51. package/dist/models/CloudQueryObCdrRequest.js.map +1 -0
  52. package/dist/models/CloudQueryObCdrResponse.d.ts +19 -0
  53. package/dist/models/CloudQueryObCdrResponse.js +69 -0
  54. package/dist/models/CloudQueryObCdrResponse.js.map +1 -0
  55. package/dist/models/CloudQueryObCdrResponseBody.d.ts +453 -0
  56. package/dist/models/CloudQueryObCdrResponseBody.js +229 -0
  57. package/dist/models/CloudQueryObCdrResponseBody.js.map +1 -0
  58. package/dist/models/CloudQueryPredictiveCallCdrRequest.d.ts +199 -0
  59. package/dist/models/CloudQueryPredictiveCallCdrRequest.js +102 -0
  60. package/dist/models/CloudQueryPredictiveCallCdrRequest.js.map +1 -0
  61. package/dist/models/CloudQueryPredictiveCallCdrResponse.d.ts +19 -0
  62. package/dist/models/CloudQueryPredictiveCallCdrResponse.js +69 -0
  63. package/dist/models/CloudQueryPredictiveCallCdrResponse.js.map +1 -0
  64. package/dist/models/CloudQueryPredictiveCallCdrResponseBody.d.ts +462 -0
  65. package/dist/models/CloudQueryPredictiveCallCdrResponseBody.js +229 -0
  66. package/dist/models/CloudQueryPredictiveCallCdrResponseBody.js.map +1 -0
  67. package/dist/models/CloudQueryWebcallCdrRequest.d.ts +199 -0
  68. package/dist/models/CloudQueryWebcallCdrRequest.js +102 -0
  69. package/dist/models/CloudQueryWebcallCdrRequest.js.map +1 -0
  70. package/dist/models/CloudQueryWebcallCdrResponse.d.ts +19 -0
  71. package/dist/models/CloudQueryWebcallCdrResponse.js +69 -0
  72. package/dist/models/CloudQueryWebcallCdrResponse.js.map +1 -0
  73. package/dist/models/CloudQueryWebcallCdrResponseBody.d.ts +405 -0
  74. package/dist/models/CloudQueryWebcallCdrResponseBody.js +216 -0
  75. package/dist/models/CloudQueryWebcallCdrResponseBody.js.map +1 -0
  76. package/dist/models/model.d.ts +43 -0
  77. package/dist/models/model.js +94 -7
  78. package/dist/models/model.js.map +1 -1
  79. package/package.json +1 -1
  80. package/src/client.ts +780 -0
  81. package/src/models/CloudGetObCdrRequest.ts +48 -0
  82. package/src/models/CloudGetObCdrResponse.ts +40 -0
  83. package/src/models/CloudGetObCdrResponseBody.ts +405 -0
  84. package/src/models/CloudGetRecordUrlRequest.ts +98 -0
  85. package/src/models/CloudGetRecordUrlResponse.ts +40 -0
  86. package/src/models/CloudGetRecordUrlResponseBody.ts +84 -0
  87. package/src/models/CloudOutboundObClidReportRequest.ts +134 -0
  88. package/src/models/CloudOutboundObClidReportResponse.ts +40 -0
  89. package/src/models/CloudOutboundObClidReportResponseBody.ts +351 -0
  90. package/src/models/CloudOutboundPreviewObReportRequest.ts +136 -0
  91. package/src/models/CloudOutboundPreviewObReportResponse.ts +40 -0
  92. package/src/models/CloudOutboundPreviewObReportResponseBody.ts +431 -0
  93. package/src/models/CloudQueryIbCdrRequest.ts +216 -0
  94. package/src/models/CloudQueryIbCdrResponse.ts +40 -0
  95. package/src/models/CloudQueryIbCdrResponseBody.ts +417 -0
  96. package/src/models/CloudQueryObCdrRequest.ts +276 -0
  97. package/src/models/CloudQueryObCdrResponse.ts +40 -0
  98. package/src/models/CloudQueryObCdrResponseBody.ts +608 -0
  99. package/src/models/CloudQueryPredictiveCallCdrRequest.ts +256 -0
  100. package/src/models/CloudQueryPredictiveCallCdrResponse.ts +40 -0
  101. package/src/models/CloudQueryPredictiveCallCdrResponseBody.ts +617 -0
  102. package/src/models/CloudQueryWebcallCdrRequest.ts +256 -0
  103. package/src/models/CloudQueryWebcallCdrResponse.ts +40 -0
  104. package/src/models/CloudQueryWebcallCdrResponseBody.ts +549 -0
  105. package/src/models/model.ts +43 -0
@@ -0,0 +1,48 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CloudGetObCdrRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * 呼叫中心 id
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * 7000002
14
+ */
15
+ enterpriseId?: number;
16
+ /**
17
+ * @remarks
18
+ * 电话唯一标识;对应座席外呼通话记录的uniqueId
19
+ *
20
+ * This parameter is required.
21
+ *
22
+ * @example
23
+ * uniq_1-162046xxxx.12
24
+ */
25
+ uniqueId?: string;
26
+ static names(): { [key: string]: string } {
27
+ return {
28
+ enterpriseId: 'EnterpriseId',
29
+ uniqueId: 'UniqueId',
30
+ };
31
+ }
32
+
33
+ static types(): { [key: string]: any } {
34
+ return {
35
+ enterpriseId: 'number',
36
+ uniqueId: 'string',
37
+ };
38
+ }
39
+
40
+ validate() {
41
+ super.validate();
42
+ }
43
+
44
+ constructor(map?: { [key: string]: any }) {
45
+ super(map);
46
+ }
47
+ }
48
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { CloudGetObCdrResponseBody } from "./CloudGetObCdrResponseBody";
4
+
5
+
6
+ export class CloudGetObCdrResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: CloudGetObCdrResponseBody;
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: CloudGetObCdrResponseBody,
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
+
@@ -0,0 +1,405 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CloudGetObCdrResponseBodyDataList extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * name1
9
+ */
10
+ agentName?: string;
11
+ /**
12
+ * @remarks
13
+ * 客户接听时间,时间戳,精确到s,如1480904471
14
+ *
15
+ * @example
16
+ * 1775024775
17
+ */
18
+ answerTime?: string;
19
+ /**
20
+ * @remarks
21
+ * 通话唯一标识
22
+ *
23
+ * @example
24
+ * uniq_1-162046xxxx.12
25
+ */
26
+ callId?: string;
27
+ /**
28
+ * @remarks
29
+ * 呼叫类型 转移
30
+ *
31
+ * @example
32
+ * 示例值示例值
33
+ */
34
+ callType?: string;
35
+ /**
36
+ * @remarks
37
+ * 呼叫类型编码,如102
38
+ *
39
+ * @example
40
+ * 102
41
+ */
42
+ callTypeCode?: string;
43
+ /**
44
+ * @remarks
45
+ * 被叫号码区号
46
+ *
47
+ * @example
48
+ * 010
49
+ */
50
+ calleeAreaCode?: string;
51
+ /**
52
+ * @remarks
53
+ * 呼叫的号码,可能是座席也可能是普通电话
54
+ *
55
+ * @example
56
+ * 01041003090
57
+ */
58
+ calleeNumber?: string;
59
+ /**
60
+ * @remarks
61
+ * 外显号码
62
+ *
63
+ * @example
64
+ * 02138276106
65
+ */
66
+ clid?: string;
67
+ /**
68
+ * @remarks
69
+ * 座席工号,如2000
70
+ *
71
+ * @example
72
+ * 1111
73
+ */
74
+ cno?: string;
75
+ /**
76
+ * @remarks
77
+ * 客户侧真实外显号码,当使用AXB场景进行外呼时,客户侧真实外显号码为虚拟号
78
+ *
79
+ * @example
80
+ * 02138276106
81
+ */
82
+ displayNumber?: string;
83
+ /**
84
+ * @remarks
85
+ * 结束原因,接听之后的挂机原因 1000:主通道挂机 1001:非主通道挂机 1002:被强拆
86
+ *
87
+ * @example
88
+ * 1000
89
+ */
90
+ endReason?: string;
91
+ /**
92
+ * @remarks
93
+ * 电话结束时间,时间戳,精确到s,如1480904471
94
+ *
95
+ * @example
96
+ * 1775024775
97
+ */
98
+ endTime?: string;
99
+ /**
100
+ * @example
101
+ * WH514097
102
+ */
103
+ gno?: string;
104
+ /**
105
+ * @remarks
106
+ * Id
107
+ *
108
+ * @example
109
+ * 797880898
110
+ */
111
+ id?: string;
112
+ /**
113
+ * @remarks
114
+ * 入队列时间,时间戳,精确到s,如1480904471
115
+ *
116
+ * @example
117
+ * 1775024775
118
+ */
119
+ joinQueueTime?: string;
120
+ /**
121
+ * @remarks
122
+ * 主通话记录来电类型 主叫外呼
123
+ *
124
+ * @example
125
+ * 示例值示例值
126
+ */
127
+ mainCallType?: string;
128
+ /**
129
+ * @remarks
130
+ * 主外呼通话记录唯一标识
131
+ *
132
+ * @example
133
+ * uniq_1-162046xxxx.12
134
+ */
135
+ mainUniqueId?: string;
136
+ /**
137
+ * @remarks
138
+ * 队列号
139
+ *
140
+ * @example
141
+ * 131
142
+ */
143
+ qno?: string;
144
+ /**
145
+ * @remarks
146
+ * 进入队列时间
147
+ *
148
+ * @example
149
+ * 1775024775
150
+ */
151
+ queueName?: string;
152
+ recordFile?: string[];
153
+ /**
154
+ * @remarks
155
+ * 响铃时间,时间戳,精确到s,如1480904471
156
+ *
157
+ * @example
158
+ * 1775024775
159
+ */
160
+ ringingTime?: string;
161
+ /**
162
+ * @remarks
163
+ * SIP响应码:200 ~ 699
164
+ *
165
+ * @example
166
+ * 200
167
+ */
168
+ sipCause?: string;
169
+ /**
170
+ * @remarks
171
+ * 呼叫结果
172
+ *
173
+ * @example
174
+ * 示例值示例值示例值
175
+ */
176
+ sipCauseStr?: string;
177
+ /**
178
+ * @remarks
179
+ * 呼叫客户时间,时间戳,精确到s,如1480904471
180
+ *
181
+ * @example
182
+ * 1775024775
183
+ */
184
+ startTime?: string;
185
+ /**
186
+ * @remarks
187
+ * 外呼结果,如接听
188
+ *
189
+ * @example
190
+ * 示例值示例值
191
+ */
192
+ status?: string;
193
+ /**
194
+ * @example
195
+ * 2
196
+ */
197
+ statusCode?: string;
198
+ /**
199
+ * @example
200
+ * 示例值
201
+ */
202
+ taskName?: string;
203
+ /**
204
+ * @remarks
205
+ * 总通话时长秒数,单位是s
206
+ *
207
+ * @example
208
+ * 50
209
+ */
210
+ totalDuration?: string;
211
+ /**
212
+ * @remarks
213
+ * 中继群组代号
214
+ *
215
+ * @example
216
+ * 30019
217
+ */
218
+ trunkGroupKey?: string;
219
+ /**
220
+ * @remarks
221
+ * 号码状态识别录音文件名
222
+ *
223
+ * @example
224
+ * name5
225
+ */
226
+ tsiFile?: string;
227
+ /**
228
+ * @remarks
229
+ * 从通道唯一标识
230
+ *
231
+ * @example
232
+ * uniq_1-162046xxxx.12
233
+ */
234
+ uniqueId?: string;
235
+ /**
236
+ * @example
237
+ * 示例值
238
+ */
239
+ XNumber?: string;
240
+ static names(): { [key: string]: string } {
241
+ return {
242
+ agentName: 'AgentName',
243
+ answerTime: 'AnswerTime',
244
+ callId: 'CallId',
245
+ callType: 'CallType',
246
+ callTypeCode: 'CallTypeCode',
247
+ calleeAreaCode: 'CalleeAreaCode',
248
+ calleeNumber: 'CalleeNumber',
249
+ clid: 'Clid',
250
+ cno: 'Cno',
251
+ displayNumber: 'DisplayNumber',
252
+ endReason: 'EndReason',
253
+ endTime: 'EndTime',
254
+ gno: 'Gno',
255
+ id: 'Id',
256
+ joinQueueTime: 'JoinQueueTime',
257
+ mainCallType: 'MainCallType',
258
+ mainUniqueId: 'MainUniqueId',
259
+ qno: 'Qno',
260
+ queueName: 'QueueName',
261
+ recordFile: 'RecordFile',
262
+ ringingTime: 'RingingTime',
263
+ sipCause: 'SipCause',
264
+ sipCauseStr: 'SipCauseStr',
265
+ startTime: 'StartTime',
266
+ status: 'Status',
267
+ statusCode: 'StatusCode',
268
+ taskName: 'TaskName',
269
+ totalDuration: 'TotalDuration',
270
+ trunkGroupKey: 'TrunkGroupKey',
271
+ tsiFile: 'TsiFile',
272
+ uniqueId: 'UniqueId',
273
+ XNumber: 'XNumber',
274
+ };
275
+ }
276
+
277
+ static types(): { [key: string]: any } {
278
+ return {
279
+ agentName: 'string',
280
+ answerTime: 'string',
281
+ callId: 'string',
282
+ callType: 'string',
283
+ callTypeCode: 'string',
284
+ calleeAreaCode: 'string',
285
+ calleeNumber: 'string',
286
+ clid: 'string',
287
+ cno: 'string',
288
+ displayNumber: 'string',
289
+ endReason: 'string',
290
+ endTime: 'string',
291
+ gno: 'string',
292
+ id: 'string',
293
+ joinQueueTime: 'string',
294
+ mainCallType: 'string',
295
+ mainUniqueId: 'string',
296
+ qno: 'string',
297
+ queueName: 'string',
298
+ recordFile: { 'type': 'array', 'itemType': 'string' },
299
+ ringingTime: 'string',
300
+ sipCause: 'string',
301
+ sipCauseStr: 'string',
302
+ startTime: 'string',
303
+ status: 'string',
304
+ statusCode: 'string',
305
+ taskName: 'string',
306
+ totalDuration: 'string',
307
+ trunkGroupKey: 'string',
308
+ tsiFile: 'string',
309
+ uniqueId: 'string',
310
+ XNumber: 'string',
311
+ };
312
+ }
313
+
314
+ validate() {
315
+ if(Array.isArray(this.recordFile)) {
316
+ $dara.Model.validateArray(this.recordFile);
317
+ }
318
+ super.validate();
319
+ }
320
+
321
+ constructor(map?: { [key: string]: any }) {
322
+ super(map);
323
+ }
324
+ }
325
+
326
+ export class CloudGetObCdrResponseBodyData extends $dara.Model {
327
+ /**
328
+ * @remarks
329
+ * 座席外呼通话记录详情
330
+ */
331
+ list?: CloudGetObCdrResponseBodyDataList[];
332
+ static names(): { [key: string]: string } {
333
+ return {
334
+ list: 'List',
335
+ };
336
+ }
337
+
338
+ static types(): { [key: string]: any } {
339
+ return {
340
+ list: { 'type': 'array', 'itemType': CloudGetObCdrResponseBodyDataList },
341
+ };
342
+ }
343
+
344
+ validate() {
345
+ if(Array.isArray(this.list)) {
346
+ $dara.Model.validateArray(this.list);
347
+ }
348
+ super.validate();
349
+ }
350
+
351
+ constructor(map?: { [key: string]: any }) {
352
+ super(map);
353
+ }
354
+ }
355
+
356
+ export class CloudGetObCdrResponseBody extends $dara.Model {
357
+ accessDeniedDetail?: string;
358
+ /**
359
+ * @example
360
+ * OK
361
+ */
362
+ code?: string;
363
+ data?: CloudGetObCdrResponseBodyData;
364
+ /**
365
+ * @example
366
+ * OK
367
+ */
368
+ message?: string;
369
+ /**
370
+ * @example
371
+ * 9FF70B74-1B3C-44C1-ACDF-8DF962988F0E
372
+ */
373
+ requestId?: string;
374
+ static names(): { [key: string]: string } {
375
+ return {
376
+ accessDeniedDetail: 'AccessDeniedDetail',
377
+ code: 'Code',
378
+ data: 'Data',
379
+ message: 'Message',
380
+ requestId: 'RequestId',
381
+ };
382
+ }
383
+
384
+ static types(): { [key: string]: any } {
385
+ return {
386
+ accessDeniedDetail: 'string',
387
+ code: 'string',
388
+ data: CloudGetObCdrResponseBodyData,
389
+ message: 'string',
390
+ requestId: 'string',
391
+ };
392
+ }
393
+
394
+ validate() {
395
+ if(this.data && typeof (this.data as any).validate === 'function') {
396
+ (this.data as any).validate();
397
+ }
398
+ super.validate();
399
+ }
400
+
401
+ constructor(map?: { [key: string]: any }) {
402
+ super(map);
403
+ }
404
+ }
405
+
@@ -0,0 +1,98 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CloudGetRecordUrlRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * 呼叫类型;说明:开启分线录音时,获取客户侧或座席侧录音需要,recordFormat=1时有效,recordFormat=0时忽略。取值范围:1,2,4,5(数字含义:呼入,webcall,预览外呼,预测外呼)
9
+ *
10
+ * @example
11
+ * 4
12
+ */
13
+ callType?: number;
14
+ /**
15
+ * @remarks
16
+ * 是否下载;1为下载,空或0表示试听
17
+ *
18
+ * @example
19
+ * 1
20
+ */
21
+ download?: number;
22
+ /**
23
+ * @remarks
24
+ * 呼叫中心 id
25
+ *
26
+ * This parameter is required.
27
+ *
28
+ * @example
29
+ * 7000002
30
+ */
31
+ enterpriseId?: number;
32
+ /**
33
+ * @remarks
34
+ * 录音文件名;如7000101-20160815140025-01087120766-01087120766--record-sip-1-1471240825.87
35
+ *
36
+ * This parameter is required.
37
+ *
38
+ * @example
39
+ * 7000101-20160815140025-01087120766-01087120766--record-sip-1-1471240825.87
40
+ */
41
+ recordFile?: string;
42
+ /**
43
+ * @remarks
44
+ * 录音文件类型;取值说明:0为mp3,1为wav,默认为mp3类型
45
+ *
46
+ * @example
47
+ * 1
48
+ */
49
+ recordFormat?: number;
50
+ /**
51
+ * @remarks
52
+ * 分线录音录音侧;说明:开启分线录音时,获取客户侧或座席侧录音需要,recordFormat=1时有效,recordFormat=0时忽略。取值范围:1,2 (数字含义:客户侧,座席侧)recordSide不为空时,callType必选
53
+ *
54
+ * @example
55
+ * 2
56
+ */
57
+ recordSide?: number;
58
+ /**
59
+ * @remarks
60
+ * 录音类型,不填可根据 recordFile 解析;record:录音voicemail:留言tsi:彩铃、当开启号码录音状态识别,发起预览外呼,客户号码是手机且客户未接听时返回该地址 rasr:语音机器人客户侧录音 transfer:转接consult:咨询threeway:三方
61
+ *
62
+ * @example
63
+ * record
64
+ */
65
+ recordType?: string;
66
+ static names(): { [key: string]: string } {
67
+ return {
68
+ callType: 'CallType',
69
+ download: 'Download',
70
+ enterpriseId: 'EnterpriseId',
71
+ recordFile: 'RecordFile',
72
+ recordFormat: 'RecordFormat',
73
+ recordSide: 'RecordSide',
74
+ recordType: 'RecordType',
75
+ };
76
+ }
77
+
78
+ static types(): { [key: string]: any } {
79
+ return {
80
+ callType: 'number',
81
+ download: 'number',
82
+ enterpriseId: 'number',
83
+ recordFile: 'string',
84
+ recordFormat: 'number',
85
+ recordSide: 'number',
86
+ recordType: 'string',
87
+ };
88
+ }
89
+
90
+ validate() {
91
+ super.validate();
92
+ }
93
+
94
+ constructor(map?: { [key: string]: any }) {
95
+ super(map);
96
+ }
97
+ }
98
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { CloudGetRecordUrlResponseBody } from "./CloudGetRecordUrlResponseBody";
4
+
5
+
6
+ export class CloudGetRecordUrlResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: CloudGetRecordUrlResponseBody;
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: CloudGetRecordUrlResponseBody,
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
+
@@ -0,0 +1,84 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CloudGetRecordUrlResponseBodyData extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * 试听或下载地址,默认120分钟过期(可配置),过期后,需重新请求接口
9
+ *
10
+ * @example
11
+ * http://voice-1.aliyun.cn/31102016/record/7000000/7000000-2016103111%204742-01087120766-01087120766--record-sip-1-1477885662.222.mp3?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20161114T100003Z&X-Amz-SignedHeaders=host&X-Amz-Expires=119&X-Amz-Credential=AKIAOTCJOBZFUWFI7FSA%2F20161114%2Fcn-north-1%2Fs3%2Faws4_request&X-Amz-Signature=0cda4389ecc743acc71d76a320705afd0c175c5ad2286305675c4dee5189b9c8
12
+ */
13
+ url?: string;
14
+ static names(): { [key: string]: string } {
15
+ return {
16
+ url: 'Url',
17
+ };
18
+ }
19
+
20
+ static types(): { [key: string]: any } {
21
+ return {
22
+ url: 'string',
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ super.validate();
28
+ }
29
+
30
+ constructor(map?: { [key: string]: any }) {
31
+ super(map);
32
+ }
33
+ }
34
+
35
+ export class CloudGetRecordUrlResponseBody extends $dara.Model {
36
+ accessDeniedDetail?: string;
37
+ /**
38
+ * @example
39
+ * OK
40
+ */
41
+ code?: string;
42
+ data?: CloudGetRecordUrlResponseBodyData;
43
+ /**
44
+ * @example
45
+ * OK
46
+ */
47
+ message?: string;
48
+ /**
49
+ * @example
50
+ * 6086693B-2250-17CE-A41F-06259AB6DB1B
51
+ */
52
+ requestId?: string;
53
+ static names(): { [key: string]: string } {
54
+ return {
55
+ accessDeniedDetail: 'AccessDeniedDetail',
56
+ code: 'Code',
57
+ data: 'Data',
58
+ message: 'Message',
59
+ requestId: 'RequestId',
60
+ };
61
+ }
62
+
63
+ static types(): { [key: string]: any } {
64
+ return {
65
+ accessDeniedDetail: 'string',
66
+ code: 'string',
67
+ data: CloudGetRecordUrlResponseBodyData,
68
+ message: 'string',
69
+ requestId: 'string',
70
+ };
71
+ }
72
+
73
+ validate() {
74
+ if(this.data && typeof (this.data as any).validate === 'function') {
75
+ (this.data as any).validate();
76
+ }
77
+ super.validate();
78
+ }
79
+
80
+ constructor(map?: { [key: string]: any }) {
81
+ super(map);
82
+ }
83
+ }
84
+