@alicloud/ccc20200701 2.35.0 → 2.36.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 (33) hide show
  1. package/dist/client.d.ts +30 -0
  2. package/dist/client.js +93 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/ListFeedbacksRequest.d.ts +23 -0
  5. package/dist/models/ListFeedbacksRequest.js +60 -0
  6. package/dist/models/ListFeedbacksRequest.js.map +1 -0
  7. package/dist/models/ListFeedbacksResponse.d.ts +19 -0
  8. package/dist/models/ListFeedbacksResponse.js +69 -0
  9. package/dist/models/ListFeedbacksResponse.js.map +1 -0
  10. package/dist/models/ListFeedbacksResponseBody.d.ts +72 -0
  11. package/dist/models/ListFeedbacksResponseBody.js +98 -0
  12. package/dist/models/ListFeedbacksResponseBody.js.map +1 -0
  13. package/dist/models/SendNotificationRequest.d.ts +53 -0
  14. package/dist/models/SendNotificationRequest.js +66 -0
  15. package/dist/models/SendNotificationRequest.js.map +1 -0
  16. package/dist/models/SendNotificationResponse.d.ts +19 -0
  17. package/dist/models/SendNotificationResponse.js +69 -0
  18. package/dist/models/SendNotificationResponse.js.map +1 -0
  19. package/dist/models/SendNotificationResponseBody.d.ts +33 -0
  20. package/dist/models/SendNotificationResponseBody.js +64 -0
  21. package/dist/models/SendNotificationResponseBody.js.map +1 -0
  22. package/dist/models/model.d.ts +7 -0
  23. package/dist/models/model.js +34 -20
  24. package/dist/models/model.js.map +1 -1
  25. package/package.json +1 -1
  26. package/src/client.ts +104 -0
  27. package/src/models/ListFeedbacksRequest.ts +38 -0
  28. package/src/models/ListFeedbacksResponse.ts +40 -0
  29. package/src/models/ListFeedbacksResponseBody.ts +116 -0
  30. package/src/models/SendNotificationRequest.ts +74 -0
  31. package/src/models/SendNotificationResponse.ts +40 -0
  32. package/src/models/SendNotificationResponseBody.ts +52 -0
  33. package/src/models/model.ts +7 -0
package/src/client.ts CHANGED
@@ -7084,6 +7084,52 @@ export default class Client extends OpenApi {
7084
7084
  return await this.listDocumentsWithOptions(request, runtime);
7085
7085
  }
7086
7086
 
