@cognigy/rest-api-client 0.16.0 → 0.18.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 +12 -0
  2. package/build/GenericTusFn.js +6 -1
  3. package/build/GenericUploadFn.js +3 -5
  4. package/build/apigroups/ResourcesAPIGroup_2_0.js +12 -1
  5. package/build/connector/AxiosAdapter.js +35 -15
  6. package/build/shared/charts/createNodeDescriptor.js +5 -5
  7. package/build/shared/charts/descriptors/agentAssist/constants/constants.js +16 -1
  8. package/build/shared/charts/descriptors/agentAssist/helpers/agentAssistTranslator.helper.js +19 -0
  9. package/build/shared/charts/descriptors/agentAssist/helpers/getFontSizeFieldOptions.js +84 -0
  10. package/build/shared/charts/descriptors/agentAssist/helpers/getLanguageName.helper.js +33 -0
  11. package/build/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/answerExtraction.helper.js +59 -0
  12. package/build/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/configValidator.helper.js +20 -0
  13. package/build/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/errorHandler.helper.js +64 -0
  14. package/build/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/followUpDetection.helper.js +72 -0
  15. package/build/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/knowledgeSearch.helper.js +58 -0
  16. package/build/shared/charts/descriptors/agentAssist/helpers/sentiment.helper.js +7 -13
  17. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/identityAssistTemplate.js +17 -18
  18. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/knowledgeAssistTemplate.js +345 -152
  19. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/nextActionWidgetTemplate.js +212 -80
  20. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/sentimentAnalysisTemplate.js +11 -6
  21. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/transcriptAssistTemplate.js +15 -13
  22. package/build/shared/charts/descriptors/agentAssist/identityAssist.js +87 -14
  23. package/build/shared/charts/descriptors/agentAssist/knowledgeAssist.js +192 -327
  24. package/build/shared/charts/descriptors/agentAssist/locales/cs.locale.js +11 -0
  25. package/build/shared/charts/descriptors/agentAssist/locales/de.locale.js +11 -0
  26. package/build/shared/charts/descriptors/agentAssist/locales/en.locale.js +11 -0
  27. package/build/shared/charts/descriptors/agentAssist/locales/es.locale.js +11 -0
  28. package/build/shared/charts/descriptors/agentAssist/locales/fr.locale.js +11 -0
  29. package/build/shared/charts/descriptors/agentAssist/locales/index.js +22 -0
  30. package/build/shared/charts/descriptors/agentAssist/locales/ja.locale.js +11 -0
  31. package/build/shared/charts/descriptors/agentAssist/locales/ko.locale.js +11 -0
  32. package/build/shared/charts/descriptors/agentAssist/locales/pt.locale.js +11 -0
  33. package/build/shared/charts/descriptors/agentAssist/nextActionAssist.js +485 -10
  34. package/build/shared/charts/descriptors/agentAssist/sentimentAssist.js +31 -8
  35. package/build/shared/charts/descriptors/agentAssist/setAgentAssistGrid.js +31 -16
  36. package/build/shared/charts/descriptors/agentAssist/transcriptAssist.js +40 -2
  37. package/build/shared/charts/descriptors/allFields.js +6 -0
  38. package/build/shared/charts/descriptors/analytics/requestRating.js +56 -2
  39. package/build/shared/charts/descriptors/index.js +1 -3
  40. package/build/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +1 -1
  41. package/build/shared/charts/descriptors/logic/goTo.js +3 -3
  42. package/build/shared/charts/descriptors/message/question/optionalQuestion.js +1 -1
  43. package/build/shared/charts/descriptors/message/question/question.js +123 -2
  44. package/build/shared/charts/descriptors/message/question/utils/evaluateQuestionAnswer.js +44 -3
  45. package/build/shared/charts/descriptors/nlu/generativeSlotFiller/prompt.js +27 -7
  46. package/build/shared/charts/descriptors/nlu/index.js +1 -3
  47. package/build/shared/charts/descriptors/service/GPTPrompt.js +320 -22
  48. package/build/shared/charts/descriptors/service/LLMEntityExtract.js +274 -0
  49. package/build/shared/charts/descriptors/service/httpRequest.js +33 -1
  50. package/build/shared/charts/descriptors/service/index.js +3 -1
  51. package/build/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +35 -25
  52. package/build/shared/charts/descriptors/voice/mappers/transfer.mapper.js +15 -11
  53. package/build/shared/charts/descriptors/voice/nodes/play.js +8 -1
  54. package/build/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +51 -75
  55. package/build/shared/charts/descriptors/voicegateway2/nodes/play.js +0 -1
  56. package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +38 -71
  57. package/build/shared/charts/descriptors/voicegateway2/nodes/transfer.js +17 -25
  58. package/build/shared/charts/helpers/generativeAI/generativeAIPrompts.js +55 -0
  59. package/build/shared/helper/BaseContext.js +31 -0
  60. package/build/shared/interfaces/appsession/IAppSession.js +3 -0
  61. package/build/shared/interfaces/appsession/ISetAppState.js +3 -0
  62. package/build/shared/interfaces/appsession/index.js +3 -0
  63. package/build/shared/interfaces/fileStorage.js +6 -0
  64. package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +33 -2
  65. package/build/shared/interfaces/handover.js +2 -1
  66. package/build/shared/interfaces/messageAPI/endpoints.js +17 -2
  67. package/build/shared/interfaces/messageAPI/handover.js +9 -5
  68. package/build/shared/interfaces/nlu/nlu.js +3 -0
  69. package/build/shared/interfaces/resources/IAuditEvent.js +10 -9
  70. package/build/shared/interfaces/resources/ILargeLanguageModel.js +34 -20
  71. package/build/shared/interfaces/resources/IMilestone.js +50 -0
  72. package/build/shared/interfaces/resources/INodeDescriptorSet.js +85 -75
  73. package/build/shared/interfaces/resources/TResourceType.js +12 -5
  74. package/build/shared/interfaces/resources/TSocketChannelType.js +5 -1
  75. package/build/shared/interfaces/resources/settings/IGenerativeAISettings.js +4 -0
  76. package/build/shared/interfaces/restAPI/metrics/callCounter/v2.0/ICallCounterAggregatedValue_2_0.js +3 -0
  77. package/build/shared/interfaces/restAPI/metrics/callCounter/v2.0/IGetCallCounterOrganisationRest_2_0.js +3 -0
  78. package/build/shared/interfaces/restAPI/metrics/callCounter/v2.0/IGetCallCounterRest_2_0.js +3 -0
  79. package/build/shared/interfaces/restAPI/metrics/callCounter/v2.0/index.js +3 -0
  80. package/build/shared/interfaces/restAPI/resources/milestone/v2.0/ICloneMilestoneRest_2_0.js +3 -0
  81. package/build/shared/interfaces/restAPI/resources/milestone/v2.0/ICreateMilestoneRest_2_0.js +3 -0
  82. package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IDeleteMilestoneRest_2_0.js +3 -0
  83. package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IIndexMilestonesRest_2_0.js +3 -0
  84. package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IMilestoneIndexItem_2_0.js +3 -0
  85. package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IMilestoneStepMetric_2_0.js +3 -0
  86. package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IMilestoneStep_2_0.js +3 -0
  87. package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IMilestone_2_0.js +3 -0
  88. package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IReadMilestoneRest_2_0.js +3 -0
  89. package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IUpdateMilestoneRest_2_0.js +3 -0
  90. package/build/shared/interfaces/restAPI/resources/milestone/v2.0/index.js +3 -0
  91. package/build/shared/interfaces/restAPI/resources/uploadResumable/v2.0/IUploadResumableRest_2_0.js +3 -1
  92. package/build/shared/interfaces/security/ICallCounterAggregatedValue.js +3 -0
  93. package/build/shared/interfaces/security/IPermission.js +5 -2
  94. package/build/shared/interfaces/security/IRole.js +6 -0
  95. package/build/shared/interfaces/security/index.js +2 -1
  96. package/build/shared/interfaces/trainer/ITrainerRecord.js +2 -0
  97. package/package.json +2 -2
  98. package/types/index.d.ts +1053 -169
  99. package/build/shared/charts/descriptors/nlu/extractAnswer.js +0 -115
