chatbot-lex-design-builder 1.0.20 → 2.0.1
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/dist/cjs/export-to-zip.js +1 -4
- package/dist/cjs/export-to-zip.js.map +1 -1
- package/dist/cjs/get-intent-nodes.d.ts +21 -0
- package/dist/cjs/get-intent-nodes.js +24 -0
- package/dist/cjs/get-intent-nodes.js.map +1 -0
- package/dist/cjs/index.d.ts +2 -1
- package/dist/cjs/index.js +3 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/graph/graph.d.ts +28 -0
- package/dist/cjs/types/nodes/codehook-node.d.ts +8 -0
- package/dist/cjs/types/nodes/codehook-node.js +5 -1
- package/dist/cjs/types/nodes/codehook-node.js.map +1 -1
- package/dist/cjs/types/nodes/confirmation-node.js +3 -1
- package/dist/cjs/types/nodes/confirmation-node.js.map +1 -1
- package/dist/cjs/types/nodes/fullfillment-node.js +4 -1
- package/dist/cjs/types/nodes/fullfillment-node.js.map +1 -1
- package/dist/cjs/types/nodes/intent-node.d.ts +8 -0
- package/dist/cjs/types/nodes/intent-node.js +14 -6
- package/dist/cjs/types/nodes/intent-node.js.map +1 -1
- package/dist/cjs/types/nodes/node.d.ts +20 -0
- package/dist/cjs/types/nodes/slot-node.d.ts +16 -0
- package/dist/cjs/types/nodes/slot-node.js +12 -2
- package/dist/cjs/types/nodes/slot-node.js.map +1 -1
- package/dist/cjs/types/others/bot-flow.d.ts +80 -0
- package/dist/cjs/utils/find-first-intent-node.d.ts +1 -0
- package/dist/cjs/utils/get-bfs-order.d.ts +4 -0
- package/dist/cjs/utils/get-slot-nodes.d.ts +2 -0
- package/dist/cjs/utils/index.d.ts +1 -0
- package/dist/cjs/utils/index.js +1 -0
- package/dist/cjs/utils/index.js.map +1 -1
- package/dist/cjs/utils/validate-graph.d.ts +4 -0
- package/dist/esm/export-to-zip.js +1 -4
- package/dist/esm/export-to-zip.js.map +1 -1
- package/dist/esm/get-intent-nodes.d.ts +21 -0
- package/dist/esm/get-intent-nodes.js +20 -0
- package/dist/esm/get-intent-nodes.js.map +1 -0
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/graph/graph.d.ts +28 -0
- package/dist/esm/types/nodes/codehook-node.d.ts +8 -0
- package/dist/esm/types/nodes/codehook-node.js +5 -1
- package/dist/esm/types/nodes/codehook-node.js.map +1 -1
- package/dist/esm/types/nodes/confirmation-node.js +3 -1
- package/dist/esm/types/nodes/confirmation-node.js.map +1 -1
- package/dist/esm/types/nodes/fullfillment-node.js +4 -1
- package/dist/esm/types/nodes/fullfillment-node.js.map +1 -1
- package/dist/esm/types/nodes/intent-node.d.ts +8 -0
- package/dist/esm/types/nodes/intent-node.js +14 -6
- package/dist/esm/types/nodes/intent-node.js.map +1 -1
- package/dist/esm/types/nodes/node.d.ts +20 -0
- package/dist/esm/types/nodes/slot-node.d.ts +16 -0
- package/dist/esm/types/nodes/slot-node.js +12 -2
- package/dist/esm/types/nodes/slot-node.js.map +1 -1
- package/dist/esm/types/others/bot-flow.d.ts +80 -0
- package/dist/esm/utils/find-first-intent-node.d.ts +1 -0
- package/dist/esm/utils/get-bfs-order.d.ts +4 -0
- package/dist/esm/utils/get-slot-nodes.d.ts +2 -0
- package/dist/esm/utils/index.d.ts +1 -0
- package/dist/esm/utils/index.js +1 -0
- package/dist/esm/utils/index.js.map +1 -1
- package/dist/esm/utils/validate-graph.d.ts +4 -0
- package/package.json +1 -1
|
@@ -23,17 +23,14 @@ const transform_flow_detail_to_file_and_folder_1 = require("./utils/transform-fl
|
|
|
23
23
|
*/
|
|
24
24
|
const exportToZip = (bf, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
25
25
|
const flowDetails = (0, utils_1.compileFlowToFlowDetails)(bf, options);
|
|
26
|
-
console.log("got flow details");
|
|
27
26
|
const filesAndFolders = (0, transform_flow_detail_to_file_and_folder_1.transformFlowDetailToFileAndFolder)(flowDetails, options);
|
|
28
|
-
|
|
29
|
-
var zip = new jszip_1.default();
|
|
27
|
+
const zip = new jszip_1.default();
|
|
30
28
|
filesAndFolders.files.forEach((file) => zip.file(file.path, file.content));
|
|
31
29
|
const output = yield zip.generateAsync({
|
|
32
30
|
type: options.type,
|
|
33
31
|
compression: "DEFLATE",
|
|
34
32
|
compressionOptions: { level: 9 },
|
|
35
33
|
});
|
|
36
|
-
console.log("files ziped");
|
|
37
34
|
return output;
|
|
38
35
|
});
|
|
39
36
|
exports.exportToZip = exportToZip;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export-to-zip.js","sourceRoot":"","sources":["../../export-to-zip.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kDAA0B;AAG1B,mCAAmD;AACnD,+GAAsG;AACtG;;;;GAIG;AACI,MAAM,WAAW,GAAG,CAAO,EAAO,EAAE,OAAyB,EAAE,EAAE;IACtE,MAAM,WAAW,GAAG,IAAA,gCAAwB,EAAC,EAAa,EAAE,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"export-to-zip.js","sourceRoot":"","sources":["../../export-to-zip.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kDAA0B;AAG1B,mCAAmD;AACnD,+GAAsG;AACtG;;;;GAIG;AACI,MAAM,WAAW,GAAG,CAAO,EAAO,EAAE,OAAyB,EAAE,EAAE;IACtE,MAAM,WAAW,GAAG,IAAA,gCAAwB,EAAC,EAAa,EAAE,OAAO,CAAC,CAAC;IAErE,MAAM,eAAe,GAAG,IAAA,6EAAkC,EACxD,WAAW,EACX,OAAO,CACR,CAAC;IACF,MAAM,GAAG,GAAG,IAAI,eAAK,EAAE,CAAC;IAExB,eAAe,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IAE3E,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,aAAa,CAAC;QACrC,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,WAAW,EAAE,SAAS;QACtB,kBAAkB,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE;KACjC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC,CAAA,CAAC;AAlBW,QAAA,WAAW,eAkBtB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { LexExportOptions } from "./types/others/lex-export-options";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @param bf contents of the json file as object
|
|
5
|
+
* @returns blob or buffer etc.
|
|
6
|
+
*/
|
|
7
|
+
export declare const getIntents: (bf: any, options: LexExportOptions) => Promise<{
|
|
8
|
+
type: import("./types/nodes").NodeType.intentNode;
|
|
9
|
+
data: {
|
|
10
|
+
name: string;
|
|
11
|
+
label: string;
|
|
12
|
+
description: string;
|
|
13
|
+
utterances: {
|
|
14
|
+
languageCode: string;
|
|
15
|
+
utterances: string;
|
|
16
|
+
}[];
|
|
17
|
+
isFallback: boolean;
|
|
18
|
+
isNameDisabled: boolean;
|
|
19
|
+
};
|
|
20
|
+
id: string;
|
|
21
|
+
}[]>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.getIntents = void 0;
|
|
13
|
+
const utils_1 = require("./utils");
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @param bf contents of the json file as object
|
|
17
|
+
* @returns blob or buffer etc.
|
|
18
|
+
*/
|
|
19
|
+
const getIntents = (bf, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
20
|
+
const flowDetails = (0, utils_1.compileFlowToFlowDetails)(bf, options);
|
|
21
|
+
return flowDetails.map((n) => n.intent.node);
|
|
22
|
+
});
|
|
23
|
+
exports.getIntents = getIntents;
|
|
24
|
+
//# sourceMappingURL=get-intent-nodes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-intent-nodes.js","sourceRoot":"","sources":["../../get-intent-nodes.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,mCAAmD;AACnD;;;;GAIG;AACI,MAAM,UAAU,GAAG,CAAO,EAAO,EAAE,OAAyB,EAAE,EAAE;IACrE,MAAM,WAAW,GAAG,IAAA,gCAAwB,EAAC,EAAa,EAAE,OAAO,CAAC,CAAC;IACrE,OAAO,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC/C,CAAC,CAAA,CAAC;AAHW,QAAA,UAAU,cAGrB"}
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { exportToZip } from "./export-to-zip";
|
|
2
|
+
import { getIntents } from "./get-intent-nodes";
|
|
2
3
|
import * as EdgesModule from "./types/edges";
|
|
3
4
|
import * as GraphModule from "./types/graph";
|
|
4
5
|
import * as NodesModule from "./types/nodes";
|
|
@@ -6,4 +7,4 @@ import * as OthersModule from "./types/others";
|
|
|
6
7
|
import * as ResponsesModule from "./types/responses";
|
|
7
8
|
import * as UtilsModule from "./utils";
|
|
8
9
|
import * as NodeBuildersModule from "./utils/node-builders";
|
|
9
|
-
export { EdgesModule, GraphModule, NodeBuildersModule, NodesModule, OthersModule, ResponsesModule, UtilsModule,
|
|
10
|
+
export { EdgesModule, exportToZip, getIntents, GraphModule, NodeBuildersModule, NodesModule, OthersModule, ResponsesModule, UtilsModule, };
|
package/dist/cjs/index.js
CHANGED
|
@@ -23,9 +23,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
26
|
+
exports.UtilsModule = exports.ResponsesModule = exports.OthersModule = exports.NodesModule = exports.NodeBuildersModule = exports.GraphModule = exports.getIntents = exports.exportToZip = exports.EdgesModule = void 0;
|
|
27
27
|
const export_to_zip_1 = require("./export-to-zip");
|
|
28
28
|
Object.defineProperty(exports, "exportToZip", { enumerable: true, get: function () { return export_to_zip_1.exportToZip; } });
|
|
29
|
+
const get_intent_nodes_1 = require("./get-intent-nodes");
|
|
30
|
+
Object.defineProperty(exports, "getIntents", { enumerable: true, get: function () { return get_intent_nodes_1.getIntents; } });
|
|
29
31
|
const EdgesModule = __importStar(require("./types/edges"));
|
|
30
32
|
exports.EdgesModule = EdgesModule;
|
|
31
33
|
const GraphModule = __importStar(require("./types/graph"));
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAA8C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAA8C;AAc5C,4FAdO,2BAAW,OAcP;AAbb,yDAAgD;AAc9C,2FAdO,6BAAU,OAcP;AAZZ,2DAA6C;AAU3C,kCAAW;AATb,2DAA6C;AAY3C,kCAAW;AAXb,2DAA6C;AAa3C,kCAAW;AAXb,6DAA+C;AAY7C,oCAAY;AAXd,mEAAqD;AAYnD,0CAAe;AAXjB,qDAAuC;AAYrC,kCAAW;AAXb,0EAA4D;AAO1D,gDAAkB"}
|
|
@@ -1985,6 +1985,7 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
1985
1985
|
webhookId: z.ZodString;
|
|
1986
1986
|
merchantId: z.ZodCatch<z.ZodString>;
|
|
1987
1987
|
sessionAttributes: z.ZodCatch<z.ZodString>;
|
|
1988
|
+
isInvocationLabelDisabled: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1988
1989
|
}, "strip", z.ZodTypeAny, {
|
|
1989
1990
|
active: boolean | null;
|
|
1990
1991
|
label: string;
|
|
@@ -2235,6 +2236,7 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2235
2236
|
}[];
|
|
2236
2237
|
webhookId: string;
|
|
2237
2238
|
merchantId: string;
|
|
2239
|
+
isInvocationLabelDisabled: boolean;
|
|
2238
2240
|
}, {
|
|
2239
2241
|
active: boolean | null;
|
|
2240
2242
|
label: string;
|
|
@@ -2245,6 +2247,7 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2245
2247
|
timeout?: unknown;
|
|
2246
2248
|
merchantId?: unknown;
|
|
2247
2249
|
sessionAttributes?: unknown;
|
|
2250
|
+
isInvocationLabelDisabled?: unknown;
|
|
2248
2251
|
}>;
|
|
2249
2252
|
}, "strip", z.ZodTypeAny, {
|
|
2250
2253
|
type: import("../nodes").NodeType.codeHookNode;
|
|
@@ -2498,6 +2501,7 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2498
2501
|
}[];
|
|
2499
2502
|
webhookId: string;
|
|
2500
2503
|
merchantId: string;
|
|
2504
|
+
isInvocationLabelDisabled: boolean;
|
|
2501
2505
|
};
|
|
2502
2506
|
id: string;
|
|
2503
2507
|
}, {
|
|
@@ -2512,6 +2516,7 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2512
2516
|
timeout?: unknown;
|
|
2513
2517
|
merchantId?: unknown;
|
|
2514
2518
|
sessionAttributes?: unknown;
|
|
2519
|
+
isInvocationLabelDisabled?: unknown;
|
|
2515
2520
|
};
|
|
2516
2521
|
id: string;
|
|
2517
2522
|
}>, z.ZodObject<{
|
|
@@ -8288,6 +8293,7 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
8288
8293
|
utterances?: unknown;
|
|
8289
8294
|
}>, "many">;
|
|
8290
8295
|
isFallback: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
8296
|
+
isNameDisabled: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
8291
8297
|
}, "strip", z.ZodTypeAny, {
|
|
8292
8298
|
name: string;
|
|
8293
8299
|
label: string;
|
|
@@ -8297,6 +8303,7 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
8297
8303
|
utterances: string;
|
|
8298
8304
|
}[];
|
|
8299
8305
|
isFallback: boolean;
|
|
8306
|
+
isNameDisabled: boolean;
|
|
8300
8307
|
}, {
|
|
8301
8308
|
name: string;
|
|
8302
8309
|
label: string;
|
|
@@ -8306,6 +8313,7 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
8306
8313
|
}[];
|
|
8307
8314
|
description?: unknown;
|
|
8308
8315
|
isFallback?: unknown;
|
|
8316
|
+
isNameDisabled?: unknown;
|
|
8309
8317
|
}>;
|
|
8310
8318
|
}, "strip", z.ZodTypeAny, {
|
|
8311
8319
|
type: import("../nodes").NodeType.intentNode;
|
|
@@ -8318,6 +8326,7 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
8318
8326
|
utterances: string;
|
|
8319
8327
|
}[];
|
|
8320
8328
|
isFallback: boolean;
|
|
8329
|
+
isNameDisabled: boolean;
|
|
8321
8330
|
};
|
|
8322
8331
|
id: string;
|
|
8323
8332
|
}, {
|
|
@@ -8331,6 +8340,7 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
8331
8340
|
}[];
|
|
8332
8341
|
description?: unknown;
|
|
8333
8342
|
isFallback?: unknown;
|
|
8343
|
+
isNameDisabled?: unknown;
|
|
8334
8344
|
};
|
|
8335
8345
|
id: string;
|
|
8336
8346
|
}>, z.ZodObject<{
|
|
@@ -9691,6 +9701,8 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
9691
9701
|
}>, "many">>;
|
|
9692
9702
|
type: z.ZodString;
|
|
9693
9703
|
sessionAttributes: z.ZodCatch<z.ZodString>;
|
|
9704
|
+
isNameDisabled: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
9705
|
+
isTypeDisabled: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
9694
9706
|
}, "strip", z.ZodTypeAny, {
|
|
9695
9707
|
required: boolean | null;
|
|
9696
9708
|
type: string;
|
|
@@ -9945,6 +9957,8 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
9945
9957
|
languageCode: string;
|
|
9946
9958
|
utterances: string;
|
|
9947
9959
|
}[];
|
|
9960
|
+
isNameDisabled: boolean;
|
|
9961
|
+
isTypeDisabled: boolean;
|
|
9948
9962
|
}, {
|
|
9949
9963
|
required: boolean | null;
|
|
9950
9964
|
type: string;
|
|
@@ -9962,6 +9976,8 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
9962
9976
|
success?: unknown;
|
|
9963
9977
|
failure?: unknown;
|
|
9964
9978
|
sessionAttributes?: unknown;
|
|
9979
|
+
isNameDisabled?: unknown;
|
|
9980
|
+
isTypeDisabled?: unknown;
|
|
9965
9981
|
}>;
|
|
9966
9982
|
}, "strip", z.ZodTypeAny, {
|
|
9967
9983
|
type: import("../nodes").NodeType.slotNode;
|
|
@@ -10219,6 +10235,8 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
10219
10235
|
languageCode: string;
|
|
10220
10236
|
utterances: string;
|
|
10221
10237
|
}[];
|
|
10238
|
+
isNameDisabled: boolean;
|
|
10239
|
+
isTypeDisabled: boolean;
|
|
10222
10240
|
};
|
|
10223
10241
|
id: string;
|
|
10224
10242
|
}, {
|
|
@@ -10240,6 +10258,8 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
10240
10258
|
success?: unknown;
|
|
10241
10259
|
failure?: unknown;
|
|
10242
10260
|
sessionAttributes?: unknown;
|
|
10261
|
+
isNameDisabled?: unknown;
|
|
10262
|
+
isTypeDisabled?: unknown;
|
|
10243
10263
|
};
|
|
10244
10264
|
id: string;
|
|
10245
10265
|
}>]>, "many">;
|
|
@@ -10603,6 +10623,7 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
10603
10623
|
}[];
|
|
10604
10624
|
webhookId: string;
|
|
10605
10625
|
merchantId: string;
|
|
10626
|
+
isInvocationLabelDisabled: boolean;
|
|
10606
10627
|
};
|
|
10607
10628
|
id: string;
|
|
10608
10629
|
} | {
|
|
@@ -11387,6 +11408,7 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
11387
11408
|
utterances: string;
|
|
11388
11409
|
}[];
|
|
11389
11410
|
isFallback: boolean;
|
|
11411
|
+
isNameDisabled: boolean;
|
|
11390
11412
|
};
|
|
11391
11413
|
id: string;
|
|
11392
11414
|
} | {
|
|
@@ -11645,6 +11667,8 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
11645
11667
|
languageCode: string;
|
|
11646
11668
|
utterances: string;
|
|
11647
11669
|
}[];
|
|
11670
|
+
isNameDisabled: boolean;
|
|
11671
|
+
isTypeDisabled: boolean;
|
|
11648
11672
|
};
|
|
11649
11673
|
id: string;
|
|
11650
11674
|
})[];
|
|
@@ -11676,6 +11700,7 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
11676
11700
|
timeout?: unknown;
|
|
11677
11701
|
merchantId?: unknown;
|
|
11678
11702
|
sessionAttributes?: unknown;
|
|
11703
|
+
isInvocationLabelDisabled?: unknown;
|
|
11679
11704
|
};
|
|
11680
11705
|
id: string;
|
|
11681
11706
|
} | {
|
|
@@ -11743,6 +11768,7 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
11743
11768
|
}[];
|
|
11744
11769
|
description?: unknown;
|
|
11745
11770
|
isFallback?: unknown;
|
|
11771
|
+
isNameDisabled?: unknown;
|
|
11746
11772
|
};
|
|
11747
11773
|
id: string;
|
|
11748
11774
|
} | {
|
|
@@ -11764,6 +11790,8 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
11764
11790
|
success?: unknown;
|
|
11765
11791
|
failure?: unknown;
|
|
11766
11792
|
sessionAttributes?: unknown;
|
|
11793
|
+
isNameDisabled?: unknown;
|
|
11794
|
+
isTypeDisabled?: unknown;
|
|
11767
11795
|
};
|
|
11768
11796
|
id: string;
|
|
11769
11797
|
})[];
|
|
@@ -1345,6 +1345,7 @@ export declare const CodeHookNodeDataSchema: z.ZodObject<{
|
|
|
1345
1345
|
webhookId: z.ZodString;
|
|
1346
1346
|
merchantId: z.ZodCatch<z.ZodString>;
|
|
1347
1347
|
sessionAttributes: z.ZodCatch<z.ZodString>;
|
|
1348
|
+
isInvocationLabelDisabled: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1348
1349
|
}, "strip", z.ZodTypeAny, {
|
|
1349
1350
|
active: boolean | null;
|
|
1350
1351
|
label: string;
|
|
@@ -1595,6 +1596,7 @@ export declare const CodeHookNodeDataSchema: z.ZodObject<{
|
|
|
1595
1596
|
}[];
|
|
1596
1597
|
webhookId: string;
|
|
1597
1598
|
merchantId: string;
|
|
1599
|
+
isInvocationLabelDisabled: boolean;
|
|
1598
1600
|
}, {
|
|
1599
1601
|
active: boolean | null;
|
|
1600
1602
|
label: string;
|
|
@@ -1605,6 +1607,7 @@ export declare const CodeHookNodeDataSchema: z.ZodObject<{
|
|
|
1605
1607
|
timeout?: unknown;
|
|
1606
1608
|
merchantId?: unknown;
|
|
1607
1609
|
sessionAttributes?: unknown;
|
|
1610
|
+
isInvocationLabelDisabled?: unknown;
|
|
1608
1611
|
}>;
|
|
1609
1612
|
export type CodeHookNodeData = z.infer<typeof CodeHookNodeDataSchema>;
|
|
1610
1613
|
export declare const CodeHookNodeSchema: z.ZodObject<{
|
|
@@ -2955,6 +2958,7 @@ export declare const CodeHookNodeSchema: z.ZodObject<{
|
|
|
2955
2958
|
webhookId: z.ZodString;
|
|
2956
2959
|
merchantId: z.ZodCatch<z.ZodString>;
|
|
2957
2960
|
sessionAttributes: z.ZodCatch<z.ZodString>;
|
|
2961
|
+
isInvocationLabelDisabled: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2958
2962
|
}, "strip", z.ZodTypeAny, {
|
|
2959
2963
|
active: boolean | null;
|
|
2960
2964
|
label: string;
|
|
@@ -3205,6 +3209,7 @@ export declare const CodeHookNodeSchema: z.ZodObject<{
|
|
|
3205
3209
|
}[];
|
|
3206
3210
|
webhookId: string;
|
|
3207
3211
|
merchantId: string;
|
|
3212
|
+
isInvocationLabelDisabled: boolean;
|
|
3208
3213
|
}, {
|
|
3209
3214
|
active: boolean | null;
|
|
3210
3215
|
label: string;
|
|
@@ -3215,6 +3220,7 @@ export declare const CodeHookNodeSchema: z.ZodObject<{
|
|
|
3215
3220
|
timeout?: unknown;
|
|
3216
3221
|
merchantId?: unknown;
|
|
3217
3222
|
sessionAttributes?: unknown;
|
|
3223
|
+
isInvocationLabelDisabled?: unknown;
|
|
3218
3224
|
}>;
|
|
3219
3225
|
}, "strip", z.ZodTypeAny, {
|
|
3220
3226
|
type: NodeType.codeHookNode;
|
|
@@ -3468,6 +3474,7 @@ export declare const CodeHookNodeSchema: z.ZodObject<{
|
|
|
3468
3474
|
}[];
|
|
3469
3475
|
webhookId: string;
|
|
3470
3476
|
merchantId: string;
|
|
3477
|
+
isInvocationLabelDisabled: boolean;
|
|
3471
3478
|
};
|
|
3472
3479
|
id: string;
|
|
3473
3480
|
}, {
|
|
@@ -3482,6 +3489,7 @@ export declare const CodeHookNodeSchema: z.ZodObject<{
|
|
|
3482
3489
|
timeout?: unknown;
|
|
3483
3490
|
merchantId?: unknown;
|
|
3484
3491
|
sessionAttributes?: unknown;
|
|
3492
|
+
isInvocationLabelDisabled?: unknown;
|
|
3485
3493
|
};
|
|
3486
3494
|
id: string;
|
|
3487
3495
|
}>;
|
|
@@ -14,9 +14,13 @@ exports.CodeHookNodeDataSchema = zod_1.z.object({
|
|
|
14
14
|
success: message_1.MessageWithLanguageSchema.array().catch([]),
|
|
15
15
|
failure: message_1.MessageWithLanguageSchema.array().catch([]),
|
|
16
16
|
timeout: message_1.MessageWithLanguageSchema.array().catch([]),
|
|
17
|
-
webhookId: zod_1.z
|
|
17
|
+
webhookId: zod_1.z
|
|
18
|
+
.string()
|
|
19
|
+
.trim()
|
|
20
|
+
.min(1, { message: "webhook is required in codehook" }),
|
|
18
21
|
merchantId: zod_1.z.string().catch(""),
|
|
19
22
|
sessionAttributes: zod_1.z.string().catch(""),
|
|
23
|
+
isInvocationLabelDisabled: zod_1.z.boolean().optional().default(false).catch(false),
|
|
20
24
|
});
|
|
21
25
|
exports.CodeHookNodeSchema = zod_1.z.object({
|
|
22
26
|
id: zod_1.z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codehook-node.js","sourceRoot":"","sources":["../../../../types/nodes/codehook-node.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,kDAAiE;AACjE,2CAAuC;AAE1B,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,eAAe,EAAE,OAAC;SACf,MAAM,EAAE;SACR,IAAI,EAAE;SACN,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;IACtD,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC9B,OAAO,EAAE,mCAAyB,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IACpD,OAAO,EAAE,mCAAyB,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IACpD,OAAO,EAAE,mCAAyB,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IACpD,SAAS,EAAE,OAAC,
|
|
1
|
+
{"version":3,"file":"codehook-node.js","sourceRoot":"","sources":["../../../../types/nodes/codehook-node.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,kDAAiE;AACjE,2CAAuC;AAE1B,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,eAAe,EAAE,OAAC;SACf,MAAM,EAAE;SACR,IAAI,EAAE;SACN,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;IACtD,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC9B,OAAO,EAAE,mCAAyB,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IACpD,OAAO,EAAE,mCAAyB,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IACpD,OAAO,EAAE,mCAAyB,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IACpD,SAAS,EAAE,OAAC;SACT,MAAM,EAAE;SACR,IAAI,EAAE;SACN,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,iCAAiC,EAAE,CAAC;IACzD,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IAChC,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IACvC,yBAAyB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC;CAC9E,CAAC,CAAC;AAIU,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,oBAAQ,CAAC,YAAY,CAAC;IACtC,IAAI,EAAE,8BAAsB;CAC7B,CAAC,CAAC"}
|
|
@@ -6,7 +6,9 @@ const message_1 = require("../responses/message");
|
|
|
6
6
|
const node_type_1 = require("./node-type");
|
|
7
7
|
exports.ConfirmationNodeDataSchema = zod_1.z.object({
|
|
8
8
|
label: zod_1.z.string(),
|
|
9
|
-
prompt: message_1.MessageWithLanguageSchema.array().min(1, {
|
|
9
|
+
prompt: message_1.MessageWithLanguageSchema.array().min(1, {
|
|
10
|
+
message: "prompt is required",
|
|
11
|
+
}),
|
|
10
12
|
success: message_1.MessageWithLanguageSchema.array().catch([]),
|
|
11
13
|
failure: message_1.MessageWithLanguageSchema.array().catch([]),
|
|
12
14
|
decline: message_1.MessageWithLanguageSchema.array().catch([]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"confirmation-node.js","sourceRoot":"","sources":["../../../../types/nodes/confirmation-node.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,kDAAiE;AACjE,2CAAuC;AAE1B,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,mCAAyB,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"confirmation-node.js","sourceRoot":"","sources":["../../../../types/nodes/confirmation-node.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,kDAAiE;AACjE,2CAAuC;AAE1B,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,mCAAyB,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE;QAC/C,OAAO,EAAE,oBAAoB;KAC9B,CAAC;IACF,OAAO,EAAE,mCAAyB,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IACpD,OAAO,EAAE,mCAAyB,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IACpD,OAAO,EAAE,mCAAyB,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IACpD,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;CACxC,CAAC,CAAC;AAGU,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,oBAAQ,CAAC,gBAAgB,CAAC;IAC1C,IAAI,EAAE,kCAA0B;CACjC,CAAC,CAAC"}
|
|
@@ -11,7 +11,10 @@ exports.FullfillmentNodeDataSchema = zod_1.z.object({
|
|
|
11
11
|
success: message_1.MessageWithLanguageSchema.array().catch([]),
|
|
12
12
|
failure: message_1.MessageWithLanguageSchema.array().catch([]),
|
|
13
13
|
timeout: message_1.MessageWithLanguageSchema.array().catch([]),
|
|
14
|
-
webhookId: zod_1.z
|
|
14
|
+
webhookId: zod_1.z
|
|
15
|
+
.string()
|
|
16
|
+
.trim()
|
|
17
|
+
.min(1, { message: "webhook is required in fullfillment" }),
|
|
15
18
|
merchantId: zod_1.z.string().catch(""),
|
|
16
19
|
sessionAttributes: zod_1.z.string().catch(""),
|
|
17
20
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fullfillment-node.js","sourceRoot":"","sources":["../../../../types/nodes/fullfillment-node.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,kDAAiE;AACjE,2CAAuC;AAE1B,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAClC,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC9B,OAAO,EAAE,mCAAyB,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IACpD,OAAO,EAAE,mCAAyB,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IACpD,OAAO,EAAE,mCAAyB,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IACpD,SAAS,EAAE,OAAC,
|
|
1
|
+
{"version":3,"file":"fullfillment-node.js","sourceRoot":"","sources":["../../../../types/nodes/fullfillment-node.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,kDAAiE;AACjE,2CAAuC;AAE1B,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAClC,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC9B,OAAO,EAAE,mCAAyB,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IACpD,OAAO,EAAE,mCAAyB,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IACpD,OAAO,EAAE,mCAAyB,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IACpD,SAAS,EAAE,OAAC;SACT,MAAM,EAAE;SACR,IAAI,EAAE;SACN,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,qCAAqC,EAAE,CAAC;IAC7D,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IAChC,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;CACxC,CAAC,CAAC;AAIU,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,oBAAQ,CAAC,gBAAgB,CAAC;IAC1C,IAAI,EAAE,kCAA0B;CACjC,CAAC,CAAC"}
|
|
@@ -26,6 +26,7 @@ export declare const IntentNodeDataSchema: z.ZodObject<{
|
|
|
26
26
|
utterances?: unknown;
|
|
27
27
|
}>, "many">;
|
|
28
28
|
isFallback: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
29
|
+
isNameDisabled: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
29
30
|
}, "strip", z.ZodTypeAny, {
|
|
30
31
|
name: string;
|
|
31
32
|
label: string;
|
|
@@ -35,6 +36,7 @@ export declare const IntentNodeDataSchema: z.ZodObject<{
|
|
|
35
36
|
utterances: string;
|
|
36
37
|
}[];
|
|
37
38
|
isFallback: boolean;
|
|
39
|
+
isNameDisabled: boolean;
|
|
38
40
|
}, {
|
|
39
41
|
name: string;
|
|
40
42
|
label: string;
|
|
@@ -44,6 +46,7 @@ export declare const IntentNodeDataSchema: z.ZodObject<{
|
|
|
44
46
|
}[];
|
|
45
47
|
description?: unknown;
|
|
46
48
|
isFallback?: unknown;
|
|
49
|
+
isNameDisabled?: unknown;
|
|
47
50
|
}>;
|
|
48
51
|
export type IntentNodeData = z.infer<typeof IntentNodeDataSchema>;
|
|
49
52
|
export declare const IntentNodeSchema: z.ZodObject<{
|
|
@@ -64,6 +67,7 @@ export declare const IntentNodeSchema: z.ZodObject<{
|
|
|
64
67
|
utterances?: unknown;
|
|
65
68
|
}>, "many">;
|
|
66
69
|
isFallback: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
70
|
+
isNameDisabled: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
67
71
|
}, "strip", z.ZodTypeAny, {
|
|
68
72
|
name: string;
|
|
69
73
|
label: string;
|
|
@@ -73,6 +77,7 @@ export declare const IntentNodeSchema: z.ZodObject<{
|
|
|
73
77
|
utterances: string;
|
|
74
78
|
}[];
|
|
75
79
|
isFallback: boolean;
|
|
80
|
+
isNameDisabled: boolean;
|
|
76
81
|
}, {
|
|
77
82
|
name: string;
|
|
78
83
|
label: string;
|
|
@@ -82,6 +87,7 @@ export declare const IntentNodeSchema: z.ZodObject<{
|
|
|
82
87
|
}[];
|
|
83
88
|
description?: unknown;
|
|
84
89
|
isFallback?: unknown;
|
|
90
|
+
isNameDisabled?: unknown;
|
|
85
91
|
}>;
|
|
86
92
|
}, "strip", z.ZodTypeAny, {
|
|
87
93
|
type: NodeType.intentNode;
|
|
@@ -94,6 +100,7 @@ export declare const IntentNodeSchema: z.ZodObject<{
|
|
|
94
100
|
utterances: string;
|
|
95
101
|
}[];
|
|
96
102
|
isFallback: boolean;
|
|
103
|
+
isNameDisabled: boolean;
|
|
97
104
|
};
|
|
98
105
|
id: string;
|
|
99
106
|
}, {
|
|
@@ -107,6 +114,7 @@ export declare const IntentNodeSchema: z.ZodObject<{
|
|
|
107
114
|
}[];
|
|
108
115
|
description?: unknown;
|
|
109
116
|
isFallback?: unknown;
|
|
117
|
+
isNameDisabled?: unknown;
|
|
110
118
|
};
|
|
111
119
|
id: string;
|
|
112
120
|
}>;
|
|
@@ -3,18 +3,26 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.IntentNodeSchema = exports.IntentNodeDataSchema = exports.UtteranceSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const node_type_1 = require("./node-type");
|
|
6
|
-
exports.UtteranceSchema = zod_1.z
|
|
7
|
-
.
|
|
8
|
-
|
|
6
|
+
exports.UtteranceSchema = zod_1.z.object({
|
|
7
|
+
languageCode: zod_1.z
|
|
8
|
+
.string()
|
|
9
|
+
.trim()
|
|
10
|
+
.min(1, { message: "language code is required" }),
|
|
9
11
|
utterances: zod_1.z.string().catch(""),
|
|
10
12
|
});
|
|
11
|
-
exports.IntentNodeDataSchema = zod_1.z
|
|
12
|
-
.object({
|
|
13
|
+
exports.IntentNodeDataSchema = zod_1.z.object({
|
|
13
14
|
label: zod_1.z.string().trim().min(1, { message: "label is required" }),
|
|
14
|
-
name: zod_1.z
|
|
15
|
+
name: zod_1.z
|
|
16
|
+
.string()
|
|
17
|
+
.trim()
|
|
18
|
+
.min(1, { message: "name is required" })
|
|
19
|
+
.regex(/^([0-9a-zA-Z][_-]?){1,100}$/, {
|
|
20
|
+
message: "intent name has invalid character",
|
|
21
|
+
}),
|
|
15
22
|
description: zod_1.z.string().trim().catch(""),
|
|
16
23
|
utterances: exports.UtteranceSchema.array(),
|
|
17
24
|
isFallback: zod_1.z.boolean().optional().default(false).catch(false),
|
|
25
|
+
isNameDisabled: zod_1.z.boolean().optional().default(false).catch(false),
|
|
18
26
|
});
|
|
19
27
|
exports.IntentNodeSchema = zod_1.z.object({
|
|
20
28
|
id: zod_1.z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intent-node.js","sourceRoot":"","sources":["../../../../types/nodes/intent-node.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,2CAAuC;
|
|
1
|
+
{"version":3,"file":"intent-node.js","sourceRoot":"","sources":["../../../../types/nodes/intent-node.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,2CAAuC;AAE1B,QAAA,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,YAAY,EAAE,OAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC;IACnD,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;CACjC,CAAC,CAAC;AAIU,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,mBAAmB,EAAE,CAAC;IACjE,IAAI,EAAE,OAAC;SACJ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;SACvC,KAAK,CAAC,6BAA6B,EAAE;QACpC,OAAO,EAAE,mCAAmC;KAC7C,CAAC;IACJ,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IACxC,UAAU,EAAE,uBAAe,CAAC,KAAK,EAAE;IACnC,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC;IAC9D,cAAc,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC;CACnE,CAAC,CAAC;AAIU,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,oBAAQ,CAAC,UAAU,CAAC;IACpC,IAAI,EAAE,4BAAoB;CAC3B,CAAC,CAAC"}
|
|
@@ -1984,6 +1984,7 @@ export declare const NodeSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1984
1984
|
webhookId: z.ZodString;
|
|
1985
1985
|
merchantId: z.ZodCatch<z.ZodString>;
|
|
1986
1986
|
sessionAttributes: z.ZodCatch<z.ZodString>;
|
|
1987
|
+
isInvocationLabelDisabled: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1987
1988
|
}, "strip", z.ZodTypeAny, {
|
|
1988
1989
|
active: boolean | null;
|
|
1989
1990
|
label: string;
|
|
@@ -2234,6 +2235,7 @@ export declare const NodeSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
2234
2235
|
}[];
|
|
2235
2236
|
webhookId: string;
|
|
2236
2237
|
merchantId: string;
|
|
2238
|
+
isInvocationLabelDisabled: boolean;
|
|
2237
2239
|
}, {
|
|
2238
2240
|
active: boolean | null;
|
|
2239
2241
|
label: string;
|
|
@@ -2244,6 +2246,7 @@ export declare const NodeSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
2244
2246
|
timeout?: unknown;
|
|
2245
2247
|
merchantId?: unknown;
|
|
2246
2248
|
sessionAttributes?: unknown;
|
|
2249
|
+
isInvocationLabelDisabled?: unknown;
|
|
2247
2250
|
}>;
|
|
2248
2251
|
}, "strip", z.ZodTypeAny, {
|
|
2249
2252
|
type: import("./node-type").NodeType.codeHookNode;
|
|
@@ -2497,6 +2500,7 @@ export declare const NodeSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
2497
2500
|
}[];
|
|
2498
2501
|
webhookId: string;
|
|
2499
2502
|
merchantId: string;
|
|
2503
|
+
isInvocationLabelDisabled: boolean;
|
|
2500
2504
|
};
|
|
2501
2505
|
id: string;
|
|
2502
2506
|
}, {
|
|
@@ -2511,6 +2515,7 @@ export declare const NodeSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
2511
2515
|
timeout?: unknown;
|
|
2512
2516
|
merchantId?: unknown;
|
|
2513
2517
|
sessionAttributes?: unknown;
|
|
2518
|
+
isInvocationLabelDisabled?: unknown;
|
|
2514
2519
|
};
|
|
2515
2520
|
id: string;
|
|
2516
2521
|
}>, z.ZodObject<{
|
|
@@ -8287,6 +8292,7 @@ export declare const NodeSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
8287
8292
|
utterances?: unknown;
|
|
8288
8293
|
}>, "many">;
|
|
8289
8294
|
isFallback: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
8295
|
+
isNameDisabled: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
8290
8296
|
}, "strip", z.ZodTypeAny, {
|
|
8291
8297
|
name: string;
|
|
8292
8298
|
label: string;
|
|
@@ -8296,6 +8302,7 @@ export declare const NodeSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
8296
8302
|
utterances: string;
|
|
8297
8303
|
}[];
|
|
8298
8304
|
isFallback: boolean;
|
|
8305
|
+
isNameDisabled: boolean;
|
|
8299
8306
|
}, {
|
|
8300
8307
|
name: string;
|
|
8301
8308
|
label: string;
|
|
@@ -8305,6 +8312,7 @@ export declare const NodeSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
8305
8312
|
}[];
|
|
8306
8313
|
description?: unknown;
|
|
8307
8314
|
isFallback?: unknown;
|
|
8315
|
+
isNameDisabled?: unknown;
|
|
8308
8316
|
}>;
|
|
8309
8317
|
}, "strip", z.ZodTypeAny, {
|
|
8310
8318
|
type: import("./node-type").NodeType.intentNode;
|
|
@@ -8317,6 +8325,7 @@ export declare const NodeSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
8317
8325
|
utterances: string;
|
|
8318
8326
|
}[];
|
|
8319
8327
|
isFallback: boolean;
|
|
8328
|
+
isNameDisabled: boolean;
|
|
8320
8329
|
};
|
|
8321
8330
|
id: string;
|
|
8322
8331
|
}, {
|
|
@@ -8330,6 +8339,7 @@ export declare const NodeSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
8330
8339
|
}[];
|
|
8331
8340
|
description?: unknown;
|
|
8332
8341
|
isFallback?: unknown;
|
|
8342
|
+
isNameDisabled?: unknown;
|
|
8333
8343
|
};
|
|
8334
8344
|
id: string;
|
|
8335
8345
|
}>, z.ZodObject<{
|
|
@@ -9690,6 +9700,8 @@ export declare const NodeSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
9690
9700
|
}>, "many">>;
|
|
9691
9701
|
type: z.ZodString;
|
|
9692
9702
|
sessionAttributes: z.ZodCatch<z.ZodString>;
|
|
9703
|
+
isNameDisabled: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
9704
|
+
isTypeDisabled: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
9693
9705
|
}, "strip", z.ZodTypeAny, {
|
|
9694
9706
|
required: boolean | null;
|
|
9695
9707
|
type: string;
|
|
@@ -9944,6 +9956,8 @@ export declare const NodeSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
9944
9956
|
languageCode: string;
|
|
9945
9957
|
utterances: string;
|
|
9946
9958
|
}[];
|
|
9959
|
+
isNameDisabled: boolean;
|
|
9960
|
+
isTypeDisabled: boolean;
|
|
9947
9961
|
}, {
|
|
9948
9962
|
required: boolean | null;
|
|
9949
9963
|
type: string;
|
|
@@ -9961,6 +9975,8 @@ export declare const NodeSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
9961
9975
|
success?: unknown;
|
|
9962
9976
|
failure?: unknown;
|
|
9963
9977
|
sessionAttributes?: unknown;
|
|
9978
|
+
isNameDisabled?: unknown;
|
|
9979
|
+
isTypeDisabled?: unknown;
|
|
9964
9980
|
}>;
|
|
9965
9981
|
}, "strip", z.ZodTypeAny, {
|
|
9966
9982
|
type: import("./node-type").NodeType.slotNode;
|
|
@@ -10218,6 +10234,8 @@ export declare const NodeSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
10218
10234
|
languageCode: string;
|
|
10219
10235
|
utterances: string;
|
|
10220
10236
|
}[];
|
|
10237
|
+
isNameDisabled: boolean;
|
|
10238
|
+
isTypeDisabled: boolean;
|
|
10221
10239
|
};
|
|
10222
10240
|
id: string;
|
|
10223
10241
|
}, {
|
|
@@ -10239,6 +10257,8 @@ export declare const NodeSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
10239
10257
|
success?: unknown;
|
|
10240
10258
|
failure?: unknown;
|
|
10241
10259
|
sessionAttributes?: unknown;
|
|
10260
|
+
isNameDisabled?: unknown;
|
|
10261
|
+
isTypeDisabled?: unknown;
|
|
10242
10262
|
};
|
|
10243
10263
|
id: string;
|
|
10244
10264
|
}>]>;
|