@cognigy/rest-api-client 0.11.0 → 0.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 (189) hide show
  1. package/.snyk +1 -1
  2. package/build/GenericUploadFn.js +1 -1
  3. package/build/RestAPIClient.js +14 -0
  4. package/build/apigroups/AdministrationAPIGroup_2_0.js +25 -3
  5. package/build/apigroups/AnalyticsAPIGroup_2_0.js +12 -0
  6. package/build/apigroups/InsightsAPIGroup_2_0.js +53 -0
  7. package/build/apigroups/ResourcesAPIGroup_2_0.js +23 -2
  8. package/build/apigroups/index.js +5 -1
  9. package/build/authentication/BasicAuthentication/BasicAuthentication.js +8 -1
  10. package/build/authentication/OAuth2/ILoginByClientCredentialsParameters.js +3 -0
  11. package/build/authentication/OAuth2/IOAuth2ClientCredentialsGrantAccessTokenRequest.js +11 -0
  12. package/build/authentication/OAuth2/OAuth2Authentication.js +41 -15
  13. package/build/shared/charts/createNodeDescriptor.js +1 -1
  14. package/build/shared/charts/descriptors/apps/index.js +8 -0
  15. package/build/shared/charts/descriptors/apps/initAppSession.js +33 -0
  16. package/build/shared/charts/descriptors/apps/setAppState.js +46 -0
  17. package/build/shared/charts/descriptors/connectionNodes/smtp/emailNotification.js +6 -4
  18. package/build/shared/charts/descriptors/connectionNodes/smtp/sendEmail.js +2 -2
  19. package/build/shared/charts/descriptors/end.js +1 -0
  20. package/build/shared/charts/descriptors/index.js +86 -67
  21. package/build/shared/charts/descriptors/logic/goTo.js +1 -0
  22. package/build/shared/charts/descriptors/logic/if/else.js +2 -0
  23. package/build/shared/charts/descriptors/logic/if/if.js +2 -1
  24. package/build/shared/charts/descriptors/logic/if/then.js +2 -0
  25. package/build/shared/charts/descriptors/logic/index.js +5 -3
  26. package/build/shared/charts/descriptors/logic/interval/elseInterval.js +1 -0
  27. package/build/shared/charts/descriptors/logic/interval/onInterval.js +1 -0
  28. package/build/shared/charts/descriptors/logic/once/afterwards.js +1 -0
  29. package/build/shared/charts/descriptors/logic/once/onFirstExecution.js +1 -0
  30. package/build/shared/charts/descriptors/logic/setTranslation.js +88 -0
  31. package/build/shared/charts/descriptors/logic/switch/case.js +2 -0
  32. package/build/shared/charts/descriptors/logic/switch/default.js +2 -0
  33. package/build/shared/charts/descriptors/logic/switch/switch.js +52 -4
  34. package/build/shared/charts/descriptors/logic/switchLocale.js +30 -2
  35. package/build/shared/charts/descriptors/logic/think.js +7 -3
  36. package/build/shared/charts/descriptors/logic/thinkV2.js +104 -0
  37. package/build/shared/charts/descriptors/logic/wait.js +2 -9
  38. package/build/shared/charts/descriptors/message/checkChannelChange/checkChannelChange.js +1 -0
  39. package/build/shared/charts/descriptors/message/checkChannelChange/onNo.js +3 -1
  40. package/build/shared/charts/descriptors/message/checkChannelChange/onYes.js +3 -1
  41. package/build/shared/charts/descriptors/message/checkChannelChange/unchanged.js +3 -1
  42. package/build/shared/charts/descriptors/message/question/onAnswer.js +3 -1
  43. package/build/shared/charts/descriptors/message/question/onQuestion.js +3 -1
  44. package/build/shared/charts/descriptors/message/question/question.js +474 -56
  45. package/build/shared/charts/descriptors/message/question/utils/datepickerUtils.js +1 -0
  46. package/build/shared/charts/descriptors/message/question/utils/evaluateQuestionAnswer.js +9 -3
  47. package/build/shared/charts/descriptors/message/question/utils/generateAnswerShortForm.js +37 -0
  48. package/build/shared/charts/descriptors/message/question/utils/getQuestionText.js +36 -0
  49. package/build/shared/charts/descriptors/message/question/utils/resetNodeState.js +12 -0
  50. package/build/shared/charts/descriptors/message/question/utils/storeQuestionAnswer.js +30 -0
  51. package/build/shared/charts/descriptors/message/question/utils/validateQuestionAnswer.js +22 -0
  52. package/build/shared/charts/descriptors/microsoft/getToken.js +34 -0
  53. package/build/shared/charts/descriptors/microsoft/index.js +22 -0
  54. package/build/shared/charts/descriptors/microsoft/invalidateToken.js +29 -0
  55. package/build/shared/charts/descriptors/microsoft/tokenStatus/index.js +51 -0
  56. package/build/shared/charts/descriptors/microsoft/tokenStatus/tokenGranted.js +24 -0
  57. package/build/shared/charts/descriptors/microsoft/tokenStatus/tokenNotGranted.js +24 -0
  58. package/build/shared/charts/descriptors/microsoft/utils/design.js +5 -0
  59. package/build/shared/charts/descriptors/nlu/executeCognigyNLU.js +5 -0
  60. package/build/shared/charts/descriptors/nlu/extractAnswer.js +115 -0
  61. package/build/shared/charts/descriptors/nlu/fuzzySearch.js +270 -0
  62. package/build/shared/charts/descriptors/nlu/index.js +7 -1
  63. package/build/shared/charts/descriptors/nlu/matchPattern.js +104 -0
  64. package/build/shared/charts/descriptors/nlu/utils/patternMatcher.js +197 -0
  65. package/build/shared/charts/descriptors/profile/index.js +5 -1
  66. package/build/shared/charts/descriptors/profile/overwriteAnalytics.js +54 -2
  67. package/build/shared/charts/descriptors/profile/requestRating.js +57 -0
  68. package/build/shared/charts/descriptors/profile/setRating.js +39 -0
  69. package/build/shared/charts/descriptors/service/handover.js +29 -2
  70. package/build/shared/charts/descriptors/service/handoverV2.js +129 -0
  71. package/build/shared/charts/descriptors/service/httpRequest.js +26 -7
  72. package/build/shared/charts/descriptors/service/index.js +3 -1
  73. package/build/shared/charts/descriptors/service/triggerFunction/onScheduled.js +2 -0
  74. package/build/shared/charts/descriptors/service/triggerFunction/onSchedulingError.js +2 -0
  75. package/build/shared/charts/descriptors/start.js +1 -0
  76. package/build/shared/charts/descriptors/voicegateway/nodes/callRecording.js +36 -16
  77. package/build/shared/charts/descriptors/voicegateway/nodes/handover.js +2 -2
  78. package/build/shared/charts/descriptors/voicegateway/nodes/playURL.js +9 -0
  79. package/build/shared/charts/descriptors/voicegateway/nodes/sendMessage.js +1 -1
  80. package/build/shared/charts/descriptors/voicegateway/utils/paramUtils.js +9 -1
  81. package/build/shared/charts/descriptors/voicegateway2/index.js +21 -0
  82. package/build/shared/charts/descriptors/voicegateway2/nodes/dtmf.js +56 -0
  83. package/build/shared/charts/descriptors/voicegateway2/nodes/hangup.js +48 -0
  84. package/build/shared/charts/descriptors/voicegateway2/nodes/play.js +199 -0
  85. package/build/shared/charts/descriptors/voicegateway2/nodes/refer.js +44 -0
  86. package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +584 -0
  87. package/build/shared/charts/descriptors/voicegateway2/utils/design.js +5 -0
  88. package/build/shared/charts/descriptors/voicegateway2/utils/strip-nulls.js +19 -0
  89. package/build/shared/constants.js +9 -1
  90. package/build/shared/errors/baseError.js +34 -1
  91. package/build/shared/helper/rest/array.js +19 -0
  92. package/build/shared/helper/rest/boolean.js +5 -1
  93. package/build/shared/helper/rest/index.js +4 -1
  94. package/build/shared/interfaces/IEndpointTranslationSettings.js +32 -0
  95. package/build/shared/interfaces/IHandoverRequestStatus.js +3 -0
  96. package/build/shared/interfaces/{restAPI/administration/user/v2.0/IDeleteUserMeRest_2_0.js → IHttpRequest.js} +1 -1
  97. package/build/shared/interfaces/IOrganisation.js +1 -1
  98. package/build/shared/interfaces/TEntrypointType.js +2 -0
  99. package/build/shared/interfaces/amqpInterface.js +3 -0
  100. package/build/shared/interfaces/analytics/IAnalyticsFlowHistoryData.js +3 -0
  101. package/build/shared/interfaces/analytics/IAnalyticsSourceData.js +196 -45
  102. package/build/shared/interfaces/analytics/IStepEvent.js +2 -1
  103. package/build/shared/interfaces/analytics/TAnalyticsMode.js +10 -0
  104. package/build/shared/interfaces/analytics/TAnalyticsType.js +5 -0
  105. package/build/shared/interfaces/debugEvents/IErrorEventPayload.js +3 -0
  106. package/build/shared/interfaces/debugEvents/TDebugEndpointEvent.js +1 -0
  107. package/build/shared/interfaces/debugEvents/TDebugEventType.js +2 -1
  108. package/build/shared/interfaces/debugEvents/TSessionStateEmitParams.js +3 -0
  109. package/build/shared/interfaces/handover.js +81 -3
  110. package/build/shared/interfaces/license.js +34 -0
  111. package/build/shared/interfaces/license.js.map +1 -0
  112. package/build/shared/interfaces/messageAPI/ai.js +15 -1
  113. package/build/shared/interfaces/messageAPI/endpoints.js +273 -9
  114. package/build/shared/interfaces/resources/IAuditEvent.js +15 -2
  115. package/build/shared/interfaces/resources/IChartNode.js +56 -10
  116. package/build/shared/interfaces/resources/IEndpoint.js +5 -2
  117. package/build/shared/interfaces/resources/IFlow.js +1 -1
  118. package/build/shared/interfaces/resources/ILexicon.js +8 -2
  119. package/build/shared/interfaces/resources/INLUConnector.js +15 -2
  120. package/build/shared/interfaces/resources/INodeDescriptorSet.js +164 -52
  121. package/build/shared/interfaces/resources/IOptionsResolverFunction.js +18 -0
  122. package/build/shared/interfaces/resources/IPlaybookRun.js +61 -0
  123. package/build/shared/interfaces/resources/IProject.js +7 -1
  124. package/build/shared/interfaces/resources/ISlotFiller.js +38 -21
  125. package/build/shared/interfaces/resources/ISnapshot.js +1 -1
  126. package/build/shared/interfaces/resources/ITrackAnalyticsStepsArguments.js +3 -0
  127. package/build/shared/interfaces/resources/TNLUConnectorType.js +2 -1
  128. package/build/shared/interfaces/resources/TResourceType.js +1 -0
  129. package/build/shared/interfaces/resources/TRestChannelType.js +5 -0
  130. package/build/shared/interfaces/resources/TSocketChannelType.js +5 -1
  131. package/build/shared/interfaces/resources/chart/IChartExecutable.js +3 -2
  132. package/build/shared/interfaces/resources/chart/IChartExecutableNode.js +1 -0
  133. package/build/shared/interfaces/resources/intent/IIntent.js +4 -2
  134. package/build/shared/interfaces/resources/intent/IIntentTrainGroup.js +3 -1
  135. package/build/shared/interfaces/resources/intent/ISentence.js +32 -8
  136. package/build/shared/interfaces/resources/settings/IAgentSettings.js +40 -2
  137. package/build/shared/interfaces/resources/settings/IFlowSettings.js +1 -1
  138. package/build/shared/interfaces/restAPI/administration/liveAgent/v2.0/IReadLiveAgentAccountRest_2_0.js +3 -0
  139. package/build/shared/interfaces/restAPI/administration/liveAgent/v2.0/IReadProjectInboxRest_2_0.js +3 -0
  140. package/build/shared/interfaces/restAPI/administration/liveAgent/v2.0/ISetupCognigyLiveAgentInboxRest_2_0.js +3 -0
  141. package/build/shared/interfaces/restAPI/administration/liveAgent/v2.0/ISetupCognigyLiveAgentRest_2_0.js +3 -0
  142. package/build/shared/interfaces/restAPI/administration/liveAgent/v2.0/index.js +3 -0
  143. package/build/shared/interfaces/restAPI/analytics/IDeleteAnalyticsRecordsRest_2_0.js +3 -0
  144. package/build/shared/interfaces/restAPI/analytics/IUpdateAnalyticsRecordProperties_2_0.js +3 -0
  145. package/build/shared/interfaces/restAPI/analytics/IUpdateAnalyticsRecordsRest_2_0.js +3 -0
  146. package/build/shared/interfaces/restAPI/insights/IAnalyticsQueryFilter_2_0.js +3 -0
  147. package/build/shared/interfaces/restAPI/insights/TAnalyticsQueryFilterOperator_2_0.js +3 -0
  148. package/build/shared/interfaces/restAPI/insights/messages/IGenerateMessagesRest_2_0.js +5 -0
  149. package/build/shared/interfaces/restAPI/insights/messages/ILoadMessagesReportByQueryHashResponse_2_0.js +3 -0
  150. package/build/shared/interfaces/restAPI/insights/messages/ILoadMessagesReportByQueryHashRestData_2_0.js +3 -0
  151. package/build/shared/interfaces/restAPI/insights/messages/ITopNMessages_2_0.js +3 -0
  152. package/build/shared/interfaces/restAPI/insights/reports/IGenerateReportResponse_2_0.js +3 -0
  153. package/build/shared/interfaces/restAPI/insights/reports/IGenerateReportRest_2_0.js +41 -0
  154. package/build/shared/interfaces/restAPI/insights/reports/ILoadReportByQueryHashResponse_2_0.js +3 -0
  155. package/build/shared/interfaces/restAPI/insights/reports/ILoadReportByQueryHashRest_2_0.js +3 -0
  156. package/build/shared/interfaces/restAPI/insights/steps/IGenerateStepReportRest_2_0.js +3 -0
  157. package/build/shared/interfaces/restAPI/insights/steps/IIndexStepsRest_2_0.js +3 -0
  158. package/build/shared/interfaces/restAPI/insights/steps/ILoadStepReportByQueryHashResponse_2_0.js +3 -0
  159. package/build/shared/interfaces/restAPI/insights/steps/ILoadStepReportByQueryHashRestData_2_0.js +3 -0
  160. package/build/shared/interfaces/restAPI/insights/steps/IStepIndexItem_2_0.js +3 -0
  161. package/build/shared/interfaces/restAPI/insights/steps/IStepReport_2_0.js +3 -0
  162. package/build/shared/interfaces/restAPI/insights/steps/IStep_2_0.js +3 -0
  163. package/build/shared/interfaces/restAPI/insights/transcripts/IGenerateTranscriptsRest_2_0.js +3 -0
  164. package/build/shared/interfaces/restAPI/insights/transcripts/ILoadTranscriptsReportByQueryHashResponse_2_0.js +3 -0
  165. package/build/shared/interfaces/restAPI/insights/transcripts/ILoadTranscriptsReportByQueryHashRestData_2_0.js +3 -0
  166. package/build/shared/interfaces/restAPI/insights/transcripts/IStepPath_2_0.js +3 -0
  167. package/build/shared/interfaces/restAPI/resources/chart/v2.0/ISearchChartNodesRest_2_0.js +3 -0
  168. package/build/shared/interfaces/restAPI/resources/extension/v2.0/IUpdateExtensionPackageRest_2_0.js +4 -0
  169. package/build/shared/interfaces/restAPI/resources/flow/v2.0/ICreateFlowFromChildrenRest_2_0.js +4 -0
  170. package/build/shared/interfaces/restAPI/resources/flow/v2.0/intent/ITrainYesNoIntentsRest_2_0.js +3 -0
  171. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IComposeLexiconDownloadLinkRest_2_0.js +3 -0
  172. package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/TNLUConnectorType_2_0.js +3 -1
  173. package/build/shared/interfaces/restAPI/resources/nodedescriptorsets/v2.0/IOptionsResolverRest_2_0.js +3 -0
  174. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IDeletePlaybookRunRest_2_0.js +3 -0
  175. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IIndexPlaybookRunsRest_2_0.js +3 -0
  176. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IPlaybookRunIndexItem_2_0.js +3 -0
  177. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IPlaybookRun_2_0.js +7 -0
  178. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IReadPlaybookRunRest_2_0.js +3 -0
  179. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/ISchedulePlaybookRunRest_2_0.js +3 -0
  180. package/build/shared/interfaces/security/IACL.js +1 -1
  181. package/build/shared/interfaces/security/IPermission.js +6 -0
  182. package/build/shared/interfaces/security/IRole.js +8 -2
  183. package/build/shared/interfaces/sessionstate/ISessionState.js +3 -0
  184. package/build/shared/interfaces/sessionstate/index.js +3 -0
  185. package/build/shared/interfaces/trainer/ITrainerRecord.js +4 -0
  186. package/build/shared/interfaces/translation.js +11 -0
  187. package/package.json +5 -5
  188. package/types/index.d.ts +3905 -1178
  189. package/build/shared/charts/descriptors/logic/checkFrustration.js +0 -82
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.nodeDescriptorSetSchema = exports.nodeDescriptorSchema = exports.nodeFieldAndSectionFormElementSchema = exports.nodeSectionSchema = exports.nodeFieldSchema = exports.nodeFieldConditionSchema = exports.nodeFieldORConditionSchema = exports.nodeFieldANDConditionSchema = exports.nodeFieldSingleConditionSchema = exports.nodePreviewTypes = void 0;
3
+ exports.nodeDescriptorSetSchema = exports.nodeDescriptorSchema = exports.nodeFieldAndSectionFormElementSchema = exports.nodeSectionSchema = exports.nodeFieldSchema = exports.nodeOptionsResolverSchema = exports.nodeFieldConditionSchema = exports.nodeFieldORConditionSchema = exports.nodeFieldANDConditionSchema = exports.nodeFieldSingleConditionSchema = exports.searchableNodeFieldTypes = exports.nodeFieldTypes = exports.nodePreviewTypes = void 0;
4
4
  const TResourceType_1 = require("./TResourceType");
