@cognigy/rest-api-client 2025.25.0 → 2026.1.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 (99) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/build/apigroups/ResourcesAPIGroup_2_0.js +14 -0
  3. package/build/apigroups/SimulationAPIGroup_2_0.js +15 -1
  4. package/build/authentication/AuthenticationAPI.js +1 -0
  5. package/build/shared/charts/createNodeDescriptor.js +1 -0
  6. package/build/shared/charts/descriptors/analytics/overwriteAnalytics.js +14 -0
  7. package/build/shared/charts/descriptors/analytics/updateProfile.js +5 -0
  8. package/build/shared/charts/descriptors/connectionNodes/smtp/emailNotification.js +7 -0
  9. package/build/shared/charts/descriptors/connectionNodes/smtp/sendEmail.js +9 -0
  10. package/build/shared/charts/descriptors/index.js +2 -0
  11. package/build/shared/charts/descriptors/message/question/question.js +5 -0
  12. package/build/shared/charts/descriptors/message/say.js +3 -0
  13. package/build/shared/charts/descriptors/service/agentTools/executeWorkflowTool.js +239 -0
  14. package/build/shared/charts/descriptors/service/agentTools/handoverToHumanAgentTool.js +783 -0
  15. package/build/shared/charts/descriptors/service/agentTools/sendEmailTool.js +33 -4
  16. package/build/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +23 -20
  17. package/build/shared/charts/descriptors/service/aiAgent/aiAgentJobCallMCPTool.js +4 -2
  18. package/build/shared/charts/descriptors/service/aiAgent/helpers/createToolDefinitions.js +3 -1
  19. package/build/shared/charts/descriptors/service/aiAgent/helpers/parseMcpHeaders.js +26 -0
  20. package/build/shared/charts/descriptors/service/handoverV2.js +1 -1
  21. package/build/shared/charts/descriptors/service/httpRequest.js +3 -0
  22. package/build/shared/charts/descriptors/service/index.js +5 -1
  23. package/build/shared/charts/descriptors/service/llmPrompt/LLMPromptV2.js +11 -4
  24. package/build/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +17 -11
  25. package/build/shared/charts/descriptors/voice/mappers/transfer.mapper.js +5 -5
  26. package/build/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +2 -2
  27. package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +13 -4
  28. package/build/shared/charts/descriptors/voicegateway2/nodes/transfer.js +4 -4
  29. package/build/shared/interfaces/amqpInterface.js +1 -0
  30. package/build/shared/interfaces/messageAPI/endpoints.js +1 -1
  31. package/build/shared/interfaces/resources/IChart.js +10 -1
  32. package/build/shared/interfaces/resources/IChartNode.js +32 -4
  33. package/build/shared/interfaces/resources/IEndpoint.js +1 -0
  34. package/build/shared/interfaces/resources/INodeDescriptorSet.js +8 -0
  35. package/build/shared/interfaces/resources/TResourceType.js +1 -0
  36. package/build/shared/interfaces/resources/chart/IChartExecutableNode.js +10 -1
  37. package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeConnector.js +49 -0
  38. package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeSource.js +1 -1
  39. package/build/shared/interfaces/restAPI/administration/user/v2.0/IExchangeCXoneTokenRest_2_0.js +3 -0
  40. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/ICreateKnowledgeConnectorRest_2_0.js +3 -0
  41. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IDeleteKnowledgeConnectorRest_2_0.js +3 -0
  42. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IIndexKnowledgeConnectorsRest_2_0.js +3 -0
  43. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IKnowledgeConnector_2_0.js +3 -0
  44. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IReadKnowledgeConnectorRest_2_0.js +3 -0
  45. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IUpdateKnowledgeConnectorRest_2_0.js +3 -0
  46. package/build/shared/interfaces/restAPI/simulation/scheduler/ICreateSchedulerRest_2_0.js +3 -0
  47. package/build/shared/interfaces/restAPI/simulation/scheduler/IGetSchedulerRest_2_0.js +3 -0
  48. package/build/shared/interfaces/restAPI/simulation/scheduler/ISchedulerRest_2_0.js +12 -0
  49. package/build/shared/interfaces/restAPI/simulation/scheduler/IUpdateSchedulerRest_2_0.js +3 -0
  50. package/dist/esm/apigroups/ResourcesAPIGroup_2_0.js +14 -0
  51. package/dist/esm/apigroups/SimulationAPIGroup_2_0.js +15 -1
  52. package/dist/esm/authentication/AuthenticationAPI.js +1 -0
  53. package/dist/esm/shared/charts/createNodeDescriptor.js +1 -0
  54. package/dist/esm/shared/charts/descriptors/analytics/overwriteAnalytics.js +14 -0
  55. package/dist/esm/shared/charts/descriptors/analytics/updateProfile.js +5 -0
  56. package/dist/esm/shared/charts/descriptors/connectionNodes/smtp/emailNotification.js +7 -0
  57. package/dist/esm/shared/charts/descriptors/connectionNodes/smtp/sendEmail.js +9 -0
  58. package/dist/esm/shared/charts/descriptors/index.js +3 -1
  59. package/dist/esm/shared/charts/descriptors/message/question/question.js +5 -0
  60. package/dist/esm/shared/charts/descriptors/message/say.js +3 -0
  61. package/dist/esm/shared/charts/descriptors/service/agentTools/executeWorkflowTool.js +237 -0
  62. package/dist/esm/shared/charts/descriptors/service/agentTools/handoverToHumanAgentTool.js +770 -0
  63. package/dist/esm/shared/charts/descriptors/service/agentTools/sendEmailTool.js +33 -4
  64. package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +23 -20
  65. package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJobCallMCPTool.js +4 -2
  66. package/dist/esm/shared/charts/descriptors/service/aiAgent/helpers/createToolDefinitions.js +3 -1
  67. package/dist/esm/shared/charts/descriptors/service/aiAgent/helpers/parseMcpHeaders.js +25 -0
  68. package/dist/esm/shared/charts/descriptors/service/handoverV2.js +1 -1
  69. package/dist/esm/shared/charts/descriptors/service/httpRequest.js +3 -0
  70. package/dist/esm/shared/charts/descriptors/service/index.js +2 -0
  71. package/dist/esm/shared/charts/descriptors/service/llmPrompt/LLMPromptV2.js +11 -4
  72. package/dist/esm/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +17 -11
  73. package/dist/esm/shared/charts/descriptors/voice/mappers/transfer.mapper.js +5 -5
  74. package/dist/esm/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +2 -2
  75. package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +13 -4
  76. package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/transfer.js +4 -4
  77. package/dist/esm/shared/interfaces/amqpInterface.js +1 -0
  78. package/dist/esm/shared/interfaces/messageAPI/endpoints.js +1 -1
  79. package/dist/esm/shared/interfaces/resources/IChart.js +10 -1
  80. package/dist/esm/shared/interfaces/resources/IChartNode.js +32 -4
  81. package/dist/esm/shared/interfaces/resources/IEndpoint.js +1 -0
  82. package/dist/esm/shared/interfaces/resources/INodeDescriptorSet.js +8 -0
  83. package/dist/esm/shared/interfaces/resources/TResourceType.js +1 -0
  84. package/dist/esm/shared/interfaces/resources/chart/IChartExecutableNode.js +10 -1
  85. package/dist/esm/shared/interfaces/resources/knowledgeStore/IKnowledgeConnector.js +46 -0
  86. package/dist/esm/shared/interfaces/resources/knowledgeStore/IKnowledgeSource.js +1 -1
  87. package/dist/esm/shared/interfaces/restAPI/administration/user/v2.0/IExchangeCXoneTokenRest_2_0.js +2 -0
  88. package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/ICreateKnowledgeConnectorRest_2_0.js +2 -0
  89. package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IDeleteKnowledgeConnectorRest_2_0.js +2 -0
  90. package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IIndexKnowledgeConnectorsRest_2_0.js +2 -0
  91. package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IKnowledgeConnector_2_0.js +2 -0
  92. package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IReadKnowledgeConnectorRest_2_0.js +2 -0
  93. package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IUpdateKnowledgeConnectorRest_2_0.js +2 -0
  94. package/dist/esm/shared/interfaces/restAPI/simulation/scheduler/ICreateSchedulerRest_2_0.js +2 -0
  95. package/dist/esm/shared/interfaces/restAPI/simulation/scheduler/IGetSchedulerRest_2_0.js +2 -0
  96. package/dist/esm/shared/interfaces/restAPI/simulation/scheduler/ISchedulerRest_2_0.js +9 -0
  97. package/dist/esm/shared/interfaces/restAPI/simulation/scheduler/IUpdateSchedulerRest_2_0.js +2 -0
  98. package/package.json +1 -1
  99. package/types/index.d.ts +528 -11
