@sermas/api-client 1.0.0-alpha.34 → 1.0.0-alpha.36

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
@@ -297,6 +297,35 @@ type AppSettingsDto = {
297
297
  llm?: string;
298
298
  background: string;
299
299
  prompt?: AppPromptDto;
300
+ skipWelcomeMessage?: boolean;
301
+ };
302
+ type ToolsParameterSchemaTypes = 'string' | 'number' | 'boolean';
303
+ declare const ToolsParameterSchemaTypesEnum: {
304
+ readonly STRING: "string";
305
+ readonly NUMBER: "number";
306
+ readonly BOOLEAN: "boolean";
307
+ };
308
+ type ToolsParameterSchema = {
309
+ /**
310
+ * function parameter name
311
+ */
312
+ parameter: string;
313
+ /**
314
+ * parameter type (one of string,number,boolean)
315
+ */
316
+ type: ToolsParameterSchemaTypes;
317
+ /**
318
+ * description for the parameter, useful to give an hint while matching from the user input
319
+ */
320
+ description: string;
321
+ /**
322
+ * flag as required
323
+ */
324
+ required?: boolean;
325
+ /**
326
+ * provide a predefined value, useful to fill data otherwise missing from the context
327
+ */
328
+ value?: string | number | boolean;
300
329
  };
