@cognigy/rest-api-client 2025.10.0 → 2025.12.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 (73) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/build/RestAPIClient.js +7 -0
  3. package/build/apigroups/SimulationAPIGroup_2_0.js +58 -0
  4. package/build/apigroups/index.js +3 -1
  5. package/build/shared/charts/descriptors/index.js +2 -1
  6. package/build/shared/charts/descriptors/message/question/question.js +13 -29
  7. package/build/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +90 -64
  8. package/build/shared/charts/descriptors/service/aiAgent/aiAgentJobMCPTool.js +2 -2
  9. package/build/shared/charts/descriptors/service/aiAgent/helpers/createSystemMessage.js +22 -8
  10. package/build/shared/charts/descriptors/service/aiOpsCenterConnection.js +12 -0
  11. package/build/shared/charts/descriptors/service/handoverV2.js +0 -6
  12. package/build/shared/charts/descriptors/service/index.js +3 -1
  13. package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +2 -2
  14. package/build/shared/constants.js +0 -1
  15. package/build/shared/interfaces/IOrganisation.js +32 -8
  16. package/build/shared/interfaces/messageAPI/endpoints.js +12 -2
  17. package/build/shared/interfaces/resources/IAuditEvent.js +3 -0
  18. package/build/shared/interfaces/resources/ILargeLanguageModel.js +1 -0
  19. package/build/shared/interfaces/resources/TResourceType.js +2 -0
  20. package/build/shared/interfaces/resources/TRestChannelType.js +5 -0
  21. package/build/shared/interfaces/resources/TWebhookChannelType.js +5 -0
  22. package/build/shared/interfaces/restAPI/opsCenter/observationConfig/IOpsCenterObservationConfig.js +1 -1
  23. package/build/shared/interfaces/restAPI/simulation/simulation/ICreateSimulationRest_2_0.js +3 -0
  24. package/build/shared/interfaces/restAPI/simulation/simulation/IDeleteSimulationRest_2_0.js +3 -0
  25. package/build/shared/interfaces/restAPI/simulation/simulation/IIndexSimulationRest_2_0.js +3 -0
  26. package/build/shared/interfaces/restAPI/simulation/simulation/IReadSimulationRest_2_0.js +3 -0
  27. package/build/shared/interfaces/restAPI/simulation/simulation/IScheduleSimulationRest_2_0.js +3 -0
  28. package/build/shared/interfaces/restAPI/simulation/simulation/ISimulationRest_2_0.js +9 -0
  29. package/build/shared/interfaces/restAPI/simulation/simulation/IUpdateSimulationRest_2_0.js +3 -0
  30. package/build/shared/interfaces/restAPI/simulation/simulationRun/IIndexSimulationRunRest_2_0.js +3 -0
  31. package/build/shared/interfaces/restAPI/simulation/simulationRun/IReadSimulationRunRest_2_0.js +3 -0
  32. package/build/shared/interfaces/restAPI/simulation/simulationRun/ISimulationRunRest_2_0.js +19 -0
  33. package/build/shared/interfaces/restAPI/simulation/simulationRunBatch/IGetAllSimulationRunBatchRest_2_0.js +3 -0
  34. package/build/shared/interfaces/restAPI/simulation/simulationRunBatch/IIndexSimulationRunBatchRest_2_0.js +3 -0
  35. package/build/shared/interfaces/restAPI/simulation/simulationRunBatch/IReadSimulationRunBatchRest_2_0.js +3 -0
  36. package/build/shared/interfaces/restAPI/simulation/simulationRunBatch/ISimulationRunBatchRest_2_0.js +9 -0
  37. package/dist/esm/RestAPIClient.js +7 -0
  38. package/dist/esm/apigroups/SimulationAPIGroup_2_0.js +44 -0
  39. package/dist/esm/apigroups/index.js +1 -0
  40. package/dist/esm/shared/charts/descriptors/index.js +3 -2
  41. package/dist/esm/shared/charts/descriptors/message/question/question.js +13 -29
  42. package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +91 -65
  43. package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJobMCPTool.js +2 -2
  44. package/dist/esm/shared/charts/descriptors/service/aiAgent/helpers/createSystemMessage.js +20 -7
  45. package/dist/esm/shared/charts/descriptors/service/aiOpsCenterConnection.js +9 -0
  46. package/dist/esm/shared/charts/descriptors/service/handoverV2.js +0 -6
  47. package/dist/esm/shared/charts/descriptors/service/index.js +1 -0
  48. package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +2 -2
  49. package/dist/esm/shared/constants.js +0 -1
  50. package/dist/esm/shared/interfaces/IOrganisation.js +32 -8
  51. package/dist/esm/shared/interfaces/messageAPI/endpoints.js +11 -1
  52. package/dist/esm/shared/interfaces/resources/IAuditEvent.js +3 -0
  53. package/dist/esm/shared/interfaces/resources/ILargeLanguageModel.js +1 -0
  54. package/dist/esm/shared/interfaces/resources/TResourceType.js +2 -0
  55. package/dist/esm/shared/interfaces/resources/TRestChannelType.js +5 -0
  56. package/dist/esm/shared/interfaces/resources/TWebhookChannelType.js +5 -0
  57. package/dist/esm/shared/interfaces/restAPI/opsCenter/observationConfig/IOpsCenterObservationConfig.js +1 -1
  58. package/dist/esm/shared/interfaces/restAPI/simulation/simulation/ICreateSimulationRest_2_0.js +2 -0
  59. package/dist/esm/shared/interfaces/restAPI/simulation/simulation/IDeleteSimulationRest_2_0.js +2 -0
  60. package/dist/esm/shared/interfaces/restAPI/simulation/simulation/IIndexSimulationRest_2_0.js +2 -0
  61. package/dist/esm/shared/interfaces/restAPI/simulation/simulation/IReadSimulationRest_2_0.js +2 -0
  62. package/dist/esm/shared/interfaces/restAPI/simulation/simulation/IScheduleSimulationRest_2_0.js +2 -0
  63. package/dist/esm/shared/interfaces/restAPI/simulation/simulation/ISimulationRest_2_0.js +6 -0
  64. package/dist/esm/shared/interfaces/restAPI/simulation/simulation/IUpdateSimulationRest_2_0.js +2 -0
  65. package/dist/esm/shared/interfaces/restAPI/simulation/simulationRun/IIndexSimulationRunRest_2_0.js +2 -0
  66. package/dist/esm/shared/interfaces/restAPI/simulation/simulationRun/IReadSimulationRunRest_2_0.js +2 -0
  67. package/dist/esm/shared/interfaces/restAPI/simulation/simulationRun/ISimulationRunRest_2_0.js +16 -0
  68. package/dist/esm/shared/interfaces/restAPI/simulation/simulationRunBatch/IGetAllSimulationRunBatchRest_2_0.js +2 -0
  69. package/dist/esm/shared/interfaces/restAPI/simulation/simulationRunBatch/IIndexSimulationRunBatchRest_2_0.js +2 -0
  70. package/dist/esm/shared/interfaces/restAPI/simulation/simulationRunBatch/IReadSimulationRunBatchRest_2_0.js +2 -0
  71. package/dist/esm/shared/interfaces/restAPI/simulation/simulationRunBatch/ISimulationRunBatchRest_2_0.js +6 -0
  72. package/package.json +1 -1
  73. package/types/index.d.ts +325 -13