@@ -24,6 +24,7 @@ exports.referenceKeys = [
24
24
  "resourceReference",
25
25
  "snapshotReference",
26
26
  "subResourceReference",
27
+ "connectorReference",
27
28
  "storeReference",
28
29
  "sourceReference",
29
30
  ];
@@ -718,7 +718,7 @@ exports.anyEndpointSettingsSchema = {
718
718
  title: "anyEndpointSettingsSchema",
719
719
  type: "object",
720
720
  additionalProperties: true,
721
- properties: Object.assign({ action: { type: "string" }, accessScope: { type: "string" }, accessToken: { type: "string" }, appId: { type: "string" }, appSecret: { type: "string" }, backgroundImageUrl: { type: "string" }, basicAuthPassword: { type: "string" }, basicAuthUser: { type: "string" }, botUserId: { type: "string" }, colorScheme: { type: "string" }, connectionName: { type: "string" }, cpaasToken: { type: "string" }, customJSON: { type: "string" }, designTemplate: { type: "integer" }, disableHtmlContentSanitization: { type: "boolean" }, disableInputAutocomplete: { type: "boolean" }, disableUrlButtonSanitization: { type: "boolean" }, disableInputSanitization: { type: "boolean" }, disableSkipUriTags: { type: "boolean" }, enableAsyncCommunication: { type: "boolean" }, enableCollectMetadata: { type: "boolean" }, enableGenericHTMLStyling: { type: "boolean" }, enableDemoWebchat: { type: "boolean" }, enableFileUpload: { type: "boolean" }, enablePersistentMenu: { type: "boolean" }, enableRating: { type: "string", enum: ["always", "once", "onRequest"] }, enableSTT: { type: "boolean" }, enableTTS: { type: "boolean" }, enableTypingIndicator: { type: "boolean" }, enableFileAttachment: { type: "boolean" }, fileAttachmentMaxSize: { type: "number" }, facebookPageToken: { type: "string" }, finishOnKey: {
721
+ properties: Object.assign({ action: { type: "string" }, accessScope: { type: "string" }, accessToken: { type: "string" }, appId: { type: "string" }, appSecret: { type: "string" }, backgroundImageUrl: { type: "string" }, basicAuthPassword: { type: "string" }, basicAuthUser: { type: "string" }, botUserId: { type: "string" }, colorScheme: { type: "string" }, connectionName: { type: "string" }, cpaasToken: { type: "string" }, customJSON: { type: "string" }, designTemplate: { type: "integer" }, disableHtmlContentSanitization: { type: "boolean" }, disableInputAutocomplete: { type: "boolean" }, disableUrlButtonSanitization: { type: "boolean" }, disableInputSanitization: { type: "boolean" }, disableSkipUriTags: { type: "boolean" }, enableAsyncCommunication: { type: "boolean" }, enableCollectMetadata: { type: "boolean" }, enableGenericHTMLStyling: { type: "boolean" }, enableDemoWebchat: { type: "boolean" }, enableFileUpload: { type: "boolean" }, enableMocking: { type: "boolean" }, enablePersistentMenu: { type: "boolean" }, enableRating: { type: "string", enum: ["always", "once", "onRequest"] }, enableSTT: { type: "boolean" }, enableTTS: { type: "boolean" }, enableTypingIndicator: { type: "boolean" }, enableFileAttachment: { type: "boolean" }, fileAttachmentMaxSize: { type: "number" }, facebookPageToken: { type: "string" }, finishOnKey: {
722
722
  type: "string",
723
723
  enum: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "*", "#"]
724
724
  }, workplaceToken: { type: "string" }, foreignId: { type: "string" }, gatherlanguage: {
@@ -16,7 +16,16 @@ exports.chartNodeExcerptSchema = {
16
16
  analyticsLabel: { type: ["null", "string"], format: "analytics-label" },
17
17
  type: { type: "string", maxLength: 200 },
18
18
  extension: { type: "string", format: "package-name" },
19
- localeReference: { type: "string", format: "mongo-id" }
19
+ localeReference: { type: "string", format: "mongo-id" },
20
+ mock: {
21
+ type: "object",
22
+ properties: {
23
+ isEnabled: { type: "boolean" },
24
+ code: { type: "string" },
25
+ transpiled: { type: "string" },
26
+ hasError: { type: "boolean" }
27
+ }
28
+ }
20
29
  },
21
30
  };
22
31
  exports.chartNodeRelationDataSchema = {
@@ -16,7 +16,8 @@ exports.defaultNodeFields = [
16
16
  "isDisabled",
17
17
  "isEntryPoint",
18
18
  "preview",
19
- "analyticsLabel"
19
+ "analyticsLabel",
20
+ "mock"
20
21
  ];
21
22
  exports.searchableNodeFields = [
22
23
  "comment",
@@ -63,7 +64,16 @@ exports.nodeInDBSchema = {
63
64
  resourceReference: { format: "mongo-id" },
64
65
  projectReference: { format: "mongo-id" },
65
66
  organisationReference: { format: "mongo-id" },
66
- analyticsLabel: { format: "analytics-label" }
67
+ analyticsLabel: { format: "analytics-label" },
68
+ mock: {
69
+ type: "object",
70
+ properties: {
71
+ isEnabled: { type: "boolean" },
72
+ code: { type: "string" },
73
+ transpiled: { type: "string" },
74
+ hasError: { type: "boolean" }
75
+ }
76
+ },
67
77
  }
68
78
  };
69
79
  exports.nodeDataSchema = {
@@ -100,7 +110,16 @@ exports.nodeDataSchema = {
100
110
  }
101
111
  }
102
112
  }
103
- }
113
+ },
114
+ mock: {
115
+ type: "object",
116
+ properties: {
117
+ isEnabled: { type: "boolean" },
118
+ code: { type: "string" },
119
+ transpiled: { type: "string" },
120
+ hasError: { type: "boolean" }
121
+ }
122
+ },
104
123
  }
105
124
  };
106
125
  exports.updateNodeDataSchema = {
@@ -123,7 +142,16 @@ exports.updateNodeDataSchema = {
123
142
  config: {
124
143
  type: "object",
125
144
  additionalProperties: { propertyNames: { type: "string" } }
126
- }
145
+ },
146
+ mock: {
147
+ type: "object",
148
+ properties: {
149
+ isEnabled: { type: "boolean" },
150
+ code: { type: "string" },
151
+ transpiled: { type: "string" },
152
+ hasError: { type: "boolean" }
153
+ }
154
+ },
127
155
  }
128
156
  };