7087
+ /**
7088
+ * 查询反馈记录
7089
+ *
7090
+ * @param request - ListFeedbacksRequest
7091
+ * @param runtime - runtime options for this request RuntimeOptions
7092
+ * @returns ListFeedbacksResponse
7093
+ */
7094
+ async listFeedbacksWithOptions(request: $_model.ListFeedbacksRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListFeedbacksResponse> {
7095
+ request.validate();
7096
+ let query = { };
7097
+ if (!$dara.isNull(request.instanceId)) {
7098
+ query["InstanceId"] = request.instanceId;
7099
+ }
7100
+
7101
+ if (!$dara.isNull(request.taskIdList)) {
7102
+ query["TaskIdList"] = request.taskIdList;
7103
+ }
7104
+
7105
+ let req = new $OpenApiUtil.OpenApiRequest({
7106
+ query: OpenApiUtil.query(query),
7107
+ });
7108
+ let params = new $OpenApiUtil.Params({
7109
+ action: "ListFeedbacks",
7110
+ version: "2020-07-01",
7111
+ protocol: "HTTPS",
7112
+ pathname: "/",
7113
+ method: "POST",
7114
+ authType: "AK",
7115
+ style: "RPC",
7116
+ reqBodyType: "formData",
7117
+ bodyType: "json",
7118
+ });
7119
+ return $dara.cast<$_model.ListFeedbacksResponse>(await this.callApi(params, req, runtime), new $_model.ListFeedbacksResponse({}));
7120
+ }
7121
+
7122
+ /**
7123
+ * 查询反馈记录
7124
+ *
7125
+ * @param request - ListFeedbacksRequest
7126
+ * @returns ListFeedbacksResponse
7127
+ */
7128
+ async listFeedbacks(request: $_model.ListFeedbacksRequest): Promise<$_model.ListFeedbacksResponse> {
7129
+ let runtime = new $dara.RuntimeOptions({ });
7130
+ return await this.listFeedbacksWithOptions(request, runtime);
7131
+ }
7132
+
7087
7133
  /**
7088
7134
  * @param request - ListFlashSmsApplicationsRequest
7089
7135
  * @param runtime - runtime options for this request RuntimeOptions
@@ -11978,6 +12024,64 @@ export default class Client extends OpenApi {
11978
12024
  return await this.sendDtmfSignalingWithOptions(request, runtime);
11979
12025
  }
11980
12026
 
12027
+ /**
12028
+ * 推送消息
12029
+ *
12030
+ * @param request - SendNotificationRequest
12031
+ * @param runtime - runtime options for this request RuntimeOptions
12032
+ * @returns SendNotificationResponse
12033
+ */
12034
+ async sendNotificationWithOptions(request: $_model.SendNotificationRequest, runtime: $dara.RuntimeOptions): Promise<$_model.SendNotificationResponse> {
12035
+ request.validate();
12036
+ let query = { };
12037
+ if (!$dara.isNull(request.instanceId)) {
12038
+ query["InstanceId"] = request.instanceId;
12039
+ }
12040
+
12041
+ if (!$dara.isNull(request.messageBody)) {
12042
+ query["MessageBody"] = request.messageBody;
12043
+ }
12044
+
12045
+ if (!$dara.isNull(request.notificationTarget)) {
12046
+ query["NotificationTarget"] = request.notificationTarget;
12047
+ }
12048
+
12049
+ if (!$dara.isNull(request.notificationType)) {
12050
+ query["NotificationType"] = request.notificationType;
12051
+ }
12052
+
12053
+ if (!$dara.isNull(request.shardingKey)) {
12054
+ query["ShardingKey"] = request.shardingKey;
12055
+ }
12056
+
12057
+ let req = new $OpenApiUtil.OpenApiRequest({
12058
+ query: OpenApiUtil.query(query),
12059
+ });
12060
+ let params = new $OpenApiUtil.Params({
12061
+ action: "SendNotification",
12062
+ version: "2020-07-01",
12063
+ protocol: "HTTPS",
12064
+ pathname: "/",
12065
+ method: "POST",
12066
+ authType: "AK",
12067
+ style: "RPC",
12068
+ reqBodyType: "formData",
12069
+ bodyType: "json",
12070
+ });
12071
+ return $dara.cast<$_model.SendNotificationResponse>(await this.callApi(params, req, runtime), new $_model.SendNotificationResponse({}));
12072
+ }
12073
+
12074
+ /**
12075
+ * 推送消息
12076
+ *
12077
+ * @param request - SendNotificationRequest
12078
+ * @returns SendNotificationResponse
12079
+ */
12080
+ async sendNotification(request: $_model.SendNotificationRequest): Promise<$_model.SendNotificationResponse> {
12081
+ let runtime = new $dara.RuntimeOptions({ });
12082
+ return await this.sendNotificationWithOptions(request, runtime);
12083
+ }
12084
+
11981
12085
  /**
11982
12086
  * @param request - SignInGroupRequest
11983
12087
  * @param runtime - runtime options for this request RuntimeOptions
@@ -0,0 +1,38 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListFeedbacksRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * ccc-test
9
+ */
10
+ instanceId?: string;
11
+ /**
12
+ * @example
13
+ * ["20251216-8B9B7B02-16FE-54BE-942A-F59DE0656032"]
14
+ */
15
+ taskIdList?: string;
16
+ static names(): { [key: string]: string } {
17
+ return {
18
+ instanceId: 'InstanceId',
19
+ taskIdList: 'TaskIdList',
20
+ };
21
+ }
22
+
23
+ static types(): { [key: string]: any } {
24
+ return {
25
+ instanceId: 'string',
26
+ taskIdList: 'string',
27
+ };
28
+ }
29
+
30
+ validate() {
31
+ super.validate();
32
+ }
33
+
34
+ constructor(map?: { [key: string]: any }) {
35
+ super(map);
36
+ }
37
+ }
38
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ListFeedbacksResponseBody } from "./ListFeedbacksResponseBody";
4
+
5
+
6
+ export class ListFeedbacksResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ListFeedbacksResponseBody;
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: ListFeedbacksResponseBody,
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,116 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListFeedbacksResponseBodyData extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * job-25920271311543****
9
+ */
10
+ contactId?: string;
11
+ /**
12
+ * @example
13
+ * ccc-test
14
+ */
15
+ instanceId?: string;
16
+ /**
17
+ * @example
18
+ * 20251216-8B9B7B02-16FE-54BE-942A-F59DE0656032
19
+ */
20
+ taskId?: string;
21
+ /**
22
+ * @example
23
+ * PostCallAnalyzer:solution
24
+ */
25
+ taskName?: string;
26
+ /**
27
+ * @example
28
+ * -1
29
+ */
30
+ userRating?: number;
31
+ /**
32
+ * @example
33
+ * xxxxxxx
34
+ */
35
+ userResponse?: string;
36
+ static names(): { [key: string]: string } {
37
+ return {
38
+ contactId: 'ContactId',
39
+ instanceId: 'InstanceId',
40
+ taskId: 'TaskId',
41
+ taskName: 'TaskName',
42
+ userRating: 'UserRating',
43
+ userResponse: 'UserResponse',
44
+ };
45
+ }
46
+
47
+ static types(): { [key: string]: any } {
48
+ return {
49
+ contactId: 'string',
50
+ instanceId: 'string',
51
+ taskId: 'string',
52
+ taskName: 'string',
53
+ userRating: 'number',
54
+ userResponse: 'string',
55
+ };
56
+ }
57
+
58
+ validate() {
59
+ super.validate();
60
+ }
61
+
62
+ constructor(map?: { [key: string]: any }) {
63
+ super(map);
64
+ }
65
+ }
66
+
67
+ export class ListFeedbacksResponseBody extends $dara.Model {
68
+ /**
69
+ * @example
70
+ * OK
71
+ */
72
+ code?: string;
73
+ data?: ListFeedbacksResponseBodyData[];
74
+ /**
75
+ * @example
76
+ * 200
77
+ */
78
+ httpStatusCode?: number;
79
+ message?: string;
80
+ /**
81
+ * @example
82
+ * 26E54929-CA86-1035-9B42-0C8F291BB027
83
+ */
84
+ requestId?: string;
85
+ static names(): { [key: string]: string } {
86
+ return {
87
+ code: 'Code',
88
+ data: 'Data',
89
+ httpStatusCode: 'HttpStatusCode',
90
+ message: 'Message',
91
+ requestId: 'RequestId',
92
+ };
93
+ }
94
+
95
+ static types(): { [key: string]: any } {
96
+ return {
97
+ code: 'string',
98
+ data: { 'type': 'array', 'itemType': ListFeedbacksResponseBodyData },
99
+ httpStatusCode: 'number',
100
+ message: 'string',
101
+ requestId: 'string',
102
+ };
103
+ }
104
+
105
+ validate() {
106
+ if(Array.isArray(this.data)) {
107
+ $dara.Model.validateArray(this.data);
108
+ }
109
+ super.validate();
110
+ }
111
+
112
+ constructor(map?: { [key: string]: any }) {
113
+ super(map);
114
+ }
115
+ }
116
+
@@ -0,0 +1,74 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class SendNotificationRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * This parameter is required.
9
+ *
10
+ * @example
11
+ * ccc-test
12
+ */
13
+ instanceId?: string;
14
+ /**
15
+ * @remarks
16
+ * This parameter is required.
17
+ *
18
+ * @example
19
+ * { "eventType": "VnRecordingReady", "eventTime": "2025-11-05T01:51:20.974Z", "instanceId": "ccc-test", "scenarioId": "scenario-xxxx", "contactId": "job-xxxxxx", "duration": 59, "startTime": "2025-11-05T01:50:04.732Z", "endTime": "2025-11-05T01:51:02.822Z", "fileName": "xxxxxxx.wav", "downloadURL": "https://ccc-v2-online.oss-cn-shanghai.aliyuncs.com/ccc-record-mixed/xxxxxxx.wav?Expires=1762393880" }
20
+ */
21
+ messageBody?: string;
22
+ /**
23
+ * @remarks
24
+ * This parameter is required.
25
+ *
26
+ * @example
27
+ * CUSTOMER
28
+ */
29
+ notificationTarget?: string;
30
+ /**
31
+ * @remarks
32
+ * This parameter is required.
33
+ *
34
+ * @example
35
+ * VnRecordingReady
36
+ */
37
+ notificationType?: string;
38
+ /**
39
+ * @remarks
40
+ * This parameter is required.
41
+ *
42
+ * @example
43
+ * job-xxxxxx
44
+ */
45
+ shardingKey?: string;
46
+ static names(): { [key: string]: string } {
47
+ return {
48
+ instanceId: 'InstanceId',
49
+ messageBody: 'MessageBody',
50
+ notificationTarget: 'NotificationTarget',
51
+ notificationType: 'NotificationType',
52
+ shardingKey: 'ShardingKey',
53
+ };
54
+ }
55
+
56
+ static types(): { [key: string]: any } {
57
+ return {
58
+ instanceId: 'string',
59
+ messageBody: 'string',
60
+ notificationTarget: 'string',
61
+ notificationType: 'string',
62
+ shardingKey: 'string',
63
+ };
64
+ }
65
+
66
+ validate() {
67
+ super.validate();
68
+ }
69
+
70
+ constructor(map?: { [key: string]: any }) {
71
+ super(map);
72
+ }
73
+ }
74
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { SendNotificationResponseBody } from "./SendNotificationResponseBody";
4
+
5
+
6
+ export class SendNotificationResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: SendNotificationResponseBody;
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: SendNotificationResponseBody,
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,52 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class SendNotificationResponseBody extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * OK
9
+ */
10
+ code?: string;
11
+ /**
12
+ * @example
13
+ * 200
14
+ */
15
+ httpStatusCode?: string;
16
+ /**
17
+ * @example
18
+ * 无
19
+ */
20
+ message?: string;
21
+ /**
22
+ * @example
23
+ * 39138031-****-****-****-3AEE8F5DAC13
24
+ */
25
+ requestId?: string;
26
+ static names(): { [key: string]: string } {
27
+ return {
28
+ code: 'Code',
29
+ httpStatusCode: 'HttpStatusCode',
30
+ message: 'Message',
31
+ requestId: 'RequestId',
32
+ };
33
+ }
34
+
35
+ static types(): { [key: string]: any } {
36
+ return {
37
+ code: 'string',
38
+ httpStatusCode: 'string',
39
+ message: 'string',
40
+ requestId: 'string',
41
+ };
42
+ }
43
+
44
+ validate() {
45
+ super.validate();
46
+ }
47
+
48
+ constructor(map?: { [key: string]: any }) {
49
+ super(map);
50
+ }
51
+ }
52
+
@@ -175,6 +175,7 @@ export { ListDoNotCallNumbersResponseBodyData } from './ListDoNotCallNumbersResp
175
175
  export { ListDocumentsRequestSorts } from './ListDocumentsRequest';