@@ -36,6 +36,7 @@ exports.endpointTypes = [
36
36
  "genesysBotConnector",
37
37
  "niceCXOne",
38
38
  "agentAssistVoice",
39
+ "webchat3"
39
40
  ];
40
41
  const transferTypes = ["dial", "sip:refer"];
41
42
  exports.webchatPersistentMenuSchema = {
@@ -74,6 +75,18 @@ exports.businessHoursMenuSchema = {
74
75
  }
75
76
  }
76
77
  },
78
+ times: {
79
+ type: "array",
80
+ items: {
81
+ type: "object",
82
+ additionalProperties: false,
83
+ properties: {
84
+ startTime: { type: "string" },
85
+ endTime: { type: "string" },
86
+ weekDay: { type: "string" },
87
+ }
88
+ }
89
+ },
77
90
  enabled: { type: "boolean" },
78
91
  mode: { type: "string" },
79
92
  text: { type: "string" },
@@ -129,11 +142,12 @@ const callFailoverSettingsSchema = {
129
142
  dialTranscribeRecognitionChannel: { type: "number" },
130
143
  dialTranscribeRecognitionGoogleModel: { type: 'string' },
131
144
  dialTranscribeLabel: { type: "string" },
132
- dialTranscribeDeepgramTier: { type: 'string' },
133
145
  dialTranscribeDeepgramModel: { type: 'string' },
146
+ referredBy: { type: "string" },
134
147
  deepgramSmartFormatting: { type: "boolean" },
135
148
  deepgramEndpointing: { type: "boolean" },
136
- deepgramEndpointingValue: { type: "number" }
149
+ deepgramEndpointingValue: { type: "number" },
150
+ dialTranscribeDeepgramTier: { type: "string" }
137
151
  }
