@alicloud/ccc20200701 2.34.1 → 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 (49) hide show
  1. package/dist/client.d.ts +45 -0
  2. package/dist/client.js +146 -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/ModifyCampaignNumbersRequest.d.ts +35 -0
  14. package/dist/models/ModifyCampaignNumbersRequest.js +67 -0
  15. package/dist/models/ModifyCampaignNumbersRequest.js.map +1 -0
  16. package/dist/models/ModifyCampaignNumbersResponse.d.ts +19 -0
  17. package/dist/models/ModifyCampaignNumbersResponse.js +69 -0
  18. package/dist/models/ModifyCampaignNumbersResponse.js.map +1 -0
  19. package/dist/models/ModifyCampaignNumbersResponseBody.d.ts +31 -0
  20. package/dist/models/ModifyCampaignNumbersResponseBody.js +71 -0
  21. package/dist/models/ModifyCampaignNumbersResponseBody.js.map +1 -0
  22. package/dist/models/ModifyCampaignNumbersShrinkRequest.d.ts +35 -0
  23. package/dist/models/ModifyCampaignNumbersShrinkRequest.js +64 -0
  24. package/dist/models/ModifyCampaignNumbersShrinkRequest.js.map +1 -0
  25. package/dist/models/SendNotificationRequest.d.ts +53 -0
  26. package/dist/models/SendNotificationRequest.js +66 -0
  27. package/dist/models/SendNotificationRequest.js.map +1 -0
  28. package/dist/models/SendNotificationResponse.d.ts +19 -0
  29. package/dist/models/SendNotificationResponse.js +69 -0
  30. package/dist/models/SendNotificationResponse.js.map +1 -0
  31. package/dist/models/SendNotificationResponseBody.d.ts +33 -0
  32. package/dist/models/SendNotificationResponseBody.js +64 -0
  33. package/dist/models/SendNotificationResponseBody.js.map +1 -0
  34. package/dist/models/model.d.ts +11 -0
  35. package/dist/models/model.js +42 -20
  36. package/dist/models/model.js.map +1 -1
  37. package/package.json +1 -1
  38. package/src/client.ts +164 -0
  39. package/src/models/ListFeedbacksRequest.ts +38 -0
  40. package/src/models/ListFeedbacksResponse.ts +40 -0
  41. package/src/models/ListFeedbacksResponseBody.ts +116 -0
  42. package/src/models/ModifyCampaignNumbersRequest.ts +57 -0
  43. package/src/models/ModifyCampaignNumbersResponse.ts +40 -0
  44. package/src/models/ModifyCampaignNumbersResponseBody.ts +57 -0
  45. package/src/models/ModifyCampaignNumbersShrinkRequest.ts +54 -0
  46. package/src/models/SendNotificationRequest.ts +74 -0
  47. package/src/models/SendNotificationResponse.ts +40 -0
  48. package/src/models/SendNotificationResponseBody.ts +52 -0
  49. package/src/models/model.ts +11 -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
@@ -9674,6 +9720,66 @@ export default class Client extends OpenApi {
9674
9720
  return await this.modifyAudioFileWithOptions(request, runtime);
9675
9721
  }
9676
9722
 
