@voiceflow/utils-designer 1.14.2 → 1.15.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.
@@ -34,5 +34,6 @@ export declare const intentUtterancesValidator: import("./main").IValidatorWithC
34
34
  }>;
35
35
  export declare const intentDescriptionValidator: import("./main").IValidatorWithContext<string, {
36
36
  isBuiltInIntent?: boolean | undefined;
37
+ isLLMClassification: boolean;
37
38
  }>;
38
39
  //# sourceMappingURL=intent.util.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"intent.util.d.ts","sourceRoot":"","sources":["../../src/intent.util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAa,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAM3E,eAAO,MAAM,mBAAmB,UAAW,MAAM,GAAG,IAAI,YAAqD,CAAC;AAE9G,eAAO,MAAM,2BAA2B,8DAA4C,CAAC;AAErF,eAAO,MAAM,8BAA8B;aACQ,MAAM,EAAE;cAAY,MAAM,GAAG,IAAI;EAGnF,CAAC;AAEF,eAAO,MAAM,+BAA+B;cACD,MAAM,EAAE;EAGlD,CAAC;AAEF,eAAO,MAAM,gCAAgC;eACA,QAAQ,EAAE;EAGtD,CAAC;AAEF,eAAO,MAAM,mBAAmB;aAjBmB,MAAM,EAAE;cAAY,MAAM,GAAG,IAAI;;cAMzC,MAAM,EAAE;;eAMN,QAAQ,EAAE;EAUtD,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;EAIrC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;EAGtC,CAAC"}
1
+ {"version":3,"file":"intent.util.d.ts","sourceRoot":"","sources":["../../src/intent.util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAa,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAM3E,eAAO,MAAM,mBAAmB,UAAW,MAAM,GAAG,IAAI,YAAqD,CAAC;AAE9G,eAAO,MAAM,2BAA2B,8DAA4C,CAAC;AAErF,eAAO,MAAM,8BAA8B;aACQ,MAAM,EAAE;cAAY,MAAM,GAAG,IAAI;EAGnF,CAAC;AAEF,eAAO,MAAM,+BAA+B;cACD,MAAM,EAAE;EAGlD,CAAC;AAEF,eAAO,MAAM,gCAAgC;eACA,QAAQ,EAAE;EAGtD,CAAC;AAEF,eAAO,MAAM,mBAAmB;aAjBmB,MAAM,EAAE;cAAY,MAAM,GAAG,IAAI;;cAMzC,MAAM,EAAE;;eAMN,QAAQ,EAAE;EAUtD,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;EAIrC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;yBAGyD,OAAO;EAGtG,CAAC"}
@@ -12,4 +12,4 @@ exports.intentNameUniqEntitiesValidator = (0, validator_util_1.validatorFactory)
12
12
  exports.intentNameUniqVariablesValidator = (0, validator_util_1.validatorFactory)((name, { variables }) => variables.every((variable) => variable.name.toLocaleLowerCase() !== name.toLocaleLowerCase()), (name) => `You have a variable defined with the '${name}' name already. Intent/Variable/Entity name must be unique.`);
13
13
  exports.intentNameValidator = (0, validator_util_1.composeValidators)(exports.intentNameSpellingValidator, exports.intentNameUniqIntentsValidator, exports.intentNameUniqEntitiesValidator, exports.intentNameUniqVariablesValidator);
14
14
  exports.intentUtterancesValidator = (0, validator_util_1.validatorFactory)((utterances, { isBuiltInIntent }) => isBuiltInIntent || utterances.some(({ text }) => !(0, markup_util_1.isMarkupEmpty)(text)), 'Intent requires at least 1 sample phrase.');
15
- exports.intentDescriptionValidator = (0, validator_util_1.validatorFactory)((description, { isBuiltInIntent }) => isBuiltInIntent || !!description.trim(), 'Description is required for LLM classification.');
15
+ exports.intentDescriptionValidator = (0, validator_util_1.validatorFactory)((description, { isBuiltInIntent, isLLMClassification }) => !isLLMClassification || isBuiltInIntent || !!description.trim(), 'Description is required for LLM classification.');
@@ -34,5 +34,6 @@ export declare const intentUtterancesValidator: import("./main.js").IValidatorWi
34
34
  }>;
35
35
  export declare const intentDescriptionValidator: import("./main.js").IValidatorWithContext<string, {
36
36
  isBuiltInIntent?: boolean | undefined;
37
+ isLLMClassification: boolean;
37
38
  }>;
