@cognigy/rest-api-client 2025.14.0 → 2025.15.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 (27) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/build/apigroups/ResourcesAPIGroup_2_0.js +1 -1
  3. package/build/apigroups/SimulationAPIGroup_2_0.js +2 -1
  4. package/build/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +26 -1
  5. package/build/shared/charts/descriptors/service/GPTPrompt.js +26 -1
  6. package/build/shared/helper/BaseContext.js +3 -1
  7. package/build/shared/interfaces/resources/IAiAgent.js +1 -1
  8. package/build/shared/interfaces/resources/IExtension.js +12 -13
  9. package/build/shared/interfaces/resources/IKnowledgeDescriptor.js +45 -0
  10. package/build/shared/interfaces/restAPI/simulation/persona/IGenerateBulkPersonaRest_2_0.js +3 -0
  11. package/build/shared/interfaces/restAPI/simulation/simulationRun/ISimulationRunRest_2_0.js +6 -1
  12. package/build/shared/interfaces/security/IRole.js +1 -0
  13. package/build/shared/interfaces/security/index.js +1 -1
  14. package/dist/esm/apigroups/ResourcesAPIGroup_2_0.js +1 -1
  15. package/dist/esm/apigroups/SimulationAPIGroup_2_0.js +2 -1
  16. package/dist/esm/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +26 -1
  17. package/dist/esm/shared/charts/descriptors/service/GPTPrompt.js +26 -1
  18. package/dist/esm/shared/helper/BaseContext.js +3 -1
  19. package/dist/esm/shared/interfaces/resources/IAiAgent.js +1 -1
  20. package/dist/esm/shared/interfaces/resources/IExtension.js +12 -13
  21. package/dist/esm/shared/interfaces/resources/IKnowledgeDescriptor.js +42 -0
  22. package/dist/esm/shared/interfaces/restAPI/simulation/persona/IGenerateBulkPersonaRest_2_0.js +2 -0
  23. package/dist/esm/shared/interfaces/restAPI/simulation/simulationRun/ISimulationRunRest_2_0.js +5 -0
  24. package/dist/esm/shared/interfaces/security/IRole.js +1 -0
  25. package/dist/esm/shared/interfaces/security/index.js +1 -1
  26. package/package.json +1 -1
  27. package/types/index.d.ts +268 -50
package/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 2025.15.0
2
+ Released: July 22nd, 2025
3
+
4
+ Released state of package up to date with Cognigy.AI v2025.15.0
5
+
1
6
  # 2025.14.0
2
7
  Released: July 08th, 2025
3
8
 
@@ -633,7 +633,7 @@ const ResourcesAPIGroup_2_0 = (instance) => {
633
633
  var { projectId } = _a, args = __rest(_a, ["projectId"]);
634
634
  return (0, GenericAPIFn_1.GenericAPIFn)(`/new/v2.0/projects/${projectId}/generate-output/design-time-llm`, "POST", self)(args);
635
635
  },
636
- readFlowChartAiAgents: ({ flowId, preferredLocaleId }, options) => (0, GenericAPIFn_1.GenericAPIFn)(`/new/v2.0/flows/${flowId}/chart/nodes/output/aiagents?${(0, query_1.stringifyQuery)({
636
+ readFlowChartAiAgents: ({ flowId, preferredLocaleId }, options) => (0, GenericAPIFn_1.GenericAPIFn)(`/new/v2.0/flows/${flowId}/chart/nodes/aiagents?${(0, query_1.stringifyQuery)({
637
637
  preferredLocaleId
638
638
  })}`, "GET", self)(undefined, options)
639
639
  };
@@ -54,7 +54,8 @@ function SimulationAPIGroup_2_0(instance) {
54
54
  },
55
55
  getPersonaOptions: (args, options) => (0, GenericAPIFn_1.GenericAPIFn)("/testing/beta/personas/options", "POST", self)(args, options),
56
56
  generatePersona: (args, options) => (0, GenericAPIFn_1.GenericAPIFn)("/testing/beta/personas/generate", "POST", self)(args, options),
57
- regeneratePersonaField: (args, options) => (0, GenericAPIFn_1.GenericAPIFn)("/testing/beta/personas/regenerate-field", "POST", self)(args, options)
57
+ regeneratePersonaField: (args, options) => (0, GenericAPIFn_1.GenericAPIFn)("/testing/beta/personas/regenerate-field", "POST", self)(args, options),
58
+ generateBulkPersona: (args, options) => (0, GenericAPIFn_1.GenericAPIFn)("/testing/beta/personas/generate-bulk", "POST", self)(args, options)
58
59
  };
59
60
  }
60
61
  exports.SimulationAPIGroup_2_0 = SimulationAPIGroup_2_0;
@@ -642,9 +642,34 @@ New: `;
642
642
  };
643
643
  api.logDebugError(JSON.stringify(compactError, undefined, 2), "Search Extract Output: Error");
644
644
  if (!(error instanceof errors_1.InternalServerError)) {
645
+ const metadata = api.getMetadata();
645
646
  api.emitToOpsCenter({
647
+ projectId: metadata === null || metadata === void 0 ? void 0 : metadata.projectId,
646
648
  subComponent: "KnowledgeAIQueries",
647
- title: error === null || error === void 0 ? void 0 : error.message
649
+ title: error === null || error === void 0 ? void 0 : error.message,
650
+ errorCode: "ERR_FLOW_006",
651
+ metadata: {
652
+ // extra metadata for the error is enriched in service-sentinel
653
+ snapshot: {
654
+ id: metadata === null || metadata === void 0 ? void 0 : metadata.snapshotId,
655
+ name: metadata === null || metadata === void 0 ? void 0 : metadata.snapshotName,
656
+ },
657
+ flow: {
658
+ referenceId: cognigy.flowReferenceId,
659
+ name: input.flowName,
660
+ },
661
+ node: {
662
+ referenceId: nodeId
663
+ },
664
+ knowledgeStore: {
665
+ referenceId: knowledgeStoreId,
666
+ },
667
+ locale: {
668
+ referenceId: metadata === null || metadata === void 0 ? void 0 : metadata.localeReferenceId,
669
+ name: metadata === null || metadata === void 0 ? void 0 : metadata.localeName,
670
+ },
671
+ },
672
+ isSnapshotError: !!(metadata === null || metadata === void 0 ? void 0 : metadata.snapshotId),
648
673
  });
649
674
  }