129
157
  exports.nodeSchema = {
@@ -74,6 +74,7 @@ exports.endpointDataSchema = {
74
74
  active: { type: "boolean" },
75
75
  },
76
76
  },
77
+ enableMocking: { type: "boolean" },
77
78
  },
78
79
  };
79
80
  exports.endpointSchema = {
@@ -101,6 +101,7 @@ exports.nodeFieldTypes = [
101
101
  "checkAgentAvailabilityConfig",
102
102
  "chipInput",
103
103
  "code",
104
+ "mockCode",
104
105
  "cognigyLLMText",
105
106
  "cognigyText",
106
107
  "cognigyTextArray",
@@ -445,6 +446,13 @@ exports.nodeDescriptorSchema = {
445
446
  additionalItems: false,
446
447
  maxLength: 25,
447
448
  items: exports.nodeFieldAndSectionFormElementSchema
449
+ },
450
+ mocking: {
451
+ type: "object",
452
+ additionalProperties: false,
453
+ properties: {
454
+ defaultMockCode: { type: "string" }
455
+ }
448
456
  }
449
457
  }
450
458
  };
@@ -72,6 +72,7 @@ exports.arrayTResourceType = [
72
72
  "knowledgeStore",
73
73
  "knowledgeSource",
74
74
  "knowledgeChunk",
75
+ "knowledgeConnector",
75
76
  "lexicon",
76
77
  "lexiconEntry",
77
78
  "lexiconKeyphrase",
@@ -51,7 +51,16 @@ exports.chartExecutableNodeSchema = {
51
51
  type: { type: "string", minLength: 1 },
52
52
  label: IChartNode_1.nodeDataSchema.properties.label,
53
53
  extension: { type: "string" },
54
- analyticsLabel: { type: ["string", "null"], format: "analytics-label" }
54
+ analyticsLabel: { type: ["string", "null"], format: "analytics-label" },
55
+ mock: {
56
+ type: "object",
57
+ properties: {
58
+ isEnabled: { type: "boolean" },
59
+ code: { type: "string" },
60
+ transpiled: { type: "string" },
61
+ hasError: { type: "boolean" },
62
+ }
63
+ }
55
64
  },
56
65
  };