138
152
  };
139
153
  exports.callEventSettingsSchema = {
@@ -580,6 +594,7 @@ exports.AMAZON_POLLY_LANGUAGE_MAPPING = {
580
594
  { voice: "Polly.Astrid", gender: "female" }
581
595
  ]
582
596
  };
597
+ [];
583
598
  exports.avayaEndpointSettingsSchema = {
584
599
  type: "object",
585
600
  properties: {
@@ -86,11 +86,11 @@ exports.createHandoverRequestDataSchema = {
86
86
  "buttonId": {
87
87
  "type": "string"
88
88
  },
89
- "salesforcePrechatDetails": {
90
- "type": "array"
89
+ salesforcePrechatDetails: {
90
+ type: ["object", "array", "number", "string"],
91
91
  },
92
- "salesforcePrechatEntities": {
93
- "type": "array"
92
+ salesforcePrechatEntities: {
93
+ type: ["object", "array", "number", "string"],
94
94
  },
95
95
  "notifySessionId": {
96
96
  "type": "string",
@@ -250,8 +250,12 @@ exports.pollAgentRepliesEventSchema = {
250
250
  handoverSettings: handover_1.handoverSettingsSchema,
251
251
  foreignSessionData: handover_1.foreignSessionDataSchema,
252
252
  foreignSessionId: { type: "string" },
253
+ organisation: { type: "string" },
254
+ sessionId: { type: "string" },
253
255
  traceId: { type: "string" },
254
- disableSensitiveLogging: { type: "boolean" }
256
+ disableSensitiveLogging: { type: "boolean" },
257
+ pollingTimeoutAt: { type: "number" },
258
+ sequence: { type: "number" }
255
259
  },
256
260
  };
257
261
  exports.handleHandoverRpcEventSchema = {
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=nlu.js.map
@@ -7,7 +7,7 @@ exports.auditEventTypes = [
7
7
  "replace",
8
8
  "patch",
9
9
  "delete",
10
- "unauthorized"
10
+ "unauthorized",
11
11
  ];
12
12
  exports.actionTypes = [
13
13
  "acceptTermsOfService",
@@ -35,6 +35,7 @@ exports.actionTypes = [
35
35
  "cancelTask",
36
36
  "changePlaybookStepOrder",
37
37
  "cloneFlow",
38
+ "cloneMilestone",
38
39
  "cloneLargeLanguageModel",
39
40
  "configureIdentityProvider",
40
41
  "createKnowledgeSearchIndex",
@@ -105,7 +106,7 @@ exports.actionTypes = [
105
106
  "updateFlowSettings",
106
107
  "optionsResolver",
107
108
  "processKnowledgeSourceUrl",
108
- "processKnowledgeSourceFile"
109
+ "processKnowledgeSourceFile",
109
110
  ];
110
111
  exports.auditEventSchema = {
111
112
  title: "auditEventSchema",
@@ -117,14 +118,14 @@ exports.auditEventSchema = {
117
118
  "user",
118
119
  "userReference",
119
120
  "organisationReference",
120
- "expiresAt"
121
+ "expiresAt",
121
122
  ],
122
123
  properties: {
123
124
  _id: { type: "string", format: "mongo-id" },
124
125
  timestamp: { type: "object", format: "date-time" },
125
126
  type: {
126
127
  type: "string",
127
- enum: [...exports.auditEventTypes]
128
+ enum: [...exports.auditEventTypes],
128
129
  },
129
130
  actionType: { type: "string", enum: [...exports.actionTypes] },
130
131
  user: { type: "string", format: "email" },
@@ -139,13 +140,13 @@ exports.auditEventSchema = {
139
140
  additionalProperties: false,
140
141
  properties: {
141
142
  elementId: { type: "string", format: "mongo-id" },
142
- elementType: { type: "string" }
143
- }
144
- }
143
+ elementType: { type: "string" },
144
+ },
145
+ },
145
146
  },
146
147
  expiresAt: { type: "object", format: "date-time" },
147
148
  payload: { type: "string" },
148
- projectReference: { type: "string", format: "mongo-id" }
149
- }
149
+ projectReference: { type: "string", format: "mongo-id" },
150
+ },
150
151
  };
151
152
  //# sourceMappingURL=IAuditEvent.js.map
@@ -1,28 +1,37 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.largeLanguageModelQuerySchema = exports.largeLanguageModelSchema = exports.largeLanguageModelDataSchema = exports.googleVertexAIMeataSchema = exports.azureOpenAIMeataSchema = exports.openAIMeataSchema = exports.alephAlphaMeataSchema = void 0;
3
+ exports.largeLanguageModelQuerySchema = exports.largeLanguageModelSchema = exports.largeLanguageModelDataSchema = exports.googleVertexAIMetaSchema = exports.azureOpenAIMetaSchema = exports.openAIMetaSchema = exports.alephAlphaMetaSchema = exports.anthropicMetaSchema = void 0;
4
4
  /* Custom Modules */
5
5
  const createQuerySchema_1 = require("../../helper/createQuerySchema");
6
6
  const IEntityMeta_1 = require("./IEntityMeta");
7
7
  const IGenerativeAIModels_1 = require("../generativeAI/IGenerativeAIModels");
8
- exports.alephAlphaMeataSchema = {
9
- title: "alephAlphaMeataSchema",
8
+ exports.anthropicMetaSchema = {
9
+ title: "anthropicMetaSchema",
10
10
  type: "object",
11
11
  additionalProperties: false,
12
12
  properties: {
13
- customModel: { type: "string" }
13
+ customModel: { type: ["string", "null"] }
14
14
  }
15
15
  };
16
- exports.openAIMeataSchema = {
17
- title: "openAIMeataSchema",
16
+ exports.alephAlphaMetaSchema = {
17
+ title: "alephAlphaMetaSchema",
18
18
  type: "object",
19
19
  additionalProperties: false,
20
20
  properties: {
21
- customModel: { type: "string" }
21
+ customModel: { type: ["string", "null"] },
22
+ baseCustomUrl: { type: ["string", "null"] },
23
+ }
24
+ };
25
+ exports.openAIMetaSchema = {
26
+ title: "openAIMetaSchema",
27
+ type: "object",
28
+ additionalProperties: false,
29
+ properties: {
30
+ customModel: { type: ["string", "null"] }
22
31
  }
23
32
  };
24
- exports.azureOpenAIMeataSchema = {
25
- title: "azureOpenAIMeataSchema",
33
+ exports.azureOpenAIMetaSchema = {
34
+ title: "azureOpenAIMetaSchema",
26
35
  type: "object",
27
36
  additionalProperties: false,
28
37
  properties: {
@@ -30,37 +39,42 @@ exports.azureOpenAIMeataSchema = {
30
39
  deploymentName: { type: ["string", "null"] },
31
40
  apiVersion: { type: ["string", "null"] },
32
41
  baseCustomUrl: { type: ["string", "null"] },
42
+ customModel: { type: ["string", "null"] }
33
43
  }
34
44
  };
35
- exports.googleVertexAIMeataSchema = {
36
- title: "googleVertexAIMeataSchema",
45
+ exports.googleVertexAIMetaSchema = {
46
+ title: "googleVertexAIMetaSchema",
37
47
  type: "object",
38
48
  additionalProperties: false,
39
49
  properties: {
40
50
  apiEndPoint: { type: "string", format: "resource-name" },
41
51
  location: { type: "string", format: "resource-name" },
42
- publisher: { type: ["string", "null"] }
52
+ publisher: { type: ["string", "null"] },
53
+ customModel: { type: ["string", "null"] },
43
54
  }
44
55
  };
45
56
  exports.largeLanguageModelDataSchema = {
46
57
  title: "largeLanguageModelDataSchema",
47
58
  type: "object",
48
59
  additionalProperties: false,
49
- required: [
50
- "name",
51
- "modelType",
60
+ oneOf: [
61
+ { required: ["name", "modelType",] },
62
+ { required: ["name", "modelType", "modelGroup", "isCustomModel"] }
52
63
  ],
53
64
  properties: {
54
65
  name: { type: "string", format: "resource-name" },
55
66
  description: { type: "string", format: "resource-description" },
56
- modelType: { type: "string", enum: [...IGenerativeAIModels_1.generativeAIModels] },
67
+ modelType: { type: "string" } /* wildcard string for the Custom Models */,
68
+ isCustomModel: { type: "boolean" },
69
+ modelGroup: { type: "string", enum: [...IGenerativeAIModels_1.modelGroups] },
57
70
  provider: { type: "string", enum: [...IGenerativeAIModels_1.generativeAIProviders] },
58
71
  connectionId: { type: "string", format: "uuid" },
59
72
  isDefault: { type: "boolean" },
60
- openAI: exports.openAIMeataSchema,
61
- azureOpenAI: exports.azureOpenAIMeataSchema,
62
- googleVertexAI: exports.googleVertexAIMeataSchema,
63
- alephAlpha: exports.alephAlphaMeataSchema
73
+ openAI: exports.openAIMetaSchema,
74
+ azureOpenAI: exports.azureOpenAIMetaSchema,
75
+ googleVertexAI: exports.googleVertexAIMetaSchema,
76
+ alephAlpha: exports.alephAlphaMetaSchema,
77
+ anthropic: exports.anthropicMetaSchema
64
78
  }
65
79
  };
66
80
  exports.largeLanguageModelSchema = {
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.milestoneSchema = exports.milestoneDataSchema = exports.milestoneStepSchema = exports.milestoneStepMetricSchema = void 0;
4
+ const IEntityMeta_1 = require("./IEntityMeta");
5
+ exports.milestoneStepMetricSchema = {
6
+ title: "milestoneStepMetricSchema",
7
+ type: "object",
8
+ additionalProperties: false,
9
+ properties: {
10
+ _id: { type: "string", format: "mongo-id" },
11
+ name: { type: "string" },
12
+ description: { type: "string" },
13
+ type: { type: "string", enum: ["currency", "duration"] },
14
+ value: { type: "number" },
15
+ },
16
+ };
17
+ exports.milestoneStepSchema = {
18
+ title: "milestoneStepSchema",
19
+ type: "object",
20
+ additionalProperties: false,
21
+ properties: {
22
+ _id: { type: "string", format: "mongo-id" },
23
+ name: { type: "string" },
24
+ description: { type: "string" },
25
+ order: { type: "number" },
26
+ type: { type: "string", enum: ["start", "completion"] },
27
+ metrics: {
28
+ type: "array",
29
+ items: exports.milestoneStepMetricSchema,
30
+ },
31
+ },
32
+ };
33
+ exports.milestoneDataSchema = {
34
+ title: "milestoneDataSchema",
35
+ type: "object",
36
+ additionalProperties: false,
37
+ properties: {
38
+ version: { type: "number" },
39
+ description: { type: "string" },
40
+ name: { type: "string", format: "resource-name" },
41
+ steps: { type: "array", items: exports.milestoneStepSchema },
42
+ },
43
+ };
44
+ exports.milestoneSchema = {
45
+ title: "milestoneSchema",
46
+ type: "object",
47
+ additionalProperties: false,
48
+ properties: Object.assign(Object.assign(Object.assign({}, exports.milestoneDataSchema.properties), IEntityMeta_1.entityMetaSchema.properties), { referenceId: { type: "string", format: "uuid" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }),
49
+ };
50
+ //# sourceMappingURL=IMilestone.js.map
@@ -12,8 +12,8 @@ const nodeAppearanceSchema = {
12
12
  textColor: { type: "string", format: "color" },
13
13
  contrastTextColor: { type: "string", format: "color" },
14
14
  showIcon: { type: "boolean" },
15
- variant: { type: "string", enum: ["regular", "mini", "hexagon"] }
16
- }
15
+ variant: { type: "string", enum: ["regular", "mini", "hexagon"] },
16
+ },
17
17
  };
18
18
  const nodeBehaviorSchema = {
19
19
  title: "nodeBehaviorSchema",
@@ -21,18 +21,24 @@ const nodeBehaviorSchema = {
21
21
  additionalProperties: false,
22
22
  properties: {
23
23
  stopping: { type: "boolean" },
24
- entrypoint: { type: "boolean" }
25
- }
24
+ entrypoint: { type: "boolean" },
25
+ },
26
26
  };
27
- exports.nodePreviewTypes = ["text", "sayNode", "custom", "resource", "image"];
27
+ exports.nodePreviewTypes = [
28
+ "text",
29
+ "sayNode",
30
+ "custom",
31
+ "resource",
32
+ "image",
33
+ ];
28
34
  const nodePreviewSchema = {
29
35
  title: "nodePreviewSchema",
30
36
  type: "object",
31
37
  additionalProperties: false,
32
38
  properties: {
33
39
  key: { type: "string", minLength: 1, maxLength: 200 },
34
- type: { type: "string", enum: [...exports.nodePreviewTypes] }
35
- }
40
+ type: { type: "string", enum: [...exports.nodePreviewTypes] },
41
+ },
36
42
  };
37
43
  const nodeConstraintSchema = {
38
44
  title: "nodeConstraintSchema",
@@ -41,13 +47,13 @@ const nodeConstraintSchema = {
41
47
  properties: {
42
48
  blacklist: {
43
49
  type: "array",
44
- items: { type: "string", minLength: 1, maxLength: 200 }
50
+ items: { type: "string", minLength: 1, maxLength: 200 },
45
51
  },
46
52
  whitelist: {
47
53
  type: "array",
48
- items: { type: "string", minLength: 1, maxLength: 200 }
49
- }
50
- }
54
+ items: { type: "string", minLength: 1, maxLength: 200 },
55
+ },
56
+ },
51
57
  };
52
58
  const nodeConstraintsSchema = {
53
59
  title: "nodeConstraintsSchema",
@@ -66,10 +72,10 @@ const nodeConstraintsSchema = {
66
72
  properties: {
67
73
  children: nodeConstraintSchema,
68
74
  predecessor: nodeConstraintSchema,
69
- successor: nodeConstraintSchema
70
- }
71
- }
72
- }
75
+ successor: nodeConstraintSchema,
76
+ },
77
+ },
78
+ },
73
79
  };
74
80
  const nodeDependenciesSchema = {
75
81
  title: "nodeDependenciesSchema",
@@ -78,14 +84,15 @@ const nodeDependenciesSchema = {
78
84
  properties: {
79
85
  children: {
80
86
  type: "array",
81
- items: { type: "string", minLength: 1, maxLength: 200 }
82
- }
83
- }
87
+ items: { type: "string", minLength: 1, maxLength: 200 },
88
+ },
89
+ },
84
90
  };
85
91
  exports.nodeFieldTypes = [
86
92
  "adaptivecard",
87
93
  "agentAssistConfig",
88
94
  "appTemplate",
95
+ "backgroundSelector",
89
96
  "caseNode",
90
97
  "checkbox",
91
98
  "chipInput",
@@ -141,7 +148,7 @@ exports.searchableNodeFieldTypes = [
141
148
  "say",
142
149
  "code",
143
150
  "caseNode",
144
- "select"
151
+ "select",
145
152
  ];
146
153
  exports.nodeFieldSingleConditionSchema = {
147
154
  title: "nodeFieldSingleConditionSchema",
@@ -158,11 +165,11 @@ exports.nodeFieldSingleConditionSchema = {
158
165
  { type: "number" },
159
166
  { type: "array", items: { type: "number" } },
160
167
  { type: "boolean" },
161
- { type: "array", items: { type: "boolean" } }
162
- ]
168
+ { type: "array", items: { type: "boolean" } },
169
+ ],
163
170
  },
164
- negate: { type: "boolean" }
165
- }
171
+ negate: { type: "boolean" },
172
+ },
166
173
  };