package/types/index.d.ts CHANGED
@@ -958,7 +958,8 @@ declare const arrayTResourceType: readonly [
958
958
  "slotFiller",
959
959
  "snapshot",
960
960
  "snippet",
961
- "aiAgent"
961
+ "aiAgent",
962
+ "simulation"
962
963
  ];
963
964
  export declare type TResourceType = (typeof arrayTResourceType)[number];
964
965
  declare const arrayTChartableResourceType: readonly [
@@ -1614,6 +1615,7 @@ export interface IRestAPIClientVersionConfiguration {
1614
1615
  analytics: "2.0";
1615
1616
  jwt: "2.0";
1616
1617
  opsCenter: "2.0";
1618
+ simulation: "2.0";
1617
1619
  }
1618
1620
  export declare type THttpLib = "axios";
1619
1621
  /**
@@ -1891,7 +1893,8 @@ declare const webhookChannelTypes: readonly [
1891
1893
  "intercom",
1892
1894
  "whatsapp",
1893
1895
  "eightByEight",
1894
- "agentAssistVoice"
1896
+ "agentAssistVoice",
1897
+ "zoomContactCenter"
1895
1898
  ];
1896
1899
  export declare type TWebhookChannelType = typeof webhookChannelTypes[number];
1897
1900
  declare const restChannelTypes: readonly [
@@ -1910,7 +1913,8 @@ declare const restChannelTypes: readonly [
1910
1913
  "amazonLex",
1911
1914
  "genesysBotConnector",
1912
1915
  "niceCXOne",
1913
- "niceCXOneAAH"
1916
+ "niceCXOneAAH",
1917
+ "zoomContactCenter"
1914
1918
  ];
1915
1919
  export declare type TRestChannelType = typeof restChannelTypes[number];
1916
1920
  declare const socketChannelTypes: readonly [
@@ -2554,6 +2558,7 @@ export interface IGraphEndpointDependency {
2554
2558
  * - agentAssistVoice
2555
2559
  * - webchat3
2556
2560
  * - niceCXOneAAH
2561
+ * - zoomContactCenter
2557
2562
  */
2558
2563
  export declare type TChannelType = TWebhookChannelType | TRestChannelType | TSocketChannelType | "inject" | "abstract-rest" | "adminconsole" | "voiceGateway2";
2559
2564
  declare const endpointTypes: readonly [
@@ -2589,7 +2594,8 @@ declare const endpointTypes: readonly [
2589
2594
  "niceCXOne",
2590
2595
  "niceCXOneAAH",
2591
2596
  "agentAssistVoice",
2592
- "webchat3"
2597
+ "webchat3",
2598
+ "zoomContactCenter"
2593
2599
  ];
2594
2600
  export declare type TEndpointType = typeof endpointTypes[number];
2595
2601
  declare const transferTypes: readonly [
@@ -2694,7 +2700,7 @@ export interface IVoiceGatewayEndpointSettings extends IEndpointSessionSettings
2694
2700
  cancelButtonText: string;
2695
2701
  };
2696
2702
  }
2697
- export declare type AnyEndpointSettings = IFacebookEndpointSettings | IWorkplaceEndpointSettings | ISlackEndpointSettings | IGenericEndpointSettings | IAlexaEndpointSettings | IWebchat2EndpointSettings | IWebchat3EndpointSettings | ILineEndpointSettings | ITwilioEndpointSettings | ITwilioSmsEndpointSettings | IIntercomEndpointSettings | IRealtimeEndpointSettings | ISunshineConversationsEndpointSettings | IAvayaEndpointSettings | IUserlikeEndpointSettings | IBandwidthEndpointSettings | IAudioCodesEndpointSettings | IWhatsAppEndpointSettings | IAmazonLexEndpointSettings | IEightByEightEndpointSettings | IMicrosoftBotFrameworkEndpointSettings | IVoiceGatewayEndpointSettings | IGenesysBotConnectorEndpointSettings | INiceCXOneEndpointSettings | INiceCXOneAAHEndpointSettings | IAgentAssistVoiceEndpointSettings | {};
2703
+ export declare type AnyEndpointSettings = IFacebookEndpointSettings | IWorkplaceEndpointSettings | ISlackEndpointSettings | IGenericEndpointSettings | IAlexaEndpointSettings | IWebchat2EndpointSettings | IWebchat3EndpointSettings | ILineEndpointSettings | ITwilioEndpointSettings | ITwilioSmsEndpointSettings | IIntercomEndpointSettings | IRealtimeEndpointSettings | ISunshineConversationsEndpointSettings | IAvayaEndpointSettings | IUserlikeEndpointSettings | IBandwidthEndpointSettings | IAudioCodesEndpointSettings | IWhatsAppEndpointSettings | IAmazonLexEndpointSettings | IEightByEightEndpointSettings | IMicrosoftBotFrameworkEndpointSettings | IVoiceGatewayEndpointSettings | IGenesysBotConnectorEndpointSettings | INiceCXOneEndpointSettings | INiceCXOneAAHEndpointSettings | IAgentAssistVoiceEndpointSettings | IZoomContactCenterEndpointSettings | {};
2698
2704
  export declare type TAvayaVoice = "man" | "woman" | string;
2699
2705
  declare const avayaSttTtsLanguages: readonly [
2700
2706
  "cy-GB",
@@ -4319,6 +4325,9 @@ export interface INiceCXOneEndpointSettings {
4319
4325
  export interface INiceCXOneAAHEndpointSettings {
4320
4326
  niceCXOneAAHConnection: string;
4321
4327
  }
4328
+ export interface IZoomContactCenterEndpointSettings {
4329
+ verifyToken: string;
4330
+ }
4322
4331
  declare const arrayNLUConnectorType_2_0: readonly [
4323
4332
  "alexa",
4324
4333
  "dialogflow",
@@ -8731,6 +8740,7 @@ export interface IOpenAIMeta {
8731
8740
  export interface IOpenAICompatibleMeta {
8732
8741
  customModel: string;
8733
8742
  baseCustomUrl: string;
8743
+ customAuthHeader?: string;
8734
8744
  }
8735
8745
  export interface IAlephAlphaMeta {
8736
8746
  customModel?: string;
@@ -9471,7 +9481,6 @@ export interface IHandoverNodeV2Params extends INodeFunctionBaseParams {
9471
9481
  sendResolveEvent: boolean;
9472
9482
  resolveBehavior: "resetEntrypoint" | "continueEntrypoint";
9473
9483
  allowAgentInject: boolean;
9474
- agentAssistInitMessage: string;
9475
9484
  sendOnQueueEvent: boolean;
9476
9485
  sendOnActiveEvent: boolean;
9477
9486
  getQueuePosition: boolean;
@@ -9717,7 +9726,6 @@ export interface IQuestionNodeSharedConfig extends INodeWithAiRephraseConfig {
9717
9726
  escalateAnswersHandoverEightByEightJSONProps: object;
9718
9727
  escalateAnswersHandoverSendResolveEvent: boolean;
9719
9728
  escalateAnswersHandoverResolveBehavior: "resetEntrypoint" | "continueEntrypoint";
9720
- escalateAnswersAgentAssistInitMessage: string;
9721
9729
  escalateAnswersAllowAgentInject: boolean;
9722
9730
  escalateAnswersSendOnQueueEvent: boolean;
9723
9731
  escalateAnswersSendOnActiveEvent: boolean;
@@ -10640,7 +10648,7 @@ export interface IActions {
10640
10648
  removeFromContext?: (key: string, value: string, mode: string) => void;
10641
10649
  rephraseSentenceWithAI(sentence: string, options: IRephraseSentenceWithAIOptions): Promise<string>;
10642
10650
  rephraseMultipleSentencesWithAI(sentences: string[], options: IRephraseSentenceWithAIOptions): Promise<string[]>;
10643
- requestHandover?: (text: string, cancel: string, userId: string, sessionId: string, requestHandover: string, inputAnalyticsData: IAnalyticsSourceData, handoverVersion?: IHandoverRequestStatus["handoverVersion"], repeatHandoverMessage?: boolean, sendResolveEvent?: boolean, resolveBehavior?: IHandoverRequestStatus["resolveBehavior"], nodeType?: IHandoverRequestStatus["nodeType"], agentAssistInitMessage?: string, providerResponse?: any, sendOnQueueEvent?: boolean, sendOnActiveEvent?: boolean) => void;
10651
+ requestHandover?: (text: string, cancel: string, userId: string, sessionId: string, requestHandover: string, inputAnalyticsData: IAnalyticsSourceData, handoverVersion?: IHandoverRequestStatus["handoverVersion"], repeatHandoverMessage?: boolean, sendResolveEvent?: boolean, resolveBehavior?: IHandoverRequestStatus["resolveBehavior"], nodeType?: IHandoverRequestStatus["nodeType"], providerResponse?: any, sendOnQueueEvent?: boolean, sendOnActiveEvent?: boolean) => void;
10644
10652
  runGenerativeAIPrompt?: (options: IRunGenerativeAIPromptOptions, useCase: TGenerativeAIUseCases, nodeAnalyticsParams?: TNodeAnalyticsParams) => Promise<any>;
10645
10653
  resetContext?: () => object;
10646
10654
  resetFormBrain?: () => Promise<void>;
@@ -10682,7 +10690,7 @@ export interface IActions {
10682
10690
  knowledgeSearch: (data: IKnowledgeSearchData, nodeAnalyticsParams?: TNodeAnalyticsParams) => Promise<IKnowledgeSearchReturnValue>;
10683
10691
  matchPattern: (patternType: IPatternTypes, phrase: string, locale?: string) => IPatternMatchResult;
10684
10692
  getAgentAssistConfigId: () => string;
10685
- getNluEmbeddingCredentials: () => INluEmbeddingCredentials;
10693
+ getNluEmbeddingCredentials: () => Promise<INluEmbeddingCredentials>;
10686
10694
  getMetadata: () => IGetMetaDataActionValue;
10687
10695
  sendTrackGoal: (payload: IGoalAnalyticsPayload) => Promise<void>;
10688
10696
  getEndpointSettings: () => IEndpointSettings;
@@ -17167,6 +17175,7 @@ export interface IOpenAIMeta_2_0 {
17167
17175
  export interface IOpenAICompatibleMeta_2_0 {
17168
17176
  customModel: string;
17169
17177
  baseCustomUrl: string;
17178
+ customAuthHeader?: string;
17170
17179
  }
17171
17180
  export interface IAnthropicMeta_2_0 {
17172
17181
  customModel?: string;
@@ -17330,6 +17339,21 @@ export interface IGoogleGeminiMeta_2_0 {
17330
17339
  * baseCustomUrl:
17331
17340
  * type: string
17332
17341
  * example: https://api.aleph-alpha.com
17342
+ * openAICompatible:
17343
+ * type: object
17344
+ * description: OpenAI compatible provider
17345
+ * properties:
17346
+ * customModel:
17347
+ * type: string
17348
+ * example: luminous-003
17349
+ * description: The custom model name. This does not work with embedding models
17350
+ * baseCustomUrl:
17351
+ * type: string
17352
+ * example: https://own-llm-deployment.company.com/openai/v1
17353
+ * customAuthHeader:
17354
+ * type: string
17355
+ * example: Ocp-Apim-Subscription-Key
17356
+ * description: The api key will be sent via this http header if specified
17333
17357
  *
17334
17358
  * ILargeLanguageModelFields_2_0:
17335
17359
  * allOf:
@@ -20784,7 +20808,10 @@ declare const actionTypes: readonly [
20784
20808
  "updateFlowSettings",
20785
20809
  "optionsResolver",
20786
20810
  "processKnowledgeSourceUrl",
20787
- "processKnowledgeSourceFile"
20811
+ "processKnowledgeSourceFile",
20812
+ "setupObservationConfig",
20813
+ "updateObservationConfig",
20814
+ "resolveAiOpsCenterError"
20788
20815
  ];
20789
20816
  export declare type TActionType = typeof actionTypes[number];
20790
20817
  /**
@@ -20837,7 +20864,7 @@ export declare type TResourceTypeAdditional = "aicopilotconfig" | "apiKey" | "an
20837
20864
  * - $ref: '#/components/schemas/TResourceType'
20838
20865
  * - $ref: '#/components/schemas/TResourceTypeAdditional'
20839
20866
  */
20840
- export declare type TAuditEventChainElementType = TResourceType | TResourceTypeAdditional;
20867
+ export declare type TAuditEventChainElementType = TResourceType | TResourceTypeAdditional | "AiOpsCenterError";
20841
20868
  /***
20842
20869
  * @openapi
20843
20870
  * components:
@@ -22646,13 +22673,18 @@ export interface IIndexOpsCenterErrorsRestReturnValue_2_0 {
22646
22673
  items?: IGetOpsCenterError[];
22647
22674
  }
22648
22675
  declare const notificationChannels: readonly [
22649
- "email"
22676
+ "email",
22677
+ "webhook"
22650
22678
  ];
22651
22679
  export declare type NotificationChannel = (typeof notificationChannels)[number];
22652
22680
  export interface NotificationConfig {
22653
22681
  channel: NotificationChannel;
22654
22682
  /** List of email addresses to send notifications to. */
22655
22683
  addresses: string[];
22684
+ webhook?: {
22685
+ url: string;
22686
+ connectionId: string;
22687
+ };
22656
22688
  }
22657
22689
  export interface AlertingConfig {
22658
22690
  configuredAlerts: {
@@ -22707,7 +22739,282 @@ export interface AIOpsCenterAPIGroup_2_0 {
22707
22739
  indexOpsCenterAlerts: TRestAPIOperation<IIndexOpsCenterAlertsRestData_2_0, IIndexOpsCenterAlertsRestReturnValue_2_0>;
22708
22740
  }
22709
22741
  declare function AIOpsCenterAPIGroup_2_0(instance: Base): AIOpsCenterAPIGroup_2_0;
22710
- export declare type TRestAPIGroupsTypeByConfiguration<T extends IRestAPIClientConfig> = TResourceAPIVersionType<T> & TJWTAuthAPIVersionType<T> & TInsightsAPIVersionType<T> & TMetricsAPIVersionType<T> & TSessionAPIVersionType<T> & TExternalAPIVersionType<T> & TAdministrationAPIVersionType<T> & TManagementAPIVersionType<T> & TAnalyticsAPIVersionType<T> & TAIOpsCenterAPIVersionType<T>;
22742
+ declare enum ESuccessCriterionTypeRest_2_0 {
22743
+ TEXT = "text",
22744
+ GOAL_COMPLETED = "goalCompleted"
22745
+ }
22746
+ export interface ISuccessCriteriaRest_2_0 {
22747
+ type: ESuccessCriterionTypeRest_2_0;
22748
+ params: Record<string, unknown>;
22749
+ }
22750
+ export interface IProjectMetadataRest_2_0 {
22751
+ projectReference: string;
22752
+ organisationReference: string;
22753
+ }
22754
+ export interface ISimulationRest_2_0 extends IProjectMetadataRest_2_0 {
22755
+ id: string;
22756
+ name: string;
22757
+ persona: string;
22758
+ personaName: string;
22759
+ mission: string;
22760
+ successCriteria: ISuccessCriteriaRest_2_0[];
22761
+ maxTurns?: number;
22762
+ timeout?: number;
22763
+ createdAt?: number;
22764
+ createdBy: string;
22765
+ updatedAt?: number;
22766
+ updatedBy: string;
22767
+ lastChanged: number;
22768
+ lastChangedBy?: string;
22769
+ expiresAt?: Date;
22770
+ }
22771
+ export interface IIndexSimulationsRestDataQuery_2_0 {
22772
+ projectId?: string;
22773
+ filter?: number;
22774
+ limit?: number;
22775
+ skip?: number;
22776
+ sort?: string;
22777
+ next?: string;
22778
+ previous?: string;
22779
+ }
22780
+ export interface IIndexSimulationsRestData_2_0 extends IIndexSimulationsRestDataQuery_2_0 {
22781
+ }
22782
+ export interface IIndexSimulationsRestReturnValue_2_0 {
22783
+ data: ISimulationRest_2_0[];
22784
+ pagination: {
22785
+ total: number;
22786
+ limit: number;
22787
+ skip: number;
22788
+ hasMore: boolean;
22789
+ next?: string;
22790
+ previous?: string;
22791
+ };
22792
+ }
22793
+ export interface ICreateSimulationRestData_2_0 {
22794
+ name: string;
22795
+ persona: string;
22796
+ personaName: string;
22797
+ mission: string;
22798
+ successCriteria: ISuccessCriteriaRest_2_0[];
22799
+ maxTurns?: number;
22800
+ timeout?: number;
22801
+ projectReference: string;
22802
+ organisationReference: string;
22803
+ }
22804
+ export interface ICreateSimulationRestReturnValue_2_0 {
22805
+ simulation: ISimulationRest_2_0;
22806
+ }
22807
+ export interface IUpdateSimulationsRestDataQuery_2_0 {
22808
+ projectId: string;
22809
+ }
22810
+ export interface IUpdateSimulationsRestDataParams_2_0 {
22811
+ simulationReference: string;
22812
+ }
22813
+ export interface IUpdateSimulationsRestDataBody_2_0 {
22814
+ name?: string;
22815
+ persona?: string;
22816
+ personaName?: string;
22817
+ mission?: string;
22818
+ successCriteria?: ISuccessCriteriaRest_2_0[];
22819
+ maxTurns?: number;
22820
+ timeout?: number;
22821
+ }
22822
+ export interface IUpdateSimulationRestData_2_0 extends IUpdateSimulationsRestDataQuery_2_0, IUpdateSimulationsRestDataParams_2_0, IUpdateSimulationsRestDataBody_2_0 {
22823
+ }
22824
+ export interface IUpdateSimulationRestReturnValue_2_0 {
22825
+ simulation: ISimulationRest_2_0;
22826
+ }
22827
+ export interface IDeleteSimulationsRestDataQuery_2_0 {
22828
+ projectId: string;
22829
+ }
22830
+ export interface IDeleteSimulationRestData_2_0 extends IDeleteSimulationsRestDataQuery_2_0 {
22831
+ simulationReference: string;
22832
+ }
22833
+ export interface IDeleteSimulationRestReturnValue_2_0 {
22834
+ }
22835
+ export interface IReadSimulationsRestDataQuery_2_0 {
22836
+ projectId: string;
22837
+ }
22838
+ export interface IReadSimulationRestData_2_0 extends IReadSimulationsRestDataQuery_2_0 {
22839
+ simulationReference: string;
22840
+ }
22841
+ export interface IReadSimulationRestReturnValue_2_0 {
22842
+ simulation: ISimulationRest_2_0;
22843
+ }
22844
+ export interface IScheduleSimulationRestDataParams_2_0 {
22845
+ simulationReference: string;
22846
+ }
22847
+ export interface IScheduleSimulationRestDataBody_2_0 {
22848
+ name: string;
22849
+ largeLanguageModelReferenceId: string;
22850
+ runConfig: {
22851
+ flowReferenceId: string;
22852
+ localeReferenceId?: string;
22853
+ entrypoint: string;
22854
+ };
22855
+ projectReference: string;
22856
+ numberOfExecutions: number;
22857
+ }
22858
+ export interface IScheduleSimulationRestData_2_0 extends IScheduleSimulationRestDataParams_2_0, IScheduleSimulationRestDataBody_2_0 {
22859
+ }
22860
+ export interface IScheduleSimulationRestReturnValue_2_0 {
22861
+ simulation: ISimulationRest_2_0;
22862
+ }
22863
+ declare const SimulationRunBatchStatus: readonly [
22864
+ "IN_PROGRESS",
22865
+ "COMPLETED",
22866
+ "FAILED"
22867
+ ];
22868
+ export declare type TSimulationRunBatchStatusRest_2_0 = typeof SimulationRunBatchStatus[number];
22869
+ export interface ISimulationRunBatchRest_2_0 {
22870
+ id: string;
22871
+ name: string;
22872
+ status: TSimulationRunBatchStatusRest_2_0;
22873
+ numberOfExecutions: number;
22874
+ successRate?: number;
22875
+ efficiency?: number;
22876
+ simulationReference: string;
22877
+ projectReference: string;
22878
+ organisationReference: string;
22879
+ runConfig: {
22880
+ flowReferenceId: string;
22881
+ localeReferenceId?: string;
22882
+ entrypoint: string;
22883
+ };
22884
+ createdAt: number;
22885
+ createdBy: string;
22886
+ largeLanguageModelReferenceId: string;
22887
+ updatedAt?: number;
22888
+ completedAt?: number;
22889
+ expiresAt?: Date;
22890
+ }
22891
+ export interface IIndexSimulationRunBatchesRestDataQuery_2_0 {
22892
+ projectId: string;
22893
+ filter?: number;
22894
+ limit?: number;
22895
+ skip?: number;
22896
+ sort?: string;
22897
+ next?: string;
22898
+ previous?: string;
22899
+ }
22900
+ export interface IIndexSimulationRunBatchesRestData_2_0 extends IIndexSimulationRunBatchesRestDataQuery_2_0 {
22901
+ }
22902
+ export interface IIndexSimulationRunBatchesRestReturnValue_2_0 {
22903
+ simulationRunBatches: ISimulationRunBatchRest_2_0[];
22904
+ }
22905
+ export interface IGetAllSimulationRunBatchesRestDataQuery_2_0 {
22906
+ projectId: string;
22907
+ filter?: number;
22908
+ limit?: number;
22909
+ skip?: number;
22910
+ sort?: string;
22911
+ next?: string;
22912
+ previous?: string;
22913
+ }
22914
+ export interface IGetAllSimulationRunBatchesRestData_2_0 extends IGetAllSimulationRunBatchesRestDataQuery_2_0 {
22915
+ simulationReference: string;
22916
+ }
22917
+ export interface IGetAllSimulationRunBatchesRestReturnValue_2_0 {
22918
+ simulationRunBatches: ISimulationRunBatchRest_2_0[];
22919
+ }
22920
+ export interface IReadSimulationRunBatchRestDataQuery_2_0 {
22921
+ projectId: string;
22922
+ }
22923
+ export interface IReadSimulationRunBatchRestData_2_0 extends IReadSimulationRunBatchRestDataQuery_2_0 {
22924
+ simulationReference: string;
22925
+ simulationRunBatchReference: string;
22926
+ }
22927
+ export interface IReadSimulationRunBatchRestReturnValue_2_0 {
22928
+ simulationRunBatch: ISimulationRunBatchRest_2_0;
22929
+ }
22930
+ declare enum ETurnTypeRest_2_0 {
22931
+ INPUT = "input",
22932
+ OUTPUT = "output"
22933
+ }
22934
+ export interface ITurnRest_2_0 {
22935
+ type: ETurnTypeRest_2_0;
22936
+ text: string;
22937
+ data?: Record<string, unknown>;
22938
+ }
22939
+ declare enum ESuccessCriteriaTypeRest_2_0 {
22940
+ TEXT = "text"
22941
+ }
22942
+ export interface ISuccessCriteriaRest_2_0 {
22943
+ type: ESuccessCriteriaTypeRest_2_0;
22944
+ params: {
22945
+ text: string;
22946
+ };
22947
+ }
22948
+ declare enum ESentimentTypeRest_2_0 {
22949
+ POSITIVE = "POSITIVE",
22950
+ NEUTRAL = "NEUTRAL",
22951
+ NEGATIVE = "NEGATIVE"
22952
+ }
22953
+ export interface ISimulationRunRest_2_0 {
22954
+ id: string;
22955
+ organisationReference: string;
22956
+ projectReference: string;
22957
+ simulationReference: string;
22958
+ simulationRunBatchReference: string;
22959
+ sequence: number;
22960
+ largeLanguageModelReferenceId: string;
22961
+ turns: ITurnRest_2_0[];
22962
+ totalTurns: number;
22963
+ successCriteria: ISuccessCriteriaRest_2_0[];
22964
+ metrics: {
22965
+ sentiment: ESentimentTypeRest_2_0;
22966
+ outOfScope: string;
22967
+ efficiency: number;
22968
+ topic: string;
22969
+ success: boolean;
22970
+ };
22971
+ createdAt: number;
22972
+ createdBy: string;
22973
+ duration?: number;
22974
+ expiresAt?: Date;
22975
+ }
22976
+ export interface IIndexSimulationRunsRestDataQuery_2_0 {
22977
+ projectId: string;
22978
+ filter?: number;
22979
+ limit?: number;
22980
+ skip?: number;
22981
+ sort?: string;
22982
+ next?: string;
22983
+ previous?: string;
22984
+ }
22985
+ export interface IIndexSimulationRunsRestData_2_0 extends IIndexSimulationRunsRestDataQuery_2_0 {
22986
+ simulationRunBatchReference: string;
22987
+ simulationReference: string;
22988
+ }
22989
+ export interface IIndexSimulationRunsRestReturnValue_2_0 {
22990
+ simulationRuns: ISimulationRunRest_2_0[];
22991
+ }
22992
+ export interface IReadSimulationRunRestDataQuery_2_0 {
22993
+ projectId: string;
22994
+ }
22995
+ export interface IReadSimulationRunRestData_2_0 extends IReadSimulationRunRestDataQuery_2_0 {
22996
+ simulationRunReference: string;
22997
+ simulationRunBatchReference: string;
22998
+ simulationReference: string;
22999
+ }
23000
+ export interface IReadSimulationRunRestReturnValue_2_0 {
23001
+ simulationRun: ISimulationRunRest_2_0;
23002
+ }
23003
+ export interface SimulationAPIGroup_2_0 {
23004
+ indexSimulations: TRestAPIOperation<IIndexSimulationsRestData_2_0, IIndexSimulationsRestReturnValue_2_0>;
23005
+ createSimulation: TRestAPIOperation<ICreateSimulationRestData_2_0, ICreateSimulationRestReturnValue_2_0>;
23006
+ updateSimulation: TRestAPIOperation<IUpdateSimulationRestData_2_0, IUpdateSimulationRestReturnValue_2_0>;
23007
+ deleteSimulation: TRestAPIOperation<IDeleteSimulationRestData_2_0, IDeleteSimulationRestReturnValue_2_0>;
23008
+ readSimulation: TRestAPIOperation<IReadSimulationRestData_2_0, IReadSimulationRestReturnValue_2_0>;
23009
+ scheduleSimulation: TRestAPIOperation<IScheduleSimulationRestData_2_0, IScheduleSimulationRestReturnValue_2_0>;
23010
+ indexSimulationRunBatches: TRestAPIOperation<IIndexSimulationRunBatchesRestData_2_0, IIndexSimulationRunBatchesRestReturnValue_2_0>;
23011
+ getAllSimulationRunBatches: TRestAPIOperation<IGetAllSimulationRunBatchesRestData_2_0, IGetAllSimulationRunBatchesRestReturnValue_2_0>;
23012
+ readSimulationRunBatch: TRestAPIOperation<IReadSimulationRunBatchRestData_2_0, IReadSimulationRunBatchRestReturnValue_2_0>;
23013
+ indexSimulationRuns: TRestAPIOperation<IIndexSimulationRunsRestData_2_0, IIndexSimulationRunsRestReturnValue_2_0>;
23014
+ readSimulationRun: TRestAPIOperation<IReadSimulationRunRestData_2_0, IReadSimulationRunRestReturnValue_2_0>;
23015
+ }
23016
+ declare function SimulationAPIGroup_2_0(instance: Base): SimulationAPIGroup_2_0;
23017
+ export declare type TRestAPIGroupsTypeByConfiguration<T extends IRestAPIClientConfig> = TResourceAPIVersionType<T> & TJWTAuthAPIVersionType<T> & TInsightsAPIVersionType<T> & TMetricsAPIVersionType<T> & TSessionAPIVersionType<T> & TExternalAPIVersionType<T> & TAdministrationAPIVersionType<T> & TManagementAPIVersionType<T> & TAnalyticsAPIVersionType<T> & TAIOpsCenterAPIVersionType<T> & TSimulationAPIVersionType<T>;
22711
23018
  export declare type TResourceAPIVersionType<T> = T extends {
22712
23019
  versions: {
22713
23020
  resources: "2.0";
@@ -22758,6 +23065,11 @@ export declare type TAIOpsCenterAPIVersionType<T> = T extends {
22758
23065
  aiops: "1.0";
22759
23066
  };
22760
23067
  } ? AIOpsCenterAPIGroup_2_0 : AIOpsCenterAPIGroup_2_0;
23068
+ export declare type TSimulationAPIVersionType<T> = T extends {
23069
+ versions: {
23070
+ simulation: "2.0";
23071
+ };
23072
+ } ? SimulationAPIGroup_2_0 : SimulationAPIGroup_2_0;
22761
23073
  export declare type TRestAPIClient<T extends IRestAPIClientConfig = IRestAPIClientConfig> = TRestAPIGroupsTypeByConfiguration<T> & AuthenticationAPI & IRestAPIClientProperties<T> & IHttpAdapterAPI;
22762
23074
  export interface IRestAPIClientConstructor {
22763
23075
  new <T extends IRestAPIClientConfig>(config?: T): TRestAPIClient<T>;