@cognigy/rest-api-client 4.94.0 → 4.96.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 (75) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/build/shared/charts/descriptors/analytics/addMemory.js +1 -1
  3. package/build/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +9 -1
  4. package/build/shared/charts/descriptors/service/GPTPrompt.js +10 -2
  5. package/build/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +158 -37
  6. package/build/shared/charts/descriptors/voice/mappers/transfer.mapper.js +4 -1
  7. package/build/shared/charts/descriptors/voice/nodes/bargeIn.js +1 -1
  8. package/build/shared/charts/descriptors/voice/nodes/continuousAsr.js +1 -1
  9. package/build/shared/charts/descriptors/voice/nodes/dtmf.js +1 -1
  10. package/build/shared/charts/descriptors/voice/nodes/hangup.js +1 -1
  11. package/build/shared/charts/descriptors/voice/nodes/muteSpeechInput.js +1 -1
  12. package/build/shared/charts/descriptors/voice/nodes/noUserInput.js +1 -1
  13. package/build/shared/charts/descriptors/voice/nodes/play.js +1 -1
  14. package/build/shared/charts/descriptors/voice/nodes/sendMetadata.js +1 -1
  15. package/build/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +1 -1
  16. package/build/shared/charts/descriptors/voice/nodes/transfer.js +1 -1
  17. package/build/shared/charts/descriptors/voicegateway2/nodes/dtmf.js +1 -1
  18. package/build/shared/charts/descriptors/voicegateway2/nodes/hangup.js +1 -1
  19. package/build/shared/charts/descriptors/voicegateway2/nodes/muteSpeechInput.js +1 -1
  20. package/build/shared/charts/descriptors/voicegateway2/nodes/play.js +1 -1
  21. package/build/shared/charts/descriptors/voicegateway2/nodes/record.js +1 -1
  22. package/build/shared/charts/descriptors/voicegateway2/nodes/refer.js +1 -1
  23. package/build/shared/charts/descriptors/voicegateway2/nodes/sendMetadata.js +1 -1
  24. package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +1 -1
  25. package/build/shared/charts/descriptors/voicegateway2/nodes/transfer.js +47 -2
  26. package/build/shared/constants.js +10 -1
  27. package/build/shared/helper/nlu/textCleaner.js +10 -2
  28. package/build/shared/interfaces/IProfile.js +1 -0
  29. package/build/shared/interfaces/IProfileSchema.js +5 -0
  30. package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +1 -0
  31. package/build/shared/interfaces/messageAPI/endpoints.js +2 -0
  32. package/build/shared/interfaces/messageAPI/handover.js +3 -3
  33. package/build/shared/interfaces/resources/IAiAgent.js +10 -0
  34. package/build/shared/interfaces/resources/IConnection.js +3 -2
  35. package/build/shared/interfaces/resources/IGlobalResource.js +3 -0
  36. package/build/shared/interfaces/resources/ILargeLanguageModel.js +10 -1
  37. package/build/shared/interfaces/resources/intent/IDefaultReply.js +0 -1
  38. package/dist/esm/shared/charts/descriptors/analytics/addMemory.js +1 -1
  39. package/dist/esm/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +9 -1
  40. package/dist/esm/shared/charts/descriptors/service/GPTPrompt.js +10 -2
  41. package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +158 -37
  42. package/dist/esm/shared/charts/descriptors/voice/mappers/transfer.mapper.js +4 -1
  43. package/dist/esm/shared/charts/descriptors/voice/nodes/bargeIn.js +1 -1
  44. package/dist/esm/shared/charts/descriptors/voice/nodes/continuousAsr.js +1 -1
  45. package/dist/esm/shared/charts/descriptors/voice/nodes/dtmf.js +1 -1
  46. package/dist/esm/shared/charts/descriptors/voice/nodes/hangup.js +1 -1
  47. package/dist/esm/shared/charts/descriptors/voice/nodes/muteSpeechInput.js +1 -1
  48. package/dist/esm/shared/charts/descriptors/voice/nodes/noUserInput.js +1 -1
  49. package/dist/esm/shared/charts/descriptors/voice/nodes/play.js +1 -1
  50. package/dist/esm/shared/charts/descriptors/voice/nodes/sendMetadata.js +1 -1
  51. package/dist/esm/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +1 -1
  52. package/dist/esm/shared/charts/descriptors/voice/nodes/transfer.js +1 -1
  53. package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/dtmf.js +1 -1
  54. package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/hangup.js +1 -1
  55. package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/muteSpeechInput.js +1 -1
  56. package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/play.js +1 -1
  57. package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/record.js +1 -1
  58. package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/refer.js +1 -1
  59. package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/sendMetadata.js +1 -1
  60. package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +1 -1
  61. package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/transfer.js +47 -2
  62. package/dist/esm/shared/constants.js +9 -0
  63. package/dist/esm/shared/helper/nlu/textCleaner.js +10 -2
  64. package/dist/esm/shared/interfaces/IProfile.js +1 -0
  65. package/dist/esm/shared/interfaces/IProfileSchema.js +5 -0
  66. package/dist/esm/shared/interfaces/generativeAI/IGenerativeAIModels.js +1 -0
  67. package/dist/esm/shared/interfaces/messageAPI/endpoints.js +2 -0
  68. package/dist/esm/shared/interfaces/messageAPI/handover.js +2 -2
  69. package/dist/esm/shared/interfaces/resources/IAiAgent.js +10 -0
  70. package/dist/esm/shared/interfaces/resources/IConnection.js +3 -2
  71. package/dist/esm/shared/interfaces/resources/IGlobalResource.js +2 -0
  72. package/dist/esm/shared/interfaces/resources/ILargeLanguageModel.js +10 -1
  73. package/dist/esm/shared/interfaces/resources/intent/IDefaultReply.js +0 -1
  74. package/package.json +2 -2
  75. package/types/index.d.ts +264 -95