167
174
  exports.nodeFieldANDConditionSchema = {
168
175
  title: "nodeFieldANDConditionSchema",
@@ -170,8 +177,8 @@ exports.nodeFieldANDConditionSchema = {
170
177
  additionalProperties: false,
171
178
  required: ["and"],
172
179
  properties: {
173
- and: { type: "array", items: { $ref: "nodeFieldConditionSchema" } }
174
- }
180
+ and: { type: "array", items: { $ref: "nodeFieldConditionSchema" } },
181
+ },
175
182
  };
176
183
  exports.nodeFieldORConditionSchema = {
177
184
  title: "nodeFieldORConditionSchema",
@@ -179,8 +186,8 @@ exports.nodeFieldORConditionSchema = {
179
186
  additionalProperties: false,
180
187
  required: ["or"],
181
188
  properties: {
182
- or: { type: "array", items: { $ref: "nodeFieldConditionSchema" } }
183
- }
189
+ or: { type: "array", items: { $ref: "nodeFieldConditionSchema" } },
190
+ },
184
191
  };
185
192
  // @ts-ignore
186
193
  exports.nodeFieldConditionSchema = {
@@ -193,17 +200,20 @@ exports.nodeFieldConditionSchema = {
193
200
  // @ts-ignore
194
201
  exports.nodeFieldANDConditionSchema,
195
202
  // @ts-ignore
196
- exports.nodeFieldORConditionSchema
197
- ]
203
+ exports.nodeFieldORConditionSchema,
204
+ ],
198
205
  };
