@sermas/api-client 1.0.0-alpha.29 → 1.0.0-alpha.30

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.d.cts CHANGED
@@ -425,6 +425,54 @@ type DialogueDocumentDto = {
425
425
  metadata: DialogueDocumentMetadataDto;
426
426
  };
427
427
 
428
+ type DialogueMessageDto = {
429
+ appId: string;
430
+ /**
431
+ * Reference to the authenticated client the request originated from
432
+ */
433
+ clientId?: string;
434
+ /**
435
+ * Reference to the user interacting with the system
436
+ */
437
+ userId?: string;
438
+ /**
439
+ * User session identifier
440
+ */
441
+ sessionId?: string;
442
+ /**
443
+ * Unique identifier of the message
444
+ */
445
+ messageId?: string;
446
+ /**
447
+ * Actor providing the text, can be user or agent
448
+ */
449
+ actor?: 'user' | 'agent';
450
+ /**
451
+ * Indicate a chunck identifier as timestamp, usually indicating it is part of a stream.
452
+ */
453
+ text: string;
454
+ /**
455
+ * Assistant gender (M or F)
456
+ */
457
+ gender?: string;
458
+ /**
459
+ * Text language
460
+ */
461
+ language?: string;
462
+ /**
463
+ * User emotion, if available
464
+ */
465
+ emotion?: string;
466
+ /**
467
+ * LLM engine to use
468
+ */
469
+ llm?: string;
470
+ /**
471
+ * Indicate a chunck identifier as timestamp, usually indicating it is part of a stream.
472
+ */
473
+ chunkId?: number;
474
+ };
475
+
428
476
  type DialogueTextToSpeechDto = {
429
477
  appId: string;
430
478
  /**
@@ -436,18 +484,36 @@ type DialogueTextToSpeechDto = {
436
484
  */
437
485
  userId?: string;
438
486
  /**
439
- * Track the interaction session, if available
487
+ * User session identifier
440
488
  */
441
489
  sessionId?: string;
490
+ /**
491
+ * Unique identifier of the message
492
+ */
442
493
  messageId?: string;
443
- actor: string;
494
+ /**
495
+ * Actor providing the text, can be user or agent
496
+ */
497
+ actor?: 'user' | 'agent';
444
498
  /**
445
499
  * Text to convert to speech. If emotion field is set, it will be converted to SSML. If also `ssml` field is set, this field will be ignored
446
500
  */
447
501
  text?: string;
448
- gender: string;
449
- language: string;
502
+ /**
503
+ * Assistant gender (M or F)
504
+ */
505
+ gender?: string;
506
+ /**
507
+ * Text language
508
+ */
509
+ language?: string;
510
+ /**
511
+ * User emotion, if available
512
+ */
450
513
  emotion?: string;
514
+ /**
515
+ * LLM engine to use
516
+ */
451
517
  llm?: string;
452
518
  /**
453
519
  * Indicate a chunck identifier as timestamp, usually indicating it is part of a stream.
@@ -459,17 +525,6 @@ type DialogueTextToSpeechDto = {
459
525
  ssml?: string;
460
526
  };
461
527
 
462
- type DialogueUserMessageDto = {
463
- messageId?: string;
464
- appId?: string;
465
- sessionId?: string;
466
- gender?: string;
467
- language?: string;
468
- llm?: string;
469
- message: string;
470
- actor?: string;
471
- };
472
-
473
528
  declare class DialogueService {
474
529
  readonly httpRequest: BaseHttpRequest;
475
530
  constructor(httpRequest: BaseHttpRequest);
@@ -504,29 +559,22 @@ declare class DialogueService {
504
559
  /**
505
560
  * @param appId
506
561
  * @param sessionId
507
- * @param language
508
- * @param gender
509
- * @param llm
510
562
  * @param sampleRate
511
563
  * @param formData
512
564
  * @returns any
513
565
  * @throws ApiError
514
566
  */
515
- text(appId: string, sessionId: string, language: string, gender: string, llm: string, sampleRate: number, formData: {
567
+ text(appId: string, sessionId: string, sampleRate: number, formData: {
516
568
  file?: Blob;
517
569
  }): CancelablePromise<any>;
518
570
  /**
519
571
  * @param appId
520
572
  * @param sessionId
521
- * @param language
522
- * @param gender
523
- * @param llm
524
- * @param actor
525
573
  * @param requestBody
526
574
  * @returns any
527
575
  * @throws ApiError
528
576
  */
529
- chatMessage(appId: string, sessionId: string, language: string, gender: string, llm: string, actor: string, requestBody: DialogueUserMessageDto): CancelablePromise<any>;
577
+ chatMessage(appId: string, sessionId: string, requestBody: DialogueMessageDto): CancelablePromise<any>;
530
578
  /**
531
579
  * @param appId
532
580
  * @param sessionId
@@ -539,6 +587,14 @@ declare class DialogueService {
539
587
  * @throws ApiError
540
588
  */
541
589
  import1(): CancelablePromise<any>;
590
+ /**
591
+ * @param appId
592
+ * @param sessionId
593
+ * @param requestBody
594
+ * @returns any
595
+ * @throws ApiError
596
+ */
597
+ getToolsfFromAppId(appId: string, sessionId: string, requestBody: Array<string>): CancelablePromise<any>;
542
598
  }
543
599
 
544
600
  type AccessTokenRequestDto = {
@@ -1292,8 +1348,18 @@ declare class SessionService {
1292
1348
  }
1293
1349
 
1294
1350
  type UIContentOptionsDto = {
1351
+ /**
1352
+ * Clear the UI screen
1353
+ */
1295
1354
  clearScreen?: boolean;
1355
+ /**
1356
+ * Enable agent reading the content (text to speech)
1357
+ */
1296
1358
  ttsEnabled?: boolean;
1359
+ /**
1360
+ * Stop the agent speech
1361
+ */
1362
+ stopSpeech?: boolean;
1297
1363
  };
1298
1364
 
1299
1365
  type UIContentDto = {
@@ -1543,33 +1609,6 @@ type ClearUIContentDto = {
1543
1609
  messageId?: string;
1544
1610
  };
1545
1611
 
1546
- type DialogueMessageDto = {
1547
- appId: string;
1548
- /**
1549
- * Reference to the authenticated client the request originated from
1550
- */
1551
- clientId?: string;
1552
- /**
1553
- * Reference to the user interacting with the system
1554
- */
1555
- userId?: string;
1556
- /**
1557
- * Track the interaction session, if available
1558
- */
1559
- sessionId?: string;
1560
- messageId?: string;
1561
- actor: string;
1562
- text: string;
1563
- gender: string;
1564
- language: string;
1565
- emotion?: string;
1566
- llm?: string;
1567
- /**
1568
- * Indicate a chunck identifier as timestamp, usually indicating it is part of a stream.
1569
- */
1570
- chunkId?: number;
1571
- };
1572
-
1573
1612
  type DialogueMessageUIContentDto = {
1574
1613
  appId: string;
1575
1614
  /**
@@ -2066,7 +2105,14 @@ interface DialogueToolTriggeredEventDto {
2066
2105
  sessionId?: string;
2067
2106
  name: string;
2068
2107
  }
2108
+ type anonymous_schema_174 = 'user' | 'agent';
2069
2109
  type Buffer$1 = Record<string, any>;
2110
+ interface SermasSessionDto {
2111
+ appId: string;
2112
+ clientId?: string;
2113
+ userId?: string;
2114
+ sessionId?: string;
2115
+ }
2070
2116
  interface SessionChangedDto {
2071
2117
  appId: string;
2072
2118
  clientId?: string;
@@ -2079,10 +2125,10 @@ interface AgentDto {
2079
2125
  clientId?: string;
2080
2126
  userId?: string;
2081
2127
  agentId: string;
2082
- status: anonymous_schema_199;
2128
+ status: anonymous_schema_203;
2083
2129
  modules: string[];
2084
2130
  }
2085
- type anonymous_schema_199 = 'unavailable' | 'error' | 'not_ready' | 'ready' | 'loading' | 'interacting' | 'waiting' | 'processing';
2131
+ type anonymous_schema_203 = 'unavailable' | 'error' | 'not_ready' | 'ready' | 'loading' | 'interacting' | 'waiting' | 'processing';
2086
2132
  interface AgentChangedDto {
2087
2133
  appId: string;
2088
2134
  clientId?: string;
@@ -2116,7 +2162,7 @@ interface UIStatusDto {
2116
2162
  status: string;
2117
2163
  visible: boolean;
2118
2164
  }
2119
- type anonymous_schema_235 = 'video' | 'image' | 'pdf' | 'webpage' | 'object' | 'text' | 'email' | 'html' | 'link' | 'dialogue-message' | 'navigation' | 'buttons' | 'quiz' | 'clear-screen';
2165
+ type anonymous_schema_239 = 'video' | 'image' | 'pdf' | 'webpage' | 'object' | 'text' | 'email' | 'html' | 'link' | 'dialogue-message' | 'navigation' | 'buttons' | 'quiz' | 'clear-screen';
2120
2166
  interface UIInteractionEventDto {
2121
2167
  appId: string;
2122
2168
  clientId?: string;
@@ -2288,6 +2334,14 @@ declare class Dialogue {
2288
2334
  sessionId?: string;
2289
2335
  chunkId?: string;
2290
2336
  }): Promise<() => void>;
2337
+ agentStopSpeech(event: SermasSessionDto, params?: {
2338
+ appId?: string;
2339
+ sessionId?: string;
2340
+ }): Promise<boolean>;
2341
+ onAgentStopSpeech(fn: (event: SermasSessionDto) => void | Promise<void>, params?: {
2342
+ appId?: string;
2343
+ sessionId?: string;
2344
+ }): Promise<() => void>;
2291
2345
  }
2292
2346
 
2293
2347
  declare class Session {
@@ -2505,4 +2559,4 @@ declare class SermasApiClient {
2505
2559
  login(username: any, password: any, appId?: string): Promise<LoginResponseDto>;
2506
2560
  }
2507
2561
 
2508
- export { type AccessTokenRequestDto, type ActuationEventDto, type AgentChangedDto, type AgentDto, type AgentHeartBeatEventDto, type AppClientDto, type AppModuleConfigDto, type AppPromptDto, type AppSettingsDto, type AppToolsDTO, 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 DialogueDocumentDto, type DialogueDocumentMetadataDto, type DialogueMessageDto, type DialogueMessageUIContentDto, type DialogueTextToSpeechDto, type DialogueToolTriggeredEventDto, type DialogueUserMessageDto, type EmailContentDto, type EmailUIContentDto, type HtmlContentDto, type HtmlUIContentDto, type ImageContentDto, type ImageUIContentDto, type InitialPoseDto, type InitialPoseEventDto, type JwtTokenDto, type KeycloakJwtTokenResourceAccess, type LinearVelocityDto, type LinkContentDto, type LinkUIContentDto, type LoginRequestDto, type LoginResponseDto, type ModuleConfigEventDto, type ModuleResourceDto, type ModuleSettingsDto, type MovementDto, type MovementEventDto, type NoiseEventDto, type ObjectContentDto, type ObjectDetectionDto, type ObjectDetectionEventDto, 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 QuizAnswerDto, type QuizContentDto, type QuizUIContentDto, type RefreshTokenRequestDto, type RegistrationRequestDto, type RegistrationResponseDto, type RepositoryAvatarModelDto, type RepositoryBackgroundMetadataDto, type RepositoryBackgroundModelDto, type RepositoryConfigDto, type RepositoryMapModelDto, type RepositoryRobotModelDto, type SentimentAnalysisRequest, SermasApiClient, type SermasApiClientConfig, type SermasBaseDto, type SermasEnvType, type SessionChangedDto, type SessionDto, type SessionStorageEventDto, type SessionStorageRecordDto, type SessionStorageSearchDto, type SessionSupportEventDto, type SessionSupportRequestDto, type SessionSupportResponseDto, type StatusDto, type StatusEventDto, type StringInferenceValue, type TextContentDto, type TextUIContentDto, type ToolsRequestSchema, type ToolsRequestSchemaAuthBasic, type ToolsRequestSchemaAuthBearer, type UIContentDto, type UIContentOptionsDto, type UIInteractionDTO, type UIInteractionEventDto, type UILoaderResponseDto, type UIModelMapBlendShapesRequestDto, type UIModelMapBlendShapesResponseDto, type UIStatusDto, 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_125, type anonymous_schema_199, type anonymous_schema_235, type anonymous_schema_60, type anonymous_schema_63, sleep };
2562
+ export { type AccessTokenRequestDto, type ActuationEventDto, type AgentChangedDto, type AgentDto, type AgentHeartBeatEventDto, type AppClientDto, type AppModuleConfigDto, type AppPromptDto, type AppSettingsDto, type AppToolsDTO, 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 DialogueDocumentDto, type DialogueDocumentMetadataDto, type DialogueMessageDto, type DialogueMessageUIContentDto, type DialogueTextToSpeechDto, type DialogueToolTriggeredEventDto, type EmailContentDto, type EmailUIContentDto, type HtmlContentDto, type HtmlUIContentDto, type ImageContentDto, type ImageUIContentDto, type InitialPoseDto, type InitialPoseEventDto, type JwtTokenDto, type KeycloakJwtTokenResourceAccess, type LinearVelocityDto, type LinkContentDto, type LinkUIContentDto, type LoginRequestDto, type LoginResponseDto, type ModuleConfigEventDto, type ModuleResourceDto, type ModuleSettingsDto, type MovementDto, type MovementEventDto, type NoiseEventDto, type ObjectContentDto, type ObjectDetectionDto, type ObjectDetectionEventDto, 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 QuizAnswerDto, type QuizContentDto, type QuizUIContentDto, type RefreshTokenRequestDto, type RegistrationRequestDto, type RegistrationResponseDto, type RepositoryAvatarModelDto, type RepositoryBackgroundMetadataDto, type RepositoryBackgroundModelDto, type RepositoryConfigDto, type RepositoryMapModelDto, type RepositoryRobotModelDto, type SentimentAnalysisRequest, SermasApiClient, type SermasApiClientConfig, type SermasBaseDto, type SermasEnvType, type SermasSessionDto, type SessionChangedDto, type SessionDto, type SessionStorageEventDto, type SessionStorageRecordDto, type SessionStorageSearchDto, type SessionSupportEventDto, type SessionSupportRequestDto, type SessionSupportResponseDto, type StatusDto, type StatusEventDto, type StringInferenceValue, type TextContentDto, type TextUIContentDto, type ToolsRequestSchema, type ToolsRequestSchemaAuthBasic, type ToolsRequestSchemaAuthBearer, type UIContentDto, type UIContentOptionsDto, type UIInteractionDTO, type UIInteractionEventDto, type UILoaderResponseDto, type UIModelMapBlendShapesRequestDto, type UIModelMapBlendShapesResponseDto, type UIStatusDto, 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_125, type anonymous_schema_174, type anonymous_schema_203, type anonymous_schema_239, type anonymous_schema_60, type anonymous_schema_63, sleep };
package/index.d.ts CHANGED
@@ -425,6 +425,54 @@ type DialogueDocumentDto = {
425
425
  metadata: DialogueDocumentMetadataDto;
426
426
  };
427
427
 
428
+ type DialogueMessageDto = {
429
+ appId: string;
430
+ /**
431
+ * Reference to the authenticated client the request originated from
432
+ */
433
+ clientId?: string;
434
+ /**
435
+ * Reference to the user interacting with the system
436
+ */
437
+ userId?: string;
438
+ /**
439
+ * User session identifier
440
+ */
441
+ sessionId?: string;
442
+ /**
443
+ * Unique identifier of the message
444
+ */
445
+ messageId?: string;
446
+ /**
447
+ * Actor providing the text, can be user or agent
448
+ */
449
+ actor?: 'user' | 'agent';
450
+ /**
451
+ * Indicate a chunck identifier as timestamp, usually indicating it is part of a stream.
452
+ */
453
+ text: string;
454
+ /**
455
+ * Assistant gender (M or F)
456
+ */
457
+ gender?: string;
458
+ /**
459
+ * Text language
460
+ */
461
+ language?: string;
462
+ /**
463
+ * User emotion, if available
464
+ */
465
+ emotion?: string;
466
+ /**
467
+ * LLM engine to use
468
+ */
469
+ llm?: string;
470
+ /**
471
+ * Indicate a chunck identifier as timestamp, usually indicating it is part of a stream.
472
+ */
473
+ chunkId?: number;
474
+ };
475
+
428
476
  type DialogueTextToSpeechDto = {
429
477
  appId: string;
430
478
  /**
@@ -436,18 +484,36 @@ type DialogueTextToSpeechDto = {
436
484
  */
437
485
  userId?: string;
438
486
  /**
439
- * Track the interaction session, if available
487
+ * User session identifier
440
488
  */
441
489
  sessionId?: string;
490
+ /**
491
+ * Unique identifier of the message
492
+ */
442
493
  messageId?: string;
443
- actor: string;
494
+ /**
495
+ * Actor providing the text, can be user or agent
496
+ */
497
+ actor?: 'user' | 'agent';
444
498
  /**
445
499
  * Text to convert to speech. If emotion field is set, it will be converted to SSML. If also `ssml` field is set, this field will be ignored
446
500
  */
447
501
  text?: string;
448
- gender: string;
449
- language: string;
502
+ /**
503
+ * Assistant gender (M or F)
504
+ */
505
+ gender?: string;
506
+ /**
507
+ * Text language
508
+ */
509
+ language?: string;
510
+ /**
511
+ * User emotion, if available
512
+ */
450
513
  emotion?: string;
514
+ /**
515
+ * LLM engine to use
516
+ */
451
517
  llm?: string;
452
518
  /**
453
519
  * Indicate a chunck identifier as timestamp, usually indicating it is part of a stream.
@@ -459,17 +525,6 @@ type DialogueTextToSpeechDto = {
459
525
  ssml?: string;
460
526
  };
461
527
 
462
- type DialogueUserMessageDto = {
463
- messageId?: string;
464
- appId?: string;
465
- sessionId?: string;
466
- gender?: string;
467
- language?: string;
468
- llm?: string;
469
- message: string;
470
- actor?: string;
471
- };
472
-
473
528
  declare class DialogueService {
474
529
  readonly httpRequest: BaseHttpRequest;
475
530
  constructor(httpRequest: BaseHttpRequest);
@@ -504,29 +559,22 @@ declare class DialogueService {
504
559
  /**
505
560
  * @param appId
506
561
  * @param sessionId
507
- * @param language
508
- * @param gender
509
- * @param llm
510
562
  * @param sampleRate
511
563
  * @param formData
512
564
  * @returns any
513
565
  * @throws ApiError
514
566
  */
515
- text(appId: string, sessionId: string, language: string, gender: string, llm: string, sampleRate: number, formData: {
567
+ text(appId: string, sessionId: string, sampleRate: number, formData: {
516
568
  file?: Blob;
517
569
  }): CancelablePromise<any>;
518
570
  /**
519
571
  * @param appId
520
572
  * @param sessionId
521
- * @param language
522
- * @param gender
523
- * @param llm
524
- * @param actor
525
573
  * @param requestBody
526
574
  * @returns any
527
575
  * @throws ApiError
528
576
  */
529
- chatMessage(appId: string, sessionId: string, language: string, gender: string, llm: string, actor: string, requestBody: DialogueUserMessageDto): CancelablePromise<any>;
577
+ chatMessage(appId: string, sessionId: string, requestBody: DialogueMessageDto): CancelablePromise<any>;
530
578
  /**
531
579
  * @param appId
532
580
  * @param sessionId
@@ -539,6 +587,14 @@ declare class DialogueService {
539
587
  * @throws ApiError
540
588
  */
541
589
  import1(): CancelablePromise<any>;
590
+ /**
591
+ * @param appId
592
+ * @param sessionId
593
+ * @param requestBody
594
+ * @returns any
595
+ * @throws ApiError
596
+ */
597
+ getToolsfFromAppId(appId: string, sessionId: string, requestBody: Array<string>): CancelablePromise<any>;
542
598
  }
543
599
 
544
600
  type AccessTokenRequestDto = {
@@ -1292,8 +1348,18 @@ declare class SessionService {
1292
1348
  }
1293
1349
 
1294
1350
  type UIContentOptionsDto = {
1351
+ /**
1352
+ * Clear the UI screen
1353
+ */
1295
1354
  clearScreen?: boolean;
1355
+ /**
1356
+ * Enable agent reading the content (text to speech)
1357
+ */
1296
1358
  ttsEnabled?: boolean;
1359
+ /**
1360
+ * Stop the agent speech
1361
+ */
1362
+ stopSpeech?: boolean;
1297
1363
  };
1298
1364
 
1299
1365
  type UIContentDto = {
@@ -1543,33 +1609,6 @@ type ClearUIContentDto = {
1543
1609
  messageId?: string;
1544
1610
  };
1545
1611
 
1546
- type DialogueMessageDto = {
1547
- appId: string;
1548
- /**
1549
- * Reference to the authenticated client the request originated from
1550
- */
1551
- clientId?: string;
1552
- /**
1553
- * Reference to the user interacting with the system
1554
- */
1555
- userId?: string;
1556
- /**
1557
- * Track the interaction session, if available
1558
- */
1559
- sessionId?: string;
1560
- messageId?: string;
1561
- actor: string;
1562
- text: string;
1563
- gender: string;
1564
- language: string;
1565
- emotion?: string;
1566
- llm?: string;
1567
- /**
1568
- * Indicate a chunck identifier as timestamp, usually indicating it is part of a stream.
1569
- */
1570
- chunkId?: number;
1571
- };
1572
-
1573
1612
  type DialogueMessageUIContentDto = {
1574
1613
  appId: string;
1575
1614
  /**
@@ -2066,7 +2105,14 @@ interface DialogueToolTriggeredEventDto {
2066
2105
  sessionId?: string;
2067
2106
  name: string;
2068
2107
  }
2108
+ type anonymous_schema_174 = 'user' | 'agent';
2069
2109
  type Buffer$1 = Record<string, any>;
2110
+ interface SermasSessionDto {
2111
+ appId: string;
2112
+ clientId?: string;
2113
+ userId?: string;
2114
+ sessionId?: string;
2115
+ }
2070
2116
  interface SessionChangedDto {
2071
2117
  appId: string;
2072
2118
  clientId?: string;
@@ -2079,10 +2125,10 @@ interface AgentDto {
2079
2125
  clientId?: string;
2080
2126
  userId?: string;
2081
2127
  agentId: string;
2082
- status: anonymous_schema_199;
2128
+ status: anonymous_schema_203;
2083
2129
  modules: string[];
2084
2130
  }
2085
- type anonymous_schema_199 = 'unavailable' | 'error' | 'not_ready' | 'ready' | 'loading' | 'interacting' | 'waiting' | 'processing';
2131
+ type anonymous_schema_203 = 'unavailable' | 'error' | 'not_ready' | 'ready' | 'loading' | 'interacting' | 'waiting' | 'processing';
2086
2132
  interface AgentChangedDto {
2087
2133
  appId: string;
2088
2134
  clientId?: string;
@@ -2116,7 +2162,7 @@ interface UIStatusDto {
2116
2162
  status: string;
2117
2163
  visible: boolean;
2118
2164
  }
2119
- type anonymous_schema_235 = 'video' | 'image' | 'pdf' | 'webpage' | 'object' | 'text' | 'email' | 'html' | 'link' | 'dialogue-message' | 'navigation' | 'buttons' | 'quiz' | 'clear-screen';
2165
+ type anonymous_schema_239 = 'video' | 'image' | 'pdf' | 'webpage' | 'object' | 'text' | 'email' | 'html' | 'link' | 'dialogue-message' | 'navigation' | 'buttons' | 'quiz' | 'clear-screen';
2120
2166
  interface UIInteractionEventDto {
2121
2167
  appId: string;
2122
2168
  clientId?: string;
@@ -2288,6 +2334,14 @@ declare class Dialogue {
2288
2334
  sessionId?: string;
2289
2335
  chunkId?: string;
2290
2336
  }): Promise<() => void>;
2337
+ agentStopSpeech(event: SermasSessionDto, params?: {
2338
+ appId?: string;
2339
+ sessionId?: string;
2340
+ }): Promise<boolean>;
2341
+ onAgentStopSpeech(fn: (event: SermasSessionDto) => void | Promise<void>, params?: {
2342
+ appId?: string;
2343
+ sessionId?: string;
2344
+ }): Promise<() => void>;
2291
2345
  }
2292
2346
 
2293
2347
  declare class Session {
@@ -2505,4 +2559,4 @@ declare class SermasApiClient {
2505
2559
  login(username: any, password: any, appId?: string): Promise<LoginResponseDto>;
2506
2560
  }
2507
2561
 
2508
- export { type AccessTokenRequestDto, type ActuationEventDto, type AgentChangedDto, type AgentDto, type AgentHeartBeatEventDto, type AppClientDto, type AppModuleConfigDto, type AppPromptDto, type AppSettingsDto, type AppToolsDTO, 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 DialogueDocumentDto, type DialogueDocumentMetadataDto, type DialogueMessageDto, type DialogueMessageUIContentDto, type DialogueTextToSpeechDto, type DialogueToolTriggeredEventDto, type DialogueUserMessageDto, type EmailContentDto, type EmailUIContentDto, type HtmlContentDto, type HtmlUIContentDto, type ImageContentDto, type ImageUIContentDto, type InitialPoseDto, type InitialPoseEventDto, type JwtTokenDto, type KeycloakJwtTokenResourceAccess, type LinearVelocityDto, type LinkContentDto, type LinkUIContentDto, type LoginRequestDto, type LoginResponseDto, type ModuleConfigEventDto, type ModuleResourceDto, type ModuleSettingsDto, type MovementDto, type MovementEventDto, type NoiseEventDto, type ObjectContentDto, type ObjectDetectionDto, type ObjectDetectionEventDto, 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 QuizAnswerDto, type QuizContentDto, type QuizUIContentDto, type RefreshTokenRequestDto, type RegistrationRequestDto, type RegistrationResponseDto, type RepositoryAvatarModelDto, type RepositoryBackgroundMetadataDto, type RepositoryBackgroundModelDto, type RepositoryConfigDto, type RepositoryMapModelDto, type RepositoryRobotModelDto, type SentimentAnalysisRequest, SermasApiClient, type SermasApiClientConfig, type SermasBaseDto, type SermasEnvType, type SessionChangedDto, type SessionDto, type SessionStorageEventDto, type SessionStorageRecordDto, type SessionStorageSearchDto, type SessionSupportEventDto, type SessionSupportRequestDto, type SessionSupportResponseDto, type StatusDto, type StatusEventDto, type StringInferenceValue, type TextContentDto, type TextUIContentDto, type ToolsRequestSchema, type ToolsRequestSchemaAuthBasic, type ToolsRequestSchemaAuthBearer, type UIContentDto, type UIContentOptionsDto, type UIInteractionDTO, type UIInteractionEventDto, type UILoaderResponseDto, type UIModelMapBlendShapesRequestDto, type UIModelMapBlendShapesResponseDto, type UIStatusDto, 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_125, type anonymous_schema_199, type anonymous_schema_235, type anonymous_schema_60, type anonymous_schema_63, sleep };
2562
+ export { type AccessTokenRequestDto, type ActuationEventDto, type AgentChangedDto, type AgentDto, type AgentHeartBeatEventDto, type AppClientDto, type AppModuleConfigDto, type AppPromptDto, type AppSettingsDto, type AppToolsDTO, 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 DialogueDocumentDto, type DialogueDocumentMetadataDto, type DialogueMessageDto, type DialogueMessageUIContentDto, type DialogueTextToSpeechDto, type DialogueToolTriggeredEventDto, type EmailContentDto, type EmailUIContentDto, type HtmlContentDto, type HtmlUIContentDto, type ImageContentDto, type ImageUIContentDto, type InitialPoseDto, type InitialPoseEventDto, type JwtTokenDto, type KeycloakJwtTokenResourceAccess, type LinearVelocityDto, type LinkContentDto, type LinkUIContentDto, type LoginRequestDto, type LoginResponseDto, type ModuleConfigEventDto, type ModuleResourceDto, type ModuleSettingsDto, type MovementDto, type MovementEventDto, type NoiseEventDto, type ObjectContentDto, type ObjectDetectionDto, type ObjectDetectionEventDto, 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 QuizAnswerDto, type QuizContentDto, type QuizUIContentDto, type RefreshTokenRequestDto, type RegistrationRequestDto, type RegistrationResponseDto, type RepositoryAvatarModelDto, type RepositoryBackgroundMetadataDto, type RepositoryBackgroundModelDto, type RepositoryConfigDto, type RepositoryMapModelDto, type RepositoryRobotModelDto, type SentimentAnalysisRequest, SermasApiClient, type SermasApiClientConfig, type SermasBaseDto, type SermasEnvType, type SermasSessionDto, type SessionChangedDto, type SessionDto, type SessionStorageEventDto, type SessionStorageRecordDto, type SessionStorageSearchDto, type SessionSupportEventDto, type SessionSupportRequestDto, type SessionSupportResponseDto, type StatusDto, type StatusEventDto, type StringInferenceValue, type TextContentDto, type TextUIContentDto, type ToolsRequestSchema, type ToolsRequestSchemaAuthBasic, type ToolsRequestSchemaAuthBearer, type UIContentDto, type UIContentOptionsDto, type UIInteractionDTO, type UIInteractionEventDto, type UILoaderResponseDto, type UIModelMapBlendShapesRequestDto, type UIModelMapBlendShapesResponseDto, type UIStatusDto, 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_125, type anonymous_schema_174, type anonymous_schema_203, type anonymous_schema_239, type anonymous_schema_60, type anonymous_schema_63, sleep };