301
330
  type ToolsRequestSchemaAuthBasic = {
302
331
  username?: string;
@@ -353,7 +382,7 @@ type ToolsRequestSchema = {
353
382
  type AppToolsDTO = {
354
383
  name: string;
355
384
  description: string;
356
- schema?: Array<string>;
385
+ schema?: Array<ToolsParameterSchema>;
357
386
  request?: ToolsRequestSchema;
358
387
  emitter?: string;
359
388
  returnDirect?: boolean;
@@ -603,6 +632,10 @@ type DialogueTextToSpeechDto = {
603
632
  * LLM engine to use
604
633
  */
605
634
  llm?: string;
635
+ /**
636
+ * The avatar id used for interaction
637
+ */
638
+ avatar?: string;
606
639
  /**
607
640
  * Indicate a chunck identifier as timestamp, usually indicating it is part of a stream.
608
641
  */
@@ -654,6 +687,10 @@ type DialogueMessageDto = {
654
687
  * LLM engine to use
655
688
  */
656
689
  llm?: string;
690
+ /**
691
+ * The avatar id used for interaction
692
+ */
693
+ avatar?: string;
657
694
  /**
658
695
  * Indicate a chunck identifier as timestamp, usually indicating it is part of a stream.
659
696
  */
@@ -681,6 +718,7 @@ type SessionDto = {
681
718
  modifiedAt: string;
682
719
  createdAt: string;
683
720
  closedAt: string;
721
+ settings?: AppSettingsDto;
684
722
  };
685
723
  type AgentStatus = 'unavailable' | 'error' | 'not_ready' | 'ready' | 'loading' | 'interacting' | 'waiting' | 'processing';
686
724
  declare const AgentStatusEnum: {
@@ -1438,7 +1476,7 @@ declare class AuthenticationService {
1438
1476
  authAdminControllerSaveUser(data: TDataAuthAdminControllerSaveUser): CancelablePromise<any>;
1439
1477
  }
1440
1478
 
1441
- type TDataObjecTdEtection = {
1479
+ type TDataObjectDetection = {
1442
1480
  requestBody: ObjectDetectionRequest;
1443
1481
  };
1444
1482
  type TDataDetectionControllerSentimentAnalysis = {
@@ -1466,7 +1504,7 @@ declare class DetectionService {
1466
1504
  * @returns any
1467
1505
  * @throws ApiError
1468
1506
  */
1469
- objecTdEtection(data: TDataObjecTdEtection): CancelablePromise<any>;
1507
+ objectDetection(data: TDataObjectDetection): CancelablePromise<any>;
1470
1508
  /**
1471
1509
  * @returns any
1472
1510
  * @throws ApiError
@@ -1549,6 +1587,10 @@ type TDataText = {
1549
1587
  * LLM engine to use
1550
1588
  */
1551
1589
  llm?: string;
1590
+ /**
1591
+ * The avatar id used for interaction
1592
+ */
1593
+ avatar?: string;
1552
1594
  /**
1553
1595
  * Indicate a chunck identifier as timestamp, usually indicating it is part of a stream.
1554
1596
  */
@@ -1567,9 +1609,14 @@ type TDataStopAgentSpeech = {
1567
1609
  appId: string;
1568
1610
  sessionId: string;
1569
1611
  };
1570
- type TDataGetToolsfFromAppId = {
1612
+ type TDataSetTools = {
1613
+ appId: string;
1614
+ requestBody: Array<AppToolsDTO>;
1615
+ sessionId: string;
1616
+ };
1617
+ type TDataAddTools = {
1571
1618
  appId: string;
1572
- requestBody: Array<string>;
1619
+ requestBody: Array<AppToolsDTO>;
1573
1620
  sessionId: string;
1574
1621
  };
1575
1622
  declare class DialogueService {
@@ -1619,10 +1666,17 @@ declare class DialogueService {
1619
1666
  */
1620
1667
  import1(): CancelablePromise<any>;
1621
1668
  /**
1669
+ * Set the tools, overriding existing ones
1622
1670
  * @returns any
1623
1671
  * @throws ApiError
1624
1672
  */
1625
- getToolsfFromAppId(data: TDataGetToolsfFromAppId): CancelablePromise<any>;
1673
+ setTools(data: TDataSetTools): CancelablePromise<any>;
1674
+ /**
1675
+ * Add tools to the session. Existing with the same name will be overridden.
1676
+ * @returns any
1677
+ * @throws ApiError
1678
+ */
1679
+ addTools(data: TDataAddTools): CancelablePromise<any>;
1626
1680
  }
1627
1681
 
1628
1682
  type TDataGetClientAccessToken = {
@@ -2291,13 +2345,14 @@ interface PlatformAppChangedDto {
2291
2345
  clientId?: string;
2292
2346
  userId?: string;
2293
2347
  operation: string;
2348
+ sessionId?: string;
2294
2349
  record: PlatformAppDto;
2295
2350
  }
2296
- interface anonymous_schema_88 {
2351
+ interface anonymous_schema_96 {
2297
2352
  username?: string;
2298
2353
  password: string;
2299
2354
  }
2300
- interface anonymous_schema_91 {
2355
+ interface anonymous_schema_99 {
2301
2356
  clientType?: string;
2302
2357
  clientId?: string;
2303
2358
  clientSecret?: string;
@@ -2312,6 +2367,7 @@ interface PlatformAppClientChangedDto {
2312
2367
  clientId?: string;
2313
2368
  userId?: string;
2314
2369
  operation: string;
2370
+ sessionId?: string;
2315
2371
  record: AppClientDto;
2316
2372
  }
2317
2373
  interface PlatformAppModuleConfigEventDto {
@@ -2319,6 +2375,7 @@ interface PlatformAppModuleConfigEventDto {
2319
2375
  clientId?: string;
2320
2376
  userId?: string;
2321
2377
  operation: string;
2378
+ sessionId?: string;
2322
2379
  record: AppModuleConfigDto;
2323
2380
  }
2324
2381
  interface ModuleConfigEventDto {
@@ -2358,7 +2415,7 @@ interface StringInferenceValue {
2358
2415
  probability: number;
2359
2416
  value: string;
2360
2417
  }
2361
- type anonymous_schema_153 = 'start' | 'stop';
2418
+ type anonymous_schema_163 = 'start' | 'stop';
2362
2419
  interface UserCharacterizationEventDto {
2363
2420
  appId: string;
2364
2421
  clientId?: string;
@@ -2424,6 +2481,15 @@ interface DialogueToolTriggeredEventDto {
2424
2481
  userId?: string;
2425
2482
  sessionId?: string;
2426
2483
  name: string;
2484
+ tool: AppToolsDTO;
2485
+ }
2486
+ interface DialogueToolsChanged {
2487
+ appId: string;
2488
+ clientId?: string;
2489
+ userId?: string;
2490
+ operation: string;
2491
+ sessionId?: string;
2492
+ record: AppToolsDTO[];
2427
2493
  }
2428
2494
  interface SermasSessionDto {
2429
2495
  appId: string;
@@ -2436,6 +2502,7 @@ interface SessionChangedDto {
2436
2502
  clientId?: string;
2437
2503
  userId?: string;
2438
2504
  operation: string;
2505
+ sessionId?: string;
2439
2506
  record: SessionDto;
2440
2507
  }
2441
2508
  interface AgentDto {
@@ -2451,8 +2518,8 @@ interface AgentChangedDto {
2451
2518
  clientId?: string;
2452
2519
  userId?: string;
2453
2520
  operation: string;
2521
+ sessionId?: string;
2454
2522
  moduleId: string;
2455
- sessionId: string;
2456
2523
  record: AgentDto;
2457
2524
  }
2458
2525
  interface SessionSupportEventDto {
@@ -2469,6 +2536,7 @@ interface SessionStorageEventDto {
2469
2536
  clientId?: string;
2470
2537
  userId?: string;
2471
2538
  operation: string;
2539
+ sessionId?: string;
2472
2540
  record: SessionStorageRecordDto;
2473
2541
  }
2474
2542
  interface UIAssetChangedDto {
@@ -2476,6 +2544,7 @@ interface UIAssetChangedDto {
2476
2544
  clientId?: string;
2477
2545
  userId?: string;
2478
2546
  operation: string;
2547
+ sessionId?: string;
2479
2548
  record: UIAssetDto;
2480
2549
  }
2481
2550
  interface UIInteractionEventDto {
@@ -2491,6 +2560,7 @@ interface XRMarkerChangedDto {
2491
2560
  clientId?: string;
2492
2561
  userId?: string;
2493
2562
  operation: string;
2563
+ sessionId?: string;
2494
2564
  record: XRMarkerDto;
2495
2565
  }
2496
2566
  interface XROcclusionDto {
@@ -2633,6 +2703,14 @@ declare class Dialogue {
2633
2703
  appId?: string;
2634
2704
  name?: string;
2635
2705
  }): Promise<() => void>;
2706
+ toolChanged(event: DialogueToolsChanged, params?: {
2707
+ appId?: string;
2708
+ sessionId?: string;
2709
+ }): Promise<boolean>;
2710
+ onToolChanged(fn: (event: DialogueToolsChanged) => void | Promise<void>, params?: {
2711
+ appId?: string;
2712
+ sessionId?: string;
2713
+ }): Promise<() => void>;
2636
2714
  dialogueMessages(event: DialogueMessageDto, params?: {
2637
2715
  appId?: string;
2638
2716
  sessionId?: string;
@@ -2876,4 +2954,4 @@ declare class SermasApiClient {
2876
2954
  login(username: any, password: any, appId?: string): Promise<LoginResponseDto>;
2877
2955
  }
2878
2956
 
2879
- export { type AccessTokenRequestDto, type ActuationEventDto, type AgentChangedDto, type AgentDto, 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 DialogueMessageDto, type DialogueMessageUIContentDto, type DialogueTextToSpeechDto, type DialogueToolTriggeredEventDto, type EmailContentDto, type EmailUIContentDto, type HtmlContentDto, type HtmlUIContentDto, type ImageContentDto, type ImageUIContentDto, type InitialPoseDto, type InitialPoseEventDto, InteractionTypeEnum, type JwtTokenDto, type KeycloakCredentials, type KeycloakJwtTokenResourceAccess, type LinearVelocityDto, type LinkContentDto, type LinkUIContentDto, 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 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 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 ToolsRequestSchema, type ToolsRequestSchemaAuthBasic, type ToolsRequestSchemaAuthBearer, TypeEnum, type UIAssetChangedDto, type UIAssetDto, type UIContentDto, type UIContentOptionsDto, type UIInteractionDTO, type UIInteractionEventDto, type UIModelMapBlendShapesRequestDto, type UIModelMapBlendShapesResponseDto, 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_153, type anonymous_schema_88, type anonymous_schema_91, sleep };
2957
+ export { type AccessTokenRequestDto, type ActuationEventDto, type AgentChangedDto, type AgentDto, 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 DialogueMessageDto, type DialogueMessageUIContentDto, type DialogueTextToSpeechDto, type DialogueToolTriggeredEventDto, type DialogueToolsChanged, type EmailContentDto, type EmailUIContentDto, type HtmlContentDto, type HtmlUIContentDto, type ImageContentDto, type ImageUIContentDto, type InitialPoseDto, type InitialPoseEventDto, InteractionTypeEnum, type JwtTokenDto, type KeycloakCredentials, type KeycloakJwtTokenResourceAccess, type LinearVelocityDto, type LinkContentDto, type LinkUIContentDto, 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 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 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 UIContentOptionsDto, type UIInteractionDTO, type UIInteractionEventDto, type UIModelMapBlendShapesRequestDto, type UIModelMapBlendShapesResponseDto, 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_163, type anonymous_schema_96, type anonymous_schema_99, sleep };
package/index.d.ts CHANGED
@@ -297,6 +297,35 @@ type AppSettingsDto = {
297
297
  llm?: string;
298
298
  background: string;
299
299
  prompt?: AppPromptDto;
300
+ skipWelcomeMessage?: boolean;
301
+ };
302
+ type ToolsParameterSchemaTypes = 'string' | 'number' | 'boolean';
303
+ declare const ToolsParameterSchemaTypesEnum: {
304
+ readonly STRING: "string";
305
+ readonly NUMBER: "number";
306
+ readonly BOOLEAN: "boolean";
307
+ };
308
+ type ToolsParameterSchema = {
309
+ /**
310
+ * function parameter name
311
+ */
312
+ parameter: string;
313
+ /**
314
+ * parameter type (one of string,number,boolean)
315
+ */
316
+ type: ToolsParameterSchemaTypes;
317
+ /**
318
+ * description for the parameter, useful to give an hint while matching from the user input
319
+ */
320
+ description: string;
321
+ /**
322
+ * flag as required
323
+ */
324
+ required?: boolean;
325
+ /**
326
+ * provide a predefined value, useful to fill data otherwise missing from the context
327
+ */
328
+ value?: string | number | boolean;
300
329
  };
301
330
  type ToolsRequestSchemaAuthBasic = {
302
331
  username?: string;
@@ -353,7 +382,7 @@ type ToolsRequestSchema = {
353
382
  type AppToolsDTO = {
354
383
  name: string;
355
384
  description: string;
356
- schema?: Array<string>;
385
+ schema?: Array<ToolsParameterSchema>;
357
386
  request?: ToolsRequestSchema;
358
387
  emitter?: string;
359
388
  returnDirect?: boolean;
@@ -603,6 +632,10 @@ type DialogueTextToSpeechDto = {
603
632
  * LLM engine to use
604
633
  */
605
634
  llm?: string;
635
+ /**
636
+ * The avatar id used for interaction
637
+ */
638
+ avatar?: string;
606
639
  /**
607
640
  * Indicate a chunck identifier as timestamp, usually indicating it is part of a stream.
608
641
  */
@@ -654,6 +687,10 @@ type DialogueMessageDto = {
654
687
  * LLM engine to use
655
688
  */
656
689
  llm?: string;
690
+ /**
691
+ * The avatar id used for interaction
692
+ */
693
+ avatar?: string;
657
694
  /**
658
695
  * Indicate a chunck identifier as timestamp, usually indicating it is part of a stream.
659
696
  */
@@ -681,6 +718,7 @@ type SessionDto = {
681
718
  modifiedAt: string;
682
719
  createdAt: string;
683
720
  closedAt: string;
721
+ settings?: AppSettingsDto;
684
722
  };
685
723
  type AgentStatus = 'unavailable' | 'error' | 'not_ready' | 'ready' | 'loading' | 'interacting' | 'waiting' | 'processing';
686
724
  declare const AgentStatusEnum: {
@@ -1438,7 +1476,7 @@ declare class AuthenticationService {
1438
1476
  authAdminControllerSaveUser(data: TDataAuthAdminControllerSaveUser): CancelablePromise<any>;
1439
1477
  }
1440
1478
 
1441
- type TDataObjecTdEtection = {
1479
+ type TDataObjectDetection = {
1442
1480
  requestBody: ObjectDetectionRequest;
1443
1481
  };
1444
1482
  type TDataDetectionControllerSentimentAnalysis = {
@@ -1466,7 +1504,7 @@ declare class DetectionService {
1466
1504
  * @returns any
1467
1505
  * @throws ApiError
1468
1506
  */
1469
- objecTdEtection(data: TDataObjecTdEtection): CancelablePromise<any>;
1507
+ objectDetection(data: TDataObjectDetection): CancelablePromise<any>;
1470
1508
  /**
1471
1509
  * @returns any
1472
1510
  * @throws ApiError
@@ -1549,6 +1587,10 @@ type TDataText = {
1549
1587
  * LLM engine to use
1550
1588
  */
1551
1589
  llm?: string;
1590
+ /**
1591
+ * The avatar id used for interaction
1592
+ */
1593
+ avatar?: string;
1552
1594
  /**
1553
1595
  * Indicate a chunck identifier as timestamp, usually indicating it is part of a stream.
1554
1596
  */
@@ -1567,9 +1609,14 @@ type TDataStopAgentSpeech = {
1567
1609
  appId: string;
1568
1610
  sessionId: string;
1569
1611
  };
1570
- type TDataGetToolsfFromAppId = {
1612
+ type TDataSetTools = {
1613
+ appId: string;
1614
+ requestBody: Array<AppToolsDTO>;
1615
+ sessionId: string;
1616
+ };
1617
+ type TDataAddTools = {
1571
1618
  appId: string;
1572
- requestBody: Array<string>;
1619
+ requestBody: Array<AppToolsDTO>;
1573
1620
  sessionId: string;
1574
1621
  };
1575
1622
  declare class DialogueService {
@@ -1619,10 +1666,17 @@ declare class DialogueService {
1619
1666
  */
1620
1667
  import1(): CancelablePromise<any>;
1621
1668
  /**
1669
+ * Set the tools, overriding existing ones
1622
1670
  * @returns any
1623
1671
  * @throws ApiError
1624
1672
  */
1625
- getToolsfFromAppId(data: TDataGetToolsfFromAppId): CancelablePromise<any>;
1673
+ setTools(data: TDataSetTools): CancelablePromise<any>;
1674
+ /**
1675
+ * Add tools to the session. Existing with the same name will be overridden.
1676
+ * @returns any
1677
+ * @throws ApiError
1678
+ */
1679
+ addTools(data: TDataAddTools): CancelablePromise<any>;
1626
1680
  }
1627
1681
 
1628
1682
  type TDataGetClientAccessToken = {
@@ -2291,13 +2345,14 @@ interface PlatformAppChangedDto {
2291
2345
  clientId?: string;
2292
2346
  userId?: string;
2293
2347
  operation: string;
2348
+ sessionId?: string;
2294
2349
  record: PlatformAppDto;
2295
2350
  }
2296
- interface anonymous_schema_88 {
2351
+ interface anonymous_schema_96 {
2297
2352
  username?: string;
2298
2353
  password: string;
2299
2354
  }
2300
- interface anonymous_schema_91 {
2355
+ interface anonymous_schema_99 {
2301
2356
  clientType?: string;
2302
2357
  clientId?: string;
2303
2358
  clientSecret?: string;
@@ -2312,6 +2367,7 @@ interface PlatformAppClientChangedDto {
2312
2367
  clientId?: string;
2313
2368
  userId?: string;
2314
2369
  operation: string;
2370
+ sessionId?: string;
2315
2371
  record: AppClientDto;
2316
2372
  }
2317
2373
  interface PlatformAppModuleConfigEventDto {
@@ -2319,6 +2375,7 @@ interface PlatformAppModuleConfigEventDto {
2319
2375
  clientId?: string;
2320
2376
  userId?: string;
2321
2377
  operation: string;
2378
+ sessionId?: string;
2322
2379
  record: AppModuleConfigDto;
2323
2380
  }
2324
2381
  interface ModuleConfigEventDto {
@@ -2358,7 +2415,7 @@ interface StringInferenceValue {
2358
2415
  probability: number;
2359
2416
  value: string;
2360
2417
  }
2361
- type anonymous_schema_153 = 'start' | 'stop';
2418
+ type anonymous_schema_163 = 'start' | 'stop';
2362
2419
  interface UserCharacterizationEventDto {
2363
2420
  appId: string;
2364
2421
  clientId?: string;
@@ -2424,6 +2481,15 @@ interface DialogueToolTriggeredEventDto {
2424
2481
  userId?: string;
2425
2482
  sessionId?: string;
2426
2483
  name: string;
2484
+ tool: AppToolsDTO;
2485
+ }
2486
+ interface DialogueToolsChanged {
2487
+ appId: string;
2488
+ clientId?: string;
2489
+ userId?: string;
2490
+ operation: string;
2491
+ sessionId?: string;
2492
+ record: AppToolsDTO[];
2427
2493
  }
2428
2494
  interface SermasSessionDto {
2429
2495
  appId: string;
@@ -2436,6 +2502,7 @@ interface SessionChangedDto {
2436
2502
  clientId?: string;
2437
2503
  userId?: string;
2438
2504
  operation: string;
2505
+ sessionId?: string;
2439
2506
  record: SessionDto;
2440
2507
  }
2441
2508
  interface AgentDto {
@@ -2451,8 +2518,8 @@ interface AgentChangedDto {
2451
2518
  clientId?: string;
2452
2519
  userId?: string;
2453
2520
  operation: string;
2521
+ sessionId?: string;
2454
2522
  moduleId: string;
2455
- sessionId: string;
2456
2523
  record: AgentDto;
2457
2524
  }
2458
2525
  interface SessionSupportEventDto {
@@ -2469,6 +2536,7 @@ interface SessionStorageEventDto {
2469
2536
  clientId?: string;
2470
2537
  userId?: string;
2471
2538
  operation: string;
2539
+ sessionId?: string;
2472
2540
  record: SessionStorageRecordDto;
2473
2541
  }
2474
2542
  interface UIAssetChangedDto {
@@ -2476,6 +2544,7 @@ interface UIAssetChangedDto {
2476
2544
  clientId?: string;
2477
2545
  userId?: string;
2478
2546
  operation: string;
2547
+ sessionId?: string;
2479
2548
  record: UIAssetDto;
2480
2549
  }
2481
2550
  interface UIInteractionEventDto {
@@ -2491,6 +2560,7 @@ interface XRMarkerChangedDto {
2491
2560
  clientId?: string;
2492
2561
  userId?: string;
2493
2562
  operation: string;
2563
+ sessionId?: string;
2494
2564
  record: XRMarkerDto;
2495
2565
  }
2496
2566
  interface XROcclusionDto {
@@ -2633,6 +2703,14 @@ declare class Dialogue {
2633
2703
  appId?: string;
2634
2704
  name?: string;
2635
2705
  }): Promise<() => void>;
2706
+ toolChanged(event: DialogueToolsChanged, params?: {
2707
+ appId?: string;
2708
+ sessionId?: string;
2709
+ }): Promise<boolean>;
2710
+ onToolChanged(fn: (event: DialogueToolsChanged) => void | Promise<void>, params?: {
2711
+ appId?: string;
2712
+ sessionId?: string;
2713
+ }): Promise<() => void>;
2636
2714
  dialogueMessages(event: DialogueMessageDto, params?: {
2637
2715
  appId?: string;
2638
2716
  sessionId?: string;
@@ -2876,4 +2954,4 @@ declare class SermasApiClient {
2876
2954
  login(username: any, password: any, appId?: string): Promise<LoginResponseDto>;
2877
2955
  }
2878
2956
 
2879
- export { type AccessTokenRequestDto, type ActuationEventDto, type AgentChangedDto, type AgentDto, 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 DialogueMessageDto, type DialogueMessageUIContentDto, type DialogueTextToSpeechDto, type DialogueToolTriggeredEventDto, type EmailContentDto, type EmailUIContentDto, type HtmlContentDto, type HtmlUIContentDto, type ImageContentDto, type ImageUIContentDto, type InitialPoseDto, type InitialPoseEventDto, InteractionTypeEnum, type JwtTokenDto, type KeycloakCredentials, type KeycloakJwtTokenResourceAccess, type LinearVelocityDto, type LinkContentDto, type LinkUIContentDto, 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 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 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 ToolsRequestSchema, type ToolsRequestSchemaAuthBasic, type ToolsRequestSchemaAuthBearer, TypeEnum, type UIAssetChangedDto, type UIAssetDto, type UIContentDto, type UIContentOptionsDto, type UIInteractionDTO, type UIInteractionEventDto, type UIModelMapBlendShapesRequestDto, type UIModelMapBlendShapesResponseDto, 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_153, type anonymous_schema_88, type anonymous_schema_91, sleep };
2957
+ export { type AccessTokenRequestDto, type ActuationEventDto, type AgentChangedDto, type AgentDto, 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 DialogueMessageDto, type DialogueMessageUIContentDto, type DialogueTextToSpeechDto, type DialogueToolTriggeredEventDto, type DialogueToolsChanged, type EmailContentDto, type EmailUIContentDto, type HtmlContentDto, type HtmlUIContentDto, type ImageContentDto, type ImageUIContentDto, type InitialPoseDto, type InitialPoseEventDto, InteractionTypeEnum, type JwtTokenDto, type KeycloakCredentials, type KeycloakJwtTokenResourceAccess, type LinearVelocityDto, type LinkContentDto, type LinkUIContentDto, 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 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 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 UIContentOptionsDto, type UIInteractionDTO, type UIInteractionEventDto, type UIModelMapBlendShapesRequestDto, type UIModelMapBlendShapesResponseDto, 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_163, type anonymous_schema_96, type anonymous_schema_99, sleep };