199
206
  exports.nodeOptionsResolverSchema = {
200
207
  title: "nodeOptionsResolverSchema",
201
208
  type: "object",
202
209
  additionalProperties: false,
203
210
  properties: {
204
- dependencies: { type: "array", items: { type: "string", minLength: 1, maxLength: 200 } },
205
- resolverFunction: {}
206
- }
211
+ dependencies: {
212
+ type: "array",
213
+ items: { type: "string", minLength: 1, maxLength: 200 },
214
+ },
215
+ resolverFunction: {},
216
+ },
207
217
  };
208
218
  exports.nodeFieldSchema = {
209
219
  title: "nodeFieldSchema",
@@ -224,10 +234,10 @@ exports.nodeFieldSchema = {
224
234
  deDE: { type: "string", maxLength: 200 },
225
235
  jaJP: { type: "string", maxLength: 200 },
226
236
  esES: { type: "string", maxLength: 200 },
227
- koKR: { type: "string", maxLength: 200 }
228
- }
229
- }
230
- ]
237
+ koKR: { type: "string", maxLength: 200 },
238
+ },
239
+ },
240
+ ],
231
241
  },
232
242
  condition: exports.nodeFieldConditionSchema,
233
243
  defaultValue: {
@@ -237,8 +247,8 @@ exports.nodeFieldSchema = {
237
247
  { type: "number" },
238
248
  { type: "null" },
239
249
  { type: "object" },
240
- { type: "string" }
241
- ]
250
+ { type: "string" },
251
+ ],
242
252
  },
