@alicloud/ccc20200701 2.31.0 → 2.32.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/ccc20200701",
3
- "version": "2.31.0",
3
+ "version": "2.32.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -2585,6 +2585,40 @@ export class CreateCampaignRequestCaseList extends $dara.Model {
2585
2585
  }
2586
2586
  }
2587
2587
 
2588
+ export class CreateChatMediaUrlResponseBodyData extends $dara.Model {
2589
+ /**
2590
+ * @example
2591
+ * $iAHNCNQCo21wMwMGBAAFAAbaACOEAaQhIH6TAqogDGyb-qD2Hbj0A88AAAGRLKYVnwTOACwwYwcACM8AAAGRLRPynQ
2592
+ */
2593
+ mediaId?: string;
2594
+ /**
2595
+ * @example
2596
+ * https://ccc-v2-online.oss-cn-shanghai.aliyuncs.com/ccc-test/namelist.csv?Expires=1642067227&OSSAccessKeyId=****&Signature=****
2597
+ */
2598
+ url?: string;
2599
+ static names(): { [key: string]: string } {
2600
+ return {
2601
+ mediaId: 'MediaId',
2602
+ url: 'Url',
2603
+ };
2604
+ }
2605
+
2606
+ static types(): { [key: string]: any } {
2607
+ return {
2608
+ mediaId: 'string',
2609
+ url: 'string',
2610
+ };
2611
+ }
2612
+
2613
+ validate() {
2614
+ super.validate();
2615
+ }
2616
+
2617
+ constructor(map?: { [key: string]: any }) {
2618
+ super(map);
2619
+ }
2620
+ }
2621
+
2588
2622
  export class CreateCustomCallTaggingResponseBodyData extends $dara.Model {
2589
2623
  /**
2590
2624
  * @example
@@ -34410,6 +34444,146 @@ export class CreateCampaignResponse extends $dara.Model {
34410
34444
  }
34411
34445
  }
34412
34446
 
34447
+ export class CreateChatMediaUrlRequest extends $dara.Model {
34448
+ /**
34449
+ * @remarks
34450
+ * This parameter is required.
34451
+ *
34452
+ * @example
34453
+ * 9cfad875-6260-4a53-ab6e-b13e3fb31f7d
34454
+ */
34455
+ instanceId?: string;
34456
+ /**
34457
+ * @remarks
34458
+ * media id
34459
+ *
34460
+ * This parameter is required.
34461
+ *
34462
+ * @example
34463
+ * jpg
34464
+ */
34465
+ mimeType?: string;
34466
+ /**
34467
+ * @example
34468
+ * 9F766284-F103-4298-8EC5-19F9F9BE5522
34469
+ */
34470
+ requestId?: string;
34471
+ static names(): { [key: string]: string } {
34472
+ return {
34473
+ instanceId: 'InstanceId',
34474
+ mimeType: 'MimeType',
34475
+ requestId: 'RequestId',
34476
+ };
34477
+ }
34478
+
34479
+ static types(): { [key: string]: any } {
34480
+ return {
34481
+ instanceId: 'string',
34482
+ mimeType: 'string',
34483
+ requestId: 'string',
34484
+ };
34485
+ }
34486
+
34487
+ validate() {
34488
+ super.validate();
34489
+ }
34490
+
34491
+ constructor(map?: { [key: string]: any }) {
34492
+ super(map);
34493
+ }
34494
+ }
34495
+
34496
+ export class CreateChatMediaUrlResponseBody extends $dara.Model {
34497
+ /**
34498
+ * @example
34499
+ * OK
34500
+ */
34501
+ code?: string;
34502
+ data?: CreateChatMediaUrlResponseBodyData;
34503
+ /**
34504
+ * @example
34505
+ * 200
34506
+ */
34507
+ httpStatusCode?: number;
34508
+ message?: string;
34509
+ params?: string[];
34510
+ /**
34511
+ * @example
34512
+ * 03C67DAD-EB26-41D8-949D-9B0C470FB716
34513
+ */
34514
+ requestId?: string;
34515
+ static names(): { [key: string]: string } {
34516
+ return {
34517
+ code: 'Code',
34518
+ data: 'Data',
34519
+ httpStatusCode: 'HttpStatusCode',
34520
+ message: 'Message',
34521
+ params: 'Params',
34522
+ requestId: 'RequestId',
34523
+ };
34524
+ }
34525
+
34526
+ static types(): { [key: string]: any } {
34527
+ return {
34528
+ code: 'string',
34529
+ data: CreateChatMediaUrlResponseBodyData,
34530
+ httpStatusCode: 'number',
34531
+ message: 'string',
34532
+ params: { 'type': 'array', 'itemType': 'string' },
34533
+ requestId: 'string',
34534
+ };
34535
+ }
34536
+
34537
+ validate() {
34538
+ if(this.data && typeof (this.data as any).validate === 'function') {
34539
+ (this.data as any).validate();
34540
+ }
34541
+ if(Array.isArray(this.params)) {
34542
+ $dara.Model.validateArray(this.params);
34543
+ }
34544
+ super.validate();
34545
+ }
34546
+
34547
+ constructor(map?: { [key: string]: any }) {
34548
+ super(map);
34549
+ }
34550
+ }
34551
+
34552
+ export class CreateChatMediaUrlResponse extends $dara.Model {
34553
+ headers?: { [key: string]: string };
34554
+ statusCode?: number;
34555
+ body?: CreateChatMediaUrlResponseBody;
34556
+ static names(): { [key: string]: string } {
34557
+ return {
34558
+ headers: 'headers',
34559
+ statusCode: 'statusCode',
34560
+ body: 'body',
34561
+ };
34562
+ }
34563
+
34564
+ static types(): { [key: string]: any } {
34565
+ return {
34566
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
34567
+ statusCode: 'number',
34568
+ body: CreateChatMediaUrlResponseBody,
34569
+ };
34570
+ }
34571
+
34572
+ validate() {
34573
+ if(this.headers) {
34574
+ $dara.Model.validateMap(this.headers);
34575
+ }
34576
+ if(this.body && typeof (this.body as any).validate === 'function') {
34577
+ (this.body as any).validate();
34578
+ }
34579
+ super.validate();
34580
+ }
34581
+
34582
+ constructor(map?: { [key: string]: any }) {
34583
+ super(map);
34584
+ }
34585
+ }
34586
+
34413
34587
  export class CreateContactFlowRequest extends $dara.Model {
34414
34588
  /**
34415
34589
  * @remarks
@@ -57164,6 +57338,189 @@ export class ProcessAliMeCallbackOfStagingResponse extends $dara.Model {
57164
57338
  }
57165
57339
  }
57166
57340
 
57341
+ export class ProcessCustomIMCallbackRequest extends $dara.Model {
57342
+ /**
57343
+ * @remarks
57344
+ * This parameter is required.
57345
+ *
57346
+ * @example
57347
+ * cf584733-***-***-9699-cb77aa3b7aa6
57348
+ */
57349
+ accessChannelId?: string;
57350
+ /**
57351
+ * @remarks
57352
+ * This parameter is required.
57353
+ *
57354
+ * @example
57355
+ * d165de4f-9851-445e-9535-66ebfa72fa51
57356
+ */
57357
+ conversationId?: string;
57358
+ /**
57359
+ * @remarks
57360
+ * This parameter is required.
57361
+ *
57362
+ * @example
57363
+ * 9cfad875-6260-4a53-ab6e-b13e3fb31f7d
57364
+ */
57365
+ instanceId?: string;
57366
+ /**
57367
+ * @remarks
57368
+ * This parameter is required.
57369
+ */
57370
+ messageContent?: string;
57371
+ /**
57372
+ * @example
57373
+ * 03C67DAD-EB26-41D8-949D-9B0C470FB716
57374
+ */
57375
+ requestId?: string;
57376
+ /**
57377
+ * @example
57378
+ * xxxx
57379
+ */
57380
+ senderAvatarMediaId?: string;
57381
+ /**
57382
+ * @remarks
57383
+ * This parameter is required.
57384
+ *
57385
+ * @example
57386
+ * 63061274befd6b545aab4c83
57387
+ */
57388
+ senderId?: string;
57389
+ /**
57390
+ * @example
57391
+ * tom
57392
+ */
57393
+ senderName?: string;
57394
+ static names(): { [key: string]: string } {
57395
+ return {
57396
+ accessChannelId: 'AccessChannelId',
57397
+ conversationId: 'ConversationId',
57398
+ instanceId: 'InstanceId',
57399
+ messageContent: 'MessageContent',
57400
+ requestId: 'RequestId',
57401
+ senderAvatarMediaId: 'SenderAvatarMediaId',
57402
+ senderId: 'SenderId',
57403
+ senderName: 'SenderName',
57404
+ };
57405
+ }
57406
+
57407
+ static types(): { [key: string]: any } {
57408
+ return {
57409
+ accessChannelId: 'string',
57410
+ conversationId: 'string',
57411
+ instanceId: 'string',
57412
+ messageContent: 'string',
57413
+ requestId: 'string',
57414
+ senderAvatarMediaId: 'string',
57415
+ senderId: 'string',
57416
+ senderName: 'string',
57417
+ };
57418
+ }
57419
+
57420
+ validate() {
57421
+ super.validate();
57422
+ }
57423
+
57424
+ constructor(map?: { [key: string]: any }) {
57425
+ super(map);
57426
+ }
57427
+ }
57428
+
57429
+ export class ProcessCustomIMCallbackResponseBody extends $dara.Model {
57430
+ /**
57431
+ * @example
57432
+ * OK
57433
+ */
57434
+ code?: string;
57435
+ data?: string;
57436
+ /**
57437
+ * @example
57438
+ * 200
57439
+ */
57440
+ httpStatusCode?: number;
57441
+ /**
57442
+ * @example
57443
+ * chat-65382141036853491
57444
+ */
57445
+ jobId?: string;
57446
+ message?: string;
57447
+ params?: string[];
57448
+ /**
57449
+ * @example
57450
+ * 2778FA12-EDD6-42AA-9B15-AF855072E5E5
57451
+ */
57452
+ requestId?: string;
57453
+ static names(): { [key: string]: string } {
57454
+ return {
57455
+ code: 'Code',
57456
+ data: 'Data',
57457
+ httpStatusCode: 'HttpStatusCode',
57458
+ jobId: 'JobId',
57459
+ message: 'Message',
57460
+ params: 'Params',
57461
+ requestId: 'RequestId',
57462
+ };
57463
+ }
57464
+
57465
+ static types(): { [key: string]: any } {
57466
+ return {
57467
+ code: 'string',
57468
+ data: 'string',
57469
+ httpStatusCode: 'number',
57470
+ jobId: 'string',
57471
+ message: 'string',
57472
+ params: { 'type': 'array', 'itemType': 'string' },
57473
+ requestId: 'string',
57474
+ };
57475
+ }
57476
+
57477
+ validate() {
57478
+ if(Array.isArray(this.params)) {
57479
+ $dara.Model.validateArray(this.params);
57480
+ }
57481
+ super.validate();
57482
+ }
57483
+
57484
+ constructor(map?: { [key: string]: any }) {
57485
+ super(map);
57486
+ }
57487
+ }
57488
+
57489
+ export class ProcessCustomIMCallbackResponse extends $dara.Model {
57490
+ headers?: { [key: string]: string };
57491
+ statusCode?: number;
57492
+ body?: ProcessCustomIMCallbackResponseBody;
57493
+ static names(): { [key: string]: string } {
57494
+ return {
57495
+ headers: 'headers',
57496
+ statusCode: 'statusCode',
57497
+ body: 'body',
57498
+ };
57499
+ }
57500
+
57501
+ static types(): { [key: string]: any } {
57502
+ return {
57503
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
57504
+ statusCode: 'number',
57505
+ body: ProcessCustomIMCallbackResponseBody,
57506
+ };
57507
+ }
57508
+
57509
+ validate() {
57510
+ if(this.headers) {
57511
+ $dara.Model.validateMap(this.headers);
57512
+ }
57513
+ if(this.body && typeof (this.body as any).validate === 'function') {
57514
+ (this.body as any).validate();
57515
+ }
57516
+ super.validate();
57517
+ }
57518
+
57519
+ constructor(map?: { [key: string]: any }) {
57520
+ super(map);
57521
+ }
57522
+ }
57523
+
57167
57524
  export class PublishContactFlowRequest extends $dara.Model {
57168
57525
  /**
57169
57526
  * @remarks
@@ -66593,6 +66950,57 @@ export default class Client extends OpenApi {
66593
66950
  return await this.createCampaignWithOptions(request, runtime);
66594
66951
  }
66595
66952
 
66953
+ /**
66954
+ * @param request - CreateChatMediaUrlRequest
66955
+ * @param runtime - runtime options for this request RuntimeOptions
66956
+ * @returns CreateChatMediaUrlResponse
66957
+ */
66958
+ async createChatMediaUrlWithOptions(request: CreateChatMediaUrlRequest, runtime: $dara.RuntimeOptions): Promise<CreateChatMediaUrlResponse> {
66959
+ request.validate();
66960
+ let body : {[key: string ]: any} = { };
66961
+ if (!$dara.isNull(request.instanceId)) {
66962
+ body["InstanceId"] = request.instanceId;
66963
+ }
66964
+
66965
+ if (!$dara.isNull(request.mimeType)) {
66966
+ body["MimeType"] = request.mimeType;
66967
+ }
66968
+
66969
+ if (!$dara.isNull(request.requestId)) {
66970
+ body["RequestId"] = request.requestId;
66971
+ }
66972
+
66973
+ let req = new $OpenApiUtil.OpenApiRequest({
66974
+ body: OpenApiUtil.parseToMap(body),
66975
+ });
66976
+ let params = new $OpenApiUtil.Params({
66977
+ action: "CreateChatMediaUrl",
66978
+ version: "2020-07-01",
66979
+ protocol: "HTTPS",
66980
+ pathname: "/",
66981
+ method: "POST",
66982
+ authType: "AK",
66983
+ style: "RPC",
66984
+ reqBodyType: "formData",
66985
+ bodyType: "json",
66986
+ });
66987
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
66988
+ return $dara.cast<CreateChatMediaUrlResponse>(await this.callApi(params, req, runtime), new CreateChatMediaUrlResponse({}));
66989
+ } else {
66990
+ return $dara.cast<CreateChatMediaUrlResponse>(await this.execute(params, req, runtime), new CreateChatMediaUrlResponse({}));
66991
+ }
66992
+
66993
+ }
66994
+
66995
+ /**
66996
+ * @param request - CreateChatMediaUrlRequest
66997
+ * @returns CreateChatMediaUrlResponse
66998
+ */
66999
+ async createChatMediaUrl(request: CreateChatMediaUrlRequest): Promise<CreateChatMediaUrlResponse> {
67000
+ let runtime = new $dara.RuntimeOptions({ });
67001
+ return await this.createChatMediaUrlWithOptions(request, runtime);
67002
+ }
67003
+
66596
67004
  /**
66597
67005
  * @param request - CreateContactFlowRequest
66598
67006
  * @param runtime - runtime options for this request RuntimeOptions
@@ -75662,6 +76070,77 @@ export default class Client extends OpenApi {
75662
76070
  return await this.processAliMeCallbackOfStagingWithOptions(request, runtime);
75663
76071
  }
75664
76072
 
76073
+ /**
76074
+ * @param request - ProcessCustomIMCallbackRequest
76075
+ * @param runtime - runtime options for this request RuntimeOptions
76076
+ * @returns ProcessCustomIMCallbackResponse
76077
+ */
76078
+ async processCustomIMCallbackWithOptions(request: ProcessCustomIMCallbackRequest, runtime: $dara.RuntimeOptions): Promise<ProcessCustomIMCallbackResponse> {
76079
+ request.validate();
76080
+ let body : {[key: string ]: any} = { };
76081
+ if (!$dara.isNull(request.accessChannelId)) {
76082
+ body["AccessChannelId"] = request.accessChannelId;
76083
+ }
76084
+
76085
+ if (!$dara.isNull(request.conversationId)) {
76086
+ body["ConversationId"] = request.conversationId;
76087
+ }
76088
+
76089
+ if (!$dara.isNull(request.instanceId)) {
76090
+ body["InstanceId"] = request.instanceId;
76091
+ }
76092
+
76093
+ if (!$dara.isNull(request.messageContent)) {
76094
+ body["MessageContent"] = request.messageContent;
76095
+ }
76096
+
76097
+ if (!$dara.isNull(request.requestId)) {
76098
+ body["RequestId"] = request.requestId;
76099
+ }
76100
+
76101
+ if (!$dara.isNull(request.senderAvatarMediaId)) {
76102
+ body["SenderAvatarMediaId"] = request.senderAvatarMediaId;
76103
+ }
76104
+
76105
+ if (!$dara.isNull(request.senderId)) {
76106
+ body["SenderId"] = request.senderId;
76107
+ }
76108
+
76109
+ if (!$dara.isNull(request.senderName)) {
76110
+ body["SenderName"] = request.senderName;
76111
+ }
76112
+
76113
+ let req = new $OpenApiUtil.OpenApiRequest({
76114
+ body: OpenApiUtil.parseToMap(body),
76115
+ });
76116
+ let params = new $OpenApiUtil.Params({
76117
+ action: "ProcessCustomIMCallback",
76118
+ version: "2020-07-01",
76119
+ protocol: "HTTPS",
76120
+ pathname: "/",
76121
+ method: "POST",
76122
+ authType: "AK",
76123
+ style: "RPC",
76124
+ reqBodyType: "formData",
76125
+ bodyType: "json",
76126
+ });
76127
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
76128
+ return $dara.cast<ProcessCustomIMCallbackResponse>(await this.callApi(params, req, runtime), new ProcessCustomIMCallbackResponse({}));
76129
+ } else {
76130
+ return $dara.cast<ProcessCustomIMCallbackResponse>(await this.execute(params, req, runtime), new ProcessCustomIMCallbackResponse({}));
76131
+ }
76132
+
76133
+ }
76134
+
76135
+ /**
76136
+ * @param request - ProcessCustomIMCallbackRequest
76137
+ * @returns ProcessCustomIMCallbackResponse
76138
+ */
76139
+ async processCustomIMCallback(request: ProcessCustomIMCallbackRequest): Promise<ProcessCustomIMCallbackResponse> {
76140
+ let runtime = new $dara.RuntimeOptions({ });
76141
+ return await this.processCustomIMCallbackWithOptions(request, runtime);
76142
+ }
76143
+
75665
76144
  /**
75666
76145
  * @param request - PublishContactFlowRequest
75667
76146
  * @param runtime - runtime options for this request RuntimeOptions