5
5
  const ISnippet_1 = require("./ISnippet");
6
6
  const nodeAppearanceSchema = {
@@ -10,9 +10,10 @@ const nodeAppearanceSchema = {
10
10
  properties: {
11
11
  color: { type: "string", format: "color" },
12
12
  textColor: { type: "string", format: "color" },
13
+ contrastTextColor: { type: "string", format: "color" },
13
14
  showIcon: { type: "boolean" },
14
- variant: { type: "string", enum: ["regular", "mini", "hexagon"] },
15
- },
15
+ variant: { type: "string", enum: ["regular", "mini", "hexagon"] }
16
+ }
16
17
  };
17
18
  const nodeBehaviorSchema = {
18
19
  title: "nodeBehaviorSchema",
@@ -20,8 +21,8 @@ const nodeBehaviorSchema = {
20
21
  additionalProperties: false,
21
22
  properties: {
22
23
  stopping: { type: "boolean" },
23
- entrypoint: { type: "boolean" },
24
- },
24
+ entrypoint: { type: "boolean" }
25
+ }
25
26
  };
26
27
  exports.nodePreviewTypes = ["text", "sayNode", "custom", "resource"];
27
28
  const nodePreviewSchema = {
@@ -30,8 +31,8 @@ const nodePreviewSchema = {
30
31
  additionalProperties: false,
31
32
  properties: {
32
33
  key: { type: "string", minLength: 1, maxLength: 200 },
33
- type: { type: "string", enum: [...exports.nodePreviewTypes] },
34
- },
34
+ type: { type: "string", enum: [...exports.nodePreviewTypes] }
35
+ }
35
36
  };