650
675
  if ((_a = error === null || error === void 0 ? void 0 : error.originalErrorDetails) === null || _a === void 0 ? void 0 : _a.code) {
@@ -588,9 +588,34 @@ exports.GPT_PROMPT = (0, createNodeDescriptor_1.createNodeDescriptor)({
588
588
  error: compactError,
589
589
  };
590
590
  if (!(error instanceof errors_1.InternalServerError)) {
591
+ const metadata = api.getMetadata();
591
592
  api.emitToOpsCenter({
593
+ projectId: metadata === null || metadata === void 0 ? void 0 : metadata.projectId,
592
594
  subComponent: "LargeLanguageModelCalls",
593
- title: error === null || error === void 0 ? void 0 : error.message
595
+ title: error === null || error === void 0 ? void 0 : error.message,
596
+ errorCode: "ERR_FLOW_005",
597
+ isSnapshotError: !!(metadata === null || metadata === void 0 ? void 0 : metadata.snapshotId),
598
+ metadata: {
599
+ // extra metadata for the error is enriched in service-sentinel
600
+ snapshot: {
601
+ id: metadata === null || metadata === void 0 ? void 0 : metadata.snapshotId,
602
+ name: metadata === null || metadata === void 0 ? void 0 : metadata.snapshotName,
603
+ },
604
+ flow: {
605
+ referenceId: cognigy.flowReferenceId,
606
+ name: input.flowName,
607
+ },
608
+ node: {
609
+ referenceId: nodeId
610
+ },
611
+ llm: {
612
+ referenceId: llmProviderReferenceId,
613
+ },
614
+ locale: {
615
+ referenceId: metadata === null || metadata === void 0 ? void 0 : metadata.localeReferenceId,
616
+ name: metadata === null || metadata === void 0 ? void 0 : metadata.localeName,
617
+ },
618
+ }
594
619
  });
595
620
  }
596
621
  // add error to context or input
@@ -153,7 +153,9 @@ class BaseContext {
153
153
  return (c) ? c : undefined;
154
154
  }
155
155
  else { // there is none
156
- return (this.context[key] || this.context[key] === 0) ? this.context[key] : undefined;
156
+ return this.context[key] !== null && this.context[key] !== undefined
157
+ ? this.context[key]
158
+ : undefined;
157
159
  }
158
160
  }
159
161
  /**
@@ -13,7 +13,7 @@ exports.aiAgentDataSchema = {
13
13
  name: { type: "string", format: "resource-name" },
14
14
  image: { type: "string" },
15
15
  imageOptimizedFormat: { type: "boolean" },
16
- knowledgeReferenceId: { type: "string", format: "uuid" },
16
+ knowledgeReferenceId: { type: ["string", "null"], format: "uuid" },
17
17
  description: { type: "string", maxLength: 1000 },
18
18
  speakingStyle: {
19
19
  type: "object",
@@ -1,24 +1,28 @@
1
1
  "use strict";
2
+ var _a;
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
3
4
  exports.extensionSchema = exports.extensionDataSchema = exports.EXTENSION_README_SIZE = exports.extensionNodePackageDataSchema = void 0;
4
5
  const IEntityMeta_1 = require("./IEntityMeta");
5
6
  const INodeDescriptorSet_1 = require("./INodeDescriptorSet");
7
+ const IKnowledgeDescriptor_1 = require("./IKnowledgeDescriptor");
6
8
  exports.extensionNodePackageDataSchema = {
7
9
  title: "extensionNodePackageDataSchema",
8
10
  type: "object",
9
11
  additionalProperties: false,
10
12
  properties: {
11
13
  nodes: { type: "array", items: INodeDescriptorSet_1.nodeDescriptorSchema },
14
+ knowledge: {
15
+ type: "array",
16
+ items: IKnowledgeDescriptor_1.knowledgeDescriptorSchema,
17
+ maxItems: parseInt((_a = process === null || process === void 0 ? void 0 : process.env) === null || _a === void 0 ? void 0 : _a.EXTENSIONS_KNOWLEDGE_EXTRACTORS_MAX, 10) || 20
18
+ },
12
19
  connections: {
13
20
  type: "array",
14
21
  additionalItems: false,
15
22
  items: {
16
23
  type: "object",
17
24
  additionalProperties: false,
18
- required: [
19
- "type",
20
- "fields"
21
- ],
25
+ required: ["type", "fields"],
22
26
  properties: {
23
27
  label: { type: "string", format: "resource-name" },
24
28
  type: { type: "string", format: "resource-name" },
@@ -28,9 +32,7 @@ exports.extensionNodePackageDataSchema = {
28
32
  items: {
29
33
  type: "object",
30
34
  additionalProperties: false,
31
- required: [
32
- "fieldName"
33
- ],
35
+ required: ["fieldName"],
34
36
  properties: {
35
37
  _id: { type: "string", format: "mongo-id" },
36
38
  fieldName: {
@@ -53,10 +55,7 @@ exports.extensionNodePackageDataSchema = {
53
55
  items: {
54
56
  type: "object",
55
57
  additionalProperties: false,
56
- required: [
57
- "type",
58
- "path"
59
- ],
58
+ required: ["type", "path"],
60
59
  properties: {
61
60
  label: { type: "string", format: "resource-name" },
62
61
  type: { type: "string", format: "resource-name" },
@@ -64,7 +63,7 @@ exports.extensionNodePackageDataSchema = {
64
63
  }
65
64
  }
66
65
  }
67
- },
66
+ }
68
67
  };
69
68
  /** 512 KB (1 * 1024 * 1024), Javascript uses 16bit for a single character */
70
69
  exports.EXTENSION_README_SIZE = 1048576;
@@ -78,6 +77,6 @@ exports.extensionSchema = {
78
77
  title: "extensionSchema",
79
78
  type: "object",
80
79
  additionalProperties: false,
81
- properties: Object.assign(Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), exports.extensionDataSchema.properties), { subResourceReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } })
80
+ properties: Object.assign(Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), exports.extensionDataSchema.properties), { subResourceReference: { type: "string", format: "mongo-id" }, knowledge: { type: "array", items: IKnowledgeDescriptor_1.knowledgeDescriptorSchema }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } })
82
81
  };
