@sermas/api-client 1.0.0-alpha.56 → 1.0.0-alpha.57
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/index.cjs +1 -1
- package/index.cjs.map +1 -1
- package/index.d.cts +364 -6
- package/index.d.ts +364 -6
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.cts
CHANGED
|
@@ -427,6 +427,126 @@ type AppToolsDTO = {
|
|
|
427
427
|
*/
|
|
428
428
|
url?: string;
|
|
429
429
|
};
|
|
430
|
+
/**
|
|
431
|
+
* Type of event to trigger
|
|
432
|
+
*/
|
|
433
|
+
type TaskEventType = 'started' | 'completed';
|
|
434
|
+
declare const TaskEventTypeEnum: {
|
|
435
|
+
readonly STARTED: "started";
|
|
436
|
+
readonly COMPLETED: "completed";
|
|
437
|
+
};
|
|
438
|
+
type TaskEventTriggerDto = {
|
|
439
|
+
/**
|
|
440
|
+
* Tool to trigger
|
|
441
|
+
*/
|
|
442
|
+
name?: string;
|
|
443
|
+
/**
|
|
444
|
+
* Tool values passed to the tool handlers
|
|
445
|
+
*/
|
|
446
|
+
values?: Record<string, unknown>;
|
|
447
|
+
};
|
|
448
|
+
type TaskEventDto = {
|
|
449
|
+
type: TaskEventType;
|
|
450
|
+
/**
|
|
451
|
+
* Chat message to send to the user
|
|
452
|
+
*/
|
|
453
|
+
message?: string;
|
|
454
|
+
/**
|
|
455
|
+
* Trigger a tool
|
|
456
|
+
*/
|
|
457
|
+
trigger?: Array<TaskEventTriggerDto>;
|
|
458
|
+
};
|
|
459
|
+
/**
|
|
460
|
+
* Data type
|
|
461
|
+
*/
|
|
462
|
+
type TaskSchemaDataType = 'text' | 'boolean' | 'date' | 'select' | 'eval' | 'external';
|
|
463
|
+
declare const TaskSchemaDataTypeEnum: {
|
|
464
|
+
readonly TEXT: "text";
|
|
465
|
+
readonly BOOLEAN: "boolean";
|
|
466
|
+
readonly DATE: "date";
|
|
467
|
+
readonly SELECT: "select";
|
|
468
|
+
readonly EVAL: "eval";
|
|
469
|
+
readonly EXTERNAL: "external";
|
|
470
|
+
};
|
|
471
|
+
type OptionSelection = {
|
|
472
|
+
/**
|
|
473
|
+
* Selection value
|
|
474
|
+
*/
|
|
475
|
+
value: string;
|
|
476
|
+
/**
|
|
477
|
+
* Selection label (value is used if not provided)
|
|
478
|
+
*/
|
|
479
|
+
label?: string;
|
|
480
|
+
};
|
|
481
|
+
type TaskFieldDto = {
|
|
482
|
+
/**
|
|
483
|
+
* Name of the field
|
|
484
|
+
*/
|
|
485
|
+
name: string;
|
|
486
|
+
/**
|
|
487
|
+
* Label of the field
|
|
488
|
+
*/
|
|
489
|
+
label?: string;
|
|
490
|
+
/**
|
|
491
|
+
* Priority order (lower first)
|
|
492
|
+
*/
|
|
493
|
+
order?: number;
|
|
494
|
+
type: TaskSchemaDataType;
|
|
495
|
+
/**
|
|
496
|
+
* Indicate if the field is required
|
|
497
|
+
*/
|
|
498
|
+
required?: boolean;
|
|
499
|
+
/**
|
|
500
|
+
* A prompt to validate and transform the input
|
|
501
|
+
*/
|
|
502
|
+
validation?: string;
|
|
503
|
+
/**
|
|
504
|
+
* Provde an activation condition based on the stored record list. If omitted, the field is always proposed to the user.
|
|
505
|
+
*/
|
|
506
|
+
condition?: string;
|
|
507
|
+
/**
|
|
508
|
+
* Provde a prompt for type=evaluate based on the available record fields. Placeholders such as {field-name} are replaced with the value of the field.
|
|
509
|
+
*/
|
|
510
|
+
prompt?: string;
|
|
511
|
+
/**
|
|
512
|
+
* Provde an handler for type=external to delegate the field handling to an external service
|
|
513
|
+
*/
|
|
514
|
+
handler?: string;
|
|
515
|
+
/**
|
|
516
|
+
* Allow to select multiple options
|
|
517
|
+
*/
|
|
518
|
+
multiple?: boolean;
|
|
519
|
+
/**
|
|
520
|
+
* List of valid options
|
|
521
|
+
*/
|
|
522
|
+
options?: Array<OptionSelection>;
|
|
523
|
+
};
|
|
524
|
+
type DialogueTaskDto = {
|
|
525
|
+
/**
|
|
526
|
+
* Task ID
|
|
527
|
+
*/
|
|
528
|
+
taskId: string;
|
|
529
|
+
/**
|
|
530
|
+
* Application ID references
|
|
531
|
+
*/
|
|
532
|
+
appId: string;
|
|
533
|
+
/**
|
|
534
|
+
* Task name
|
|
535
|
+
*/
|
|
536
|
+
name: string;
|
|
537
|
+
/**
|
|
538
|
+
* Task description
|
|
539
|
+
*/
|
|
540
|
+
description?: string;
|
|
541
|
+
/**
|
|
542
|
+
* Map task events
|
|
543
|
+
*/
|
|
544
|
+
events?: Array<TaskEventDto>;
|
|
545
|
+
/**
|
|
546
|
+
* Task fields
|
|
547
|
+
*/
|
|
548
|
+
fields: Array<TaskFieldDto>;
|
|
549
|
+
};
|
|
430
550
|
type PlatformAppDto = {
|
|
431
551
|
appId: string;
|
|
432
552
|
public?: boolean;
|
|
@@ -442,7 +562,14 @@ type PlatformAppDto = {
|
|
|
442
562
|
settings?: AppSettingsDto;
|
|
443
563
|
createdAt?: string;
|
|
444
564
|
updatedAt?: string;
|
|
565
|
+
/**
|
|
566
|
+
* Application tools offered by the application
|
|
567
|
+
*/
|
|
445
568
|
tools?: Array<AppToolsDTO>;
|
|
569
|
+
/**
|
|
570
|
+
* Structured tasks offered by the application
|
|
571
|
+
*/
|
|
572
|
+
tasks?: Array<DialogueTaskDto>;
|
|
446
573
|
};
|
|
447
574
|
type CreatePlatformAppDto = {
|
|
448
575
|
public?: boolean;
|
|
@@ -456,7 +583,14 @@ type CreatePlatformAppDto = {
|
|
|
456
583
|
repository: RepositoryConfigDto;
|
|
457
584
|
clients: Array<AppClientDto>;
|
|
458
585
|
settings?: AppSettingsDto;
|
|
586
|
+
/**
|
|
587
|
+
* Application tools offered by the application
|
|
588
|
+
*/
|
|
459
589
|
tools?: Array<AppToolsDTO>;
|
|
590
|
+
/**
|
|
591
|
+
* Structured tasks offered by the application
|
|
592
|
+
*/
|
|
593
|
+
tasks?: Array<DialogueTaskDto>;
|
|
460
594
|
};
|
|
461
595
|
type PlatformAppExportFilterDto = {
|
|
462
596
|
name?: string;
|
|
@@ -660,6 +794,11 @@ type DialogueDocumentDto = {
|
|
|
660
794
|
*/
|
|
661
795
|
options: DialogueDocumentOptionsDto;
|
|
662
796
|
};
|
|
797
|
+
type DialogueUrlDto = {
|
|
798
|
+
appId: string;
|
|
799
|
+
url: string;
|
|
800
|
+
filterPaths: Array<string>;
|
|
801
|
+
};
|
|
663
802
|
/**
|
|
664
803
|
* Actor providing the text, can be user or agent
|
|
665
804
|
*/
|
|
@@ -776,6 +915,33 @@ type DialogueMessageDto = {
|
|
|
776
915
|
*/
|
|
777
916
|
chunkId?: string;
|
|
778
917
|
};
|
|
918
|
+
type DialogueMemoryMessageDto = {
|
|
919
|
+
content: string;
|
|
920
|
+
role: Record<string, unknown>;
|
|
921
|
+
name: string;
|
|
922
|
+
};
|
|
923
|
+
type DialogueTaskRecordDto = {
|
|
924
|
+
/**
|
|
925
|
+
* Record ID
|
|
926
|
+
*/
|
|
927
|
+
recordId: string;
|
|
928
|
+
/**
|
|
929
|
+
* Task ID
|
|
930
|
+
*/
|
|
931
|
+
taskId: string;
|
|
932
|
+
/**
|
|
933
|
+
* Application ID reference
|
|
934
|
+
*/
|
|
935
|
+
appId: string;
|
|
936
|
+
/**
|
|
937
|
+
* Session ID reference
|
|
938
|
+
*/
|
|
939
|
+
sessionId: string;
|
|
940
|
+
/**
|
|
941
|
+
* Stored values
|
|
942
|
+
*/
|
|
943
|
+
values: Record<string, unknown>;
|
|
944
|
+
};
|
|
779
945
|
type DialogueToolsRepositoryOptionsDto = {
|
|
780
946
|
/**
|
|
781
947
|
* Trigger one of the tools in the list once, then remove the tools.
|
|
@@ -1088,7 +1254,13 @@ type ImageUIContentDto = {
|
|
|
1088
1254
|
sessionId?: string;
|
|
1089
1255
|
contentType: SupportedContentTypes;
|
|
1090
1256
|
content: ImageContentDto;
|
|
1257
|
+
/**
|
|
1258
|
+
* Provides metadata for the content
|
|
1259
|
+
*/
|
|
1091
1260
|
metadata?: UIContentMetadataDto & Record<string, unknown>;
|
|
1261
|
+
/**
|
|
1262
|
+
* Provides configuration options for the content
|
|
1263
|
+
*/
|
|
1092
1264
|
options?: UIContentOptionsDto & Record<string, unknown>;
|
|
1093
1265
|
/**
|
|
1094
1266
|
* Unique sortable ID used to group and sort messages
|
|
@@ -1128,7 +1300,13 @@ type VideoUIContentDto = {
|
|
|
1128
1300
|
sessionId?: string;
|
|
1129
1301
|
contentType: SupportedContentTypes;
|
|
1130
1302
|
content: VideoContentDto;
|
|
1303
|
+
/**
|
|
1304
|
+
* Provides metadata for the content
|
|
1305
|
+
*/
|
|
1131
1306
|
metadata?: UIContentMetadataDto & Record<string, unknown>;
|
|
1307
|
+
/**
|
|
1308
|
+
* Provides configuration options for the content
|
|
1309
|
+
*/
|
|
1132
1310
|
options?: UIContentOptionsDto & Record<string, unknown>;
|
|
1133
1311
|
/**
|
|
1134
1312
|
* Unique sortable ID used to group and sort messages
|
|
@@ -1162,7 +1340,13 @@ type PdfUIContentDto = {
|
|
|
1162
1340
|
sessionId?: string;
|
|
1163
1341
|
contentType: SupportedContentTypes;
|
|
1164
1342
|
content: PdfContentDto;
|
|
1343
|
+
/**
|
|
1344
|
+
* Provides metadata for the content
|
|
1345
|
+
*/
|
|
1165
1346
|
metadata?: UIContentMetadataDto & Record<string, unknown>;
|
|
1347
|
+
/**
|
|
1348
|
+
* Provides configuration options for the content
|
|
1349
|
+
*/
|
|
1166
1350
|
options?: UIContentOptionsDto & Record<string, unknown>;
|
|
1167
1351
|
/**
|
|
1168
1352
|
* Unique sortable ID used to group and sort messages
|
|
@@ -1196,7 +1380,13 @@ type WebpageUIContentDto = {
|
|
|
1196
1380
|
sessionId?: string;
|
|
1197
1381
|
contentType: SupportedContentTypes;
|
|
1198
1382
|
content: WebpageContentDto;
|
|
1383
|
+
/**
|
|
1384
|
+
* Provides metadata for the content
|
|
1385
|
+
*/
|
|
1199
1386
|
metadata?: UIContentMetadataDto & Record<string, unknown>;
|
|
1387
|
+
/**
|
|
1388
|
+
* Provides configuration options for the content
|
|
1389
|
+
*/
|
|
1200
1390
|
options?: UIContentOptionsDto & Record<string, unknown>;
|
|
1201
1391
|
/**
|
|
1202
1392
|
* Unique sortable ID used to group and sort messages
|
|
@@ -1230,7 +1420,13 @@ type ObjectUIContentDto = {
|
|
|
1230
1420
|
sessionId?: string;
|
|
1231
1421
|
contentType: SupportedContentTypes;
|
|
1232
1422
|
content: ObjectContentDto;
|
|
1423
|
+
/**
|
|
1424
|
+
* Provides metadata for the content
|
|
1425
|
+
*/
|
|
1233
1426
|
metadata?: UIContentMetadataDto & Record<string, unknown>;
|
|
1427
|
+
/**
|
|
1428
|
+
* Provides configuration options for the content
|
|
1429
|
+
*/
|
|
1234
1430
|
options?: UIContentOptionsDto & Record<string, unknown>;
|
|
1235
1431
|
/**
|
|
1236
1432
|
* Unique sortable ID used to group and sort messages
|
|
@@ -1264,7 +1460,13 @@ type TextUIContentDto = {
|
|
|
1264
1460
|
sessionId?: string;
|
|
1265
1461
|
contentType: SupportedContentTypes;
|
|
1266
1462
|
content: TextContentDto;
|
|
1463
|
+
/**
|
|
1464
|
+
* Provides metadata for the content
|
|
1465
|
+
*/
|
|
1267
1466
|
metadata?: UIContentMetadataDto & Record<string, unknown>;
|
|
1467
|
+
/**
|
|
1468
|
+
* Provides configuration options for the content
|
|
1469
|
+
*/
|
|
1268
1470
|
options?: UIContentOptionsDto & Record<string, unknown>;
|
|
1269
1471
|
/**
|
|
1270
1472
|
* Unique sortable ID used to group and sort messages
|
|
@@ -1304,7 +1506,13 @@ type QuizUIContentDto = {
|
|
|
1304
1506
|
sessionId?: string;
|
|
1305
1507
|
contentType: SupportedContentTypes;
|
|
1306
1508
|
content: QuizContentDto;
|
|
1509
|
+
/**
|
|
1510
|
+
* Provides metadata for the content
|
|
1511
|
+
*/
|
|
1307
1512
|
metadata?: UIContentMetadataDto & Record<string, unknown>;
|
|
1513
|
+
/**
|
|
1514
|
+
* Provides configuration options for the content
|
|
1515
|
+
*/
|
|
1308
1516
|
options?: UIContentOptionsDto & Record<string, unknown>;
|
|
1309
1517
|
/**
|
|
1310
1518
|
* Unique sortable ID used to group and sort messages
|
|
@@ -1335,7 +1543,13 @@ type ClearUIContentDto = {
|
|
|
1335
1543
|
sessionId?: string;
|
|
1336
1544
|
contentType: SupportedContentTypes;
|
|
1337
1545
|
content: Record<string, unknown>;
|
|
1546
|
+
/**
|
|
1547
|
+
* Provides metadata for the content
|
|
1548
|
+
*/
|
|
1338
1549
|
metadata?: UIContentMetadataDto & Record<string, unknown>;
|
|
1550
|
+
/**
|
|
1551
|
+
* Provides configuration options for the content
|
|
1552
|
+
*/
|
|
1339
1553
|
options?: UIContentOptionsDto & Record<string, unknown>;
|
|
1340
1554
|
/**
|
|
1341
1555
|
* Unique sortable ID used to group and sort messages
|
|
@@ -1366,7 +1580,13 @@ type ClearScreenDto = {
|
|
|
1366
1580
|
sessionId?: string;
|
|
1367
1581
|
contentType: SupportedContentTypes;
|
|
1368
1582
|
content: Record<string, unknown>;
|
|
1583
|
+
/**
|
|
1584
|
+
* Provides metadata for the content
|
|
1585
|
+
*/
|
|
1369
1586
|
metadata?: UIContentMetadataDto & Record<string, unknown>;
|
|
1587
|
+
/**
|
|
1588
|
+
* Provides configuration options for the content
|
|
1589
|
+
*/
|
|
1370
1590
|
options?: UIContentOptionsDto & Record<string, unknown>;
|
|
1371
1591
|
/**
|
|
1372
1592
|
* Unique sortable ID used to group and sort messages
|
|
@@ -1408,7 +1628,13 @@ type ButtonsUIContentDto = {
|
|
|
1408
1628
|
sessionId?: string;
|
|
1409
1629
|
contentType: SupportedContentTypes;
|
|
1410
1630
|
content: ButtonsContentDto;
|
|
1631
|
+
/**
|
|
1632
|
+
* Provides metadata for the content
|
|
1633
|
+
*/
|
|
1411
1634
|
metadata?: UIContentMetadataDto & Record<string, unknown>;
|
|
1635
|
+
/**
|
|
1636
|
+
* Provides configuration options for the content
|
|
1637
|
+
*/
|
|
1412
1638
|
options?: UIContentOptionsDto & Record<string, unknown>;
|
|
1413
1639
|
/**
|
|
1414
1640
|
* Unique sortable ID used to group and sort messages
|
|
@@ -1439,7 +1665,13 @@ type DialogueMessageUIContentDto = {
|
|
|
1439
1665
|
sessionId?: string;
|
|
1440
1666
|
contentType: SupportedContentTypes;
|
|
1441
1667
|
content: DialogueMessageDto;
|
|
1668
|
+
/**
|
|
1669
|
+
* Provides metadata for the content
|
|
1670
|
+
*/
|
|
1442
1671
|
metadata?: UIContentMetadataDto & Record<string, unknown>;
|
|
1672
|
+
/**
|
|
1673
|
+
* Provides configuration options for the content
|
|
1674
|
+
*/
|
|
1443
1675
|
options?: UIContentOptionsDto & Record<string, unknown>;
|
|
1444
1676
|
/**
|
|
1445
1677
|
* Unique sortable ID used to group and sort messages
|
|
@@ -1474,7 +1706,13 @@ type LinkUIContentDto = {
|
|
|
1474
1706
|
sessionId?: string;
|
|
1475
1707
|
contentType: SupportedContentTypes;
|
|
1476
1708
|
content: LinkContentDto;
|
|
1709
|
+
/**
|
|
1710
|
+
* Provides metadata for the content
|
|
1711
|
+
*/
|
|
1477
1712
|
metadata?: UIContentMetadataDto & Record<string, unknown>;
|
|
1713
|
+
/**
|
|
1714
|
+
* Provides configuration options for the content
|
|
1715
|
+
*/
|
|
1478
1716
|
options?: UIContentOptionsDto & Record<string, unknown>;
|
|
1479
1717
|
/**
|
|
1480
1718
|
* Unique sortable ID used to group and sort messages
|
|
@@ -1508,7 +1746,13 @@ type HtmlUIContentDto = {
|
|
|
1508
1746
|
sessionId?: string;
|
|
1509
1747
|
contentType: SupportedContentTypes;
|
|
1510
1748
|
content: HtmlContentDto;
|
|
1749
|
+
/**
|
|
1750
|
+
* Provides metadata for the content
|
|
1751
|
+
*/
|
|
1511
1752
|
metadata?: UIContentMetadataDto & Record<string, unknown>;
|
|
1753
|
+
/**
|
|
1754
|
+
* Provides configuration options for the content
|
|
1755
|
+
*/
|
|
1512
1756
|
options?: UIContentOptionsDto & Record<string, unknown>;
|
|
1513
1757
|
/**
|
|
1514
1758
|
* Unique sortable ID used to group and sort messages
|
|
@@ -1543,7 +1787,13 @@ type EmailUIContentDto = {
|
|
|
1543
1787
|
sessionId?: string;
|
|
1544
1788
|
contentType: SupportedContentTypes;
|
|
1545
1789
|
content: EmailContentDto;
|
|
1790
|
+
/**
|
|
1791
|
+
* Provides metadata for the content
|
|
1792
|
+
*/
|
|
1546
1793
|
metadata?: UIContentMetadataDto & Record<string, unknown>;
|
|
1794
|
+
/**
|
|
1795
|
+
* Provides configuration options for the content
|
|
1796
|
+
*/
|
|
1547
1797
|
options?: UIContentOptionsDto & Record<string, unknown>;
|
|
1548
1798
|
/**
|
|
1549
1799
|
* Unique sortable ID used to group and sort messages
|
|
@@ -1584,7 +1834,13 @@ type UIContentDto = {
|
|
|
1584
1834
|
sessionId?: string;
|
|
1585
1835
|
contentType: SupportedContentTypes;
|
|
1586
1836
|
content: Record<string, unknown>;
|
|
1837
|
+
/**
|
|
1838
|
+
* Provides metadata for the content
|
|
1839
|
+
*/
|
|
1587
1840
|
metadata?: UIContentMetadataDto & Record<string, unknown>;
|
|
1841
|
+
/**
|
|
1842
|
+
* Provides configuration options for the content
|
|
1843
|
+
*/
|
|
1588
1844
|
options?: UIContentOptionsDto & Record<string, unknown>;
|
|
1589
1845
|
/**
|
|
1590
1846
|
* Unique sortable ID used to group and sort messages
|
|
@@ -1966,6 +2222,15 @@ type TDataImport = {
|
|
|
1966
2222
|
*/
|
|
1967
2223
|
requestBody: Array<DialogueDocumentDto>;
|
|
1968
2224
|
};
|
|
2225
|
+
type TDataImportWebsite = {
|
|
2226
|
+
/**
|
|
2227
|
+
* URL
|
|
2228
|
+
*/
|
|
2229
|
+
requestBody: DialogueUrlDto;
|
|
2230
|
+
};
|
|
2231
|
+
type TDataRemoveAll = {
|
|
2232
|
+
appId: string;
|
|
2233
|
+
};
|
|
1969
2234
|
type TDataRemove = {
|
|
1970
2235
|
appId: string;
|
|
1971
2236
|
documentId: Array<string>;
|
|
@@ -2040,6 +2305,12 @@ type TDataStopAgentSpeech = {
|
|
|
2040
2305
|
appId: string;
|
|
2041
2306
|
sessionId: string;
|
|
2042
2307
|
};
|
|
2308
|
+
type TDataGetChatHistory = {
|
|
2309
|
+
sessionId: string;
|
|
2310
|
+
};
|
|
2311
|
+
type TDataNextStep = {
|
|
2312
|
+
requestBody: DialogueTaskRecordDto;
|
|
2313
|
+
};
|
|
2043
2314
|
type TDataSetTools = {
|
|
2044
2315
|
repositoryId: string;
|
|
2045
2316
|
requestBody: DialogueToolsRepositoryDto;
|
|
@@ -2065,6 +2336,18 @@ declare class DialogueService {
|
|
|
2065
2336
|
* @throws ApiError
|
|
2066
2337
|
*/
|
|
2067
2338
|
import(data: TDataImport): CancelablePromise<Array<DialogueDocumentDto>>;
|
|
2339
|
+
/**
|
|
2340
|
+
* Import RAG documents by website scraping
|
|
2341
|
+
* @returns any
|
|
2342
|
+
* @throws ApiError
|
|
2343
|
+
*/
|
|
2344
|
+
importWebsite(data: TDataImportWebsite): CancelablePromise<any>;
|
|
2345
|
+
/**
|
|
2346
|
+
* Remove all RAG documents
|
|
2347
|
+
* @returns any
|
|
2348
|
+
* @throws ApiError
|
|
2349
|
+
*/
|
|
2350
|
+
removeAll(data: TDataRemoveAll): CancelablePromise<any>;
|
|
2068
2351
|
/**
|
|
2069
2352
|
* Remove RAG documents
|
|
2070
2353
|
* @returns any
|
|
@@ -2097,6 +2380,18 @@ declare class DialogueService {
|
|
|
2097
2380
|
* @throws ApiError
|
|
2098
2381
|
*/
|
|
2099
2382
|
listModels(): CancelablePromise<any>;
|
|
2383
|
+
/**
|
|
2384
|
+
* Get a session chat history
|
|
2385
|
+
* @returns DialogueMemoryMessageDto
|
|
2386
|
+
* @throws ApiError
|
|
2387
|
+
*/
|
|
2388
|
+
getChatHistory(data: TDataGetChatHistory): CancelablePromise<Array<DialogueMemoryMessageDto>>;
|
|
2389
|
+
/**
|
|
2390
|
+
* Set the tools, overriding existing ones
|
|
2391
|
+
* @returns any
|
|
2392
|
+
* @throws ApiError
|
|
2393
|
+
*/
|
|
2394
|
+
nextStep(data: TDataNextStep): CancelablePromise<any>;
|
|
2100
2395
|
/**
|
|
2101
2396
|
* Save tools, overwriting existing ones.
|
|
2102
2397
|
* @returns any
|
|
@@ -2886,7 +3181,7 @@ interface StringInferenceValue {
|
|
|
2886
3181
|
probability: number;
|
|
2887
3182
|
value: string;
|
|
2888
3183
|
}
|
|
2889
|
-
type
|
|
3184
|
+
type anonymous_schema_198 = 'start' | 'stop';
|
|
2890
3185
|
interface UserCharacterizationEventDto {
|
|
2891
3186
|
appId: string;
|
|
2892
3187
|
clientId?: string;
|
|
@@ -2957,6 +3252,47 @@ interface SermasSessionDto {
|
|
|
2957
3252
|
ts?: string;
|
|
2958
3253
|
sessionId?: string;
|
|
2959
3254
|
}
|
|
3255
|
+
interface DialogueTaskChangedDto {
|
|
3256
|
+
appId: string;
|
|
3257
|
+
clientId?: string;
|
|
3258
|
+
userId?: string;
|
|
3259
|
+
ts?: string;
|
|
3260
|
+
operation: string;
|
|
3261
|
+
sessionId?: string;
|
|
3262
|
+
record: DialogueTaskDto;
|
|
3263
|
+
}
|
|
3264
|
+
interface DialogueTaskRecordChangedDto {
|
|
3265
|
+
appId: string;
|
|
3266
|
+
clientId?: string;
|
|
3267
|
+
userId?: string;
|
|
3268
|
+
ts?: string;
|
|
3269
|
+
operation: string;
|
|
3270
|
+
sessionId?: string;
|
|
3271
|
+
record: DialogueTaskRecordDto;
|
|
3272
|
+
}
|
|
3273
|
+
interface DialogueTaskRecordHandlerDto {
|
|
3274
|
+
appId: string;
|
|
3275
|
+
clientId?: string;
|
|
3276
|
+
userId?: string;
|
|
3277
|
+
ts?: string;
|
|
3278
|
+
sessionId?: string;
|
|
3279
|
+
taskId: string;
|
|
3280
|
+
recordId: string;
|
|
3281
|
+
field: anonymous_schema_283;
|
|
3282
|
+
}
|
|
3283
|
+
interface anonymous_schema_283 {
|
|
3284
|
+
name: string;
|
|
3285
|
+
label?: string;
|
|
3286
|
+
order?: number;
|
|
3287
|
+
type: TaskSchemaDataType;
|
|
3288
|
+
required?: boolean;
|
|
3289
|
+
validation?: string;
|
|
3290
|
+
condition?: string;
|
|
3291
|
+
prompt?: string;
|
|
3292
|
+
handler?: string;
|
|
3293
|
+
multiple?: boolean;
|
|
3294
|
+
options?: OptionSelection[];
|
|
3295
|
+
}
|
|
2960
3296
|
interface DialogueToolTriggeredEventDto {
|
|
2961
3297
|
appId: string;
|
|
2962
3298
|
clientId?: string;
|
|
@@ -2982,10 +3318,10 @@ interface DialogueToolsRepositoryRecordDto {
|
|
|
2982
3318
|
ts?: string;
|
|
2983
3319
|
sessionId?: string;
|
|
2984
3320
|
repositoryId?: string;
|
|
2985
|
-
options?:
|
|
3321
|
+
options?: anonymous_schema_302;
|
|
2986
3322
|
tools: AppToolsDTO[];
|
|
2987
3323
|
}
|
|
2988
|
-
interface
|
|
3324
|
+
interface anonymous_schema_302 {
|
|
2989
3325
|
triggerOnce?: boolean;
|
|
2990
3326
|
exclusive?: boolean;
|
|
2991
3327
|
}
|
|
@@ -3045,11 +3381,11 @@ interface UIAssetChangedDto {
|
|
|
3045
3381
|
sessionId?: string;
|
|
3046
3382
|
record: UIAssetDto;
|
|
3047
3383
|
}
|
|
3048
|
-
interface
|
|
3384
|
+
interface anonymous_schema_378 {
|
|
3049
3385
|
repositoryId?: string;
|
|
3050
3386
|
additionalProperties?: Record<string, any>;
|
|
3051
3387
|
}
|
|
3052
|
-
interface
|
|
3388
|
+
interface anonymous_schema_381 {
|
|
3053
3389
|
clearScreen?: boolean;
|
|
3054
3390
|
ttsEnabled?: boolean;
|
|
3055
3391
|
stopSpeech?: boolean;
|
|
@@ -3233,6 +3569,28 @@ declare class Dialogue {
|
|
|
3233
3569
|
appId?: string;
|
|
3234
3570
|
sessionId?: string;
|
|
3235
3571
|
}): Promise<() => void>;
|
|
3572
|
+
taskChanged(event: DialogueTaskChangedDto, params?: {
|
|
3573
|
+
appId?: string;
|
|
3574
|
+
taskId?: string;
|
|
3575
|
+
}): Promise<boolean>;
|
|
3576
|
+
onTaskChanged(fn: (event: DialogueTaskChangedDto) => void | Promise<void>, params?: {
|
|
3577
|
+
appId?: string;
|
|
3578
|
+
taskId?: string;
|
|
3579
|
+
}): Promise<() => void>;
|
|
3580
|
+
recordChanged(event: DialogueTaskRecordChangedDto, params?: {
|
|
3581
|
+
appId?: string;
|
|
3582
|
+
taskId?: string;
|
|
3583
|
+
}): Promise<boolean>;
|
|
3584
|
+
onRecordChanged(fn: (event: DialogueTaskRecordChangedDto) => void | Promise<void>, params?: {
|
|
3585
|
+
appId?: string;
|
|
3586
|
+
taskId?: string;
|
|
3587
|
+
}): Promise<() => void>;
|
|
3588
|
+
fieldHandler(event: DialogueTaskRecordHandlerDto, params?: {
|
|
3589
|
+
appId?: string;
|
|
3590
|
+
}): Promise<boolean>;
|
|
3591
|
+
onFieldHandler(fn: (event: DialogueTaskRecordHandlerDto) => void | Promise<void>, params?: {
|
|
3592
|
+
appId?: string;
|
|
3593
|
+
}): Promise<() => void>;
|
|
3236
3594
|
toolTriggered(event: DialogueToolTriggeredEventDto, params?: {
|
|
3237
3595
|
appId?: string;
|
|
3238
3596
|
name?: string;
|
|
@@ -3478,4 +3836,4 @@ declare class SermasApiClient {
|
|
|
3478
3836
|
login(username: any, password: any, appId?: string): Promise<LoginResponseDto>;
|
|
3479
3837
|
}
|
|
3480
3838
|
|
|
3481
|
-
export { type AccessTokenRequestDto, type ActuationEventDto, type AgentChangedDto, type AgentDto, type AgentEvaluatePromptDto, type AgentEvaluatePromptFormat, AgentEvaluatePromptFormatEnum, type AgentEvaluatePromptOptionsDto, type AgentEvaluatePromptResponseDto, type AgentHeartBeatEventDto, type AgentStatus, AgentStatusEnum, type AppClientDto, type AppModuleConfigDto, type AppPromptDto, type AppSettingsDto, type AppToolsDTO, type AppUserDto, type AudioClassificationEventDto, type AudioClassificationValue, type AuthJwtUser, type AuthorizationUser, type AvatarCameraConfig, type BoundingBox, Broker, type Buffer$1 as Buffer, type ButtonDto, type ButtonsContentDto, type ButtonsUIContentDto, type ClearScreenDto, type ClearUIContentDto, type CreatePlatformAppDto, type DialogueActor, DialogueActorEnum, type DialogueDocumentDto, type DialogueDocumentMetadataDto, type DialogueDocumentOptionsDto, type DialogueMessageDto, type DialogueMessageUIContentDto, type DialogueTextToSpeechDto, type DialogueToolTriggeredEventDto, type DialogueToolsRepositoryChanged, type DialogueToolsRepositoryDto, type DialogueToolsRepositoryOptionsDto, type DialogueToolsRepositoryRecordDto, type EmailContentDto, type EmailUIContentDto, type HtmlContentDto, type HtmlUIContentDto, type ImageContentDto, type ImageUIContentDto, type InitialPoseDto, type InitialPoseEventDto, type InteractionStartTypes, InteractionStartTypesEnum, InteractionTypeEnum, type JwtTokenDto, type KeycloakCredentials, type KeycloakJwtTokenResourceAccess, type LLMProvider, LLMProviderEnum, type LinearVelocityDto, type LinkContentDto, type LinkUIContentDto, Logger, type LoggerService, type LoginRequestDto, type LoginResponseDto, type ModelGender, ModelGenderEnum, type ModelType, ModelTypeEnum, type ModuleConfigEventDto, type ModuleResourceDto, type ModuleSettingsDto, type MovementDto, type MovementEventDto, type NoiseEventDto, type ObjectContentDto, type ObjectDetectionDto, type ObjectDetectionEventDto, type ObjectDetectionRequest, type ObjectDetectionType, ObjectDetectionTypeEnum, type ObjectUIContentDto, type OrientationDto, type PdfContentDto, type PdfUIContentDto, type PlatformAppChangedDto, type PlatformAppClientChangedDto, type PlatformAppDto, type PlatformAppExportFilterDto, type PlatformAppModuleConfigEventDto, type PlatformModuleConfigDto, type PlatformSettingsDto, type PlatformTokenDto, type Point3D, type PoseDto, type PositionDto, type QRCodeEventDto, type QrCodePayloadDto, type QuizAnswerDto, type QuizContentDto, type QuizUIContentDto, type RefreshTokenRequestDto, type RegistrationRequestDto, type RegistrationResponseDto, type RepositoryAnimationDto, type RepositoryAssetMetadataDto, type RepositoryAssetTypes, RepositoryAssetTypesEnum, type RepositoryAvatarDto, type RepositoryBackgroundDto, type RepositoryBackgroundMetadataDto, type RepositoryConfigDto, type RepositoryDocumentDto, type RepositoryRobotModelDto, type RobotMapDto, type SentimentAnalysisRequest, SermasApiClient, type SermasApiClientConfig, type SermasBaseDto, type SermasEnvType, type SermasSessionDto, type SessionChangedDto, type SessionDto, type SessionProperties, type SessionStorageEventDto, type SessionStorageRecordDto, type SessionStorageSearchDto, type SessionSupportEventDto, type SessionSupportRequestDto, type SessionSupportResponseDto, type StatusDto, type StatusEventDto, type StringInferenceValue, type SupportedContentTypes, SupportedContentTypesEnum, type TextContentDto, type TextUIContentDto, type ToolsParameterSchema, type ToolsParameterSchemaTypes, ToolsParameterSchemaTypesEnum, type ToolsRequestSchema, type ToolsRequestSchemaAuthBasic, type ToolsRequestSchemaAuthBearer, TypeEnum, type UIAssetChangedDto, type UIAssetDto, type UIContentDto, type UIContentMetadataDto, type UIContentOptionsDto, type UIInteractionDTO, type UIInteractionEventDto, type UIModelMapBlendShapesRequestDto, type UIModelMapBlendShapesResponseDto, type UiInteractionButtonDto, type UpdateUserEventDto, type UpdateUserRequestDto, type UserAgeValue, type UserCharacterizationDto, type UserCharacterizationEventDto, type UserDetectionDto, type UserDetectionEventDto, type UserEmotionValue, type UserInteractionIntentionDto, type VelocityDto, type VideoContentDto, type VideoUIContentDto, type ViewLogsRequestDto, type WebpageContentDto, type WebpageUIContentDto, type XRMarkerChangedDto, type XRMarkerDto, type XRMarkerListRequestDto, type XROcclusionDto, type XROcclusionResponseDto, type anonymous_schema_101, type anonymous_schema_104, type
|
|
3839
|
+
export { type AccessTokenRequestDto, type ActuationEventDto, type AgentChangedDto, type AgentDto, type AgentEvaluatePromptDto, type AgentEvaluatePromptFormat, AgentEvaluatePromptFormatEnum, type AgentEvaluatePromptOptionsDto, type AgentEvaluatePromptResponseDto, type AgentHeartBeatEventDto, type AgentStatus, AgentStatusEnum, type AppClientDto, type AppModuleConfigDto, type AppPromptDto, type AppSettingsDto, type AppToolsDTO, type AppUserDto, type AudioClassificationEventDto, type AudioClassificationValue, type AuthJwtUser, type AuthorizationUser, type AvatarCameraConfig, type BoundingBox, Broker, type Buffer$1 as Buffer, type ButtonDto, type ButtonsContentDto, type ButtonsUIContentDto, type ClearScreenDto, type ClearUIContentDto, type CreatePlatformAppDto, type DialogueActor, DialogueActorEnum, type DialogueDocumentDto, type DialogueDocumentMetadataDto, type DialogueDocumentOptionsDto, type DialogueMemoryMessageDto, type DialogueMessageDto, type DialogueMessageUIContentDto, type DialogueTaskChangedDto, type DialogueTaskDto, type DialogueTaskRecordChangedDto, type DialogueTaskRecordDto, type DialogueTaskRecordHandlerDto, type DialogueTextToSpeechDto, type DialogueToolTriggeredEventDto, type DialogueToolsRepositoryChanged, type DialogueToolsRepositoryDto, type DialogueToolsRepositoryOptionsDto, type DialogueToolsRepositoryRecordDto, type DialogueUrlDto, type EmailContentDto, type EmailUIContentDto, type HtmlContentDto, type HtmlUIContentDto, type ImageContentDto, type ImageUIContentDto, type InitialPoseDto, type InitialPoseEventDto, type InteractionStartTypes, InteractionStartTypesEnum, InteractionTypeEnum, type JwtTokenDto, type KeycloakCredentials, type KeycloakJwtTokenResourceAccess, type LLMProvider, LLMProviderEnum, type LinearVelocityDto, type LinkContentDto, type LinkUIContentDto, Logger, type LoggerService, type LoginRequestDto, type LoginResponseDto, type ModelGender, ModelGenderEnum, type ModelType, ModelTypeEnum, type ModuleConfigEventDto, type ModuleResourceDto, type ModuleSettingsDto, type MovementDto, type MovementEventDto, type NoiseEventDto, type ObjectContentDto, type ObjectDetectionDto, type ObjectDetectionEventDto, type ObjectDetectionRequest, type ObjectDetectionType, ObjectDetectionTypeEnum, type ObjectUIContentDto, type OptionSelection, type OrientationDto, type PdfContentDto, type PdfUIContentDto, type PlatformAppChangedDto, type PlatformAppClientChangedDto, type PlatformAppDto, type PlatformAppExportFilterDto, type PlatformAppModuleConfigEventDto, type PlatformModuleConfigDto, type PlatformSettingsDto, type PlatformTokenDto, type Point3D, type PoseDto, type PositionDto, type QRCodeEventDto, type QrCodePayloadDto, type QuizAnswerDto, type QuizContentDto, type QuizUIContentDto, type RefreshTokenRequestDto, type RegistrationRequestDto, type RegistrationResponseDto, type RepositoryAnimationDto, type RepositoryAssetMetadataDto, type RepositoryAssetTypes, RepositoryAssetTypesEnum, type RepositoryAvatarDto, type RepositoryBackgroundDto, type RepositoryBackgroundMetadataDto, type RepositoryConfigDto, type RepositoryDocumentDto, type RepositoryRobotModelDto, type RobotMapDto, type SentimentAnalysisRequest, SermasApiClient, type SermasApiClientConfig, type SermasBaseDto, type SermasEnvType, type SermasSessionDto, type SessionChangedDto, type SessionDto, type SessionProperties, type SessionStorageEventDto, type SessionStorageRecordDto, type SessionStorageSearchDto, type SessionSupportEventDto, type SessionSupportRequestDto, type SessionSupportResponseDto, type StatusDto, type StatusEventDto, type StringInferenceValue, type SupportedContentTypes, SupportedContentTypesEnum, type TaskEventDto, type TaskEventTriggerDto, type TaskEventType, TaskEventTypeEnum, type TaskFieldDto, type TaskSchemaDataType, TaskSchemaDataTypeEnum, type TextContentDto, type TextUIContentDto, type ToolsParameterSchema, type ToolsParameterSchemaTypes, ToolsParameterSchemaTypesEnum, type ToolsRequestSchema, type ToolsRequestSchemaAuthBasic, type ToolsRequestSchemaAuthBearer, TypeEnum, type UIAssetChangedDto, type UIAssetDto, type UIContentDto, type UIContentMetadataDto, type UIContentOptionsDto, type UIInteractionDTO, type UIInteractionEventDto, type UIModelMapBlendShapesRequestDto, type UIModelMapBlendShapesResponseDto, type UiInteractionButtonDto, type UpdateUserEventDto, type UpdateUserRequestDto, type UserAgeValue, type UserCharacterizationDto, type UserCharacterizationEventDto, type UserDetectionDto, type UserDetectionEventDto, type UserEmotionValue, type UserInteractionIntentionDto, type VelocityDto, type VideoContentDto, type VideoUIContentDto, type ViewLogsRequestDto, type WebpageContentDto, type WebpageUIContentDto, type XRMarkerChangedDto, type XRMarkerDto, type XRMarkerListRequestDto, type XROcclusionDto, type XROcclusionResponseDto, type anonymous_schema_101, type anonymous_schema_104, type anonymous_schema_198, type anonymous_schema_283, type anonymous_schema_302, type anonymous_schema_378, type anonymous_schema_381, type anonymous_schema_99, sleep };
|