243
253
  description: {
244
254
  oneOf: [
@@ -252,14 +262,14 @@ exports.nodeFieldSchema = {
252
262
  deDE: { type: "string", maxLength: 200 },
253
263
  jaJP: { type: "string", maxLength: 200 },
254
264
  esES: { type: "string", maxLength: 200 },
255
- koKR: { type: "string", maxLength: 200 }
256
- }
257
- }
258
- ]
265
+ koKR: { type: "string", maxLength: 200 },
266
+ },
267
+ },
268
+ ],
259
269
  },
260
270
  params: { type: "object" },
261
- optionsResolver: exports.nodeOptionsResolverSchema
262
- }
271
+ optionsResolver: exports.nodeOptionsResolverSchema,
272
+ },
263
273
  };
264
274
  exports.nodeSectionSchema = {
265
275
  title: "nodeSectionSchema",
@@ -279,10 +289,10 @@ exports.nodeSectionSchema = {
279
289
  deDE: { type: "string", maxLength: 200 },
280
290
  jaJP: { type: "string", maxLength: 200 },
281
291
  esES: { type: "string", maxLength: 200 },
282
- koKR: { type: "string", maxLength: 200 }
283
- }
284
- }
285
- ]
292
+ koKR: { type: "string", maxLength: 200 },
293
+ },
294
+ },
295
+ ],
286
296
  },