83
82
  //# sourceMappingURL=IExtension.js.map
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.knowledgeDescriptorSchema = exports.knowledgeFieldSchema = exports.knowledgeFieldTypes = void 0;
4
+ const INodeDescriptorSet_1 = require("./INodeDescriptorSet");
5
+ exports.knowledgeFieldTypes = [
6
+ "text",
7
+ "rule",
8
+ "json",
9
+ "checkbox",
10
+ "time",
11
+ "date",
12
+ "datetime",
13
+ "select",
14
+ "xml",
15
+ "textArray",
16
+ "chipInput",
17
+ "toggle",
18
+ "slider",
19
+ "number",
20
+ "daterange",
21
+ "connection",
22
+ "condition",
23
+ "description",
24
+ ];
25
+ exports.knowledgeFieldSchema = {
26
+ title: "knowledgeFieldSchema",
27
+ type: "object",
28
+ additionalProperties: false,
29
+ properties: Object.assign(Object.assign({}, INodeDescriptorSet_1.nodeFieldSchema.properties), { type: { type: "string", enum: [...exports.knowledgeFieldTypes] }, key: { type: "string", minLength: 1, maxLength: 200 } }),
30
+ };
31
+ const { type, summary, defaultLabel, sections, form } = INodeDescriptorSet_1.nodeDescriptorSchema.properties;
32
+ exports.knowledgeDescriptorSchema = {
33
+ title: "knowledgeDescriptorSchema",
34
+ type: "object",
35
+ additionalProperties: false,
36
+ properties: {
37
+ type,
38
+ label: defaultLabel,
39
+ summary,
40
+ sections,
41
+ form,
42
+ fields: { type: "array", items: exports.knowledgeFieldSchema },
43
+ },
44
+ };
45
+ //# sourceMappingURL=IKnowledgeDescriptor.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IGenerateBulkPersonaRest_2_0.js.map
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ESentimentTypeRest_2_0 = exports.ESuccessCriteriaTypeRest_2_0 = exports.ETurnTypeRest_2_0 = void 0;
3
+ exports.ESentimentTypeRest_2_0 = exports.SuccessCriterionType_2_0 = exports.ESuccessCriteriaTypeRest_2_0 = exports.ETurnTypeRest_2_0 = void 0;
4
4
  var ETurnTypeRest_2_0;
