@alicloud/aliding20230426 2.25.0 → 2.27.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 +1574 -0
- package/dist/client.js +1818 -42
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +2811 -1
package/src/client.ts
CHANGED
|
@@ -4242,6 +4242,502 @@ export class CreateMeetingRoomGroupRequestTenantContext extends $dara.Model {
|
|
|
4242
4242
|
}
|
|
4243
4243
|
}
|
|
4244
4244
|
|
|
4245
|
+
export class CreateMessageRequestContentCardCallback extends $dara.Model {
|
|
4246
|
+
/**
|
|
4247
|
+
* @example
|
|
4248
|
+
* {}
|
|
4249
|
+
*/
|
|
4250
|
+
content?: string;
|
|
4251
|
+
/**
|
|
4252
|
+
* @example
|
|
4253
|
+
* templateId123
|
|
4254
|
+
*/
|
|
4255
|
+
templateId?: string;
|
|
4256
|
+
/**
|
|
4257
|
+
* @example
|
|
4258
|
+
* 012345
|
|
4259
|
+
*/
|
|
4260
|
+
userId?: string;
|
|
4261
|
+
static names(): { [key: string]: string } {
|
|
4262
|
+
return {
|
|
4263
|
+
content: 'content',
|
|
4264
|
+
templateId: 'templateId',
|
|
4265
|
+
userId: 'userId',
|
|
4266
|
+
};
|
|
4267
|
+
}
|
|
4268
|
+
|
|
4269
|
+
static types(): { [key: string]: any } {
|
|
4270
|
+
return {
|
|
4271
|
+
content: 'string',
|
|
4272
|
+
templateId: 'string',
|
|
4273
|
+
userId: 'string',
|
|
4274
|
+
};
|
|
4275
|
+
}
|
|
4276
|
+
|
|
4277
|
+
validate() {
|
|
4278
|
+
super.validate();
|
|
4279
|
+
}
|
|
4280
|
+
|
|
4281
|
+
constructor(map?: { [key: string]: any }) {
|
|
4282
|
+
super(map);
|
|
4283
|
+
}
|
|
4284
|
+
}
|
|
4285
|
+
|
|
4286
|
+
export class CreateMessageRequestContentDingCard extends $dara.Model {
|
|
4287
|
+
/**
|
|
4288
|
+
* @example
|
|
4289
|
+
* 卡片描述
|
|
4290
|
+
*/
|
|
4291
|
+
cardDesc?: string;
|
|
4292
|
+
/**
|
|
4293
|
+
* @example
|
|
4294
|
+
* {}
|
|
4295
|
+
*/
|
|
4296
|
+
content?: string;
|
|
4297
|
+
/**
|
|
4298
|
+
* @remarks
|
|
4299
|
+
* This parameter is required.
|
|
4300
|
+
*
|
|
4301
|
+
* @example
|
|
4302
|
+
* basic_card_schema
|
|
4303
|
+
*/
|
|
4304
|
+
contentType?: string;
|
|
4305
|
+
/**
|
|
4306
|
+
* @example
|
|
4307
|
+
* true
|
|
4308
|
+
*/
|
|
4309
|
+
finished?: boolean;
|
|
4310
|
+
/**
|
|
4311
|
+
* @example
|
|
4312
|
+
* templateId123
|
|
4313
|
+
*/
|
|
4314
|
+
templateId?: string;
|
|
4315
|
+
static names(): { [key: string]: string } {
|
|
4316
|
+
return {
|
|
4317
|
+
cardDesc: 'cardDesc',
|
|
4318
|
+
content: 'content',
|
|
4319
|
+
contentType: 'contentType',
|
|
4320
|
+
finished: 'finished',
|
|
4321
|
+
templateId: 'templateId',
|
|
4322
|
+
};
|
|
4323
|
+
}
|
|
4324
|
+
|
|
4325
|
+
static types(): { [key: string]: any } {
|
|
4326
|
+
return {
|
|
4327
|
+
cardDesc: 'string',
|
|
4328
|
+
content: 'string',
|
|
4329
|
+
contentType: 'string',
|
|
4330
|
+
finished: 'boolean',
|
|
4331
|
+
templateId: 'string',
|
|
4332
|
+
};
|
|
4333
|
+
}
|
|
4334
|
+
|
|
4335
|
+
validate() {
|
|
4336
|
+
super.validate();
|
|
4337
|
+
}
|
|
4338
|
+
|
|
4339
|
+
constructor(map?: { [key: string]: any }) {
|
|
4340
|
+
super(map);
|
|
4341
|
+
}
|
|
4342
|
+
}
|
|
4343
|
+
|
|
4344
|
+
export class CreateMessageRequestContentImageUrl extends $dara.Model {
|
|
4345
|
+
/**
|
|
4346
|
+
* @example
|
|
4347
|
+
* auto
|
|
4348
|
+
*/
|
|
4349
|
+
detail?: string;
|
|
4350
|
+
imageDesc?: string;
|
|
4351
|
+
/**
|
|
4352
|
+
* @example
|
|
4353
|
+
* https://img.alicdn.com/1234.png
|
|
4354
|
+
*/
|
|
4355
|
+
url?: string;
|
|
4356
|
+
static names(): { [key: string]: string } {
|
|
4357
|
+
return {
|
|
4358
|
+
detail: 'detail',
|
|
4359
|
+
imageDesc: 'imageDesc',
|
|
4360
|
+
url: 'url',
|
|
4361
|
+
};
|
|
4362
|
+
}
|
|
4363
|
+
|
|
4364
|
+
static types(): { [key: string]: any } {
|
|
4365
|
+
return {
|
|
4366
|
+
detail: 'string',
|
|
4367
|
+
imageDesc: 'string',
|
|
4368
|
+
url: 'string',
|
|
4369
|
+
};
|
|
4370
|
+
}
|
|
4371
|
+
|
|
4372
|
+
validate() {
|
|
4373
|
+
super.validate();
|
|
4374
|
+
}
|
|
4375
|
+
|
|
4376
|
+
constructor(map?: { [key: string]: any }) {
|
|
4377
|
+
super(map);
|
|
4378
|
+
}
|
|
4379
|
+
}
|
|
4380
|
+
|
|
4381
|
+
export class CreateMessageRequestContentMarkdown extends $dara.Model {
|
|
4382
|
+
/**
|
|
4383
|
+
* @example
|
|
4384
|
+
* 1. markdown内容
|
|
4385
|
+
* 2. markdown内容
|
|
4386
|
+
*/
|
|
4387
|
+
value?: string;
|
|
4388
|
+
static names(): { [key: string]: string } {
|
|
4389
|
+
return {
|
|
4390
|
+
value: 'value',
|
|
4391
|
+
};
|
|
4392
|
+
}
|
|
4393
|
+
|
|
4394
|
+
static types(): { [key: string]: any } {
|
|
4395
|
+
return {
|
|
4396
|
+
value: 'string',
|
|
4397
|
+
};
|
|
4398
|
+
}
|
|
4399
|
+
|
|
4400
|
+
validate() {
|
|
4401
|
+
super.validate();
|
|
4402
|
+
}
|
|
4403
|
+
|
|
4404
|
+
constructor(map?: { [key: string]: any }) {
|
|
4405
|
+
super(map);
|
|
4406
|
+
}
|
|
4407
|
+
}
|
|
4408
|
+
|
|
4409
|
+
export class CreateMessageRequestContentText extends $dara.Model {
|
|
4410
|
+
/**
|
|
4411
|
+
* @example
|
|
4412
|
+
* 你好!
|
|
4413
|
+
*/
|
|
4414
|
+
value?: string;
|
|
4415
|
+
static names(): { [key: string]: string } {
|
|
4416
|
+
return {
|
|
4417
|
+
value: 'value',
|
|
4418
|
+
};
|
|
4419
|
+
}
|
|
4420
|
+
|
|
4421
|
+
static types(): { [key: string]: any } {
|
|
4422
|
+
return {
|
|
4423
|
+
value: 'string',
|
|
4424
|
+
};
|
|
4425
|
+
}
|
|
4426
|
+
|
|
4427
|
+
validate() {
|
|
4428
|
+
super.validate();
|
|
4429
|
+
}
|
|
4430
|
+
|
|
4431
|
+
constructor(map?: { [key: string]: any }) {
|
|
4432
|
+
super(map);
|
|
4433
|
+
}
|
|
4434
|
+
}
|
|
4435
|
+
|
|
4436
|
+
export class CreateMessageRequestContent extends $dara.Model {
|
|
4437
|
+
cardCallback?: CreateMessageRequestContentCardCallback;
|
|
4438
|
+
dingCard?: CreateMessageRequestContentDingCard;
|
|
4439
|
+
imageUrl?: CreateMessageRequestContentImageUrl;
|
|
4440
|
+
markdown?: CreateMessageRequestContentMarkdown;
|
|
4441
|
+
text?: CreateMessageRequestContentText;
|
|
4442
|
+
/**
|
|
4443
|
+
* @remarks
|
|
4444
|
+
* This parameter is required.
|
|
4445
|
+
*
|
|
4446
|
+
* @example
|
|
4447
|
+
* text
|
|
4448
|
+
*/
|
|
4449
|
+
type?: string;
|
|
4450
|
+
static names(): { [key: string]: string } {
|
|
4451
|
+
return {
|
|
4452
|
+
cardCallback: 'cardCallback',
|
|
4453
|
+
dingCard: 'dingCard',
|
|
4454
|
+
imageUrl: 'imageUrl',
|
|
4455
|
+
markdown: 'markdown',
|
|
4456
|
+
text: 'text',
|
|
4457
|
+
type: 'type',
|
|
4458
|
+
};
|
|
4459
|
+
}
|
|
4460
|
+
|
|
4461
|
+
static types(): { [key: string]: any } {
|
|
4462
|
+
return {
|
|
4463
|
+
cardCallback: CreateMessageRequestContentCardCallback,
|
|
4464
|
+
dingCard: CreateMessageRequestContentDingCard,
|
|
4465
|
+
imageUrl: CreateMessageRequestContentImageUrl,
|
|
4466
|
+
markdown: CreateMessageRequestContentMarkdown,
|
|
4467
|
+
text: CreateMessageRequestContentText,
|
|
4468
|
+
type: 'string',
|
|
4469
|
+
};
|
|
4470
|
+
}
|
|
4471
|
+
|
|
4472
|
+
validate() {
|
|
4473
|
+
if(this.cardCallback && typeof (this.cardCallback as any).validate === 'function') {
|
|
4474
|
+
(this.cardCallback as any).validate();
|
|
4475
|
+
}
|
|
4476
|
+
if(this.dingCard && typeof (this.dingCard as any).validate === 'function') {
|
|
4477
|
+
(this.dingCard as any).validate();
|
|
4478
|
+
}
|
|
4479
|
+
if(this.imageUrl && typeof (this.imageUrl as any).validate === 'function') {
|
|
4480
|
+
(this.imageUrl as any).validate();
|
|
4481
|
+
}
|
|
4482
|
+
if(this.markdown && typeof (this.markdown as any).validate === 'function') {
|
|
4483
|
+
(this.markdown as any).validate();
|
|
4484
|
+
}
|
|
4485
|
+
if(this.text && typeof (this.text as any).validate === 'function') {
|
|
4486
|
+
(this.text as any).validate();
|
|
4487
|
+
}
|
|
4488
|
+
super.validate();
|
|
4489
|
+
}
|
|
4490
|
+
|
|
4491
|
+
constructor(map?: { [key: string]: any }) {
|
|
4492
|
+
super(map);
|
|
4493
|
+
}
|
|
4494
|
+
}
|
|
4495
|
+
|
|
4496
|
+
export class CreateMessageResponseBodyContentCardCallback extends $dara.Model {
|
|
4497
|
+
/**
|
|
4498
|
+
* @example
|
|
4499
|
+
* {}
|
|
4500
|
+
*/
|
|
4501
|
+
content?: string;
|
|
4502
|
+
/**
|
|
4503
|
+
* @example
|
|
4504
|
+
* templateId123
|
|
4505
|
+
*/
|
|
4506
|
+
templateId?: string;
|
|
4507
|
+
/**
|
|
4508
|
+
* @example
|
|
4509
|
+
* 012345
|
|
4510
|
+
*/
|
|
4511
|
+
userId?: string;
|
|
4512
|
+
static names(): { [key: string]: string } {
|
|
4513
|
+
return {
|
|
4514
|
+
content: 'content',
|
|
4515
|
+
templateId: 'templateId',
|
|
4516
|
+
userId: 'userId',
|
|
4517
|
+
};
|
|
4518
|
+
}
|
|
4519
|
+
|
|
4520
|
+
static types(): { [key: string]: any } {
|
|
4521
|
+
return {
|
|
4522
|
+
content: 'string',
|
|
4523
|
+
templateId: 'string',
|
|
4524
|
+
userId: 'string',
|
|
4525
|
+
};
|
|
4526
|
+
}
|
|
4527
|
+
|
|
4528
|
+
validate() {
|
|
4529
|
+
super.validate();
|
|
4530
|
+
}
|
|
4531
|
+
|
|
4532
|
+
constructor(map?: { [key: string]: any }) {
|
|
4533
|
+
super(map);
|
|
4534
|
+
}
|
|
4535
|
+
}
|
|
4536
|
+
|
|
4537
|
+
export class CreateMessageResponseBodyContentDingCard extends $dara.Model {
|
|
4538
|
+
/**
|
|
4539
|
+
* @example
|
|
4540
|
+
* 卡片描述
|
|
4541
|
+
*/
|
|
4542
|
+
cardDesc?: string;
|
|
4543
|
+
/**
|
|
4544
|
+
* @example
|
|
4545
|
+
* {}
|
|
4546
|
+
*/
|
|
4547
|
+
content?: string;
|
|
4548
|
+
/**
|
|
4549
|
+
* @example
|
|
4550
|
+
* basic_card_schema
|
|
4551
|
+
*/
|
|
4552
|
+
contentType?: string;
|
|
4553
|
+
/**
|
|
4554
|
+
* @example
|
|
4555
|
+
* true
|
|
4556
|
+
*/
|
|
4557
|
+
finished?: boolean;
|
|
4558
|
+
/**
|
|
4559
|
+
* @example
|
|
4560
|
+
* templateId123
|
|
4561
|
+
*/
|
|
4562
|
+
templateId?: string;
|
|
4563
|
+
static names(): { [key: string]: string } {
|
|
4564
|
+
return {
|
|
4565
|
+
cardDesc: 'cardDesc',
|
|
4566
|
+
content: 'content',
|
|
4567
|
+
contentType: 'contentType',
|
|
4568
|
+
finished: 'finished',
|
|
4569
|
+
templateId: 'templateId',
|
|
4570
|
+
};
|
|
4571
|
+
}
|
|
4572
|
+
|
|
4573
|
+
static types(): { [key: string]: any } {
|
|
4574
|
+
return {
|
|
4575
|
+
cardDesc: 'string',
|
|
4576
|
+
content: 'string',
|
|
4577
|
+
contentType: 'string',
|
|
4578
|
+
finished: 'boolean',
|
|
4579
|
+
templateId: 'string',
|
|
4580
|
+
};
|
|
4581
|
+
}
|
|
4582
|
+
|
|
4583
|
+
validate() {
|
|
4584
|
+
super.validate();
|
|
4585
|
+
}
|
|
4586
|
+
|
|
4587
|
+
constructor(map?: { [key: string]: any }) {
|
|
4588
|
+
super(map);
|
|
4589
|
+
}
|
|
4590
|
+
}
|
|
4591
|
+
|
|
4592
|
+
export class CreateMessageResponseBodyContentImageUrl extends $dara.Model {
|
|
4593
|
+
/**
|
|
4594
|
+
* @example
|
|
4595
|
+
* auto
|
|
4596
|
+
*/
|
|
4597
|
+
detail?: string;
|
|
4598
|
+
imageDesc?: string;
|
|
4599
|
+
/**
|
|
4600
|
+
* @example
|
|
4601
|
+
* https://img.alicdn.com/1234.png
|
|
4602
|
+
*/
|
|
4603
|
+
url?: string;
|
|
4604
|
+
static names(): { [key: string]: string } {
|
|
4605
|
+
return {
|
|
4606
|
+
detail: 'detail',
|
|
4607
|
+
imageDesc: 'imageDesc',
|
|
4608
|
+
url: 'url',
|
|
4609
|
+
};
|
|
4610
|
+
}
|
|
4611
|
+
|
|
4612
|
+
static types(): { [key: string]: any } {
|
|
4613
|
+
return {
|
|
4614
|
+
detail: 'string',
|
|
4615
|
+
imageDesc: 'string',
|
|
4616
|
+
url: 'string',
|
|
4617
|
+
};
|
|
4618
|
+
}
|
|
4619
|
+
|
|
4620
|
+
validate() {
|
|
4621
|
+
super.validate();
|
|
4622
|
+
}
|
|
4623
|
+
|
|
4624
|
+
constructor(map?: { [key: string]: any }) {
|
|
4625
|
+
super(map);
|
|
4626
|
+
}
|
|
4627
|
+
}
|
|
4628
|
+
|
|
4629
|
+
export class CreateMessageResponseBodyContentMarkdown extends $dara.Model {
|
|
4630
|
+
/**
|
|
4631
|
+
* @example
|
|
4632
|
+
* 1. markdown内容
|
|
4633
|
+
* 2. markdown内容
|
|
4634
|
+
*/
|
|
4635
|
+
value?: string;
|
|
4636
|
+
static names(): { [key: string]: string } {
|
|
4637
|
+
return {
|
|
4638
|
+
value: 'value',
|
|
4639
|
+
};
|
|
4640
|
+
}
|
|
4641
|
+
|
|
4642
|
+
static types(): { [key: string]: any } {
|
|
4643
|
+
return {
|
|
4644
|
+
value: 'string',
|
|
4645
|
+
};
|
|
4646
|
+
}
|
|
4647
|
+
|
|
4648
|
+
validate() {
|
|
4649
|
+
super.validate();
|
|
4650
|
+
}
|
|
4651
|
+
|
|
4652
|
+
constructor(map?: { [key: string]: any }) {
|
|
4653
|
+
super(map);
|
|
4654
|
+
}
|
|
4655
|
+
}
|
|
4656
|
+
|
|
4657
|
+
export class CreateMessageResponseBodyContentText extends $dara.Model {
|
|
4658
|
+
/**
|
|
4659
|
+
* @example
|
|
4660
|
+
* 你好!
|
|
4661
|
+
*/
|
|
4662
|
+
value?: string;
|
|
4663
|
+
static names(): { [key: string]: string } {
|
|
4664
|
+
return {
|
|
4665
|
+
value: 'value',
|
|
4666
|
+
};
|
|
4667
|
+
}
|
|
4668
|
+
|
|
4669
|
+
static types(): { [key: string]: any } {
|
|
4670
|
+
return {
|
|
4671
|
+
value: 'string',
|
|
4672
|
+
};
|
|
4673
|
+
}
|
|
4674
|
+
|
|
4675
|
+
validate() {
|
|
4676
|
+
super.validate();
|
|
4677
|
+
}
|
|
4678
|
+
|
|
4679
|
+
constructor(map?: { [key: string]: any }) {
|
|
4680
|
+
super(map);
|
|
4681
|
+
}
|
|
4682
|
+
}
|
|
4683
|
+
|
|
4684
|
+
export class CreateMessageResponseBodyContent extends $dara.Model {
|
|
4685
|
+
cardCallback?: CreateMessageResponseBodyContentCardCallback;
|
|
4686
|
+
dingCard?: CreateMessageResponseBodyContentDingCard;
|
|
4687
|
+
imageUrl?: CreateMessageResponseBodyContentImageUrl;
|
|
4688
|
+
markdown?: CreateMessageResponseBodyContentMarkdown;
|
|
4689
|
+
text?: CreateMessageResponseBodyContentText;
|
|
4690
|
+
/**
|
|
4691
|
+
* @example
|
|
4692
|
+
* text
|
|
4693
|
+
*/
|
|
4694
|
+
type?: string;
|
|
4695
|
+
static names(): { [key: string]: string } {
|
|
4696
|
+
return {
|
|
4697
|
+
cardCallback: 'cardCallback',
|
|
4698
|
+
dingCard: 'dingCard',
|
|
4699
|
+
imageUrl: 'imageUrl',
|
|
4700
|
+
markdown: 'markdown',
|
|
4701
|
+
text: 'text',
|
|
4702
|
+
type: 'type',
|
|
4703
|
+
};
|
|
4704
|
+
}
|
|
4705
|
+
|
|
4706
|
+
static types(): { [key: string]: any } {
|
|
4707
|
+
return {
|
|
4708
|
+
cardCallback: CreateMessageResponseBodyContentCardCallback,
|
|
4709
|
+
dingCard: CreateMessageResponseBodyContentDingCard,
|
|
4710
|
+
imageUrl: CreateMessageResponseBodyContentImageUrl,
|
|
4711
|
+
markdown: CreateMessageResponseBodyContentMarkdown,
|
|
4712
|
+
text: CreateMessageResponseBodyContentText,
|
|
4713
|
+
type: 'string',
|
|
4714
|
+
};
|
|
4715
|
+
}
|
|
4716
|
+
|
|
4717
|
+
validate() {
|
|
4718
|
+
if(this.cardCallback && typeof (this.cardCallback as any).validate === 'function') {
|
|
4719
|
+
(this.cardCallback as any).validate();
|
|
4720
|
+
}
|
|
4721
|
+
if(this.dingCard && typeof (this.dingCard as any).validate === 'function') {
|
|
4722
|
+
(this.dingCard as any).validate();
|
|
4723
|
+
}
|
|
4724
|
+
if(this.imageUrl && typeof (this.imageUrl as any).validate === 'function') {
|
|
4725
|
+
(this.imageUrl as any).validate();
|
|
4726
|
+
}
|
|
4727
|
+
if(this.markdown && typeof (this.markdown as any).validate === 'function') {
|
|
4728
|
+
(this.markdown as any).validate();
|
|
4729
|
+
}
|
|
4730
|
+
if(this.text && typeof (this.text as any).validate === 'function') {
|
|
4731
|
+
(this.text as any).validate();
|
|
4732
|
+
}
|
|
4733
|
+
super.validate();
|
|
4734
|
+
}
|
|
4735
|
+
|
|
4736
|
+
constructor(map?: { [key: string]: any }) {
|
|
4737
|
+
super(map);
|
|
4738
|
+
}
|
|
4739
|
+
}
|
|
4740
|
+
|
|
4245
4741
|
export class CreateOrUpdateFormDataHeadersAccountContext extends $dara.Model {
|
|
4246
4742
|
/**
|
|
4247
4743
|
* @remarks
|
|
@@ -4537,6 +5033,526 @@ export class CreateReportRequestTenantContext extends $dara.Model {
|
|
|
4537
5033
|
}
|
|
4538
5034
|
}
|
|
4539
5035
|
|
|
5036
|
+
export class CreateRunResponseBodyContentCardCallback extends $dara.Model {
|
|
5037
|
+
/**
|
|
5038
|
+
* @example
|
|
5039
|
+
* {}
|
|
5040
|
+
*/
|
|
5041
|
+
content?: string;
|
|
5042
|
+
/**
|
|
5043
|
+
* @example
|
|
5044
|
+
* templateId123
|
|
5045
|
+
*/
|
|
5046
|
+
templateId?: string;
|
|
5047
|
+
/**
|
|
5048
|
+
* @example
|
|
5049
|
+
* 012345
|
|
5050
|
+
*/
|
|
5051
|
+
userId?: string;
|
|
5052
|
+
static names(): { [key: string]: string } {
|
|
5053
|
+
return {
|
|
5054
|
+
content: 'content',
|
|
5055
|
+
templateId: 'templateId',
|
|
5056
|
+
userId: 'userId',
|
|
5057
|
+
};
|
|
5058
|
+
}
|
|
5059
|
+
|
|
5060
|
+
static types(): { [key: string]: any } {
|
|
5061
|
+
return {
|
|
5062
|
+
content: 'string',
|
|
5063
|
+
templateId: 'string',
|
|
5064
|
+
userId: 'string',
|
|
5065
|
+
};
|
|
5066
|
+
}
|
|
5067
|
+
|
|
5068
|
+
validate() {
|
|
5069
|
+
super.validate();
|
|
5070
|
+
}
|
|
5071
|
+
|
|
5072
|
+
constructor(map?: { [key: string]: any }) {
|
|
5073
|
+
super(map);
|
|
5074
|
+
}
|
|
5075
|
+
}
|
|
5076
|
+
|
|
5077
|
+
export class CreateRunResponseBodyContentDingCard extends $dara.Model {
|
|
5078
|
+
/**
|
|
5079
|
+
* @example
|
|
5080
|
+
* 卡片描述
|
|
5081
|
+
*/
|
|
5082
|
+
cardDesc?: string;
|
|
5083
|
+
/**
|
|
5084
|
+
* @example
|
|
5085
|
+
* {}
|
|
5086
|
+
*/
|
|
5087
|
+
content?: string;
|
|
5088
|
+
/**
|
|
5089
|
+
* @example
|
|
5090
|
+
* basic_card_schema
|
|
5091
|
+
*/
|
|
5092
|
+
contentType?: string;
|
|
5093
|
+
/**
|
|
5094
|
+
* @example
|
|
5095
|
+
* true
|
|
5096
|
+
*/
|
|
5097
|
+
finished?: boolean;
|
|
5098
|
+
/**
|
|
5099
|
+
* @example
|
|
5100
|
+
* templateId123
|
|
5101
|
+
*/
|
|
5102
|
+
templateId?: string;
|
|
5103
|
+
static names(): { [key: string]: string } {
|
|
5104
|
+
return {
|
|
5105
|
+
cardDesc: 'cardDesc',
|
|
5106
|
+
content: 'content',
|
|
5107
|
+
contentType: 'contentType',
|
|
5108
|
+
finished: 'finished',
|
|
5109
|
+
templateId: 'templateId',
|
|
5110
|
+
};
|
|
5111
|
+
}
|
|
5112
|
+
|
|
5113
|
+
static types(): { [key: string]: any } {
|
|
5114
|
+
return {
|
|
5115
|
+
cardDesc: 'string',
|
|
5116
|
+
content: 'string',
|
|
5117
|
+
contentType: 'string',
|
|
5118
|
+
finished: 'boolean',
|
|
5119
|
+
templateId: 'string',
|
|
5120
|
+
};
|
|
5121
|
+
}
|
|
5122
|
+
|
|
5123
|
+
validate() {
|
|
5124
|
+
super.validate();
|
|
5125
|
+
}
|
|
5126
|
+
|
|
5127
|
+
constructor(map?: { [key: string]: any }) {
|
|
5128
|
+
super(map);
|
|
5129
|
+
}
|
|
5130
|
+
}
|
|
5131
|
+
|
|
5132
|
+
export class CreateRunResponseBodyContentImageUrl extends $dara.Model {
|
|
5133
|
+
/**
|
|
5134
|
+
* @example
|
|
5135
|
+
* auto
|
|
5136
|
+
*/
|
|
5137
|
+
detail?: string;
|
|
5138
|
+
imageDesc?: string;
|
|
5139
|
+
/**
|
|
5140
|
+
* @example
|
|
5141
|
+
* https://img.alicdn.com/1234.png
|
|
5142
|
+
*/
|
|
5143
|
+
url?: string;
|
|
5144
|
+
static names(): { [key: string]: string } {
|
|
5145
|
+
return {
|
|
5146
|
+
detail: 'detail',
|
|
5147
|
+
imageDesc: 'imageDesc',
|
|
5148
|
+
url: 'url',
|
|
5149
|
+
};
|
|
5150
|
+
}
|
|
5151
|
+
|
|
5152
|
+
static types(): { [key: string]: any } {
|
|
5153
|
+
return {
|
|
5154
|
+
detail: 'string',
|
|
5155
|
+
imageDesc: 'string',
|
|
5156
|
+
url: 'string',
|
|
5157
|
+
};
|
|
5158
|
+
}
|
|
5159
|
+
|
|
5160
|
+
validate() {
|
|
5161
|
+
super.validate();
|
|
5162
|
+
}
|
|
5163
|
+
|
|
5164
|
+
constructor(map?: { [key: string]: any }) {
|
|
5165
|
+
super(map);
|
|
5166
|
+
}
|
|
5167
|
+
}
|
|
5168
|
+
|
|
5169
|
+
export class CreateRunResponseBodyContentMarkdown extends $dara.Model {
|
|
5170
|
+
/**
|
|
5171
|
+
* @example
|
|
5172
|
+
* 1. markdown内容
|
|
5173
|
+
* 2. markdown内容
|
|
5174
|
+
*/
|
|
5175
|
+
value?: string;
|
|
5176
|
+
static names(): { [key: string]: string } {
|
|
5177
|
+
return {
|
|
5178
|
+
value: 'value',
|
|
5179
|
+
};
|
|
5180
|
+
}
|
|
5181
|
+
|
|
5182
|
+
static types(): { [key: string]: any } {
|
|
5183
|
+
return {
|
|
5184
|
+
value: 'string',
|
|
5185
|
+
};
|
|
5186
|
+
}
|
|
5187
|
+
|
|
5188
|
+
validate() {
|
|
5189
|
+
super.validate();
|
|
5190
|
+
}
|
|
5191
|
+
|
|
5192
|
+
constructor(map?: { [key: string]: any }) {
|
|
5193
|
+
super(map);
|
|
5194
|
+
}
|
|
5195
|
+
}
|
|
5196
|
+
|
|
5197
|
+
export class CreateRunResponseBodyContentText extends $dara.Model {
|
|
5198
|
+
/**
|
|
5199
|
+
* @example
|
|
5200
|
+
* 你好!
|
|
5201
|
+
*/
|
|
5202
|
+
value?: string;
|
|
5203
|
+
static names(): { [key: string]: string } {
|
|
5204
|
+
return {
|
|
5205
|
+
value: 'value',
|
|
5206
|
+
};
|
|
5207
|
+
}
|
|
5208
|
+
|
|
5209
|
+
static types(): { [key: string]: any } {
|
|
5210
|
+
return {
|
|
5211
|
+
value: 'string',
|
|
5212
|
+
};
|
|
5213
|
+
}
|
|
5214
|
+
|
|
5215
|
+
validate() {
|
|
5216
|
+
super.validate();
|
|
5217
|
+
}
|
|
5218
|
+
|
|
5219
|
+
constructor(map?: { [key: string]: any }) {
|
|
5220
|
+
super(map);
|
|
5221
|
+
}
|
|
5222
|
+
}
|
|
5223
|
+
|
|
5224
|
+
export class CreateRunResponseBodyContent extends $dara.Model {
|
|
5225
|
+
cardCallback?: CreateRunResponseBodyContentCardCallback;
|
|
5226
|
+
dingCard?: CreateRunResponseBodyContentDingCard;
|
|
5227
|
+
imageUrl?: CreateRunResponseBodyContentImageUrl;
|
|
5228
|
+
markdown?: CreateRunResponseBodyContentMarkdown;
|
|
5229
|
+
text?: CreateRunResponseBodyContentText;
|
|
5230
|
+
/**
|
|
5231
|
+
* @example
|
|
5232
|
+
* text
|
|
5233
|
+
*/
|
|
5234
|
+
type?: string;
|
|
5235
|
+
static names(): { [key: string]: string } {
|
|
5236
|
+
return {
|
|
5237
|
+
cardCallback: 'cardCallback',
|
|
5238
|
+
dingCard: 'dingCard',
|
|
5239
|
+
imageUrl: 'imageUrl',
|
|
5240
|
+
markdown: 'markdown',
|
|
5241
|
+
text: 'text',
|
|
5242
|
+
type: 'type',
|
|
5243
|
+
};
|
|
5244
|
+
}
|
|
5245
|
+
|
|
5246
|
+
static types(): { [key: string]: any } {
|
|
5247
|
+
return {
|
|
5248
|
+
cardCallback: CreateRunResponseBodyContentCardCallback,
|
|
5249
|
+
dingCard: CreateRunResponseBodyContentDingCard,
|
|
5250
|
+
imageUrl: CreateRunResponseBodyContentImageUrl,
|
|
5251
|
+
markdown: CreateRunResponseBodyContentMarkdown,
|
|
5252
|
+
text: CreateRunResponseBodyContentText,
|
|
5253
|
+
type: 'string',
|
|
5254
|
+
};
|
|
5255
|
+
}
|
|
5256
|
+
|
|
5257
|
+
validate() {
|
|
5258
|
+
if(this.cardCallback && typeof (this.cardCallback as any).validate === 'function') {
|
|
5259
|
+
(this.cardCallback as any).validate();
|
|
5260
|
+
}
|
|
5261
|
+
if(this.dingCard && typeof (this.dingCard as any).validate === 'function') {
|
|
5262
|
+
(this.dingCard as any).validate();
|
|
5263
|
+
}
|
|
5264
|
+
if(this.imageUrl && typeof (this.imageUrl as any).validate === 'function') {
|
|
5265
|
+
(this.imageUrl as any).validate();
|
|
5266
|
+
}
|
|
5267
|
+
if(this.markdown && typeof (this.markdown as any).validate === 'function') {
|
|
5268
|
+
(this.markdown as any).validate();
|
|
5269
|
+
}
|
|
5270
|
+
if(this.text && typeof (this.text as any).validate === 'function') {
|
|
5271
|
+
(this.text as any).validate();
|
|
5272
|
+
}
|
|
5273
|
+
super.validate();
|
|
5274
|
+
}
|
|
5275
|
+
|
|
5276
|
+
constructor(map?: { [key: string]: any }) {
|
|
5277
|
+
super(map);
|
|
5278
|
+
}
|
|
5279
|
+
}
|
|
5280
|
+
|
|
5281
|
+
export class CreateRunResponseBodyDeltaContentCardCallback extends $dara.Model {
|
|
5282
|
+
/**
|
|
5283
|
+
* @example
|
|
5284
|
+
* {}
|
|
5285
|
+
*/
|
|
5286
|
+
content?: string;
|
|
5287
|
+
/**
|
|
5288
|
+
* @example
|
|
5289
|
+
* templateId123
|
|
5290
|
+
*/
|
|
5291
|
+
templateId?: string;
|
|
5292
|
+
/**
|
|
5293
|
+
* @example
|
|
5294
|
+
* 012345
|
|
5295
|
+
*/
|
|
5296
|
+
userId?: string;
|
|
5297
|
+
static names(): { [key: string]: string } {
|
|
5298
|
+
return {
|
|
5299
|
+
content: 'content',
|
|
5300
|
+
templateId: 'templateId',
|
|
5301
|
+
userId: 'userId',
|
|
5302
|
+
};
|
|
5303
|
+
}
|
|
5304
|
+
|
|
5305
|
+
static types(): { [key: string]: any } {
|
|
5306
|
+
return {
|
|
5307
|
+
content: 'string',
|
|
5308
|
+
templateId: 'string',
|
|
5309
|
+
userId: 'string',
|
|
5310
|
+
};
|
|
5311
|
+
}
|
|
5312
|
+
|
|
5313
|
+
validate() {
|
|
5314
|
+
super.validate();
|
|
5315
|
+
}
|
|
5316
|
+
|
|
5317
|
+
constructor(map?: { [key: string]: any }) {
|
|
5318
|
+
super(map);
|
|
5319
|
+
}
|
|
5320
|
+
}
|
|
5321
|
+
|
|
5322
|
+
export class CreateRunResponseBodyDeltaContentDingCard extends $dara.Model {
|
|
5323
|
+
/**
|
|
5324
|
+
* @example
|
|
5325
|
+
* 卡片描述
|
|
5326
|
+
*/
|
|
5327
|
+
cardDesc?: string;
|
|
5328
|
+
/**
|
|
5329
|
+
* @example
|
|
5330
|
+
* {}
|
|
5331
|
+
*/
|
|
5332
|
+
content?: string;
|
|
5333
|
+
/**
|
|
5334
|
+
* @example
|
|
5335
|
+
* basic_card_schema
|
|
5336
|
+
*/
|
|
5337
|
+
contentType?: string;
|
|
5338
|
+
/**
|
|
5339
|
+
* @example
|
|
5340
|
+
* true
|
|
5341
|
+
*/
|
|
5342
|
+
finished?: boolean;
|
|
5343
|
+
/**
|
|
5344
|
+
* @example
|
|
5345
|
+
* templateId123
|
|
5346
|
+
*/
|
|
5347
|
+
templateId?: string;
|
|
5348
|
+
static names(): { [key: string]: string } {
|
|
5349
|
+
return {
|
|
5350
|
+
cardDesc: 'cardDesc',
|
|
5351
|
+
content: 'content',
|
|
5352
|
+
contentType: 'contentType',
|
|
5353
|
+
finished: 'finished',
|
|
5354
|
+
templateId: 'templateId',
|
|
5355
|
+
};
|
|
5356
|
+
}
|
|
5357
|
+
|
|
5358
|
+
static types(): { [key: string]: any } {
|
|
5359
|
+
return {
|
|
5360
|
+
cardDesc: 'string',
|
|
5361
|
+
content: 'string',
|
|
5362
|
+
contentType: 'string',
|
|
5363
|
+
finished: 'boolean',
|
|
5364
|
+
templateId: 'string',
|
|
5365
|
+
};
|
|
5366
|
+
}
|
|
5367
|
+
|
|
5368
|
+
validate() {
|
|
5369
|
+
super.validate();
|
|
5370
|
+
}
|
|
5371
|
+
|
|
5372
|
+
constructor(map?: { [key: string]: any }) {
|
|
5373
|
+
super(map);
|
|
5374
|
+
}
|
|
5375
|
+
}
|
|
5376
|
+
|
|
5377
|
+
export class CreateRunResponseBodyDeltaContentImageUrl extends $dara.Model {
|
|
5378
|
+
/**
|
|
5379
|
+
* @example
|
|
5380
|
+
* auto
|
|
5381
|
+
*/
|
|
5382
|
+
detail?: string;
|
|
5383
|
+
imageDesc?: string;
|
|
5384
|
+
/**
|
|
5385
|
+
* @example
|
|
5386
|
+
* https://img.alicdn.com/1234.png
|
|
5387
|
+
*/
|
|
5388
|
+
url?: string;
|
|
5389
|
+
static names(): { [key: string]: string } {
|
|
5390
|
+
return {
|
|
5391
|
+
detail: 'detail',
|
|
5392
|
+
imageDesc: 'imageDesc',
|
|
5393
|
+
url: 'url',
|
|
5394
|
+
};
|
|
5395
|
+
}
|
|
5396
|
+
|
|
5397
|
+
static types(): { [key: string]: any } {
|
|
5398
|
+
return {
|
|
5399
|
+
detail: 'string',
|
|
5400
|
+
imageDesc: 'string',
|
|
5401
|
+
url: 'string',
|
|
5402
|
+
};
|
|
5403
|
+
}
|
|
5404
|
+
|
|
5405
|
+
validate() {
|
|
5406
|
+
super.validate();
|
|
5407
|
+
}
|
|
5408
|
+
|
|
5409
|
+
constructor(map?: { [key: string]: any }) {
|
|
5410
|
+
super(map);
|
|
5411
|
+
}
|
|
5412
|
+
}
|
|
5413
|
+
|
|
5414
|
+
export class CreateRunResponseBodyDeltaContentMarkdown extends $dara.Model {
|
|
5415
|
+
/**
|
|
5416
|
+
* @example
|
|
5417
|
+
* 1. markdown内容
|
|
5418
|
+
* 2. markdown内容
|
|
5419
|
+
*/
|
|
5420
|
+
value?: string;
|
|
5421
|
+
static names(): { [key: string]: string } {
|
|
5422
|
+
return {
|
|
5423
|
+
value: 'value',
|
|
5424
|
+
};
|
|
5425
|
+
}
|
|
5426
|
+
|
|
5427
|
+
static types(): { [key: string]: any } {
|
|
5428
|
+
return {
|
|
5429
|
+
value: 'string',
|
|
5430
|
+
};
|
|
5431
|
+
}
|
|
5432
|
+
|
|
5433
|
+
validate() {
|
|
5434
|
+
super.validate();
|
|
5435
|
+
}
|
|
5436
|
+
|
|
5437
|
+
constructor(map?: { [key: string]: any }) {
|
|
5438
|
+
super(map);
|
|
5439
|
+
}
|
|
5440
|
+
}
|
|
5441
|
+
|
|
5442
|
+
export class CreateRunResponseBodyDeltaContentText extends $dara.Model {
|
|
5443
|
+
/**
|
|
5444
|
+
* @example
|
|
5445
|
+
* 你好!
|
|
5446
|
+
*/
|
|
5447
|
+
value?: string;
|
|
5448
|
+
static names(): { [key: string]: string } {
|
|
5449
|
+
return {
|
|
5450
|
+
value: 'value',
|
|
5451
|
+
};
|
|
5452
|
+
}
|
|
5453
|
+
|
|
5454
|
+
static types(): { [key: string]: any } {
|
|
5455
|
+
return {
|
|
5456
|
+
value: 'string',
|
|
5457
|
+
};
|
|
5458
|
+
}
|
|
5459
|
+
|
|
5460
|
+
validate() {
|
|
5461
|
+
super.validate();
|
|
5462
|
+
}
|
|
5463
|
+
|
|
5464
|
+
constructor(map?: { [key: string]: any }) {
|
|
5465
|
+
super(map);
|
|
5466
|
+
}
|
|
5467
|
+
}
|
|
5468
|
+
|
|
5469
|
+
export class CreateRunResponseBodyDeltaContent extends $dara.Model {
|
|
5470
|
+
cardCallback?: CreateRunResponseBodyDeltaContentCardCallback;
|
|
5471
|
+
dingCard?: CreateRunResponseBodyDeltaContentDingCard;
|
|
5472
|
+
imageUrl?: CreateRunResponseBodyDeltaContentImageUrl;
|
|
5473
|
+
markdown?: CreateRunResponseBodyDeltaContentMarkdown;
|
|
5474
|
+
text?: CreateRunResponseBodyDeltaContentText;
|
|
5475
|
+
/**
|
|
5476
|
+
* @example
|
|
5477
|
+
* text
|
|
5478
|
+
*/
|
|
5479
|
+
type?: string;
|
|
5480
|
+
static names(): { [key: string]: string } {
|
|
5481
|
+
return {
|
|
5482
|
+
cardCallback: 'cardCallback',
|
|
5483
|
+
dingCard: 'dingCard',
|
|
5484
|
+
imageUrl: 'imageUrl',
|
|
5485
|
+
markdown: 'markdown',
|
|
5486
|
+
text: 'text',
|
|
5487
|
+
type: 'type',
|
|
5488
|
+
};
|
|
5489
|
+
}
|
|
5490
|
+
|
|
5491
|
+
static types(): { [key: string]: any } {
|
|
5492
|
+
return {
|
|
5493
|
+
cardCallback: CreateRunResponseBodyDeltaContentCardCallback,
|
|
5494
|
+
dingCard: CreateRunResponseBodyDeltaContentDingCard,
|
|
5495
|
+
imageUrl: CreateRunResponseBodyDeltaContentImageUrl,
|
|
5496
|
+
markdown: CreateRunResponseBodyDeltaContentMarkdown,
|
|
5497
|
+
text: CreateRunResponseBodyDeltaContentText,
|
|
5498
|
+
type: 'string',
|
|
5499
|
+
};
|
|
5500
|
+
}
|
|
5501
|
+
|
|
5502
|
+
validate() {
|
|
5503
|
+
if(this.cardCallback && typeof (this.cardCallback as any).validate === 'function') {
|
|
5504
|
+
(this.cardCallback as any).validate();
|
|
5505
|
+
}
|
|
5506
|
+
if(this.dingCard && typeof (this.dingCard as any).validate === 'function') {
|
|
5507
|
+
(this.dingCard as any).validate();
|
|
5508
|
+
}
|
|
5509
|
+
if(this.imageUrl && typeof (this.imageUrl as any).validate === 'function') {
|
|
5510
|
+
(this.imageUrl as any).validate();
|
|
5511
|
+
}
|
|
5512
|
+
if(this.markdown && typeof (this.markdown as any).validate === 'function') {
|
|
5513
|
+
(this.markdown as any).validate();
|
|
5514
|
+
}
|
|
5515
|
+
if(this.text && typeof (this.text as any).validate === 'function') {
|
|
5516
|
+
(this.text as any).validate();
|
|
5517
|
+
}
|
|
5518
|
+
super.validate();
|
|
5519
|
+
}
|
|
5520
|
+
|
|
5521
|
+
constructor(map?: { [key: string]: any }) {
|
|
5522
|
+
super(map);
|
|
5523
|
+
}
|
|
5524
|
+
}
|
|
5525
|
+
|
|
5526
|
+
export class CreateRunResponseBodyDelta extends $dara.Model {
|
|
5527
|
+
/**
|
|
5528
|
+
* @example
|
|
5529
|
+
* {}
|
|
5530
|
+
*/
|
|
5531
|
+
content?: CreateRunResponseBodyDeltaContent;
|
|
5532
|
+
static names(): { [key: string]: string } {
|
|
5533
|
+
return {
|
|
5534
|
+
content: 'content',
|
|
5535
|
+
};
|
|
5536
|
+
}
|
|
5537
|
+
|
|
5538
|
+
static types(): { [key: string]: any } {
|
|
5539
|
+
return {
|
|
5540
|
+
content: CreateRunResponseBodyDeltaContent,
|
|
5541
|
+
};
|
|
5542
|
+
}
|
|
5543
|
+
|
|
5544
|
+
validate() {
|
|
5545
|
+
if(this.content && typeof (this.content as any).validate === 'function') {
|
|
5546
|
+
(this.content as any).validate();
|
|
5547
|
+
}
|
|
5548
|
+
super.validate();
|
|
5549
|
+
}
|
|
5550
|
+
|
|
5551
|
+
constructor(map?: { [key: string]: any }) {
|
|
5552
|
+
super(map);
|
|
5553
|
+
}
|
|
5554
|
+
}
|
|
5555
|
+
|
|
4540
5556
|
export class CreateScenegroupHeadersAccountContext extends $dara.Model {
|
|
4541
5557
|
/**
|
|
4542
5558
|
* @remarks
|
|
@@ -20171,6 +21187,333 @@ export class ListFormRemarksHeadersAccountContext extends $dara.Model {
|
|
|
20171
21187
|
}
|
|
20172
21188
|
}
|
|
20173
21189
|
|
|
21190
|
+
export class ListMessageResponseBodyDataContentCardCallback extends $dara.Model {
|
|
21191
|
+
/**
|
|
21192
|
+
* @example
|
|
21193
|
+
* {}
|
|
21194
|
+
*/
|
|
21195
|
+
content?: string;
|
|
21196
|
+
/**
|
|
21197
|
+
* @example
|
|
21198
|
+
* templateId123
|
|
21199
|
+
*/
|
|
21200
|
+
templateId?: string;
|
|
21201
|
+
/**
|
|
21202
|
+
* @example
|
|
21203
|
+
* 012345
|
|
21204
|
+
*/
|
|
21205
|
+
userId?: string;
|
|
21206
|
+
static names(): { [key: string]: string } {
|
|
21207
|
+
return {
|
|
21208
|
+
content: 'content',
|
|
21209
|
+
templateId: 'templateId',
|
|
21210
|
+
userId: 'userId',
|
|
21211
|
+
};
|
|
21212
|
+
}
|
|
21213
|
+
|
|
21214
|
+
static types(): { [key: string]: any } {
|
|
21215
|
+
return {
|
|
21216
|
+
content: 'string',
|
|
21217
|
+
templateId: 'string',
|
|
21218
|
+
userId: 'string',
|
|
21219
|
+
};
|
|
21220
|
+
}
|
|
21221
|
+
|
|
21222
|
+
validate() {
|
|
21223
|
+
super.validate();
|
|
21224
|
+
}
|
|
21225
|
+
|
|
21226
|
+
constructor(map?: { [key: string]: any }) {
|
|
21227
|
+
super(map);
|
|
21228
|
+
}
|
|
21229
|
+
}
|
|
21230
|
+
|
|
21231
|
+
export class ListMessageResponseBodyDataContentDingCard extends $dara.Model {
|
|
21232
|
+
/**
|
|
21233
|
+
* @example
|
|
21234
|
+
* 卡片描述
|
|
21235
|
+
*/
|
|
21236
|
+
cardDesc?: string;
|
|
21237
|
+
/**
|
|
21238
|
+
* @example
|
|
21239
|
+
* {}
|
|
21240
|
+
*/
|
|
21241
|
+
content?: string;
|
|
21242
|
+
/**
|
|
21243
|
+
* @example
|
|
21244
|
+
* basic_card_schema
|
|
21245
|
+
*/
|
|
21246
|
+
contentType?: string;
|
|
21247
|
+
/**
|
|
21248
|
+
* @example
|
|
21249
|
+
* true
|
|
21250
|
+
*/
|
|
21251
|
+
finished?: boolean;
|
|
21252
|
+
/**
|
|
21253
|
+
* @example
|
|
21254
|
+
* templateId123
|
|
21255
|
+
*/
|
|
21256
|
+
templateId?: string;
|
|
21257
|
+
static names(): { [key: string]: string } {
|
|
21258
|
+
return {
|
|
21259
|
+
cardDesc: 'cardDesc',
|
|
21260
|
+
content: 'content',
|
|
21261
|
+
contentType: 'contentType',
|
|
21262
|
+
finished: 'finished',
|
|
21263
|
+
templateId: 'templateId',
|
|
21264
|
+
};
|
|
21265
|
+
}
|
|
21266
|
+
|
|
21267
|
+
static types(): { [key: string]: any } {
|
|
21268
|
+
return {
|
|
21269
|
+
cardDesc: 'string',
|
|
21270
|
+
content: 'string',
|
|
21271
|
+
contentType: 'string',
|
|
21272
|
+
finished: 'boolean',
|
|
21273
|
+
templateId: 'string',
|
|
21274
|
+
};
|
|
21275
|
+
}
|
|
21276
|
+
|
|
21277
|
+
validate() {
|
|
21278
|
+
super.validate();
|
|
21279
|
+
}
|
|
21280
|
+
|
|
21281
|
+
constructor(map?: { [key: string]: any }) {
|
|
21282
|
+
super(map);
|
|
21283
|
+
}
|
|
21284
|
+
}
|
|
21285
|
+
|
|
21286
|
+
export class ListMessageResponseBodyDataContentImageUrl extends $dara.Model {
|
|
21287
|
+
/**
|
|
21288
|
+
* @example
|
|
21289
|
+
* auto
|
|
21290
|
+
*/
|
|
21291
|
+
detail?: string;
|
|
21292
|
+
imageDesc?: string;
|
|
21293
|
+
/**
|
|
21294
|
+
* @example
|
|
21295
|
+
* https://img.alicdn.com/1234.png
|
|
21296
|
+
*/
|
|
21297
|
+
url?: string;
|
|
21298
|
+
static names(): { [key: string]: string } {
|
|
21299
|
+
return {
|
|
21300
|
+
detail: 'detail',
|
|
21301
|
+
imageDesc: 'imageDesc',
|
|
21302
|
+
url: 'url',
|
|
21303
|
+
};
|
|
21304
|
+
}
|
|
21305
|
+
|
|
21306
|
+
static types(): { [key: string]: any } {
|
|
21307
|
+
return {
|
|
21308
|
+
detail: 'string',
|
|
21309
|
+
imageDesc: 'string',
|
|
21310
|
+
url: 'string',
|
|
21311
|
+
};
|
|
21312
|
+
}
|
|
21313
|
+
|
|
21314
|
+
validate() {
|
|
21315
|
+
super.validate();
|
|
21316
|
+
}
|
|
21317
|
+
|
|
21318
|
+
constructor(map?: { [key: string]: any }) {
|
|
21319
|
+
super(map);
|
|
21320
|
+
}
|
|
21321
|
+
}
|
|
21322
|
+
|
|
21323
|
+
export class ListMessageResponseBodyDataContentMarkdown extends $dara.Model {
|
|
21324
|
+
/**
|
|
21325
|
+
* @example
|
|
21326
|
+
* 1. markdown内容
|
|
21327
|
+
* 2. markdown内容
|
|
21328
|
+
*/
|
|
21329
|
+
value?: string;
|
|
21330
|
+
static names(): { [key: string]: string } {
|
|
21331
|
+
return {
|
|
21332
|
+
value: 'value',
|
|
21333
|
+
};
|
|
21334
|
+
}
|
|
21335
|
+
|
|
21336
|
+
static types(): { [key: string]: any } {
|
|
21337
|
+
return {
|
|
21338
|
+
value: 'string',
|
|
21339
|
+
};
|
|
21340
|
+
}
|
|
21341
|
+
|
|
21342
|
+
validate() {
|
|
21343
|
+
super.validate();
|
|
21344
|
+
}
|
|
21345
|
+
|
|
21346
|
+
constructor(map?: { [key: string]: any }) {
|
|
21347
|
+
super(map);
|
|
21348
|
+
}
|
|
21349
|
+
}
|
|
21350
|
+
|
|
21351
|
+
export class ListMessageResponseBodyDataContentText extends $dara.Model {
|
|
21352
|
+
/**
|
|
21353
|
+
* @example
|
|
21354
|
+
* 你好!
|
|
21355
|
+
*/
|
|
21356
|
+
value?: string;
|
|
21357
|
+
static names(): { [key: string]: string } {
|
|
21358
|
+
return {
|
|
21359
|
+
value: 'value',
|
|
21360
|
+
};
|
|
21361
|
+
}
|
|
21362
|
+
|
|
21363
|
+
static types(): { [key: string]: any } {
|
|
21364
|
+
return {
|
|
21365
|
+
value: 'string',
|
|
21366
|
+
};
|
|
21367
|
+
}
|
|
21368
|
+
|
|
21369
|
+
validate() {
|
|
21370
|
+
super.validate();
|
|
21371
|
+
}
|
|
21372
|
+
|
|
21373
|
+
constructor(map?: { [key: string]: any }) {
|
|
21374
|
+
super(map);
|
|
21375
|
+
}
|
|
21376
|
+
}
|
|
21377
|
+
|
|
21378
|
+
export class ListMessageResponseBodyDataContent extends $dara.Model {
|
|
21379
|
+
cardCallback?: ListMessageResponseBodyDataContentCardCallback;
|
|
21380
|
+
dingCard?: ListMessageResponseBodyDataContentDingCard;
|
|
21381
|
+
imageUrl?: ListMessageResponseBodyDataContentImageUrl;
|
|
21382
|
+
markdown?: ListMessageResponseBodyDataContentMarkdown;
|
|
21383
|
+
text?: ListMessageResponseBodyDataContentText;
|
|
21384
|
+
/**
|
|
21385
|
+
* @example
|
|
21386
|
+
* text
|
|
21387
|
+
*/
|
|
21388
|
+
type?: string;
|
|
21389
|
+
static names(): { [key: string]: string } {
|
|
21390
|
+
return {
|
|
21391
|
+
cardCallback: 'cardCallback',
|
|
21392
|
+
dingCard: 'dingCard',
|
|
21393
|
+
imageUrl: 'imageUrl',
|
|
21394
|
+
markdown: 'markdown',
|
|
21395
|
+
text: 'text',
|
|
21396
|
+
type: 'type',
|
|
21397
|
+
};
|
|
21398
|
+
}
|
|
21399
|
+
|
|
21400
|
+
static types(): { [key: string]: any } {
|
|
21401
|
+
return {
|
|
21402
|
+
cardCallback: ListMessageResponseBodyDataContentCardCallback,
|
|
21403
|
+
dingCard: ListMessageResponseBodyDataContentDingCard,
|
|
21404
|
+
imageUrl: ListMessageResponseBodyDataContentImageUrl,
|
|
21405
|
+
markdown: ListMessageResponseBodyDataContentMarkdown,
|
|
21406
|
+
text: ListMessageResponseBodyDataContentText,
|
|
21407
|
+
type: 'string',
|
|
21408
|
+
};
|
|
21409
|
+
}
|
|
21410
|
+
|
|
21411
|
+
validate() {
|
|
21412
|
+
if(this.cardCallback && typeof (this.cardCallback as any).validate === 'function') {
|
|
21413
|
+
(this.cardCallback as any).validate();
|
|
21414
|
+
}
|
|
21415
|
+
if(this.dingCard && typeof (this.dingCard as any).validate === 'function') {
|
|
21416
|
+
(this.dingCard as any).validate();
|
|
21417
|
+
}
|
|
21418
|
+
if(this.imageUrl && typeof (this.imageUrl as any).validate === 'function') {
|
|
21419
|
+
(this.imageUrl as any).validate();
|
|
21420
|
+
}
|
|
21421
|
+
if(this.markdown && typeof (this.markdown as any).validate === 'function') {
|
|
21422
|
+
(this.markdown as any).validate();
|
|
21423
|
+
}
|
|
21424
|
+
if(this.text && typeof (this.text as any).validate === 'function') {
|
|
21425
|
+
(this.text as any).validate();
|
|
21426
|
+
}
|
|
21427
|
+
super.validate();
|
|
21428
|
+
}
|
|
21429
|
+
|
|
21430
|
+
constructor(map?: { [key: string]: any }) {
|
|
21431
|
+
super(map);
|
|
21432
|
+
}
|
|
21433
|
+
}
|
|
21434
|
+
|
|
21435
|
+
export class ListMessageResponseBodyData extends $dara.Model {
|
|
21436
|
+
/**
|
|
21437
|
+
* @example
|
|
21438
|
+
* []
|
|
21439
|
+
*/
|
|
21440
|
+
content?: ListMessageResponseBodyDataContent[];
|
|
21441
|
+
/**
|
|
21442
|
+
* @example
|
|
21443
|
+
* 1642448000000
|
|
21444
|
+
*/
|
|
21445
|
+
createAt?: number;
|
|
21446
|
+
/**
|
|
21447
|
+
* @example
|
|
21448
|
+
* messageId123
|
|
21449
|
+
*/
|
|
21450
|
+
id?: string;
|
|
21451
|
+
/**
|
|
21452
|
+
* @example
|
|
21453
|
+
* {}
|
|
21454
|
+
*/
|
|
21455
|
+
metadata?: { [key: string]: any };
|
|
21456
|
+
/**
|
|
21457
|
+
* @example
|
|
21458
|
+
* thread.message
|
|
21459
|
+
*/
|
|
21460
|
+
object?: string;
|
|
21461
|
+
/**
|
|
21462
|
+
* @example
|
|
21463
|
+
* user
|
|
21464
|
+
*/
|
|
21465
|
+
role?: string;
|
|
21466
|
+
/**
|
|
21467
|
+
* @example
|
|
21468
|
+
* runId123
|
|
21469
|
+
*/
|
|
21470
|
+
runId?: string;
|
|
21471
|
+
/**
|
|
21472
|
+
* @example
|
|
21473
|
+
* threadId123
|
|
21474
|
+
*/
|
|
21475
|
+
threadId?: string;
|
|
21476
|
+
static names(): { [key: string]: string } {
|
|
21477
|
+
return {
|
|
21478
|
+
content: 'content',
|
|
21479
|
+
createAt: 'createAt',
|
|
21480
|
+
id: 'id',
|
|
21481
|
+
metadata: 'metadata',
|
|
21482
|
+
object: 'object',
|
|
21483
|
+
role: 'role',
|
|
21484
|
+
runId: 'runId',
|
|
21485
|
+
threadId: 'threadId',
|
|
21486
|
+
};
|
|
21487
|
+
}
|
|
21488
|
+
|
|
21489
|
+
static types(): { [key: string]: any } {
|
|
21490
|
+
return {
|
|
21491
|
+
content: { 'type': 'array', 'itemType': ListMessageResponseBodyDataContent },
|
|
21492
|
+
createAt: 'number',
|
|
21493
|
+
id: 'string',
|
|
21494
|
+
metadata: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
21495
|
+
object: 'string',
|
|
21496
|
+
role: 'string',
|
|
21497
|
+
runId: 'string',
|
|
21498
|
+
threadId: 'string',
|
|
21499
|
+
};
|
|
21500
|
+
}
|
|
21501
|
+
|
|
21502
|
+
validate() {
|
|
21503
|
+
if(Array.isArray(this.content)) {
|
|
21504
|
+
$dara.Model.validateArray(this.content);
|
|
21505
|
+
}
|
|
21506
|
+
if(this.metadata) {
|
|
21507
|
+
$dara.Model.validateMap(this.metadata);
|
|
21508
|
+
}
|
|
21509
|
+
super.validate();
|
|
21510
|
+
}
|
|
21511
|
+
|
|
21512
|
+
constructor(map?: { [key: string]: any }) {
|
|
21513
|
+
super(map);
|
|
21514
|
+
}
|
|
21515
|
+
}
|
|
21516
|
+
|
|
20174
21517
|
export class ListMultiDimTableRecordsHeadersAccountContext extends $dara.Model {
|
|
20175
21518
|
/**
|
|
20176
21519
|
* @remarks
|
|
@@ -38838,6 +40181,236 @@ export class CreateMeetingRoomGroupResponse extends $dara.Model {
|
|
|
38838
40181
|
}
|
|
38839
40182
|
}
|
|
38840
40183
|
|
|
40184
|
+
export class CreateMessageHeaders extends $dara.Model {
|
|
40185
|
+
commonHeaders?: { [key: string]: string };
|
|
40186
|
+
/**
|
|
40187
|
+
* @example
|
|
40188
|
+
* 123456
|
|
40189
|
+
*/
|
|
40190
|
+
accountId?: string;
|
|
40191
|
+
static names(): { [key: string]: string } {
|
|
40192
|
+
return {
|
|
40193
|
+
commonHeaders: 'commonHeaders',
|
|
40194
|
+
accountId: 'accountId',
|
|
40195
|
+
};
|
|
40196
|
+
}
|
|
40197
|
+
|
|
40198
|
+
static types(): { [key: string]: any } {
|
|
40199
|
+
return {
|
|
40200
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
40201
|
+
accountId: 'string',
|
|
40202
|
+
};
|
|
40203
|
+
}
|
|
40204
|
+
|
|
40205
|
+
validate() {
|
|
40206
|
+
if(this.commonHeaders) {
|
|
40207
|
+
$dara.Model.validateMap(this.commonHeaders);
|
|
40208
|
+
}
|
|
40209
|
+
super.validate();
|
|
40210
|
+
}
|
|
40211
|
+
|
|
40212
|
+
constructor(map?: { [key: string]: any }) {
|
|
40213
|
+
super(map);
|
|
40214
|
+
}
|
|
40215
|
+
}
|
|
40216
|
+
|
|
40217
|
+
export class CreateMessageRequest extends $dara.Model {
|
|
40218
|
+
/**
|
|
40219
|
+
* @remarks
|
|
40220
|
+
* This parameter is required.
|
|
40221
|
+
*
|
|
40222
|
+
* @example
|
|
40223
|
+
* assistantId1
|
|
40224
|
+
*/
|
|
40225
|
+
assistantId?: string;
|
|
40226
|
+
/**
|
|
40227
|
+
* @remarks
|
|
40228
|
+
* This parameter is required.
|
|
40229
|
+
*
|
|
40230
|
+
* @example
|
|
40231
|
+
* 你好!
|
|
40232
|
+
*/
|
|
40233
|
+
content?: CreateMessageRequestContent[];
|
|
40234
|
+
/**
|
|
40235
|
+
* @example
|
|
40236
|
+
* {}
|
|
40237
|
+
*/
|
|
40238
|
+
metadata?: { [key: string]: any };
|
|
40239
|
+
/**
|
|
40240
|
+
* @example
|
|
40241
|
+
* assistantId
|
|
40242
|
+
*/
|
|
40243
|
+
originalAssistantId?: string;
|
|
40244
|
+
/**
|
|
40245
|
+
* @remarks
|
|
40246
|
+
* This parameter is required.
|
|
40247
|
+
*
|
|
40248
|
+
* @example
|
|
40249
|
+
* user
|
|
40250
|
+
*/
|
|
40251
|
+
role?: string;
|
|
40252
|
+
/**
|
|
40253
|
+
* @remarks
|
|
40254
|
+
* This parameter is required.
|
|
40255
|
+
*
|
|
40256
|
+
* @example
|
|
40257
|
+
* threadId123
|
|
40258
|
+
*/
|
|
40259
|
+
threadId?: string;
|
|
40260
|
+
static names(): { [key: string]: string } {
|
|
40261
|
+
return {
|
|
40262
|
+
assistantId: 'assistantId',
|
|
40263
|
+
content: 'content',
|
|
40264
|
+
metadata: 'metadata',
|
|
40265
|
+
originalAssistantId: 'originalAssistantId',
|
|
40266
|
+
role: 'role',
|
|
40267
|
+
threadId: 'threadId',
|
|
40268
|
+
};
|
|
40269
|
+
}
|
|
40270
|
+
|
|
40271
|
+
static types(): { [key: string]: any } {
|
|
40272
|
+
return {
|
|
40273
|
+
assistantId: 'string',
|
|
40274
|
+
content: { 'type': 'array', 'itemType': CreateMessageRequestContent },
|
|
40275
|
+
metadata: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
40276
|
+
originalAssistantId: 'string',
|
|
40277
|
+
role: 'string',
|
|
40278
|
+
threadId: 'string',
|
|
40279
|
+
};
|
|
40280
|
+
}
|
|
40281
|
+
|
|
40282
|
+
validate() {
|
|
40283
|
+
if(Array.isArray(this.content)) {
|
|
40284
|
+
$dara.Model.validateArray(this.content);
|
|
40285
|
+
}
|
|
40286
|
+
if(this.metadata) {
|
|
40287
|
+
$dara.Model.validateMap(this.metadata);
|
|
40288
|
+
}
|
|
40289
|
+
super.validate();
|
|
40290
|
+
}
|
|
40291
|
+
|
|
40292
|
+
constructor(map?: { [key: string]: any }) {
|
|
40293
|
+
super(map);
|
|
40294
|
+
}
|
|
40295
|
+
}
|
|
40296
|
+
|
|
40297
|
+
export class CreateMessageResponseBody extends $dara.Model {
|
|
40298
|
+
/**
|
|
40299
|
+
* @example
|
|
40300
|
+
* {}
|
|
40301
|
+
*/
|
|
40302
|
+
content?: CreateMessageResponseBodyContent[];
|
|
40303
|
+
/**
|
|
40304
|
+
* @example
|
|
40305
|
+
* 1642448000000
|
|
40306
|
+
*/
|
|
40307
|
+
createAt?: number;
|
|
40308
|
+
/**
|
|
40309
|
+
* @example
|
|
40310
|
+
* messageId123
|
|
40311
|
+
*/
|
|
40312
|
+
id?: string;
|
|
40313
|
+
/**
|
|
40314
|
+
* @example
|
|
40315
|
+
* {}
|
|
40316
|
+
*/
|
|
40317
|
+
metadata?: { [key: string]: any };
|
|
40318
|
+
/**
|
|
40319
|
+
* @example
|
|
40320
|
+
* thread.message
|
|
40321
|
+
*/
|
|
40322
|
+
object?: string;
|
|
40323
|
+
/**
|
|
40324
|
+
* @example
|
|
40325
|
+
* 0FAAEC9C-C6C8-5C87-AF8E-1195889BBXXX
|
|
40326
|
+
*/
|
|
40327
|
+
requestId?: string;
|
|
40328
|
+
/**
|
|
40329
|
+
* @example
|
|
40330
|
+
* user
|
|
40331
|
+
*/
|
|
40332
|
+
role?: string;
|
|
40333
|
+
/**
|
|
40334
|
+
* @example
|
|
40335
|
+
* threadId123
|
|
40336
|
+
*/
|
|
40337
|
+
threadId?: string;
|
|
40338
|
+
static names(): { [key: string]: string } {
|
|
40339
|
+
return {
|
|
40340
|
+
content: 'content',
|
|
40341
|
+
createAt: 'createAt',
|
|
40342
|
+
id: 'id',
|
|
40343
|
+
metadata: 'metadata',
|
|
40344
|
+
object: 'object',
|
|
40345
|
+
requestId: 'requestId',
|
|
40346
|
+
role: 'role',
|
|
40347
|
+
threadId: 'threadId',
|
|
40348
|
+
};
|
|
40349
|
+
}
|
|
40350
|
+
|
|
40351
|
+
static types(): { [key: string]: any } {
|
|
40352
|
+
return {
|
|
40353
|
+
content: { 'type': 'array', 'itemType': CreateMessageResponseBodyContent },
|
|
40354
|
+
createAt: 'number',
|
|
40355
|
+
id: 'string',
|
|
40356
|
+
metadata: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
40357
|
+
object: 'string',
|
|
40358
|
+
requestId: 'string',
|
|
40359
|
+
role: 'string',
|
|
40360
|
+
threadId: 'string',
|
|
40361
|
+
};
|
|
40362
|
+
}
|
|
40363
|
+
|
|
40364
|
+
validate() {
|
|
40365
|
+
if(Array.isArray(this.content)) {
|
|
40366
|
+
$dara.Model.validateArray(this.content);
|
|
40367
|
+
}
|
|
40368
|
+
if(this.metadata) {
|
|
40369
|
+
$dara.Model.validateMap(this.metadata);
|
|
40370
|
+
}
|
|
40371
|
+
super.validate();
|
|
40372
|
+
}
|
|
40373
|
+
|
|
40374
|
+
constructor(map?: { [key: string]: any }) {
|
|
40375
|
+
super(map);
|
|
40376
|
+
}
|
|
40377
|
+
}
|
|
40378
|
+
|
|
40379
|
+
export class CreateMessageResponse extends $dara.Model {
|
|
40380
|
+
headers?: { [key: string]: string };
|
|
40381
|
+
statusCode?: number;
|
|
40382
|
+
body?: CreateMessageResponseBody;
|
|
40383
|
+
static names(): { [key: string]: string } {
|
|
40384
|
+
return {
|
|
40385
|
+
headers: 'headers',
|
|
40386
|
+
statusCode: 'statusCode',
|
|
40387
|
+
body: 'body',
|
|
40388
|
+
};
|
|
40389
|
+
}
|
|
40390
|
+
|
|
40391
|
+
static types(): { [key: string]: any } {
|
|
40392
|
+
return {
|
|
40393
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
40394
|
+
statusCode: 'number',
|
|
40395
|
+
body: CreateMessageResponseBody,
|
|
40396
|
+
};
|
|
40397
|
+
}
|
|
40398
|
+
|
|
40399
|
+
validate() {
|
|
40400
|
+
if(this.headers) {
|
|
40401
|
+
$dara.Model.validateMap(this.headers);
|
|
40402
|
+
}
|
|
40403
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
40404
|
+
(this.body as any).validate();
|
|
40405
|
+
}
|
|
40406
|
+
super.validate();
|
|
40407
|
+
}
|
|
40408
|
+
|
|
40409
|
+
constructor(map?: { [key: string]: any }) {
|
|
40410
|
+
super(map);
|
|
40411
|
+
}
|
|
40412
|
+
}
|
|
40413
|
+
|
|
38841
40414
|
export class CreateOrUpdateFormDataHeaders extends $dara.Model {
|
|
38842
40415
|
commonHeaders?: { [key: string]: string };
|
|
38843
40416
|
accountContext?: CreateOrUpdateFormDataHeadersAccountContext;
|
|
@@ -39970,6 +41543,279 @@ export class CreateReportResponse extends $dara.Model {
|
|
|
39970
41543
|
}
|
|
39971
41544
|
}
|
|
39972
41545
|
|
|
41546
|
+
export class CreateRunHeaders extends $dara.Model {
|
|
41547
|
+
commonHeaders?: { [key: string]: string };
|
|
41548
|
+
/**
|
|
41549
|
+
* @example
|
|
41550
|
+
* 123456
|
|
41551
|
+
*/
|
|
41552
|
+
accountId?: string;
|
|
41553
|
+
static names(): { [key: string]: string } {
|
|
41554
|
+
return {
|
|
41555
|
+
commonHeaders: 'commonHeaders',
|
|
41556
|
+
accountId: 'accountId',
|
|
41557
|
+
};
|
|
41558
|
+
}
|
|
41559
|
+
|
|
41560
|
+
static types(): { [key: string]: any } {
|
|
41561
|
+
return {
|
|
41562
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
41563
|
+
accountId: 'string',
|
|
41564
|
+
};
|
|
41565
|
+
}
|
|
41566
|
+
|
|
41567
|
+
validate() {
|
|
41568
|
+
if(this.commonHeaders) {
|
|
41569
|
+
$dara.Model.validateMap(this.commonHeaders);
|
|
41570
|
+
}
|
|
41571
|
+
super.validate();
|
|
41572
|
+
}
|
|
41573
|
+
|
|
41574
|
+
constructor(map?: { [key: string]: any }) {
|
|
41575
|
+
super(map);
|
|
41576
|
+
}
|
|
41577
|
+
}
|
|
41578
|
+
|
|
41579
|
+
export class CreateRunRequest extends $dara.Model {
|
|
41580
|
+
/**
|
|
41581
|
+
* @remarks
|
|
41582
|
+
* This parameter is required.
|
|
41583
|
+
*
|
|
41584
|
+
* @example
|
|
41585
|
+
* assistantId1
|
|
41586
|
+
*/
|
|
41587
|
+
assistantId?: string;
|
|
41588
|
+
/**
|
|
41589
|
+
* @example
|
|
41590
|
+
* 你是一个聪明的小助理
|
|
41591
|
+
*/
|
|
41592
|
+
instructions?: string;
|
|
41593
|
+
/**
|
|
41594
|
+
* @example
|
|
41595
|
+
* {}
|
|
41596
|
+
*/
|
|
41597
|
+
metadata?: { [key: string]: any };
|
|
41598
|
+
/**
|
|
41599
|
+
* @example
|
|
41600
|
+
* assistantId
|
|
41601
|
+
*/
|
|
41602
|
+
originalAssistantId?: string;
|
|
41603
|
+
/**
|
|
41604
|
+
* @example
|
|
41605
|
+
* false
|
|
41606
|
+
*/
|
|
41607
|
+
stream?: boolean;
|
|
41608
|
+
/**
|
|
41609
|
+
* @remarks
|
|
41610
|
+
* This parameter is required.
|
|
41611
|
+
*
|
|
41612
|
+
* @example
|
|
41613
|
+
* threadId123
|
|
41614
|
+
*/
|
|
41615
|
+
threadId?: string;
|
|
41616
|
+
static names(): { [key: string]: string } {
|
|
41617
|
+
return {
|
|
41618
|
+
assistantId: 'assistantId',
|
|
41619
|
+
instructions: 'instructions',
|
|
41620
|
+
metadata: 'metadata',
|
|
41621
|
+
originalAssistantId: 'originalAssistantId',
|
|
41622
|
+
stream: 'stream',
|
|
41623
|
+
threadId: 'threadId',
|
|
41624
|
+
};
|
|
41625
|
+
}
|
|
41626
|
+
|
|
41627
|
+
static types(): { [key: string]: any } {
|
|
41628
|
+
return {
|
|
41629
|
+
assistantId: 'string',
|
|
41630
|
+
instructions: 'string',
|
|
41631
|
+
metadata: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
41632
|
+
originalAssistantId: 'string',
|
|
41633
|
+
stream: 'boolean',
|
|
41634
|
+
threadId: 'string',
|
|
41635
|
+
};
|
|
41636
|
+
}
|
|
41637
|
+
|
|
41638
|
+
validate() {
|
|
41639
|
+
if(this.metadata) {
|
|
41640
|
+
$dara.Model.validateMap(this.metadata);
|
|
41641
|
+
}
|
|
41642
|
+
super.validate();
|
|
41643
|
+
}
|
|
41644
|
+
|
|
41645
|
+
constructor(map?: { [key: string]: any }) {
|
|
41646
|
+
super(map);
|
|
41647
|
+
}
|
|
41648
|
+
}
|
|
41649
|
+
|
|
41650
|
+
export class CreateRunResponseBody extends $dara.Model {
|
|
41651
|
+
/**
|
|
41652
|
+
* @example
|
|
41653
|
+
* 1642448000000
|
|
41654
|
+
*/
|
|
41655
|
+
cancelledAt?: number;
|
|
41656
|
+
/**
|
|
41657
|
+
* @example
|
|
41658
|
+
* 1642448000000
|
|
41659
|
+
*/
|
|
41660
|
+
completedAt?: number;
|
|
41661
|
+
/**
|
|
41662
|
+
* @example
|
|
41663
|
+
* {}
|
|
41664
|
+
*/
|
|
41665
|
+
content?: CreateRunResponseBodyContent;
|
|
41666
|
+
/**
|
|
41667
|
+
* @example
|
|
41668
|
+
* 1642448000000
|
|
41669
|
+
*/
|
|
41670
|
+
createAt?: number;
|
|
41671
|
+
/**
|
|
41672
|
+
* @example
|
|
41673
|
+
* {}
|
|
41674
|
+
*/
|
|
41675
|
+
delta?: CreateRunResponseBodyDelta;
|
|
41676
|
+
/**
|
|
41677
|
+
* @example
|
|
41678
|
+
* 1642448000000
|
|
41679
|
+
*/
|
|
41680
|
+
expiresAt?: number;
|
|
41681
|
+
/**
|
|
41682
|
+
* @example
|
|
41683
|
+
* 1642448000000
|
|
41684
|
+
*/
|
|
41685
|
+
failedAt?: number;
|
|
41686
|
+
/**
|
|
41687
|
+
* @example
|
|
41688
|
+
* runId123
|
|
41689
|
+
*/
|
|
41690
|
+
id?: string;
|
|
41691
|
+
/**
|
|
41692
|
+
* @example
|
|
41693
|
+
* errorMsg
|
|
41694
|
+
*/
|
|
41695
|
+
lastErrorMsg?: string;
|
|
41696
|
+
/**
|
|
41697
|
+
* @example
|
|
41698
|
+
* {}
|
|
41699
|
+
*/
|
|
41700
|
+
metadata?: { [key: string]: any };
|
|
41701
|
+
/**
|
|
41702
|
+
* @example
|
|
41703
|
+
* thread.run
|
|
41704
|
+
*/
|
|
41705
|
+
object?: string;
|
|
41706
|
+
/**
|
|
41707
|
+
* @example
|
|
41708
|
+
* 0FAAEC9C-C6C8-5C87-AF8E-1195889BBXXX
|
|
41709
|
+
*/
|
|
41710
|
+
requestId?: string;
|
|
41711
|
+
/**
|
|
41712
|
+
* @example
|
|
41713
|
+
* 1642448000000
|
|
41714
|
+
*/
|
|
41715
|
+
startedAt?: number;
|
|
41716
|
+
/**
|
|
41717
|
+
* @example
|
|
41718
|
+
* running
|
|
41719
|
+
*/
|
|
41720
|
+
status?: string;
|
|
41721
|
+
/**
|
|
41722
|
+
* @example
|
|
41723
|
+
* threadId123
|
|
41724
|
+
*/
|
|
41725
|
+
threadId?: string;
|
|
41726
|
+
static names(): { [key: string]: string } {
|
|
41727
|
+
return {
|
|
41728
|
+
cancelledAt: 'cancelledAt',
|
|
41729
|
+
completedAt: 'completedAt',
|
|
41730
|
+
content: 'content',
|
|
41731
|
+
createAt: 'createAt',
|
|
41732
|
+
delta: 'delta',
|
|
41733
|
+
expiresAt: 'expiresAt',
|
|
41734
|
+
failedAt: 'failedAt',
|
|
41735
|
+
id: 'id',
|
|
41736
|
+
lastErrorMsg: 'lastErrorMsg',
|
|
41737
|
+
metadata: 'metadata',
|
|
41738
|
+
object: 'object',
|
|
41739
|
+
requestId: 'requestId',
|
|
41740
|
+
startedAt: 'startedAt',
|
|
41741
|
+
status: 'status',
|
|
41742
|
+
threadId: 'threadId',
|
|
41743
|
+
};
|
|
41744
|
+
}
|
|
41745
|
+
|
|
41746
|
+
static types(): { [key: string]: any } {
|
|
41747
|
+
return {
|
|
41748
|
+
cancelledAt: 'number',
|
|
41749
|
+
completedAt: 'number',
|
|
41750
|
+
content: CreateRunResponseBodyContent,
|
|
41751
|
+
createAt: 'number',
|
|
41752
|
+
delta: CreateRunResponseBodyDelta,
|
|
41753
|
+
expiresAt: 'number',
|
|
41754
|
+
failedAt: 'number',
|
|
41755
|
+
id: 'string',
|
|
41756
|
+
lastErrorMsg: 'string',
|
|
41757
|
+
metadata: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
41758
|
+
object: 'string',
|
|
41759
|
+
requestId: 'string',
|
|
41760
|
+
startedAt: 'number',
|
|
41761
|
+
status: 'string',
|
|
41762
|
+
threadId: 'string',
|
|
41763
|
+
};
|
|
41764
|
+
}
|
|
41765
|
+
|
|
41766
|
+
validate() {
|
|
41767
|
+
if(this.content && typeof (this.content as any).validate === 'function') {
|
|
41768
|
+
(this.content as any).validate();
|
|
41769
|
+
}
|
|
41770
|
+
if(this.delta && typeof (this.delta as any).validate === 'function') {
|
|
41771
|
+
(this.delta as any).validate();
|
|
41772
|
+
}
|
|
41773
|
+
if(this.metadata) {
|
|
41774
|
+
$dara.Model.validateMap(this.metadata);
|
|
41775
|
+
}
|
|
41776
|
+
super.validate();
|
|
41777
|
+
}
|
|
41778
|
+
|
|
41779
|
+
constructor(map?: { [key: string]: any }) {
|
|
41780
|
+
super(map);
|
|
41781
|
+
}
|
|
41782
|
+
}
|
|
41783
|
+
|
|
41784
|
+
export class CreateRunResponse extends $dara.Model {
|
|
41785
|
+
headers?: { [key: string]: string };
|
|
41786
|
+
statusCode?: number;
|
|
41787
|
+
body?: CreateRunResponseBody;
|
|
41788
|
+
static names(): { [key: string]: string } {
|
|
41789
|
+
return {
|
|
41790
|
+
headers: 'headers',
|
|
41791
|
+
statusCode: 'statusCode',
|
|
41792
|
+
body: 'body',
|
|
41793
|
+
};
|
|
41794
|
+
}
|
|
41795
|
+
|
|
41796
|
+
static types(): { [key: string]: any } {
|
|
41797
|
+
return {
|
|
41798
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
41799
|
+
statusCode: 'number',
|
|
41800
|
+
body: CreateRunResponseBody,
|
|
41801
|
+
};
|
|
41802
|
+
}
|
|
41803
|
+
|
|
41804
|
+
validate() {
|
|
41805
|
+
if(this.headers) {
|
|
41806
|
+
$dara.Model.validateMap(this.headers);
|
|
41807
|
+
}
|
|
41808
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
41809
|
+
(this.body as any).validate();
|
|
41810
|
+
}
|
|
41811
|
+
super.validate();
|
|
41812
|
+
}
|
|
41813
|
+
|
|
41814
|
+
constructor(map?: { [key: string]: any }) {
|
|
41815
|
+
super(map);
|
|
41816
|
+
}
|
|
41817
|
+
}
|
|
41818
|
+
|
|
39973
41819
|
export class CreateScenegroupHeaders extends $dara.Model {
|
|
39974
41820
|
commonHeaders?: { [key: string]: string };
|
|
39975
41821
|
accountContext?: CreateScenegroupHeadersAccountContext;
|
|
@@ -41532,6 +43378,179 @@ export class CreateSubscribedCalendarResponse extends $dara.Model {
|
|
|
41532
43378
|
}
|
|
41533
43379
|
}
|
|
41534
43380
|
|
|
43381
|
+
export class CreateThreadHeaders extends $dara.Model {
|
|
43382
|
+
commonHeaders?: { [key: string]: string };
|
|
43383
|
+
/**
|
|
43384
|
+
* @example
|
|
43385
|
+
* 123456
|
|
43386
|
+
*/
|
|
43387
|
+
accountId?: string;
|
|
43388
|
+
static names(): { [key: string]: string } {
|
|
43389
|
+
return {
|
|
43390
|
+
commonHeaders: 'commonHeaders',
|
|
43391
|
+
accountId: 'accountId',
|
|
43392
|
+
};
|
|
43393
|
+
}
|
|
43394
|
+
|
|
43395
|
+
static types(): { [key: string]: any } {
|
|
43396
|
+
return {
|
|
43397
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
43398
|
+
accountId: 'string',
|
|
43399
|
+
};
|
|
43400
|
+
}
|
|
43401
|
+
|
|
43402
|
+
validate() {
|
|
43403
|
+
if(this.commonHeaders) {
|
|
43404
|
+
$dara.Model.validateMap(this.commonHeaders);
|
|
43405
|
+
}
|
|
43406
|
+
super.validate();
|
|
43407
|
+
}
|
|
43408
|
+
|
|
43409
|
+
constructor(map?: { [key: string]: any }) {
|
|
43410
|
+
super(map);
|
|
43411
|
+
}
|
|
43412
|
+
}
|
|
43413
|
+
|
|
43414
|
+
export class CreateThreadRequest extends $dara.Model {
|
|
43415
|
+
/**
|
|
43416
|
+
* @remarks
|
|
43417
|
+
* This parameter is required.
|
|
43418
|
+
*
|
|
43419
|
+
* @example
|
|
43420
|
+
* assistantId1
|
|
43421
|
+
*/
|
|
43422
|
+
assistantId?: string;
|
|
43423
|
+
/**
|
|
43424
|
+
* @example
|
|
43425
|
+
* {}
|
|
43426
|
+
*/
|
|
43427
|
+
metadata?: { [key: string]: any };
|
|
43428
|
+
/**
|
|
43429
|
+
* @example
|
|
43430
|
+
* assistantId
|
|
43431
|
+
*/
|
|
43432
|
+
originalAssistantId?: string;
|
|
43433
|
+
static names(): { [key: string]: string } {
|
|
43434
|
+
return {
|
|
43435
|
+
assistantId: 'assistantId',
|
|
43436
|
+
metadata: 'metadata',
|
|
43437
|
+
originalAssistantId: 'originalAssistantId',
|
|
43438
|
+
};
|
|
43439
|
+
}
|
|
43440
|
+
|
|
43441
|
+
static types(): { [key: string]: any } {
|
|
43442
|
+
return {
|
|
43443
|
+
assistantId: 'string',
|
|
43444
|
+
metadata: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
43445
|
+
originalAssistantId: 'string',
|
|
43446
|
+
};
|
|
43447
|
+
}
|
|
43448
|
+
|
|
43449
|
+
validate() {
|
|
43450
|
+
if(this.metadata) {
|
|
43451
|
+
$dara.Model.validateMap(this.metadata);
|
|
43452
|
+
}
|
|
43453
|
+
super.validate();
|
|
43454
|
+
}
|
|
43455
|
+
|
|
43456
|
+
constructor(map?: { [key: string]: any }) {
|
|
43457
|
+
super(map);
|
|
43458
|
+
}
|
|
43459
|
+
}
|
|
43460
|
+
|
|
43461
|
+
export class CreateThreadResponseBody extends $dara.Model {
|
|
43462
|
+
/**
|
|
43463
|
+
* @example
|
|
43464
|
+
* 1642448000000
|
|
43465
|
+
*/
|
|
43466
|
+
createAt?: number;
|
|
43467
|
+
/**
|
|
43468
|
+
* @example
|
|
43469
|
+
* threadId123
|
|
43470
|
+
*/
|
|
43471
|
+
id?: string;
|
|
43472
|
+
/**
|
|
43473
|
+
* @example
|
|
43474
|
+
* {}
|
|
43475
|
+
*/
|
|
43476
|
+
metadata?: { [key: string]: any };
|
|
43477
|
+
/**
|
|
43478
|
+
* @example
|
|
43479
|
+
* thread
|
|
43480
|
+
*/
|
|
43481
|
+
object?: string;
|
|
43482
|
+
/**
|
|
43483
|
+
* @example
|
|
43484
|
+
* 0FAAEC9C-C6C8-5C87-AF8E-1195889BBXXX
|
|
43485
|
+
*/
|
|
43486
|
+
requestId?: string;
|
|
43487
|
+
static names(): { [key: string]: string } {
|
|
43488
|
+
return {
|
|
43489
|
+
createAt: 'createAt',
|
|
43490
|
+
id: 'id',
|
|
43491
|
+
metadata: 'metadata',
|
|
43492
|
+
object: 'object',
|
|
43493
|
+
requestId: 'requestId',
|
|
43494
|
+
};
|
|
43495
|
+
}
|
|
43496
|
+
|
|
43497
|
+
static types(): { [key: string]: any } {
|
|
43498
|
+
return {
|
|
43499
|
+
createAt: 'number',
|
|
43500
|
+
id: 'string',
|
|
43501
|
+
metadata: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
43502
|
+
object: 'string',
|
|
43503
|
+
requestId: 'string',
|
|
43504
|
+
};
|
|
43505
|
+
}
|
|
43506
|
+
|
|
43507
|
+
validate() {
|
|
43508
|
+
if(this.metadata) {
|
|
43509
|
+
$dara.Model.validateMap(this.metadata);
|
|
43510
|
+
}
|
|
43511
|
+
super.validate();
|
|
43512
|
+
}
|
|
43513
|
+
|
|
43514
|
+
constructor(map?: { [key: string]: any }) {
|
|
43515
|
+
super(map);
|
|
43516
|
+
}
|
|
43517
|
+
}
|
|
43518
|
+
|
|
43519
|
+
export class CreateThreadResponse extends $dara.Model {
|
|
43520
|
+
headers?: { [key: string]: string };
|
|
43521
|
+
statusCode?: number;
|
|
43522
|
+
body?: CreateThreadResponseBody;
|
|
43523
|
+
static names(): { [key: string]: string } {
|
|
43524
|
+
return {
|
|
43525
|
+
headers: 'headers',
|
|
43526
|
+
statusCode: 'statusCode',
|
|
43527
|
+
body: 'body',
|
|
43528
|
+
};
|
|
43529
|
+
}
|
|
43530
|
+
|
|
43531
|
+
static types(): { [key: string]: any } {
|
|
43532
|
+
return {
|
|
43533
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
43534
|
+
statusCode: 'number',
|
|
43535
|
+
body: CreateThreadResponseBody,
|
|
43536
|
+
};
|
|
43537
|
+
}
|
|
43538
|
+
|
|
43539
|
+
validate() {
|
|
43540
|
+
if(this.headers) {
|
|
43541
|
+
$dara.Model.validateMap(this.headers);
|
|
43542
|
+
}
|
|
43543
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
43544
|
+
(this.body as any).validate();
|
|
43545
|
+
}
|
|
43546
|
+
super.validate();
|
|
43547
|
+
}
|
|
43548
|
+
|
|
43549
|
+
constructor(map?: { [key: string]: any }) {
|
|
43550
|
+
super(map);
|
|
43551
|
+
}
|
|
43552
|
+
}
|
|
43553
|
+
|
|
41535
43554
|
export class CreateTicketHeaders extends $dara.Model {
|
|
41536
43555
|
commonHeaders?: { [key: string]: string };
|
|
41537
43556
|
accountContext?: CreateTicketHeadersAccountContext;
|
|
@@ -65132,6 +67151,186 @@ export class ListFormRemarksResponse extends $dara.Model {
|
|
|
65132
67151
|
}
|
|
65133
67152
|
}
|
|
65134
67153
|
|
|
67154
|
+
export class ListMessageHeaders extends $dara.Model {
|
|
67155
|
+
commonHeaders?: { [key: string]: string };
|
|
67156
|
+
/**
|
|
67157
|
+
* @example
|
|
67158
|
+
* 123456
|
|
67159
|
+
*/
|
|
67160
|
+
accountId?: string;
|
|
67161
|
+
static names(): { [key: string]: string } {
|
|
67162
|
+
return {
|
|
67163
|
+
commonHeaders: 'commonHeaders',
|
|
67164
|
+
accountId: 'accountId',
|
|
67165
|
+
};
|
|
67166
|
+
}
|
|
67167
|
+
|
|
67168
|
+
static types(): { [key: string]: any } {
|
|
67169
|
+
return {
|
|
67170
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
67171
|
+
accountId: 'string',
|
|
67172
|
+
};
|
|
67173
|
+
}
|
|
67174
|
+
|
|
67175
|
+
validate() {
|
|
67176
|
+
if(this.commonHeaders) {
|
|
67177
|
+
$dara.Model.validateMap(this.commonHeaders);
|
|
67178
|
+
}
|
|
67179
|
+
super.validate();
|
|
67180
|
+
}
|
|
67181
|
+
|
|
67182
|
+
constructor(map?: { [key: string]: any }) {
|
|
67183
|
+
super(map);
|
|
67184
|
+
}
|
|
67185
|
+
}
|
|
67186
|
+
|
|
67187
|
+
export class ListMessageRequest extends $dara.Model {
|
|
67188
|
+
/**
|
|
67189
|
+
* @remarks
|
|
67190
|
+
* This parameter is required.
|
|
67191
|
+
*
|
|
67192
|
+
* @example
|
|
67193
|
+
* assistantId1
|
|
67194
|
+
*/
|
|
67195
|
+
assistantId?: string;
|
|
67196
|
+
/**
|
|
67197
|
+
* @example
|
|
67198
|
+
* 20
|
|
67199
|
+
*/
|
|
67200
|
+
limit?: number;
|
|
67201
|
+
/**
|
|
67202
|
+
* @example
|
|
67203
|
+
* desc
|
|
67204
|
+
*/
|
|
67205
|
+
order?: string;
|
|
67206
|
+
/**
|
|
67207
|
+
* @example
|
|
67208
|
+
* assistantId
|
|
67209
|
+
*/
|
|
67210
|
+
originalAssistantid?: string;
|
|
67211
|
+
/**
|
|
67212
|
+
* @example
|
|
67213
|
+
* runId123
|
|
67214
|
+
*/
|
|
67215
|
+
runId?: string;
|
|
67216
|
+
/**
|
|
67217
|
+
* @remarks
|
|
67218
|
+
* This parameter is required.
|
|
67219
|
+
*
|
|
67220
|
+
* @example
|
|
67221
|
+
* threadId123
|
|
67222
|
+
*/
|
|
67223
|
+
threadId?: string;
|
|
67224
|
+
static names(): { [key: string]: string } {
|
|
67225
|
+
return {
|
|
67226
|
+
assistantId: 'assistantId',
|
|
67227
|
+
limit: 'limit',
|
|
67228
|
+
order: 'order',
|
|
67229
|
+
originalAssistantid: 'originalAssistantid',
|
|
67230
|
+
runId: 'runId',
|
|
67231
|
+
threadId: 'threadId',
|
|
67232
|
+
};
|
|
67233
|
+
}
|
|
67234
|
+
|
|
67235
|
+
static types(): { [key: string]: any } {
|
|
67236
|
+
return {
|
|
67237
|
+
assistantId: 'string',
|
|
67238
|
+
limit: 'number',
|
|
67239
|
+
order: 'string',
|
|
67240
|
+
originalAssistantid: 'string',
|
|
67241
|
+
runId: 'string',
|
|
67242
|
+
threadId: 'string',
|
|
67243
|
+
};
|
|
67244
|
+
}
|
|
67245
|
+
|
|
67246
|
+
validate() {
|
|
67247
|
+
super.validate();
|
|
67248
|
+
}
|
|
67249
|
+
|
|
67250
|
+
constructor(map?: { [key: string]: any }) {
|
|
67251
|
+
super(map);
|
|
67252
|
+
}
|
|
67253
|
+
}
|
|
67254
|
+
|
|
67255
|
+
export class ListMessageResponseBody extends $dara.Model {
|
|
67256
|
+
/**
|
|
67257
|
+
* @example
|
|
67258
|
+
* []
|
|
67259
|
+
*/
|
|
67260
|
+
data?: ListMessageResponseBodyData[];
|
|
67261
|
+
/**
|
|
67262
|
+
* @example
|
|
67263
|
+
* list
|
|
67264
|
+
*/
|
|
67265
|
+
object?: string;
|
|
67266
|
+
/**
|
|
67267
|
+
* @example
|
|
67268
|
+
* 0FAAEC9C-C6C8-5C87-AF8E-1195889BBXXX
|
|
67269
|
+
*/
|
|
67270
|
+
requestId?: string;
|
|
67271
|
+
static names(): { [key: string]: string } {
|
|
67272
|
+
return {
|
|
67273
|
+
data: 'data',
|
|
67274
|
+
object: 'object',
|
|
67275
|
+
requestId: 'requestId',
|
|
67276
|
+
};
|
|
67277
|
+
}
|
|
67278
|
+
|
|
67279
|
+
static types(): { [key: string]: any } {
|
|
67280
|
+
return {
|
|
67281
|
+
data: { 'type': 'array', 'itemType': ListMessageResponseBodyData },
|
|
67282
|
+
object: 'string',
|
|
67283
|
+
requestId: 'string',
|
|
67284
|
+
};
|
|
67285
|
+
}
|
|
67286
|
+
|
|
67287
|
+
validate() {
|
|
67288
|
+
if(Array.isArray(this.data)) {
|
|
67289
|
+
$dara.Model.validateArray(this.data);
|
|
67290
|
+
}
|
|
67291
|
+
super.validate();
|
|
67292
|
+
}
|
|
67293
|
+
|
|
67294
|
+
constructor(map?: { [key: string]: any }) {
|
|
67295
|
+
super(map);
|
|
67296
|
+
}
|
|
67297
|
+
}
|
|
67298
|
+
|
|
67299
|
+
export class ListMessageResponse extends $dara.Model {
|
|
67300
|
+
headers?: { [key: string]: string };
|
|
67301
|
+
statusCode?: number;
|
|
67302
|
+
body?: ListMessageResponseBody;
|
|
67303
|
+
static names(): { [key: string]: string } {
|
|
67304
|
+
return {
|
|
67305
|
+
headers: 'headers',
|
|
67306
|
+
statusCode: 'statusCode',
|
|
67307
|
+
body: 'body',
|
|
67308
|
+
};
|
|
67309
|
+
}
|
|
67310
|
+
|
|
67311
|
+
static types(): { [key: string]: any } {
|
|
67312
|
+
return {
|
|
67313
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
67314
|
+
statusCode: 'number',
|
|
67315
|
+
body: ListMessageResponseBody,
|
|
67316
|
+
};
|
|
67317
|
+
}
|
|
67318
|
+
|
|
67319
|
+
validate() {
|
|
67320
|
+
if(this.headers) {
|
|
67321
|
+
$dara.Model.validateMap(this.headers);
|
|
67322
|
+
}
|
|
67323
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
67324
|
+
(this.body as any).validate();
|
|
67325
|
+
}
|
|
67326
|
+
super.validate();
|
|
67327
|
+
}
|
|
67328
|
+
|
|
67329
|
+
constructor(map?: { [key: string]: any }) {
|
|
67330
|
+
super(map);
|
|
67331
|
+
}
|
|
67332
|
+
}
|
|
67333
|
+
|
|
65135
67334
|
export class ListMultiDimTableRecordsHeaders extends $dara.Model {
|
|
65136
67335
|
commonHeaders?: { [key: string]: string };
|
|
65137
67336
|
accountContext?: ListMultiDimTableRecordsHeadersAccountContext;
|
|
@@ -75363,6 +77562,242 @@ export class RespondEventResponse extends $dara.Model {
|
|
|
75363
77562
|
}
|
|
75364
77563
|
}
|
|
75365
77564
|
|
|
77565
|
+
export class RetrieveRunHeaders extends $dara.Model {
|
|
77566
|
+
commonHeaders?: { [key: string]: string };
|
|
77567
|
+
/**
|
|
77568
|
+
* @example
|
|
77569
|
+
* 123456
|
|
77570
|
+
*/
|
|
77571
|
+
accountId?: string;
|
|
77572
|
+
static names(): { [key: string]: string } {
|
|
77573
|
+
return {
|
|
77574
|
+
commonHeaders: 'commonHeaders',
|
|
77575
|
+
accountId: 'accountId',
|
|
77576
|
+
};
|
|
77577
|
+
}
|
|
77578
|
+
|
|
77579
|
+
static types(): { [key: string]: any } {
|
|
77580
|
+
return {
|
|
77581
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
77582
|
+
accountId: 'string',
|
|
77583
|
+
};
|
|
77584
|
+
}
|
|
77585
|
+
|
|
77586
|
+
validate() {
|
|
77587
|
+
if(this.commonHeaders) {
|
|
77588
|
+
$dara.Model.validateMap(this.commonHeaders);
|
|
77589
|
+
}
|
|
77590
|
+
super.validate();
|
|
77591
|
+
}
|
|
77592
|
+
|
|
77593
|
+
constructor(map?: { [key: string]: any }) {
|
|
77594
|
+
super(map);
|
|
77595
|
+
}
|
|
77596
|
+
}
|
|
77597
|
+
|
|
77598
|
+
export class RetrieveRunRequest extends $dara.Model {
|
|
77599
|
+
/**
|
|
77600
|
+
* @remarks
|
|
77601
|
+
* This parameter is required.
|
|
77602
|
+
*
|
|
77603
|
+
* @example
|
|
77604
|
+
* assistantId1
|
|
77605
|
+
*/
|
|
77606
|
+
assistantId?: string;
|
|
77607
|
+
/**
|
|
77608
|
+
* @example
|
|
77609
|
+
* assistantId
|
|
77610
|
+
*/
|
|
77611
|
+
originalAssistantId?: string;
|
|
77612
|
+
/**
|
|
77613
|
+
* @example
|
|
77614
|
+
* runId123
|
|
77615
|
+
*/
|
|
77616
|
+
runId?: string;
|
|
77617
|
+
/**
|
|
77618
|
+
* @remarks
|
|
77619
|
+
* This parameter is required.
|
|
77620
|
+
*
|
|
77621
|
+
* @example
|
|
77622
|
+
* threadId123
|
|
77623
|
+
*/
|
|
77624
|
+
threadId?: string;
|
|
77625
|
+
static names(): { [key: string]: string } {
|
|
77626
|
+
return {
|
|
77627
|
+
assistantId: 'assistantId',
|
|
77628
|
+
originalAssistantId: 'originalAssistantId',
|
|
77629
|
+
runId: 'runId',
|
|
77630
|
+
threadId: 'threadId',
|
|
77631
|
+
};
|
|
77632
|
+
}
|
|
77633
|
+
|
|
77634
|
+
static types(): { [key: string]: any } {
|
|
77635
|
+
return {
|
|
77636
|
+
assistantId: 'string',
|
|
77637
|
+
originalAssistantId: 'string',
|
|
77638
|
+
runId: 'string',
|
|
77639
|
+
threadId: 'string',
|
|
77640
|
+
};
|
|
77641
|
+
}
|
|
77642
|
+
|
|
77643
|
+
validate() {
|
|
77644
|
+
super.validate();
|
|
77645
|
+
}
|
|
77646
|
+
|
|
77647
|
+
constructor(map?: { [key: string]: any }) {
|
|
77648
|
+
super(map);
|
|
77649
|
+
}
|
|
77650
|
+
}
|
|
77651
|
+
|
|
77652
|
+
export class RetrieveRunResponseBody extends $dara.Model {
|
|
77653
|
+
/**
|
|
77654
|
+
* @example
|
|
77655
|
+
* 1642448000000
|
|
77656
|
+
*/
|
|
77657
|
+
cancelledAt?: number;
|
|
77658
|
+
/**
|
|
77659
|
+
* @example
|
|
77660
|
+
* 1642448000000
|
|
77661
|
+
*/
|
|
77662
|
+
completedAt?: number;
|
|
77663
|
+
/**
|
|
77664
|
+
* @example
|
|
77665
|
+
* 1642448000000
|
|
77666
|
+
*/
|
|
77667
|
+
createAt?: number;
|
|
77668
|
+
/**
|
|
77669
|
+
* @example
|
|
77670
|
+
* 1642448000000
|
|
77671
|
+
*/
|
|
77672
|
+
expiresAt?: number;
|
|
77673
|
+
/**
|
|
77674
|
+
* @example
|
|
77675
|
+
* 1642448000000
|
|
77676
|
+
*/
|
|
77677
|
+
failedAt?: number;
|
|
77678
|
+
/**
|
|
77679
|
+
* @example
|
|
77680
|
+
* runId123
|
|
77681
|
+
*/
|
|
77682
|
+
id?: string;
|
|
77683
|
+
/**
|
|
77684
|
+
* @example
|
|
77685
|
+
* errorMsg
|
|
77686
|
+
*/
|
|
77687
|
+
lastErrorMsg?: string;
|
|
77688
|
+
/**
|
|
77689
|
+
* @example
|
|
77690
|
+
* {}
|
|
77691
|
+
*/
|
|
77692
|
+
metadata?: { [key: string]: any };
|
|
77693
|
+
/**
|
|
77694
|
+
* @example
|
|
77695
|
+
* thread.run
|
|
77696
|
+
*/
|
|
77697
|
+
object?: string;
|
|
77698
|
+
/**
|
|
77699
|
+
* @example
|
|
77700
|
+
* 0FAAEC9C-C6C8-5C87-AF8E-1195889BBXXX
|
|
77701
|
+
*/
|
|
77702
|
+
requestId?: string;
|
|
77703
|
+
/**
|
|
77704
|
+
* @example
|
|
77705
|
+
* 1642448000000
|
|
77706
|
+
*/
|
|
77707
|
+
startedAt?: number;
|
|
77708
|
+
/**
|
|
77709
|
+
* @example
|
|
77710
|
+
* running
|
|
77711
|
+
*/
|
|
77712
|
+
status?: string;
|
|
77713
|
+
/**
|
|
77714
|
+
* @example
|
|
77715
|
+
* threadId123
|
|
77716
|
+
*/
|
|
77717
|
+
threadId?: string;
|
|
77718
|
+
static names(): { [key: string]: string } {
|
|
77719
|
+
return {
|
|
77720
|
+
cancelledAt: 'cancelledAt',
|
|
77721
|
+
completedAt: 'completedAt',
|
|
77722
|
+
createAt: 'createAt',
|
|
77723
|
+
expiresAt: 'expiresAt',
|
|
77724
|
+
failedAt: 'failedAt',
|
|
77725
|
+
id: 'id',
|
|
77726
|
+
lastErrorMsg: 'lastErrorMsg',
|
|
77727
|
+
metadata: 'metadata',
|
|
77728
|
+
object: 'object',
|
|
77729
|
+
requestId: 'requestId',
|
|
77730
|
+
startedAt: 'startedAt',
|
|
77731
|
+
status: 'status',
|
|
77732
|
+
threadId: 'threadId',
|
|
77733
|
+
};
|
|
77734
|
+
}
|
|
77735
|
+
|
|
77736
|
+
static types(): { [key: string]: any } {
|
|
77737
|
+
return {
|
|
77738
|
+
cancelledAt: 'number',
|
|
77739
|
+
completedAt: 'number',
|
|
77740
|
+
createAt: 'number',
|
|
77741
|
+
expiresAt: 'number',
|
|
77742
|
+
failedAt: 'number',
|
|
77743
|
+
id: 'string',
|
|
77744
|
+
lastErrorMsg: 'string',
|
|
77745
|
+
metadata: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
77746
|
+
object: 'string',
|
|
77747
|
+
requestId: 'string',
|
|
77748
|
+
startedAt: 'number',
|
|
77749
|
+
status: 'string',
|
|
77750
|
+
threadId: 'string',
|
|
77751
|
+
};
|
|
77752
|
+
}
|
|
77753
|
+
|
|
77754
|
+
validate() {
|
|
77755
|
+
if(this.metadata) {
|
|
77756
|
+
$dara.Model.validateMap(this.metadata);
|
|
77757
|
+
}
|
|
77758
|
+
super.validate();
|
|
77759
|
+
}
|
|
77760
|
+
|
|
77761
|
+
constructor(map?: { [key: string]: any }) {
|
|
77762
|
+
super(map);
|
|
77763
|
+
}
|
|
77764
|
+
}
|
|
77765
|
+
|
|
77766
|
+
export class RetrieveRunResponse extends $dara.Model {
|
|
77767
|
+
headers?: { [key: string]: string };
|
|
77768
|
+
statusCode?: number;
|
|
77769
|
+
body?: RetrieveRunResponseBody;
|
|
77770
|
+
static names(): { [key: string]: string } {
|
|
77771
|
+
return {
|
|
77772
|
+
headers: 'headers',
|
|
77773
|
+
statusCode: 'statusCode',
|
|
77774
|
+
body: 'body',
|
|
77775
|
+
};
|
|
77776
|
+
}
|
|
77777
|
+
|
|
77778
|
+
static types(): { [key: string]: any } {
|
|
77779
|
+
return {
|
|
77780
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
77781
|
+
statusCode: 'number',
|
|
77782
|
+
body: RetrieveRunResponseBody,
|
|
77783
|
+
};
|
|
77784
|
+
}
|
|
77785
|
+
|
|
77786
|
+
validate() {
|
|
77787
|
+
if(this.headers) {
|
|
77788
|
+
$dara.Model.validateMap(this.headers);
|
|
77789
|
+
}
|
|
77790
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
77791
|
+
(this.body as any).validate();
|
|
77792
|
+
}
|
|
77793
|
+
super.validate();
|
|
77794
|
+
}
|
|
77795
|
+
|
|
77796
|
+
constructor(map?: { [key: string]: any }) {
|
|
77797
|
+
super(map);
|
|
77798
|
+
}
|
|
77799
|
+
}
|
|
77800
|
+
|
|
75366
77801
|
export class SaveContentHeaders extends $dara.Model {
|
|
75367
77802
|
commonHeaders?: { [key: string]: string };
|
|
75368
77803
|
accountContext?: SaveContentHeadersAccountContext;
|
|
@@ -89637,6 +92072,85 @@ export default class Client extends OpenApi {
|
|
|
89637
92072
|
return await this.createMeetingRoomGroupWithOptions(request, headers, runtime);
|
|
89638
92073
|
}
|
|
89639
92074
|
|
|
92075
|
+
/**
|
|
92076
|
+
* 创建消息
|
|
92077
|
+
*
|
|
92078
|
+
* @param request - CreateMessageRequest
|
|
92079
|
+
* @param headers - CreateMessageHeaders
|
|
92080
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
92081
|
+
* @returns CreateMessageResponse
|
|
92082
|
+
*/
|
|
92083
|
+
async createMessageWithOptions(request: CreateMessageRequest, headers: CreateMessageHeaders, runtime: $dara.RuntimeOptions): Promise<CreateMessageResponse> {
|
|
92084
|
+
request.validate();
|
|
92085
|
+
let body : {[key: string ]: any} = { };
|
|
92086
|
+
if (!$dara.isNull(request.assistantId)) {
|
|
92087
|
+
body["assistantId"] = request.assistantId;
|
|
92088
|
+
}
|
|
92089
|
+
|
|
92090
|
+
if (!$dara.isNull(request.content)) {
|
|
92091
|
+
body["content"] = request.content;
|
|
92092
|
+
}
|
|
92093
|
+
|
|
92094
|
+
if (!$dara.isNull(request.metadata)) {
|
|
92095
|
+
body["metadata"] = request.metadata;
|
|
92096
|
+
}
|
|
92097
|
+
|
|
92098
|
+
if (!$dara.isNull(request.originalAssistantId)) {
|
|
92099
|
+
body["originalAssistantId"] = request.originalAssistantId;
|
|
92100
|
+
}
|
|
92101
|
+
|
|
92102
|
+
if (!$dara.isNull(request.role)) {
|
|
92103
|
+
body["role"] = request.role;
|
|
92104
|
+
}
|
|
92105
|
+
|
|
92106
|
+
if (!$dara.isNull(request.threadId)) {
|
|
92107
|
+
body["threadId"] = request.threadId;
|
|
92108
|
+
}
|
|
92109
|
+
|
|
92110
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
92111
|
+
if (!$dara.isNull(headers.commonHeaders)) {
|
|
92112
|
+
realHeaders = headers.commonHeaders;
|
|
92113
|
+
}
|
|
92114
|
+
|
|
92115
|
+
if (!$dara.isNull(headers.accountId)) {
|
|
92116
|
+
realHeaders["accountId"] = String(headers.accountId);
|
|
92117
|
+
}
|
|
92118
|
+
|
|
92119
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
92120
|
+
headers: realHeaders,
|
|
92121
|
+
body: OpenApiUtil.parseToMap(body),
|
|
92122
|
+
});
|
|
92123
|
+
let params = new $OpenApiUtil.Params({
|
|
92124
|
+
action: "CreateMessage",
|
|
92125
|
+
version: "2023-04-26",
|
|
92126
|
+
protocol: "HTTPS",
|
|
92127
|
+
pathname: `/ai/v1/assistant/createMessage`,
|
|
92128
|
+
method: "POST",
|
|
92129
|
+
authType: "AK",
|
|
92130
|
+
style: "ROA",
|
|
92131
|
+
reqBodyType: "json",
|
|
92132
|
+
bodyType: "json",
|
|
92133
|
+
});
|
|
92134
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
92135
|
+
return $dara.cast<CreateMessageResponse>(await this.callApi(params, req, runtime), new CreateMessageResponse({}));
|
|
92136
|
+
} else {
|
|
92137
|
+
return $dara.cast<CreateMessageResponse>(await this.execute(params, req, runtime), new CreateMessageResponse({}));
|
|
92138
|
+
}
|
|
92139
|
+
|
|
92140
|
+
}
|
|
92141
|
+
|
|
92142
|
+
/**
|
|
92143
|
+
* 创建消息
|
|
92144
|
+
*
|
|
92145
|
+
* @param request - CreateMessageRequest
|
|
92146
|
+
* @returns CreateMessageResponse
|
|
92147
|
+
*/
|
|
92148
|
+
async createMessage(request: CreateMessageRequest): Promise<CreateMessageResponse> {
|
|
92149
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
92150
|
+
let headers = new CreateMessageHeaders({ });
|
|
92151
|
+
return await this.createMessageWithOptions(request, headers, runtime);
|
|
92152
|
+
}
|
|
92153
|
+
|
|
89640
92154
|
/**
|
|
89641
92155
|
* 新增或更新表单实例
|
|
89642
92156
|
*
|
|
@@ -90043,6 +92557,85 @@ export default class Client extends OpenApi {
|
|
|
90043
92557
|
return await this.createReportWithOptions(request, headers, runtime);
|
|
90044
92558
|
}
|
|
90045
92559
|
|
|
92560
|
+
/**
|
|
92561
|
+
* 创建运行
|
|
92562
|
+
*
|
|
92563
|
+
* @param request - CreateRunRequest
|
|
92564
|
+
* @param headers - CreateRunHeaders
|
|
92565
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
92566
|
+
* @returns CreateRunResponse
|
|
92567
|
+
*/
|
|
92568
|
+
async createRunWithOptions(request: CreateRunRequest, headers: CreateRunHeaders, runtime: $dara.RuntimeOptions): Promise<CreateRunResponse> {
|
|
92569
|
+
request.validate();
|
|
92570
|
+
let body : {[key: string ]: any} = { };
|
|
92571
|
+
if (!$dara.isNull(request.assistantId)) {
|
|
92572
|
+
body["assistantId"] = request.assistantId;
|
|
92573
|
+
}
|
|
92574
|
+
|
|
92575
|
+
if (!$dara.isNull(request.instructions)) {
|
|
92576
|
+
body["instructions"] = request.instructions;
|
|
92577
|
+
}
|
|
92578
|
+
|
|
92579
|
+
if (!$dara.isNull(request.metadata)) {
|
|
92580
|
+
body["metadata"] = request.metadata;
|
|
92581
|
+
}
|
|
92582
|
+
|
|
92583
|
+
if (!$dara.isNull(request.originalAssistantId)) {
|
|
92584
|
+
body["originalAssistantId"] = request.originalAssistantId;
|
|
92585
|
+
}
|
|
92586
|
+
|
|
92587
|
+
if (!$dara.isNull(request.stream)) {
|
|
92588
|
+
body["stream"] = request.stream;
|
|
92589
|
+
}
|
|
92590
|
+
|
|
92591
|
+
if (!$dara.isNull(request.threadId)) {
|
|
92592
|
+
body["threadId"] = request.threadId;
|
|
92593
|
+
}
|
|
92594
|
+
|
|
92595
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
92596
|
+
if (!$dara.isNull(headers.commonHeaders)) {
|
|
92597
|
+
realHeaders = headers.commonHeaders;
|
|
92598
|
+
}
|
|
92599
|
+
|
|
92600
|
+
if (!$dara.isNull(headers.accountId)) {
|
|
92601
|
+
realHeaders["accountId"] = String(headers.accountId);
|
|
92602
|
+
}
|
|
92603
|
+
|
|
92604
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
92605
|
+
headers: realHeaders,
|
|
92606
|
+
body: OpenApiUtil.parseToMap(body),
|
|
92607
|
+
});
|
|
92608
|
+
let params = new $OpenApiUtil.Params({
|
|
92609
|
+
action: "CreateRun",
|
|
92610
|
+
version: "2023-04-26",
|
|
92611
|
+
protocol: "HTTPS",
|
|
92612
|
+
pathname: `/ai/v1/assistant/createRun`,
|
|
92613
|
+
method: "POST",
|
|
92614
|
+
authType: "AK",
|
|
92615
|
+
style: "ROA",
|
|
92616
|
+
reqBodyType: "json",
|
|
92617
|
+
bodyType: "json",
|
|
92618
|
+
});
|
|
92619
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
92620
|
+
return $dara.cast<CreateRunResponse>(await this.callApi(params, req, runtime), new CreateRunResponse({}));
|
|
92621
|
+
} else {
|
|
92622
|
+
return $dara.cast<CreateRunResponse>(await this.execute(params, req, runtime), new CreateRunResponse({}));
|
|
92623
|
+
}
|
|
92624
|
+
|
|
92625
|
+
}
|
|
92626
|
+
|
|
92627
|
+
/**
|
|
92628
|
+
* 创建运行
|
|
92629
|
+
*
|
|
92630
|
+
* @param request - CreateRunRequest
|
|
92631
|
+
* @returns CreateRunResponse
|
|
92632
|
+
*/
|
|
92633
|
+
async createRun(request: CreateRunRequest): Promise<CreateRunResponse> {
|
|
92634
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
92635
|
+
let headers = new CreateRunHeaders({ });
|
|
92636
|
+
return await this.createRunWithOptions(request, headers, runtime);
|
|
92637
|
+
}
|
|
92638
|
+
|
|
90046
92639
|
/**
|
|
90047
92640
|
* 创建场景群
|
|
90048
92641
|
*
|
|
@@ -90631,6 +93224,73 @@ export default class Client extends OpenApi {
|
|
|
90631
93224
|
return await this.createSubscribedCalendarWithOptions(request, headers, runtime);
|
|
90632
93225
|
}
|
|
90633
93226
|
|
|
93227
|
+
/**
|
|
93228
|
+
* 创建线程
|
|
93229
|
+
*
|
|
93230
|
+
* @param request - CreateThreadRequest
|
|
93231
|
+
* @param headers - CreateThreadHeaders
|
|
93232
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
93233
|
+
* @returns CreateThreadResponse
|
|
93234
|
+
*/
|
|
93235
|
+
async createThreadWithOptions(request: CreateThreadRequest, headers: CreateThreadHeaders, runtime: $dara.RuntimeOptions): Promise<CreateThreadResponse> {
|
|
93236
|
+
request.validate();
|
|
93237
|
+
let body : {[key: string ]: any} = { };
|
|
93238
|
+
if (!$dara.isNull(request.assistantId)) {
|
|
93239
|
+
body["assistantId"] = request.assistantId;
|
|
93240
|
+
}
|
|
93241
|
+
|
|
93242
|
+
if (!$dara.isNull(request.metadata)) {
|
|
93243
|
+
body["metadata"] = request.metadata;
|
|
93244
|
+
}
|
|
93245
|
+
|
|
93246
|
+
if (!$dara.isNull(request.originalAssistantId)) {
|
|
93247
|
+
body["originalAssistantId"] = request.originalAssistantId;
|
|
93248
|
+
}
|
|
93249
|
+
|
|
93250
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
93251
|
+
if (!$dara.isNull(headers.commonHeaders)) {
|
|
93252
|
+
realHeaders = headers.commonHeaders;
|
|
93253
|
+
}
|
|
93254
|
+
|
|
93255
|
+
if (!$dara.isNull(headers.accountId)) {
|
|
93256
|
+
realHeaders["accountId"] = String(headers.accountId);
|
|
93257
|
+
}
|
|
93258
|
+
|
|
93259
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
93260
|
+
headers: realHeaders,
|
|
93261
|
+
body: OpenApiUtil.parseToMap(body),
|
|
93262
|
+
});
|
|
93263
|
+
let params = new $OpenApiUtil.Params({
|
|
93264
|
+
action: "CreateThread",
|
|
93265
|
+
version: "2023-04-26",
|
|
93266
|
+
protocol: "HTTPS",
|
|
93267
|
+
pathname: `/ai/v1/assistant/createThread`,
|
|
93268
|
+
method: "POST",
|
|
93269
|
+
authType: "AK",
|
|
93270
|
+
style: "ROA",
|
|
93271
|
+
reqBodyType: "json",
|
|
93272
|
+
bodyType: "json",
|
|
93273
|
+
});
|
|
93274
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
93275
|
+
return $dara.cast<CreateThreadResponse>(await this.callApi(params, req, runtime), new CreateThreadResponse({}));
|
|
93276
|
+
} else {
|
|
93277
|
+
return $dara.cast<CreateThreadResponse>(await this.execute(params, req, runtime), new CreateThreadResponse({}));
|
|
93278
|
+
}
|
|
93279
|
+
|
|
93280
|
+
}
|
|
93281
|
+
|
|
93282
|
+
/**
|
|
93283
|
+
* 创建线程
|
|
93284
|
+
*
|
|
93285
|
+
* @param request - CreateThreadRequest
|
|
93286
|
+
* @returns CreateThreadResponse
|
|
93287
|
+
*/
|
|
93288
|
+
async createThread(request: CreateThreadRequest): Promise<CreateThreadResponse> {
|
|
93289
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
93290
|
+
let headers = new CreateThreadHeaders({ });
|
|
93291
|
+
return await this.createThreadWithOptions(request, headers, runtime);
|
|
93292
|
+
}
|
|
93293
|
+
|
|
90634
93294
|
/**
|
|
90635
93295
|
* 创建工单
|
|
90636
93296
|
*
|
|
@@ -98232,7 +100892,7 @@ export default class Client extends OpenApi {
|
|
|
98232
100892
|
}
|
|
98233
100893
|
|
|
98234
100894
|
if (!$dara.isNull(headers.accountId)) {
|
|
98235
|
-
realHeaders["accountId"] =
|
|
100895
|
+
realHeaders["accountId"] = String(headers.accountId);
|
|
98236
100896
|
}
|
|
98237
100897
|
|
|
98238
100898
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
@@ -98948,6 +101608,85 @@ export default class Client extends OpenApi {
|
|
|
98948
101608
|
return await this.listFormRemarksWithOptions(request, headers, runtime);
|
|
98949
101609
|
}
|
|
98950
101610
|
|
|
101611
|
+
/**
|
|
101612
|
+
* 查询消息
|
|
101613
|
+
*
|
|
101614
|
+
* @param request - ListMessageRequest
|
|
101615
|
+
* @param headers - ListMessageHeaders
|
|
101616
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
101617
|
+
* @returns ListMessageResponse
|
|
101618
|
+
*/
|
|
101619
|
+
async listMessageWithOptions(request: ListMessageRequest, headers: ListMessageHeaders, runtime: $dara.RuntimeOptions): Promise<ListMessageResponse> {
|
|
101620
|
+
request.validate();
|
|
101621
|
+
let body : {[key: string ]: any} = { };
|
|
101622
|
+
if (!$dara.isNull(request.assistantId)) {
|
|
101623
|
+
body["assistantId"] = request.assistantId;
|
|
101624
|
+
}
|
|
101625
|
+
|
|
101626
|
+
if (!$dara.isNull(request.limit)) {
|
|
101627
|
+
body["limit"] = request.limit;
|
|
101628
|
+
}
|
|
101629
|
+
|
|
101630
|
+
if (!$dara.isNull(request.order)) {
|
|
101631
|
+
body["order"] = request.order;
|
|
101632
|
+
}
|
|
101633
|
+
|
|
101634
|
+
if (!$dara.isNull(request.originalAssistantid)) {
|
|
101635
|
+
body["originalAssistantid"] = request.originalAssistantid;
|
|
101636
|
+
}
|
|
101637
|
+
|
|
101638
|
+
if (!$dara.isNull(request.runId)) {
|
|
101639
|
+
body["runId"] = request.runId;
|
|
101640
|
+
}
|
|
101641
|
+
|
|
101642
|
+
if (!$dara.isNull(request.threadId)) {
|
|
101643
|
+
body["threadId"] = request.threadId;
|
|
101644
|
+
}
|
|
101645
|
+
|
|
101646
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
101647
|
+
if (!$dara.isNull(headers.commonHeaders)) {
|
|
101648
|
+
realHeaders = headers.commonHeaders;
|
|
101649
|
+
}
|
|
101650
|
+
|
|
101651
|
+
if (!$dara.isNull(headers.accountId)) {
|
|
101652
|
+
realHeaders["accountId"] = String(headers.accountId);
|
|
101653
|
+
}
|
|
101654
|
+
|
|
101655
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
101656
|
+
headers: realHeaders,
|
|
101657
|
+
body: OpenApiUtil.parseToMap(body),
|
|
101658
|
+
});
|
|
101659
|
+
let params = new $OpenApiUtil.Params({
|
|
101660
|
+
action: "ListMessage",
|
|
101661
|
+
version: "2023-04-26",
|
|
101662
|
+
protocol: "HTTPS",
|
|
101663
|
+
pathname: `/ai/v1/assistant/listMessage`,
|
|
101664
|
+
method: "POST",
|
|
101665
|
+
authType: "AK",
|
|
101666
|
+
style: "ROA",
|
|
101667
|
+
reqBodyType: "json",
|
|
101668
|
+
bodyType: "json",
|
|
101669
|
+
});
|
|
101670
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
101671
|
+
return $dara.cast<ListMessageResponse>(await this.callApi(params, req, runtime), new ListMessageResponse({}));
|
|
101672
|
+
} else {
|
|
101673
|
+
return $dara.cast<ListMessageResponse>(await this.execute(params, req, runtime), new ListMessageResponse({}));
|
|
101674
|
+
}
|
|
101675
|
+
|
|
101676
|
+
}
|
|
101677
|
+
|
|
101678
|
+
/**
|
|
101679
|
+
* 查询消息
|
|
101680
|
+
*
|
|
101681
|
+
* @param request - ListMessageRequest
|
|
101682
|
+
* @returns ListMessageResponse
|
|
101683
|
+
*/
|
|
101684
|
+
async listMessage(request: ListMessageRequest): Promise<ListMessageResponse> {
|
|
101685
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
101686
|
+
let headers = new ListMessageHeaders({ });
|
|
101687
|
+
return await this.listMessageWithOptions(request, headers, runtime);
|
|
101688
|
+
}
|
|
101689
|
+
|
|
98951
101690
|
/**
|
|
98952
101691
|
* 列出多行记录
|
|
98953
101692
|
*
|
|
@@ -102367,6 +105106,77 @@ export default class Client extends OpenApi {
|
|
|
102367
105106
|
return await this.respondEventWithOptions(request, headers, runtime);
|
|
102368
105107
|
}
|
|
102369
105108
|
|
|
105109
|
+
/**
|
|
105110
|
+
* 查询运行
|
|
105111
|
+
*
|
|
105112
|
+
* @param request - RetrieveRunRequest
|
|
105113
|
+
* @param headers - RetrieveRunHeaders
|
|
105114
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
105115
|
+
* @returns RetrieveRunResponse
|
|
105116
|
+
*/
|
|
105117
|
+
async retrieveRunWithOptions(request: RetrieveRunRequest, headers: RetrieveRunHeaders, runtime: $dara.RuntimeOptions): Promise<RetrieveRunResponse> {
|
|
105118
|
+
request.validate();
|
|
105119
|
+
let body : {[key: string ]: any} = { };
|
|
105120
|
+
if (!$dara.isNull(request.assistantId)) {
|
|
105121
|
+
body["assistantId"] = request.assistantId;
|
|
105122
|
+
}
|
|
105123
|
+
|
|
105124
|
+
if (!$dara.isNull(request.originalAssistantId)) {
|
|
105125
|
+
body["originalAssistantId"] = request.originalAssistantId;
|
|
105126
|
+
}
|
|
105127
|
+
|
|
105128
|
+
if (!$dara.isNull(request.runId)) {
|
|
105129
|
+
body["runId"] = request.runId;
|
|
105130
|
+
}
|
|
105131
|
+
|
|
105132
|
+
if (!$dara.isNull(request.threadId)) {
|
|
105133
|
+
body["threadId"] = request.threadId;
|
|
105134
|
+
}
|
|
105135
|
+
|
|
105136
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
105137
|
+
if (!$dara.isNull(headers.commonHeaders)) {
|
|
105138
|
+
realHeaders = headers.commonHeaders;
|
|
105139
|
+
}
|
|
105140
|
+
|
|
105141
|
+
if (!$dara.isNull(headers.accountId)) {
|
|
105142
|
+
realHeaders["accountId"] = String(headers.accountId);
|
|
105143
|
+
}
|
|
105144
|
+
|
|
105145
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
105146
|
+
headers: realHeaders,
|
|
105147
|
+
body: OpenApiUtil.parseToMap(body),
|
|
105148
|
+
});
|
|
105149
|
+
let params = new $OpenApiUtil.Params({
|
|
105150
|
+
action: "RetrieveRun",
|
|
105151
|
+
version: "2023-04-26",
|
|
105152
|
+
protocol: "HTTPS",
|
|
105153
|
+
pathname: `/ai/v1/assistant/retrieveRun`,
|
|
105154
|
+
method: "POST",
|
|
105155
|
+
authType: "AK",
|
|
105156
|
+
style: "ROA",
|
|
105157
|
+
reqBodyType: "json",
|
|
105158
|
+
bodyType: "json",
|
|
105159
|
+
});
|
|
105160
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
105161
|
+
return $dara.cast<RetrieveRunResponse>(await this.callApi(params, req, runtime), new RetrieveRunResponse({}));
|
|
105162
|
+
} else {
|
|
105163
|
+
return $dara.cast<RetrieveRunResponse>(await this.execute(params, req, runtime), new RetrieveRunResponse({}));
|
|
105164
|
+
}
|
|
105165
|
+
|
|
105166
|
+
}
|
|
105167
|
+
|
|
105168
|
+
/**
|
|
105169
|
+
* 查询运行
|
|
105170
|
+
*
|
|
105171
|
+
* @param request - RetrieveRunRequest
|
|
105172
|
+
* @returns RetrieveRunResponse
|
|
105173
|
+
*/
|
|
105174
|
+
async retrieveRun(request: RetrieveRunRequest): Promise<RetrieveRunResponse> {
|
|
105175
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
105176
|
+
let headers = new RetrieveRunHeaders({ });
|
|
105177
|
+
return await this.retrieveRunWithOptions(request, headers, runtime);
|
|
105178
|
+
}
|
|
105179
|
+
|
|
102370
105180
|
/**
|
|
102371
105181
|
* 保存日志内容
|
|
102372
105182
|
*
|