@cognigy/rest-api-client 2025.21.0 → 2025.23.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 (53) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/build/apigroups/SimulationAPIGroup_2_0.js +6 -1
  3. package/build/shared/charts/descriptors/analytics/trackGoal.js +2 -2
  4. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/azureOpenAIProviderOauth2Connection.js +3 -1
  5. package/build/shared/charts/descriptors/index.js +1 -0
  6. package/build/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +5 -5
  7. package/build/shared/charts/descriptors/service/GPTPrompt.js +4 -4
  8. package/build/shared/charts/descriptors/service/agentTools/knowledgeTool.js +340 -0
  9. package/build/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +7 -5
  10. package/build/shared/charts/descriptors/service/aiAgent/helpers/createToolDefinitions.js +35 -32
  11. package/build/shared/charts/descriptors/service/index.js +3 -1
  12. package/build/shared/charts/descriptors/service/llmPrompt/LLMPromptV2.js +7 -5
  13. package/build/shared/charts/descriptors/voice/mappers/msTeamsTransfer.mapper.js +36 -0
  14. package/build/shared/charts/descriptors/voicegateway2/index.js +16 -11
  15. package/build/shared/charts/descriptors/voicegateway2/nodes/msTeamsTransfer.js +126 -0
  16. package/build/shared/interfaces/IProfile.js +5 -1
  17. package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +3 -0
  18. package/build/shared/interfaces/resources/IAuditEvent.js +6 -1
  19. package/build/shared/interfaces/resources/IChartNode.js +7 -1
  20. package/build/shared/interfaces/resources/INodeDescriptorSet.js +11 -1
  21. package/build/shared/interfaces/resources/settings/IAgentSettings.js +12 -7
  22. package/build/shared/interfaces/resources/settings/IPiiDataRedactionSettings.js +142 -0
  23. package/build/shared/interfaces/resources/settings/index.js +4 -1
  24. package/build/shared/interfaces/restAPI/resources/project/v2.0/settings/IAgentSettings_2_0.js +104 -0
  25. package/build/shared/interfaces/restAPI/simulation/persona/IGeneratePersonaFromTranscriptRest_2_0.js +20 -0
  26. package/build/shared/interfaces/restAPI/simulation/simulation/ICloneSimulationRest_2_0.js +3 -0
  27. package/dist/esm/apigroups/SimulationAPIGroup_2_0.js +6 -1
  28. package/dist/esm/shared/charts/descriptors/analytics/trackGoal.js +2 -2
  29. package/dist/esm/shared/charts/descriptors/connectionNodes/generativeAIProviders/azureOpenAIProviderOauth2Connection.js +3 -1
  30. package/dist/esm/shared/charts/descriptors/index.js +2 -1
  31. package/dist/esm/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +5 -5
  32. package/dist/esm/shared/charts/descriptors/service/GPTPrompt.js +4 -4
  33. package/dist/esm/shared/charts/descriptors/service/agentTools/knowledgeTool.js +338 -0
  34. package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +7 -5
  35. package/dist/esm/shared/charts/descriptors/service/aiAgent/helpers/createToolDefinitions.js +35 -32
  36. package/dist/esm/shared/charts/descriptors/service/index.js +1 -0
  37. package/dist/esm/shared/charts/descriptors/service/llmPrompt/LLMPromptV2.js +7 -5
  38. package/dist/esm/shared/charts/descriptors/voice/mappers/msTeamsTransfer.mapper.js +33 -0
  39. package/dist/esm/shared/charts/descriptors/voicegateway2/index.js +16 -11
  40. package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/msTeamsTransfer.js +124 -0
  41. package/dist/esm/shared/interfaces/IProfile.js +4 -0
  42. package/dist/esm/shared/interfaces/generativeAI/IGenerativeAIModels.js +3 -0
  43. package/dist/esm/shared/interfaces/resources/IAuditEvent.js +6 -1
  44. package/dist/esm/shared/interfaces/resources/IChartNode.js +6 -0
  45. package/dist/esm/shared/interfaces/resources/INodeDescriptorSet.js +11 -1
  46. package/dist/esm/shared/interfaces/resources/settings/IAgentSettings.js +16 -11
  47. package/dist/esm/shared/interfaces/resources/settings/IPiiDataRedactionSettings.js +139 -0
  48. package/dist/esm/shared/interfaces/resources/settings/index.js +5 -4
  49. package/dist/esm/shared/interfaces/restAPI/resources/project/v2.0/settings/IAgentSettings_2_0.js +103 -1
  50. package/dist/esm/shared/interfaces/restAPI/simulation/persona/IGeneratePersonaFromTranscriptRest_2_0.js +19 -0
  51. package/dist/esm/shared/interfaces/restAPI/simulation/simulation/ICloneSimulationRest_2_0.js +2 -0
  52. package/package.json +1 -1
  53. package/types/index.d.ts +317 -36
