@cognigy/rest-api-client 2026.1.0 → 2026.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/build/apigroups/InsightsAPIGroup_2_1.js +27 -0
  3. package/build/apigroups/ResourcesAPIGroup_2_0.js +1 -0
  4. package/build/apigroups/SimulationAPIGroup_2_0.js +24 -23
  5. package/build/apigroups/index.js +3 -1
  6. package/build/shared/charts/descriptors/connectionNodes/smtp/index.js +5 -1
  7. package/build/shared/charts/descriptors/connectionNodes/smtp/oAuth2ClientCredentialsConnection.js +15 -0
  8. package/build/shared/charts/descriptors/connectionNodes/smtp/oAuth2JwtBearerConnection.js +13 -0
  9. package/build/shared/charts/descriptors/connectionNodes/smtp/sendEmail.js +54 -10
  10. package/build/shared/charts/descriptors/connectionNodes/speechProviders/elevenlabsSpeechProviderConnection.js +52 -0
  11. package/build/shared/charts/descriptors/connectionNodes/speechProviders/index.js +8 -7
  12. package/build/shared/charts/descriptors/index.js +4 -0
  13. package/build/shared/charts/descriptors/message/question/question.js +249 -59
  14. package/build/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +17 -15
  15. package/build/shared/charts/descriptors/service/aiAgent/aiAgentJobCallMCPTool.js +6 -4
  16. package/build/shared/charts/descriptors/service/aiAgent/aiAgentJobMCPTool.js +57 -1
  17. package/build/shared/charts/descriptors/service/aiAgent/helpers/createToolDefinitions.js +7 -0
  18. package/build/shared/charts/descriptors/service/aiAgentV2.js +89 -0
  19. package/build/shared/charts/descriptors/service/index.js +5 -1
  20. package/build/shared/charts/descriptors/service/llmPrompt/LLMPromptV2.js +15 -13
  21. package/build/shared/charts/descriptors/service/llmPrompt/llmPromptMCPTool.js +57 -1
  22. package/build/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +67 -13
  23. package/build/shared/charts/descriptors/voice/mappers/transfer.mapper.js +25 -3
  24. package/build/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +65 -0
  25. package/build/shared/charts/descriptors/voicegateway2/nodes/play.js +7 -0
  26. package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +137 -1
  27. package/build/shared/charts/descriptors/voicegateway2/nodes/transfer.js +135 -2
  28. package/build/shared/helper/BaseContext.js +1 -1
  29. package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +1 -0
  30. package/build/shared/interfaces/handoverProviders.js +0 -1
  31. package/build/shared/interfaces/messageAPI/endpoints.js +3 -0
  32. package/build/shared/interfaces/resources/IAuditEvent.js +13 -0
  33. package/build/shared/interfaces/resources/TResourceType.js +2 -0
  34. package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeSource.js +1 -1
  35. package/build/shared/interfaces/resources/settings/IAudioPreviewSettings.js +7 -1
  36. package/build/shared/interfaces/restAPI/analytics/IDeleteConversationsBySessionRest_2_1.js +3 -0
  37. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IRunKnowledgeConnectorRest_2_0.js +3 -0
  38. package/build/shared/interfaces/restAPI/simulation/simulationOverview/IGetSimulationOverviewMetricsRestData_2_0.js +3 -0
  39. package/build/shared/interfaces/restAPI/simulation/simulationOverview/IGetSuccessRateTrendRestData_2_0.js +3 -0
  40. package/build/shared/interfaces/restAPI/simulation/simulationOverview/IGetUpcomingScheduledRunsRestData_2_0.js +3 -0
  41. package/build/shared/interfaces/security/ISessionScope.js +3 -0
  42. package/build/shared/interfaces/user.js +2 -0
  43. package/dist/esm/apigroups/InsightsAPIGroup_2_1.js +13 -0
  44. package/dist/esm/apigroups/ResourcesAPIGroup_2_0.js +1 -0
  45. package/dist/esm/apigroups/SimulationAPIGroup_2_0.js +24 -23
  46. package/dist/esm/apigroups/index.js +1 -0
  47. package/dist/esm/shared/charts/descriptors/connectionNodes/smtp/index.js +5 -1
  48. package/dist/esm/shared/charts/descriptors/connectionNodes/smtp/oAuth2ClientCredentialsConnection.js +12 -0
  49. package/dist/esm/shared/charts/descriptors/connectionNodes/smtp/oAuth2JwtBearerConnection.js +10 -0
  50. package/dist/esm/shared/charts/descriptors/connectionNodes/smtp/sendEmail.js +54 -10
  51. package/dist/esm/shared/charts/descriptors/connectionNodes/speechProviders/elevenlabsSpeechProviderConnection.js +49 -0
  52. package/dist/esm/shared/charts/descriptors/connectionNodes/speechProviders/index.js +3 -3
  53. package/dist/esm/shared/charts/descriptors/index.js +5 -1
  54. package/dist/esm/shared/charts/descriptors/message/question/question.js +249 -59
  55. package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +17 -15
  56. package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJobCallMCPTool.js +6 -4
  57. package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJobMCPTool.js +56 -0
  58. package/dist/esm/shared/charts/descriptors/service/aiAgent/helpers/createToolDefinitions.js +7 -0
  59. package/dist/esm/shared/charts/descriptors/service/aiAgentV2.js +87 -0
  60. package/dist/esm/shared/charts/descriptors/service/index.js +2 -0
  61. package/dist/esm/shared/charts/descriptors/service/llmPrompt/LLMPromptV2.js +22 -20
  62. package/dist/esm/shared/charts/descriptors/service/llmPrompt/llmPromptMCPTool.js +56 -0
  63. package/dist/esm/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +67 -13
  64. package/dist/esm/shared/charts/descriptors/voice/mappers/transfer.mapper.js +25 -3
  65. package/dist/esm/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +65 -0
  66. package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/play.js +7 -0
  67. package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +137 -1
  68. package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/transfer.js +135 -2
  69. package/dist/esm/shared/helper/BaseContext.js +1 -1
  70. package/dist/esm/shared/interfaces/generativeAI/IGenerativeAIModels.js +1 -0
  71. package/dist/esm/shared/interfaces/handoverProviders.js +0 -1
  72. package/dist/esm/shared/interfaces/messageAPI/endpoints.js +3 -0
  73. package/dist/esm/shared/interfaces/resources/IAuditEvent.js +13 -0
  74. package/dist/esm/shared/interfaces/resources/TResourceType.js +2 -0
  75. package/dist/esm/shared/interfaces/resources/knowledgeStore/IKnowledgeSource.js +1 -1
  76. package/dist/esm/shared/interfaces/resources/settings/IAudioPreviewSettings.js +7 -1
  77. package/dist/esm/shared/interfaces/restAPI/analytics/IDeleteConversationsBySessionRest_2_1.js +2 -0
  78. package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IRunKnowledgeConnectorRest_2_0.js +2 -0
  79. package/dist/esm/shared/interfaces/restAPI/simulation/simulationOverview/IGetSimulationOverviewMetricsRestData_2_0.js +2 -0
  80. package/dist/esm/shared/interfaces/restAPI/simulation/simulationOverview/IGetSuccessRateTrendRestData_2_0.js +2 -0
  81. package/dist/esm/shared/interfaces/restAPI/simulation/simulationOverview/IGetUpcomingScheduledRunsRestData_2_0.js +2 -0
  82. package/dist/esm/shared/interfaces/security/ISessionScope.js +2 -0
  83. package/dist/esm/shared/interfaces/user.js +2 -0
  84. package/package.json +1 -1
  85. package/types/index.d.ts +285 -29