57
66
  //# sourceMappingURL=IChartExecutableNode.js.map
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.knowledgeConnectorSchema = exports.knowledgeConnectorDataSchema = exports.knowledgeConnectorExecutionStatus = void 0;
4
+ const IEntityMeta_1 = require("../IEntityMeta");
5
+ exports.knowledgeConnectorExecutionStatus = ["none", "queued", "active", "done", "error"];
6
+ exports.knowledgeConnectorDataSchema = {
7
+ title: "knowledgeConnectorDataSchema",
8
+ type: "object",
9
+ additionalProperties: false,
10
+ required: ["extension", "type", "config", "name", "version"],
11
+ properties: {
12
+ extension: { type: "string" },
13
+ type: { type: "string" },
14
+ version: { type: "string" },
15
+ config: {
16
+ type: "object",
17
+ additionalProperties: true
18
+ },
19
+ name: { type: "string", format: "resource-name" },
20
+ schedule: {
21
+ type: "object",
22
+ additionalProperties: false,
23
+ properties: {
24
+ enabled: { type: "boolean" },
25
+ start: { type: "integer", format: "timestamp" },
26
+ hour: { type: "integer", minimum: 0, maximum: 23 },
27
+ minute: { type: "integer", minimum: 0, maximum: 59 },
28
+ weekDays: { type: "array", items: { type: "integer", minimum: 0, maximum: 6 } }
29
+ }
30
+ }
31
+ }
32
+ };
33
+ exports.knowledgeConnectorSchema = {
34
+ title: "knowledgeConnectorDataSchema",
35
+ type: "object",
36
+ additionalProperties: false,
37
+ required: [
38
+ "extension",
39
+ "type",
40
+ "config",
41
+ "name",
42
+ "version"
43
+ ],
44
+ properties: Object.assign(Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), exports.knowledgeConnectorDataSchema.properties), { referenceId: { type: "string" }, storeReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" }, lastExecution: { type: "integer", format: "timestamp" }, lastExecutionStatus: {
45
+ type: "string",
46
+ enum: [...exports.knowledgeConnectorExecutionStatus]
47
+ } })
48
+ };
49
+ //# sourceMappingURL=IKnowledgeConnector.js.map
@@ -37,6 +37,6 @@ exports.knowledgeSourceSchema = {
37
37
  title: "knowledgeSourceSchema",
38
38
  type: "object",
39
39
  additionalProperties: false,
40
- properties: Object.assign(Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), exports.knowledgeSourceDataSchema.properties), { referenceId: { type: "string", format: "uuid" }, storeReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }),
40
+ properties: Object.assign(Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), exports.knowledgeSourceDataSchema.properties), { referenceId: { type: "string", format: "uuid" }, storeReference: { type: "string", format: "mongo-id" }, connectorReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }),
41
41
  };
