purecloud-flow-scripting-api-sdk-javascript 0.60.0 → 0.61.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.
- package/build-scripting/release/scripting.bundle.js +24 -31
- package/package.json +1 -1
- package/types.d.ts +151 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "purecloud-flow-scripting-api-sdk-javascript",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.61.0",
|
|
4
4
|
"description": "JavaScript library for creating, editing, and managing Genesys Cloud Architect flows",
|
|
5
5
|
"main": "build-scripting/release/scripting.bundle.js",
|
|
6
6
|
"author": "Genesys",
|
package/types.d.ts
CHANGED
|
@@ -83,6 +83,18 @@ export class ArchDataType extends ArchBaseCoreObject {
|
|
|
83
83
|
* Returns a localized displayable name string for the data type.
|
|
84
84
|
*/
|
|
85
85
|
readonly label: string;
|
|
86
|
+
/**
|
|
87
|
+
* If this data type is a custom JSON type, this will return the namespace
|
|
88
|
+
* for it. If this data type is not a custom JSON type, nothing is returned.
|
|
89
|
+
* Valid custom JSON namespaces that can be returned are {@link ArchEnums#CUSTOM_JSON_NAMESPACES}
|
|
90
|
+
*/
|
|
91
|
+
readonly customJsonNamespace: string;
|
|
92
|
+
/**
|
|
93
|
+
* If this data type is a custom JSON type, this will return an Architect data
|
|
94
|
+
* type custom JSON schema for it. If this data type is not a custom JSON type,
|
|
95
|
+
* nothing is returned.
|
|
96
|
+
*/
|
|
97
|
+
getCustomJsonSchema(): ArchDataTypeJsonCustomSchema;
|
|
86
98
|
/**
|
|
87
99
|
* Returns true indicating that this is an ArchBaseCoreObject instance.
|
|
88
100
|
*/
|
|
@@ -319,6 +331,33 @@ export class ArchEnums {
|
|
|
319
331
|
* Returns a string array that contains all valid chooser mode strings.
|
|
320
332
|
*/
|
|
321
333
|
readonly CHOOSER_PRESENTATION_MODES_ALL: string[];
|
|
334
|
+
/**
|
|
335
|
+
* Returns a JSON object with these properties for whose values are valid custom JSON schema types:
|
|
336
|
+
* ```
|
|
337
|
+
* {
|
|
338
|
+
* input: 'input'
|
|
339
|
+
* output: 'output'
|
|
340
|
+
* }
|
|
341
|
+
* ```
|
|
342
|
+
*/
|
|
343
|
+
readonly CUSTOM_JSON_SCHEMA_TYPES: {"input":"input","output":"output","error":"error"};
|
|
344
|
+
/**
|
|
345
|
+
* Returns a string array that contains all valid custom JSON schema types.
|
|
346
|
+
*/
|
|
347
|
+
readonly CUSTOM_JSON_SCHEMA_TYPES_ALL: string[];
|
|
348
|
+
/**
|
|
349
|
+
* Returns a JSON object with these properties for whose values are valid custom JSON type namespaces:
|
|
350
|
+
* ```
|
|
351
|
+
* {
|
|
352
|
+
* decisionTable: 'decisionTable'
|
|
353
|
+
* }
|
|
354
|
+
* ```
|
|
355
|
+
*/
|
|
356
|
+
readonly CUSTOM_JSON_TYPE_NAMESPACES: {"architect":"architect","decisionTable":"decisionTable","userDefined":"userDefined","worktype":"worktype"};
|
|
357
|
+
/**
|
|
358
|
+
* Returns a string array that contains all valid custom JSON type namespaces.
|
|
359
|
+
*/
|
|
360
|
+
readonly CUSTOM_JSON_TYPE_NAMESPACES_ALL: string[];
|
|
322
361
|
/**
|
|
323
362
|
* Returns a string array that contains all valid DTMF terminating character options
|
|
324
363
|
*/
|
|
@@ -549,6 +588,21 @@ export class ArchEnums {
|
|
|
549
588
|
* Returns a string array that contains all valid knowledge path mode strings.
|
|
550
589
|
*/
|
|
551
590
|
readonly KNOWLEDGE_PATH_MODES_ALL: string[];
|
|
591
|
+
/**
|
|
592
|
+
* Returns a JSON object with these properties whose values are valid knowledge answer content type strings:
|
|
593
|
+
* ```
|
|
594
|
+
* {
|
|
595
|
+
* standard: 'standard',
|
|
596
|
+
* highlight: 'highlight',
|
|
597
|
+
* generative: 'generative',
|
|
598
|
+
* }
|
|
599
|
+
* ```
|
|
600
|
+
*/
|
|
601
|
+
readonly KNOWLEDGE_ANSWER_CONTENT_TYPES: {"standard":"standard","highlight":"highlight","generative":"generative"};
|
|
602
|
+
/**
|
|
603
|
+
* Returns a string array that contains all valid answer content type strings.
|
|
604
|
+
*/
|
|
605
|
+
readonly KNOWLEDGE_ANSWER_CONTENT_TYPES_ALL: string[];
|
|
552
606
|
/**
|
|
553
607
|
* Returns a JSON object with these properties whose values are valid knowledge settings mode strings.
|
|
554
608
|
* ```
|
|
@@ -1020,6 +1074,10 @@ export class ArchOrganizationInfo extends ArchBaseObject {
|
|
|
1020
1074
|
* Returns true indicating that this is an ArchOrganizationInfo instance.
|
|
1021
1075
|
*/
|
|
1022
1076
|
readonly isArchOrganizationInfo: boolean;
|
|
1077
|
+
/**
|
|
1078
|
+
* Returns true indicating that agentic virtual agent is available for this ArchOrganizationInfo instance.
|
|
1079
|
+
*/
|
|
1080
|
+
readonly agenticVirtualAgentAvailable: boolean;
|
|
1023
1081
|
/**
|
|
1024
1082
|
* Returns true indicating that virtual agent is available for this ArchOrganizationInfo instance.
|
|
1025
1083
|
*/
|
|
@@ -1028,10 +1086,24 @@ export class ArchOrganizationInfo extends ArchBaseObject {
|
|
|
1028
1086
|
* Returns whether Virtual Agent summarization capabilities are available for the organization.
|
|
1029
1087
|
*/
|
|
1030
1088
|
readonly virtualAgentSummarizationAvailable: boolean;
|
|
1089
|
+
/**
|
|
1090
|
+
* Returns whether large language model (AI) slots are available for use in bot and digital
|
|
1091
|
+
* bot flows for this organization.
|
|
1092
|
+
*/
|
|
1093
|
+
readonly botFlowsLLMPoweredSlot: boolean;
|
|
1094
|
+
/**
|
|
1095
|
+
* Returns whether answer generation from a single or multiple knowledge articles in a bot or digital bot flow
|
|
1096
|
+
* is available for this organization.
|
|
1097
|
+
*/
|
|
1098
|
+
readonly botFlowsAnswerGeneration: boolean;
|
|
1031
1099
|
/**
|
|
1032
1100
|
* Returns whether the Messaging Rich Media Date Picker is available in digital bot flow.
|
|
1033
1101
|
*/
|
|
1034
1102
|
readonly botFlowsMessagingDatePicker: boolean;
|
|
1103
|
+
/**
|
|
1104
|
+
* Returns whether enhanced recognition failure handling is available in bot or digital bot flows.
|
|
1105
|
+
*/
|
|
1106
|
+
readonly botFlowsEnhancedRecognitionFailureHandling: boolean;
|
|
1035
1107
|
/**
|
|
1036
1108
|
* Returns whether virtual agent guide is available in bot or digital bot flows.
|
|
1037
1109
|
*/
|
|
@@ -2591,6 +2663,27 @@ export class ArchFactoryActions extends ArchBaseFactory {
|
|
|
2591
2663
|
addActionShowKnowledgeArticle(archMultiActionContainer: ArchBaseMultiActionContainer, name?: string, previousArchAction?: ArchBaseAction): ArchActionShowKnowledgeArticle;
|
|
2592
2664
|
}
|
|
2593
2665
|
|
|
2666
|
+
/**
|
|
2667
|
+
* A factory instance that lets you add Architect data types to flows.
|
|
2668
|
+
* Do not attempt to create an instance of this class. Architect Scripting will
|
|
2669
|
+
* create the factory instance as needed.
|
|
2670
|
+
*/
|
|
2671
|
+
export class ArchFactoryDataTypes extends ArchBaseFactory {
|
|
2672
|
+
/**
|
|
2673
|
+
* Returns the display type name string 'ArchFactoryDataTypes'.
|
|
2674
|
+
*/
|
|
2675
|
+
readonly displayTypeName: string;
|
|
2676
|
+
/**
|
|
2677
|
+
* Returns the custom JSON data type that is associated with the given [custom JSON namespace]{@link ArchEnums#CUSTOM_JSON_TYPE_NAMESPACES} and entity name. If the data type does not exist within the flow,
|
|
2678
|
+
* it will be created.
|
|
2679
|
+
* @param archBaseFlow - the flow where the data type will be created or retrieved.
|
|
2680
|
+
* @param customJsonNamespace - the custom JSON namespace to use for creating the data type. Allowable values are: {@link ArchEnums#CUSTOM_JSON_TYPE_NAMESPACES}
|
|
2681
|
+
* @param entityName - the name of the entity that is being referenced by the custom JSON namespace.
|
|
2682
|
+
* @param customJsonDataTypeSchemaType - the custom JSON schema types to use for creating the data type. Allowable values are: {@link ArchEnums#CUSTOM_JSON_SCHEMA_TYPES}
|
|
2683
|
+
*/
|
|
2684
|
+
getOrCreateCustomJsonDataTypeAsync(archBaseFlow: ArchBaseFlow, customJsonNamespace: string, entityName: string, customJsonDataTypeSchemaType: string): void;
|
|
2685
|
+
}
|
|
2686
|
+
|
|
2594
2687
|
/**
|
|
2595
2688
|
* A factory instance that lets you create filters. Filters are used for filtering
|
|
2596
2689
|
* and matching purposes such as when you want to traverse a flow looking for
|
|
@@ -4225,6 +4318,11 @@ export class ArchActionAskForBoolean extends ArchBaseActionAsk {
|
|
|
4225
4318
|
* Max No Inputs value is exceeded.
|
|
4226
4319
|
*/
|
|
4227
4320
|
readonly outputMaxNoInputs: ArchActionOutput;
|
|
4321
|
+
/**
|
|
4322
|
+
* The Max No Matches output for this action which will be taken at runtime if the
|
|
4323
|
+
* Max No Matches value is exceeded.
|
|
4324
|
+
*/
|
|
4325
|
+
readonly outputMaxNoMatches: ArchActionOutput;
|
|
4228
4326
|
}
|
|
4229
4327
|
|
|
4230
4328
|
/**
|
|
@@ -4397,6 +4495,11 @@ export class ArchActionAskForSlot extends ArchBaseActionAskNoInputNoMatch {
|
|
|
4397
4495
|
* Max No Inputs value is exceeded.
|
|
4398
4496
|
*/
|
|
4399
4497
|
readonly outputMaxNoInputs: ArchActionOutput;
|
|
4498
|
+
/**
|
|
4499
|
+
* The Max No Matches output for this action which will be taken at runtime if the
|
|
4500
|
+
* Max No Matches value is exceeded.
|
|
4501
|
+
*/
|
|
4502
|
+
readonly outputMaxNoMatches: ArchActionOutput;
|
|
4400
4503
|
/**
|
|
4401
4504
|
* The continuation prompt will be used when an AI LLM Slot is selected with manually managed prompting.
|
|
4402
4505
|
*/
|
|
@@ -8762,6 +8865,11 @@ export class ArchActionDigitalMenu extends ArchBaseActionWithOutputs {
|
|
|
8762
8865
|
* Max No Inputs value is exceeded.
|
|
8763
8866
|
*/
|
|
8764
8867
|
readonly outputMaxNoInputs: ArchActionOutput;
|
|
8868
|
+
/**
|
|
8869
|
+
* The Max No Matches output for this action which will be taken at runtime if the
|
|
8870
|
+
* Max No Matches value is exceeded.
|
|
8871
|
+
*/
|
|
8872
|
+
readonly outputMaxNoMatches: ArchActionOutput;
|
|
8765
8873
|
/**
|
|
8766
8874
|
* The variable that holds the value of the menu choice chosen by the participant.
|
|
8767
8875
|
* If no choice is selected by the participant, no updates are
|
|
@@ -19300,6 +19408,10 @@ export class ArchDefinitionFlow extends ArchBaseDefinition {
|
|
|
19300
19408
|
* Returns whether or not this flow type supports default languages.
|
|
19301
19409
|
*/
|
|
19302
19410
|
readonly supportsDefaultLanguage: boolean;
|
|
19411
|
+
/**
|
|
19412
|
+
* Returns whether or not this flow type supports intent descriptions.
|
|
19413
|
+
*/
|
|
19414
|
+
readonly supportsIntentDescriptions: boolean;
|
|
19303
19415
|
/**
|
|
19304
19416
|
* Returns whether or not this flow type supports secure variables.
|
|
19305
19417
|
*/
|
|
@@ -28905,6 +29017,12 @@ export class ArchSettingsBotFlow extends ArchBaseCoreObjectWithId {
|
|
|
28905
29017
|
* for Virtual Agent functionality to be used at flow runtime.
|
|
28906
29018
|
*/
|
|
28907
29019
|
virtualAgentEnabled: boolean;
|
|
29020
|
+
/**
|
|
29021
|
+
* Returns true if Agentic Virtual Agent functionality is enabled for this flow, otherwise false.
|
|
29022
|
+
* This property is automatically set to true when the flow contains Call Guide actions and cannot be set back to false.
|
|
29023
|
+
* To downgrade from an agentic flow back to non-agentic (va flow), you must revert to a previous flow version.
|
|
29024
|
+
*/
|
|
29025
|
+
readonly agenticVirtualAgentEnabled: boolean;
|
|
28908
29026
|
}
|
|
28909
29027
|
|
|
28910
29028
|
/**
|
|
@@ -29233,6 +29351,12 @@ export class ArchSettingsEventErrorFlowBot extends ArchSettingsEventErrorFlow {
|
|
|
29233
29351
|
* The configured reusable task that the flow will jump to when the agent escalation handling is set to 'Jump to Reusable Task'.
|
|
29234
29352
|
*/
|
|
29235
29353
|
readonly agentEscalationTargetTask: ArchTask;
|
|
29354
|
+
/**
|
|
29355
|
+
* The subsequent recognition failures configured for the flow. The string values in {@link ArchEnums#SUBSEQUENT_RECOGNITION_FAILURES_MODES}
|
|
29356
|
+
* When set to `executeTask`, the bot will continue to execute the recognition failure task for all subsequent recognition failure events.
|
|
29357
|
+
* When set to `exit`, the bot will exit the flow after the first execution of the recognition failure task.
|
|
29358
|
+
*/
|
|
29359
|
+
readonly subsequentRecognitionFailuresHandlingType: ArchValueString;
|
|
29236
29360
|
}
|
|
29237
29361
|
|
|
29238
29362
|
/**
|
|
@@ -29668,6 +29792,25 @@ export class ArchSettingsNluKnowledge extends ArchBaseCoreObject {
|
|
|
29668
29792
|
* Helper function to set the knowledge path mode to task.
|
|
29669
29793
|
*/
|
|
29670
29794
|
setKnowledgePathModeTask(): void;
|
|
29795
|
+
/**
|
|
29796
|
+
* The knowledge answer content type determines what behavior will occur when a knowledge article is matched in a Digital Bot Flow.
|
|
29797
|
+
* There are three options; standard, highlight, and generative. Standard will return the entire matched answer. Highlight will
|
|
29798
|
+
* highlight the answer in the matched answer. Generative will create an AI-generated response to the question from the answer.
|
|
29799
|
+
* The string values in {@link ArchEnums#KNOWLEDGE_ANSWER_CONTENT_TYPES}
|
|
29800
|
+
*/
|
|
29801
|
+
readonly knowledgeAnswerContentType: ArchValueString;
|
|
29802
|
+
/**
|
|
29803
|
+
* Helper function to set the knowledge answer content type to standard.
|
|
29804
|
+
*/
|
|
29805
|
+
setKnowledgeAnswerContentTypeStandard(): void;
|
|
29806
|
+
/**
|
|
29807
|
+
* Helper function to set the knowledge answer content type to highlight.
|
|
29808
|
+
*/
|
|
29809
|
+
setKnowledgeAnswerContentTypeHighlight(): void;
|
|
29810
|
+
/**
|
|
29811
|
+
* Helper function to set the knowledge answer content type to generative.
|
|
29812
|
+
*/
|
|
29813
|
+
setKnowledgeAnswerContentTypeGenerative(): void;
|
|
29671
29814
|
/**
|
|
29672
29815
|
* Controls how knowledge matches are handled at runtime. The custom setting allows you to choose a reusable task that will
|
|
29673
29816
|
* be executed when a knowledge match occurs. The string values in {@link ArchEnums#KNOWLEDGE_SETTINGS_MODES} list valid values.
|
|
@@ -30867,6 +31010,12 @@ export class ArchSettingsVoiceSurveyFlow extends ArchSettingsBotFlow {
|
|
|
30867
31010
|
* for Virtual Agent functionality to be used at flow runtime.
|
|
30868
31011
|
*/
|
|
30869
31012
|
virtualAgentEnabled: boolean;
|
|
31013
|
+
/**
|
|
31014
|
+
* Returns true if Agentic Virtual Agent functionality is enabled for this flow, otherwise false.
|
|
31015
|
+
* This property is automatically set to true when the flow contains Call Guide actions and cannot be set back to false.
|
|
31016
|
+
* To downgrade from an agentic flow back to non-agentic (va flow), you must revert to a previous flow version.
|
|
31017
|
+
*/
|
|
31018
|
+
readonly agenticVirtualAgentEnabled: boolean;
|
|
30870
31019
|
/**
|
|
30871
31020
|
* The identifier string for this object.
|
|
30872
31021
|
*/
|
|
@@ -32695,13 +32844,13 @@ export class ArchNamedValueList extends ArchBaseValueContainer {
|
|
|
32695
32844
|
* For example, to retrieve the first named value, pass in 0 assuming there is at least one named
|
|
32696
32845
|
* value in this instance.
|
|
32697
32846
|
*/
|
|
32698
|
-
getNamedValueByIndex(index: number):
|
|
32847
|
+
getNamedValueByIndex<T extends ArchNamedValue | ArchNamedValueList = ArchNamedValue>(index: number): T;
|
|
32699
32848
|
/**
|
|
32700
32849
|
* Gets the named value by its name. This is a case sensitive lookup. If the named value cannot be found,
|
|
32701
32850
|
* nothing is returned.
|
|
32702
32851
|
* @param valueName - the name of the value.
|
|
32703
32852
|
*/
|
|
32704
|
-
getNamedValueByName(valueName: string):
|
|
32853
|
+
getNamedValueByName<T extends ArchNamedValue | ArchNamedValueList = ArchNamedValue>(valueName: string): T;
|
|
32705
32854
|
/**
|
|
32706
32855
|
* Returns true indicating that this is an ArchNamedValueList instance.
|
|
32707
32856
|
*/
|