36
37
  const nodeConstraintSchema = {
37
38
  title: "nodeConstraintSchema",
@@ -40,13 +41,13 @@ const nodeConstraintSchema = {
40
41
  properties: {
41
42
  blacklist: {
42
43
  type: "array",
43
- items: { type: "string", minLength: 1, maxLength: 200 },
44
+ items: { type: "string", minLength: 1, maxLength: 200 }
44
45
  },
45
46
  whitelist: {
46
47
  type: "array",
47
- items: { type: "string", minLength: 1, maxLength: 200 },
48
- },
49
- },
48
+ items: { type: "string", minLength: 1, maxLength: 200 }
49
+ }
50
+ }
50
51
  };
51
52
  const nodeConstraintsSchema = {
52
53
  title: "nodeConstraintsSchema",
@@ -54,6 +55,7 @@ const nodeConstraintsSchema = {
54
55
  additionalProperties: false,
55
56
  properties: {
56
57
  collapsable: { type: "boolean" },
58
+ childFlowCreatable: { type: "boolean" },
57
59
  creatable: { type: "boolean" },
58
60
  deletable: { type: "boolean" },
59
61
  editable: { type: "boolean" },
@@ -64,10 +66,10 @@ const nodeConstraintsSchema = {
64
66
  properties: {
65
67
  children: nodeConstraintSchema,
66
68
  predecessor: nodeConstraintSchema,
67
- successor: nodeConstraintSchema,
68
- },
69
- },
70
- },
69
+ successor: nodeConstraintSchema
70
+ }
71
+ }
72
+ }
71
73
  };