package/types/index.d.ts CHANGED
@@ -1982,7 +1982,7 @@ declare const analyticsSourceTypes: readonly [
1982
1982
  export interface IBaseAnalyticsSourceData extends IBaseAnalyticsData {
1983
1983
  intentScore: number;
1984
1984
  intentFlow: string;
1985
- understood: boolean;
1985
+ understood: boolean | null;
1986
1986
  type: TAnalyticsType;
1987
1987
  source: TAnalyticsSource;
1988
1988
  schemaVersion: number;
@@ -2536,6 +2536,8 @@ export interface ICallEventFailoverSettings {
2536
2536
  dialCallerId?: string;
2537
2537
  dialMusic?: string;
2538
2538
  dialTimeout?: number;
2539
+ enableTimeLimit?: boolean;
2540
+ timeLimit?: number;
2539
2541
  dialTranscribeEnabled?: boolean;
2540
2542
  dialTranscribeVendor?: string;
2541
2543
  dialTranscribeLanguage?: string;
@@ -2946,8 +2948,8 @@ export interface IWebchatEndpointSharedSettings extends ITypingIndicatorSettings
2946
2948
  */
2947
2949
  enableFileUpload: boolean;
2948
2950
  /**
2949
- * Whether to display a persistent
2950
- * menu in the Webchat.
2951
+ * Whether to display a persistent
2952
+ * menu in the Webchat.
2951
2953
  */
2952
2954
  enablePersistentMenu: boolean;
2953
2955
  /**
@@ -3207,6 +3209,15 @@ export interface IWebchat3EndpointLayoutSettings {
3207
3209
  * of input messages with a delay for the webchat
3208
3210
  */
3209
3211
  enableInputCollation: boolean;
3212
+ /**
3213
+ * Whether to display a persistent
3214
+ * menu in the Webchat.
3215
+ */
3216
+ enablePersistentMenu: boolean;
3217
+ /**
3218
+ * The persistent menu for the webchat
3219
+ */
3220
+ persistentMenu: IWebchatPersistentMenu;
3210
3221
  /**
3211
3222
  * This setting configures the delay for the automatic
3212
3223
  * input collation in miliseconds. Defaults to 1000
@@ -3252,6 +3263,18 @@ export interface IWebchat3EndpointLayoutSettings {
3252
3263
  * Advanced watermark URL settings for the webchat
3253
3264
  */
3254
3265
  watermarkUrl: string;
3266
+ /**
3267
+ * Setting to hide the chat bubble around AI Agent Messages
3268
+ */
3269
+ disableBotOutputBorder: boolean;
3270
+ /**
3271
+ * Set a number that will be used as a percentage value for the max-width of AI Agent Messages
3272
+ */
3273
+ botOutputMaxWidthPercentage: number;
3274
+ /**
3275
+ * Configure the width of the Webchat in px
3276
+ */
3277
+ chatWindowWidth: number;
3255
3278
  }
3256
3279
  export interface IWebchat3EndpointColorsSettings {
3257
3280
  /**
@@ -3335,6 +3358,23 @@ export interface IWebchat3EndpointBehaviorSettings {
3335
3358
  * a connectivity indicator should be displayed
3336
3359
  */
3337
3360
  enableConnectionStatusIndicator: boolean;
3361
+ /**
3362
+ * This setting enables collation of streamed
3363
+ * messages into one message bubble.
3364
+ */
3365
+ collateStreamedOutputs: boolean;
3366
+ /**
3367
+ * This setting enables output messages to appear progressively.
3368
+ */
3369
+ progressiveMessageRendering: boolean;
3370
+ /**
3371
+ * Whether the webchat renders Text messages as markdown
3372
+ */
3373
+ renderMarkdown: boolean;
3374
+ /**
3375
+ * This setting determines how scrolling behaves if chat is scrolled to bottom and a new message comes in.
3376
+ */
3377
+ scrollingBehavior: string;
3338
3378
  }
3339
3379
  export interface IWebchat3EndpointStartBehaviorSettings {
3340
3380
  /**
@@ -4186,6 +4226,7 @@ declare const generativeAIModels: readonly [
4186
4226
  "amazon.nova-pro-v1:0",
4187
4227
  "amazon.nova-micro-v1:0",
4188
4228
  "anthropic.claude-3-5-sonnet-20240620-v1:0",
4229
+ "claude-3-7-sonnet-20250219",
4189
4230
  "text-embedding-3-small",
4190
4231
  "text-embedding-3-large",
4191
4232
  "text-embedding-ada-002",
@@ -8414,10 +8455,85 @@ export interface IGraphAgentAssistConfig {
8414
8455
  referenceId: string;
8415
8456
  properties: Pick<IAgentAssistConfig, "createdAt" | "createdBy" | "lastChanged" | "lastChangedBy">;
8416
8457
  }
8458
+ /**
8459
+ * @openapi
8460
+ * components:
8461
+ * parameters:
8462
+ * globalResourceQueryParam:
8463
+ * in: query
8464
+ * name: resourceLevel
8465
+ * description: Scope of the resource (global "organisation" or project).
8466
+ * required: false
8467
+ * schema:
8468
+ * $ref: '#/components/schemas/ResourceLevel'
8469
+ * schemas:
8470
+ * ResourceLevel:
8471
+ * type: string
8472
+ * enum:
8473
+ * - organisation
8474
+ * - project
8475
+ * description: General scope of the resource.
8476
+ * default: project
8477
+ *
8478
+ * ProjectScopedResource:
8479
+ * type: object
8480
+ * properties:
8481
+ * resourceLevel:
8482
+ * type: string
8483
+ * enum:
8484
+ * - project
8485
+ * description: Scope for project-level resources.
8486
+ *
8487
+ * GlobalScopedResource:
8488
+ * type: object
8489
+ * properties:
8490
+ * resourceLevel:
8491
+ * type: string
8492
+ * enum:
8493
+ * - organisation
8494
+ * description: Scope for globally scoped resources.
8495
+ * required:
8496
+ * - resourceLevel
8497
+ *
8498
+ * AssignedToProjects:
8499
+ * type: object
8500
+ * properties:
8501
+ * assignedToProjects:
8502
+ * type: array
8503
+ * items:
8504
+ * type: string
8505
+ * description: MongoDB ObjectId representing a project
8506
+ *
8507
+ * IGlobalResourceFields_2_0:
8508
+ * allOf:
8509
+ * - $ref: '#/components/schemas/GlobalScopedResource'
8510
+ * - $ref: '#/components/schemas/AssignedToProjects'
8511
+ *
8512
+ * IProjectResourceFields_2_0:
8513
+ * $ref: '#/components/schemas/ProjectScopedResource'
8514
+ *
8515
+ * IGlobalResourceData:
8516
+ * allOf:
8517
+ * - $ref: '#/components/schemas/IGlobalResourceFields_2_0'
8518
+ * - type: object
8519
+ * properties:
8520
+ * id:
8521
+ * type: string
8522
+ * description: The unique identifier for the resource.
8523
+ * example: 507f191e810c19729de860eb
8524
+ *
8525
+ * IGlobalResource:
8526
+ * allOf:
8527
+ * - $ref: '#/components/schemas/IGlobalResourceData'
8528
+ */
8529
+ export interface IGlobalResource {
8530
+ resourceLevel?: "organisation" | "project";
8531
+ assignedToProjects?: TMongoId[];
8532
+ }
8417
8533
  export interface IConnectionFields {
8418
8534
  [key: string]: string;
8419
8535
  }
8420
- export interface IConnection extends IEntityMeta {
8536
+ export interface IConnection extends IEntityMeta, Pick<IGlobalResource, "resourceLevel"> {
8421
8537
  _id: TMongoId;
8422
8538
  referenceId: string;
8423
8539
  name: string;
@@ -8483,7 +8599,7 @@ export declare type TLLMFallback = {
8483
8599
  emailNotificationList: string[];
8484
8600
  };
8485
8601
  };
8486
- export interface ILargeLanguageModel extends IEntityMeta {
8602
+ export interface ILargeLanguageModel extends IEntityMeta, IGlobalResource {
8487
8603
  _id: TMongoId;
8488
8604
  referenceId: string;
8489
8605
  name: string;
@@ -8495,7 +8611,7 @@ export interface ILargeLanguageModel extends IEntityMeta {
8495
8611
  provider: TGenerativeAIProviders;
8496
8612
  connectionId: string;
8497
8613
  isDefault: boolean;
8498
- projectReference: TMongoId;
8614
+ projectReference?: TMongoId;
8499
8615
  organisationReference: TMongoId;
8500
8616
  azureOpenAI?: IAzureOpenAIMeta;
8501
8617
  googleVertexAI?: IGoogleVertexAIMeta;
@@ -9231,6 +9347,12 @@ export interface ISpeakingStyle {
9231
9347
  formality: string;
9232
9348
  [key: string]: string;
9233
9349
  }
9350
+ export interface IVoiceConfigParams {
9351
+ ttsVoice: string;
9352
+ ttsLanguage: string;
9353
+ ttsVendor: TVoiceGateway2TTSVendor | "none";
9354
+ ttsModel: string;
9355
+ }
9234
9356
  declare const contactProfileOptions: readonly [
9235
9357
  "none",
9236
9358
  "selectedProfileFields",
@@ -9252,6 +9374,8 @@ export interface IAiAgent extends IEntityMeta {
9252
9374
  knowledgeReferenceId: string;
9253
9375
  description: string;
9254
9376
  speakingStyle: ISpeakingStyle;
9377
+ voiceConfigs: IVoiceConfigParams;
9378
+ enableVoiceConfigs: boolean;
9255
9379
  safetySettings: ISafetySettings;
9256
9380
  instructions: string;
9257
9381
  contactProfilesOption: TContactProfileOptions;
@@ -9982,6 +10106,10 @@ export interface IRunGenerativeAIPromptOptions {
9982
10106
  maxImageFileSizeInBytes?: number;
9983
10107
  };
9984
10108
  };
10109
+ /**
10110
+ * Option to prevent the replacing of \n with " " in streamed outputs
10111
+ */
10112
+ preventNewLineRemoval?: boolean;
9985
10113
  }
9986
10114
  export interface IAzureOpenAIProviderFieldsV2 {
9987
10115
  apiKey: string;
@@ -14496,7 +14624,7 @@ export interface IComposeSnapshotDownloadLinkRestReturnValue_2_0 {
14496
14624
  * description: The type of connection.
14497
14625
  * - $ref: '#/components/schemas/IEntityMeta'
14498
14626
  */
14499
- export interface IConnectionIndexItem_2_0 {
14627
+ export interface IConnectionIndexItem_2_0 extends Pick<IGlobalResource, "resourceLevel"> {
14500
14628
  _id: TMongoId;
14501
14629
  referenceId: string;
14502
14630
  name: string;
@@ -14508,7 +14636,7 @@ export interface IConnectionIndexItem_2_0 {
14508
14636
  createdBy: TMongoId;
14509
14637
  lastChangedBy: TMongoId;
14510
14638
  }
14511
- export interface IIndexConnectionsRestData_2_0 extends IRestPagination<IConnectionIndexItem_2_0>, Partial<IProjectScope> {
14639
+ export interface IIndexConnectionsRestData_2_0 extends IRestPagination<IConnectionIndexItem_2_0>, Pick<IGlobalResource, "resourceLevel">, Partial<IProjectScope> {
14512
14640
  }
14513
14641
  export interface IIndexConnectionsRestReturnValue_2_0 extends ICursorBasedPaginationReturnValue<IConnectionIndexItem_2_0> {
14514
14642
  }
@@ -14579,7 +14707,7 @@ export interface IIndexConnectionsRestReturnValue_2_0 extends ICursorBasedPagina
14579
14707
  * - $ref: '#/components/schemas/IConnectionData_2_0'
14580
14708
  * - $ref: '#/components/schemas/IEntityMeta'
14581
14709
  */
14582
- export interface IConnection_2_0 {
14710
+ export interface IConnection_2_0 extends Pick<IGlobalResource, "resourceLevel"> {
14583
14711
  referenceId: string;
14584
14712
  _id: TMongoId;
14585
14713
  name: string;
@@ -16059,6 +16187,8 @@ export interface ITransferNodeParams extends INodeFunctionBaseParams {
16059
16187
  dialCallerId?: string;
16060
16188
  dialMusic?: string;
16061
16189
  dialTimeout?: number;
16190
+ enableTimeLimit?: boolean;
16191
+ timeLimit?: number;
16062
16192
  dialTranscriptionWebhook?: string;
16063
16193
  recognitionChannel: number;
16064
16194
  sttLanguage: string;
@@ -16633,103 +16763,111 @@ export interface IGoogleGeminiMeta_2_0 {
16633
16763
  *
16634
16764
  * components:
16635
16765
  * schemas:
16636
- * ILargeLanguageModelFields_2_0:
16637
- * allOf:
16638
- * - type: object
16639
- * required: ['name', 'modelType', 'provider', 'connectionId']
16766
+ * ILargeLanguageModelFieldsBase_2_0:
16767
+ * type: object
16768
+ * required: ['name', 'modelType', 'provider', 'connectionId']
16769
+ * properties:
16770
+ * name:
16771
+ * type: string
16772
+ * example: "LLM Name"
16773
+ * description:
16774
+ * type: string
16775
+ * example: "LLM meaningful description"
16776
+ * modelType:
16777
+ * $ref: '#/components/schemas/TGenerativeAIModels'
16778
+ * modelGroup:
16779
+ * $ref: '#/components/schemas/TModelGroups'
16780
+ * isCustomModel:
16781
+ * type: boolean
16782
+ * example: true
16783
+ * provider:
16784
+ * $ref: '#/components/schemas/TGenerativeAIProviders'
16785
+ * connectionId:
16786
+ * type: string
16787
+ * description: The reference id of the GenerativeAI Provider Connection
16788
+ * format: uuid
16789
+ * openAI:
16790
+ * type: object
16791
+ * description: OpenAI specific meta data
16640
16792
  * properties:
16641
- * name:
16793
+ * customModel:
16642
16794
  * type: string
16643
- * example: "LLM Name"
16644
- * description:
16795
+ * example: gpt-4-32k-0613
16796
+ * description: The custom model name. This does not work with embedding models
16797
+ * anthropic:
16798
+ * type: object
16799
+ * description: Anthropic specific meta data
16800
+ * properties:
16801
+ * customModel:
16645
16802
  * type: string
16646
- * example: "LLM meaningful description"
16647
- * modelType:
16648
- * $ref: '#/components/schemas/TGenerativeAIModels'
16649
- * modelGroup:
16650
- * $ref: '#/components/schemas/TModelGroups'
16651
- * isCustomModel:
16652
- * type: boolean
16653
- * example: true
16654
- * provider:
16655
- * $ref: '#/components/schemas/TGenerativeAIProviders'
16656
- * connectionId:
16803
+ * example: claude-3-opus-20240229
16804
+ * description: The custom model name. This does not work with embedding models
16805
+ * azureOpenAI:
16806
+ * type: object
16807
+ * description: Azure OpenAI specific meta data
16808
+ * properties:
16809
+ * resourceName:
16657
16810
  * type: string
16658
- * description: The reference id of the GenerativeAI Provider Connection
16659
- * format: uuid
16811
+ * deploymentName:
16812
+ * type: string
16813
+ * apiVersion:
16814
+ * type: string
16815
+ * baseCustomUrl:
16816
+ * type: string
16817
+ * example:
16818
+ * - https://<resourceName>.openai.azure.com/openai/deployments/<deploymentName>/chat/completions?api-version=<apiVersion>
16819
+ * - https://<resourceName>.openai.azure.com/openai/deployments/<deploymentName>/completions?api-version=<apiVersion>
16820
+ * - https://<resourceName>.openai.azure.com/openai/deployments/<deploymentName>/embeddings?api-version=<apiVersion>
16821
+ * googleVertexAI:
16822
+ * type: object
16823
+ * description: Google VertexAI specific meta data
16824
+ * properties:
16825
+ * location:
16826
+ * type: string
16827
+ * apiEndpoint:
16828
+ * type: string
16829
+ * publisher:
16830
+ * type: string
16831
+ * googleGemini:
16832
+ * type: object
16833
+ * description: Google Gemini specific meta data
16834
+ * properties:
16835
+ * location:
16836
+ * type: string
16837
+ * alephAlpha:
16838
+ * type: object
16839
+ * description: Aleph Alpha specific meta data
16840
+ * properties:
16841
+ * customModel:
16842
+ * type: string
16843
+ * example: luminous-003
16844
+ * description: The custom model name. This does not work with embedding models
16845
+ * baseCustomUrl:
16846
+ * type: string
16847
+ * example: https://api.aleph-alpha.com
16848
+ *
16849
+ * ILargeLanguageModelFields_2_0:
16850
+ * allOf:
16851
+ * - $ref: '#/components/schemas/ILargeLanguageModelFieldsBase_2_0'
16852
+ * - $ref: '#/components/schemas/IProjectResourceFields_2_0'
16853
+ * - type: object
16854
+ * properties:
16660
16855
  * isDefault:
16661
16856
  * type: boolean
16662
16857
  * description: Sets the LLM to default (fallback) if no other LLM is set
16663
16858
  * example: false
16664
- * openAI:
16665
- * type: object
16666
- * description: OpenAI specific meta data
16667
- * properties:
16668
- * customModel:
16669
- * type: string
16670
- * example: gpt-4-32k-0613
16671
- * description: The custom model name. This does not work with embedding models
16672
- * anthropic:
16673
- * type: object
16674
- * description: Anthropic specific meta data
16675
- * properties:
16676
- * customModel:
16677
- * type: string
16678
- * example: claude-3-opus-20240229
16679
- * description: The custom model name. This does not work with embedding models
16680
- * azureOpenAI:
16681
- * type: object
16682
- * description: Azure OpenAI specific meta data
16683
- * properties:
16684
- * resourceName:
16685
- * type: string
16686
- * deploymentName:
16687
- * type: string
16688
- * apiVersion:
16689
- * type: string
16690
- * baseCustomUrl:
16691
- * type: string
16692
- * example:
16693
- * - https://<resourceName>.openai.azure.com/openai/deployments/<deploymentName>/chat/completions?api-version=<apiVersion>
16694
- * - https://<resourceName>.openai.azure.com/openai/deployments/<deploymentName>/completions?api-version=<apiVersion>
16695
- * - https://<resourceName>.openai.azure.com/openai/deployments/<deploymentName>/embeddings?api-version=<apiVersion>
16696
- * googleVertexAI:
16697
- * type: object
16698
- * description: Google VertexAI specific meta data
16699
- * properties:
16700
- * location:
16701
- * type: string
16702
- * apiEndpoint:
16703
- * type: string
16704
- * publisher:
16705
- * type: string
16706
- * googleGemini:
16707
- * type: object
16708
- * description: Google Gemini specific meta data
16709
- * properties:
16710
- * location:
16711
- * type: string
16712
- * alephAlpha:
16713
- * type: object
16714
- * description: Aleph Alpha specific meta data
16715
- * properties:
16716
- * customModel:
16717
- * type: string
16718
- * example: luminous-003
16719
- * description: The custom model name. This does not work with embedding models
16720
- * baseCustomUrl:
16721
- * type: string
16722
- * example: https://api.aleph-alpha.com
16723
16859
  * fallbacks:
16724
16860
  * type: array
16725
16861
  * description: (alpha feature) specifies a fallback LLM that will be used when the current LLM stops working.
16726
16862
  * items:
16727
16863
  * $ref: '#/components/schemas/ILLMFallback_2_0'
16728
- *
16864
+ * IGlobalLargeLanguageModelFields_2_0:
16865
+ * allOf:
16866
+ * - $ref: '#/components/schemas/ILargeLanguageModelFieldsBase_2_0'
16867
+ * - $ref: '#/components/schemas/IGlobalResourceFields_2_0'
16729
16868
  * ILargeLanguageModelCreate_2_0:
16730
16869
  * allOf:
16731
16870
  * - $ref: '#/components/schemas/ILargeLanguageModelFields_2_0'
16732
- *
16733
16871
  * ILargeLanguageModelData_2_0:
16734
16872
  * allOf:
16735
16873
  * - $ref: '#/components/schemas/ILargeLanguageModelFields_2_0'
@@ -16739,13 +16877,25 @@ export interface IGoogleGeminiMeta_2_0 {
16739
16877
  * type: string
16740
16878
  * description: The reference id of the LargeLanguageModel
16741
16879
  * format: uuid
16742
- *
16880
+ * IGlobalLargeLanguageModelData_2_0:
16881
+ * allOf:
16882
+ * - $ref: '#/components/schemas/IGlobalLargeLanguageModelFields_2_0'
16883
+ * - type: object
16884
+ * properties:
16885
+ * referenceId:
16886
+ * type: string
16887
+ * description: The reference id of the LargeLanguageModel
16888
+ * format: uuid
16889
+ * IGlobalLargeLanguageModel_2_0:
16890
+ * allOf:
16891
+ * - $ref: '#/components/schemas/IGlobalLargeLanguageModelData_2_0'
16892
+ * - $ref: '#/components/schemas/IEntityMeta'
16743
16893
  * ILargeLanguageModel_2_0:
16744
16894
  * allOf:
16745
16895
  * - $ref: '#/components/schemas/ILargeLanguageModelData_2_0'
16746
16896
  * - $ref: '#/components/schemas/IEntityMeta'
16747
16897
  */
16748
- export interface ILargeLanguageModel_2_0 {
16898
+ export interface ILargeLanguageModel_2_0 extends IGlobalResource {
16749
16899
  referenceId: string;
16750
16900
  _id: TMongoId;
16751
16901
  name: string;
@@ -16811,7 +16961,7 @@ export interface ILargeLanguageModel_2_0 {
16811
16961
  * example: false
16812
16962
  * - $ref: '#/components/schemas/IEntityMeta'
16813
16963
  */
16814
- export interface ILargeLanguageModelIndexItem_2_0 {
16964
+ export interface ILargeLanguageModelIndexItem_2_0 extends IGlobalResource {
16815
16965
  referenceId: string;
16816
16966
  _id: TMongoId;
16817
16967
  name: string;
@@ -16827,11 +16977,11 @@ export interface ILargeLanguageModelIndexItem_2_0 {
16827
16977
  createdBy: TMongoId;
16828
16978
  lastChangedBy: TMongoId;
16829
16979
  }
16830
- export interface IIndexLargeLanguageModelsRestData_2_0 extends IRestPagination<ILargeLanguageModelIndexItem_2_0>, Partial<IProjectScope>, Partial<IGenerativeAIUseCase> {
16980
+ export interface IIndexLargeLanguageModelsRestData_2_0 extends IRestPagination<ILargeLanguageModelIndexItem_2_0>, Pick<IGlobalResource, "resourceLevel">, Partial<IProjectScope>, Partial<IGenerativeAIUseCase> {
16831
16981
  }
16832
16982
  export interface IIndexLargeLanguageModelsRestReturnValue_2_0 extends ICursorBasedPaginationReturnValue<ILargeLanguageModelIndexItem_2_0> {
16833
16983
  }
16834
- export interface ICreateLargeLanguageModelRestDataBody_2_0 extends IProjectScope, Partial<Omit<ILargeLanguageModel_2_0, keyof IEntityMeta>> {
16984
+ export interface ICreateLargeLanguageModelRestDataBody_2_0 extends Partial<IProjectScope>, Partial<Omit<ILargeLanguageModel_2_0, keyof IEntityMeta>> {
16835
16985
  }
16836
16986
  export interface ICreateLargeLanguageModelRestData_2_0 extends ICreateLargeLanguageModelRestDataBody_2_0 {
16837
16987
  }
@@ -17646,6 +17796,23 @@ export interface IGenerateNluScoresRestReturnValue_2_0 {
17646
17796
  * formality:
17647
17797
  * type: string
17648
17798
  * example: { "completeness": "concise", "formality": "formal" }
17799
+ * voiceConfigs:
17800
+ * type: object
17801
+ * properties:
17802
+ * ttsVoice:
17803
+ * type: string
17804
+ * ttsLanguage:
17805
+ * type: string
17806
+ * ttsVendor:
17807
+ * enum: ["aws", "deepgram", "elevenlabs", "google", "microsoft", "nuance", "default", "custom", "none"]
17808
+ * type: string
17809
+ * ttsModel:
17810
+ * type: string
17811
+ * example: { "ttsVoice": "Xb7hH8MSUJpSbSDYk0k2", "ttsLanguage": "zh", "ttsVendor": "Elevenlabs", "ttsModel": "eleven_multilingual_v2" }
17812
+ * enableVoiceConfigs:
17813
+ * type: boolean
17814
+ * description: Enables the use of voice configuration.
17815
+ * example: false
17649
17816
  * safetySettings:
17650
17817
  * type: object
17651
17818
  * properties:
@@ -17692,6 +17859,8 @@ export interface IAiAgent_2_0 {
17692
17859
  knowledgeReferenceId: string;
17693
17860
  description: string;
17694
17861
  speakingStyle: ISpeakingStyle;
17862
+ voiceConfigs: IVoiceConfigParams;
17863
+ enableVoiceConfigs: boolean;
17695
17864
  safetySettings: ISafetySettings;
17696
17865
  contactProfilesOption: TContactProfileOptions;
17697
17866
  contactProfilesSelected: string[];