package/types/index.d.ts CHANGED
@@ -983,7 +983,9 @@ declare const arrayTResourceType: readonly [
983
983
  "snapshot",
984
984
  "snippet",
985
985
  "aiAgent",
986
- "simulation"
986
+ "simulation",
987
+ "scheduler",
988
+ "personaGeneration"
987
989
  ];
988
990
  export declare type TResourceType = (typeof arrayTResourceType)[number];
989
991
  declare const arrayTChartableResourceType: readonly [
@@ -2857,7 +2859,8 @@ declare const generativeAIModels: readonly [
2857
2859
  "text-embedding-ada-002",
2858
2860
  "luminous-embedding-128",
2859
2861
  "amazon.titan-embed-text-v2:0",
2860
- "Pharia-1-Embedding-4608"
2862
+ "Pharia-1-Embedding-4608",
2863
+ "gemini-embedding-001"
2861
2864
  ];
2862
2865
  /**
2863
2866
  * @openapi
@@ -2883,6 +2886,7 @@ declare const generativeAIModels: readonly [
2883
2886
  * - luminous-extended-control
2884
2887
  * - luminous-embedding-128
2885
2888
  * - Pharia-1-Embedding-4608
2889
+ * - gemini-embedding-001
2886
2890
  * - claude-3-opus-20240229
2887
2891
  * - custom-model
2888
2892
  * - custom-embedding-model
@@ -2963,7 +2967,8 @@ declare const audioPreviewProviders: readonly [
2963
2967
  "microsoft",
2964
2968
  "google",
2965
2969
  "aws",
2966
- "deepgram"
2970
+ "deepgram",
2971
+ "elevenlabs"
2967
2972
  ];
2968
2973
  export declare type TAudioPreviewProvider = typeof audioPreviewProviders[number];
2969
2974
  /**
@@ -3104,9 +3109,11 @@ export interface IVoiceGateway2RecognizerParams {
3104
3109
  asrTimeout?: number;
3105
3110
  nuanceOptions?: TVoiceGateway2NuanceOptions;
3106
3111
  deepgramOptions?: TVoiceGateway2DeepgramOptions;
3112
+ deepgramfluxOptions?: TVoiceGateway2DeepgramfluxOptions;
3107
3113
  ibmOptions?: TVoiceGateway2IbmOptions;
3108
3114
  nvidiaOptions?: TVoiceGateway2NvidiaOptions;
3109
3115
  sonioxOptions?: TVoiceGateway2SonioxOptions;
3116
+ speechmaticsOptions?: TVoiceGateway2SpeechmaticsOptions;
3110
3117
  openaiOptions?: TVoiceGateway2OpenaiOptions;
3111
3118
  model?: string;
3112
3119
  }
@@ -3166,6 +3173,53 @@ export declare type TVoiceGateway2DeepgramOptions = {
3166
3173
  vadTurnoff?: number;
3167
3174
  tag?: string;
3168
3175
  };
3176
+ export declare type TVoiceGateway2DeepgramfluxOptions = {
3177
+ apiKey?: string;
3178
+ keywords?: string[];
3179
+ endpointing?: number | boolean;
3180
+ endOfTurnThreshold?: number;
3181
+ endOfTurnTimeoutMs?: number;
3182
+ };
3183
+ export declare type TVoiceGateway2SpeechmaticsOptions = {
3184
+ transcription_config?: {
3185
+ language?: string;
3186
+ additional_vocab?: string[];
3187
+ diarization?: string;
3188
+ speaker_diarization_config?: {
3189
+ speaker_sensitivity?: number;
3190
+ max_speakers?: number;
3191
+ };
3192
+ enable_partials?: boolean;
3193
+ max_delay?: number;
3194
+ max_delay_mode?: "fixed" | "flexible";
3195
+ output_locale?: string;
3196
+ punctuation_overrides?: {
3197
+ permitted_marks?: string[];
3198
+ sensitivity?: number;
3199
+ };
3200
+ operating_point?: string;
3201
+ enable_entities?: boolean;
3202
+ audio_filtering_config?: {
3203
+ volume_threshold: number;
3204
+ };
3205
+ transcript_filtering_config?: {
3206
+ remove_disfluencies: boolean;
3207
+ };
3208
+ };
3209
+ translation_config?: {
3210
+ target_languages: string[];
3211
+ enable_partials?: boolean;
3212
+ };
3213
+ audio_events_config?: {
3214
+ types?: string[];
3215
+ };
3216
+ endpointing?: number;
3217
+ };
3218
+ export declare type TVoiceGateway2OpenaiOptions = {
3219
+ model?: string;
3220
+ apiKey?: string;
3221
+ endpointing?: number;
3222
+ };
3169
3223
  export declare type TVoiceGateway2NvidiaOptions = {
3170
3224
  rivaUri?: string;
3171
3225
  maxAlternatives?: number;
@@ -3184,10 +3238,6 @@ export declare type TVoiceGateway2SonioxOptions = {
3184
3238
  metadata?: object;
3185
3239
  storage?: object;
3186
3240
  };
3187
- export declare type TVoiceGateway2OpenaiOptions = {
3188
- model?: string;
3189
- apiKey?: string;
3190
- };
3191
3241
  export declare type TVoiceGateway2IbmOptions = {
3192
3242
  sttApiKey?: string;
3193
3243
  sttRegion?: string;
@@ -3427,6 +3477,9 @@ export interface ICallEventFailoverSettings {
3427
3477
  deepgramEndpointing?: boolean;
3428
3478
  deepgramEndpointingValue?: number;
3429
3479
  dialTranscribeDeepgramTier?: string;
3480
+ deepgramfluxEndpointing?: boolean;
3481
+ deepgramfluxEndOfTurnThreshold?: number;
3482
+ deepgramfluxEndOfTurnTimeoutMs?: number;
3430
3483
  mediaPath?: TVoiceGateway2MediaPath;
3431
3484
  anchorMedia?: boolean;
3432
3485
  }
@@ -9519,8 +9572,8 @@ export interface IOutputEventPayload {
9519
9572
  disableSensitiveLogging?: boolean;
9520
9573
  }
9521
9574
  export interface IOutputEventMetadata {
9522
- flowReferenceId: string;
9523
- outputType: "node" | "intent";
9575
+ flowReferenceId?: string;
9576
+ outputType?: "node" | "intent";
9524
9577
  nodeLabel?: string;
9525
9578
  nodeType?: string;
9526
9579
  nodeId?: string;
@@ -9528,6 +9581,7 @@ export interface IOutputEventMetadata {
9528
9581
  intentId?: string;
9529
9582
  intentReferenceId?: string;
9530
9583
  intent?: string;
9584
+ isMockedCodeExecution?: boolean;
9531
9585
  }
9532
9586
  export interface ISwitchedFlowEventPayload {
9533
9587
  fromFlowId: string;
@@ -9766,6 +9820,13 @@ export interface ILoadAiAgentNodeParams extends INodeFunctionBaseParams {
9766
9820
  keyWarning: string;
9767
9821
  };
9768
9822
  }
9823
+ export interface IAiAgentV2TurnReply {
9824
+ response?: string;
9825
+ toolCalls?: Array<{
9826
+ arguments?: Record<string, any>;
9827
+ name?: string;
9828
+ }>;
9829
+ }
9769
9830
  export interface ISendTileUpdateParams extends INodeFunctionBaseParams {
9770
9831
  tile: any;
9771
9832
  }
@@ -9910,6 +9971,10 @@ export interface IQuestionNodeSharedConfig extends INodeWithAiRephraseConfig {
9910
9971
  escalateAnswersSendOnQueueEvent: boolean;
9911
9972
  escalateAnswersSendOnActiveEvent: boolean;
9912
9973
  escalateIntentsAction: "none" | "goto" | "execute" | "skip" | "text" | "handover";
9974
+ escalateIntentsHandoverProvider: THandoverProvider | "legacyEndpoint" | null;
9975
+ escalateIntentsHandoverProviderConfig: Record<string, any>;
9976
+ escalateAnswersHandoverProvider: THandoverProvider | "legacyEndpoint" | null;
9977
+ escalateAnswersHandoverProviderConfig: Record<string, any>;
9913
9978
  escalateIntentsValidIntents: string[];
9914
9979
  escalateIntentsThreshold: number;
9915
9980
  escalateIntentsGotoTarget: string;
@@ -10206,6 +10271,13 @@ export interface ISessionStateWithoutMeta {
10206
10271
  mcpToolNode?: string;
10207
10272
  mcpHeaders?: Record<string, string>;
10208
10273
  timeout?: number;
10274
+ authType?: "none" | "oAuth2";
10275
+ oAuth2Connection?: {
10276
+ oAuth2Url: string;
10277
+ oAuth2ClientId: string;
10278
+ oAuth2ClientSecret: string;
10279
+ oAuth2Scope?: string;
10280
+ };
10209
10281
  };
10210
10282
  tokenUsage?: TSessionUsageInformation;
10211
10283
  }
@@ -10524,6 +10596,14 @@ export interface IAzureOpenAIProviderOauth2Fields {
10524
10596
  additionalHeaderName?: string;
10525
10597
  additionalHeaderValue?: string;
10526
10598
  }
10599
+ export interface IGoogleVertexAIProviderFields {
10600
+ googleCredentialsFileName: string;
10601
+ credentialsStringified: string;
10602
+ fileToken: string;
10603
+ clientEmail: string;
10604
+ privateKey: string;
10605
+ projectId: string;
10606
+ }
10527
10607
  export interface IAlephAlphaProviderFields {
10528
10608
  token: string;
10529
10609
  }
@@ -10569,7 +10649,7 @@ export interface ILLMProviderMeta extends IAzureOpenAIMeta {
10569
10649
  }
10570
10650
  export interface ISearchLLMCredentials {
10571
10651
  provider: TGenerativeAIProviders;
10572
- connectionFields: IAzureOpenAIProviderFieldsV2 | IProviderOauth2Fields | IAwsBedrockProviderFields | IAwsBedrockIamProviderFields | IAlephAlphaProviderFields;
10652
+ connectionFields: IAzureOpenAIProviderFieldsV2 | IProviderOauth2Fields | IAwsBedrockProviderFields | IAwsBedrockIamProviderFields | IAlephAlphaProviderFields | IGoogleVertexAIProviderFields;
10573
10653
  providerMetaData: ILLMProviderMeta;
10574
10654
  }
10575
10655
  export interface ISearchTagsData {
@@ -11278,10 +11358,24 @@ export interface IEmailServiceOAuth2ConnectionFields {
11278
11358
  expiryDate?: string;
11279
11359
  accessUrl?: string;
11280
11360
  }
11361
+ export interface IEmailServiceOAuth2ClientCredentialsConnectionFields {
11362
+ tokenEndpointUrl: string;
11363
+ clientId: string;
11364
+ clientSecret: string;
11365
+ scope?: string;
11366
+ user: string;
11367
+ }
11368
+ export interface IEmailServiceOAuth2JwtBearerConnectionFields {
11369
+ tokenEndpointUrl: string;
11370
+ jwt: string;
11371
+ user: string;
11372
+ }
11281
11373
  export interface ISMTPEmailConnection {
11282
11374
  smtpType: "otherSmtp" | "126" | "163" | "1und1" | "AOL" | "DebugMail" | "DynectEmail" | "FastMail" | "GandiMail" | "Gmail" | "Godaddy" | "GodaddyAsia" | "GodaddyEurope" | "hot.ee" | "Hotmail" | "iCloud" | "mail.ee" | "Mail.ru" | "Maildev" | "Mailgun" | "Mailjet" | "Mailosaur" | "Mandrill" | "Naver" | "OpenMailBox" | "Outlook365" | "Postmark" | "QQ" | "QQex" | "SendCloud" | "SendGrid" | "SendinBlue" | "SendPulse" | "SES" | "SES-US-EAST-1" | "SES-US-WEST-2" | "SES-EU-WEST-1" | "Sparkpost" | "Yahoo" | "Yandex" | "Zoho" | "qiye.aliyun";
11283
- authType: "basic" | "oauth2";
11375
+ authType: "basic" | "oauth2" | "oauth2_client_credentials" | "oauth2_jwt_bearer";
11284
11376
  oAuth2Connection?: IEmailServiceOAuth2ConnectionFields;
11377
+ oAuth2ClientCredentialsConnection?: IEmailServiceOAuth2ClientCredentialsConnectionFields;
11378
+ oAuth2JwtBearerConnection?: IEmailServiceOAuth2JwtBearerConnectionFields;
11285
11379
  connection: ISMTPConnectionFields;
11286
11380
  serviceConnection: IEmailServiceConnectionFields;
11287
11381
  organisationId?: string;
@@ -11661,6 +11755,13 @@ export interface INodeExecutionAPI extends Omit<IActions, "parseCognigyScriptCon
11661
11755
  timeout: number;
11662
11756
  cacheTools: boolean;
11663
11757
  mcpHeaders?: Record<string, string>;
11758
+ authType?: "none" | "oAuth2";
11759
+ oAuth2Connection?: {
11760
+ oAuth2Url: string;
11761
+ oAuth2ClientId: string;
11762
+ oAuth2ClientSecret: string;
11763
+ oAuth2Scope?: string;
11764
+ };
11664
11765
  }) => Promise<{
11665
11766
  tools: any[];
11666
11767
  fromCache: boolean;
@@ -11673,10 +11774,26 @@ export interface INodeExecutionAPI extends Omit<IActions, "parseCognigyScriptCon
11673
11774
  mcpServerUrl: string;
11674
11775
  timeout: number;
11675
11776
  mcpHeaders?: Record<string, string>;
11777
+ authType?: "none" | "oAuth2";
11778
+ oAuth2Connection?: {
11779
+ oAuth2Url: string;
11780
+ oAuth2ClientId: string;
11781
+ oAuth2ClientSecret: string;
11782
+ oAuth2Scope?: string;
11783
+ };
11676
11784
  }) => Promise<{
11677
11785
  [x: string]: unknown;
11678
11786
  }>;
11679
11787
  sendTrackGoal: (payload: IGoalAnalyticsPayload) => Promise<void>;
11788
+ /**
11789
+ * POC for AI Agent V2 service
11790
+ */
11791
+ sendAiAgentV2Turn: (params: {
11792
+ agentReferenceId: string;
11793
+ userInput: string;
11794
+ conversationHistory: string;
11795
+ openaiApiKey: string;
11796
+ }) => Promise<IAiAgentV2TurnReply>;
11680
11797
  }