72
74
  const nodeDependenciesSchema = {
73
75
  title: "nodeDependenciesSchema",
@@ -76,11 +78,11 @@ const nodeDependenciesSchema = {
76
78
  properties: {
77
79
  children: {
78
80
  type: "array",
79
- items: { type: "string", minLength: 1, maxLength: 200 },
80
- },
81
- },
81
+ items: { type: "string", minLength: 1, maxLength: 200 }
82
+ }
83
+ }
82
84
  };
83
- const nodeFieldTypes = [
85
+ exports.nodeFieldTypes = [
84
86
  "text",
85
87
  "rule",
86
88
  "json",
@@ -92,6 +94,7 @@ const nodeFieldTypes = [
92
94
  "typescript",
93
95
  "xml",
94
96
  "textArray",
97
+ "keyValuePairs",
95
98
  "chipInput",
96
99
  "cognigyText",
97
100
  "toggle",
@@ -114,6 +117,21 @@ const nodeFieldTypes = [
114
117
  "description",
115
118
  "slotFillerArray",
116
119
  "function",
120
+ "appTemplate",
121
+ "sttSelect",
122
+ "ttsSelect",
123
+ ];
124
+ exports.searchableNodeFieldTypes = [
125
+ "text",
126
+ "json",
127
+ "typescript",
128
+ "xml",
129
+ "textArray",
130
+ "cognigyText",
131
+ "say",
132
+ "code",
133
+ "caseNode",
134
+ "select"
117
135
  ];
118
136
  exports.nodeFieldSingleConditionSchema = {
119
137
  title: "nodeFieldSingleConditionSchema",
@@ -130,11 +148,11 @@ exports.nodeFieldSingleConditionSchema = {
130
148
  { type: "number" },
131
149
  { type: "array", items: { type: "number" } },
132
150
  { type: "boolean" },
133
- { type: "array", items: { type: "boolean" } },
134
- ],
151
+ { type: "array", items: { type: "boolean" } }
152
+ ]
135
153
  },
136
- negate: { type: "boolean" },
137
- },
154
+ negate: { type: "boolean" }
155
+ }
138
156
  };