42
42
  //# sourceMappingURL=IKnowledgeSource.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IExchangeCXoneTokenRest_2_0.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ICreateKnowledgeConnectorRest_2_0.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IDeleteKnowledgeConnectorRest_2_0.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IIndexKnowledgeConnectorsRest_2_0.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IKnowledgeConnector_2_0.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IReadKnowledgeConnectorRest_2_0.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IUpdateKnowledgeConnectorRest_2_0.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ICreateSchedulerRest_2_0.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IGetSchedulerRest_2_0.js.map
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ESchedulerFrequencyRest_2_0 = void 0;
4
+ var ESchedulerFrequencyRest_2_0;
5
+ (function (ESchedulerFrequencyRest_2_0) {
6
+ ESchedulerFrequencyRest_2_0["DAILY"] = "daily";
7
+ ESchedulerFrequencyRest_2_0["EVERY_THREE_DAYS"] = "every three days";
8
+ ESchedulerFrequencyRest_2_0["WEEKLY"] = "weekly";
9
+ ESchedulerFrequencyRest_2_0["BIWEEKLY"] = "biweekly";
10
+ ESchedulerFrequencyRest_2_0["MONTHLY"] = "monthly";
11
+ })(ESchedulerFrequencyRest_2_0 = exports.ESchedulerFrequencyRest_2_0 || (exports.ESchedulerFrequencyRest_2_0 = {}));
12
+ //# sourceMappingURL=ISchedulerRest_2_0.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IUpdateSchedulerRest_2_0.js.map
@@ -617,6 +617,20 @@ export const ResourcesAPIGroup_2_0 = (instance) => {
617
617
  var { knowledgeStoreId, sourceId, chunkId } = _a, args = __rest(_a, ["knowledgeStoreId", "sourceId", "chunkId"]);
618
618
  return GenericAPIFn(`/new/v2.0/knowledgestores/${knowledgeStoreId}/sources/${sourceId}/chunks/${chunkId}`, "PATCH", self)(args, options);
619
619
  },
620
+ indexKnowledgeConnectors: (_a, options) => {
621
+ var { knowledgeStoreId } = _a, args = __rest(_a, ["knowledgeStoreId"]);
622
+ return GenericAPIFn(`/new/v2.0/knowledgestores/${knowledgeStoreId}/connectors?${stringifyQuery(args)}`, "GET", self)(undefined, options);
623
+ },
624
+ createKnowledgeConnector: (_a, options) => {
625
+ var { knowledgeStoreId } = _a, args = __rest(_a, ["knowledgeStoreId"]);
626
+ return GenericAPIFn(`/new/v2.0/knowledgestores/${knowledgeStoreId}/connectors`, "POST", self)(args, options);
627
+ },
628
+ readKnowledgeConnector: ({ knowledgeStoreId, connectorId }, options) => GenericAPIFn(`/new/v2.0/knowledgestores/${knowledgeStoreId}/connectors/${connectorId}`, "GET", self)(undefined, options),
629
+ updateKnowledgeConnector: (_a, options) => {
630
+ var { knowledgeStoreId, connectorId } = _a, args = __rest(_a, ["knowledgeStoreId", "connectorId"]);
631
+ return GenericAPIFn(`/new/v2.0/knowledgestores/${knowledgeStoreId}/connectors/${connectorId}`, "PATCH", self)(args, options);
632
+ },
633
+ deleteKnowledgeConnector: ({ knowledgeStoreId, connectorId }, options) => GenericAPIFn(`/new/v2.0/knowledgestores/${knowledgeStoreId}/connectors/${connectorId}`, "DELETE", self)(undefined, options),
620
634
  uploadResumable: (args) => GenericTusFn("/new/v2.0/uploads", self)(args),