5
5
  (function (ETurnTypeRest_2_0) {
6
6
  ETurnTypeRest_2_0["INPUT"] = "input";
@@ -10,6 +10,11 @@ var ESuccessCriteriaTypeRest_2_0;
10
10
  (function (ESuccessCriteriaTypeRest_2_0) {
11
11
  ESuccessCriteriaTypeRest_2_0["TEXT"] = "text";
12
12
  })(ESuccessCriteriaTypeRest_2_0 = exports.ESuccessCriteriaTypeRest_2_0 || (exports.ESuccessCriteriaTypeRest_2_0 = {}));
13
+ var SuccessCriterionType_2_0;
14
+ (function (SuccessCriterionType_2_0) {
15
+ SuccessCriterionType_2_0["TEXT"] = "text";
16
+ SuccessCriterionType_2_0["GOAL_COMPLETED"] = "goalCompleted";
17
+ })(SuccessCriterionType_2_0 = exports.SuccessCriterionType_2_0 || (exports.SuccessCriterionType_2_0 = {}));
13
18
  var ESentimentTypeRest_2_0;
14
19
  (function (ESentimentTypeRest_2_0) {
15
20
  ESentimentTypeRest_2_0["POSITIVE"] = "POSITIVE";
@@ -41,6 +41,7 @@ exports.organisationWideRoles = [
41
41
  "userManager",
42
42
  "userDetailsViewer",
43
43
  "voiceGatewayUser",
44
+ "autoDialerUser",
44
45
  "opsCenterUser",
45
46
  ];
46
47
  /**
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.identityProviderSchema = exports.oidcIdentityProviderDataSchema = exports.samlIdentityProviderDataSchema = exports.operations = exports.availableRoles = exports.projectWideRoles = exports.organisationWideRoles = exports.availablePermissions = exports.COMPUTED_ACL_HASH_VERSION = void 0;
4
- exports.COMPUTED_ACL_HASH_VERSION = "v21";
4
+ exports.COMPUTED_ACL_HASH_VERSION = "v23";
5
5
  var IPermission_1 = require("./IPermission");
6
6
  Object.defineProperty(exports, "availablePermissions", { enumerable: true, get: function () { return IPermission_1.availablePermissions; } });
7
7
  var IRole_1 = require("./IRole");
@@ -620,7 +620,7 @@ export const ResourcesAPIGroup_2_0 = (instance) => {
620
620
  var { projectId } = _a, args = __rest(_a, ["projectId"]);
621
621
  return GenericAPIFn(`/new/v2.0/projects/${projectId}/generate-output/design-time-llm`, "POST", self)(args);
622
622
  },
623
- readFlowChartAiAgents: ({ flowId, preferredLocaleId }, options) => GenericAPIFn(`/new/v2.0/flows/${flowId}/chart/nodes/output/aiagents?${stringifyQuery({
623
+ readFlowChartAiAgents: ({ flowId, preferredLocaleId }, options) => GenericAPIFn(`/new/v2.0/flows/${flowId}/chart/nodes/aiagents?${stringifyQuery({
624
624
  preferredLocaleId
625
625
  })}`, "GET", self)(undefined, options)
626
626
  };
@@ -41,7 +41,8 @@ export function SimulationAPIGroup_2_0(instance) {
41
41
  },
42
42
  getPersonaOptions: (args, options) => GenericAPIFn("/testing/beta/personas/options", "POST", self)(args, options),
43
43
  generatePersona: (args, options) => GenericAPIFn("/testing/beta/personas/generate", "POST", self)(args, options),
44
- regeneratePersonaField: (args, options) => GenericAPIFn("/testing/beta/personas/regenerate-field", "POST", self)(args, options)
44
+ regeneratePersonaField: (args, options) => GenericAPIFn("/testing/beta/personas/regenerate-field", "POST", self)(args, options),
45
+ generateBulkPersona: (args, options) => GenericAPIFn("/testing/beta/personas/generate-bulk", "POST", self)(args, options)
45
46
  };
46
47
  }
47
48
  //# sourceMappingURL=SimulationAPIGroup_2_0.js.map
@@ -640,9 +640,34 @@ New: `;
640
640
  };
641
641
  api.logDebugError(JSON.stringify(compactError, undefined, 2), "Search Extract Output: Error");
642
642
  if (!(error instanceof InternalServerError)) {
643
+ const metadata = api.getMetadata();
643
644
  api.emitToOpsCenter({
645
+ projectId: metadata === null || metadata === void 0 ? void 0 : metadata.projectId,
644
646
  subComponent: "KnowledgeAIQueries",
645
- title: error === null || error === void 0 ? void 0 : error.message
647
+ title: error === null || error === void 0 ? void 0 : error.message,
648
+ errorCode: "ERR_FLOW_006",
649
+ metadata: {
650
+ // extra metadata for the error is enriched in service-sentinel
651
+ snapshot: {
652
+ id: metadata === null || metadata === void 0 ? void 0 : metadata.snapshotId,
653
+ name: metadata === null || metadata === void 0 ? void 0 : metadata.snapshotName,
654
+ },
655
+ flow: {
656
+ referenceId: cognigy.flowReferenceId,
657
+ name: input.flowName,
658
+ },
659
+ node: {
660
+ referenceId: nodeId
661
+ },
662
+ knowledgeStore: {
663
+ referenceId: knowledgeStoreId,
664
+ },
665
+ locale: {
666
+ referenceId: metadata === null || metadata === void 0 ? void 0 : metadata.localeReferenceId,
667
+ name: metadata === null || metadata === void 0 ? void 0 : metadata.localeName,
668
+ },
669
+ },
670
+ isSnapshotError: !!(metadata === null || metadata === void 0 ? void 0 : metadata.snapshotId),
646
671
  });
647
672
  }
648
673
  if ((_m = error === null || error === void 0 ? void 0 : error.originalErrorDetails) === null || _m === void 0 ? void 0 : _m.code) {
@@ -586,9 +586,34 @@ export const GPT_PROMPT = createNodeDescriptor({
586
586
  error: compactError,
587
587
  };
588
588
  if (!(error instanceof InternalServerError)) {
589
+ const metadata = api.getMetadata();
589
590
  api.emitToOpsCenter({
591
+ projectId: metadata === null || metadata === void 0 ? void 0 : metadata.projectId,
590
592
  subComponent: "LargeLanguageModelCalls",
591
- title: error === null || error === void 0 ? void 0 : error.message
593
+ title: error === null || error === void 0 ? void 0 : error.message,
594
+ errorCode: "ERR_FLOW_005",
595
+ isSnapshotError: !!(metadata === null || metadata === void 0 ? void 0 : metadata.snapshotId),
596
+ metadata: {
597
+ // extra metadata for the error is enriched in service-sentinel
598
+ snapshot: {
599
+ id: metadata === null || metadata === void 0 ? void 0 : metadata.snapshotId,
600
+ name: metadata === null || metadata === void 0 ? void 0 : metadata.snapshotName,
601
+ },
602
+ flow: {
603
+ referenceId: cognigy.flowReferenceId,
604
+ name: input.flowName,
605
+ },
606
+ node: {
607
+ referenceId: nodeId
608
+ },
609
+ llm: {
610
+ referenceId: llmProviderReferenceId,
611
+ },
612
+ locale: {
613
+ referenceId: metadata === null || metadata === void 0 ? void 0 : metadata.localeReferenceId,
614
+ name: metadata === null || metadata === void 0 ? void 0 : metadata.localeName,
615
+ },
616
+ }
592
617
  });
593
618
  }
594
619
  // add error to context or input
@@ -150,7 +150,9 @@ export class BaseContext {
150
150
  return (c) ? c : undefined;
151
151
  }
152
152
  else { // there is none
153
- return (this.context[key] || this.context[key] === 0) ? this.context[key] : undefined;
153
+ return this.context[key] !== null && this.context[key] !== undefined
154
+ ? this.context[key]
155
+ : undefined;
154
156
  }
155
157
  }
156
158
  /**
@@ -10,7 +10,7 @@ export const aiAgentDataSchema = {
10
10
  name: { type: "string", format: "resource-name" },
11
11
  image: { type: "string" },
12
12
  imageOptimizedFormat: { type: "boolean" },
13
- knowledgeReferenceId: { type: "string", format: "uuid" },
13
+ knowledgeReferenceId: { type: ["string", "null"], format: "uuid" },
14
14
  description: { type: "string", maxLength: 1000 },
15
15
  speakingStyle: {
16
16
  type: "object",
@@ -1,21 +1,25 @@
1
+ var _a;
1
2
  import { entityMetaSchema } from "./IEntityMeta";
2
3
  import { nodeDescriptorSchema } from "./INodeDescriptorSet";
4
+ import { knowledgeDescriptorSchema } from "./IKnowledgeDescriptor";
3
5
  export const extensionNodePackageDataSchema = {
4
6
  title: "extensionNodePackageDataSchema",
5
7
  type: "object",
6
8
  additionalProperties: false,
7
9
  properties: {
8
10
  nodes: { type: "array", items: nodeDescriptorSchema },
11
+ knowledge: {
12
+ type: "array",
13
+ items: knowledgeDescriptorSchema,
14
+ maxItems: parseInt((_a = process === null || process === void 0 ? void 0 : process.env) === null || _a === void 0 ? void 0 : _a.EXTENSIONS_KNOWLEDGE_EXTRACTORS_MAX, 10) || 20
15
+ },
9
16
  connections: {
10
17
  type: "array",
11
18
  additionalItems: false,
12
19
  items: {
13
20
  type: "object",
14
21
  additionalProperties: false,
15
- required: [
16
- "type",
17
- "fields"
18
- ],
22
+ required: ["type", "fields"],
19
23
  properties: {
20
24
  label: { type: "string", format: "resource-name" },
21
25
  type: { type: "string", format: "resource-name" },
@@ -25,9 +29,7 @@ export const extensionNodePackageDataSchema = {
25
29
  items: {
26
30
  type: "object",
27
31
  additionalProperties: false,
28
- required: [
29
- "fieldName"
30
- ],
32
+ required: ["fieldName"],
31
33
  properties: {
32
34
  _id: { type: "string", format: "mongo-id" },
33
35
  fieldName: {
@@ -50,10 +52,7 @@ export const extensionNodePackageDataSchema = {
50
52
  items: {
51
53
  type: "object",
52
54
  additionalProperties: false,
53
- required: [
54
- "type",
55
- "path"
56
- ],
55
+ required: ["type", "path"],
57
56
  properties: {
58
57
  label: { type: "string", format: "resource-name" },
59
58
  type: { type: "string", format: "resource-name" },
@@ -61,7 +60,7 @@ export const extensionNodePackageDataSchema = {
61
60
  }
62
61
  }
63
62
  }
64
- },
63
+ }
65
64
  };
66
65
  /** 512 KB (1 * 1024 * 1024), Javascript uses 16bit for a single character */
67
66
  export const EXTENSION_README_SIZE = 1048576;
@@ -75,6 +74,6 @@ export const extensionSchema = {
75
74
  title: "extensionSchema",
76
75
  type: "object",
77
76
  additionalProperties: false,
78
- properties: Object.assign(Object.assign(Object.assign({}, entityMetaSchema.properties), extensionDataSchema.properties), { subResourceReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } })
77
+ properties: Object.assign(Object.assign(Object.assign({}, entityMetaSchema.properties), extensionDataSchema.properties), { subResourceReference: { type: "string", format: "mongo-id" }, knowledge: { type: "array", items: knowledgeDescriptorSchema }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } })
79
78
  };
80
79
  //# sourceMappingURL=IExtension.js.map
@@ -0,0 +1,42 @@
1
+ import { nodeDescriptorSchema, nodeFieldSchema, } from "./INodeDescriptorSet";
2
+ export const knowledgeFieldTypes = [
3
+ "text",
4
+ "rule",
5
+ "json",
6
+ "checkbox",
7
+ "time",
8
+ "date",
9
+ "datetime",
10
+ "select",
11
+ "xml",
12
+ "textArray",
13
+ "chipInput",
14
+ "toggle",
15
+ "slider",
16
+ "number",
17
+ "daterange",
18
+ "connection",
19
+ "condition",
20
+ "description",
21
+ ];
22
+ export const knowledgeFieldSchema = {
23
+ title: "knowledgeFieldSchema",
24
+ type: "object",
25
+ additionalProperties: false,
26
+ properties: Object.assign(Object.assign({}, nodeFieldSchema.properties), { type: { type: "string", enum: [...knowledgeFieldTypes] }, key: { type: "string", minLength: 1, maxLength: 200 } }),
27
+ };
28
+ const { type, summary, defaultLabel, sections, form } = nodeDescriptorSchema.properties;
29
+ export const knowledgeDescriptorSchema = {
30
+ title: "knowledgeDescriptorSchema",
31
+ type: "object",
32
+ additionalProperties: false,
33
+ properties: {
34
+ type,
35
+ label: defaultLabel,
36
+ summary,
37
+ sections,
38
+ form,
39
+ fields: { type: "array", items: knowledgeFieldSchema },
40
+ },
41
+ };
42
+ //# sourceMappingURL=IKnowledgeDescriptor.js.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IGenerateBulkPersonaRest_2_0.js.map
@@ -7,6 +7,11 @@ export var ESuccessCriteriaTypeRest_2_0;
7
7
  (function (ESuccessCriteriaTypeRest_2_0) {
8
8
  ESuccessCriteriaTypeRest_2_0["TEXT"] = "text";
9
9
  })(ESuccessCriteriaTypeRest_2_0 || (ESuccessCriteriaTypeRest_2_0 = {}));
10
+ export var SuccessCriterionType_2_0;
11
+ (function (SuccessCriterionType_2_0) {
12
+ SuccessCriterionType_2_0["TEXT"] = "text";
13
+ SuccessCriterionType_2_0["GOAL_COMPLETED"] = "goalCompleted";
14
+ })(SuccessCriterionType_2_0 || (SuccessCriterionType_2_0 = {}));
10
15
  export var ESentimentTypeRest_2_0;
11
16
  (function (ESentimentTypeRest_2_0) {
12
17
  ESentimentTypeRest_2_0["POSITIVE"] = "POSITIVE";
@@ -38,6 +38,7 @@ export const organisationWideRoles = [
38
38
  "userManager",
39
39
  "userDetailsViewer",
40
40
  "voiceGatewayUser",
41
+ "autoDialerUser",
41
42
  "opsCenterUser",
42
43
  ];
43
44
  /**
@@ -1,4 +1,4 @@
1
- export const COMPUTED_ACL_HASH_VERSION = "v21";
1
+ export const COMPUTED_ACL_HASH_VERSION = "v23";
2
2
  export { availablePermissions, } from "./IPermission";
3
3
  export { organisationWideRoles, projectWideRoles, availableRoles, } from "./IRole";
4
4
  export { operations, } from "./IOperation";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cognigy/rest-api-client",
3
- "version": "2025.14.0",
3
+ "version": "2025.15.0",
4
4
  "description": "Cognigy REST-Client",
5
5
  "main": "build/index.js",
6
6
  "module": "dist/esm/index.js",
package/types/index.d.ts CHANGED
@@ -1013,6 +1013,7 @@ declare const organisationWideRoles: readonly [
1013
1013
  "userManager",
1014
1014
  "userDetailsViewer",
1015
1015
  "voiceGatewayUser",
1016
+ "autoDialerUser",
1016
1017
  "opsCenterUser"
1017
1018
  ];
1018
1019
  export declare type TOrganisationWideRole = typeof organisationWideRoles[number];
@@ -9601,7 +9602,7 @@ export interface IAiAgent extends IEntityMeta {
9601
9602
  referenceId: string;
9602
9603
  image: string;
9603
9604
  imageOptimizedFormat: boolean;
9604
- knowledgeReferenceId: string;
9605
+ knowledgeReferenceId: string | null;
9605
9606
  description: string;
9606
9607
  speakingStyle: ISpeakingStyle;
9607
9608
  voiceConfigs: IVoiceConfigParams;
@@ -11366,8 +11367,12 @@ export interface INodeExecutionAPI extends Omit<IActions, "parseCognigyScriptCon
11366
11367
  getLLMTokenUsageForSession(): TSessionUsageInformation | null;
11367
11368
  loadSessionState: () => Promise<Partial<ISessionStateWithoutMeta>>;
11368
11369
  emitToOpsCenter: (params: {
11370
+ projectId?: string;
11369
11371
  title: string;
11370
11372
  subComponent?: string;
11373
+ errorCode?: string;
11374
+ metadata?: Record<string, unknown>;
11375
+ isSnapshotError?: boolean;
11371
11376
  }) => void;
11372
11377
  fetchMcpTools: (params: {
11373
11378
  mcpServerUrl: string;
@@ -11708,6 +11713,139 @@ export interface IAppTemplate extends IEntityMeta {
11708
11713
  projectReference: TMongoId;
11709
11714
  organisationReference: TMongoId;
11710
11715
  }
11716
+ declare const knowledgeFieldTypes: readonly [
11717
+ "text",
11718
+ "rule",
11719
+ "json",
11720
+ "checkbox",
11721
+ "time",
11722
+ "date",
11723
+ "datetime",
11724
+ "select",
11725
+ "xml",
11726
+ "textArray",
11727
+ "chipInput",
11728
+ "toggle",
11729
+ "slider",
11730
+ "number",
11731
+ "daterange",
11732
+ "connection",
11733
+ "condition",
11734
+ "description"
11735
+ ];
11736
+ export declare type TKnowledgeFieldType = typeof knowledgeFieldTypes[number];
11737
+ export declare type IKnowledgeFieldSet = IKnowledgeField[];
11738
+ export interface IKnowledgeField<K extends string | number | symbol = string> {
11739
+ type: TKnowledgeFieldType;
11740
+ key: K;
11741
+ label: string | INodeFieldTranslations;
11742
+ condition?: TNodeFieldCondition;
11743
+ defaultValue?: any;
11744
+ description?: string | INodeFieldTranslations;
11745
+ params?: {
11746
+ [key: string]: any;
11747
+ };
11748
+ optionsResolver?: INodeOptionsResolver;
11749
+ resetOption?: IResetOption;
11750
+ }
11751
+ /**
11752
+ * @openapi
11753
+ *
11754
+ * components:
11755
+ * schemas:
11756
+ * IKnowledgeDescriptor:
11757
+ * type: object
11758
+ * properties:
11759
+ * type:
11760
+ * type: string
11761
+ * label:
11762
+ * oneOf:
11763
+ * - type: string
11764
+ * description: The label that should be used when a new Node of this type is created
11765
+ * - type: object
11766
+ * description: A localized version of the label that should be used when a new Node of this type is created
11767
+ * properties:
11768
+ * default:
11769
+ * type: string
11770
+ * enUS:
11771
+ * type: string
11772
+ * deDE:
11773
+ * type: string
11774
+ * esES:
11775
+ * type: string
11776
+ * jaJP:
11777
+ * type: string
11778
+ * koKR:
11779
+ * type: string
11780
+ * summary:
11781
+ * oneOf:
11782
+ * - type: string
11783
+ * description: A short line of text that describes what this Node is used for
11784
+ * - type: object
11785
+ * description: A localized version of a short line of text that describes what this Node is used for
11786
+ * properties:
11787
+ * default:
11788
+ * type: string
11789
+ * enUS:
11790
+ * type: string
11791
+ * deDE:
11792
+ * type: string
11793
+ * esES:
11794
+ * type: string
11795
+ * jaJP:
11796
+ * type: string
11797
+ * koKR:
11798
+ * type: string
11799
+ * fields:
11800
+ * type: array
11801
+ * items:
11802
+ * type: object
11803
+ * properties:
11804
+ * type:
11805
+ * type: string
11806
+ * enum:
11807
+ * - text
11808
+ * - rule
11809
+ * key:
11810
+ * type: string
11811
+ * label:
11812
+ * oneOf:
11813
+ * - type: string
11814
+ * - type: object
11815
+ * properties:
11816
+ * default:
11817
+ * type: string
11818
+ * enUS:
11819
+ * type: string
11820
+ * deDE:
11821
+ * type: string
11822
+ * esES:
11823
+ * type: string
11824
+ * jaJP:
11825
+ * type: string
11826
+ * koKR:
11827
+ * type: string
11828
+ * defaultValue:
11829
+ * description: The default value for that field
11830
+ * sections:
11831
+ * type: array
11832
+ * items:
11833
+ * $ref: '#/components/schemas/INodeFieldCondition_2_0'
11834
+ * form:
11835
+ * type: array
11836
+ * items:
11837
+ * $ref: '#/components/schemas/INodeFieldAndSectionFormElement_2_0'
11838
+ */
11839
+ export interface IKnowledgeDescriptor {
11840
+ type: string;
11841
+ label: string | INodeFieldTranslations;
11842
+ summary?: string | INodeFieldTranslations;
11843
+ fields?: IKnowledgeFieldSet;
11844
+ /** Sections which allow to group multiple fields */
11845
+ sections?: INodeSection[];
11846
+ /** The form defines how fields and sections should be rendered in order */
11847
+ form?: INodeFieldAndSectionFormElement[];
11848
+ }
11711
11849
  export declare type IExtensionType = "nodes";
11712
11850
  export interface IExtension extends IExtensionData, IExtensionNodePackage {
11713
11851
  }
@@ -11734,6 +11872,8 @@ export interface IExtensionData extends IEntityMeta {
11734
11872
  pathToPackageExecutable: string;
11735
11873
  /** A reference to a 'sub-resource'. Currently a 'node-descriptor-set' */
11736
11874
  subResourceReference: TMongoId;
11875
+ /** A reference to a knowledge descriptor set */
11876
+ knowledge?: IKnowledgeDescriptor[];
11737
11877
  /** A reference to the project of this extension */
11738
11878
  projectReference: TMongoId;
11739
11879
  /** A reference to the organisation of this extension */
@@ -11741,6 +11881,7 @@ export interface IExtensionData extends IEntityMeta {
11741
11881
  }
11742
11882
  export interface IExtensionNodePackage {
11743
11883
  nodes: INodeDescriptor[];
11884
+ knowledge?: IKnowledgeDescriptor[];
11744
11885
  connections: Pick<IConnectionSchema, "label" | "type" | "fields">[];
11745
11886
  appTemplates: Pick<IAppTemplate, "label" | "type" | "path">[];
11746
11887
  }
@@ -13511,8 +13652,9 @@ export interface IGenerateNodeOutputRestReturnValue_2_0 extends IGenerateNodeOut
13511
13652
  * example: true
13512
13653
  * knowledgeReferenceId:
13513
13654
  * type: string
13655
+ * nullable: true
13514
13656
  * format: uuid
13515
- * description: A referenceId of a Knowledge Store this Agent will use as base knowledge.
13657
+ * description: A referenceId of a Knowledge Store this Agent will use as base knowledge or null.
13516
13658
  * example: "c7b3b3b3-3b3b-3b3b-3b3b-3b3b3b3b3b3b"
13517
13659
  * description:
13518
13660
  * type: string
@@ -13591,7 +13733,7 @@ export interface IAiAgent_2_0 {
13591
13733
  image: string;
13592
13734
  imageOptimizedFormat: boolean;
13593
13735
  instructions: string;
13594
- knowledgeReferenceId: string;
13736
+ knowledgeReferenceId: string | null;
13595
13737
  description: string;
13596
13738
  speakingStyle: ISpeakingStyle;
13597
13739
  voiceConfigs: IVoiceConfigParams;
@@ -15070,6 +15212,8 @@ export interface IConnectionSchema_2_0 {
15070
15212
  * $ref: '#/components/schemas/INodeDescriptor_2_0'
15071
15213
  * connections:
15072
15214
  * $ref: '#/components/schemas/IConnectionSchema_2_0'
15215
+ * knowledge:
15216
+ * $ref: '#/components/schemas/IKnowledgeDescriptor'
15073
15217
  *
15074
15218
  * IExtension_2_0:
15075
15219
  * allOf:
@@ -15103,6 +15247,8 @@ export interface IExtension_2_0 {
15103
15247
  nodes: INodeDescriptor_2_0[];
15104
15248
  /** The connection schemas defined in this extension */
15105
15249
  connections: IConnectionSchema_2_0[];
15250
+ /** The knowledge-descriptors within this extension */
15251
+ knowledge: IKnowledgeDescriptor[];
15106
15252
  /** Unix-timestamp when the entity was created initially */
15107
15253
  createdAt: number;
15108
15254
  /** Unix-timestamp when the entity was changed last time */
@@ -22737,6 +22883,15 @@ export interface IOpsCenterError {
22737
22883
  component?: MainComponent;
22738
22884
  subComponent?: SubComponent;
22739
22885
  count: number;
22886
+ errorCode: string;
22887
+ isSnapshotError: boolean;
22888
+ params: {
22889
+ [key: string]: {
22890
+ id?: string;
22891
+ referenceId?: string;
22892
+ name?: string;
22893
+ };
22894
+ };
22740
22895
  }
22741
22896
  export interface IGetOpsCenterError extends Partial<IOpsCenterError> {
22742
22897
  }
@@ -22746,6 +22901,7 @@ export interface IGetOpsCenterErrorRestDataParams_2_0 {
22746
22901
  export interface IGetOpsCenterErrorRestData_2_0 extends IGetOpsCenterErrorRestDataParams_2_0 {
22747
22902
  }
22748
22903
  export interface IGetOpsCenterErrorRestReturnValue_2_0 extends IGetOpsCenterError {
22904
+ url: string;
22749
22905
  }
22750
22906
  export interface IIndexOpsCenterErrorsRestDataQuery_2_0 {
22751
22907
  projectIds?: string[];
@@ -22779,7 +22935,12 @@ export interface NotificationConfig {
22779
22935
  }
22780
22936
  export interface AlertingConfig {
22781
22937
  configuredAlerts: {
22782
- [K in string]: boolean;
22938
+ [K in string]: {
22939
+ enabled: boolean;
22940
+ description: string;
22941
+ humanReadableName: string;
22942
+ tooltip: string;
22943
+ };
22783
22944
  };
22784
22945
  }
22785
22946
  export interface IOpsCenterObservationConfig {
@@ -22951,12 +23112,68 @@ export interface IScheduleSimulationRestData_2_0 extends IScheduleSimulationRest
22951
23112
  export interface IScheduleSimulationRestReturnValue_2_0 {
22952
23113
  simulation: ISimulationRest_2_0;
22953
23114
  }
23115
+ declare enum ETurnTypeRest_2_0 {
23116
+ INPUT = "input",
23117
+ OUTPUT = "output"
23118
+ }
23119
+ export interface ITurnRest_2_0 {
23120
+ type: ETurnTypeRest_2_0;
23121
+ text: string;
23122
+ data?: Record<string, unknown>;
23123
+ }
23124
+ declare enum SuccessCriterionType_2_0 {
23125
+ TEXT = "text",
23126
+ GOAL_COMPLETED = "goalCompleted"
23127
+ }
23128
+ export interface ISuccessCriteriaTextParams_2_0 {
23129
+ text: string;
23130
+ name: string;
23131
+ }
23132
+ export interface ISuccessCriteriaGoalParams_2_0 {
23133
+ referenceId: string;
23134
+ name: string;
23135
+ }
23136
+ export interface ISuccessCriteriaRest_2_0 {
23137
+ type: SuccessCriterionType_2_0;
23138
+ params: ISuccessCriteriaTextParams_2_0 | ISuccessCriteriaGoalParams_2_0;
23139
+ }
23140
+ declare enum ESentimentTypeRest_2_0 {
23141
+ POSITIVE = "POSITIVE",
23142
+ NEUTRAL = "NEUTRAL",
23143
+ NEGATIVE = "NEGATIVE"
23144
+ }
23145
+ export interface ISimulationRunRest_2_0 {
23146
+ id: string;
23147
+ organisationReference: string;
23148
+ projectReference: string;
23149
+ simulationReference: string;
23150
+ simulationRunBatchReference: string;
23151
+ sequence: number;
23152
+ largeLanguageModelReferenceId: string;
23153
+ turns: ITurnRest_2_0[];
23154
+ totalTurns: number;
23155
+ successCriteria: ISuccessCriteriaRest_2_0[];
23156
+ metrics: {
23157
+ sentiment: ESentimentTypeRest_2_0;
23158
+ outOfScope: string;
23159
+ efficiency: number;
23160
+ topic: string;
23161
+ success: boolean;
23162
+ };
23163
+ createdAt: number;
23164
+ createdBy: string;
23165
+ duration?: number;
23166
+ expiresAt?: Date;
23167
+ }
22954
23168
  declare const SimulationRunBatchStatus: readonly [
22955
23169
  "IN_PROGRESS",
22956
23170
  "COMPLETED",
22957
23171
  "FAILED"
22958
23172
  ];
22959
23173
  export declare type TSimulationRunBatchStatusRest_2_0 = typeof SimulationRunBatchStatus[number];
23174
+ export interface IBatchSuccessCriteriaOverview_2_0 extends ISuccessCriteriaRest_2_0 {
23175
+ percentage: number;
23176
+ }
22960
23177
  export interface ISimulationRunBatchRest_2_0 {
22961
23178
  id: string;
22962
23179
  name: string;
@@ -22978,6 +23195,9 @@ export interface ISimulationRunBatchRest_2_0 {
22978
23195
  updatedAt?: number;
22979
23196
  completedAt?: number;
22980
23197
  expiresAt?: Date;
23198
+ batchMetrics?: {
23199
+ results?: IBatchSuccessCriteriaOverview_2_0[];
23200
+ };
22981
23201
  }
22982
23202
  export interface IIndexSimulationRunBatchesRestDataQuery_2_0 {
22983
23203
  projectId: string;
@@ -23018,52 +23238,6 @@ export interface IReadSimulationRunBatchRestData_2_0 extends IReadSimulationRunB
23018
23238
  export interface IReadSimulationRunBatchRestReturnValue_2_0 {
23019
23239
  simulationRunBatch: ISimulationRunBatchRest_2_0;
23020
23240
  }
23021
- declare enum ETurnTypeRest_2_0 {
23022
- INPUT = "input",
23023
- OUTPUT = "output"
23024
- }
23025
- export interface ITurnRest_2_0 {
23026
- type: ETurnTypeRest_2_0;
23027
- text: string;
23028
- data?: Record<string, unknown>;
23029
- }
23030
- declare enum ESuccessCriteriaTypeRest_2_0 {
23031
- TEXT = "text"
23032
- }
23033
- export interface ISuccessCriteriaRest_2_0 {
23034
- type: ESuccessCriteriaTypeRest_2_0;
23035
- params: {
23036
- text: string;
23037
- };
23038
- }
23039
- declare enum ESentimentTypeRest_2_0 {
23040
- POSITIVE = "POSITIVE",
23041
- NEUTRAL = "NEUTRAL",
23042
- NEGATIVE = "NEGATIVE"
23043
- }
23044
- export interface ISimulationRunRest_2_0 {
23045
- id: string;
23046
- organisationReference: string;
23047
- projectReference: string;
23048
- simulationReference: string;
23049
- simulationRunBatchReference: string;
23050
- sequence: number;
23051
- largeLanguageModelReferenceId: string;
23052
- turns: ITurnRest_2_0[];
23053
- totalTurns: number;
23054
- successCriteria: ISuccessCriteriaRest_2_0[];
23055
- metrics: {
23056
- sentiment: ESentimentTypeRest_2_0;
23057
- outOfScope: string;
23058
- efficiency: number;
23059
- topic: string;
23060
- success: boolean;
23061
- };
23062
- createdAt: number;
23063
- createdBy: string;
23064
- duration?: number;
23065
- expiresAt?: Date;
23066
- }
23067
23241
  export interface IIndexSimulationRunsRestDataQuery_2_0 {
23068
23242
  projectId: string;
23069
23243
  filter?: string;
@@ -23163,6 +23337,49 @@ export interface IRegeneratePersonaFieldRestReturnValue_2_0 {
23163
23337
  personaPackage: IPersonaPackage_2_0;
23164
23338
  metadata: IRegeneratePersonaFieldMetadata_2_0;
23165
23339
  }
23340
+ export interface IGenerateBulkPersonaRestData_2_0 {
23341
+ flowReferenceId: string;
23342
+ projectReference: string;
23343
+ allMissionTypes: Array<{
23344
+ name: string;
23345
+ description: string;
23346
+ }>;
23347
+ allPersonaTypes: Array<{
23348
+ name: string;
23349
+ description: string;
23350
+ }>;
23351
+ numberOfSuccessCriteria: number;
23352
+ requestedPackages: number;
23353
+ }
23354
+ export interface IGenerateBulkPersonaRestReturnValue_2_0 {
23355
+ success: boolean;
23356
+ personas: {
23357
+ [personaTypeName: string]: Array<{
23358
+ simulationName: string;
23359
+ personaName: string;
23360
+ personaDescription: string;
23361
+ }>;
23362
+ };
23363
+ missions: {
23364
+ [missionTypeName: string]: Array<{
23365
+ mission: string;
23366
+ successCriteria: Array<{
23367
+ type: string;
23368
+ params: {
23369
+ text: string;
23370
+ name: string;
23371
+ };
23372
+ }>;
23373
+ }>;
23374
+ };
23375
+ metadata: {
23376
+ requestId: string;
23377
+ processedAt: string;
23378
+ model: string;
23379
+ personaTypesCount: number;
23380
+ missionTypesCount: number;
23381
+ };
23382
+ }
23166
23383
  export interface SimulationAPIGroup_2_0 {
23167
23384
  indexSimulations: TRestAPIOperation<IIndexSimulationsRestData_2_0, IIndexSimulationsRestReturnValue_2_0>;
23168
23385
  createSimulation: TRestAPIOperation<ICreateSimulationRestData_2_0, ICreateSimulationRestReturnValue_2_0>;
@@ -23178,6 +23395,7 @@ export interface SimulationAPIGroup_2_0 {
23178
23395
  getPersonaOptions: TRestAPIOperation<IGetPersonaOptionsRestData_2_0, IGetPersonaOptionsRestReturnValue_2_0>;
23179
23396
  generatePersona: TRestAPIOperation<IGeneratePersonaRestData_2_0, IGeneratePersonaRestReturnValue_2_0>;
23180
23397
  regeneratePersonaField: TRestAPIOperation<IRegeneratePersonaFieldRestData_2_0, IRegeneratePersonaFieldRestReturnValue_2_0>;
23398
+ generateBulkPersona: TRestAPIOperation<IGenerateBulkPersonaRestData_2_0, IGenerateBulkPersonaRestReturnValue_2_0>;
23181
23399
  }
23182
23400
  declare function SimulationAPIGroup_2_0(instance: Base): SimulationAPIGroup_2_0;
23183
23401
  export declare type TRestAPIGroupsTypeByConfiguration<T extends IRestAPIClientConfig> = TResourceAPIVersionType<T> & TJWTAuthAPIVersionType<T> & TInsightsAPIVersionType<T> & TMetricsAPIVersionType<T> & TSessionAPIVersionType<T> & TExternalAPIVersionType<T> & TAdministrationAPIVersionType<T> & TManagementAPIVersionType<T> & TAnalyticsAPIVersionType<T> & TAIOpsCenterAPIVersionType<T> & TSimulationAPIVersionType<T>;