139
157
  exports.nodeFieldANDConditionSchema = {
140
158
  title: "nodeFieldANDConditionSchema",
@@ -142,8 +160,8 @@ exports.nodeFieldANDConditionSchema = {
142
160
  additionalProperties: false,
143
161
  required: ["and"],
144
162
  properties: {
145
- and: { type: "array", "items": { "$ref": "nodeFieldConditionSchema" } },
146
- },
163
+ and: { type: "array", items: { $ref: "nodeFieldConditionSchema" } }
164
+ }
147
165
  };
148
166
  exports.nodeFieldORConditionSchema = {
149
167
  title: "nodeFieldORConditionSchema",
@@ -151,24 +169,53 @@ exports.nodeFieldORConditionSchema = {
151
169
  additionalProperties: false,
152
170
  required: ["or"],
153
171
  properties: {
154
- or: { type: "array", "items": { "$ref": "nodeFieldConditionSchema" } },
155
- },
172
+ or: { type: "array", items: { $ref: "nodeFieldConditionSchema" } }
173
+ }
156
174
  };
157
175
  exports.nodeFieldConditionSchema = {
158
176
  $id: "nodeFieldConditionSchema",
159
177
  oneOf: [
160
178
  // @ts-ignore
161
- exports.nodeFieldSingleConditionSchema, exports.nodeFieldANDConditionSchema, exports.nodeFieldORConditionSchema,
179
+ exports.nodeFieldSingleConditionSchema,
180
+ // @ts-ignore
181
+ exports.nodeFieldANDConditionSchema,
182
+ // @ts-ignore
183
+ exports.nodeFieldORConditionSchema
162
184
  ]
163
185
  };
186
+ exports.nodeOptionsResolverSchema = {
187
+ title: "nodeOptionsResolverSchema",
188
+ type: "object",
189
+ additionalProperties: false,
190
+ properties: {
191
+ dependencies: { type: "array", items: { type: "string", minLength: 1, maxLength: 200 } },
192
+ resolverFunction: {}
193
+ }
194
+ };
164
195
  exports.nodeFieldSchema = {
165
196
  title: "nodeFieldSchema",
166
197
  type: "object",
167
198
  additionalProperties: false,
168
199
  properties: {
169
- type: { type: "string", enum: [...nodeFieldTypes] },
200
+ type: { type: "string", enum: [...exports.nodeFieldTypes] },
170
201
  key: { type: "string", minLength: 1, maxLength: 200 },
171
- label: { type: "string", minLength: 1, maxLength: 200 },
202
+ label: {
203
+ oneOf: [
204
+ { type: "string", minLength: 1, maxLength: 200 },
205
+ {
206
+ type: "object",
207
+ additionalProperties: false,
208
+ properties: {
209
+ default: { type: "string", maxLength: 200 },
210
+ enUS: { type: "string", maxLength: 200 },
211
+ deDE: { type: "string", maxLength: 200 },
212
+ jaJP: { type: "string", maxLength: 200 },
213
+ esES: { type: "string", maxLength: 200 },
214
+ koKR: { type: "string", maxLength: 200 }
215
+ }
216
+ }
217
+ ]
218
+ },
172
219
  condition: exports.nodeFieldConditionSchema,
173
220
  defaultValue: {
174
221
  oneOf: [
@@ -177,12 +224,29 @@ exports.nodeFieldSchema = {
177
224
  { type: "number" },
178
225
  { type: "null" },
179
226
  { type: "object" },
180
- { type: "string" },
181
- ],
227
+ { type: "string" }
228
+ ]
229
+ },
230
+ description: {
231
+ oneOf: [
232
+ { type: "string", minLength: 1, maxLength: 200 },
233
+ {
234
+ type: "object",
235
+ additionalProperties: false,
236
+ properties: {
237
+ default: { type: "string", maxLength: 200 },
238
+ enUS: { type: "string", maxLength: 200 },
239
+ deDE: { type: "string", maxLength: 200 },
240
+ jaJP: { type: "string", maxLength: 200 },
241
+ esES: { type: "string", maxLength: 200 },
242
+ koKR: { type: "string", maxLength: 200 }
243
+ }
244
+ }
245
+ ]
182
246
  },
183
- description: { type: "string", maxLength: 200 },
184
247
  params: { type: "object" },
185
- },
248
+ optionsResolver: exports.nodeOptionsResolverSchema
249
+ }
186
250
  };
187
251
  exports.nodeSectionSchema = {
188
252
  title: "nodeSectionSchema",
@@ -190,7 +254,23 @@ exports.nodeSectionSchema = {
190
254
  additionalProperties: false,
191
255
  properties: {
192
256
  key: { type: "string", minLength: 1, maxLength: 200 },
193
- label: { type: "string", minLength: 1, maxLength: 200 },
257
+ label: {
258
+ oneOf: [
259
+ { type: "string", minLength: 1, maxLength: 200 },
260
+ {
261
+ type: "object",
262
+ additionalProperties: false,
263
+ properties: {
264
+ default: { type: "string", maxLength: 200 },
265
+ enUS: { type: "string", maxLength: 200 },
266
+ deDE: { type: "string", maxLength: 200 },
267
+ jaJP: { type: "string", maxLength: 200 },
268
+ esES: { type: "string", maxLength: 200 },
269
+ koKR: { type: "string", maxLength: 200 }
270
+ }
271
+ }
272
+ ]
273
+ },
194
274
  condition: exports.nodeFieldConditionSchema,
195
275
  defaultCollapsed: { type: "boolean" },
196
276
  fields: {
@@ -201,10 +281,10 @@ exports.nodeSectionSchema = {
201
281
  items: {
202
282
  type: "string",
203
283
  minLength: 1,
204
- maxLength: 200,
205
- },
206
- },
207
- },
284
+ maxLength: 200
285
+ }
286
+ }
287
+ }
208
288
  };
