@nocobase/plugin-flow-engine 2.1.0-alpha.10 → 2.1.0-alpha.11
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/ai/ai-employees/nathan/index.d.ts +10 -0
- package/dist/ai/ai-employees/nathan/index.js +152 -0
- package/dist/ai/ai-employees/nathan/skills/frontend-developer/SKILLS.md +69 -0
- package/dist/client/index.js +1 -1
- package/dist/externalVersion.js +12 -10
- package/dist/node_modules/ajv/.runkit_example.js +23 -0
- package/dist/node_modules/ajv/LICENSE +22 -0
- package/dist/node_modules/ajv/dist/2019.d.ts +19 -0
- package/dist/node_modules/ajv/dist/2019.js +61 -0
- package/dist/node_modules/ajv/dist/2020.d.ts +19 -0
- package/dist/node_modules/ajv/dist/2020.js +55 -0
- package/dist/node_modules/ajv/dist/ajv.d.ts +18 -0
- package/dist/node_modules/ajv/dist/ajv.js +7 -0
- package/dist/node_modules/ajv/dist/compile/codegen/code.d.ts +40 -0
- package/dist/node_modules/ajv/dist/compile/codegen/code.js +156 -0
- package/dist/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
- package/dist/node_modules/ajv/dist/compile/codegen/index.js +697 -0
- package/dist/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
- package/dist/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
- package/dist/node_modules/ajv/dist/compile/errors.d.ts +13 -0
- package/dist/node_modules/ajv/dist/compile/errors.js +123 -0
- package/dist/node_modules/ajv/dist/compile/index.d.ts +80 -0
- package/dist/node_modules/ajv/dist/compile/index.js +242 -0
- package/dist/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
- package/dist/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
- package/dist/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
- package/dist/node_modules/ajv/dist/compile/jtd/serialize.js +236 -0
- package/dist/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
- package/dist/node_modules/ajv/dist/compile/jtd/types.js +14 -0
- package/dist/node_modules/ajv/dist/compile/names.d.ts +20 -0
- package/dist/node_modules/ajv/dist/compile/names.js +28 -0
- package/dist/node_modules/ajv/dist/compile/ref_error.d.ts +6 -0
- package/dist/node_modules/ajv/dist/compile/ref_error.js +12 -0
- package/dist/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
- package/dist/node_modules/ajv/dist/compile/resolve.js +155 -0
- package/dist/node_modules/ajv/dist/compile/rules.d.ts +28 -0
- package/dist/node_modules/ajv/dist/compile/rules.js +26 -0
- package/dist/node_modules/ajv/dist/compile/util.d.ts +40 -0
- package/dist/node_modules/ajv/dist/compile/util.js +178 -0
- package/dist/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
- package/dist/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
- package/dist/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
- package/dist/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
- package/dist/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
- package/dist/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
- package/dist/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
- package/dist/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
- package/dist/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
- package/dist/node_modules/ajv/dist/compile/validate/index.js +520 -0
- package/dist/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
- package/dist/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
- package/dist/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
- package/dist/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
- package/dist/node_modules/ajv/dist/core.d.ts +174 -0
- package/dist/node_modules/ajv/dist/core.js +618 -0
- package/dist/node_modules/ajv/dist/jtd.d.ts +47 -0
- package/dist/node_modules/ajv/dist/jtd.js +72 -0
- package/dist/node_modules/ajv/dist/refs/data.json +13 -0
- package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
- package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
- package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
- package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
- package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
- package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
- package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
- package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
- package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
- package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
- package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
- package/dist/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
- package/dist/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
- package/dist/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
- package/dist/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
- package/dist/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
- package/dist/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
- package/dist/node_modules/ajv/dist/runtime/equal.js +7 -0
- package/dist/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
- package/dist/node_modules/ajv/dist/runtime/parseJson.js +185 -0
- package/dist/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
- package/dist/node_modules/ajv/dist/runtime/quote.js +30 -0
- package/dist/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
- package/dist/node_modules/ajv/dist/runtime/re2.js +6 -0
- package/dist/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
- package/dist/node_modules/ajv/dist/runtime/timestamp.js +42 -0
- package/dist/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
- package/dist/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
- package/dist/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
- package/dist/node_modules/ajv/dist/runtime/uri.js +6 -0
- package/dist/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
- package/dist/node_modules/ajv/dist/runtime/validation_error.js +11 -0
- package/dist/node_modules/ajv/dist/standalone/index.d.ts +6 -0
- package/dist/node_modules/ajv/dist/standalone/index.js +90 -0
- package/dist/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
- package/dist/node_modules/ajv/dist/standalone/instance.js +35 -0
- package/dist/node_modules/ajv/dist/types/index.d.ts +183 -0
- package/dist/node_modules/ajv/dist/types/index.js +3 -0
- package/dist/node_modules/ajv/dist/types/json-schema.d.ts +125 -0
- package/dist/node_modules/ajv/dist/types/json-schema.js +3 -0
- package/dist/node_modules/ajv/dist/types/jtd-schema.d.ts +174 -0
- package/dist/node_modules/ajv/dist/types/jtd-schema.js +3 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
- package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
- package/dist/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
- package/dist/node_modules/ajv/dist/vocabularies/code.js +131 -0
- package/dist/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
- package/dist/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
- package/dist/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
- package/dist/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
- package/dist/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
- package/dist/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
- package/dist/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
- package/dist/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
- package/dist/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
- package/dist/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
- package/dist/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
- package/dist/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
- package/dist/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
- package/dist/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
- package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
- package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
- package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
- package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
- package/dist/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
- package/dist/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
- package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
- package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
- package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
- package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
- package/dist/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
- package/dist/node_modules/ajv/dist/vocabularies/errors.js +3 -0
- package/dist/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
- package/dist/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
- package/dist/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
- package/dist/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
- package/dist/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
- package/dist/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
- package/dist/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
- package/dist/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
- package/dist/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
- package/dist/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
- package/dist/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
- package/dist/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
- package/dist/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
- package/dist/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
- package/dist/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
- package/dist/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
- package/dist/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
- package/dist/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
- package/dist/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
- package/dist/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
- package/dist/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
- package/dist/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
- package/dist/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
- package/dist/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
- package/dist/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
- package/dist/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
- package/dist/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
- package/dist/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
- package/dist/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
- package/dist/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
- package/dist/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
- package/dist/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
- package/dist/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
- package/dist/node_modules/ajv/dist/vocabularies/next.js +8 -0
- package/dist/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
- package/dist/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
- package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
- package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
- package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
- package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
- package/dist/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
- package/dist/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
- package/dist/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
- package/dist/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
- package/dist/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
- package/dist/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
- package/dist/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
- package/dist/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
- package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
- package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
- package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
- package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.js +33 -0
- package/dist/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
- package/dist/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
- package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
- package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
- package/dist/node_modules/ajv/lib/2019.ts +81 -0
- package/dist/node_modules/ajv/lib/2020.ts +75 -0
- package/dist/node_modules/ajv/lib/ajv.ts +70 -0
- package/dist/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
- package/dist/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
- package/dist/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
- package/dist/node_modules/ajv/lib/compile/errors.ts +184 -0
- package/dist/node_modules/ajv/lib/compile/index.ts +324 -0
- package/dist/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
- package/dist/node_modules/ajv/lib/compile/jtd/serialize.ts +277 -0
- package/dist/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
- package/dist/node_modules/ajv/lib/compile/names.ts +27 -0
- package/dist/node_modules/ajv/lib/compile/ref_error.ts +13 -0
- package/dist/node_modules/ajv/lib/compile/resolve.ts +149 -0
- package/dist/node_modules/ajv/lib/compile/rules.ts +50 -0
- package/dist/node_modules/ajv/lib/compile/util.ts +213 -0
- package/dist/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
- package/dist/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
- package/dist/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
- package/dist/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
- package/dist/node_modules/ajv/lib/compile/validate/index.ts +582 -0
- package/dist/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
- package/dist/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
- package/dist/node_modules/ajv/lib/core.ts +892 -0
- package/dist/node_modules/ajv/lib/jtd.ts +132 -0
- package/dist/node_modules/ajv/lib/refs/data.json +13 -0
- package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
- package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
- package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
- package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
- package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
- package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
- package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
- package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
- package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
- package/dist/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
- package/dist/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
- package/dist/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
- package/dist/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
- package/dist/node_modules/ajv/lib/runtime/equal.ts +7 -0
- package/dist/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
- package/dist/node_modules/ajv/lib/runtime/quote.ts +31 -0
- package/dist/node_modules/ajv/lib/runtime/re2.ts +6 -0
- package/dist/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
- package/dist/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
- package/dist/node_modules/ajv/lib/runtime/uri.ts +6 -0
- package/dist/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
- package/dist/node_modules/ajv/lib/standalone/index.ts +100 -0
- package/dist/node_modules/ajv/lib/standalone/instance.ts +36 -0
- package/dist/node_modules/ajv/lib/types/index.ts +244 -0
- package/dist/node_modules/ajv/lib/types/json-schema.ts +187 -0
- package/dist/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
- package/dist/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
- package/dist/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
- package/dist/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
- package/dist/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
- package/dist/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
- package/dist/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
- package/dist/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
- package/dist/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
- package/dist/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
- package/dist/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
- package/dist/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
- package/dist/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
- package/dist/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
- package/dist/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
- package/dist/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
- package/dist/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
- package/dist/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
- package/dist/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
- package/dist/node_modules/ajv/lib/vocabularies/code.ts +168 -0
- package/dist/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
- package/dist/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
- package/dist/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
- package/dist/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
- package/dist/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
- package/dist/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
- package/dist/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
- package/dist/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
- package/dist/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
- package/dist/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
- package/dist/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
- package/dist/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
- package/dist/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
- package/dist/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
- package/dist/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
- package/dist/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
- package/dist/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
- package/dist/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
- package/dist/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
- package/dist/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
- package/dist/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
- package/dist/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
- package/dist/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
- package/dist/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
- package/dist/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
- package/dist/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
- package/dist/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
- package/dist/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
- package/dist/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
- package/dist/node_modules/ajv/lib/vocabularies/next.ts +8 -0
- package/dist/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
- package/dist/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
- package/dist/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
- package/dist/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
- package/dist/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
- package/dist/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
- package/dist/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
- package/dist/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
- package/dist/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
- package/dist/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
- package/dist/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
- package/dist/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
- package/dist/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
- package/dist/node_modules/ajv/lib/vocabularies/validation/pattern.ts +39 -0
- package/dist/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
- package/dist/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
- package/dist/node_modules/ajv/package.json +1 -0
- package/dist/node_modules/ses/package.json +1 -1
- package/dist/node_modules/zod/package.json +1 -1
- package/dist/server/flow-models/action-handlers.d.ts +26 -0
- package/dist/server/flow-models/action-handlers.js +209 -0
- package/dist/server/flow-models/http-error-adapter.d.ts +10 -0
- package/dist/server/flow-models/http-error-adapter.js +58 -0
- package/dist/server/flow-models/mutate-executor.d.ts +17 -0
- package/dist/server/flow-models/mutate-executor.js +309 -0
- package/dist/server/flow-models/repository-internals/duplicate-helpers.d.ts +12 -0
- package/dist/server/flow-models/repository-internals/duplicate-helpers.js +121 -0
- package/dist/server/flow-models/repository-internals/ensure-lock.d.ts +15 -0
- package/dist/server/flow-models/repository-internals/ensure-lock.js +117 -0
- package/dist/server/flow-models/repository-internals/errors.d.ts +21 -0
- package/dist/server/flow-models/repository-internals/errors.js +78 -0
- package/dist/server/flow-models/schema-contribution-collector.d.ts +27 -0
- package/dist/server/flow-models/schema-contribution-collector.js +217 -0
- package/dist/server/flow-models/validation-facade.d.ts +29 -0
- package/dist/server/flow-models/validation-facade.js +181 -0
- package/dist/server/flow-schema-contributions/actions/aclCheck.d.ts +10 -0
- package/dist/server/flow-schema-contributions/actions/aclCheck.js +46 -0
- package/dist/server/flow-schema-contributions/actions/aclCheckRefresh.d.ts +10 -0
- package/dist/server/flow-schema-contributions/actions/aclCheckRefresh.js +46 -0
- package/dist/server/flow-schema-contributions/actions/actionLinkageRules.d.ts +10 -0
- package/dist/server/flow-schema-contributions/actions/actionLinkageRules.js +48 -0
- package/dist/server/flow-schema-contributions/actions/confirm.d.ts +10 -0
- package/dist/server/flow-schema-contributions/actions/confirm.js +73 -0
- package/dist/server/flow-schema-contributions/actions/customVariable.d.ts +10 -0
- package/dist/server/flow-schema-contributions/actions/customVariable.js +76 -0
- package/dist/server/flow-schema-contributions/actions/dataScope.d.ts +10 -0
- package/dist/server/flow-schema-contributions/actions/dataScope.js +79 -0
- package/dist/server/flow-schema-contributions/actions/detailsFieldLinkageRules.d.ts +10 -0
- package/dist/server/flow-schema-contributions/actions/detailsFieldLinkageRules.js +62 -0
- package/dist/server/flow-schema-contributions/actions/fieldLinkageRules.d.ts +10 -0
- package/dist/server/flow-schema-contributions/actions/fieldLinkageRules.js +62 -0
- package/dist/server/flow-schema-contributions/actions/filterFormDefaultValues.d.ts +10 -0
- package/dist/server/flow-schema-contributions/actions/filterFormDefaultValues.js +80 -0
- package/dist/server/flow-schema-contributions/actions/formAssignRules.d.ts +10 -0
- package/dist/server/flow-schema-contributions/actions/formAssignRules.js +62 -0
- package/dist/server/flow-schema-contributions/actions/index.d.ts +31 -0
- package/dist/server/flow-schema-contributions/actions/index.js +117 -0
- package/dist/server/flow-schema-contributions/actions/layout.d.ts +10 -0
- package/dist/server/flow-schema-contributions/actions/layout.js +68 -0
- package/dist/server/flow-schema-contributions/actions/linkageRulesRefresh.d.ts +10 -0
- package/dist/server/flow-schema-contributions/actions/linkageRulesRefresh.js +50 -0
- package/dist/server/flow-schema-contributions/actions/navigateToURL.d.ts +10 -0
- package/dist/server/flow-schema-contributions/actions/navigateToURL.js +82 -0
- package/dist/server/flow-schema-contributions/actions/openView.d.ts +10 -0
- package/dist/server/flow-schema-contributions/actions/openView.js +68 -0
- package/dist/server/flow-schema-contributions/actions/refreshTargetBlocks.d.ts +10 -0
- package/dist/server/flow-schema-contributions/actions/refreshTargetBlocks.js +56 -0
- package/dist/server/flow-schema-contributions/actions/runjs.d.ts +10 -0
- package/dist/server/flow-schema-contributions/actions/runjs.js +55 -0
- package/dist/server/flow-schema-contributions/actions/setTargetDataScope.d.ts +10 -0
- package/dist/server/flow-schema-contributions/actions/setTargetDataScope.js +59 -0
- package/dist/server/flow-schema-contributions/actions/showMessage.d.ts +10 -0
- package/dist/server/flow-schema-contributions/actions/showMessage.js +69 -0
- package/dist/server/flow-schema-contributions/actions/showNotification.d.ts +10 -0
- package/dist/server/flow-schema-contributions/actions/showNotification.js +76 -0
- package/dist/server/flow-schema-contributions/actions/sortingRule.d.ts +10 -0
- package/dist/server/flow-schema-contributions/actions/sortingRule.js +67 -0
- package/dist/server/flow-schema-contributions/field-models.d.ts +12 -0
- package/dist/server/flow-schema-contributions/field-models.js +693 -0
- package/dist/server/flow-schema-contributions/index.d.ts +13 -0
- package/dist/server/flow-schema-contributions/index.js +64 -0
- package/dist/server/flow-schema-contributions/models/ActionModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/ActionModel.js +202 -0
- package/dist/server/flow-schema-contributions/models/AddChildActionModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/AddChildActionModel.js +47 -0
- package/dist/server/flow-schema-contributions/models/AddNewActionModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/AddNewActionModel.js +93 -0
- package/dist/server/flow-schema-contributions/models/AssignFormGridModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/AssignFormGridModel.js +82 -0
- package/dist/server/flow-schema-contributions/models/AssignFormItemModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/AssignFormItemModel.js +80 -0
- package/dist/server/flow-schema-contributions/models/AssignFormModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/AssignFormModel.js +122 -0
- package/dist/server/flow-schema-contributions/models/BasePageTabModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/BasePageTabModel.js +71 -0
- package/dist/server/flow-schema-contributions/models/BlockGridModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/BlockGridModel.js +81 -0
- package/dist/server/flow-schema-contributions/models/BulkDeleteActionModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/BulkDeleteActionModel.js +47 -0
- package/dist/server/flow-schema-contributions/models/ChildPageModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/ChildPageModel.js +106 -0
- package/dist/server/flow-schema-contributions/models/ChildPageTabModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/ChildPageTabModel.js +114 -0
- package/dist/server/flow-schema-contributions/models/CreateFormModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/CreateFormModel.js +54 -0
- package/dist/server/flow-schema-contributions/models/DeleteActionModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/DeleteActionModel.js +47 -0
- package/dist/server/flow-schema-contributions/models/DetailsBlockModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/DetailsBlockModel.js +179 -0
- package/dist/server/flow-schema-contributions/models/DetailsGridModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/DetailsGridModel.js +82 -0
- package/dist/server/flow-schema-contributions/models/DetailsItemModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/DetailsItemModel.js +77 -0
- package/dist/server/flow-schema-contributions/models/EditActionModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/EditActionModel.js +93 -0
- package/dist/server/flow-schema-contributions/models/EditFormModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/EditFormModel.js +103 -0
- package/dist/server/flow-schema-contributions/models/ExpandCollapseActionModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/ExpandCollapseActionModel.js +47 -0
- package/dist/server/flow-schema-contributions/models/FilterActionModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/FilterActionModel.js +57 -0
- package/dist/server/flow-schema-contributions/models/FilterFormBlockModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/FilterFormBlockModel.js +155 -0
- package/dist/server/flow-schema-contributions/models/FilterFormCollapseActionModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/FilterFormCollapseActionModel.js +85 -0
- package/dist/server/flow-schema-contributions/models/FilterFormCustomFieldModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/FilterFormCustomFieldModel.js +89 -0
- package/dist/server/flow-schema-contributions/models/FilterFormGridModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/FilterFormGridModel.js +82 -0
- package/dist/server/flow-schema-contributions/models/FilterFormItemModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/FilterFormItemModel.js +77 -0
- package/dist/server/flow-schema-contributions/models/FilterFormJSActionModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/FilterFormJSActionModel.js +108 -0
- package/dist/server/flow-schema-contributions/models/FilterFormResetActionModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/FilterFormResetActionModel.js +87 -0
- package/dist/server/flow-schema-contributions/models/FilterFormSubmitActionModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/FilterFormSubmitActionModel.js +87 -0
- package/dist/server/flow-schema-contributions/models/FormAssociationItemModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/FormAssociationItemModel.js +78 -0
- package/dist/server/flow-schema-contributions/models/FormBlockModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/FormBlockModel.js +45 -0
- package/dist/server/flow-schema-contributions/models/FormGridModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/FormGridModel.js +67 -0
- package/dist/server/flow-schema-contributions/models/FormItemModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/FormItemModel.js +77 -0
- package/dist/server/flow-schema-contributions/models/FormSubmitActionModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/FormSubmitActionModel.js +87 -0
- package/dist/server/flow-schema-contributions/models/JSActionModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/JSActionModel.js +65 -0
- package/dist/server/flow-schema-contributions/models/JSBlockModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/JSBlockModel.js +90 -0
- package/dist/server/flow-schema-contributions/models/JSCollectionActionModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/JSCollectionActionModel.js +47 -0
- package/dist/server/flow-schema-contributions/models/JSColumnModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/JSColumnModel.js +100 -0
- package/dist/server/flow-schema-contributions/models/JSFormActionModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/JSFormActionModel.js +47 -0
- package/dist/server/flow-schema-contributions/models/JSItemModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/JSItemModel.js +87 -0
- package/dist/server/flow-schema-contributions/models/JSRecordActionModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/JSRecordActionModel.js +47 -0
- package/dist/server/flow-schema-contributions/models/LinkActionModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/LinkActionModel.js +47 -0
- package/dist/server/flow-schema-contributions/models/PageModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/PageModel.js +159 -0
- package/dist/server/flow-schema-contributions/models/PageTabModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/PageTabModel.js +69 -0
- package/dist/server/flow-schema-contributions/models/PopupActionModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/PopupActionModel.js +92 -0
- package/dist/server/flow-schema-contributions/models/PopupCollectionActionModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/PopupCollectionActionModel.js +119 -0
- package/dist/server/flow-schema-contributions/models/RefreshActionModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/RefreshActionModel.js +47 -0
- package/dist/server/flow-schema-contributions/models/RootPageModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/RootPageModel.js +124 -0
- package/dist/server/flow-schema-contributions/models/RootPageTabModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/RootPageTabModel.js +69 -0
- package/dist/server/flow-schema-contributions/models/RouteModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/RouteModel.js +121 -0
- package/dist/server/flow-schema-contributions/models/TableActionsColumnModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/TableActionsColumnModel.js +93 -0
- package/dist/server/flow-schema-contributions/models/TableBlockModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/TableBlockModel.js +254 -0
- package/dist/server/flow-schema-contributions/models/TableColumnModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/TableColumnModel.js +77 -0
- package/dist/server/flow-schema-contributions/models/TableCustomColumnModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/TableCustomColumnModel.js +66 -0
- package/dist/server/flow-schema-contributions/models/UpdateRecordActionModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/UpdateRecordActionModel.js +173 -0
- package/dist/server/flow-schema-contributions/models/ViewActionModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/ViewActionModel.js +123 -0
- package/dist/server/flow-schema-contributions/models/index.d.ts +66 -0
- package/dist/server/flow-schema-contributions/models/index.js +257 -0
- package/dist/server/flow-schema-contributions/shared.d.ts +501 -0
- package/dist/server/flow-schema-contributions/shared.js +1649 -0
- package/dist/server/flow-schema-service.d.ts +87 -0
- package/dist/server/flow-schema-service.js +963 -0
- package/dist/server/index.d.ts +1 -0
- package/dist/server/index.js +4 -1
- package/dist/server/plugin.d.ts +2 -0
- package/dist/server/plugin.js +6 -2
- package/dist/server/repository.d.ts +67 -9
- package/dist/server/repository.js +417 -106
- package/dist/server/server.d.ts +7 -0
- package/dist/server/server.js +23 -53
- package/dist/swagger/index.d.ts +1164 -0
- package/dist/swagger/index.js +732 -0
- package/package.json +4 -2
- /package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/getContextApis.d.ts +0 -0
- /package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/getContextApis.js +0 -0
- /package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/getContextEnvs.d.ts +0 -0
- /package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/getContextEnvs.js +0 -0
- /package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/getContextVars.d.ts +0 -0
- /package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/getContextVars.js +0 -0
- /package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/lintAndTestJS.d.ts +0 -0
- /package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/lintAndTestJS.js +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
declare const _default: import("@nocobase/ai").AIEmployeeOptions;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
+
var __export = (target, all) => {
|
|
15
|
+
for (var name in all)
|
|
16
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
+
for (let key of __getOwnPropNames(from))
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
+
}
|
|
24
|
+
return to;
|
|
25
|
+
};
|
|
26
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
+
var nathan_exports = {};
|
|
28
|
+
__export(nathan_exports, {
|
|
29
|
+
default: () => nathan_default
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(nathan_exports);
|
|
32
|
+
var import_ai = require("@nocobase/ai");
|
|
33
|
+
var nathan_default = (0, import_ai.defineAIEmployee)({
|
|
34
|
+
username: "nathan",
|
|
35
|
+
description: "AI employee for coding",
|
|
36
|
+
avatar: "nocobase-002-male",
|
|
37
|
+
nickname: "Nathan",
|
|
38
|
+
position: "Frontend code engineer",
|
|
39
|
+
bio: "An frontend engineer specializing in JavaScript, HTML, and CSS.",
|
|
40
|
+
greeting: "Hello, I\u2019m Nathan, your frontend code engineer. I\u2019ll generate high-quality JavaScript / HTML / CSS code for you. What would you like me to build today?",
|
|
41
|
+
systemPrompt: `You are an AI coding assistant for NocoBase RunJS.
|
|
42
|
+
|
|
43
|
+
RunJS is used in:
|
|
44
|
+
|
|
45
|
+
- JS Block
|
|
46
|
+
- JS Field
|
|
47
|
+
- JS Item
|
|
48
|
+
- JS Action
|
|
49
|
+
- Event Flow
|
|
50
|
+
- Linkage Rules
|
|
51
|
+
|
|
52
|
+
Runtime:
|
|
53
|
+
|
|
54
|
+
- Sandboxed
|
|
55
|
+
- Access via \`ctx\`
|
|
56
|
+
- Supports top-level await (PREFER whenever possible)
|
|
57
|
+
- JSX \u2192 ctx.libs.React.createElement
|
|
58
|
+
- Dynamic ESM via ctx.importAsync()
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
# Core Rule (Strict)
|
|
62
|
+
|
|
63
|
+
Never guess.
|
|
64
|
+
|
|
65
|
+
You must NOT assume:
|
|
66
|
+
|
|
67
|
+
- ctx APIs
|
|
68
|
+
- context variables
|
|
69
|
+
- collections / fields / schema
|
|
70
|
+
- runtime behavior
|
|
71
|
+
- React / Antd exposure
|
|
72
|
+
- browser globals (window, document, location, history, navigator)
|
|
73
|
+
|
|
74
|
+
All of the above MUST be verified via tools or NocoBase docs.
|
|
75
|
+
|
|
76
|
+
If not confirmed \u2192 ask user.
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
# Mandatory Workflow (Every Task)
|
|
80
|
+
|
|
81
|
+
Follow this exact order:
|
|
82
|
+
|
|
83
|
+
1. Runtime
|
|
84
|
+
- getContextEnvs
|
|
85
|
+
- getContextVars
|
|
86
|
+
- getContextApis
|
|
87
|
+
|
|
88
|
+
2. Docs
|
|
89
|
+
- searchDocs
|
|
90
|
+
- readDocEntry
|
|
91
|
+
|
|
92
|
+
3. Data (if involved)
|
|
93
|
+
- getDatasources
|
|
94
|
+
- getCollectionNames
|
|
95
|
+
- getCollectionMetadata
|
|
96
|
+
- searchFieldMetadata
|
|
97
|
+
|
|
98
|
+
4. If unclear
|
|
99
|
+
- suggestions / ask user
|
|
100
|
+
|
|
101
|
+
5. Write code
|
|
102
|
+
|
|
103
|
+
6. Validate (REQUIRED)
|
|
104
|
+
- lintAndTestJS must pass before output
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
# Coding Rules
|
|
108
|
+
|
|
109
|
+
- Single file
|
|
110
|
+
- Prefer top-level await
|
|
111
|
+
- No import / require
|
|
112
|
+
- Libraries ONLY via ctx.importAsync()
|
|
113
|
+
- HTTP ONLY via ctx.request()
|
|
114
|
+
- Only call ctx.render when UI is required
|
|
115
|
+
- JSX uses ctx.libs.React by default
|
|
116
|
+
- When rendering UI, PREFER Ant Design components via ctx.libs.antd to match NocoBase style
|
|
117
|
+
- Inline styles only
|
|
118
|
+
|
|
119
|
+
Forbidden:
|
|
120
|
+
|
|
121
|
+
- fetch
|
|
122
|
+
- XMLHttpRequest
|
|
123
|
+
- localStorage
|
|
124
|
+
- eval
|
|
125
|
+
- new Function
|
|
126
|
+
- Direct document / window access unless explicitly documented
|
|
127
|
+
|
|
128
|
+
# i18n
|
|
129
|
+
|
|
130
|
+
All user-facing strings MUST use: \`ctx.t(...)\`
|
|
131
|
+
|
|
132
|
+
# Security
|
|
133
|
+
|
|
134
|
+
Never inject unsanitized user input into DOM.
|
|
135
|
+
|
|
136
|
+
# Output Rules
|
|
137
|
+
|
|
138
|
+
- Markdown
|
|
139
|
+
- Exactly ONE complete code block at end
|
|
140
|
+
- No partial snippets
|
|
141
|
+
- Brief explanation after code
|
|
142
|
+
|
|
143
|
+
# Standard
|
|
144
|
+
|
|
145
|
+
Senior NocoBase engineer mindset:
|
|
146
|
+
Tool-driven, deterministic, production-minded.
|
|
147
|
+
|
|
148
|
+
If unsure: search.
|
|
149
|
+
If still unsure: ask.
|
|
150
|
+
Never guess.
|
|
151
|
+
`
|
|
152
|
+
});
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: frontend-developer
|
|
3
|
+
description: Assists with writing, validating, and testing JavaScript code snippets for NocoBase workflows and frontend blocks.
|
|
4
|
+
introduction:
|
|
5
|
+
title: '{{t("ai.skills.frontendDeveloper.title")}}'
|
|
6
|
+
about: '{{t("ai.skills.frontendDeveloper.about")}}'
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
You are a professional frontend developer assistant for NocoBase.
|
|
10
|
+
|
|
11
|
+
You help users write, validate, and test JavaScript code for workflows, including:
|
|
12
|
+
- Workflow nodes (e.g., Custom JS, Calculation, Conditional branches)
|
|
13
|
+
- Frontend blocks and pages
|
|
14
|
+
|
|
15
|
+
# Primary Workflow
|
|
16
|
+
|
|
17
|
+
When helping users with JavaScript code, follow this process:
|
|
18
|
+
|
|
19
|
+
1. **Understand the Context**
|
|
20
|
+
- Use `getContextVars` to understand what variables are available in the current context
|
|
21
|
+
- Use `getContextApis` to see what API methods can be used
|
|
22
|
+
- Use `getContextEnvs` to understand the current page/block/flow model metadata
|
|
23
|
+
|
|
24
|
+
2. **Write the Code**
|
|
25
|
+
- Write clean, correct JavaScript/JSX code based on the user's requirements
|
|
26
|
+
- Ensure the code follows best practices for NocoBase workflows
|
|
27
|
+
|
|
28
|
+
3. **Validate the Code**
|
|
29
|
+
- Use `lintAndTestJS` to lint and test the code before final output
|
|
30
|
+
- Fix any errors reported by the linting tool
|
|
31
|
+
- Do not output final code unless it passes validation
|
|
32
|
+
|
|
33
|
+
4. **Submit the Code**
|
|
34
|
+
- Once validated, provide the final code to the user
|
|
35
|
+
- Explain how the code works and what it does
|
|
36
|
+
|
|
37
|
+
# Available Tools
|
|
38
|
+
|
|
39
|
+
- `getContextVars`: Retrieves available variables from the current context. Variables are references only — you must explicitly resolve values via `await ctx.getVar(path)`. Supports dot-notation for progressive drilling (e.g., `ctx.popup.record.id`).
|
|
40
|
+
- `getContextApis`: Returns available API methods from the context that can be used in the code.
|
|
41
|
+
- `getContextEnvs`: Returns metadata about the current page, block, or flow model.
|
|
42
|
+
- `lintAndTestJS`: Lints, performs sandbox checks, and trial-runs JavaScript/JSX code. Returns success/failure with diagnostics. **Always call this tool before outputting final code to verify it works.**
|
|
43
|
+
|
|
44
|
+
# Code Writing Guidelines
|
|
45
|
+
|
|
46
|
+
## Variable Access
|
|
47
|
+
|
|
48
|
+
- Always use `await ctx.getVar(path)` to get actual values
|
|
49
|
+
- Use dot-notation for nested paths: `await ctx.getVar('ctx.popup.record.id')`
|
|
50
|
+
- Prefer specific paths instead of fetching entire objects when possible
|
|
51
|
+
|
|
52
|
+
## Return Values
|
|
53
|
+
|
|
54
|
+
- For Custom JS nodes, use `return` to output data to the next node
|
|
55
|
+
- Return values are passed as input to subsequent nodes in the workflow
|
|
56
|
+
- Example: `return { result: calculatedValue };`
|
|
57
|
+
|
|
58
|
+
## Error Handling
|
|
59
|
+
|
|
60
|
+
- Wrap code in try-catch blocks when appropriate
|
|
61
|
+
- Return error information in a consistent format
|
|
62
|
+
- Example: `return { error: 'Error message', details: ... };`
|
|
63
|
+
|
|
64
|
+
## Best Practices
|
|
65
|
+
|
|
66
|
+
- Keep code concise and readable
|
|
67
|
+
- Use meaningful variable names
|
|
68
|
+
- Add comments for complex logic
|
|
69
|
+
- Test code with the lint tool before final submission
|
package/dist/client/index.js
CHANGED
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@nocobase/client")):"function"==typeof define&&define.amd?define("@nocobase/plugin-flow-engine",["@nocobase/client"],e):"object"==typeof exports?exports["@nocobase/plugin-flow-engine"]=e(require("@nocobase/client")):t["@nocobase/plugin-flow-engine"]=e(t["@nocobase/client"])}(self,function(t){return function(){"use strict";var e
|
|
10
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@nocobase/client")):"function"==typeof define&&define.amd?define("@nocobase/plugin-flow-engine",["@nocobase/client"],e):"object"==typeof exports?exports["@nocobase/plugin-flow-engine"]=e(require("@nocobase/client")):t["@nocobase/plugin-flow-engine"]=e(t["@nocobase/client"])}(self,function(t){return function(){"use strict";var e={342:function(e){e.exports=t}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.g.importScripts&&(o=r.g.location+"");var o,i=r.g.document;if(!o&&i&&(i.currentScript&&"SCRIPT"===i.currentScript.tagName.toUpperCase()&&(o=i.currentScript.src),!o)){var u=i.getElementsByTagName("script");if(u.length)for(var c=u.length-1;c>-1&&(!o||!/^http(s?):/.test(o));)o=u[c--].src}if(!o)throw Error("Automatic publicPath is not supported in this browser");r.p=o.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/");var a={},l=window.__nocobase_public_path__||"";if(!l&&window.location&&window.location.pathname){var f=window.location.pathname||"/",p=f.indexOf("/v2/");l=p>=0?f.slice(0,p+1):"/"}return l&&(l=l.replace(/\/v2\/?$/,"/")),l||(l="/"),"/"!==l.charAt(l.length-1)&&(l+="/"),r.p=l+"static/plugins/@nocobase/plugin-flow-engine/dist/client/",!function(){r.r(a),r.d(a,{PluginFlowEngineClient:function(){return p}});var t=r(342);function e(t,e,n,r,o,i,u){try{var c=t[i](u),a=c.value}catch(t){n(t);return}c.done?e(a):Promise.resolve(a).then(r,o)}function n(t){return function(){var n=this,r=arguments;return new Promise(function(o,i){var u=t.apply(n,r);function c(t){e(u,o,i,c,a,"next",t)}function a(t){e(u,o,i,c,a,"throw",t)}c(void 0)})}}function o(t,e,n){return(o=l()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&u(o,n.prototype),o}).apply(null,arguments)}function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e="function"==typeof Map?new Map:void 0;return(c=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return o(t,arguments,i(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),u(n,t)})(t)}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function f(t,e){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),c=Object.defineProperty;return c(u,"next",{value:a(0)}),c(u,"throw",{value:a(1)}),c(u,"return",{value:a(2)}),"function"==typeof Symbol&&c(u,Symbol.iterator,{value:function(){return this}}),u;function a(c){return function(a){var l=[c,a];if(n)throw TypeError("Generator is already executing.");for(;u&&(u=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=e.call(t,i)}catch(t){l=[6,t],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}var p=function(t){var e;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");function r(){var t,e;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,e=arguments,t=i(t),function(t,e){var n;if(e&&("object"==((n=e)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof e))return e;if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this,l()?Reflect.construct(t,e||[],i(this).constructor):t.apply(this,e))}return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),t&&u(r,t),e=[{key:"afterAdd",value:function(){return n(function(){return f(this,function(t){return[2]})})()}},{key:"beforeLoad",value:function(){return n(function(){return f(this,function(t){return[2]})})()}},{key:"load",value:function(){return n(function(){return f(this,function(t){return[2]})})()}}],function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(r.prototype,e),r}(c(t.Plugin));a.default=p}(),a}()});
|
package/dist/externalVersion.js
CHANGED
|
@@ -8,15 +8,17 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
-
"@nocobase/client": "2.1.0-alpha.
|
|
11
|
+
"@nocobase/client": "2.1.0-alpha.11",
|
|
12
12
|
"lodash": "4.17.21",
|
|
13
|
-
"@nocobase/
|
|
14
|
-
"@nocobase/
|
|
15
|
-
"@nocobase/
|
|
16
|
-
"@nocobase/
|
|
17
|
-
"@nocobase/
|
|
18
|
-
"@nocobase/cache": "2.1.0-alpha.
|
|
19
|
-
"
|
|
20
|
-
"@nocobase/
|
|
21
|
-
"@nocobase/
|
|
13
|
+
"@nocobase/utils": "2.1.0-alpha.11",
|
|
14
|
+
"@nocobase/flow-engine": "2.1.0-alpha.11",
|
|
15
|
+
"@nocobase/database": "2.1.0-alpha.11",
|
|
16
|
+
"@nocobase/data-source-manager": "2.1.0-alpha.11",
|
|
17
|
+
"@nocobase/resourcer": "2.1.0-alpha.11",
|
|
18
|
+
"@nocobase/cache": "2.1.0-alpha.11",
|
|
19
|
+
"sequelize": "6.35.2",
|
|
20
|
+
"@nocobase/plugin-localization": "2.1.0-alpha.11",
|
|
21
|
+
"@nocobase/server": "2.1.0-alpha.11",
|
|
22
|
+
"@nocobase/actions": "2.1.0-alpha.11",
|
|
23
|
+
"@nocobase/ai": "2.1.0-alpha.11"
|
|
22
24
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const Ajv = require("ajv")
|
|
2
|
+
const ajv = new Ajv({allErrors: true})
|
|
3
|
+
|
|
4
|
+
const schema = {
|
|
5
|
+
type: "object",
|
|
6
|
+
properties: {
|
|
7
|
+
foo: {type: "string"},
|
|
8
|
+
bar: {type: "number", maximum: 3},
|
|
9
|
+
},
|
|
10
|
+
required: ["foo", "bar"],
|
|
11
|
+
additionalProperties: false,
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const validate = ajv.compile(schema)
|
|
15
|
+
|
|
16
|
+
test({foo: "abc", bar: 2})
|
|
17
|
+
test({foo: 2, bar: 4})
|
|
18
|
+
|
|
19
|
+
function test(data) {
|
|
20
|
+
const valid = validate(data)
|
|
21
|
+
if (valid) console.log("Valid!")
|
|
22
|
+
else console.log("Invalid: " + ajv.errorsText(validate.errors))
|
|
23
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2015-2021 Evgeny Poberezkin
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { AnySchemaObject } from "./types";
|
|
2
|
+
import AjvCore, { Options } from "./core";
|
|
3
|
+
export declare class Ajv2019 extends AjvCore {
|
|
4
|
+
constructor(opts?: Options);
|
|
5
|
+
_addVocabularies(): void;
|
|
6
|
+
_addDefaultMetaSchema(): void;
|
|
7
|
+
defaultMeta(): string | AnySchemaObject | undefined;
|
|
8
|
+
}
|
|
9
|
+
export default Ajv2019;
|
|
10
|
+
export { Format, FormatDefinition, AsyncFormatDefinition, KeywordDefinition, KeywordErrorDefinition, CodeKeywordDefinition, MacroKeywordDefinition, FuncKeywordDefinition, Vocabulary, Schema, SchemaObject, AnySchemaObject, AsyncSchema, AnySchema, ValidateFunction, AsyncValidateFunction, ErrorObject, ErrorNoParams, } from "./types";
|
|
11
|
+
export { Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions } from "./core";
|
|
12
|
+
export { SchemaCxt, SchemaObjCxt } from "./compile";
|
|
13
|
+
export { KeywordCxt } from "./compile/validate";
|
|
14
|
+
export { DefinedError } from "./vocabularies/errors";
|
|
15
|
+
export { JSONType } from "./compile/rules";
|
|
16
|
+
export { JSONSchemaType } from "./types/json-schema";
|
|
17
|
+
export { _, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions } from "./compile/codegen";
|
|
18
|
+
export { default as ValidationError } from "./runtime/validation_error";
|
|
19
|
+
export { default as MissingRefError } from "./compile/ref_error";
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv2019 = void 0;
|
|
4
|
+
const core_1 = require("./core");
|
|
5
|
+
const draft7_1 = require("./vocabularies/draft7");
|
|
6
|
+
const dynamic_1 = require("./vocabularies/dynamic");
|
|
7
|
+
const next_1 = require("./vocabularies/next");
|
|
8
|
+
const unevaluated_1 = require("./vocabularies/unevaluated");
|
|
9
|
+
const discriminator_1 = require("./vocabularies/discriminator");
|
|
10
|
+
const json_schema_2019_09_1 = require("./refs/json-schema-2019-09");
|
|
11
|
+
const META_SCHEMA_ID = "https://json-schema.org/draft/2019-09/schema";
|
|
12
|
+
class Ajv2019 extends core_1.default {
|
|
13
|
+
constructor(opts = {}) {
|
|
14
|
+
super({
|
|
15
|
+
...opts,
|
|
16
|
+
dynamicRef: true,
|
|
17
|
+
next: true,
|
|
18
|
+
unevaluated: true,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
_addVocabularies() {
|
|
22
|
+
super._addVocabularies();
|
|
23
|
+
this.addVocabulary(dynamic_1.default);
|
|
24
|
+
draft7_1.default.forEach((v) => this.addVocabulary(v));
|
|
25
|
+
this.addVocabulary(next_1.default);
|
|
26
|
+
this.addVocabulary(unevaluated_1.default);
|
|
27
|
+
if (this.opts.discriminator)
|
|
28
|
+
this.addKeyword(discriminator_1.default);
|
|
29
|
+
}
|
|
30
|
+
_addDefaultMetaSchema() {
|
|
31
|
+
super._addDefaultMetaSchema();
|
|
32
|
+
const { $data, meta } = this.opts;
|
|
33
|
+
if (!meta)
|
|
34
|
+
return;
|
|
35
|
+
json_schema_2019_09_1.default.call(this, $data);
|
|
36
|
+
this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID;
|
|
37
|
+
}
|
|
38
|
+
defaultMeta() {
|
|
39
|
+
return (this.opts.defaultMeta =
|
|
40
|
+
super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined));
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.Ajv2019 = Ajv2019;
|
|
44
|
+
module.exports = exports = Ajv2019;
|
|
45
|
+
module.exports.Ajv2019 = Ajv2019;
|
|
46
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
|
+
exports.default = Ajv2019;
|
|
48
|
+
var validate_1 = require("./compile/validate");
|
|
49
|
+
Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function () { return validate_1.KeywordCxt; } });
|
|
50
|
+
var codegen_1 = require("./compile/codegen");
|
|
51
|
+
Object.defineProperty(exports, "_", { enumerable: true, get: function () { return codegen_1._; } });
|
|
52
|
+
Object.defineProperty(exports, "str", { enumerable: true, get: function () { return codegen_1.str; } });
|
|
53
|
+
Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return codegen_1.stringify; } });
|
|
54
|
+
Object.defineProperty(exports, "nil", { enumerable: true, get: function () { return codegen_1.nil; } });
|
|
55
|
+
Object.defineProperty(exports, "Name", { enumerable: true, get: function () { return codegen_1.Name; } });
|
|
56
|
+
Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function () { return codegen_1.CodeGen; } });
|
|
57
|
+
var validation_error_1 = require("./runtime/validation_error");
|
|
58
|
+
Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function () { return validation_error_1.default; } });
|
|
59
|
+
var ref_error_1 = require("./compile/ref_error");
|
|
60
|
+
Object.defineProperty(exports, "MissingRefError", { enumerable: true, get: function () { return ref_error_1.default; } });
|
|
61
|
+
//# sourceMappingURL=2019.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { AnySchemaObject } from "./types";
|
|
2
|
+
import AjvCore, { Options } from "./core";
|
|
3
|
+
export declare class Ajv2020 extends AjvCore {
|
|
4
|
+
constructor(opts?: Options);
|
|
5
|
+
_addVocabularies(): void;
|
|
6
|
+
_addDefaultMetaSchema(): void;
|
|
7
|
+
defaultMeta(): string | AnySchemaObject | undefined;
|
|
8
|
+
}
|
|
9
|
+
export default Ajv2020;
|
|
10
|
+
export { Format, FormatDefinition, AsyncFormatDefinition, KeywordDefinition, KeywordErrorDefinition, CodeKeywordDefinition, MacroKeywordDefinition, FuncKeywordDefinition, Vocabulary, Schema, SchemaObject, AnySchemaObject, AsyncSchema, AnySchema, ValidateFunction, AsyncValidateFunction, ErrorObject, ErrorNoParams, } from "./types";
|
|
11
|
+
export { Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions } from "./core";
|
|
12
|
+
export { SchemaCxt, SchemaObjCxt } from "./compile";
|
|
13
|
+
export { KeywordCxt } from "./compile/validate";
|
|
14
|
+
export { DefinedError } from "./vocabularies/errors";
|
|
15
|
+
export { JSONType } from "./compile/rules";
|
|
16
|
+
export { JSONSchemaType } from "./types/json-schema";
|
|
17
|
+
export { _, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions } from "./compile/codegen";
|
|
18
|
+
export { default as ValidationError } from "./runtime/validation_error";
|
|
19
|
+
export { default as MissingRefError } from "./compile/ref_error";
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv2020 = void 0;
|
|
4
|
+
const core_1 = require("./core");
|
|
5
|
+
const draft2020_1 = require("./vocabularies/draft2020");
|
|
6
|
+
const discriminator_1 = require("./vocabularies/discriminator");
|
|
7
|
+
const json_schema_2020_12_1 = require("./refs/json-schema-2020-12");
|
|
8
|
+
const META_SCHEMA_ID = "https://json-schema.org/draft/2020-12/schema";
|
|
9
|
+
class Ajv2020 extends core_1.default {
|
|
10
|
+
constructor(opts = {}) {
|
|
11
|
+
super({
|
|
12
|
+
...opts,
|
|
13
|
+
dynamicRef: true,
|
|
14
|
+
next: true,
|
|
15
|
+
unevaluated: true,
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
_addVocabularies() {
|
|
19
|
+
super._addVocabularies();
|
|
20
|
+
draft2020_1.default.forEach((v) => this.addVocabulary(v));
|
|
21
|
+
if (this.opts.discriminator)
|
|
22
|
+
this.addKeyword(discriminator_1.default);
|
|
23
|
+
}
|
|
24
|
+
_addDefaultMetaSchema() {
|
|
25
|
+
super._addDefaultMetaSchema();
|
|
26
|
+
const { $data, meta } = this.opts;
|
|
27
|
+
if (!meta)
|
|
28
|
+
return;
|
|
29
|
+
json_schema_2020_12_1.default.call(this, $data);
|
|
30
|
+
this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID;
|
|
31
|
+
}
|
|
32
|
+
defaultMeta() {
|
|
33
|
+
return (this.opts.defaultMeta =
|
|
34
|
+
super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined));
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.Ajv2020 = Ajv2020;
|
|
38
|
+
module.exports = exports = Ajv2020;
|
|
39
|
+
module.exports.Ajv2020 = Ajv2020;
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
exports.default = Ajv2020;
|
|
42
|
+
var validate_1 = require("./compile/validate");
|
|
43
|
+
Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function () { return validate_1.KeywordCxt; } });
|
|
44
|
+
var codegen_1 = require("./compile/codegen");
|
|
45
|
+
Object.defineProperty(exports, "_", { enumerable: true, get: function () { return codegen_1._; } });
|
|
46
|
+
Object.defineProperty(exports, "str", { enumerable: true, get: function () { return codegen_1.str; } });
|
|
47
|
+
Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return codegen_1.stringify; } });
|
|
48
|
+
Object.defineProperty(exports, "nil", { enumerable: true, get: function () { return codegen_1.nil; } });
|
|
49
|
+
Object.defineProperty(exports, "Name", { enumerable: true, get: function () { return codegen_1.Name; } });
|
|
50
|
+
Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function () { return codegen_1.CodeGen; } });
|
|
51
|
+
var validation_error_1 = require("./runtime/validation_error");
|
|
52
|
+
Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function () { return validation_error_1.default; } });
|
|
53
|
+
var ref_error_1 = require("./compile/ref_error");
|
|
54
|
+
Object.defineProperty(exports, "MissingRefError", { enumerable: true, get: function () { return ref_error_1.default; } });
|
|
55
|
+
//# sourceMappingURL=2020.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { AnySchemaObject } from "./types";
|
|
2
|
+
import AjvCore from "./core";
|
|
3
|
+
export declare class Ajv extends AjvCore {
|
|
4
|
+
_addVocabularies(): void;
|
|
5
|
+
_addDefaultMetaSchema(): void;
|
|
6
|
+
defaultMeta(): string | AnySchemaObject | undefined;
|
|
7
|
+
}
|
|
8
|
+
export default Ajv;
|
|
9
|
+
export { Format, FormatDefinition, AsyncFormatDefinition, KeywordDefinition, KeywordErrorDefinition, CodeKeywordDefinition, MacroKeywordDefinition, FuncKeywordDefinition, Vocabulary, Schema, SchemaObject, AnySchemaObject, AsyncSchema, AnySchema, ValidateFunction, AsyncValidateFunction, SchemaValidateFunction, ErrorObject, ErrorNoParams, } from "./types";
|
|
10
|
+
export { Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions } from "./core";
|
|
11
|
+
export { SchemaCxt, SchemaObjCxt } from "./compile";
|
|
12
|
+
export { KeywordCxt } from "./compile/validate";
|
|
13
|
+
export { DefinedError } from "./vocabularies/errors";
|
|
14
|
+
export { JSONType } from "./compile/rules";
|
|
15
|
+
export { JSONSchemaType } from "./types/json-schema";
|
|
16
|
+
export { _, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions } from "./compile/codegen";
|
|
17
|
+
export { default as ValidationError } from "./runtime/validation_error";
|
|
18
|
+
export { default as MissingRefError } from "./compile/ref_error";
|