176
176
  export { ListDocumentsResponseBodyDataSchema } from './ListDocumentsResponseBody';
177
177
  export { ListDocumentsResponseBodyData } from './ListDocumentsResponseBody';
178
+ export { ListFeedbacksResponseBodyData } from './ListFeedbacksResponseBody';
178
179
  export { ListFlashSmsApplicationsResponseBodyDataList } from './ListFlashSmsApplicationsResponseBody';
179
180
  export { ListFlashSmsApplicationsResponseBodyData } from './ListFlashSmsApplicationsResponseBody';
180
181
  export { ListFlashSmsSettingsResponseBodyDataList } from './ListFlashSmsSettingsResponseBody';
@@ -791,6 +792,9 @@ export { ListDocumentsRequest } from './ListDocumentsRequest';
791
792
  export { ListDocumentsShrinkRequest } from './ListDocumentsShrinkRequest';
792
793
  export { ListDocumentsResponseBody } from './ListDocumentsResponseBody';
793
794
  export { ListDocumentsResponse } from './ListDocumentsResponse';
795
+ export { ListFeedbacksRequest } from './ListFeedbacksRequest';
796
+ export { ListFeedbacksResponseBody } from './ListFeedbacksResponseBody';
797
+ export { ListFeedbacksResponse } from './ListFeedbacksResponse';
794
798
  export { ListFlashSmsApplicationsRequest } from './ListFlashSmsApplicationsRequest';
795
799
  export { ListFlashSmsApplicationsResponseBody } from './ListFlashSmsApplicationsResponseBody';
796
800
  export { ListFlashSmsApplicationsResponse } from './ListFlashSmsApplicationsResponse';
@@ -1066,6 +1070,9 @@ export { SaveWebRtcInfoResponse } from './SaveWebRtcInfoResponse';
1066
1070
  export { SendDtmfSignalingRequest } from './SendDtmfSignalingRequest';
1067
1071
  export { SendDtmfSignalingResponseBody } from './SendDtmfSignalingResponseBody';
1068
1072
  export { SendDtmfSignalingResponse } from './SendDtmfSignalingResponse';
1073
+ export { SendNotificationRequest } from './SendNotificationRequest';
1074
+ export { SendNotificationResponseBody } from './SendNotificationResponseBody';
1075
+ export { SendNotificationResponse } from './SendNotificationResponse';
1069
1076
  export { SignInGroupRequest } from './SignInGroupRequest';
1070
1077
  export { SignInGroupResponseBody } from './SignInGroupResponseBody';
1071
1078
  export { SignInGroupResponse } from './SignInGroupResponse';