11681
11798
  export interface INodeExecutionCognigyObject extends IExecutionObjects {
11682
11799
  api: INodeExecutionAPI;
@@ -12167,6 +12284,9 @@ export interface IKnowledgeDescriptor {
12167
12284
  * extension:
12168
12285
  * type: string
12169
12286
  * description: The extension name that this knowledge descriptor belongs to
12287
+ * version:
12288
+ * type: string
12289
+ * description: The version of the extension that this knowledge descriptor belongs to
12170
12290
  * extensionImg:
12171
12291
  * type: string
12172
12292
  * description: The image URL of the extension that this knowledge descriptor belongs to
@@ -12174,6 +12294,7 @@ export interface IKnowledgeDescriptor {
12174
12294
  export interface IKnowledgeDescriptorAggregatedItem extends IKnowledgeDescriptor {
12175
12295
  extension: string;
12176
12296
  extensionImg: string;
12297
+ version: string;
12177
12298
  }
12178
12299
  export declare type IExtensionType = "nodes";
12179
12300
  export interface IExtension extends IExtensionData, IExtensionNodePackage {
@@ -12485,16 +12606,10 @@ export interface IHandoverServiceProperties {
12485
12606
  value: "basic";
12486
12607
  };
12487
12608
  }
12488
- export interface IHandoverProviderProperties {
12489
- key: "basicActionTile";
12490
- type: "cognigyText";
12491
- label: "UI__NODE_EDITOR__ASSIST_INFO__ACTION_TITLE__LABEL";
12492
- description: "UI__NODE_EDITOR__ASSIST_INFO__ACTION_TITLE__DESCRIPTION";
12493
- defaultValue: "";
12494
- condition: {
12495
- key: "cardType";
12496
- value: "basic";
12497
- };
12609
+ export declare type HandoverProviderPropertyValue = string | boolean;
12610
+ export interface IHandoverProviderProperty {
12611
+ key: string;
12612
+ value: HandoverProviderPropertyValue;
12498
12613
  }
12499
12614
  export interface IRCEHandoverSettings {
12500
12615
  /**
@@ -12690,7 +12805,7 @@ export interface IHandoverProvider {
12690
12805
  lastChanged: number;
12691
12806
  createdBy: TMongoId;
12692
12807
  lastChangedBy: TMongoId;
12693
- properties: IHandoverProviderProperties[];
12808
+ properties: IHandoverProviderProperty[];
12694
12809
  settings: IHandoverProviderSettings;
12695
12810
  }
12696
12811
  export interface IGraphHandoverProvider extends IHandoverProvider {
@@ -12741,8 +12856,8 @@ export interface ISimulation extends IProjectMetadata {
12741
12856
  export interface IGraphSimulation extends ISimulation {
12742
12857
  type: "simulation";
12743
12858
  }
12744
- export declare type IGraphResourceWithReferenceId = IGraphAgentAssistConfig | IGraphConnection | IGraphFlow | IGraphFunction | IGraphLargeLanguageModel | IGraphLexicon | IGraphLocale | IGraphNLUConnector | IGraphSnippet | IGraphAgentAssistConfig | IGraphKnowledgeStore | IGraphGoal | IGraphHandoverProvider | IGraphAiAgent;
12745
- export declare type IGraphResourceWithoutReferenceId = IGraphEndpoint | IGraphExtension | IGraphFile | IGraphPlaybook | IGraphSimulation;
12859
+ export declare type IGraphResourceWithReferenceId = IGraphAgentAssistConfig | IGraphConnection | IGraphFlow | IGraphFunction | IGraphLargeLanguageModel | IGraphLexicon | IGraphLocale | IGraphNLUConnector | IGraphSnippet | IGraphAgentAssistConfig | IGraphKnowledgeStore | IGraphGoal | IGraphHandoverProvider | IGraphAiAgent | IGraphSimulation;
12860
+ export declare type IGraphResourceWithoutReferenceId = IGraphEndpoint | IGraphExtension | IGraphFile | IGraphPlaybook;
12746
12861
  export declare type IGraphResource = IGraphResourceWithReferenceId | IGraphResourceWithoutReferenceId;
12747
12862
  /**
12748
12863
  * @openapi
@@ -17020,6 +17135,13 @@ export interface IVoiceConfigParams {
17020
17135
  deepgramEndpointing: boolean;
17021
17136
  deepgramEndpointingValue: number;
17022
17137
  deepgramSmartFormatting: boolean;
17138
+ deepgramfluxEndpointing: boolean;
17139
+ deepgramfluxEndOfTurnThreshold: number;
17140
+ deepgramfluxEndOfTurnTimeoutMs: number;
17141
+ speechmaticsEndpointing: boolean;
17142
+ speechmaticsEndpointingValue: number;
17143
+ openaiEndpointing: boolean;
17144
+ openaiEndpointingValue: number;
17023
17145
  atmosphereAction: TVoiceGateway2DubActionType;
17024
17146
  atmosphereUrl: string;
17025
17147
  atmosphereLoop: boolean;
@@ -17096,6 +17218,9 @@ export interface IVoiceConfigParams {
17096
17218
  deepgramEndpointing: boolean;
17097
17219
  deepgramEndpointingValue: number;
17098
17220
  deepgramSmartFormatting: boolean;
17221
+ deepgramfluxEndpointing: boolean;
17222
+ deepgramfluxEndOfTurnThreshold: number;
17223
+ deepgramfluxEndOfTurnTimeoutMs: number;
17099
17224
  }
17100
17225
  export interface ISessionSpeechParams extends INodeFunctionBaseParams {
17101
17226
  config: IVoiceConfigParams;
@@ -17515,6 +17640,13 @@ export interface ITransferNodeParams extends INodeFunctionBaseParams {
17515
17640
  deepgramEndpointing: boolean;
17516
17641
  deepgramEndpointingValue: number;
17517
17642
  deepgramSmartFormatting: boolean;
17643
+ deepgramfluxEndpointing: boolean;
17644
+ deepgramfluxEndOfTurnThreshold: number;
17645
+ deepgramfluxEndOfTurnTimeoutMs: number;
17646
+ speechmaticsEndpointing: boolean;
17647
+ speechmaticsEndpointingValue: number;
17648
+ openaiEndpointing: boolean;
17649
+ openaiEndpointingValue: number;
17518
17650
  amdEnabled: boolean;
17519
17651
  amdRedirectOnMachineDetected: boolean;
17520
17652
  amdRedirectText: string;
@@ -18136,7 +18268,7 @@ export interface IGoogleGeminiMeta_2_0 {
18136
18268
  * properties:
18137
18269
  * customModel:
18138
18270
  * type: string
18139
- * example: claude-3-opus-20240229
18271
+ * example: claude-opus-4-0
18140
18272
  * description: The custom model name. This does not work with embedding models
18141
18273
  * azureOpenAI:
18142
18274
  * type: object
@@ -18579,6 +18711,7 @@ export interface IKnowledgeSourceMetaData {
18579
18711
  type: string;
18580
18712
  };
18581
18713
  contentHashOrTimestamp?: string;
18714
+ externalIdentifier?: string;
18582
18715
  }
18583
18716
  /**
18584
18717
  * @openapi
@@ -18718,7 +18851,7 @@ export interface IKnowledgeSource_2_0 {
18718
18851
  metaData: IKnowledgeSourceMetaData;
18719
18852
  data: Record<string, unknown>;
18720
18853
  storeReference: TMongoId;
18721
- connectorReference?: TMongoId;
18854
+ connectorReference?: TMongoId | null;
18722
18855
  projectReference: TMongoId;
18723
18856
  organisationReference: TMongoId;
18724
18857
  createdAt: number;
@@ -19140,6 +19273,14 @@ export interface IUpdateKnowledgeConnectorRestData_2_0 extends IUpdateKnowledgeC
19140
19273
  }
19141
19274
  export interface IUpdateKnowledgeConnectorRestReturnValue_2_0 {
19142
19275
  }
19276
+ export interface IRunKnowledgeConnectorRestDataParams_2_0 {
19277
+ knowledgeStoreId: string;
19278
+ connectorId: string;
19279
+ }
19280
+ export interface IRunKnowledgeConnectorRestData_2_0 extends IRunKnowledgeConnectorRestDataParams_2_0 {
19281
+ }
19282
+ export interface IRunKnowledgeConnectorRestReturnValue_2_0 extends ICreatedTask_2_0 {
19283
+ }
19143
19284
  /**
19144
19285
  * @openapi
19145
19286
  *
@@ -19378,7 +19519,7 @@ export interface IHandoverProvider_2_0 {
19378
19519
  lastChangedAt: number;
19379
19520
  createdBy: TMongoId;
19380
19521
  lastChangedBy: TMongoId;
19381
- properties: IHandoverProviderProperties[];
19522
+ properties: IHandoverProviderProperty[];
19382
19523
  settings: IHandoverProviderSettings_2_0;
19383
19524
  }
19384
19525
  export interface IHandoverProviderSettings_2_0 {
@@ -19859,6 +20000,7 @@ export interface ResourcesAPIGroup_2_0 {
19859
20000
  readKnowledgeConnector: TRestAPIOperation<IReadKnowledgeConnectorRestData_2_0, IReadKnowledgeConnectorRestReturnValue_2_0>;
19860
20001
  updateKnowledgeConnector: TRestAPIOperation<IUpdateKnowledgeConnectorRestData_2_0, IUpdateKnowledgeConnectorRestReturnValue_2_0>;
19861
20002
  deleteKnowledgeConnector: TRestAPIOperation<IDeleteKnowledgeConnectorRestData_2_0, IDeleteKnowledgeConnectorRestReturnValue_2_0>;
20003
+ runKnowledgeConnector: TRestAPIOperation<IRunKnowledgeConnectorRestData_2_0, IRunKnowledgeConnectorRestReturnValue_2_0>;
19862
20004
  uploadResumable: TTusAPIOperation<IUploadResumableRestData_2_0, IUploadResumableRestReturnValue_2_0>;
19863
20005
  generateNluScores: TRestAPIOperation<IGenerateNluScoresRestData_2_0, IGenerateNluScoresRestReturnValue_2_0>;
19864
20006
  generateDesignTimeLLMOutput: TRestAPIOperation<IGenerateDesignTimeLLMOutputRestData_2_0, IGenerateDesignTimeLLMOutputRestReturnValue_2_0>;
@@ -21920,7 +22062,20 @@ declare const actionTypes: readonly [
21920
22062
  "loginFailed",
21921
22063
  "loginError",
21922
22064
  "unauthorized",
21923
- "disableCreditCardRedaction"
22065
+ "disableCreditCardRedaction",
22066
+ "runKnowledgeConnector",
22067
+ "createSimulation",
22068
+ "updateSimulation",
22069
+ "deleteSimulation",
22070
+ "scheduleSimulation",
22071
+ "cloneSimulation",
22072
+ "createScheduler",
22073
+ "updateScheduler",
22074
+ "deleteScheduler",
22075
+ "generatePersonaPackages",
22076
+ "regeneratePersonaField",
22077
+ "bulkGeneratePersonaPackages",
22078
+ "createScenarioFromTranscript"
21924
22079
  ];
21925
22080
  export declare type TActionType = typeof actionTypes[number];
21926
22081
  /**
@@ -23392,6 +23547,12 @@ export interface ICreateSystemMessageRestReturnValue_2_0 {
23392
23547
  * type: string
23393
23548
  * password:
23394
23549
  * type: string
23550
+ * cxoneEmail:
23551
+ * type: string
23552
+ * description: "The email address of the CXOne user, only required for NiCE CXOne users"
23553
+ * cxoneId:
23554
+ * type: string
23555
+ * description: "The CXOne ID of the user, only required for NiCE CXOne users"
23395
23556
  * organisation:
23396
23557
  * $ref: '#/components/schemas/TMongoId'
23397
23558
  * roles:
@@ -23414,6 +23575,12 @@ export interface ICreateSystemMessageRestReturnValue_2_0 {
23414
23575
  * type: boolean
23415
23576
  * disabled:
23416
23577
  * type: boolean
23578
+ * cxoneEmail:
23579
+ * type: string
23580
+ * description: "The email address of the CXOne user, only required for NiCE CXOne users"
23581
+ * cxoneId:
23582
+ * type: string
23583
+ * description: "The CXOne ID of the user, only required for NiCE CXOne users"
23417
23584
  *
23418
23585
  * IManagementUserAdditional_2_0:
23419
23586
  * type: object
@@ -23438,6 +23605,10 @@ export interface IUserManagement_2_0 {
23438
23605
  id: string;
23439
23606
  /** The name of the user */
23440
23607
  name: string;
23608
+ /** The email address of the CXOne user, only required for NiCE CXOne users */
23609
+ cxoneEmail?: string;
23610
+ /** The CXOne ID of the user, only required for NiCE CXOne users */
23611
+ cxoneId?: string;
23441
23612
  /** The organisation id of the user */
23442
23613
  organisation: string;
23443
23614
  /** The org-wide roles assigned to this user */
@@ -23464,6 +23635,12 @@ export interface IUserManagement_2_0 {
23464
23635
  * type: string
23465
23636
  * name:
23466
23637
  * type: string
23638
+ * cxoneEmail:
23639
+ * type: string
23640
+ * description: "The email address of the CXOne user, only required for NiCE CXOne users"
23641
+ * cxoneId:
23642
+ * type: string
23643
+ * description: "The CXOne ID of the user, only required for NiCE CXOne users"
23467
23644
  * - $ref: '#/components/schemas/IEntityMeta'
23468
23645
  */
23469
23646
  export interface IUserManagementIndexItem_2_0 {
@@ -23473,6 +23650,10 @@ export interface IUserManagementIndexItem_2_0 {
23473
23650
  id: string;
23474
23651
  /** The name of the user */
23475
23652
  name: string;
23653
+ /** The email address of the CXOne user, only required for NiCE CXOne users */
23654
+ cxoneEmail?: string;
23655
+ /** The CXOne ID of the user, only required for NiCE CXOne users */
23656
+ cxoneId?: string;
23476
23657
  /** The organisation id the user belongs to */
23477
23658
  organisation: TMongoId;
23478
23659
  createdAt: number;
@@ -24283,11 +24464,16 @@ export interface IIndexSimulationRunBatchesRestDataQuery_2_0 {
24283
24464
  sort?: string;
24284
24465
  next?: string;
24285
24466
  previous?: string;
24467
+ scenariosIds?: string[];
24468
+ status?: string;
24469
+ timespan?: string;
24470
+ timezone?: string;
24471
+ endPointType?: string;
24286
24472
  }
24287
24473
  export interface IIndexSimulationRunBatchesRestData_2_0 extends IIndexSimulationRunBatchesRestDataQuery_2_0 {
24288
24474
  }
24289
24475
  export interface IIndexSimulationRunBatchesRestReturnValue_2_0 {
24290
- simulationRunBatches: ISimulationRunBatchRest_2_0[];
24476
+ data: ISimulationRunBatchRest_2_0[];
24291
24477
  }
24292
24478
  export interface IGetAllSimulationRunBatchesRestDataQuery_2_0 {
24293
24479
  projectId: string;
@@ -24633,6 +24819,73 @@ export interface IStopSimulationRunBatchRestData_2_0 extends IStopSimulationRunB
24633
24819
  export interface IStopSimulationRunBatchRestReturnValue_2_0 {
24634
24820
  simulationRunBatchId: ISimulationRunBatchRest_2_0;
24635
24821
  }
24822
+ export interface IGetSimulationOverviewMetricsRestDataQuery_2_0 {
24823
+ projectId: string;
24824
+ scenarioIds?: string[];
24825
+ timeWindow?: "7d" | "30d" | "3m";
24826
+ }
24827
+ export interface IGetSimulationOverviewMetricsRestData_2_0 extends IGetSimulationOverviewMetricsRestDataQuery_2_0 {
24828
+ }
24829
+ export interface IGetSimulationOverviewMetricsRestReturnValue_2_0 {
24830
+ totalScenarios: number;
24831
+ totalSimulations: number;
24832
+ avgSuccessRate: number;
24833
+ scheduledRuns: number;
24834
+ }
24835
+ export interface IGetSuccessRateTrendRestDataQuery_2_0 {
24836
+ projectId: string;
24837
+ scenarioIds?: string[];
24838
+ timeWindow?: "7d" | "30d" | "3m";
24839
+ }
24840
+ export interface IGetSuccessRateTrendRestData_2_0 extends IGetSuccessRateTrendRestDataQuery_2_0 {
24841
+ }
24842
+ export interface IGetSuccessRateTrendRestReturnValue_2_0 {
24843
+ data: Array<{
24844
+ date: string;
24845
+ totalRuns: number;
24846
+ successfulRuns: number;
24847
+ failedRuns: number;
24848
+ successRate: number;
24849
+ successPercentage: number;
24850
+ }>;
24851
+ }
24852
+ export interface IGetUpcomingScheduledRunsRestDataQuery_2_0 {
24853
+ projectId: string;
24854
+ scenarioIds?: string[];
24855
+ limit?: number;
24856
+ }
24857
+ export interface IGetUpcomingScheduledRunsRestData_2_0 extends IGetUpcomingScheduledRunsRestDataQuery_2_0 {
24858
+ }
24859
+ export interface IGetUpcomingScheduledRunsRestReturnValue_2_0 {
24860
+ data: Array<{
24861
+ _id: string;
24862
+ id: string;
24863
+ simulationReference: string;
24864
+ scenarioName?: string;
24865
+ runName?: string;
24866
+ nextScheduledRun: string;
24867
+ frequency: string;
24868
+ time?: string;
24869
+ enableSchedule?: boolean;
24870
+ numberOfRuns?: number;
24871
+ cronScheduler?: string;
24872
+ emailNotifications?: string[];
24873
+ projectReference?: string;
24874
+ organisationReference?: string;
24875
+ createdBy?: string;
24876
+ lastChangedBy?: string;
24877
+ createdAt?: number;
24878
+ lastChanged?: number;
24879
+ runConfig?: {
24880
+ flowReferenceId?: string;
24881
+ localeReferenceId?: string;
24882
+ entrypoint?: string;
24883
+ largeLanguageModelReferenceId?: string;
24884
+ finalPing?: number;
24885
+ enableMocking?: boolean;
24886
+ };
24887
+ }>;
24888
+ }
24636
24889
  declare enum ESchedulerFrequencyRest_2_0 {
24637
24890
  DAILY = "daily",
24638
24891
  EVERY_THREE_DAYS = "every three days",
@@ -24737,6 +24990,9 @@ export interface SimulationAPIGroup_2_0 {
24737
24990
  regeneratePersonaField: TRestAPIOperation<IRegeneratePersonaFieldRestData_2_0, IRegeneratePersonaFieldRestReturnValue_2_0>;
24738
24991
  generateBulkPersona: TRestAPIOperation<IGenerateBulkPersonaRestData_2_0, IGenerateBulkPersonaRestReturnValue_2_0>;
24739
24992
  generatePersonaFromTranscript: TRestAPIOperation<IGeneratePersonaFromTranscriptRestData_2_0, IGeneratePersonaFromTranscriptRestReturnValue_2_0>;
24993
+ getSimulationOverviewMetrics: TRestAPIOperation<IGetSimulationOverviewMetricsRestData_2_0, IGetSimulationOverviewMetricsRestReturnValue_2_0>;
24994
+ getSuccessRateTrend: TRestAPIOperation<IGetSuccessRateTrendRestData_2_0, IGetSuccessRateTrendRestReturnValue_2_0>;
24995
+ getUpcomingScheduledRuns: TRestAPIOperation<IGetUpcomingScheduledRunsRestData_2_0, IGetUpcomingScheduledRunsRestReturnValue_2_0>;
24740
24996
  getScheduler: TRestAPIOperation<IGetSchedulerRestData_2_0, IGetSchedulerRestReturnValue_2_0>;
24741
24997
  createScheduler: TRestAPIOperation<ICreateSchedulerRestData_2_0, ICreateSchedulerRestReturnValue_2_0>;
24742
24998
  updateScheduler: TRestAPIOperation<IUpdateSchedulerRestData_2_0, IUpdateSchedulerRestReturnValue_2_0>;