38
39
  //# sourceMappingURL=intent.util.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"intent.util.d.ts","sourceRoot":"","sources":["../../src/intent.util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAa,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAM3E,eAAO,MAAM,mBAAmB,UAAW,MAAM,GAAG,IAAI,YAAqD,CAAC;AAE9G,eAAO,MAAM,2BAA2B,8DAA4C,CAAC;AAErF,eAAO,MAAM,8BAA8B;aACQ,MAAM,EAAE;cAAY,MAAM,GAAG,IAAI;EAGnF,CAAC;AAEF,eAAO,MAAM,+BAA+B;cACD,MAAM,EAAE;EAGlD,CAAC;AAEF,eAAO,MAAM,gCAAgC;eACA,QAAQ,EAAE;EAGtD,CAAC;AAEF,eAAO,MAAM,mBAAmB;aAjBmB,MAAM,EAAE;cAAY,MAAM,GAAG,IAAI;;cAMzC,MAAM,EAAE;;eAMN,QAAQ,EAAE;EAUtD,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;EAIrC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;EAGtC,CAAC"}
1
+ {"version":3,"file":"intent.util.d.ts","sourceRoot":"","sources":["../../src/intent.util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAa,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAM3E,eAAO,MAAM,mBAAmB,UAAW,MAAM,GAAG,IAAI,YAAqD,CAAC;AAE9G,eAAO,MAAM,2BAA2B,8DAA4C,CAAC;AAErF,eAAO,MAAM,8BAA8B;aACQ,MAAM,EAAE;cAAY,MAAM,GAAG,IAAI;EAGnF,CAAC;AAEF,eAAO,MAAM,+BAA+B;cACD,MAAM,EAAE;EAGlD,CAAC;AAEF,eAAO,MAAM,gCAAgC;eACA,QAAQ,EAAE;EAGtD,CAAC;AAEF,eAAO,MAAM,mBAAmB;aAjBmB,MAAM,EAAE;cAAY,MAAM,GAAG,IAAI;;cAMzC,MAAM,EAAE;;eAMN,QAAQ,EAAE;EAUtD,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;EAIrC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;yBAGyD,OAAO;EAGtG,CAAC"}
@@ -8,4 +8,4 @@ export const intentNameUniqEntitiesValidator = validatorFactory((name, { entitie
8
8
  export const intentNameUniqVariablesValidator = validatorFactory((name, { variables }) => variables.every((variable) => variable.name.toLocaleLowerCase() !== name.toLocaleLowerCase()), (name) => `You have a variable defined with the '${name}' name already. Intent/Variable/Entity name must be unique.`);
9
9
  export const intentNameValidator = composeValidators(intentNameSpellingValidator, intentNameUniqIntentsValidator, intentNameUniqEntitiesValidator, intentNameUniqVariablesValidator);
10
10
  export const intentUtterancesValidator = validatorFactory((utterances, { isBuiltInIntent }) => isBuiltInIntent || utterances.some(({ text }) => !isMarkupEmpty(text)), 'Intent requires at least 1 sample phrase.');
11
- export const intentDescriptionValidator = validatorFactory((description, { isBuiltInIntent }) => isBuiltInIntent || !!description.trim(), 'Description is required for LLM classification.');
11
+ export const intentDescriptionValidator = validatorFactory((description, { isBuiltInIntent, isLLMClassification }) => !isLLMClassification || isBuiltInIntent || !!description.trim(), 'Description is required for LLM classification.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voiceflow/utils-designer",
3
- "version": "1.14.2",
3
+ "version": "1.15.1",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./build/cjs/main.d.ts",
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@voiceflow/common": "8.2.8",
39
- "@voiceflow/dtos": "1.48.0",
39
+ "@voiceflow/dtos": "1.50.0",
40
40
  "bidirectional-adapter": "1.2.1",
41
41
  "ts-pattern": "^5.0.5",
42
42
  "zod": "3.22.4"
@@ -55,5 +55,5 @@
55
55
  "tsd": {
56
56
  "directory": "src"
57
57
  },
58
- "gitHead": "9406c25a8368ecb44bd9d1136dd5874e52756f90"
58
+ "gitHead": "9188f4c6052725cebfb9be5aa1ad5fbc943e1c75"
59
59
  }