209
289
  exports.nodeFieldAndSectionFormElementSchema = {
210
290
  title: "nodeFieldAndSectionFormElementSchema",
@@ -212,8 +292,8 @@ exports.nodeFieldAndSectionFormElementSchema = {
212
292
  required: ["key", "type"],
213
293
  properties: {
214
294
  key: { type: "string", minLength: 1, maxLength: 200 },
215
- type: { type: "string", enum: ["field", "section"] },
216
- },
295
+ type: { type: "string", enum: ["field", "section"] }
296
+ }
217
297
  };
218
298
  exports.nodeDescriptorSchema = {
219
299
  title: "nodeDescriptorSchema",
@@ -223,8 +303,40 @@ exports.nodeDescriptorSchema = {
223
303
  _id: { type: "string", format: "mongo-id" },
224
304
  type: { type: "string", minLength: 1, maxLength: 200 },
225
305
  parentType: { type: ["string", "null"], minLength: 1, maxLength: 200 },
226
- defaultLabel: { type: "string", minLength: 1, maxLength: 200 },
227
- summary: { type: "string", maxLength: 80 },
306
+ defaultLabel: {
307
+ oneOf: [
308
+ { type: "string", minLength: 1, maxLength: 200 },
309
+ {
310
+ type: "object",
311
+ additionalProperties: false,
312
+ properties: {
313
+ default: { type: "string", maxLength: 200 },
314
+ enUS: { type: "string", maxLength: 200 },
315
+ deDE: { type: "string", maxLength: 200 },
316
+ jaJP: { type: "string", maxLength: 200 },
317
+ esES: { type: "string", maxLength: 200 },
318
+ koKR: { type: "string", maxLength: 200 }
319
+ }
320
+ }
321
+ ]
322
+ },
323
+ summary: {
324
+ oneOf: [
325
+ { type: "string", maxLength: 200 },
326
+ {
327
+ type: "object",
328
+ additionalProperties: false,
329
+ properties: {
330
+ default: { type: "string", maxLength: 200 },
331
+ enUS: { type: "string", maxLength: 200 },
332
+ deDE: { type: "string", maxLength: 200 },
333
+ jaJP: { type: "string", maxLength: 200 },
334
+ esES: { type: "string", maxLength: 200 },
335
+ koKR: { type: "string", maxLength: 200 }
336
+ }
337
+ }
338
+ ]
339
+ },
228
340
  appearance: nodeAppearanceSchema,
229
341
  behavior: nodeBehaviorSchema,
230
342
  constraints: nodeConstraintsSchema,
@@ -236,25 +348,25 @@ exports.nodeDescriptorSchema = {
236
348
  type: "array",
237
349
  items: { type: "string" },
238
350
  uniqueItems: true,
239
- minItems: 0,
351
+ minItems: 0
240
352
  },
241
353
  tokens: {
242
354
  type: "array",
243
355
  items: ISnippet_1.snippetDataSchema,
244
- uniqueItems: true,
356
+ uniqueItems: true
245
357
  },
246
358
  sections: {
247
359
  type: "array",
248
360
  additionalItems: false,
249
- items: exports.nodeSectionSchema,
361
+ items: exports.nodeSectionSchema
250
362
  },
251
363
  form: {
252
364
  type: "array",
253
365
  additionalItems: false,
254
366
  maxLength: 25,
255
- items: exports.nodeFieldAndSectionFormElementSchema,
256
- },
257
- },
367
+ items: exports.nodeFieldAndSectionFormElementSchema
368
+ }
369
+ }
258
370
  };
259
371
  exports.nodeDescriptorSetSchema = {
260
372
  title: "nodeDescriptorSetSchema",
@@ -270,10 +382,10 @@ exports.nodeDescriptorSetSchema = {
270
382
  descriptors: {
271
383
  type: "array",
272
384
  additionalItems: false,
273
- items: exports.nodeDescriptorSchema,
385
+ items: exports.nodeDescriptorSchema
274
386
  },
275
387
  resourceType: { type: "string", enum: TResourceType_1.chartableResourceTypes },
276
- trustedCode: { type: "boolean" },
277
- },
388
+ trustedCode: { type: "boolean" }
389
+ }
278
390
  };