package/types/index.d.ts CHANGED
@@ -2815,6 +2815,9 @@ declare const generativeAIModels: readonly [
2815
2815
  "gemini-1.5-flash",
2816
2816
  "gemini-2.0-flash",
2817
2817
  "gemini-2.0-flash-lite",
2818
+ "gemini-2.5-pro",
2819
+ "gemini-2.5-flash",
2820
+ "gemini-2.5-flash-lite",
2818
2821
  "amazon.nova-lite-v1:0",
2819
2822
  "amazon.nova-pro-v1:0",
2820
2823
  "amazon.nova-micro-v1:0",
@@ -2848,6 +2851,13 @@ declare const generativeAIModels: readonly [
2848
2851
  * - gpt-4
2849
2852
  * - gpt-4o
2850
2853
  * - gpt-4o-mini
2854
+ * - gpt-4.1
2855
+ * - gpt-4.1-mini
2856
+ * - gpt-4.1-nano
2857
+ * - gpt-5
2858
+ * - gpt-5-nano
2859
+ * - gpt-5-mini
2860
+ * - gpt-5-chat-latest
2851
2861
  * - text-embedding-ada-002
2852
2862
  * - luminous-extended-control
2853
2863
  * - luminous-embedding-128
@@ -2859,6 +2869,9 @@ declare const generativeAIModels: readonly [
2859
2869
  * - custom-embedding-model
2860
2870
  * - gemini-2.0-flash
2861
2871
  * - gemini-2.0-flash-lite
2872
+ * - gemini-2.5-pro
2873
+ * - gemini-2.5-flash
2874
+ * - gemini-2.5-flash-lite
2862
2875
  * - mistral-large-2411
2863
2876
  * - mistral-small-2503
2864
2877
  * - pixtral-large-2411
@@ -4124,6 +4137,23 @@ export interface IWebchat3EndpointLayoutSettings {
4124
4137
  * Configure the width of the Webchat in px
4125
4138
  */
4126
4139
  chatWindowWidth: number;
4140
+ /**
4141
+ * The URL that links to the logo
4142
+ * we display as the chatbot icon when using bottom right position
4143
+ */
4144
+ iconUrl: string;
4145
+ /**
4146
+ * The animation to apply to the chatbot icon
4147
+ */
4148
+ iconAnimation: string;
4149
+ /**
4150
+ * The interval to apply to the chatbot icon animation when using bottom right position
4151
+ */
4152
+ iconAnimationInterval: number;
4153
+ /**
4154
+ * The speed to apply to the chatbot icon animation when using bottom right position
4155
+ */
4156
+ iconAnimationSpeed: number;
4127
4157
  }
4128
4158
  export interface IWebchat3EndpointColorsSettings {
4129
4159
  /**
@@ -5625,6 +5655,8 @@ export interface ISharedSettings_2_0 {
5625
5655
  * example: "USD"
5626
5656
  * knowledgeAISettings:
5627
5657
  * $ref: '#/components/schemas/IKnowledgeAISettings_2_0'
5658
+ * piiDataRedactionSettings:
5659
+ * $ref: '#/components/schemas/IPiiDataRedactionSettings_2_0'
5628
5660
  *
5629
5661
  * IAgentSettings_2_0:
5630
5662
  * allOf:
@@ -5653,6 +5685,7 @@ export interface IAgentSettings_2_0 extends ISharedSettings_2_0 {
5653
5685
  currency: string;
5654
5686
  };
5655
5687
  knowledgeAISettings: IKnowledgeAISettings_2_0;
5688
+ piiDataRedactionSettings?: IPiiDataRedactionSettings_2_0;
5656
5689
  }
5657
5690
  /**
5658
5691
  * @openapi
@@ -5771,7 +5804,7 @@ export declare type TAudioPreviewProvider_2_0 = "microsoft" | "google" | "aws" |
5771
5804
  /**
5772
5805
  * The supporting optional fields are not shown in Open API documentation
5773
5806
  * as those are just place holders and not supported in iteration 1
5774
- */
5807
+ */
5775
5808
  export interface IAudioPreviewSettings_2_0 {
5776
5809
  provider: TAudioPreviewProvider_2_0;
5777
5810
  connections: {
@@ -5874,6 +5907,39 @@ export interface IKnowledgeAISettings_2_0 {
5874
5907
  fileExtractor: TFileExtractorOptions_2_0;
5875
5908
  azureDIConnectionId?: string;
5876
5909
  }
5910
+ declare enum EPiiBehaviorType {
5911
+ PREDEFINED_ALIAS = "predefined-alias",
5912
+ CUSTOM_ALIAS = "custom-alias"
5913
+ }
5914
+ export declare type IRedactionBehavior = {
5915
+ type: EPiiBehaviorType.PREDEFINED_ALIAS;
5916
+ customAlias: null;
5917
+ } | {
5918
+ type: EPiiBehaviorType.CUSTOM_ALIAS;
5919
+ customAlias: string;
5920
+ };
5921
+ export declare type IRedactionScope = {
5922
+ logs: boolean;
5923
+ analytics: boolean;
5924
+ };
5925
+ export interface IPiiFieldSettings {
5926
+ enabled: boolean;
5927
+ behavior: IRedactionBehavior;
5928
+ scope: IRedactionScope;
5929
+ name: string;
5930
+ }
5931
+ export interface ICustomPatternSettings extends Omit<IPiiFieldSettings, "enabled"> {
5932
+ regex: string;
5933
+ }
5934
+ export interface IPiiDataRedactionSettings_2_0 {
5935
+ emailAddress: IPiiFieldSettings;
5936
+ phoneNumber: IPiiFieldSettings;
5937
+ creditCard: IPiiFieldSettings;
5938
+ ssn: IPiiFieldSettings;
5939
+ ipAddressV4: IPiiFieldSettings;
5940
+ ipAddressV6: IPiiFieldSettings;
5941
+ customTypes?: Record<string, ICustomPatternSettings>;
5942
+ }
5877
5943
  /**
5878
5944
  * @openapi
5879
5945
  *
@@ -6004,12 +6070,12 @@ export interface IMongoosePaginationPluginReturnValue<T = any> {
6004
6070
  * total:
6005
6071
  * type: integer
6006
6072
  * example: 1
6007
- * next:
6073
+ * nextCursor:
6008
6074
  * allOf:
6009
6075
  * - $ref: '#/components/schemas/TMongoId'
6010
6076
  * nullable: true
6011
6077
  * example: 5ce7c2d833ea1e04d7e6c432
6012
- * previous:
6078
+ * previousCursor:
6013
6079
  * allOf:
6014
6080
  * - $ref: '#/components/schemas/TMongoId'
6015
6081
  * nullable: true
@@ -10135,6 +10201,7 @@ export declare type ValueOf<T> = T[keyof T];
10135
10201
  * @param excludeDataOnlyMessagesFilter: (optional) the roles for which data only messages (emtpy text field) will be excluded if type is input/output
10136
10202
  * @param useTextAlternativeForLLM: (optional) if true, graphical outputs will be included in the transcript, either using the value from the graphical description / fallbackText field, or by converting the data where possible
10137
10203
  * @param includeTextAlternativeInTranscript: (optional) if true, the text alternative for LLM will be included in the transcript
10204
+ * @param excludeUserEventMessages: (optional) if true, user event messages will be excluded from the transcript
10138
10205
  */
10139
10206
  export declare type TReadTranscriptOptions = {
10140
10207
  limit: number;
@@ -10142,6 +10209,7 @@ export declare type TReadTranscriptOptions = {
10142
10209
  excludeDataOnlyMessagesFilter?: (TranscriptRole.USER | TranscriptRole.AGENT | TranscriptRole.ASSISTANT)[];
10143
10210
  useTextAlternativeForLLM?: boolean;
10144
10211
  includeTextAlternativeInTranscript?: boolean;
10212
+ excludeUserEventMessages?: boolean;
10145
10213
  };
10146
10214
  declare enum TranscriptRole {
10147
10215
  ASSISTANT = "assistant",
@@ -10422,6 +10490,8 @@ export interface IAzureOpenAIProviderOauth2Fields {
10422
10490
  clientSecret: string;
10423
10491
  oauthUrl: string;
10424
10492
  scope: string;
10493
+ additionalHeaderName?: string;
10494
+ additionalHeaderValue?: string;
10425
10495
  }
10426
10496
  export interface IAlephAlphaProviderFields {
10427
10497
  token: string;
@@ -11448,7 +11518,10 @@ export interface INodeExecutionAPI extends Omit<IActions, "parseCognigyScriptCon
11448
11518
  timeout: number;
11449
11519
  cacheTools: boolean;
11450
11520
  mcpHeaders?: Record<string, string>;
11451
- }) => Promise<any[]>;
11521
+ }) => Promise<{
11522
+ tools: any[];
11523
+ fromCache: boolean;
11524
+ }>;
11452
11525
  executeMcpTool: (params: {
11453
11526
  toolName: string;
11454
11527
  toolArgs: {
@@ -11736,7 +11809,7 @@ export declare type TNodeTagType = TCognigyNodeTagType | string;
11736
11809
  export interface INodeDescriptor<T extends INodeFunctionBaseParams = any, U extends string = string, FunctionParams extends INodeFunctionBaseParams = any> {
11737
11810
  _id?: TMongoId;
11738
11811
  type: U;
11739
- parentType?: string | null;
11812
+ parentType?: string | string[] | null;
11740
11813
  defaultLabel: string | INodeFieldTranslations;
11741
11814
  summary?: string | INodeFieldTranslations;
11742
11815
  appearance: INodeAppearance;
@@ -13276,14 +13349,6 @@ export interface IChart_2_0 {
13276
13349
  * extension:
13277
13350
  * type: string
13278
13351
  * example: "@cognigy/basic-nodes"
13279
- * enum:
13280
- * - "@cognigy/basic-nodes"
13281
- * - "@cognigy/mongodb"
13282
- * - "@cognigy/mssql"
13283
- * - "@cognigy/smtp"
13284
- * - "@cognigy/voicegateway"
13285
- * - "@cognigy/microsoft"
13286
- * - "@cognigy/voiceGateway2"
13287
13352
  * label:
13288
13353
  * type: string
13289
13354
  * example: A new Node
@@ -13339,25 +13404,13 @@ export interface IChartNode_2_0<T extends INodeFunctionBaseParams = any> {
13339
13404
  localeReference: string;
13340
13405
  analyticsLabel?: string;
13341
13406
  }
13342
- export interface IReadChartNodeRestDataQuery_2_0 {
13343
- preferredLocaleId?: string;
13344
- }
13345
- export declare type IReadChartNodeRestDataParams_2_0<P extends string = "resourceId"> = {
13346
- [key in P]: string;
13347
- } & {
13348
- nodeId: string;
13349
- };
13350
- export interface IReadChartNodeRestData_2_0 extends IReadChartNodeRestDataParams_2_0, IReadChartNodeRestDataQuery_2_0 {
13351
- resourceType: TChartableResourceType;
13352
- }
13353
- export interface IReadChartNodeRestReturnValue_2_0<T extends INodeFunctionBaseParams = any> extends IChartNode_2_0<T> {
13354
- }
13355
- export interface IReadChartRestData_2_0 extends IReadChartNodeRestDataQuery_2_0 {
13356
- resourceId: string;
13357
- resourceType: string;
13358
- }
13359
- export interface IReadChartRestReturnValue_2_0 extends IChart_2_0 {
13407
+ declare enum ConvertActionType {
13408
+ ADDED = "added",
13409
+ REMOVED = "removed",
13410
+ UPDATED = "updated"
13360
13411
  }
13412
+ export declare type TConvertAction = (typeof ConvertActionType)[keyof typeof ConvertActionType];
13413
+ export declare type TNodeConversionMetadata = Record<string, TConvertAction>;
13361
13414
  export interface IChartNodeBase {
13362
13415
  _id: TMongoId;
13363
13416
  referenceId: string;
@@ -13403,6 +13456,27 @@ export interface IChartNodeInDB extends Omit<IChartNode, "config" | "preview" |
13403
13456
  localeReference: TMongoId;
13404
13457
  }[];
13405
13458
  }
13459
+ export interface IReadChartNodeRestDataQuery_2_0 {
13460
+ preferredLocaleId?: string;
13461
+ includeConversionMetadata?: string;
13462
+ }
13463
+ export declare type IReadChartNodeRestDataParams_2_0<P extends string = "resourceId"> = {
13464
+ [key in P]: string;
13465
+ } & {
13466
+ nodeId: string;
13467
+ };
13468
+ export interface IReadChartNodeRestData_2_0 extends IReadChartNodeRestDataParams_2_0, IReadChartNodeRestDataQuery_2_0 {
13469
+ resourceType: TChartableResourceType;
13470
+ }
13471
+ export interface IReadChartNodeRestReturnValue_2_0<T extends INodeFunctionBaseParams = any> extends IChartNode_2_0<T> {
13472
+ conversionMetadata?: TNodeConversionMetadata;
13473
+ }
13474
+ export interface IReadChartRestData_2_0 extends IReadChartNodeRestDataQuery_2_0 {
13475
+ resourceId: string;
13476
+ resourceType: string;
13477
+ }
13478
+ export interface IReadChartRestReturnValue_2_0 extends IChart_2_0 {
13479
+ }
13406
13480
  export declare type ICreateChartNodeRestDataParams_2_0<P extends string = "resourceId"> = {
13407
13481
  [key in P]: string;
13408
13482
  };
@@ -14246,7 +14320,7 @@ export declare type IGetAiAgentJobAndToolsRestReturnValue_2_0 = IAiAgentJobNodeW
14246
14320
  */
14247
14321
  export interface INodeDescriptor_2_0 {
14248
14322
  type: string;
14249
- parentType?: string;
14323
+ parentType?: string | string[];
14250
14324
  defaultLabel: string | INodeFieldTranslations;
14251
14325
  summary: string | INodeFieldTranslations;
14252
14326
  extension: string;
@@ -17278,6 +17352,16 @@ export interface ITransferNodeParams extends INodeFunctionBaseParams {
17278
17352
  amdRedirectText: string;
17279
17353
  };
17280
17354
  }
17355
+ export interface IMSTeamsTransferNodeParams extends INodeFunctionBaseParams {
17356
+ config: {
17357
+ transferTarget: string;
17358
+ topic?: string;
17359
+ callerName?: string;
17360
+ context: string;
17361
+ callSentiment?: string;
17362
+ suggestedActions?: string;
17363
+ };
17364
+ }
17281
17365
  export interface ISendMetadataParams extends INodeFunctionBaseParams {
17282
17366
  config: {
17283
17367
  metadata: {
@@ -17310,6 +17394,7 @@ export interface ICognigyVoiceGateway2Nodes {
17310
17394
  "sendMetadata": ICreateChartNodeBasicNodesData<"sendMetadata", ISendMetadataParams, TVOICE_GATEWAY_2_EXTENSION>;
17311
17395
  "recordNode": ICreateChartNodeBasicNodesData<"recordNode", IRecordNodeParams, TVOICE_GATEWAY_2_EXTENSION>;
17312
17396
  "muteSpeechInputNode": ICreateChartNodeBasicNodesData<"muteSpeechInput", IMuteSpeechInputParams, TVOICE_GATEWAY_2_EXTENSION>;
17397
+ "msTeamsTransferNode": ICreateChartNodeBasicNodesData<"msTeamsTransfer", IMSTeamsTransferNodeParams, TVOICE_GATEWAY_2_EXTENSION>;
17313
17398
  }
17314
17399
  export interface ISearchExtractOutputNodeParams extends INodeFunctionBaseParams {
17315
17400
  config: {
@@ -19931,6 +20016,10 @@ export interface IMemory {
19931
20016
  timestamp: string;
19932
20017
  text: string;
19933
20018
  }
20019
+ declare const profileTypes: readonly [
20020
+ "simulator"
20021
+ ];
20022
+ export declare type TProfileTypes = (typeof profileTypes)[number];
19934
20023
  /**
19935
20024
  * @openapi
19936
20025
  *
@@ -20044,6 +20133,10 @@ export interface IFlattenedProfile_2_0 {
20044
20133
  * $ref: '#/components/schemas/IFlattenedProfile_2_0'
20045
20134
  * active:
20046
20135
  * type: boolean
20136
+ * type:
20137
+ * type: string
20138
+ * enum:
20139
+ * - simulator
20047
20140
  * contactIds:
20048
20141
  * type: array
20049
20142
  * items:
@@ -20056,6 +20149,7 @@ export interface IFlattenedProfile_2_0 {
20056
20149
  export interface IProfileIndexItem_2_0 {
20057
20150
  _id: TMongoId;
20058
20151
  active: boolean;
20152
+ type?: TProfileTypes;
20059
20153
  profile: Partial<IFlattenedProfile_2_0>;
20060
20154
  projectId: TMongoId;
20061
20155
  lastChanged: number;
@@ -20911,10 +21005,14 @@ export interface IGetConversationCounterOrganisationRestReturnValue_3_0 {
20911
21005
  * type: number
20912
21006
  * processedCalls:
20913
21007
  * type: number
21008
+ * billableCalls:
21009
+ * type: number
20914
21010
  */
20915
21011
  export interface ICallCounterPreAggregatedValue_3_0 {
20916
21012
  /** The number of calls in the time-span */
20917
21013
  processedCalls: number;
21014
+ /** The number of billable calls in the time-span */
21015
+ billableCalls: number;
20918
21016
  /** The day, e.g., 1 for the first day in the month */
20919
21017
  day: number;
20920
21018
  /** The month of the year, e.g., 1 for January */
@@ -21251,7 +21349,8 @@ declare const auditEventTypes: readonly [
21251
21349
  "replace",
21252
21350
  "patch",
21253
21351
  "delete",
21254
- "unauthorized"
21352
+ "authentication",
21353
+ "authorization"
21255
21354
  ];
21256
21355
  /**
21257
21356
  * @openapi
@@ -21267,7 +21366,8 @@ declare const auditEventTypes: readonly [
21267
21366
  * - replace
21268
21367
  * - patch
21269
21368
  * - delete
21270
- * - unauthorized
21369
+ * - authentication
21370
+ * - authorization
21271
21371
  */
21272
21372
  export declare type TAuditEventType = typeof auditEventTypes[number];
21273
21373
  declare const actionTypes: readonly [
@@ -21372,7 +21472,11 @@ declare const actionTypes: readonly [
21372
21472
  "setupObservationConfig",
21373
21473
  "updateObservationConfig",
21374
21474
  "resolveAiOpsCenterError",
21375
- "odataRequest"
21475
+ "odataRequest",
21476
+ "loginSucceeded",
21477
+ "loginFailed",
21478
+ "loginError",
21479
+ "unauthorized"
21376
21480
  ];
21377
21481
  export declare type TActionType = typeof actionTypes[number];
21378
21482
  /**
@@ -23308,6 +23412,7 @@ export interface IOpsCenterAlert {
23308
23412
  type: string;
23309
23413
  name: string;
23310
23414
  description: string;
23415
+ humanReadableName: string;
23311
23416
  component: MainComponent;
23312
23417
  subComponent: SubComponent;
23313
23418
  state: string;
@@ -23449,16 +23554,29 @@ export interface IScheduleSimulationRestDataBody_2_0 {
23449
23554
  entrypoint: string;
23450
23555
  largeLanguageModelReferenceId?: string;
23451
23556
  userId?: string;
23557
+ finalPing?: number;
23558
+ data?: Record<string, unknown>;
23452
23559
  };
23453
23560
  projectReference: string;
23454
23561
  numberOfExecutions: number;
23455
- endPointType: string;
23562
+ endPointType?: string;
23456
23563
  }
23457
23564
  export interface IScheduleSimulationRestData_2_0 extends IScheduleSimulationRestDataParams_2_0, IScheduleSimulationRestDataBody_2_0 {
23458
23565
  }
23459
23566
  export interface IScheduleSimulationRestReturnValue_2_0 {
23460
23567
  simulation: ISimulationRest_2_0;
23461
23568
  }
23569
+ export interface ICloneSimulationRestDataParams_2_0 {
23570
+ simulationReference: string;
23571
+ }
23572
+ export interface ICloneSimulationRestDataBody_2_0 {
23573
+ name?: string;
23574
+ }
23575
+ export interface ICloneSimulationRestData_2_0 extends ICloneSimulationRestDataParams_2_0, ICloneSimulationRestDataBody_2_0 {
23576
+ }
23577
+ export interface ICloneSimulationRestReturnValue_2_0 {
23578
+ simulation: ISimulationRest_2_0;
23579
+ }
23462
23580
  declare enum ETurnTypeRest_2_0 {
23463
23581
  INPUT = "input",
23464
23582
  OUTPUT = "output"
@@ -23733,6 +23851,167 @@ export interface IGenerateBulkPersonaRestReturnValue_2_0 {
23733
23851
  missionTypesCount: number;
23734
23852
  };
23735
23853
  }
23854
+ /**
23855
+ * POST /testing/beta/personas/from-transcript
23856
+ *
23857
+ * Create a scenario draft by analyzing a conversation transcript. The system uses LLM to extract user intent,
23858
+ * conversation goals, and user characteristics from the transcript, then generates an appropriate persona package.
23859
+ *
23860
+ * The endpoint supports:
23861
+ * - Fetching transcript via sessionId from analytics service (RPC call)
23862
+ * - Direct transcript content via transcriptContent
23863
+ * - Optional flow context for enhanced persona generation
23864
+ * - Content safety validation (warnings only, non-blocking)
23865
+ *
23866
+ * Priority: If both sessionId and transcriptContent are provided, sessionId takes precedence.
23867
+ *
23868
+ * operationId: createScenarioFromTranscript
23869
+ * tags: Personas
23870
+ */
23871
+ export interface IGeneratePersonaFromTranscriptRestData_2_0 {
23872
+ /**
23873
+ * Project reference for context identification (alternative to projectId query parameter)
23874
+ */
23875
+ projectReference?: string;
23876
+ /**
23877
+ * Session identifier to retrieve transcript from analytics service.
23878
+ * If provided, takes precedence over transcriptContent.
23879
+ */
23880
+ sessionId?: string;
23881
+ /**
23882
+ * Direct transcript content. Optional if sessionId is provided.
23883
+ */
23884
+ transcriptContent?: {
23885
+ /**
23886
+ * Array of conversation messages
23887
+ */
23888
+ messages: Array<{
23889
+ /**
23890
+ * Message source type:
23891
+ * - 'user' (customer)
23892
+ * - 'bot' (AI agent)
23893
+ * - 'agent' (live human agent)
23894
+ * - 'suggestion' (system suggestion)
23895
+ */
23896
+ source: "user" | "bot" | "agent" | "suggestion";
23897
+ /**
23898
+ * Message content
23899
+ */
23900
+ content: string;
23901
+ /**
23902
+ * Message timestamp (ISO 8601 format)
23903
+ */
23904
+ timestamp: string;
23905
+ }>;
23906
+ };
23907
+ /**
23908
+ * Optional: Flow ID to associate with and extract agent context for enhanced generation
23909
+ */
23910
+ flowId?: string;
23911
+ /**
23912
+ * Optional: Number of success criteria to generate
23913
+ * @default 3
23914
+ * @minimum 1
23915
+ * @maximum 10
23916
+ */
23917
+ numberOfSuccessCriteria?: number;
23918
+ /**
23919
+ * Optional analysis configuration
23920
+ */
23921
+ analysisOptions?: {
23922
+ /**
23923
+ * Limit transcript to first N turns (default: no limit)
23924
+ * @minimum 1
23925
+ */
23926
+ maxTurns?: number;
23927
+ /**
23928
+ * Focus analysis on extracting user goals (default: true)
23929
+ */
23930
+ focusOnUserGoals?: boolean;
23931
+ };
23932
+ }
23933
+ export interface IGeneratePersonaFromTranscriptRestReturnValue_2_0 {
23934
+ /**
23935
+ * Whether the generation was successful
23936
+ */
23937
+ success: boolean;
23938
+ /**
23939
+ * Generated persona package
23940
+ */
23941
+ personaPackage: {
23942
+ /**
23943
+ * Generated simulation name
23944
+ */
23945
+ simulationName: string;
23946
+ /**
23947
+ * Generated persona name
23948
+ */
23949
+ personaName: string;
23950
+ /**
23951
+ * Generated persona description capturing user characteristics
23952
+ */
23953
+ personaDescription: string;
23954
+ /**
23955
+ * Generated mission based on user goals
23956
+ */
23957
+ mission: string;
23958
+ /**
23959
+ * Generated success criteria
23960
+ */
23961
+ successCriteria: Array<{
23962
+ /**
23963
+ * Success criterion name
23964
+ */
23965
+ name: string;
23966
+ /**
23967
+ * Success criterion description
23968
+ */
23969
+ text: string;
23970
+ }>;
23971
+ };
23972
+ /**
23973
+ * Analysis metadata
23974
+ */
23975
+ metadata: {
23976
+ /**
23977
+ * Brief summary of the analyzed transcript
23978
+ */
23979
+ transcriptSummary: string;
23980
+ /**
23981
+ * When the analysis was performed (ISO 8601 format)
23982
+ */
23983
+ analysisTimestamp: string;
23984
+ /**
23985
+ * Content safety warnings (if any)
23986
+ */
23987
+ warnings?: string[];
23988
+ /**
23989
+ * Number of turns in the transcript
23990
+ */
23991
+ turnCount: number;
23992
+ /**
23993
+ * User intents/goals extracted from transcript
23994
+ */
23995
+ extractedIntents: string[];
23996
+ /**
23997
+ * Original transcript messages
23998
+ */
23999
+ messages: Array<{
24000
+ /**
24001
+ * Message source: 'user', 'bot', 'agent', or 'suggestion'
24002
+ */
24003
+ source: "user" | "bot" | "agent" | "suggestion";
24004
+ /**
24005
+ * Message content
24006
+ */
24007
+ content: string;
24008
+ /**
24009
+ * Message timestamp (ISO 8601 format)
24010
+ */
24011
+ timestamp: string;
24012
+ }>;
24013
+ };
24014
+ }
23736
24015
  export interface IStopSimulationRunBatchRestDataQuery_2_0 {
23737
24016
  projectId: string;
23738
24017
  }
@@ -23750,6 +24029,7 @@ export interface SimulationAPIGroup_2_0 {
23750
24029
  deleteSimulation: TRestAPIOperation<IDeleteSimulationRestData_2_0, IDeleteSimulationRestReturnValue_2_0>;
23751
24030
  readSimulation: TRestAPIOperation<IReadSimulationRestData_2_0, IReadSimulationRestReturnValue_2_0>;
23752
24031
  scheduleSimulation: TRestAPIOperation<IScheduleSimulationRestData_2_0, IScheduleSimulationRestReturnValue_2_0>;
24032
+ cloneSimulation: TRestAPIOperation<ICloneSimulationRestData_2_0, ICloneSimulationRestReturnValue_2_0>;
23753
24033
  indexSimulationRunBatches: TRestAPIOperation<IIndexSimulationRunBatchesRestData_2_0, IIndexSimulationRunBatchesRestReturnValue_2_0>;
23754
24034
  getAllSimulationRunBatches: TRestAPIOperation<IGetAllSimulationRunBatchesRestData_2_0, IGetAllSimulationRunBatchesRestReturnValue_2_0>;
23755
24035
  readSimulationRunBatch: TRestAPIOperation<IReadSimulationRunBatchRestData_2_0, IReadSimulationRunBatchRestReturnValue_2_0>;
@@ -23760,6 +24040,7 @@ export interface SimulationAPIGroup_2_0 {
23760
24040
  generatePersona: TRestAPIOperation<IGeneratePersonaRestData_2_0, IGeneratePersonaRestReturnValue_2_0>;
23761
24041
  regeneratePersonaField: TRestAPIOperation<IRegeneratePersonaFieldRestData_2_0, IRegeneratePersonaFieldRestReturnValue_2_0>;
23762
24042
  generateBulkPersona: TRestAPIOperation<IGenerateBulkPersonaRestData_2_0, IGenerateBulkPersonaRestReturnValue_2_0>;
24043
+ generatePersonaFromTranscript: TRestAPIOperation<IGeneratePersonaFromTranscriptRestData_2_0, IGeneratePersonaFromTranscriptRestReturnValue_2_0>;
23763
24044
  }
23764
24045
  declare function SimulationAPIGroup_2_0(instance: Base): SimulationAPIGroup_2_0;
23765
24046
  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>;