621
635
  generateNluScores: (_a) => {
622
636
  var { projectId } = _a, args = __rest(_a, ["projectId"]);
@@ -51,7 +51,21 @@ export function SimulationAPIGroup_2_0(instance) {
51
51
  generatePersona: (args, options) => GenericAPIFn("/testing/beta/personas/generate", "POST", self)(args, options),
52
52
  regeneratePersonaField: (args, options) => GenericAPIFn("/testing/beta/personas/regenerate-field", "POST", self)(args, options),
53
53
  generateBulkPersona: (args, options) => GenericAPIFn("/testing/beta/personas/generate-bulk", "POST", self)(args, options),
54
- generatePersonaFromTranscript: (args, options) => GenericAPIFn("/testing/beta/personas/from-transcript", "POST", self)(args, options)
54
+ generatePersonaFromTranscript: (args, options) => GenericAPIFn("/testing/beta/personas/from-transcript", "POST", self)(args, options),
55
+ getScheduler: (_a, options) => {
56
+ var { simulationReference } = _a, args = __rest(_a, ["simulationReference"]);
57
+ return GenericAPIFn(`/testing/beta/simulations/${simulationReference}/schedules?${stringifyQuery(args)}`, "GET", self)(undefined, options);
58
+ },
59
+ createScheduler: (_a, options) => {
60
+ var { simulationReference } = _a, args = __rest(_a, ["simulationReference"]);
61
+ return GenericAPIFn(`/testing/beta/simulations/${simulationReference}/schedules`, "POST", self)(args, options);
62
+ },
63
+ updateScheduler: (_a, options) => {
64
+ var { simulationReference, schedulerId, projectId } = _a, args = __rest(_a, ["simulationReference", "schedulerId", "projectId"]);
65
+ return GenericAPIFn(`/testing/beta/simulations/${simulationReference}/schedules/${schedulerId}?${stringifyQuery({
66
+ projectId
67
+ })}`, "PATCH", self)(args, options);
68
+ }
55
69
  };
56
70
  }
57
71
  //# sourceMappingURL=SimulationAPIGroup_2_0.js.map
@@ -55,6 +55,7 @@ export function AuthenticationAPI(instance) {
55
55
  var { loginToken } = _a, args = __rest(_a, ["loginToken"]);
56
56
  return GenericAPIFn(`/auth/exchangetoken?${stringifyQuery({ loginToken })}`, "GET", self)(args, Object.assign({ withAuthentication: false, withCredentials: true }, options));
57
57
  },
58
+ exchangeCXoneToken: (args, options) => GenericAPIFn("/auth/exchangetoken/cxone", "POST", self)(args, Object.assign({ withAuthentication: false, withCredentials: true }, options)),
58
59
  generateManagementUIAuthToken: (args, options) => GenericAPIFn("/new/management/auth/token", "POST", self)(args, options)
59
60
  };
60
61
  }
@@ -22,6 +22,7 @@ export const createNodeDescriptor = (params) => {
22
22
  tags: tags || [],
23
23
  tokens: tokens || [],
24
24
  function: params.function || null,
25
+ mocking: params.mocking || { defaultMockCode: "" }
25
26
  };
26
27
  };