279
391
  //# sourceMappingURL=INodeDescriptorSet.js.map
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.optionsResolverReturnDataSchema = void 0;
4
+ exports.optionsResolverReturnDataSchema = {
5
+ title: "optionsResolverReturnDataSetSchema",
6
+ type: "array",
7
+ items: {
8
+ type: "object",
9
+ required: ["label", "value"],
10
+ additionalProperties: false,
11
+ properties: {
12
+ label: { type: "string", minLength: 1, maxLength: 200 },
13
+ value: { type: "string", minLength: 1, maxLength: 200 },
14
+ },
15
+ },
16
+ additionalItems: false,
17
+ };
18
+ //# sourceMappingURL=IOptionsResolverFunction.js.map
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.playbookRunSchema = exports.playbookRunDataSchema = exports.playbookRunStepResultSchema = exports.playbookRunStepResultAssertSchema = exports.playbookRunStatus = void 0;
4
+ const IEntityMeta_1 = require("./IEntityMeta");
5
+ exports.playbookRunStatus = [
6
+ "successful",
7
+ "failed"
8
+ ];
9
+ exports.playbookRunStepResultAssertSchema = {
10
+ title: "playbookRunStepResultAssertSchema",
11
+ type: "object",
12
+ additionalProperties: false,
13
+ properties: {
14
+ _id: { type: "string", format: "mongo-id" },
15
+ type: { type: "string", maxLength: 200 },
16
+ params: { type: "object" },
17
+ actual: { type: "object" },
18
+ status: { type: "string", enum: [...exports.playbookRunStatus] },
19
+ }
20
+ };
21
+ exports.playbookRunStepResultSchema = {
22
+ title: "playbookRunStepResultSchema",
23
+ type: "object",
24
+ additionalProperties: false,
25
+ properties: {
26
+ _id: { type: "string", format: "mongo-id" },
27
+ status: { type: "string", enum: [...exports.playbookRunStatus] },
28
+ text: { type: "string", maxLength: 1000 },
29
+ data: { type: "object" },
30
+ asserts: {
31
+ type: "array",
32
+ maxItems: 20,
33
+ items: exports.playbookRunStepResultAssertSchema
34
+ }
35
+ }
36
+ };
37
+ /**
38
+ * We don't need a 'playbookRunDataSchema' as we won't allow building
39
+ * an API to update a playbook run.
40
+ */
41
+ exports.playbookRunDataSchema = {
42
+ title: "playbookRunDataSchema",
43
+ type: "object",
44
+ additionalProperties: true,
45
+ properties: {
46
+ status: { type: "string", enum: [...exports.playbookRunStatus] },
47
+ stepResults: {
48
+ type: "array",
49
+ maxItems: 50,
50
+ items: exports.playbookRunStepResultSchema
51
+ },
52
+ playbookReference: { type: "string", format: "mongo-id" },
53
+ }
54
+ };
55
+ exports.playbookRunSchema = {
56
+ title: "playbookRunSchema",
57
+ type: "object",
58
+ additionalProperties: true,
59
+ properties: Object.assign(Object.assign(Object.assign({}, exports.playbookRunDataSchema.properties), IEntityMeta_1.entityMetaSchema.properties), { projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } })
60
+ };
61
+ //# sourceMappingURL=IPlaybookRun.js.map
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generateProjectRedisKeys = exports.projectSchema = exports.projectDataSchema = void 0;
3
+ exports.generateProjectRedisKeys = exports.projectSchema = exports.projectPropertiesSchema = exports.projectDataSchema = void 0;
4
4
  /* Interfaces & Types */
5
5
  const IEntityMeta_1 = require("./IEntityMeta");
6
6
  exports.projectDataSchema = {
@@ -12,6 +12,12 @@ exports.projectDataSchema = {
12
12
  color: { type: "string", format: "color" },
13
13
  },
14
14
  };
15
+ exports.projectPropertiesSchema = {
16
+ title: "projectPropertiesSchema",
17
+ type: "object",
18
+ additionalProperties: false,
19
+ properties: Object.assign(Object.assign({}, exports.projectDataSchema.properties), { liveAgentDefaultInbox: { type: "number" } }),
20
+ };
15
21
  exports.projectSchema = {
16
22
  title: "projectSchema",
17
23
  type: "object",
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.slotFillerSchema = exports.slotFillerDataSchema = exports.slotFillerGenericDataSchema = exports.slotFillerRegexDataSchema = exports.slotFillerKeyphraseDataSchema = exports.slotFillerBaseDataSchema = void 0;
3
+ exports.slotFillerSchema = exports.slotFillerDataSchema = exports.slotFillerBaseDataSchema = void 0;
4
4
  const IEntityMeta_1 = require("./IEntityMeta");
5
5
  const TSlotFillerType_1 = require("./TSlotFillerType");
6
6
  exports.slotFillerBaseDataSchema = {
@@ -21,48 +21,65 @@ exports.slotFillerBaseDataSchema = {
21
21
  resultLocation: { type: "string" },
22
22
  }
23
23
  };
24
- exports.slotFillerKeyphraseDataSchema = {
24
+ const slotFillerKeyphraseDataSchema = {
25
25
  title: "slotFillerKeyphraseDataSchema",
26
26
  type: "object",
27
27
  additionalProperties: false,
28
- properties: Object.assign(Object.assign({}, exports.slotFillerBaseDataSchema.properties), { type: { type: "string", enum: ["slot"] }, slot: { type: "string", format: "resource-name" } })
28
+ properties: {
29
+ type: { type: "string", enum: ["slot"] },
30
+ slot: { type: "string", format: "resource-name" },
31
+ }
32
+ };
33
+ const slotFillerKeyphraseSchema = {
34
+ title: "slotFillerKeyphraseSchema",
35
+ type: "object",
36
+ additionalProperties: false,
37
+ properties: Object.assign(Object.assign({}, exports.slotFillerBaseDataSchema.properties), slotFillerKeyphraseDataSchema.properties)
29
38
  };
30
- exports.slotFillerRegexDataSchema = {
39
+ const slotFillerRegexDataSchema = {
31
40
  title: "slotFillerRegexDataSchema",
32
41
  type: "object",
33
42
  additionalProperties: false,
34
43
  required: ["regex"],
35
- properties: Object.assign(Object.assign({}, exports.slotFillerBaseDataSchema.properties), { type: { type: "string", enum: ["regex"] }, regex: { type: "string", format: "regex" } })
44
+ properties: {
45
+ type: { type: "string", enum: ["regex"] },
46
+ regex: { type: "string", format: "regex" },
47
+ }
48
+ };
49
+ const slotFillerRegexSchema = {
50
+ title: "slotFillerRegexSchema",
51
+ type: "object",
52
+ additionalProperties: false,
53
+ required: ["regex"],
54
+ properties: Object.assign(Object.assign({}, exports.slotFillerBaseDataSchema.properties), slotFillerRegexDataSchema.properties)
36
55
  };
37
- exports.slotFillerGenericDataSchema = {
56
+ const slotFillerGenericDataSchema = {
38
57
  title: "slotFillerGenericDataSchema",
39
58
  type: "object",
40
59
  additionalProperties: false,
41
- properties: Object.assign(Object.assign({}, exports.slotFillerBaseDataSchema.properties), { type: { type: "string", enum: [...TSlotFillerType_1.slotFillerTypes.filter(value => ["regex", "slot"].includes(value) === false)] } })
60
+ properties: {
61
+ type: { type: "string", enum: [...TSlotFillerType_1.slotFillerTypes.filter(value => ["regex", "slot"].includes(value) === false)] },
62
+ }
63
+ };
64
+ const slotFillerGenericSchema = {
65
+ title: "slotFillerGenericSchema",
66
+ type: "object",
67
+ additionalProperties: false,
68
+ properties: Object.assign(Object.assign({}, exports.slotFillerBaseDataSchema.properties), slotFillerGenericDataSchema.properties)
42
69
  };
43
70
  exports.slotFillerDataSchema = {
44
71
  title: "slotFillerDataSchema",
45
72
  type: "object",
46
73
  oneOf: [
47
- { properties: exports.slotFillerGenericDataSchema.properties },
48
- { properties: exports.slotFillerKeyphraseDataSchema.properties },
49
- { properties: exports.slotFillerRegexDataSchema.properties },
74
+ { properties: slotFillerGenericSchema.properties },
75
+ { properties: slotFillerKeyphraseSchema.properties },
76
+ { properties: slotFillerRegexSchema.properties },
50
77
  ]
51
78
  };
52
79
  exports.slotFillerSchema = {
53
80
  title: "slotFillerSchema",
54
81
  type: "object",
55
82
  additionalProperties: false,
56
- oneOf: [
57
- {
58
- properties: Object.assign(Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), exports.slotFillerGenericDataSchema.properties), { referenceId: { type: "string", format: "uuid" }, flowReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } })
59
- },
60
- {
61
- properties: Object.assign(Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), exports.slotFillerKeyphraseDataSchema.properties), { referenceId: { type: "string", format: "uuid" }, flowReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } })
62
- },
63
- {
64
- properties: Object.assign(Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), exports.slotFillerRegexDataSchema.properties), { referenceId: { type: "string", format: "uuid" }, flowReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } })
65
- }
66
- ]
83
+ properties: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), exports.slotFillerBaseDataSchema.properties), slotFillerGenericDataSchema.properties), slotFillerKeyphraseDataSchema.properties), slotFillerRegexDataSchema.properties), { type: { type: "string", enum: [...new Set(TSlotFillerType_1.slotFillerTypes)] }, referenceId: { type: "string", format: "uuid" }, flowReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }),
67
84
  };