287
297
  description: {
288
298
  oneOf: [
@@ -296,10 +306,10 @@ exports.nodeSectionSchema = {
296
306
  deDE: { type: "string", maxLength: 200 },
297
307
  jaJP: { type: "string", maxLength: 200 },
298
308
  esES: { type: "string", maxLength: 200 },
299
- koKR: { type: "string", maxLength: 200 }
300
- }
301
- }
302
- ]
309
+ koKR: { type: "string", maxLength: 200 },
310
+ },
311
+ },
312
+ ],
303
313
  },
304
314
  condition: exports.nodeFieldConditionSchema,
305
315
  defaultCollapsed: { type: "boolean" },
@@ -311,10 +321,10 @@ exports.nodeSectionSchema = {
311
321
  items: {
312
322
  type: "string",
313
323
  minLength: 1,
314
- maxLength: 200
315
- }
316
- }
317
- }
324
+ maxLength: 200,
325
+ },
326
+ },
327
+ },
318
328
  };
319
329
  exports.nodeFieldAndSectionFormElementSchema = {
320
330
  title: "nodeFieldAndSectionFormElementSchema",
@@ -322,8 +332,8 @@ exports.nodeFieldAndSectionFormElementSchema = {
322
332
  required: ["key", "type"],
323
333
  properties: {
324
334
  key: { type: "string", minLength: 1, maxLength: 200 },
325
- type: { type: "string", enum: ["field", "section"] }
326
- }
335
+ type: { type: "string", enum: ["field", "section"] },
336
+ },
327
337
  };