27
28
  export const createExtension = (params) => {
@@ -192,6 +192,20 @@ export const OVERWRITE_ANALYTICS = createNodeDescriptor({
192
192
  { type: "section", key: "defaultFields" }
193
193
  ],
194
194
  tags: ["analytics", "customize"],
195
+ mocking: {
196
+ defaultMockCode: `
197
+ analyticsdata.intent = 'intent override';
198
+ analyticsdata.inputText = 'inputText override';
199
+ analyticsdata.inputData = {data: 'inputData override'};
200
+ analyticsdata.intentScore = 0.8;
201
+ analyticsdata.slots = {
202
+ NUMBER: [
203
+ 1100
204
+ ]
205
+ };
206
+ analyticsdata.understood = true;
207
+ `
208
+ },
195
209
  function: ({ cognigy, config }) => __awaiter(void 0, void 0, void 0, function* () {
196
210
  const { api } = cognigy;
197
211
  let stringUpdateValue = "";
@@ -34,6 +34,11 @@ export const UPDATE_PROFILE = createNodeDescriptor({
34
34
  type: "text"
35
35
  },
36
36
  tags: ["analytics", "profile"],
37
+ mocking: {
38
+ defaultMockCode: `
39
+ profile.name = "John Doe"
40
+ `
41
+ },
37
42
  function: ({ cognigy, config }) => __awaiter(void 0, void 0, void 0, function* () {
38
43
  const { key, value } = config;
39
44
  const { api } = cognigy;
@@ -8,6 +8,12 @@ export const EMAIL_NOTIFICATION = createNodeDescriptor({
8
8
  defaultLabel: "Email Notification",
9
9
  summary: "UI__NODE_EDITOR__SMTP__EMAIL_NOTIFICATION__SUMMARY",
10
10
  fields: [
11
+ {
12
+ key: "senderName",
13
+ type: "cognigyText",
14
+ label: "UI__NODE_EDITOR__SMTP__EMAIL_NOTIFICATION__SENDER_NAME__LABEL",
15
+ description: "UI__NODE_EDITOR__SMTP__EMAIL_NOTIFICATION__SENDER_NAME__DESCRIPTION"
16
+ },
11
17
  {
12
18
  key: "recipient",
13
19
  type: "cognigyText",
@@ -160,6 +166,7 @@ export const EMAIL_NOTIFICATION = createNodeDescriptor({
160
166
  },
161
167
  ],
162
168
  form: [
169
+ { key: "senderName", type: "field" },
163
170
  { key: "recipient", type: "field" },
164
171
  { key: "subject", type: "field" },
165
172
  { key: "message", type: "field" },
@@ -171,6 +171,15 @@ export const SEND_EMAIL = createNodeDescriptor({
171
171
  label: "UI__NODE_EDITOR__SMTP__SEND_EMAIL__FROM__LABEL",
172
172
  description: "UI__NODE_EDITOR__SMTP__SEND_EMAIL__FROM__DESCRIPTION"
173
173
  },
174
+ {
175
+ key: "senderName",
176
+ type: "cognigyText",
177
+ label: "UI__NODE_EDITOR__SMTP__SEND_EMAIL__SENDER_NAME__LABEL",
178
+ description: "UI__NODE_EDITOR__SMTP__SEND_EMAIL__SENDER_NAME__DESCRIPTION",
179
+ params: {
180
+ required: true
181
+ }
182
+ },
174
183
  {
175
184
  key: "subject",
176
185
  type: "cognigyText",
@@ -11,7 +11,7 @@ import { REGEX_SLOT_FILLER, EXECUTE_COGNIGY_NLU, ADD_LEXICON_KEYPHRASE, FUZZY_SE
11
11
  import { KNOWLEDGE_SEARCH, KNOWLEDGE_SEARCH_V2, SEARCH_EXTRACT_OUTPUT } from "./knowledgeSearch";
12
12
  import { CONTINUOUS_ASR, DTMF, HANG_UP, PLAY, TRANSFER_VOICE, SESSION_SPEECH_PARAMETERS, USER_INPUT_TIMEOUT, SEND_METADATA, BARGE_IN, MUTE_SPEECH_INPUT, } from "./voice";
13
13
  import { ACTIVATE_PROFILE, COMPLETE_GOAL, DEACTIVATE_PROFILE, DELETE_PROFILE, MERGE_PROFILE, UPDATE_PROFILE, ADD_MEMORY, BLIND_MODE, OVERWRITE_ANALYTICS, SET_RATING, REQUEST_RATING, TRACK_GOAL, } from "./analytics";
14
- import { HANDOVER, HANDOVER_V2, CHECK_AGENT_AVAILABILITY, HTTP_REQUEST, HTTP_CONNECTION_BASIC, HTTP_CONNECTION_APIKEYAUTHKEY, HTTP_CONNECTION_APIKEYXKEY, HTTP_CONNECTION_OAUTH2, JWT_SECRET_CONNECTION, TRIGGER_FUNCTION, ON_SCHEDULING_ERROR, ON_SCHEDULED, GPT_PROMPT, LLM_PROMPT_V2, LLM_PROMPT_DEFAULT, LLM_PROMPT_MCP_TOOL, LLM_PROMPT_TOOL, CLOSE_HANDOVER, HANDOVER_INACTIVITY_TIMER, GPT_CONVERSATION, GPT_CONVERSATION_SUMMARY, LLM_ENTITY_EXTRACT, AI_AGENT_JOB, AI_AGENT_JOB_DEFAULT, AI_AGENT_JOB_TOOL, AI_AGENT_JOB_MCP_TOOL, AI_AGENT_JOB_CALL_MCP_TOOL, AI_AGENT_TOOL_ANSWER, KNOWLEDGE_TOOL, HANDOVER_TO_AI_AGENT_TOOL, SEND_EMAIL_TOOL, AI_AGENT_HANDOVER, LIVE_AGENT_CONNECTION, RINGCENTRAL_ENGAGE_CONNECTION, CHATWOOT_CONNECTION, EIGHT_BY_EIGHT_CONNECTION, GENESYS_CLOUD_CONNECTION, GENESYS_CLOUD_CONNECTION_OM, LLM_MODERATE, NICECXONEAAH_AUTHENTICATION_CONNECTION, LOAD_AI_AGENT, AIOPS_CENTER_WEBHOOKS_CONNECTION, STORM_CONNECTION, } from "./service";
14
+ import { HANDOVER, HANDOVER_V2, CHECK_AGENT_AVAILABILITY, HTTP_REQUEST, HTTP_CONNECTION_BASIC, HTTP_CONNECTION_APIKEYAUTHKEY, HTTP_CONNECTION_APIKEYXKEY, HTTP_CONNECTION_OAUTH2, JWT_SECRET_CONNECTION, TRIGGER_FUNCTION, ON_SCHEDULING_ERROR, ON_SCHEDULED, GPT_PROMPT, LLM_PROMPT_V2, LLM_PROMPT_DEFAULT, LLM_PROMPT_MCP_TOOL, LLM_PROMPT_TOOL, CLOSE_HANDOVER, HANDOVER_INACTIVITY_TIMER, GPT_CONVERSATION, GPT_CONVERSATION_SUMMARY, LLM_ENTITY_EXTRACT, AI_AGENT_JOB, AI_AGENT_JOB_DEFAULT, AI_AGENT_JOB_TOOL, AI_AGENT_JOB_MCP_TOOL, AI_AGENT_JOB_CALL_MCP_TOOL, AI_AGENT_TOOL_ANSWER, KNOWLEDGE_TOOL, HANDOVER_TO_AI_AGENT_TOOL, HANDOVER_TO_HUMAN_AGENT_TOOL, SEND_EMAIL_TOOL, EXECUTE_WORKFLOW_TOOL, AI_AGENT_HANDOVER, LIVE_AGENT_CONNECTION, RINGCENTRAL_ENGAGE_CONNECTION, CHATWOOT_CONNECTION, EIGHT_BY_EIGHT_CONNECTION, GENESYS_CLOUD_CONNECTION, GENESYS_CLOUD_CONNECTION_OM, LLM_MODERATE, NICECXONEAAH_AUTHENTICATION_CONNECTION, LOAD_AI_AGENT, AIOPS_CENTER_WEBHOOKS_CONNECTION, STORM_CONNECTION, } from "./service";
15
15
  import { INIT_APP_SESSION, GET_APP_SESSION_PIN, SET_HTML_APP_STATE, SET_ADAPTIVE_CARD_APP_STATE, } from "./apps";
16
16
  import { SET_IFRAME_TILE, SET_HTML_TILE, SEND_TILE_DATA, SET_SECURE_FORMS_TILE, SET_ADAPTIVE_CARD_TILE, SET_AGENT_ASSIST_GRID, NEXT_ACTION_ASSIST, SENTIMENT_ASSIST, TRANSCRIPT_ASSIST, IDENTITY_ASSIST, KNOWLEDGE_ASSIST, } from "./agentAssist";
17
17
  import { ASSIST_INFO } from "./liveAgent";
@@ -148,7 +148,9 @@ if (process.env.DISABLE_FEATURE_TRANSCRIPT_MANAGER !== "true") {
148
148
  nodes.push(AI_AGENT_TOOL_ANSWER);
149
149
  nodes.push(KNOWLEDGE_TOOL);
150
150
  nodes.push(HANDOVER_TO_AI_AGENT_TOOL);
151
+ nodes.push(HANDOVER_TO_HUMAN_AGENT_TOOL);
151
152
  nodes.push(SEND_EMAIL_TOOL);
153
+ nodes.push(EXECUTE_WORKFLOW_TOOL);
152
154
  nodes.push(AI_AGENT_HANDOVER);
153
155
  nodes.push(LOAD_AI_AGENT);
154
156
  }
@@ -1824,6 +1824,11 @@ DO NOT talk about other topics. Do not offer general assistance.`,
1824
1824
  type: "sayNode",
1825
1825
  },
1826
1826
  tags: ["basic", "message", "nlu"],
1827
+ mocking: {
1828
+ defaultMockCode: `
1829
+ context.result = "Mocked result";
1830
+ `
1831
+ },
1827
1832
  //#endregion DescriptorFields
1828
1833
  function: ({ cognigy, nodeId, organisationId, config, inputOptions }) => __awaiter(void 0, void 0, void 0, function* () {
1829
1834
  var _a, _b, _c;
@@ -86,6 +86,9 @@ export const SAY = createNodeDescriptor({
86
86
  type: "sayNode",
87
87
  },
88
88
  tags: ["basic", "message"],
89
+ mocking: {
90
+ defaultMockCode: `api.say("Hello from Mock Code!");`
91
+ },
89
92
  function: ({ cognigy, config, nodeId, organisationId, nodeType }) => __awaiter(void 0, void 0, void 0, function* () {
90
93
  var _a, _b, _c, _d, _e, _f, _g;
91
94
  const { api } = cognigy;