68
85
  //# sourceMappingURL=ISlotFiller.js.map
@@ -26,6 +26,6 @@ exports.snapshotSchema = {
26
26
  title: "snapshotSchema",
27
27
  type: "object",
28
28
  additionalProperties: false,
29
- properties: Object.assign(Object.assign({}, exports.snapshotDataSchema.properties), { _id: { type: "string", format: "mongo-id" }, createdAt: { type: "integer", format: "timestamp" }, createdBy: { type: "string", format: "mongo-id" }, hash: { type: "string" }, isPackaged: { type: "boolean" }, packageExpiresAt: { type: ["number", "null"], format: "timestamp" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }),
29
+ properties: Object.assign(Object.assign({}, exports.snapshotDataSchema.properties), { _id: { type: "string", format: "mongo-id" }, createdAt: { type: "integer", format: "timestamp" }, createdBy: { type: "string", format: "mongo-id" }, hash: { type: "string" }, isPackaged: { type: "boolean" }, runtimeVersion: { type: "number" }, packageExpiresAt: { type: ["number", "null"], format: "timestamp" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }),
30
30
  };
31
31
  //# sourceMappingURL=ISnapshot.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ITrackAnalyticsStepsArguments.js.map
@@ -13,6 +13,7 @@ exports.arrayNLUConnectorType = [
13
13
  "watson",
14
14
  "noNlu",
15
15
  "cognigy",
16
- "code"
16
+ "code",
17
+ "lex"
17
18
  ];
18
19
  //# sourceMappingURL=TNLUConnectorType.js.map
@@ -69,6 +69,7 @@ exports.arrayTResourceType = [
69
69
  "nodeDescriptorSet",
70
70
  "package",
71
71
  "playbook",
72
+ "playbookRun",
72
73
  "slotFiller",
73
74
  "snapshot",
74
75
  "snippet",
@@ -14,6 +14,7 @@ exports.restChannelTypes = [
14
14
  "twilio-sms",
15
15
  "twilio",
16
16
  "userlike",
17
+ "nonConversational",
17
18
  ];
18
19
  exports.restChannelDisplayNames = [
19
20
  {
@@ -63,6 +64,10 @@ exports.restChannelDisplayNames = [
63
64
  {
64
65
  channel: "avaya",
65
66
  displayName: "Avaya"
67
+ },
68
+ {
69
+ channel: "nonConversational",
70
+ displayName: "Non Conversational"
66
71
  }
67
72
  ];
68
73
  //# sourceMappingURL=TRestChannelType.js.map
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.socketChannelDisplayNames = exports.socketChannelTypes = void 0;
4
- exports.socketChannelTypes = ["realtime", "webchat", "webchat2", "admin-webchat", "socket"];
4
+ exports.socketChannelTypes = ["realtime", "webchat", "webchat2", "admin-webchat", "socket", "voiceGateway2"];
5
5
  exports.socketChannelDisplayNames = [
6
6
  {
7
7
  channel: "realtime",
@@ -22,6 +22,10 @@ exports.socketChannelDisplayNames = [
22
22
  {
23
23
  channel: "adminconsole",
24
24
  displayName: "Interaction Panel"
25
+ },
26
+ {
27
+ channel: "voiceGateway2",
28
+ displayName: "Voicegateway v2"
25
29
  }
26
30
  ];
27
31
  //# sourceMappingURL=TSocketChannelType.js.map