@takeshape/schema 11.45.5 → 11.47.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/src/agents.js +6 -6
- package/dist/cjs/src/api-version.js +1 -1
- package/dist/cjs/src/content-schema-transform.js +12 -12
- package/dist/cjs/src/create-input-schema.js +1 -1
- package/dist/cjs/src/enum.js +1 -1
- package/dist/cjs/src/flatten-templates.js +4 -4
- package/dist/cjs/src/get-is-leaf.js +1 -1
- package/dist/cjs/src/interfaces.js +11 -9
- package/dist/cjs/src/layers/layers.js +11 -5
- package/dist/cjs/src/layers/refs.js +3 -3
- package/dist/cjs/src/layers/type-utils.js +1 -1
- package/dist/cjs/src/migration/index.js +3 -1
- package/dist/cjs/src/migration/to/v3.0.0.js +20 -8
- package/dist/cjs/src/migration/to/v3.1.0.js +6 -4
- package/dist/cjs/src/migration/to/v3.10.0.js +1 -1
- package/dist/cjs/src/migration/to/v3.13.0.js +1 -1
- package/dist/cjs/src/migration/to/v3.17.0.js +1 -1
- package/dist/cjs/src/migration/to/v3.18.0.js +4 -4
- package/dist/cjs/src/migration/to/v3.18.1.js +1 -1
- package/dist/cjs/src/migration/to/v3.18.2.js +1 -1
- package/dist/cjs/src/migration/to/v3.20.0.js +5 -2
- package/dist/cjs/src/migration/to/v3.22.0.js +1 -1
- package/dist/cjs/src/migration/to/v3.31.0.js +2 -2
- package/dist/cjs/src/migration/to/v3.32.0.js +3 -1
- package/dist/cjs/src/migration/to/v3.34.0.js +6 -9
- package/dist/cjs/src/migration/to/v3.36.0.js +1 -1
- package/dist/cjs/src/migration/to/v3.39.0.js +8 -8
- package/dist/cjs/src/migration/to/v3.40.0.js +1 -1
- package/dist/cjs/src/migration/to/v3.46.0.js +1 -1
- package/dist/cjs/src/migration/to/v3.51.0.js +12 -0
- package/dist/cjs/src/migration/to/v3.9.0.js +3 -3
- package/dist/cjs/src/models/project-schema.js +4 -4
- package/dist/cjs/src/models/shape.js +2 -2
- package/dist/cjs/src/project-schema/index.js +4 -2
- package/dist/cjs/src/project-schema/migrate.js +3 -1
- package/dist/cjs/src/project-schema/v3.51.0.js +8 -0
- package/dist/cjs/src/refs.js +28 -18
- package/dist/cjs/src/relationships.js +25 -20
- package/dist/cjs/src/runtime-schema.js +16 -9
- package/dist/cjs/src/schema-transform.js +3 -3
- package/dist/cjs/src/schema-util.js +38 -30
- package/dist/cjs/src/schemas/auth-schemas.json +18 -78
- package/dist/cjs/src/schemas/index.js +7 -5
- package/dist/cjs/src/schemas/project-schema/experimental.json +7 -20
- package/dist/cjs/src/schemas/project-schema/latest.json +166 -566
- package/dist/cjs/src/schemas/project-schema/meta-schema-v1.0.0.json +3 -17
- package/dist/cjs/src/schemas/project-schema/meta-schema-v3.0.0.json +4 -4
- package/dist/cjs/src/schemas/project-schema/meta-schema-v3.1.0.json +4 -4
- package/dist/cjs/src/schemas/project-schema/meta-schema-v3.2.0.json +5 -5
- package/dist/cjs/src/schemas/project-schema/meta-schema-v3.3.0.json +5 -5
- package/dist/cjs/src/schemas/project-schema/meta-schema-v3.4.0.json +11 -43
- package/dist/cjs/src/schemas/project-schema/meta-schema-v3.5.0.json +7 -7
- package/dist/cjs/src/schemas/project-schema/meta-schema-v3.5.1.json +8 -11
- package/dist/cjs/src/schemas/project-schema/meta-schema-v3.6.0.json +8 -11
- package/dist/cjs/src/schemas/project-schema/meta-schema-v3.7.0.json +11 -9
- package/dist/cjs/src/schemas/project-schema/meta-schema-v3.8.0.json +11 -9
- package/dist/cjs/src/schemas/project-schema/meta-schema-v3.9.0.json +24 -22
- package/dist/cjs/src/schemas/project-schema/v1.0.0.json +3 -3
- package/dist/cjs/src/schemas/project-schema/v3.0.0.json +1 -1
- package/dist/cjs/src/schemas/project-schema/v3.1.0.json +2 -2
- package/dist/cjs/src/schemas/project-schema/v3.10.0.json +32 -30
- package/dist/cjs/src/schemas/project-schema/v3.11.0.json +32 -30
- package/dist/cjs/src/schemas/project-schema/v3.12.0.json +33 -36
- package/dist/cjs/src/schemas/project-schema/v3.12.1.json +33 -36
- package/dist/cjs/src/schemas/project-schema/v3.12.2.json +2122 -2125
- package/dist/cjs/src/schemas/project-schema/v3.12.3.json +2175 -2178
- package/dist/cjs/src/schemas/project-schema/v3.13.0.json +32 -30
- package/dist/cjs/src/schemas/project-schema/v3.14.0.json +32 -30
- package/dist/cjs/src/schemas/project-schema/v3.15.0.json +40 -38
- package/dist/cjs/src/schemas/project-schema/v3.16.0.json +40 -38
- package/dist/cjs/src/schemas/project-schema/v3.17.0.json +47 -39
- package/dist/cjs/src/schemas/project-schema/v3.17.1.json +2204 -2196
- package/dist/cjs/src/schemas/project-schema/v3.18.0.json +40 -38
- package/dist/cjs/src/schemas/project-schema/v3.18.1.json +40 -38
- package/dist/cjs/src/schemas/project-schema/v3.18.2.json +40 -38
- package/dist/cjs/src/schemas/project-schema/v3.19.0.json +40 -38
- package/dist/cjs/src/schemas/project-schema/v3.2.0.json +1 -1
- package/dist/cjs/src/schemas/project-schema/v3.20.0.json +40 -38
- package/dist/cjs/src/schemas/project-schema/v3.21.0.json +41 -39
- package/dist/cjs/src/schemas/project-schema/v3.22.0.json +41 -39
- package/dist/cjs/src/schemas/project-schema/v3.23.0.json +43 -43
- package/dist/cjs/src/schemas/project-schema/v3.24.0.json +105 -458
- package/dist/cjs/src/schemas/project-schema/v3.25.0.json +105 -458
- package/dist/cjs/src/schemas/project-schema/v3.26.0.json +107 -466
- package/dist/cjs/src/schemas/project-schema/v3.27.0.json +107 -466
- package/dist/cjs/src/schemas/project-schema/v3.28.0.json +112 -471
- package/dist/cjs/src/schemas/project-schema/v3.29.0.json +112 -471
- package/dist/cjs/src/schemas/project-schema/v3.3.0.json +1 -1
- package/dist/cjs/src/schemas/project-schema/v3.30.0.json +112 -472
- package/dist/cjs/src/schemas/project-schema/v3.31.0.json +112 -486
- package/dist/cjs/src/schemas/project-schema/v3.32.0.json +113 -488
- package/dist/cjs/src/schemas/project-schema/v3.33.0.json +113 -488
- package/dist/cjs/src/schemas/project-schema/v3.34.0.json +113 -488
- package/dist/cjs/src/schemas/project-schema/v3.35.0.json +114 -491
- package/dist/cjs/src/schemas/project-schema/v3.36.0.json +114 -491
- package/dist/cjs/src/schemas/project-schema/v3.37.0.json +118 -511
- package/dist/cjs/src/schemas/project-schema/v3.38.0.json +118 -511
- package/dist/cjs/src/schemas/project-schema/v3.39.0.json +118 -511
- package/dist/cjs/src/schemas/project-schema/v3.4.0.json +1 -1
- package/dist/cjs/src/schemas/project-schema/v3.40.0.json +118 -512
- package/dist/cjs/src/schemas/project-schema/v3.41.0.json +118 -512
- package/dist/cjs/src/schemas/project-schema/v3.42.0.json +118 -512
- package/dist/cjs/src/schemas/project-schema/v3.43.0.json +118 -512
- package/dist/cjs/src/schemas/project-schema/v3.44.0.json +125 -540
- package/dist/cjs/src/schemas/project-schema/v3.45.0.json +128 -554
- package/dist/cjs/src/schemas/project-schema/v3.46.0.json +129 -560
- package/dist/cjs/src/schemas/project-schema/v3.47.0.json +131 -568
- package/dist/cjs/src/schemas/project-schema/v3.48.0.json +132 -572
- package/dist/cjs/src/schemas/project-schema/v3.49.0.json +132 -558
- package/dist/cjs/src/schemas/project-schema/v3.5.0.json +1 -1
- package/dist/cjs/src/schemas/project-schema/v3.5.1.json +1 -1
- package/dist/cjs/src/schemas/project-schema/v3.50.0.json +165 -565
- package/dist/cjs/src/schemas/project-schema/v3.51.0.json +3320 -0
- package/dist/cjs/src/schemas/project-schema/v3.6.0.json +1 -1
- package/dist/cjs/src/schemas/project-schema/v3.7.0.json +1 -1
- package/dist/cjs/src/schemas/project-schema/v3.8.0.json +1 -1
- package/dist/cjs/src/schemas/project-schema/v3.9.0.json +1 -1
- package/dist/cjs/src/schemas/project-schema/v4.0.0.json +31 -29
- package/dist/cjs/src/schemas/project-schema.json +3 -0
- package/dist/cjs/src/schemas/user-schema.json +2 -9
- package/dist/cjs/src/service-dependencies.js +15 -9
- package/dist/cjs/src/services/services.js +12 -11
- package/dist/cjs/src/services/util.js +4 -4
- package/dist/cjs/src/template-shapes/templates.js +18 -12
- package/dist/cjs/src/template-shapes/where.js +23 -14
- package/dist/cjs/src/types/utils.js +3 -3
- package/dist/cjs/src/unions.js +6 -8
- package/dist/cjs/src/util/api-indexing.js +4 -4
- package/dist/cjs/src/util/detect-cycles.js +2 -2
- package/dist/cjs/src/util/find-shape-at-path.js +1 -1
- package/dist/cjs/src/util/form-config.js +0 -1
- package/dist/cjs/src/util/get-conflicting-properties.js +1 -1
- package/dist/cjs/src/util/merge.js +22 -13
- package/dist/cjs/src/util/patch-schema.js +2 -2
- package/dist/cjs/src/util/shapes.js +2 -2
- package/dist/cjs/src/validate.js +64 -47
- package/dist/cjs/src/workflows.js +4 -4
- package/dist/esm/src/agents.js +6 -6
- package/dist/esm/src/api-version.js +1 -1
- package/dist/esm/src/content-schema-transform.js +12 -12
- package/dist/esm/src/create-input-schema.js +1 -1
- package/dist/esm/src/enum.js +1 -1
- package/dist/esm/src/flatten-templates.js +4 -4
- package/dist/esm/src/get-is-leaf.js +1 -1
- package/dist/esm/src/interfaces.js +12 -10
- package/dist/esm/src/layers/layers.js +12 -6
- package/dist/esm/src/layers/refs.js +3 -3
- package/dist/esm/src/layers/type-utils.js +1 -1
- package/dist/esm/src/migration/index.js +3 -1
- package/dist/esm/src/migration/to/v3.0.0.js +20 -8
- package/dist/esm/src/migration/to/v3.1.0.js +6 -4
- package/dist/esm/src/migration/to/v3.10.0.js +1 -1
- package/dist/esm/src/migration/to/v3.13.0.js +1 -1
- package/dist/esm/src/migration/to/v3.17.0.js +1 -1
- package/dist/esm/src/migration/to/v3.18.0.js +4 -4
- package/dist/esm/src/migration/to/v3.18.1.js +1 -1
- package/dist/esm/src/migration/to/v3.18.2.js +1 -1
- package/dist/esm/src/migration/to/v3.20.0.js +5 -2
- package/dist/esm/src/migration/to/v3.22.0.js +1 -1
- package/dist/esm/src/migration/to/v3.31.0.js +2 -2
- package/dist/esm/src/migration/to/v3.32.0.js +3 -1
- package/dist/esm/src/migration/to/v3.34.0.js +6 -9
- package/dist/esm/src/migration/to/v3.36.0.js +1 -1
- package/dist/esm/src/migration/to/v3.39.0.js +8 -8
- package/dist/esm/src/migration/to/v3.40.0.js +1 -1
- package/dist/esm/src/migration/to/v3.46.0.js +1 -1
- package/dist/esm/src/migration/to/v3.51.0.js +10 -0
- package/dist/esm/src/migration/to/v3.9.0.js +3 -3
- package/dist/esm/src/mocks.js +1 -1
- package/dist/esm/src/models/project-schema.js +4 -4
- package/dist/esm/src/models/shape.js +2 -2
- package/dist/esm/src/project-schema/index.js +3 -1
- package/dist/esm/src/project-schema/migrate.js +4 -2
- package/dist/esm/src/project-schema/v3.51.0.js +7 -0
- package/dist/esm/src/refs.js +29 -19
- package/dist/esm/src/relationships.js +26 -21
- package/dist/esm/src/runtime-schema.js +16 -9
- package/dist/esm/src/schema-transform.js +3 -3
- package/dist/esm/src/schema-util.js +40 -32
- package/dist/esm/src/schemas/auth-schemas.json +18 -78
- package/dist/esm/src/schemas/index.js +4 -2
- package/dist/esm/src/schemas/project-schema/experimental.json +7 -20
- package/dist/esm/src/schemas/project-schema/latest.json +166 -566
- package/dist/esm/src/schemas/project-schema/meta-schema-v1.0.0.json +3 -17
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.0.0.json +4 -4
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.1.0.json +4 -4
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.2.0.json +5 -5
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.3.0.json +5 -5
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.4.0.json +11 -43
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.5.0.json +7 -7
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.5.1.json +8 -11
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.6.0.json +8 -11
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.7.0.json +11 -9
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.8.0.json +11 -9
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.9.0.json +24 -22
- package/dist/esm/src/schemas/project-schema/v1.0.0.json +3 -3
- package/dist/esm/src/schemas/project-schema/v3.0.0.json +1 -1
- package/dist/esm/src/schemas/project-schema/v3.1.0.json +2 -2
- package/dist/esm/src/schemas/project-schema/v3.10.0.json +32 -30
- package/dist/esm/src/schemas/project-schema/v3.11.0.json +32 -30
- package/dist/esm/src/schemas/project-schema/v3.12.0.json +33 -36
- package/dist/esm/src/schemas/project-schema/v3.12.1.json +33 -36
- package/dist/esm/src/schemas/project-schema/v3.12.2.json +2122 -2125
- package/dist/esm/src/schemas/project-schema/v3.12.3.json +2175 -2178
- package/dist/esm/src/schemas/project-schema/v3.13.0.json +32 -30
- package/dist/esm/src/schemas/project-schema/v3.14.0.json +32 -30
- package/dist/esm/src/schemas/project-schema/v3.15.0.json +40 -38
- package/dist/esm/src/schemas/project-schema/v3.16.0.json +40 -38
- package/dist/esm/src/schemas/project-schema/v3.17.0.json +47 -39
- package/dist/esm/src/schemas/project-schema/v3.17.1.json +2204 -2196
- package/dist/esm/src/schemas/project-schema/v3.18.0.json +40 -38
- package/dist/esm/src/schemas/project-schema/v3.18.1.json +40 -38
- package/dist/esm/src/schemas/project-schema/v3.18.2.json +40 -38
- package/dist/esm/src/schemas/project-schema/v3.19.0.json +40 -38
- package/dist/esm/src/schemas/project-schema/v3.2.0.json +1 -1
- package/dist/esm/src/schemas/project-schema/v3.20.0.json +40 -38
- package/dist/esm/src/schemas/project-schema/v3.21.0.json +41 -39
- package/dist/esm/src/schemas/project-schema/v3.22.0.json +41 -39
- package/dist/esm/src/schemas/project-schema/v3.23.0.json +43 -43
- package/dist/esm/src/schemas/project-schema/v3.24.0.json +105 -458
- package/dist/esm/src/schemas/project-schema/v3.25.0.json +105 -458
- package/dist/esm/src/schemas/project-schema/v3.26.0.json +107 -466
- package/dist/esm/src/schemas/project-schema/v3.27.0.json +107 -466
- package/dist/esm/src/schemas/project-schema/v3.28.0.json +112 -471
- package/dist/esm/src/schemas/project-schema/v3.29.0.json +112 -471
- package/dist/esm/src/schemas/project-schema/v3.3.0.json +1 -1
- package/dist/esm/src/schemas/project-schema/v3.30.0.json +112 -472
- package/dist/esm/src/schemas/project-schema/v3.31.0.json +112 -486
- package/dist/esm/src/schemas/project-schema/v3.32.0.json +113 -488
- package/dist/esm/src/schemas/project-schema/v3.33.0.json +113 -488
- package/dist/esm/src/schemas/project-schema/v3.34.0.json +113 -488
- package/dist/esm/src/schemas/project-schema/v3.35.0.json +114 -491
- package/dist/esm/src/schemas/project-schema/v3.36.0.json +114 -491
- package/dist/esm/src/schemas/project-schema/v3.37.0.json +118 -511
- package/dist/esm/src/schemas/project-schema/v3.38.0.json +118 -511
- package/dist/esm/src/schemas/project-schema/v3.39.0.json +118 -511
- package/dist/esm/src/schemas/project-schema/v3.4.0.json +1 -1
- package/dist/esm/src/schemas/project-schema/v3.40.0.json +118 -512
- package/dist/esm/src/schemas/project-schema/v3.41.0.json +118 -512
- package/dist/esm/src/schemas/project-schema/v3.42.0.json +118 -512
- package/dist/esm/src/schemas/project-schema/v3.43.0.json +118 -512
- package/dist/esm/src/schemas/project-schema/v3.44.0.json +125 -540
- package/dist/esm/src/schemas/project-schema/v3.45.0.json +128 -554
- package/dist/esm/src/schemas/project-schema/v3.46.0.json +129 -560
- package/dist/esm/src/schemas/project-schema/v3.47.0.json +131 -568
- package/dist/esm/src/schemas/project-schema/v3.48.0.json +132 -572
- package/dist/esm/src/schemas/project-schema/v3.49.0.json +132 -558
- package/dist/esm/src/schemas/project-schema/v3.5.0.json +1 -1
- package/dist/esm/src/schemas/project-schema/v3.5.1.json +1 -1
- package/dist/esm/src/schemas/project-schema/v3.50.0.json +165 -565
- package/dist/esm/src/schemas/project-schema/v3.51.0.json +3320 -0
- package/dist/esm/src/schemas/project-schema/v3.6.0.json +1 -1
- package/dist/esm/src/schemas/project-schema/v3.7.0.json +1 -1
- package/dist/esm/src/schemas/project-schema/v3.8.0.json +1 -1
- package/dist/esm/src/schemas/project-schema/v3.9.0.json +1 -1
- package/dist/esm/src/schemas/project-schema/v4.0.0.json +31 -29
- package/dist/esm/src/schemas/project-schema.json +3 -0
- package/dist/esm/src/schemas/user-schema.json +2 -9
- package/dist/esm/src/service-dependencies.js +17 -11
- package/dist/esm/src/services/services.js +12 -11
- package/dist/esm/src/services/util.js +4 -4
- package/dist/esm/src/template-shapes/templates.js +18 -12
- package/dist/esm/src/template-shapes/where.js +24 -15
- package/dist/esm/src/types/utils.js +3 -3
- package/dist/esm/src/unions.js +6 -8
- package/dist/esm/src/util/api-indexing.js +4 -4
- package/dist/esm/src/util/detect-cycles.js +2 -2
- package/dist/esm/src/util/find-shape-at-path.js +1 -1
- package/dist/esm/src/util/form-config.js +0 -1
- package/dist/esm/src/util/get-conflicting-properties.js +1 -1
- package/dist/esm/src/util/merge.js +23 -14
- package/dist/esm/src/util/patch-schema.js +2 -2
- package/dist/esm/src/util/shapes.js +2 -2
- package/dist/esm/src/validate.js +64 -47
- package/dist/esm/src/workflows.js +4 -4
- package/dist/types/src/agents.d.ts +1 -1
- package/dist/types/src/builtin-schema.d.ts +2 -2
- package/dist/types/src/content-schema-transform.d.ts +1 -1
- package/dist/types/src/create-input-schema.d.ts +1 -1
- package/dist/types/src/enum.d.ts +1 -1
- package/dist/types/src/flatten-templates.d.ts +1 -1
- package/dist/types/src/layers/layers.d.ts +1 -1
- package/dist/types/src/layers/refs.d.ts +1 -1
- package/dist/types/src/layers/type-utils.d.ts +1 -1
- package/dist/types/src/layers/visitor.d.ts +2 -2
- package/dist/types/src/migration/index.d.ts +1 -0
- package/dist/types/src/migration/to/v3.17.1.d.ts +1 -1
- package/dist/types/src/migration/to/v3.19.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.21.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.22.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.23.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.24.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.25.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.26.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.27.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.28.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.29.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.30.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.31.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.32.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.33.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.34.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.35.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.36.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.37.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.38.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.39.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.40.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.41.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.42.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.43.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.44.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.45.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.46.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.47.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.48.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.49.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.50.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.51.0.d.ts +4 -0
- package/dist/types/src/migration/types.d.ts +1 -1
- package/dist/types/src/mocks.d.ts +1 -1
- package/dist/types/src/models/project-schema.d.ts +3 -3
- package/dist/types/src/models/query.d.ts +2 -2
- package/dist/types/src/models/service.d.ts +2 -2
- package/dist/types/src/models/shape.d.ts +2 -2
- package/dist/types/src/project-schema/index.d.ts +4 -1
- package/dist/types/src/project-schema/latest.d.ts +28 -10
- package/dist/types/src/project-schema/v3.50.0.d.ts +27 -9
- package/dist/types/src/project-schema/v3.51.0.d.ts +2189 -0
- package/dist/types/src/refs.d.ts +1 -1
- package/dist/types/src/relationships.d.ts +2 -2
- package/dist/types/src/runtime-schema.d.ts +1 -1
- package/dist/types/src/schema-transform.d.ts +1 -1
- package/dist/types/src/schema-util.d.ts +2 -2
- package/dist/types/src/schemas/index.d.ts +2 -2
- package/dist/types/src/service-dependencies.d.ts +2 -2
- package/dist/types/src/services/services.d.ts +3 -3
- package/dist/types/src/services/util.d.ts +2 -2
- package/dist/types/src/template-shapes/index.d.ts +2 -2
- package/dist/types/src/template-shapes/names.d.ts +1 -1
- package/dist/types/src/template-shapes/types.d.ts +2 -2
- package/dist/types/src/template-shapes/where.d.ts +1 -1
- package/dist/types/src/types/transforms.d.ts +1 -1
- package/dist/types/src/types/types.d.ts +4 -4
- package/dist/types/src/types/utils.d.ts +2 -2
- package/dist/types/src/unions.d.ts +2 -2
- package/dist/types/src/util/ai-tools.d.ts +1 -1
- package/dist/types/src/util/api-indexing.d.ts +1 -1
- package/dist/types/src/util/detect-cycles.d.ts +1 -1
- package/dist/types/src/util/find-shape-at-path.d.ts +1 -1
- package/dist/types/src/util/form-config.d.ts +1 -1
- package/dist/types/src/util/get-conflicting-properties.d.ts +1 -1
- package/dist/types/src/util/get-return-shape.d.ts +1 -1
- package/dist/types/src/util/has-arg.d.ts +2 -2
- package/dist/types/src/util/merge.d.ts +1 -1
- package/dist/types/src/util/patch-schema.d.ts +2 -2
- package/dist/types/src/util/shapes.d.ts +1 -1
- package/dist/types/src/validate.d.ts +4 -4
- package/dist/types/src/workflows.d.ts +1 -1
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/examples/latest/agent-schema.json +5 -13
- package/examples/latest/all-fields-shapes-inline.json +19 -53
- package/examples/latest/all-fields-shapes.json +27 -77
- package/examples/latest/betzino.json +903 -3140
- package/examples/latest/blog-schema.json +9 -29
- package/examples/latest/brewery-schema.json +8 -26
- package/examples/latest/clear-cache-schema.json +4 -8
- package/examples/latest/complex-project-schema.json +99 -360
- package/examples/latest/complex-schema.json +487 -1754
- package/examples/latest/edit-schema.json +5 -12
- package/examples/latest/fabric-ecommerce.json +188 -839
- package/examples/latest/frank-and-fred-schema.json +489 -1756
- package/examples/latest/klirr-schema.json +683 -2412
- package/examples/latest/layers/rick-and-morty-layer.json +12 -33
- package/examples/latest/layers/shopify-layer-2023-01.json +2207 -8638
- package/examples/latest/layers/shopify-storefront-2023-04.json +403 -1713
- package/examples/latest/layers/wordpress-2024-01.json +689 -2744
- package/examples/latest/massive-schema.json +132 -585
- package/examples/latest/mill-components-schema.json +30 -126
- package/examples/latest/nested-shape-arrays.json +8 -20
- package/examples/latest/one-earth.json +237 -1114
- package/examples/latest/pet-oneof-array.json +8 -23
- package/examples/latest/post-schema.json +7 -21
- package/examples/latest/pruned-shopify-product-schema.json +186 -831
- package/examples/latest/rag-example.json +6 -16
- package/examples/latest/real-world-schema.json +15 -57
- package/examples/latest/recursive-repeater-schema.json +5 -12
- package/examples/latest/recursive-schema.json +5 -12
- package/examples/latest/rick-and-morty-ast.json +46 -175
- package/examples/latest/rick-and-morty-graphql.json +26 -101
- package/examples/latest/rick-and-morty-rest.json +4 -8
- package/examples/latest/rick-and-morty-with-indexing.json +6 -14
- package/examples/latest/schema-where-filter.json +12 -41
- package/examples/latest/schema-with-repeater-draftjs.json +4 -9
- package/examples/latest/schema-with-rick-and-morty.json +3 -5
- package/examples/latest/shape-books-v3_2_0.json +18 -72
- package/examples/latest/shape-books.json +18 -72
- package/examples/latest/shape-editor-schema-edited.json +24 -70
- package/examples/latest/shape-editor-schema-initial.json +11 -29
- package/examples/latest/shapedb-crud-every-prop-type.json +9 -23
- package/examples/latest/shopify-lookbook.json +6 -20
- package/examples/latest/shopify-product-2022-07.json +727 -3218
- package/examples/latest/shopify-product-2023-04.json +1013 -4497
- package/examples/latest/shopify-store-with-widget.json +214 -943
- package/examples/latest/stripe-product-runtime-schema.json +82 -278
- package/examples/latest/stripe-starter-resolved.json +477 -1954
- package/examples/latest/user-schema-no-required.json +4 -14
- package/examples/latest/user-schema-with-defaults.json +6 -28
- package/examples/latest/valvoline-ai-demo.json +18 -70
- package/examples/latest/vector-search-schema.json +9 -25
- package/examples/source/agent-schema.json +29 -16
- package/examples/source/all-fields-shapes-inline.json +21 -30
- package/examples/source/all-fields-shapes.json +26 -76
- package/examples/source/betzino.json +1501 -4960
- package/examples/source/blog-schema.json +1 -1
- package/examples/source/brewery-schema.json +1 -1
- package/examples/source/clear-cache-schema.json +4 -4
- package/examples/source/complex-project-schema.json +196 -688
- package/examples/source/edit-schema.json +3 -3
- package/examples/source/fabric-ecommerce.json +186 -837
- package/examples/source/frank-and-fred-schema.json +1136 -3929
- package/examples/source/layers/rick-and-morty-layer.json +10 -31
- package/examples/source/layers/shopify-layer-2023-01.json +2205 -8636
- package/examples/source/layers/shopify-storefront-2023-04.json +401 -1711
- package/examples/source/layers/wordpress-2024-01.json +689 -2743
- package/examples/source/massive-schema.json +386 -1455
- package/examples/source/nested-shape-arrays.json +12 -12
- package/examples/source/pet-oneof-array.json +31 -29
- package/examples/source/post-schema.json +1 -1
- package/examples/source/pruned-shopify-product-schema.json +184 -829
- package/examples/source/rag-example.json +5 -15
- package/examples/source/real-world-schema.json +32 -119
- package/examples/source/recursive-repeater-schema.json +3 -8
- package/examples/source/recursive-schema.json +1 -1
- package/examples/source/rick-and-morty-ast.json +66 -251
- package/examples/source/rick-and-morty-graphql.json +41 -162
- package/examples/source/rick-and-morty-rest.json +24 -6
- package/examples/source/rick-and-morty-with-indexing.json +25 -25
- package/examples/source/schema-where-filter.json +29 -50
- package/examples/source/schema-with-repeater-draftjs.json +9 -31
- package/examples/source/schema-with-rick-and-morty.json +4 -4
- package/examples/source/shape-books.json +49 -181
- package/examples/source/shape-editor-schema-edited.json +22 -68
- package/examples/source/shape-editor-schema-initial.json +9 -27
- package/examples/source/shapedb-crud-every-prop-type.json +20 -29
- package/examples/source/shopify-product-2022-07.json +736 -3261
- package/examples/source/shopify-product-2023-04.json +1022 -4540
- package/examples/source/shopify-store-with-widget.json +212 -941
- package/examples/source/stripe-product-runtime-schema.json +91 -321
- package/examples/source/stripe-starter-resolved.json +475 -1952
- package/examples/source/user-schema-with-defaults.json +1 -9
- package/examples/source/valvoline-ai-demo.json +175 -219
- package/examples/source/vector-search-schema.json +37 -38
- package/examples/v4_0_0/rick-and-morty-notes/flattened-schema.json +15 -49
- package/examples/v4_0_0/rick-and-morty-notes/layers/character-notes.json +8 -8
- package/examples/v4_0_0/rick-and-morty-notes/layers/takeshape-builtins.json +1 -3
- package/examples/v4_0_0/rick-and-morty-notes/layers/takeshape-static-sites.json +19 -79
- package/examples/v4_0_0/rick-and-morty-notes/schema.json +8 -5
- package/examples/v4_0_0/shopify-lookbook/flattened-schema.json +190 -851
- package/examples/v4_0_0/shopify-lookbook/layers/andrews-store.json +1103 -4431
- package/examples/v4_0_0/shopify-lookbook/layers/lookbook.json +64 -56
- package/examples/v4_0_0/shopify-lookbook/layers/takeshape-assets.json +1 -4
- package/examples/v4_0_0/shopify-lookbook/layers/takeshape-builtins.json +1 -3
- package/examples/v4_0_0/shopify-lookbook/schema.json +3 -10
- package/package.json +12 -9
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.wrapOneOfObjects = exports.unwrapOneOfObjects = exports.transformOneOf = exports.toName = exports.removePropertiesTransform = void 0;
|
|
7
7
|
const util_1 = require("@takeshape/util");
|
|
8
8
|
const pickBy_js_1 = __importDefault(require("lodash/pickBy.js"));
|
|
9
|
+
const content_schema_transform_1 = require("./content-schema-transform");
|
|
9
10
|
const types_1 = require("./types");
|
|
10
11
|
const unions_1 = require("./unions");
|
|
11
|
-
const content_schema_transform_1 = require("./content-schema-transform");
|
|
12
12
|
function createPropertiesPredicate(propertyNames) {
|
|
13
13
|
const byShape = new Map();
|
|
14
14
|
for (const name of propertyNames) {
|
|
@@ -28,7 +28,7 @@ function createPropertiesPredicate(propertyNames) {
|
|
|
28
28
|
}
|
|
29
29
|
function removePropertiesTransform(propertyNames) {
|
|
30
30
|
const isBlacklisted = createPropertiesPredicate(propertyNames);
|
|
31
|
-
return projectSchema => {
|
|
31
|
+
return (projectSchema) => {
|
|
32
32
|
(0, util_1.visit)(projectSchema, ['schema'], (value, path) => {
|
|
33
33
|
if (path.length === 3 && path[0] === 'shapes' && path[2] === 'schema') {
|
|
34
34
|
const shapeSchema = value;
|
|
@@ -36,7 +36,7 @@ function removePropertiesTransform(propertyNames) {
|
|
|
36
36
|
const { properties, required } = shapeSchema;
|
|
37
37
|
shapeSchema.properties = (0, pickBy_js_1.default)(properties, (_, name) => !isBlacklisted(path[1], name));
|
|
38
38
|
if (required) {
|
|
39
|
-
shapeSchema.required = required.filter(name => !isBlacklisted(path[1], name));
|
|
39
|
+
shapeSchema.required = required.filter((name) => !isBlacklisted(path[1], name));
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -5,25 +5,25 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.createLayerSchema = exports.emptySchema = exports.getPropertyService = exports.getStorageKey = exports.getFullyQualifiedShapeName = exports.getFirstMapping = exports.findMapping = exports.splitMapping = exports.parseMapping = exports.getAllValidRefs = exports.isValidRefItem = exports.getAllRefs = exports.getAllRefsInQueries = exports.getAllRefsInQuery = exports.getAllRefsInShapes = exports.visitShapeProperties = exports.visitSchemaProperties = exports.getRelevantShapes = exports.getShapeDependencies = exports.projectSchemaToJSONSchema = exports.shapeToPropertySchema = exports.getArgsShapeSchema = exports.getArgsReferenceWithPath = exports.getArgsReference = exports.getShapeByRef = exports.applyDefaultsToSchema = exports.getBuiltinsUsed = exports.applyBuiltinPropertiesToShape = exports.isBuiltInPropertyName = exports.BuiltInPropertiesProfile = exports.getBuiltInPropertyNames = exports.getModelBuiltInProperties = exports.getIdField = exports.DEFAULT_ID_FIELD = exports.getCommonBuiltInProperties = exports.getShapeQueriesAndMutations = exports.pathBetween = exports.getGeneratorVersion = exports.getServiceIdFieldName = exports.nonStructuralSchemaKeys = exports.multipleRelationshipSchemaKeys = exports.arraySchemaKeys = exports.objectSchemaKeys = exports.scalarSchemaKeys = exports.commonSchemaKeys = exports.schemaMetadataKeys = exports.isBuiltinType = exports.isBuiltinMutation = exports.isBuiltinQuery = exports.isBuiltinShape = void 0;
|
|
7
7
|
exports.getQueryMapName = exports.shapeHasArrayPropOfShape = exports.schemaMatchesShapeName = exports.fieldMappingContainsKey = exports.getQueriesShape = exports.queryToPropertySchema = exports.createShape = exports.getDefaultMutationName = exports.ensureMutationByShape = exports.ensureQueryByShape = exports.findMutationByShape = exports.findQueryByShape = exports.createSchemaPropertyAccessor = exports.createSchemaPropertyList = exports.filterGraphQLServiceMap = exports.getNamespacedShapeNameList = exports.getAllNamespaceShapes = exports.getShapesById = void 0;
|
|
8
|
-
const
|
|
9
|
-
const keyBy_js_1 = __importDefault(require("lodash/keyBy.js"));
|
|
8
|
+
const util_1 = require("@takeshape/util");
|
|
10
9
|
const curry_js_1 = __importDefault(require("lodash/fp/curry.js"));
|
|
11
10
|
const orderBy_js_1 = __importDefault(require("lodash/fp/orderBy.js"));
|
|
12
|
-
const uniq_js_1 = __importDefault(require("lodash/uniq.js"));
|
|
13
|
-
const util_1 = require("@takeshape/util");
|
|
14
|
-
const isString_js_1 = __importDefault(require("lodash/isString.js"));
|
|
15
11
|
const isArray_js_1 = __importDefault(require("lodash/isArray.js"));
|
|
12
|
+
const isString_js_1 = __importDefault(require("lodash/isString.js"));
|
|
13
|
+
const keyBy_js_1 = __importDefault(require("lodash/keyBy.js"));
|
|
14
|
+
const mapValues_js_1 = __importDefault(require("lodash/mapValues.js"));
|
|
16
15
|
const some_js_1 = __importDefault(require("lodash/some.js"));
|
|
17
|
-
const
|
|
18
|
-
const versions_1 = require("./versions");
|
|
16
|
+
const uniq_js_1 = __importDefault(require("lodash/uniq.js"));
|
|
19
17
|
const api_version_1 = require("./api-version");
|
|
20
18
|
const builtin_schema_1 = require("./builtin-schema");
|
|
19
|
+
const constants_1 = require("./constants");
|
|
21
20
|
const refs_1 = require("./refs");
|
|
21
|
+
const types_1 = require("./types");
|
|
22
22
|
const unions_1 = require("./unions");
|
|
23
|
-
const merge_1 = require("./util/merge");
|
|
24
23
|
const has_arg_1 = require("./util/has-arg");
|
|
25
|
-
const
|
|
26
|
-
const
|
|
24
|
+
const merge_1 = require("./util/merge");
|
|
25
|
+
const versions_1 = require("./versions");
|
|
26
|
+
const workflows_1 = require("./workflows");
|
|
27
27
|
function isBuiltinShape(shapeName) {
|
|
28
28
|
return Boolean(builtin_schema_1.builtInShapes[shapeName]);
|
|
29
29
|
}
|
|
@@ -407,17 +407,17 @@ const requiredBuiltinShapes = ['Asset', 'TSRelationship', 'TSStaticSite', 'TSUse
|
|
|
407
407
|
*/
|
|
408
408
|
function getBuiltinsUsed(projectSchema) {
|
|
409
409
|
const builtinsUsed = {};
|
|
410
|
-
const shapeNames = (0, uniq_js_1.default)(requiredBuiltinShapes.concat(getAllRefs(projectSchema, refItem => refItem.serviceKey === 'local' && isBuiltinShape(refItem.typeName)).map(refs_1.refItemToNamespacedShapeName)));
|
|
410
|
+
const shapeNames = (0, uniq_js_1.default)(requiredBuiltinShapes.concat(getAllRefs(projectSchema, (refItem) => refItem.serviceKey === 'local' && isBuiltinShape(refItem.typeName)).map(refs_1.refItemToNamespacedShapeName)));
|
|
411
411
|
const schemaWithAllBuiltins = {
|
|
412
412
|
...emptySchema('project-id'),
|
|
413
413
|
shapes: builtin_schema_1.builtInShapes
|
|
414
414
|
};
|
|
415
|
-
|
|
415
|
+
for (const builtinShapeName of shapeNames) {
|
|
416
416
|
builtinsUsed[builtinShapeName] = builtin_schema_1.builtInShapes[builtinShapeName];
|
|
417
|
-
getShapeDependencies(schemaWithAllBuiltins, builtin_schema_1.builtInShapes[builtinShapeName])
|
|
417
|
+
for (const depShapeName of getShapeDependencies(schemaWithAllBuiltins, builtin_schema_1.builtInShapes[builtinShapeName])) {
|
|
418
418
|
builtinsUsed[depShapeName] = builtin_schema_1.builtInShapes[depShapeName];
|
|
419
|
-
}
|
|
420
|
-
}
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
421
|
return builtinsUsed;
|
|
422
422
|
}
|
|
423
423
|
exports.getBuiltinsUsed = getBuiltinsUsed;
|
|
@@ -427,7 +427,9 @@ function applyDefaultsToSchema(projectSchema) {
|
|
|
427
427
|
...projectSchema,
|
|
428
428
|
workflows: {
|
|
429
429
|
...projectSchema.workflows,
|
|
430
|
-
...((0, api_version_1.workflowsEnabled)(projectSchema.apiVersion) && {
|
|
430
|
+
...((0, api_version_1.workflowsEnabled)(projectSchema.apiVersion) && {
|
|
431
|
+
default: workflows_1.defaultWorkflow
|
|
432
|
+
})
|
|
431
433
|
},
|
|
432
434
|
queries: {
|
|
433
435
|
...builtInQueriesAndMutations.queries,
|
|
@@ -437,7 +439,7 @@ function applyDefaultsToSchema(projectSchema) {
|
|
|
437
439
|
...builtInQueriesAndMutations.mutations,
|
|
438
440
|
...projectSchema.mutations
|
|
439
441
|
},
|
|
440
|
-
shapes: (0, mapValues_js_1.default)({ ...builtinsUsed, ...projectSchema.shapes }, shape => {
|
|
442
|
+
shapes: (0, mapValues_js_1.default)({ ...builtinsUsed, ...projectSchema.shapes }, (shape) => {
|
|
441
443
|
const builtInShape = builtinsUsed[shape.name];
|
|
442
444
|
if (builtInShape && builtInShape !== shape) {
|
|
443
445
|
shape = {
|
|
@@ -450,7 +452,10 @@ function applyDefaultsToSchema(projectSchema) {
|
|
|
450
452
|
forms: (0, mapValues_js_1.default)({ ...builtin_schema_1.builtInForms, ...projectSchema.forms }, (formsConfig, shapeName) => {
|
|
451
453
|
const builtInFormsConfig = builtin_schema_1.builtInForms[shapeName];
|
|
452
454
|
if (builtInFormsConfig && builtInFormsConfig !== formsConfig) {
|
|
453
|
-
formsConfig = {
|
|
455
|
+
formsConfig = {
|
|
456
|
+
...formsConfig,
|
|
457
|
+
default: (0, merge_1.mergeFormProperties)(formsConfig.default, builtInFormsConfig.default)
|
|
458
|
+
};
|
|
454
459
|
}
|
|
455
460
|
return formsConfig;
|
|
456
461
|
})
|
|
@@ -508,16 +513,19 @@ const createShapeToPropertySchema = (projectSchema, definitions, definitionNames
|
|
|
508
513
|
};
|
|
509
514
|
propSchema.required = ['_shapeId'];
|
|
510
515
|
}
|
|
511
|
-
propSchema.oneOf
|
|
516
|
+
for (const schema of propSchema.oneOf) {
|
|
512
517
|
handleSchema(schema);
|
|
513
|
-
}
|
|
518
|
+
}
|
|
514
519
|
return;
|
|
515
520
|
}
|
|
516
521
|
// Add workflow validation
|
|
517
522
|
if (propSchema['@workflow']) {
|
|
518
523
|
const workflowName = propSchema['@workflow'];
|
|
519
524
|
const workflow = projectSchema.workflows[workflowName] || workflows_1.defaultWorkflow;
|
|
520
|
-
propSchema.oneOf = workflow.steps.map(step => ({
|
|
525
|
+
propSchema.oneOf = workflow.steps.map((step) => ({
|
|
526
|
+
enum: [step.key, step.name],
|
|
527
|
+
title: step.title
|
|
528
|
+
}));
|
|
521
529
|
}
|
|
522
530
|
const refItem = (0, refs_1.getRef)(projectSchema, propSchema);
|
|
523
531
|
if (refItem) {
|
|
@@ -552,9 +560,9 @@ const createShapeToPropertySchema = (projectSchema, definitions, definitionNames
|
|
|
552
560
|
if (shape.title) {
|
|
553
561
|
shapeSchemaCopy.title = shape.title;
|
|
554
562
|
}
|
|
555
|
-
Object.values(shapeSchemaCopy.properties)
|
|
563
|
+
for (const schema of Object.values(shapeSchemaCopy.properties)) {
|
|
556
564
|
handleSchema(schema);
|
|
557
|
-
}
|
|
565
|
+
}
|
|
558
566
|
return shapeSchemaCopy;
|
|
559
567
|
};
|
|
560
568
|
return rewriteRefs;
|
|
@@ -815,7 +823,7 @@ exports.getFullyQualifiedShapeName = getFullyQualifiedShapeName;
|
|
|
815
823
|
* @param schema
|
|
816
824
|
*/
|
|
817
825
|
function getStorageKey(schema) {
|
|
818
|
-
const first = findMapping(schema, mapping => mapping.startsWith('shapedb:'));
|
|
826
|
+
const first = findMapping(schema, (mapping) => mapping.startsWith('shapedb:'));
|
|
819
827
|
return first ? splitMapping(first)[1] : undefined;
|
|
820
828
|
}
|
|
821
829
|
exports.getStorageKey = getStorageKey;
|
|
@@ -863,7 +871,7 @@ exports.getShapesById = getShapesById;
|
|
|
863
871
|
* @returns A `string` array with all the shapes that are in namespaces.
|
|
864
872
|
*/
|
|
865
873
|
function getAllNamespaceShapes(projectSchema) {
|
|
866
|
-
const isServiceRef = refItem => Boolean(refItem.serviceNamespace);
|
|
874
|
+
const isServiceRef = (refItem) => Boolean(refItem.serviceNamespace);
|
|
867
875
|
return (0, uniq_js_1.default)(getAllValidRefs(projectSchema, isServiceRef).map(refs_1.refItemToNamespacedShapeName));
|
|
868
876
|
}
|
|
869
877
|
exports.getAllNamespaceShapes = getAllNamespaceShapes;
|
|
@@ -887,11 +895,11 @@ function getNamespacedShapeNameList(projectSchema) {
|
|
|
887
895
|
const namespacedShapeNames = new Set(getAllNamespaceShapes(projectSchema));
|
|
888
896
|
// Add all namespaced shapes to the schema if they are not already present,
|
|
889
897
|
// e.g. Shopify_Product
|
|
890
|
-
|
|
898
|
+
for (const name of namespacedShapeNames) {
|
|
891
899
|
if (!existingShapeNames.has(name)) {
|
|
892
900
|
requiredShapeNames.add(name);
|
|
893
901
|
}
|
|
894
|
-
}
|
|
902
|
+
}
|
|
895
903
|
return requiredShapeNames;
|
|
896
904
|
}
|
|
897
905
|
exports.getNamespacedShapeNameList = getNamespacedShapeNameList;
|
|
@@ -939,7 +947,7 @@ exports.createSchemaPropertyList = (0, curry_js_1.default)((context, shapeOrSche
|
|
|
939
947
|
.sort(([nameA], [nameB]) => {
|
|
940
948
|
const indexA = comparatorArray.indexOf(nameA);
|
|
941
949
|
const indexB = comparatorArray.indexOf(nameB);
|
|
942
|
-
return (indexA > -1 ? indexA :
|
|
950
|
+
return ((indexA > -1 ? indexA : Number.POSITIVE_INFINITY) - (indexB > -1 ? indexB : Number.POSITIVE_INFINITY));
|
|
943
951
|
}));
|
|
944
952
|
}
|
|
945
953
|
return self;
|
|
@@ -1089,13 +1097,13 @@ exports.queryToPropertySchema = queryToPropertySchema;
|
|
|
1089
1097
|
function getQueriesShape(projectSchema, operation) {
|
|
1090
1098
|
return createShape((0, util_1.pascalCase)(operation), {
|
|
1091
1099
|
type: 'object',
|
|
1092
|
-
properties: (0, mapValues_js_1.default)(projectSchema[operation === 'query' ? 'queries' : 'mutations'], query => queryToPropertySchema(projectSchema, query))
|
|
1100
|
+
properties: (0, mapValues_js_1.default)(projectSchema[operation === 'query' ? 'queries' : 'mutations'], (query) => queryToPropertySchema(projectSchema, query))
|
|
1093
1101
|
});
|
|
1094
1102
|
}
|
|
1095
1103
|
exports.getQueriesShape = getQueriesShape;
|
|
1096
1104
|
function fieldMappingContainsKey(fieldMapping, key) {
|
|
1097
1105
|
if ((0, isArray_js_1.default)(fieldMapping)) {
|
|
1098
|
-
return (0, some_js_1.default)(fieldMapping, mapping => parseMapping(mapping).key === key);
|
|
1106
|
+
return (0, some_js_1.default)(fieldMapping, (mapping) => parseMapping(mapping).key === key);
|
|
1099
1107
|
}
|
|
1100
1108
|
return parseMapping(fieldMapping).key === key;
|
|
1101
1109
|
}
|
|
@@ -11,10 +11,7 @@
|
|
|
11
11
|
"type": "object",
|
|
12
12
|
"patternProperties": {
|
|
13
13
|
".+": {
|
|
14
|
-
"type": [
|
|
15
|
-
"number",
|
|
16
|
-
"array"
|
|
17
|
-
],
|
|
14
|
+
"type": ["number", "array"],
|
|
18
15
|
"items": {
|
|
19
16
|
"type": "number"
|
|
20
17
|
}
|
|
@@ -25,17 +22,10 @@
|
|
|
25
22
|
"type": "object",
|
|
26
23
|
"patternProperties": {
|
|
27
24
|
".+": {
|
|
28
|
-
"type": [
|
|
29
|
-
"array",
|
|
30
|
-
"string",
|
|
31
|
-
"number"
|
|
32
|
-
],
|
|
25
|
+
"type": ["array", "string", "number"],
|
|
33
26
|
"format": "date-time",
|
|
34
27
|
"items": {
|
|
35
|
-
"type": [
|
|
36
|
-
"string",
|
|
37
|
-
"number"
|
|
38
|
-
],
|
|
28
|
+
"type": ["string", "number"],
|
|
39
29
|
"format": "date-time"
|
|
40
30
|
}
|
|
41
31
|
}
|
|
@@ -45,10 +35,7 @@
|
|
|
45
35
|
"type": "object",
|
|
46
36
|
"patternProperties": {
|
|
47
37
|
".+": {
|
|
48
|
-
"type": [
|
|
49
|
-
"boolean",
|
|
50
|
-
"array"
|
|
51
|
-
],
|
|
38
|
+
"type": ["boolean", "array"],
|
|
52
39
|
"items": {
|
|
53
40
|
"type": "boolean"
|
|
54
41
|
}
|
|
@@ -59,10 +46,7 @@
|
|
|
59
46
|
"type": "object",
|
|
60
47
|
"patternProperties": {
|
|
61
48
|
".+": {
|
|
62
|
-
"type": [
|
|
63
|
-
"string",
|
|
64
|
-
"array"
|
|
65
|
-
],
|
|
49
|
+
"type": ["string", "array"],
|
|
66
50
|
"format": "ipv4",
|
|
67
51
|
"items": {
|
|
68
52
|
"type": "string",
|
|
@@ -75,10 +59,7 @@
|
|
|
75
59
|
"type": "object",
|
|
76
60
|
"patternProperties": {
|
|
77
61
|
".+": {
|
|
78
|
-
"type": [
|
|
79
|
-
"string",
|
|
80
|
-
"array"
|
|
81
|
-
],
|
|
62
|
+
"type": ["string", "array"],
|
|
82
63
|
"format": "ipv4",
|
|
83
64
|
"items": {
|
|
84
65
|
"type": "string",
|
|
@@ -91,10 +72,7 @@
|
|
|
91
72
|
"type": "object",
|
|
92
73
|
"patternProperties": {
|
|
93
74
|
".+": {
|
|
94
|
-
"type": [
|
|
95
|
-
"string",
|
|
96
|
-
"array"
|
|
97
|
-
],
|
|
75
|
+
"type": ["string", "array"],
|
|
98
76
|
"items": {
|
|
99
77
|
"type": "string"
|
|
100
78
|
}
|
|
@@ -105,28 +83,11 @@
|
|
|
105
83
|
"type": "object",
|
|
106
84
|
"patternProperties": {
|
|
107
85
|
".+": {
|
|
108
|
-
"type": [
|
|
109
|
-
|
|
110
|
-
"boolean",
|
|
111
|
-
"array"
|
|
112
|
-
],
|
|
113
|
-
"enum": [
|
|
114
|
-
"true",
|
|
115
|
-
"false",
|
|
116
|
-
true,
|
|
117
|
-
false
|
|
118
|
-
],
|
|
86
|
+
"type": ["string", "boolean", "array"],
|
|
87
|
+
"enum": ["true", "false", true, false],
|
|
119
88
|
"items": {
|
|
120
|
-
"type": [
|
|
121
|
-
|
|
122
|
-
"boolean"
|
|
123
|
-
],
|
|
124
|
-
"enum": [
|
|
125
|
-
"true",
|
|
126
|
-
"false",
|
|
127
|
-
true,
|
|
128
|
-
false
|
|
129
|
-
]
|
|
89
|
+
"type": ["string", "boolean"],
|
|
90
|
+
"enum": ["true", "false", true, false]
|
|
130
91
|
}
|
|
131
92
|
}
|
|
132
93
|
}
|
|
@@ -138,10 +99,7 @@
|
|
|
138
99
|
"properties": {
|
|
139
100
|
"Effect": {
|
|
140
101
|
"type": "string",
|
|
141
|
-
"enum": [
|
|
142
|
-
"Allow",
|
|
143
|
-
"Deny"
|
|
144
|
-
]
|
|
102
|
+
"enum": ["Allow", "Deny"]
|
|
145
103
|
},
|
|
146
104
|
"Sid": {
|
|
147
105
|
"type": "string"
|
|
@@ -211,10 +169,7 @@
|
|
|
211
169
|
}
|
|
212
170
|
}
|
|
213
171
|
},
|
|
214
|
-
"required": [
|
|
215
|
-
"Version",
|
|
216
|
-
"Statement"
|
|
217
|
-
],
|
|
172
|
+
"required": ["Version", "Statement"],
|
|
218
173
|
"additionalProperties": false
|
|
219
174
|
},
|
|
220
175
|
"ApiKey": {
|
|
@@ -252,11 +207,7 @@
|
|
|
252
207
|
"type": "number"
|
|
253
208
|
}
|
|
254
209
|
},
|
|
255
|
-
"required": [
|
|
256
|
-
"projectId",
|
|
257
|
-
"name",
|
|
258
|
-
"id"
|
|
259
|
-
],
|
|
210
|
+
"required": ["projectId", "name", "id"],
|
|
260
211
|
"additionalProperties": false
|
|
261
212
|
},
|
|
262
213
|
"UserPermission": {
|
|
@@ -287,11 +238,7 @@
|
|
|
287
238
|
"type": "boolean"
|
|
288
239
|
}
|
|
289
240
|
},
|
|
290
|
-
"required": [
|
|
291
|
-
"projectId",
|
|
292
|
-
"userId",
|
|
293
|
-
"role"
|
|
294
|
-
],
|
|
241
|
+
"required": ["projectId", "userId", "role"],
|
|
295
242
|
"additionalProperties": false
|
|
296
243
|
},
|
|
297
244
|
"Role": {
|
|
@@ -320,11 +267,7 @@
|
|
|
320
267
|
"type": "number"
|
|
321
268
|
}
|
|
322
269
|
},
|
|
323
|
-
"required": [
|
|
324
|
-
"projectId",
|
|
325
|
-
"name",
|
|
326
|
-
"permissions"
|
|
327
|
-
],
|
|
270
|
+
"required": ["projectId", "name", "permissions"],
|
|
328
271
|
"additionalProperties": false
|
|
329
272
|
},
|
|
330
273
|
"RoleInput": {
|
|
@@ -354,10 +297,7 @@
|
|
|
354
297
|
"type": "number"
|
|
355
298
|
}
|
|
356
299
|
},
|
|
357
|
-
"required": [
|
|
358
|
-
"name",
|
|
359
|
-
"permissions"
|
|
360
|
-
],
|
|
300
|
+
"required": ["name", "permissions"],
|
|
361
301
|
"additionalProperties": false
|
|
362
302
|
},
|
|
363
303
|
"RoleImport": {
|
|
@@ -370,4 +310,4 @@
|
|
|
370
310
|
"additionalProperties": false
|
|
371
311
|
}
|
|
372
312
|
}
|
|
373
|
-
}
|
|
313
|
+
}
|
|
@@ -5,11 +5,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.allProjectSchemas = exports.latestSchemaJson = exports.anyProjectSchema = exports.CURRENT_SCHEMA_VERSION = void 0;
|
|
7
7
|
// This file is generated by "pnpm json2ts"
|
|
8
|
-
exports.CURRENT_SCHEMA_VERSION = '3.
|
|
8
|
+
exports.CURRENT_SCHEMA_VERSION = '3.51.0';
|
|
9
9
|
var project_schema_json_1 = require("./project-schema.json");
|
|
10
10
|
Object.defineProperty(exports, "anyProjectSchema", { enumerable: true, get: function () { return __importDefault(project_schema_json_1).default; } });
|
|
11
|
-
var
|
|
12
|
-
Object.defineProperty(exports, "latestSchemaJson", { enumerable: true, get: function () { return __importDefault(
|
|
11
|
+
var v3_51_0_json_1 = require("./project-schema/v3.51.0.json");
|
|
12
|
+
Object.defineProperty(exports, "latestSchemaJson", { enumerable: true, get: function () { return __importDefault(v3_51_0_json_1).default; } });
|
|
13
13
|
const experimental_json_1 = __importDefault(require("./project-schema/experimental.json"));
|
|
14
14
|
const meta_schema_v1_0_0_json_1 = __importDefault(require("./project-schema/meta-schema-v1.0.0.json"));
|
|
15
15
|
const v1_0_0_json_1 = __importDefault(require("./project-schema/v1.0.0.json"));
|
|
@@ -81,7 +81,8 @@ const v3_46_0_json_1 = __importDefault(require("./project-schema/v3.46.0.json"))
|
|
|
81
81
|
const v3_47_0_json_1 = __importDefault(require("./project-schema/v3.47.0.json"));
|
|
82
82
|
const v3_48_0_json_1 = __importDefault(require("./project-schema/v3.48.0.json"));
|
|
83
83
|
const v3_49_0_json_1 = __importDefault(require("./project-schema/v3.49.0.json"));
|
|
84
|
-
const
|
|
84
|
+
const v3_50_0_json_1 = __importDefault(require("./project-schema/v3.50.0.json"));
|
|
85
|
+
const v3_51_0_json_2 = __importDefault(require("./project-schema/v3.51.0.json"));
|
|
85
86
|
const v4_0_0_json_1 = __importDefault(require("./project-schema/v4.0.0.json"));
|
|
86
87
|
exports.allProjectSchemas = [
|
|
87
88
|
experimental_json_1.default,
|
|
@@ -155,6 +156,7 @@ exports.allProjectSchemas = [
|
|
|
155
156
|
v3_47_0_json_1.default,
|
|
156
157
|
v3_48_0_json_1.default,
|
|
157
158
|
v3_49_0_json_1.default,
|
|
158
|
-
|
|
159
|
+
v3_50_0_json_1.default,
|
|
160
|
+
v3_51_0_json_2.default,
|
|
159
161
|
v4_0_0_json_1.default
|
|
160
162
|
];
|
|
@@ -764,19 +764,14 @@
|
|
|
764
764
|
"title": "AI Resolver Name",
|
|
765
765
|
"type": "string",
|
|
766
766
|
"description": "Name of the resolver function.",
|
|
767
|
-
"enum": [
|
|
768
|
-
"ai:runAgent"
|
|
769
|
-
]
|
|
767
|
+
"enum": ["ai:runAgent"]
|
|
770
768
|
},
|
|
771
769
|
"agentName": {
|
|
772
770
|
"type": "string",
|
|
773
771
|
"pattern": "^[0-9A-Za-z_]+$"
|
|
774
772
|
}
|
|
775
773
|
},
|
|
776
|
-
"required": [
|
|
777
|
-
"name",
|
|
778
|
-
"agentName"
|
|
779
|
-
],
|
|
774
|
+
"required": ["name", "agentName"],
|
|
780
775
|
"additionalProperties": false
|
|
781
776
|
},
|
|
782
777
|
"guard": {
|
|
@@ -883,8 +878,7 @@
|
|
|
883
878
|
"wordPolicyConfig": {
|
|
884
879
|
"type": "object",
|
|
885
880
|
"title": "Word Policy",
|
|
886
|
-
"description":
|
|
887
|
-
"Specific words to identify and block. The managedWordListsConfig is solely used for blocking profanity.",
|
|
881
|
+
"description": "Specific words to identify and block. The managedWordListsConfig is solely used for blocking profanity.",
|
|
888
882
|
"properties": {
|
|
889
883
|
"wordsConfig": {
|
|
890
884
|
"type": "array",
|
|
@@ -920,8 +914,7 @@
|
|
|
920
914
|
},
|
|
921
915
|
"sensitiveInformationPolicyConfig": {
|
|
922
916
|
"title": "Sensitive Information Policy",
|
|
923
|
-
"description":
|
|
924
|
-
"Filter out and block or obscure sensitive information. Matching text will be handled per the policy.",
|
|
917
|
+
"description": "Filter out and block or obscure sensitive information. Matching text will be handled per the policy.",
|
|
925
918
|
"type": "object",
|
|
926
919
|
"properties": {
|
|
927
920
|
"piiEntitiesConfig": {
|
|
@@ -1002,8 +995,7 @@
|
|
|
1002
995
|
},
|
|
1003
996
|
"contextualGroundingPolicyConfig": {
|
|
1004
997
|
"title": "Contextual Grounding Policy",
|
|
1005
|
-
"description":
|
|
1006
|
-
"Provides evaluations based on grounding text supplied by your in-context agent variables. Off-topic conversations can then be blocked.",
|
|
998
|
+
"description": "Provides evaluations based on grounding text supplied by your in-context agent variables. Off-topic conversations can then be blocked.",
|
|
1007
999
|
"type": "object",
|
|
1008
1000
|
"properties": {
|
|
1009
1001
|
"filtersConfig": {
|
|
@@ -1074,19 +1066,14 @@
|
|
|
1074
1066
|
"title": "AI Resolver Name",
|
|
1075
1067
|
"type": "string",
|
|
1076
1068
|
"description": "Name of the resolver function.",
|
|
1077
|
-
"enum": [
|
|
1078
|
-
"ai:inspectAgentSession"
|
|
1079
|
-
]
|
|
1069
|
+
"enum": ["ai:inspectAgentSession"]
|
|
1080
1070
|
},
|
|
1081
1071
|
"agentName": {
|
|
1082
1072
|
"type": "string",
|
|
1083
1073
|
"pattern": "^[0-9A-Za-z_]+$"
|
|
1084
1074
|
}
|
|
1085
1075
|
},
|
|
1086
|
-
"required": [
|
|
1087
|
-
"name",
|
|
1088
|
-
"agentName"
|
|
1089
|
-
],
|
|
1076
|
+
"required": ["name", "agentName"],
|
|
1090
1077
|
"additionalProperties": false
|
|
1091
1078
|
}
|
|
1092
1079
|
}
|