328
338
  exports.nodeDescriptorSchema = {
329
339
  title: "nodeDescriptorSchema",
@@ -345,10 +355,10 @@ exports.nodeDescriptorSchema = {
345
355
  deDE: { type: "string", maxLength: 200 },
346
356
  jaJP: { type: "string", maxLength: 200 },
347
357
  esES: { type: "string", maxLength: 200 },
348
- koKR: { type: "string", maxLength: 200 }
349
- }
350
- }
351
- ]
358
+ koKR: { type: "string", maxLength: 200 },
359
+ },
360
+ },
361
+ ],
352
362
  },
353
363
  summary: {
354
364
  oneOf: [
@@ -362,10 +372,10 @@ exports.nodeDescriptorSchema = {
362
372
  deDE: { type: "string", maxLength: 200 },
363
373
  jaJP: { type: "string", maxLength: 200 },
364
374
  esES: { type: "string", maxLength: 200 },
365
- koKR: { type: "string", maxLength: 200 }
366
- }
367
- }
368
- ]
375
+ koKR: { type: "string", maxLength: 200 },
376
+ },
377
+ },
378
+ ],
369
379
  },
370
380
  appearance: nodeAppearanceSchema,
371
381
  behavior: nodeBehaviorSchema,
@@ -378,25 +388,25 @@ exports.nodeDescriptorSchema = {
378
388
  type: "array",
379
389
  items: { type: "string" },
380
390
  uniqueItems: true,
381
- minItems: 0
391
+ minItems: 0,
382
392
  },
383
393
  tokens: {
384
394
  type: "array",
385
395
  items: ISnippet_1.snippetDataSchema,
386
- uniqueItems: true
396
+ uniqueItems: true,
387
397
  },
388
398
  sections: {
389
399
  type: "array",
390
400
  additionalItems: false,
391
- items: exports.nodeSectionSchema
401
+ items: exports.nodeSectionSchema,
392
402
  },
393
403
  form: {
394
404
  type: "array",
395
405
  additionalItems: false,
396
406
  maxLength: 25,
397
- items: exports.nodeFieldAndSectionFormElementSchema
398
- }
399
- }
407
+ items: exports.nodeFieldAndSectionFormElementSchema,
408
+ },
409
+ },
400
410
  };
401
411
  exports.nodeDescriptorSetSchema = {
402
412
  title: "nodeDescriptorSetSchema",
@@ -412,10 +422,10 @@ exports.nodeDescriptorSetSchema = {
412
422
  descriptors: {
413
423
  type: "array",
414
424
  additionalItems: false,
415
- items: exports.nodeDescriptorSchema
425
+ items: exports.nodeDescriptorSchema,
416
426
  },
417
427
  resourceType: { type: "string", enum: TResourceType_1.chartableResourceTypes },
418
- trustedCode: { type: "boolean" }
419
- }
428
+ trustedCode: { type: "boolean" },
429
+ },
420
430
  };
421
431
  //# sourceMappingURL=INodeDescriptorSet.js.map