9723
+ /**
9724
+ * 修改活动外呼号码
9725
+ *
9726
+ * @param tmpReq - ModifyCampaignNumbersRequest
9727
+ * @param runtime - runtime options for this request RuntimeOptions
9728
+ * @returns ModifyCampaignNumbersResponse
9729
+ */
9730
+ async modifyCampaignNumbersWithOptions(tmpReq: $_model.ModifyCampaignNumbersRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyCampaignNumbersResponse> {
9731
+ tmpReq.validate();
9732
+ let request = new $_model.ModifyCampaignNumbersShrinkRequest({ });
9733
+ OpenApiUtil.convert(tmpReq, request);
9734
+ if (!$dara.isNull(tmpReq.numberList)) {
9735
+ request.numberListShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.numberList, "NumberList", "json");
9736
+ }
9737
+
9738
+ let query = { };
9739
+ if (!$dara.isNull(request.campaignId)) {
9740
+ query["CampaignId"] = request.campaignId;
9741
+ }
9742
+
9743
+ if (!$dara.isNull(request.instGroupId)) {
9744
+ query["InstGroupId"] = request.instGroupId;
9745
+ }
9746
+
9747
+ if (!$dara.isNull(request.instanceId)) {
9748
+ query["InstanceId"] = request.instanceId;
9749
+ }
9750
+
9751
+ if (!$dara.isNull(request.numberListShrink)) {
9752
+ query["NumberList"] = request.numberListShrink;
9753
+ }
9754
+
9755
+ let req = new $OpenApiUtil.OpenApiRequest({
9756
+ query: OpenApiUtil.query(query),
9757
+ });
9758
+ let params = new $OpenApiUtil.Params({
9759
+ action: "ModifyCampaignNumbers",
9760
+ version: "2020-07-01",
9761
+ protocol: "HTTPS",
9762
+ pathname: "/",
9763
+ method: "POST",
9764
+ authType: "AK",
9765
+ style: "RPC",
9766
+ reqBodyType: "formData",
9767
+ bodyType: "json",
9768
+ });
9769
+ return $dara.cast<$_model.ModifyCampaignNumbersResponse>(await this.callApi(params, req, runtime), new $_model.ModifyCampaignNumbersResponse({}));
9770
+ }
9771
+
9772
+ /**
9773
+ * 修改活动外呼号码
9774
+ *
9775
+ * @param request - ModifyCampaignNumbersRequest
9776
+ * @returns ModifyCampaignNumbersResponse
9777
+ */
9778
+ async modifyCampaignNumbers(request: $_model.ModifyCampaignNumbersRequest): Promise<$_model.ModifyCampaignNumbersResponse> {
9779
+ let runtime = new $dara.RuntimeOptions({ });
9780
+ return await this.modifyCampaignNumbersWithOptions(request, runtime);
9781
+ }
9782
+
9677
9783
  /**
9678
9784
  * 编辑呼入控制号码
9679
9785
  *
@@ -11918,6 +12024,64 @@ export default class Client extends OpenApi {
11918
12024
  return await this.sendDtmfSignalingWithOptions(request, runtime);
11919
12025
  }
11920
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
+
11921
12085
  /**
11922
12086
  * @param request - SignInGroupRequest
11923
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,57 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ModifyCampaignNumbersRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * This parameter is required.
9
+ *
10
+ * @example
11
+ * 6badb397-****-****-21019d382a09
12
+ */
13
+ campaignId?: string;
14
+ /**
15
+ * @example
16
+ * 3971876649-****-****-098763a382a09
17
+ */
18
+ instGroupId?: string;
19
+ /**
20
+ * @remarks
21
+ * This parameter is required.
22
+ *
23
+ * @example
24
+ * ccc-test
25
+ */
26
+ instanceId?: string;
27
+ numberList?: string[];
28
+ static names(): { [key: string]: string } {
29
+ return {
30
+ campaignId: 'CampaignId',
31
+ instGroupId: 'InstGroupId',
32
+ instanceId: 'InstanceId',
33
+ numberList: 'NumberList',
34
+ };
35
+ }
36
+
37
+ static types(): { [key: string]: any } {
38
+ return {
39
+ campaignId: 'string',
40
+ instGroupId: 'string',
41
+ instanceId: 'string',
42
+ numberList: { 'type': 'array', 'itemType': 'string' },
43
+ };
44
+ }
45
+
46
+ validate() {
47
+ if(Array.isArray(this.numberList)) {
48
+ $dara.Model.validateArray(this.numberList);
49
+ }
50
+ super.validate();
51
+ }
52
+
53
+ constructor(map?: { [key: string]: any }) {
54
+ super(map);
55
+ }
56
+ }
57
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ModifyCampaignNumbersResponseBody } from "./ModifyCampaignNumbersResponseBody";
4
+
5
+
6
+ export class ModifyCampaignNumbersResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ModifyCampaignNumbersResponseBody;
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: ModifyCampaignNumbersResponseBody,
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,57 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ModifyCampaignNumbersResponseBody extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * OK
9
+ */
10
+ code?: string;
11
+ data?: any;
12
+ /**
13
+ * @example
14
+ * 200
15
+ */
16
+ httpStatusCode?: number;
17
+ message?: string;
18
+ params?: string[];
19
+ /**
20
+ * @example
21
+ * DE803553-8AA9-4B9D-9E4E-A82BC69EDCEE
22
+ */
23
+ requestId?: string;
24
+ static names(): { [key: string]: string } {
25
+ return {
26
+ code: 'Code',
27
+ data: 'Data',
28
+ httpStatusCode: 'HttpStatusCode',
29
+ message: 'Message',
30
+ params: 'Params',
31
+ requestId: 'RequestId',
32
+ };
33
+ }
34
+
35
+ static types(): { [key: string]: any } {
36
+ return {
37
+ code: 'string',
38
+ data: 'any',
39
+ httpStatusCode: 'number',
40
+ message: 'string',
41
+ params: { 'type': 'array', 'itemType': 'string' },
42
+ requestId: 'string',
43
+ };
44
+ }
45
+
46
+ validate() {
47
+ if(Array.isArray(this.params)) {
48
+ $dara.Model.validateArray(this.params);
49
+ }
50
+ super.validate();
51
+ }
52
+
53
+ constructor(map?: { [key: string]: any }) {
54
+ super(map);
55
+ }
56
+ }
57
+
@@ -0,0 +1,54 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ModifyCampaignNumbersShrinkRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * This parameter is required.
9
+ *
10
+ * @example
11
+ * 6badb397-****-****-21019d382a09
12
+ */
13
+ campaignId?: string;
14
+ /**
15
+ * @example
16
+ * 3971876649-****-****-098763a382a09
17
+ */
18
+ instGroupId?: string;
19
+ /**
20
+ * @remarks
21
+ * This parameter is required.
22
+ *
23
+ * @example
24
+ * ccc-test
25
+ */
26
+ instanceId?: string;
27
+ numberListShrink?: string;
28
+ static names(): { [key: string]: string } {
29
+ return {
30
+ campaignId: 'CampaignId',
31
+ instGroupId: 'InstGroupId',
32
+ instanceId: 'InstanceId',
33
+ numberListShrink: 'NumberList',
34
+ };
35
+ }
36
+
37
+ static types(): { [key: string]: any } {
38
+ return {
39
+ campaignId: 'string',
40
+ instGroupId: 'string',
41
+ instanceId: 'string',
42
+ numberListShrink: 'string',
43
+ };
44
+ }
45
+
46
+ validate() {
47
+ super.validate();
48
+ }
49
+
50
+ constructor(map?: { [key: string]: any }) {
51
+ super(map);
52
+ }
53
+ }
54
+
@@ -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
+