@sitecoreai-labs/sitecoreai-cli 0.0.4
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/AGENTS.md +67 -0
- package/LICENSE +21 -0
- package/README.md +357 -0
- package/bin/sitecoreai-cli +3 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +358 -0
- package/dist/commands/config.d.ts +3 -0
- package/dist/commands/config.d.ts.map +1 -0
- package/dist/commands/config.js +27 -0
- package/dist/commands/deploy/deployments.d.ts +3 -0
- package/dist/commands/deploy/deployments.d.ts.map +1 -0
- package/dist/commands/deploy/deployments.js +58 -0
- package/dist/commands/deploy/editing-host.d.ts +3 -0
- package/dist/commands/deploy/editing-host.d.ts.map +1 -0
- package/dist/commands/deploy/editing-host.js +49 -0
- package/dist/commands/deploy/environments/deployments.d.ts +3 -0
- package/dist/commands/deploy/environments/deployments.d.ts.map +1 -0
- package/dist/commands/deploy/environments/deployments.js +28 -0
- package/dist/commands/deploy/environments/index.d.ts +3 -0
- package/dist/commands/deploy/environments/index.d.ts.map +1 -0
- package/dist/commands/deploy/environments/index.js +29 -0
- package/dist/commands/deploy/environments/mutations.d.ts +9 -0
- package/dist/commands/deploy/environments/mutations.d.ts.map +1 -0
- package/dist/commands/deploy/environments/mutations.js +103 -0
- package/dist/commands/deploy/environments/queries.d.ts +7 -0
- package/dist/commands/deploy/environments/queries.d.ts.map +1 -0
- package/dist/commands/deploy/environments/queries.js +56 -0
- package/dist/commands/deploy/environments/variables.d.ts +3 -0
- package/dist/commands/deploy/environments/variables.d.ts.map +1 -0
- package/dist/commands/deploy/environments/variables.js +40 -0
- package/dist/commands/deploy/environments.d.ts +2 -0
- package/dist/commands/deploy/environments.d.ts.map +1 -0
- package/dist/commands/deploy/environments.js +17 -0
- package/dist/commands/deploy/index.d.ts +3 -0
- package/dist/commands/deploy/index.d.ts.map +1 -0
- package/dist/commands/deploy/index.js +26 -0
- package/dist/commands/deploy/logs.d.ts +3 -0
- package/dist/commands/deploy/logs.d.ts.map +1 -0
- package/dist/commands/deploy/logs.js +39 -0
- package/dist/commands/deploy/organizations.d.ts +3 -0
- package/dist/commands/deploy/organizations.d.ts.map +1 -0
- package/dist/commands/deploy/organizations.js +29 -0
- package/dist/commands/deploy/projects.d.ts +3 -0
- package/dist/commands/deploy/projects.d.ts.map +1 -0
- package/dist/commands/deploy/projects.js +74 -0
- package/dist/commands/deploy/shared.d.ts +3 -0
- package/dist/commands/deploy/shared.d.ts.map +1 -0
- package/dist/commands/deploy/shared.js +12 -0
- package/dist/commands/deploy/site.d.ts +10 -0
- package/dist/commands/deploy/site.d.ts.map +1 -0
- package/dist/commands/deploy/site.js +36 -0
- package/dist/commands/deploy/source-control.d.ts +3 -0
- package/dist/commands/deploy/source-control.d.ts.map +1 -0
- package/dist/commands/deploy/source-control.js +89 -0
- package/dist/commands/deploy.d.ts +2 -0
- package/dist/commands/deploy.d.ts.map +1 -0
- package/dist/commands/deploy.js +5 -0
- package/dist/commands/history.d.ts +3 -0
- package/dist/commands/history.d.ts.map +1 -0
- package/dist/commands/history.js +88 -0
- package/dist/commands/init.d.ts +3 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +32 -0
- package/dist/commands/login.d.ts +3 -0
- package/dist/commands/login.d.ts.map +1 -0
- package/dist/commands/login.js +21 -0
- package/dist/commands/logout.d.ts +3 -0
- package/dist/commands/logout.d.ts.map +1 -0
- package/dist/commands/logout.js +18 -0
- package/dist/commands/recipe/index.d.ts +3 -0
- package/dist/commands/recipe/index.d.ts.map +1 -0
- package/dist/commands/recipe/index.js +158 -0
- package/dist/commands/serialization/index.d.ts +3 -0
- package/dist/commands/serialization/index.d.ts.map +1 -0
- package/dist/commands/serialization/index.js +89 -0
- package/dist/commands/serialization/package.d.ts +3 -0
- package/dist/commands/serialization/package.d.ts.map +1 -0
- package/dist/commands/serialization/package.js +36 -0
- package/dist/commands/shared.d.ts +21 -0
- package/dist/commands/shared.d.ts.map +1 -0
- package/dist/commands/shared.js +82 -0
- package/dist/commands/shell.d.ts +10 -0
- package/dist/commands/shell.d.ts.map +1 -0
- package/dist/commands/shell.js +155 -0
- package/dist/commands/status.d.ts +3 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/status.js +15 -0
- package/dist/commands/telemetry.d.ts +3 -0
- package/dist/commands/telemetry.d.ts.map +1 -0
- package/dist/commands/telemetry.js +28 -0
- package/dist/config/env-overrides.d.ts +4 -0
- package/dist/config/env-overrides.d.ts.map +1 -0
- package/dist/config/env-overrides.js +199 -0
- package/dist/config/index.d.ts +5 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +13 -0
- package/dist/config/modules.d.ts +4 -0
- package/dist/config/modules.d.ts.map +1 -0
- package/dist/config/modules.js +152 -0
- package/dist/config/paths.d.ts +2 -0
- package/dist/config/paths.d.ts.map +1 -0
- package/dist/config/paths.js +39 -0
- package/dist/config/root-config.d.ts +10 -0
- package/dist/config/root-config.d.ts.map +1 -0
- package/dist/config/root-config.js +159 -0
- package/dist/config/schema.json +278 -0
- package/dist/config/serialization-module.schema.json +127 -0
- package/dist/config/telemetry.schema.json +21 -0
- package/dist/config/types.d.ts +245 -0
- package/dist/config/types.d.ts.map +1 -0
- package/dist/config/types.js +19 -0
- package/dist/config/validation.d.ts +10 -0
- package/dist/config/validation.d.ts.map +1 -0
- package/dist/config/validation.js +43 -0
- package/dist/deploy/api/common/headers.d.ts +2 -0
- package/dist/deploy/api/common/headers.d.ts.map +1 -0
- package/dist/deploy/api/common/headers.js +10 -0
- package/dist/deploy/api/common/index.d.ts +4 -0
- package/dist/deploy/api/common/index.d.ts.map +1 -0
- package/dist/deploy/api/common/index.js +19 -0
- package/dist/deploy/api/common/request.d.ts +9 -0
- package/dist/deploy/api/common/request.d.ts.map +1 -0
- package/dist/deploy/api/common/request.js +253 -0
- package/dist/deploy/api/common/types.d.ts +44 -0
- package/dist/deploy/api/common/types.d.ts.map +1 -0
- package/dist/deploy/api/common/types.js +5 -0
- package/dist/deploy/api/common.d.ts +2 -0
- package/dist/deploy/api/common.d.ts.map +1 -0
- package/dist/deploy/api/common.js +17 -0
- package/dist/deploy/api/deployment-logs.d.ts +2 -0
- package/dist/deploy/api/deployment-logs.d.ts.map +1 -0
- package/dist/deploy/api/deployment-logs.js +23 -0
- package/dist/deploy/api/deployments.d.ts +9 -0
- package/dist/deploy/api/deployments.d.ts.map +1 -0
- package/dist/deploy/api/deployments.js +61 -0
- package/dist/deploy/api/environments.d.ts +21 -0
- package/dist/deploy/api/environments.d.ts.map +1 -0
- package/dist/deploy/api/environments.js +67 -0
- package/dist/deploy/api/index.d.ts +9 -0
- package/dist/deploy/api/index.d.ts.map +1 -0
- package/dist/deploy/api/index.js +24 -0
- package/dist/deploy/api/logs.d.ts +8 -0
- package/dist/deploy/api/logs.d.ts.map +1 -0
- package/dist/deploy/api/logs.js +29 -0
- package/dist/deploy/api/organizations.d.ts +6 -0
- package/dist/deploy/api/organizations.d.ts.map +1 -0
- package/dist/deploy/api/organizations.js +18 -0
- package/dist/deploy/api/projects.d.ts +13 -0
- package/dist/deploy/api/projects.d.ts.map +1 -0
- package/dist/deploy/api/projects.js +42 -0
- package/dist/deploy/api/source-control.d.ts +15 -0
- package/dist/deploy/api/source-control.d.ts.map +1 -0
- package/dist/deploy/api/source-control.js +71 -0
- package/dist/deploy/api.d.ts +2 -0
- package/dist/deploy/api.d.ts.map +1 -0
- package/dist/deploy/api.js +17 -0
- package/dist/deploy/tasks/deployment-result.d.ts +6 -0
- package/dist/deploy/tasks/deployment-result.d.ts.map +1 -0
- package/dist/deploy/tasks/deployment-result.js +36 -0
- package/dist/deploy/tasks/deployments.d.ts +10 -0
- package/dist/deploy/tasks/deployments.d.ts.map +1 -0
- package/dist/deploy/tasks/deployments.js +201 -0
- package/dist/deploy/tasks/editing-host.d.ts +28 -0
- package/dist/deploy/tasks/editing-host.d.ts.map +1 -0
- package/dist/deploy/tasks/editing-host.js +216 -0
- package/dist/deploy/tasks/environments.d.ts +20 -0
- package/dist/deploy/tasks/environments.d.ts.map +1 -0
- package/dist/deploy/tasks/environments.js +364 -0
- package/dist/deploy/tasks/index.d.ts +10 -0
- package/dist/deploy/tasks/index.d.ts.map +1 -0
- package/dist/deploy/tasks/index.js +25 -0
- package/dist/deploy/tasks/logs.d.ts +5 -0
- package/dist/deploy/tasks/logs.d.ts.map +1 -0
- package/dist/deploy/tasks/logs.js +56 -0
- package/dist/deploy/tasks/organizations.d.ts +6 -0
- package/dist/deploy/tasks/organizations.d.ts.map +1 -0
- package/dist/deploy/tasks/organizations.js +51 -0
- package/dist/deploy/tasks/projects.d.ts +11 -0
- package/dist/deploy/tasks/projects.d.ts.map +1 -0
- package/dist/deploy/tasks/projects.js +246 -0
- package/dist/deploy/tasks/shared.d.ts +63 -0
- package/dist/deploy/tasks/shared.d.ts.map +1 -0
- package/dist/deploy/tasks/shared.js +261 -0
- package/dist/deploy/tasks/site-bind.d.ts +21 -0
- package/dist/deploy/tasks/site-bind.d.ts.map +1 -0
- package/dist/deploy/tasks/site-bind.js +142 -0
- package/dist/deploy/tasks/site.d.ts +14 -0
- package/dist/deploy/tasks/site.d.ts.map +1 -0
- package/dist/deploy/tasks/site.js +29 -0
- package/dist/deploy/tasks/source-control.d.ts +14 -0
- package/dist/deploy/tasks/source-control.d.ts.map +1 -0
- package/dist/deploy/tasks/source-control.js +173 -0
- package/dist/deploy/tasks/types.d.ts +204 -0
- package/dist/deploy/tasks/types.d.ts.map +1 -0
- package/dist/deploy/tasks/types.js +7 -0
- package/dist/deploy/tasks.d.ts +3 -0
- package/dist/deploy/tasks.d.ts.map +1 -0
- package/dist/deploy/tasks.js +18 -0
- package/dist/recipe/api/auth.d.ts +9 -0
- package/dist/recipe/api/auth.d.ts.map +1 -0
- package/dist/recipe/api/auth.js +12 -0
- package/dist/recipe/api/authoring-client.d.ts +37 -0
- package/dist/recipe/api/authoring-client.d.ts.map +1 -0
- package/dist/recipe/api/authoring-client.js +495 -0
- package/dist/recipe/api/client.d.ts +99 -0
- package/dist/recipe/api/client.d.ts.map +1 -0
- package/dist/recipe/api/client.js +17 -0
- package/dist/recipe/api/graphql.d.ts +15 -0
- package/dist/recipe/api/graphql.d.ts.map +1 -0
- package/dist/recipe/api/graphql.js +38 -0
- package/dist/recipe/api/ref-encoding.d.ts +38 -0
- package/dist/recipe/api/ref-encoding.d.ts.map +1 -0
- package/dist/recipe/api/ref-encoding.js +160 -0
- package/dist/recipe/api/site-discovery.d.ts +49 -0
- package/dist/recipe/api/site-discovery.d.ts.map +1 -0
- package/dist/recipe/api/site-discovery.js +127 -0
- package/dist/recipe/api/sites-client.d.ts +48 -0
- package/dist/recipe/api/sites-client.d.ts.map +1 -0
- package/dist/recipe/api/sites-client.js +19 -0
- package/dist/recipe/cache.d.ts +36 -0
- package/dist/recipe/cache.d.ts.map +1 -0
- package/dist/recipe/cache.js +114 -0
- package/dist/recipe/compile/component-section.d.ts +46 -0
- package/dist/recipe/compile/component-section.d.ts.map +1 -0
- package/dist/recipe/compile/component-section.js +143 -0
- package/dist/recipe/compile/component-template.d.ts +34 -0
- package/dist/recipe/compile/component-template.d.ts.map +1 -0
- package/dist/recipe/compile/component-template.js +709 -0
- package/dist/recipe/compile/content-item.d.ts +31 -0
- package/dist/recipe/compile/content-item.d.ts.map +1 -0
- package/dist/recipe/compile/content-item.js +189 -0
- package/dist/recipe/compile/content-template.d.ts +18 -0
- package/dist/recipe/compile/content-template.d.ts.map +1 -0
- package/dist/recipe/compile/content-template.js +52 -0
- package/dist/recipe/compile/enumeration.d.ts +59 -0
- package/dist/recipe/compile/enumeration.d.ts.map +1 -0
- package/dist/recipe/compile/enumeration.js +236 -0
- package/dist/recipe/compile/page-design.d.ts +22 -0
- package/dist/recipe/compile/page-design.d.ts.map +1 -0
- package/dist/recipe/compile/page-design.js +93 -0
- package/dist/recipe/compile/parameters-template.d.ts +14 -0
- package/dist/recipe/compile/parameters-template.d.ts.map +1 -0
- package/dist/recipe/compile/parameters-template.js +92 -0
- package/dist/recipe/compile/partial-design.d.ts +18 -0
- package/dist/recipe/compile/partial-design.d.ts.map +1 -0
- package/dist/recipe/compile/partial-design.js +76 -0
- package/dist/recipe/compile/section-definition.d.ts +18 -0
- package/dist/recipe/compile/section-definition.d.ts.map +1 -0
- package/dist/recipe/compile/section-definition.js +26 -0
- package/dist/recipe/compile/shared.d.ts +442 -0
- package/dist/recipe/compile/shared.d.ts.map +1 -0
- package/dist/recipe/compile/shared.js +843 -0
- package/dist/recipe/compile/site-template.d.ts +52 -0
- package/dist/recipe/compile/site-template.d.ts.map +1 -0
- package/dist/recipe/compile/site-template.js +140 -0
- package/dist/recipe/compile/site.d.ts +44 -0
- package/dist/recipe/compile/site.d.ts.map +1 -0
- package/dist/recipe/compile/site.js +127 -0
- package/dist/recipe/compile.d.ts +93 -0
- package/dist/recipe/compile.d.ts.map +1 -0
- package/dist/recipe/compile.js +741 -0
- package/dist/recipe/execute.d.ts +119 -0
- package/dist/recipe/execute.d.ts.map +1 -0
- package/dist/recipe/execute.js +273 -0
- package/dist/recipe/guids.d.ts +400 -0
- package/dist/recipe/guids.d.ts.map +1 -0
- package/dist/recipe/guids.js +488 -0
- package/dist/recipe/index.d.ts +32 -0
- package/dist/recipe/index.d.ts.map +1 -0
- package/dist/recipe/index.js +156 -0
- package/dist/recipe/io.d.ts +21 -0
- package/dist/recipe/io.d.ts.map +1 -0
- package/dist/recipe/io.js +147 -0
- package/dist/recipe/ir/operations.d.ts +692 -0
- package/dist/recipe/ir/operations.d.ts.map +1 -0
- package/dist/recipe/ir/operations.js +347 -0
- package/dist/recipe/ir/sitecore-templates.d.ts +455 -0
- package/dist/recipe/ir/sitecore-templates.d.ts.map +1 -0
- package/dist/recipe/ir/sitecore-templates.js +465 -0
- package/dist/recipe/layout/emit.d.ts +101 -0
- package/dist/recipe/layout/emit.d.ts.map +1 -0
- package/dist/recipe/layout/emit.js +127 -0
- package/dist/recipe/layout/templates-mapping.d.ts +28 -0
- package/dist/recipe/layout/templates-mapping.d.ts.map +1 -0
- package/dist/recipe/layout/templates-mapping.js +29 -0
- package/dist/recipe/plan.d.ts +134 -0
- package/dist/recipe/plan.d.ts.map +1 -0
- package/dist/recipe/plan.js +565 -0
- package/dist/recipe/policy.d.ts +43 -0
- package/dist/recipe/policy.d.ts.map +1 -0
- package/dist/recipe/policy.js +75 -0
- package/dist/recipe/rollback.d.ts +72 -0
- package/dist/recipe/rollback.d.ts.map +1 -0
- package/dist/recipe/rollback.js +130 -0
- package/dist/recipe/schema/field-types.d.ts +72 -0
- package/dist/recipe/schema/field-types.d.ts.map +1 -0
- package/dist/recipe/schema/field-types.js +118 -0
- package/dist/recipe/schema/recipe.d.ts +1545 -0
- package/dist/recipe/schema/recipe.d.ts.map +1 -0
- package/dist/recipe/schema/recipe.js +1175 -0
- package/dist/recipe/schema/source-fields.d.ts +48 -0
- package/dist/recipe/schema/source-fields.d.ts.map +1 -0
- package/dist/recipe/schema/source-fields.js +79 -0
- package/dist/recipe/tasks/compile.d.ts +14 -0
- package/dist/recipe/tasks/compile.d.ts.map +1 -0
- package/dist/recipe/tasks/compile.js +89 -0
- package/dist/recipe/tasks/diff.d.ts +17 -0
- package/dist/recipe/tasks/diff.d.ts.map +1 -0
- package/dist/recipe/tasks/diff.js +6 -0
- package/dist/recipe/tasks/index.d.ts +9 -0
- package/dist/recipe/tasks/index.d.ts.map +1 -0
- package/dist/recipe/tasks/index.js +13 -0
- package/dist/recipe/tasks/placeholder-allow.d.ts +53 -0
- package/dist/recipe/tasks/placeholder-allow.d.ts.map +1 -0
- package/dist/recipe/tasks/placeholder-allow.js +218 -0
- package/dist/recipe/tasks/plan.d.ts +11 -0
- package/dist/recipe/tasks/plan.d.ts.map +1 -0
- package/dist/recipe/tasks/plan.js +72 -0
- package/dist/recipe/tasks/prune-defaults.d.ts +90 -0
- package/dist/recipe/tasks/prune-defaults.d.ts.map +1 -0
- package/dist/recipe/tasks/prune-defaults.js +184 -0
- package/dist/recipe/tasks/push.d.ts +18 -0
- package/dist/recipe/tasks/push.d.ts.map +1 -0
- package/dist/recipe/tasks/push.js +417 -0
- package/dist/recipe/tasks/shared.d.ts +152 -0
- package/dist/recipe/tasks/shared.d.ts.map +1 -0
- package/dist/recipe/tasks/shared.js +94 -0
- package/dist/recipe/validate.d.ts +103 -0
- package/dist/recipe/validate.d.ts.map +1 -0
- package/dist/recipe/validate.js +297 -0
- package/dist/serialization/commands.d.ts +48 -0
- package/dist/serialization/commands.d.ts.map +1 -0
- package/dist/serialization/commands.js +175 -0
- package/dist/serialization/compare.d.ts +29 -0
- package/dist/serialization/compare.d.ts.map +1 -0
- package/dist/serialization/compare.js +124 -0
- package/dist/serialization/field-filter.d.ts +7 -0
- package/dist/serialization/field-filter.d.ts.map +1 -0
- package/dist/serialization/field-filter.js +20 -0
- package/dist/serialization/filesystem-store/constants.d.ts +3 -0
- package/dist/serialization/filesystem-store/constants.d.ts.map +1 -0
- package/dist/serialization/filesystem-store/constants.js +5 -0
- package/dist/serialization/filesystem-store/index.d.ts +4 -0
- package/dist/serialization/filesystem-store/index.d.ts.map +1 -0
- package/dist/serialization/filesystem-store/index.js +15 -0
- package/dist/serialization/filesystem-store/items.d.ts +10 -0
- package/dist/serialization/filesystem-store/items.d.ts.map +1 -0
- package/dist/serialization/filesystem-store/items.js +64 -0
- package/dist/serialization/filesystem-store/roles.d.ts +6 -0
- package/dist/serialization/filesystem-store/roles.d.ts.map +1 -0
- package/dist/serialization/filesystem-store/roles.js +46 -0
- package/dist/serialization/filesystem-store/users.d.ts +6 -0
- package/dist/serialization/filesystem-store/users.d.ts.map +1 -0
- package/dist/serialization/filesystem-store/users.js +46 -0
- package/dist/serialization/filesystem-store/utils.d.ts +2 -0
- package/dist/serialization/filesystem-store/utils.d.ts.map +1 -0
- package/dist/serialization/filesystem-store/utils.js +17 -0
- package/dist/serialization/filesystem-store.d.ts +2 -0
- package/dist/serialization/filesystem-store.d.ts.map +1 -0
- package/dist/serialization/filesystem-store.js +17 -0
- package/dist/serialization/item-path.d.ts +32 -0
- package/dist/serialization/item-path.d.ts.map +1 -0
- package/dist/serialization/item-path.js +123 -0
- package/dist/serialization/path-provider.d.ts +12 -0
- package/dist/serialization/path-provider.d.ts.map +1 -0
- package/dist/serialization/path-provider.js +271 -0
- package/dist/serialization/signature.d.ts +4 -0
- package/dist/serialization/signature.d.ts.map +1 -0
- package/dist/serialization/signature.js +71 -0
- package/dist/serialization/sitecore-api/auth.d.ts +31 -0
- package/dist/serialization/sitecore-api/auth.d.ts.map +1 -0
- package/dist/serialization/sitecore-api/auth.js +319 -0
- package/dist/serialization/sitecore-api/graphql.d.ts +12 -0
- package/dist/serialization/sitecore-api/graphql.d.ts.map +1 -0
- package/dist/serialization/sitecore-api/graphql.js +20 -0
- package/dist/serialization/sitecore-api/history.d.ts +9 -0
- package/dist/serialization/sitecore-api/history.d.ts.map +1 -0
- package/dist/serialization/sitecore-api/history.js +36 -0
- package/dist/serialization/sitecore-api/index.d.ts +7 -0
- package/dist/serialization/sitecore-api/index.d.ts.map +1 -0
- package/dist/serialization/sitecore-api/index.js +22 -0
- package/dist/serialization/sitecore-api/items.d.ts +8 -0
- package/dist/serialization/sitecore-api/items.d.ts.map +1 -0
- package/dist/serialization/sitecore-api/items.js +132 -0
- package/dist/serialization/sitecore-api/publish.d.ts +14 -0
- package/dist/serialization/sitecore-api/publish.d.ts.map +1 -0
- package/dist/serialization/sitecore-api/publish.js +43 -0
- package/dist/serialization/sitecore-api/roles.d.ts +9 -0
- package/dist/serialization/sitecore-api/roles.d.ts.map +1 -0
- package/dist/serialization/sitecore-api/roles.js +42 -0
- package/dist/serialization/sitecore-api/users.d.ts +9 -0
- package/dist/serialization/sitecore-api/users.d.ts.map +1 -0
- package/dist/serialization/sitecore-api/users.js +62 -0
- package/dist/serialization/sitecore-api.d.ts +2 -0
- package/dist/serialization/sitecore-api.d.ts.map +1 -0
- package/dist/serialization/sitecore-api.js +17 -0
- package/dist/serialization/tasks/diff.d.ts +3 -0
- package/dist/serialization/tasks/diff.d.ts.map +1 -0
- package/dist/serialization/tasks/diff.js +109 -0
- package/dist/serialization/tasks/env/constants.d.ts +2 -0
- package/dist/serialization/tasks/env/constants.d.ts.map +1 -0
- package/dist/serialization/tasks/env/constants.js +4 -0
- package/dist/serialization/tasks/env/deploy-token.d.ts +3 -0
- package/dist/serialization/tasks/env/deploy-token.d.ts.map +1 -0
- package/dist/serialization/tasks/env/deploy-token.js +128 -0
- package/dist/serialization/tasks/env/index.d.ts +5 -0
- package/dist/serialization/tasks/env/index.d.ts.map +1 -0
- package/dist/serialization/tasks/env/index.js +11 -0
- package/dist/serialization/tasks/env/init/auth.d.ts +24 -0
- package/dist/serialization/tasks/env/init/auth.d.ts.map +1 -0
- package/dist/serialization/tasks/env/init/auth.js +122 -0
- package/dist/serialization/tasks/env/init/deploy-lookup.d.ts +22 -0
- package/dist/serialization/tasks/env/init/deploy-lookup.d.ts.map +1 -0
- package/dist/serialization/tasks/env/init/deploy-lookup.js +244 -0
- package/dist/serialization/tasks/env/init.d.ts +3 -0
- package/dist/serialization/tasks/env/init.d.ts.map +1 -0
- package/dist/serialization/tasks/env/init.js +253 -0
- package/dist/serialization/tasks/env/logout.d.ts +3 -0
- package/dist/serialization/tasks/env/logout.d.ts.map +1 -0
- package/dist/serialization/tasks/env/logout.js +61 -0
- package/dist/serialization/tasks/env/status.d.ts +3 -0
- package/dist/serialization/tasks/env/status.d.ts.map +1 -0
- package/dist/serialization/tasks/env/status.js +149 -0
- package/dist/serialization/tasks/env.d.ts +2 -0
- package/dist/serialization/tasks/env.d.ts.map +1 -0
- package/dist/serialization/tasks/env.js +17 -0
- package/dist/serialization/tasks/helpers/collect.d.ts +8 -0
- package/dist/serialization/tasks/helpers/collect.d.ts.map +1 -0
- package/dist/serialization/tasks/helpers/collect.js +29 -0
- package/dist/serialization/tasks/helpers/commands.d.ts +5 -0
- package/dist/serialization/tasks/helpers/commands.d.ts.map +1 -0
- package/dist/serialization/tasks/helpers/commands.js +14 -0
- package/dist/serialization/tasks/helpers/filesystem.d.ts +6 -0
- package/dist/serialization/tasks/helpers/filesystem.d.ts.map +1 -0
- package/dist/serialization/tasks/helpers/filesystem.js +27 -0
- package/dist/serialization/tasks/helpers/index.d.ts +6 -0
- package/dist/serialization/tasks/helpers/index.d.ts.map +1 -0
- package/dist/serialization/tasks/helpers/index.js +13 -0
- package/dist/serialization/tasks/helpers/items.d.ts +3 -0
- package/dist/serialization/tasks/helpers/items.d.ts.map +1 -0
- package/dist/serialization/tasks/helpers/items.js +5 -0
- package/dist/serialization/tasks/helpers/sitecore.d.ts +5 -0
- package/dist/serialization/tasks/helpers/sitecore.d.ts.map +1 -0
- package/dist/serialization/tasks/helpers/sitecore.js +109 -0
- package/dist/serialization/tasks/helpers.d.ts +2 -0
- package/dist/serialization/tasks/helpers.d.ts.map +1 -0
- package/dist/serialization/tasks/helpers.js +17 -0
- package/dist/serialization/tasks/index.d.ts +8 -0
- package/dist/serialization/tasks/index.d.ts.map +1 -0
- package/dist/serialization/tasks/index.js +19 -0
- package/dist/serialization/tasks/info.d.ts +4 -0
- package/dist/serialization/tasks/info.d.ts.map +1 -0
- package/dist/serialization/tasks/info.js +82 -0
- package/dist/serialization/tasks/package.d.ts +4 -0
- package/dist/serialization/tasks/package.d.ts.map +1 -0
- package/dist/serialization/tasks/package.js +171 -0
- package/dist/serialization/tasks/pull.d.ts +3 -0
- package/dist/serialization/tasks/pull.d.ts.map +1 -0
- package/dist/serialization/tasks/pull.js +82 -0
- package/dist/serialization/tasks/push.d.ts +3 -0
- package/dist/serialization/tasks/push.d.ts.map +1 -0
- package/dist/serialization/tasks/push.js +101 -0
- package/dist/serialization/tasks/roles.d.ts +6 -0
- package/dist/serialization/tasks/roles.d.ts.map +1 -0
- package/dist/serialization/tasks/roles.js +103 -0
- package/dist/serialization/tasks/shared.d.ts +19 -0
- package/dist/serialization/tasks/shared.d.ts.map +1 -0
- package/dist/serialization/tasks/shared.js +59 -0
- package/dist/serialization/tasks/types.d.ts +73 -0
- package/dist/serialization/tasks/types.d.ts.map +1 -0
- package/dist/serialization/tasks/types.js +8 -0
- package/dist/serialization/tasks/users.d.ts +5 -0
- package/dist/serialization/tasks/users.d.ts.map +1 -0
- package/dist/serialization/tasks/users.js +90 -0
- package/dist/serialization/tasks/validate.d.ts +5 -0
- package/dist/serialization/tasks/validate.d.ts.map +1 -0
- package/dist/serialization/tasks/validate.js +50 -0
- package/dist/serialization/tasks/watch.d.ts +3 -0
- package/dist/serialization/tasks/watch.d.ts.map +1 -0
- package/dist/serialization/tasks/watch.js +75 -0
- package/dist/serialization/tasks.d.ts +4 -0
- package/dist/serialization/tasks.d.ts.map +1 -0
- package/dist/serialization/tasks.js +19 -0
- package/dist/serialization/tree-spec.d.ts +51 -0
- package/dist/serialization/tree-spec.d.ts.map +1 -0
- package/dist/serialization/tree-spec.js +241 -0
- package/dist/serialization/types.d.ts +75 -0
- package/dist/serialization/types.d.ts.map +1 -0
- package/dist/serialization/types.js +2 -0
- package/dist/serialization/wildcard.d.ts +3 -0
- package/dist/serialization/wildcard.d.ts.map +1 -0
- package/dist/serialization/wildcard.js +24 -0
- package/dist/serialization/yaml.d.ts +9 -0
- package/dist/serialization/yaml.d.ts.map +1 -0
- package/dist/serialization/yaml.js +307 -0
- package/dist/shared/browser.d.ts +2 -0
- package/dist/shared/browser.d.ts.map +1 -0
- package/dist/shared/browser.js +36 -0
- package/dist/shared/cli-options.d.ts +17 -0
- package/dist/shared/cli-options.d.ts.map +1 -0
- package/dist/shared/cli-options.js +8 -0
- package/dist/shared/cli-tasks.d.ts +38 -0
- package/dist/shared/cli-tasks.d.ts.map +1 -0
- package/dist/shared/cli-tasks.js +108 -0
- package/dist/shared/config-template.d.ts +23 -0
- package/dist/shared/config-template.d.ts.map +1 -0
- package/dist/shared/config-template.js +38 -0
- package/dist/shared/env.d.ts +28 -0
- package/dist/shared/env.d.ts.map +1 -0
- package/dist/shared/env.js +38 -0
- package/dist/shared/errors.d.ts +21 -0
- package/dist/shared/errors.d.ts.map +1 -0
- package/dist/shared/errors.js +59 -0
- package/dist/shared/graphql.d.ts +76 -0
- package/dist/shared/graphql.d.ts.map +1 -0
- package/dist/shared/graphql.js +222 -0
- package/dist/shared/history.d.ts +12 -0
- package/dist/shared/history.d.ts.map +1 -0
- package/dist/shared/history.js +62 -0
- package/dist/shared/keychain.d.ts +15 -0
- package/dist/shared/keychain.d.ts.map +1 -0
- package/dist/shared/keychain.js +177 -0
- package/dist/shared/logger.d.ts +24 -0
- package/dist/shared/logger.d.ts.map +1 -0
- package/dist/shared/logger.js +157 -0
- package/dist/shared/output.d.ts +7 -0
- package/dist/shared/output.d.ts.map +1 -0
- package/dist/shared/output.js +21 -0
- package/dist/shared/prompt.d.ts +5 -0
- package/dist/shared/prompt.d.ts.map +1 -0
- package/dist/shared/prompt.js +87 -0
- package/dist/shared/redact.d.ts +3 -0
- package/dist/shared/redact.d.ts.map +1 -0
- package/dist/shared/redact.js +47 -0
- package/dist/shared/spinner.d.ts +5 -0
- package/dist/shared/spinner.d.ts.map +1 -0
- package/dist/shared/spinner.js +89 -0
- package/dist/shared/style.d.ts +2 -0
- package/dist/shared/style.d.ts.map +1 -0
- package/dist/shared/style.js +61 -0
- package/dist/shared/telemetry.d.ts +21 -0
- package/dist/shared/telemetry.d.ts.map +1 -0
- package/dist/shared/telemetry.js +226 -0
- package/dist/shared/validate.d.ts +3 -0
- package/dist/shared/validate.d.ts.map +1 -0
- package/dist/shared/validate.js +32 -0
- package/dist/sites/api/collections.d.ts +25 -0
- package/dist/sites/api/collections.d.ts.map +1 -0
- package/dist/sites/api/collections.js +21 -0
- package/dist/sites/api/index.d.ts +26 -0
- package/dist/sites/api/index.d.ts.map +1 -0
- package/dist/sites/api/index.js +55 -0
- package/dist/sites/api/jobs.d.ts +31 -0
- package/dist/sites/api/jobs.d.ts.map +1 -0
- package/dist/sites/api/jobs.js +10 -0
- package/dist/sites/api/languages.d.ts +22 -0
- package/dist/sites/api/languages.d.ts.map +1 -0
- package/dist/sites/api/languages.js +18 -0
- package/dist/sites/api/request.d.ts +24 -0
- package/dist/sites/api/request.d.ts.map +1 -0
- package/dist/sites/api/request.js +99 -0
- package/dist/sites/api/sites.d.ts +53 -0
- package/dist/sites/api/sites.d.ts.map +1 -0
- package/dist/sites/api/sites.js +41 -0
- package/dist/sites/api/types.d.ts +29 -0
- package/dist/sites/api/types.d.ts.map +1 -0
- package/dist/sites/api/types.js +4 -0
- package/package.json +109 -0
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
3
|
+
"$id": "https://schemas.sitecoreai.dev/v1/serialization-module.schema.json",
|
|
4
|
+
"title": "SitecoreAI Serialization Module",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["namespace"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"$schema": { "type": "string" },
|
|
10
|
+
"namespace": { "type": "string" },
|
|
11
|
+
"description": { "type": "string" },
|
|
12
|
+
"references": { "type": "array", "items": { "type": "string" } },
|
|
13
|
+
"items": { "$ref": "#/definitions/ModuleItems" },
|
|
14
|
+
"roles": { "type": "array", "items": { "$ref": "#/definitions/RolePredicate" } },
|
|
15
|
+
"users": { "type": "array", "items": { "$ref": "#/definitions/UserPredicate" } },
|
|
16
|
+
"tags": { "type": "array", "items": { "type": "string" } }
|
|
17
|
+
},
|
|
18
|
+
"definitions": {
|
|
19
|
+
"ModuleItems": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"additionalProperties": false,
|
|
22
|
+
"properties": {
|
|
23
|
+
"path": { "type": "string" },
|
|
24
|
+
"includes": { "type": "array", "items": { "$ref": "#/definitions/ModuleInclude" } },
|
|
25
|
+
"excludedFields": {
|
|
26
|
+
"type": "array",
|
|
27
|
+
"items": { "$ref": "#/definitions/FieldFilter" }
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"ModuleInclude": {
|
|
32
|
+
"type": "object",
|
|
33
|
+
"additionalProperties": false,
|
|
34
|
+
"required": ["name", "path"],
|
|
35
|
+
"properties": {
|
|
36
|
+
"name": { "type": "string" },
|
|
37
|
+
"database": { "type": "string" },
|
|
38
|
+
"path": { "type": "string" },
|
|
39
|
+
"scope": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"enum": [
|
|
42
|
+
"SingleItem",
|
|
43
|
+
"ItemAndChildren",
|
|
44
|
+
"DescendantsOnly",
|
|
45
|
+
"ItemAndDescendants",
|
|
46
|
+
"singleItem",
|
|
47
|
+
"itemAndChildren",
|
|
48
|
+
"descendantsOnly",
|
|
49
|
+
"itemAndDescendants"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"allowedPushOperations": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"enum": [
|
|
55
|
+
"CreateOnly",
|
|
56
|
+
"CreateAndUpdate",
|
|
57
|
+
"CreateUpdateAndDelete",
|
|
58
|
+
"createOnly",
|
|
59
|
+
"createAndUpdate",
|
|
60
|
+
"createUpdateAndDelete"
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
"maxRelativePathLength": { "type": "integer", "format": "int32", "minimum": 1 },
|
|
64
|
+
"rules": { "type": "array", "items": { "$ref": "#/definitions/ModuleRule" } }
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"ModuleRule": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"additionalProperties": false,
|
|
70
|
+
"required": ["path"],
|
|
71
|
+
"properties": {
|
|
72
|
+
"path": { "type": "string" },
|
|
73
|
+
"scope": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"enum": [
|
|
76
|
+
"Ignored",
|
|
77
|
+
"SingleItem",
|
|
78
|
+
"ItemAndChildren",
|
|
79
|
+
"ItemAndDescendants",
|
|
80
|
+
"ignored",
|
|
81
|
+
"singleItem",
|
|
82
|
+
"itemAndChildren",
|
|
83
|
+
"itemAndDescendants"
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
"allowedPushOperations": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"enum": [
|
|
89
|
+
"CreateOnly",
|
|
90
|
+
"CreateAndUpdate",
|
|
91
|
+
"CreateUpdateAndDelete",
|
|
92
|
+
"createOnly",
|
|
93
|
+
"createAndUpdate",
|
|
94
|
+
"createUpdateAndDelete"
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
"alias": { "type": "string" }
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"FieldFilter": {
|
|
101
|
+
"type": "object",
|
|
102
|
+
"additionalProperties": false,
|
|
103
|
+
"properties": {
|
|
104
|
+
"fieldId": { "type": "string" },
|
|
105
|
+
"description": { "type": "string" }
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"RolePredicate": {
|
|
109
|
+
"type": "object",
|
|
110
|
+
"additionalProperties": false,
|
|
111
|
+
"required": ["domain", "pattern"],
|
|
112
|
+
"properties": {
|
|
113
|
+
"domain": { "type": "string" },
|
|
114
|
+
"pattern": { "type": "string" }
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"UserPredicate": {
|
|
118
|
+
"type": "object",
|
|
119
|
+
"additionalProperties": false,
|
|
120
|
+
"required": ["domain", "pattern"],
|
|
121
|
+
"properties": {
|
|
122
|
+
"domain": { "type": "string" },
|
|
123
|
+
"pattern": { "type": "string" }
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
3
|
+
"$id": "https://schemas.sitecoreai.dev/v1/telemetry.schema.json",
|
|
4
|
+
"title": "SitecoreAI CLI Telemetry Event",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema_version", "nonce", "event", "command", "v", "ci"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema_version": { "type": "string" },
|
|
10
|
+
"nonce": { "type": "string" },
|
|
11
|
+
"event": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"enum": ["command_start", "command_success", "command_error"]
|
|
14
|
+
},
|
|
15
|
+
"command": { "type": "string" },
|
|
16
|
+
"durationMs": { "type": "integer", "minimum": 0 },
|
|
17
|
+
"error": { "type": "boolean" },
|
|
18
|
+
"v": { "type": "string" },
|
|
19
|
+
"ci": { "type": "boolean" }
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import type { FilesystemTreeSpec } from "../serialization/tree-spec";
|
|
2
|
+
import type { FieldFilter, RolePredicateItem, UserPredicateItem } from "../serialization/types";
|
|
3
|
+
export type SerializationRootConfiguration = {
|
|
4
|
+
defaultMaxRelativeItemPathLength: number;
|
|
5
|
+
defaultModuleRelativeSerializationPath: string;
|
|
6
|
+
removeOrphansForRoles: boolean;
|
|
7
|
+
removeOrphansForUsers: boolean;
|
|
8
|
+
continueOnItemFailure: boolean;
|
|
9
|
+
excludedFields: FieldFilter[];
|
|
10
|
+
};
|
|
11
|
+
export type Settings = {
|
|
12
|
+
telemetryEnabled: boolean;
|
|
13
|
+
cacheAuthenticationToken: boolean;
|
|
14
|
+
versionComparisonEnabled: boolean;
|
|
15
|
+
apiClientTimeoutInMinutes: number;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Nested form of the recipe parent paths for a single env profile.
|
|
19
|
+
* Authors may set these under `envProfiles.<name>.recipeRoots` instead
|
|
20
|
+
* of (or in addition to) the flat `templatesRoot` / `renderingsRoot` /
|
|
21
|
+
* etc. fields. At config-load time `readRootConfiguration` flattens
|
|
22
|
+
* the nested form into the flat fields so internal consumers see one
|
|
23
|
+
* shape.
|
|
24
|
+
*
|
|
25
|
+
* If the same field is set both nested and flat, **nested wins** —
|
|
26
|
+
* `recipeRoots` is the preferred form for new configs. A duplication
|
|
27
|
+
* warning fires so the operator can pick a side.
|
|
28
|
+
*/
|
|
29
|
+
export type EnvironmentRecipeRoots = {
|
|
30
|
+
templates?: string;
|
|
31
|
+
renderings?: string;
|
|
32
|
+
components?: string;
|
|
33
|
+
contentModels?: string;
|
|
34
|
+
partialDesigns?: string;
|
|
35
|
+
pageDesigns?: string;
|
|
36
|
+
contentItems?: string;
|
|
37
|
+
headlessVariants?: string;
|
|
38
|
+
availableRenderings?: string;
|
|
39
|
+
enumerations?: string;
|
|
40
|
+
placeholderSettings?: string[];
|
|
41
|
+
};
|
|
42
|
+
export type EnvironmentConfiguration = {
|
|
43
|
+
name?: string;
|
|
44
|
+
host?: string;
|
|
45
|
+
authority?: string;
|
|
46
|
+
environmentType?: "cm" | "eh";
|
|
47
|
+
allowWrite?: boolean;
|
|
48
|
+
accessToken?: string;
|
|
49
|
+
refreshToken?: string;
|
|
50
|
+
refreshTokenParameters?: Record<string, string>;
|
|
51
|
+
expiresIn?: number | null;
|
|
52
|
+
lastUpdated?: string | null;
|
|
53
|
+
deployToken?: string;
|
|
54
|
+
deployTokenExpiresIn?: number | null;
|
|
55
|
+
deployTokenLastUpdated?: string | null;
|
|
56
|
+
editingHostEnvironmentIds?: string[];
|
|
57
|
+
organizationId?: string;
|
|
58
|
+
tenantId?: string;
|
|
59
|
+
projectId?: string;
|
|
60
|
+
environmentId?: string;
|
|
61
|
+
clientId?: string;
|
|
62
|
+
clientSecret?: string;
|
|
63
|
+
useClientCredentials?: boolean;
|
|
64
|
+
variables?: Record<string, string>;
|
|
65
|
+
audience?: string;
|
|
66
|
+
ref?: string;
|
|
67
|
+
cacheAuthenticationToken?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Sitecore parent path under which `scai recipe compile|push` creates
|
|
70
|
+
* template items. Tenant-specific because each site has its own
|
|
71
|
+
* `/sitecore/templates/Project/<site>/Components` location.
|
|
72
|
+
*
|
|
73
|
+
* Used as fallback when the CLI flag `--templates-root` is not passed.
|
|
74
|
+
*/
|
|
75
|
+
templatesRoot?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Sitecore parent path under which `scai recipe compile|push` creates
|
|
78
|
+
* rendering items. Tenant-specific.
|
|
79
|
+
*
|
|
80
|
+
* Used as fallback when the CLI flag `--renderings-root` is not passed.
|
|
81
|
+
*/
|
|
82
|
+
renderingsRoot?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Sitecore parent path under which `scai recipe compile|push` creates
|
|
85
|
+
* component template items in the per-site folder layout
|
|
86
|
+
* (`<componentsRoot>/<section>/<Component>`). When unset, the compiler
|
|
87
|
+
* falls back to `templatesRoot` and emits the legacy flat layout.
|
|
88
|
+
* Typically the same path as `templatesRoot` but kept distinct so
|
|
89
|
+
* future per-site nesting (`Project/<site>/Components`) doesn't
|
|
90
|
+
* conflate with the legacy fallback.
|
|
91
|
+
*
|
|
92
|
+
* Used as fallback when the CLI flag `--components-root` is not passed.
|
|
93
|
+
*/
|
|
94
|
+
componentsRoot?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Sitecore parent path under which `scai recipe compile|push` creates
|
|
97
|
+
* content-template items
|
|
98
|
+
* (`<contentModelsRoot>/<group>/<name>` when grouped, flat otherwise).
|
|
99
|
+
* When unset, content templates fall back to `templatesRoot` — which
|
|
100
|
+
* means they land mixed in with components, not separated.
|
|
101
|
+
*
|
|
102
|
+
* Used as fallback when the CLI flag `--content-models-root` is not passed.
|
|
103
|
+
*/
|
|
104
|
+
contentModelsRoot?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Sitecore parent path under which `scai recipe compile|push` creates
|
|
107
|
+
* partial-design items (Phase 4). Typically
|
|
108
|
+
* `/sitecore/content/<site>/Presentation/Partial Designs`.
|
|
109
|
+
*
|
|
110
|
+
* Optional — only `PartialDesignRecipe` compilation requires it.
|
|
111
|
+
*/
|
|
112
|
+
partialDesignsRoot?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Sitecore parent path under which `scai recipe compile|push` creates
|
|
115
|
+
* page-design items (Phase 4). Typically
|
|
116
|
+
* `/sitecore/content/<site>/Presentation/Page Designs`.
|
|
117
|
+
*
|
|
118
|
+
* Optional — only `PageDesignRecipe` compilation requires it. Also
|
|
119
|
+
* used by `runRecipePush` to seed `crossRecipeRefs` so the cross-
|
|
120
|
+
* recipe `TemplatesMapping` aggregate op can resolve its target.
|
|
121
|
+
*/
|
|
122
|
+
pageDesignsRoot?: string;
|
|
123
|
+
/**
|
|
124
|
+
* Sitecore parent path under which `scai recipe compile|push` creates
|
|
125
|
+
* shared content items (Phase 4). Typically
|
|
126
|
+
* `/sitecore/content/<site>/Data` or a sub-bucket.
|
|
127
|
+
*
|
|
128
|
+
* Optional — only `ContentItemRecipe` compilation requires it.
|
|
129
|
+
*/
|
|
130
|
+
contentItemsRoot?: string;
|
|
131
|
+
/**
|
|
132
|
+
* Sitecore parent path under which `scai recipe compile|push` creates
|
|
133
|
+
* SXA Headless rendering variants. Typically
|
|
134
|
+
* `/sitecore/content/<siteCollection>/<site>/Presentation/Headless Variants`.
|
|
135
|
+
*
|
|
136
|
+
* Variants for a recipe `R` with section `S` and N variants land at
|
|
137
|
+
* `<headlessVariantsRoot>/<S>/<R.name>/<variant>` and conform to the
|
|
138
|
+
* SXA `Variant Definition` template; the section + per-rendering
|
|
139
|
+
* groupings use `HeadlessVariantsGrouping` / `HeadlessVariants`
|
|
140
|
+
* respectively (`SITECORE_TEMPLATES.HEADLESS_VARIANTS_*`).
|
|
141
|
+
*
|
|
142
|
+
* Required for any recipe that declares `variants` — without it the
|
|
143
|
+
* compiler throws INPUT_INVALID before emitting variant ops, since
|
|
144
|
+
* the legacy "variants live under the rendering item" layout no
|
|
145
|
+
* longer matches SXA Headless.
|
|
146
|
+
*/
|
|
147
|
+
headlessVariantsRoot?: string;
|
|
148
|
+
/**
|
|
149
|
+
* Sitecore parent path under which `scai recipe compile|push` creates
|
|
150
|
+
* SXA `Available Renderings` section items. Typically
|
|
151
|
+
* `/sitecore/content/<siteCollection>/<site>/Presentation/Available Renderings`.
|
|
152
|
+
*
|
|
153
|
+
* `compileRecipeSet` aggregates every component-template recipe by
|
|
154
|
+
* `section` and emits one `Available Renderings` child per section,
|
|
155
|
+
* setting the `Renderings` field to the pipe-separated rendering
|
|
156
|
+
* itemIds. SXA's editor reads this list when composing pages.
|
|
157
|
+
*
|
|
158
|
+
* Optional — when unset, the compileRecipeSet aggregator skips the
|
|
159
|
+
* Available Renderings emission entirely. Pushing without it leaves
|
|
160
|
+
* the rendering list unscoped (the SXA editor falls back to the
|
|
161
|
+
* tenant-wide list, which usually isn't what you want).
|
|
162
|
+
*/
|
|
163
|
+
availableRenderingsRoot?: string;
|
|
164
|
+
/**
|
|
165
|
+
* Per-site enumerations bucket — typically
|
|
166
|
+
* `/sitecore/content/<siteCollection>/<site>/Presentation/Enumerations`.
|
|
167
|
+
* Each `EnumerationRecipe` lands as `<enumerationsRoot>/<EnumName>`
|
|
168
|
+
* with one child item per declared value. Required for
|
|
169
|
+
* `EnumerationRecipe` compilation, AND for any recipe whose fields
|
|
170
|
+
* carry `sitecore.enumHandle` (the Droplink Source paths into this
|
|
171
|
+
* bucket).
|
|
172
|
+
*/
|
|
173
|
+
enumerationsRoot?: string;
|
|
174
|
+
/**
|
|
175
|
+
* Sitecore content-tree paths to walk when resolving recipe-declared
|
|
176
|
+
* `placeholders` to actual Placeholder Settings items (matched by
|
|
177
|
+
* the items' `Placeholder Key` field). Both per-site
|
|
178
|
+
* `<site>/Presentation/Placeholder Settings` and project-level
|
|
179
|
+
* `/sitecore/Layout/Placeholder Settings/Project/<site>` typically
|
|
180
|
+
* need to be searched.
|
|
181
|
+
*
|
|
182
|
+
* Empty / unset → recipe `placeholders` declarations are silently
|
|
183
|
+
* ignored. The orchestrator's ephemeral CLI config sets this; not
|
|
184
|
+
* commonly hand-authored.
|
|
185
|
+
*/
|
|
186
|
+
placeholderSettingsRoots?: string[];
|
|
187
|
+
/**
|
|
188
|
+
* Preferred nested form of the 11 `*Root` fields above. When set,
|
|
189
|
+
* `readRootConfiguration` flattens entries into the matching flat
|
|
190
|
+
* fields before internal consumers read them. New configs should
|
|
191
|
+
* use this shape — it scales as new recipe-tree roots get added
|
|
192
|
+
* without bloating each env profile.
|
|
193
|
+
*/
|
|
194
|
+
recipeRoots?: EnvironmentRecipeRoots;
|
|
195
|
+
};
|
|
196
|
+
export type RootConfiguration = {
|
|
197
|
+
modules: string[];
|
|
198
|
+
serialization: SerializationRootConfiguration;
|
|
199
|
+
settings: Settings;
|
|
200
|
+
environments: Record<string, EnvironmentConfiguration>;
|
|
201
|
+
physicalPath: string;
|
|
202
|
+
defaultEnvironment: string;
|
|
203
|
+
/**
|
|
204
|
+
* Globs (relative to the project root) that locate `.recipe.ts` /
|
|
205
|
+
* `.recipe.json` files for `scai recipe compile|plan|push`. When the
|
|
206
|
+
* commands run without `--input`, they fall back to this glob set.
|
|
207
|
+
* Defaults to `["recipes/**\/*.recipe.ts"]` if unset.
|
|
208
|
+
*/
|
|
209
|
+
recipes: string[];
|
|
210
|
+
};
|
|
211
|
+
export type RootConfigurationFile = {
|
|
212
|
+
$schema?: string;
|
|
213
|
+
modules?: string[];
|
|
214
|
+
serialization?: Partial<SerializationRootConfiguration>;
|
|
215
|
+
settings?: Partial<Settings>;
|
|
216
|
+
envProfiles?: Record<string, EnvironmentConfiguration>;
|
|
217
|
+
defaultEnvProfile?: string;
|
|
218
|
+
/** Globs locating recipe files. See `RootConfiguration.recipes`. */
|
|
219
|
+
recipes?: string[];
|
|
220
|
+
[key: string]: unknown;
|
|
221
|
+
};
|
|
222
|
+
export type UserConfiguration = {
|
|
223
|
+
envProfiles?: Record<string, EnvironmentConfiguration>;
|
|
224
|
+
defaultEnvProfile?: string;
|
|
225
|
+
};
|
|
226
|
+
export type SerializationModuleConfigurationItems = {
|
|
227
|
+
path?: string;
|
|
228
|
+
includes: FilesystemTreeSpec[];
|
|
229
|
+
excludedFields: FieldFilter[];
|
|
230
|
+
};
|
|
231
|
+
export type SerializationModuleConfiguration = {
|
|
232
|
+
namespace: string;
|
|
233
|
+
description?: string;
|
|
234
|
+
references: string[];
|
|
235
|
+
items: SerializationModuleConfigurationItems;
|
|
236
|
+
roles: RolePredicateItem[];
|
|
237
|
+
users: UserPredicateItem[];
|
|
238
|
+
tags: string[];
|
|
239
|
+
sourceIdentifier: string;
|
|
240
|
+
};
|
|
241
|
+
export declare const DEFAULT_SERIALIZATION: SerializationRootConfiguration;
|
|
242
|
+
export declare const DEFAULT_SETTINGS: Settings;
|
|
243
|
+
export declare const DEFAULT_ENVIRONMENT = "default";
|
|
244
|
+
export declare const DEFAULT_RECIPES_GLOBS: string[];
|
|
245
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/config/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DEFAULT_RECIPES_GLOBS = exports.DEFAULT_ENVIRONMENT = exports.DEFAULT_SETTINGS = exports.DEFAULT_SERIALIZATION = void 0;
|
|
4
|
+
exports.DEFAULT_SERIALIZATION = {
|
|
5
|
+
defaultMaxRelativeItemPathLength: 120,
|
|
6
|
+
defaultModuleRelativeSerializationPath: "serialization",
|
|
7
|
+
removeOrphansForRoles: true,
|
|
8
|
+
removeOrphansForUsers: true,
|
|
9
|
+
continueOnItemFailure: false,
|
|
10
|
+
excludedFields: [],
|
|
11
|
+
};
|
|
12
|
+
exports.DEFAULT_SETTINGS = {
|
|
13
|
+
telemetryEnabled: false,
|
|
14
|
+
cacheAuthenticationToken: true,
|
|
15
|
+
versionComparisonEnabled: true,
|
|
16
|
+
apiClientTimeoutInMinutes: 5,
|
|
17
|
+
};
|
|
18
|
+
exports.DEFAULT_ENVIRONMENT = "default";
|
|
19
|
+
exports.DEFAULT_RECIPES_GLOBS = ["recipes/**/*.recipe.ts"];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ErrorObject } from "ajv";
|
|
2
|
+
export declare const validateRootConfig: import("ajv-draft-04").ValidateFunction<{
|
|
3
|
+
[x: string]: {};
|
|
4
|
+
}>;
|
|
5
|
+
export declare const validateModuleConfig: import("ajv-draft-04").ValidateFunction<{
|
|
6
|
+
[x: string]: {};
|
|
7
|
+
}>;
|
|
8
|
+
export declare const formatValidationErrors: (errors: ErrorObject[]) => string[];
|
|
9
|
+
export declare const readJsonFile: <T>(filePath: string) => T;
|
|
10
|
+
//# sourceMappingURL=validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/config/validation.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AAuBvC,eAAO,MAAM,kBAAkB;;EAAsB,CAAC;AACtD,eAAO,MAAM,oBAAoB;;EAAyC,CAAC;AAE3E,eAAO,MAAM,sBAAsB,GAAI,QAAQ,WAAW,EAAE,KAAG,MAAM,EAKjE,CAAC;AAEL,eAAO,MAAM,YAAY,GAAI,CAAC,EAAE,UAAU,MAAM,KAAG,CAGlD,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.readJsonFile = exports.formatValidationErrors = exports.validateModuleConfig = exports.validateRootConfig = void 0;
|
|
7
|
+
const node_fs_1 = __importDefault(require("node:fs"));
|
|
8
|
+
const ajv_draft_04_1 = __importDefault(require("ajv-draft-04"));
|
|
9
|
+
const ajv_formats_1 = __importDefault(require("ajv-formats"));
|
|
10
|
+
const schema_json_1 = __importDefault(require("./schema.json"));
|
|
11
|
+
const serialization_module_schema_json_1 = __importDefault(require("./serialization-module.schema.json"));
|
|
12
|
+
const ajv = new ajv_draft_04_1.default({ allErrors: true, strict: false });
|
|
13
|
+
(0, ajv_formats_1.default)(ajv);
|
|
14
|
+
ajv.addFormat("uri", {
|
|
15
|
+
validate: (value) => {
|
|
16
|
+
if (typeof value !== "string" || value.length === 0) {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
if (value.startsWith("http://") || value.startsWith("https://")) {
|
|
20
|
+
try {
|
|
21
|
+
const parsed = new URL(value);
|
|
22
|
+
return Boolean(parsed.protocol && parsed.hostname);
|
|
23
|
+
}
|
|
24
|
+
catch {
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return /^[a-z0-9.-]+$/i.test(value);
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
exports.validateRootConfig = ajv.compile(schema_json_1.default);
|
|
32
|
+
exports.validateModuleConfig = ajv.compile(serialization_module_schema_json_1.default);
|
|
33
|
+
const formatValidationErrors = (errors) => errors.map((error) => {
|
|
34
|
+
const path = error.instancePath ? error.instancePath : "(root)";
|
|
35
|
+
const suffix = error.message ? `: ${error.message}` : "";
|
|
36
|
+
return `${path}${suffix}`;
|
|
37
|
+
});
|
|
38
|
+
exports.formatValidationErrors = formatValidationErrors;
|
|
39
|
+
const readJsonFile = (filePath) => {
|
|
40
|
+
const content = node_fs_1.default.readFileSync(filePath, "utf8");
|
|
41
|
+
return JSON.parse(content);
|
|
42
|
+
};
|
|
43
|
+
exports.readJsonFile = readJsonFile;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"headers.d.ts","sourceRoot":"","sources":["../../../../src/deploy/api/common/headers.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,GAClC,iBAAiB,MAAM,KACtB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAMb,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.withOrganizationHeaders = void 0;
|
|
4
|
+
const withOrganizationHeaders = (organizationId) => organizationId
|
|
5
|
+
? {
|
|
6
|
+
"x-organization-id": organizationId,
|
|
7
|
+
"x-org-id": organizationId,
|
|
8
|
+
}
|
|
9
|
+
: undefined;
|
|
10
|
+
exports.withOrganizationHeaders = withOrganizationHeaders;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/deploy/api/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
18
|
+
__exportStar(require("./request"), exports);
|
|
19
|
+
__exportStar(require("./headers"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DeployApiClientOptions, DeployQueryValueList, DeployRequestInit } from "./types";
|
|
2
|
+
export declare const parseJsonIfPossible: (response: Response) => Promise<unknown>;
|
|
3
|
+
export declare const extractErrorMessage: (body: unknown) => string | undefined;
|
|
4
|
+
export declare const startDeploySpinner: (text: string) => Promise<{
|
|
5
|
+
succeed: () => void;
|
|
6
|
+
fail: () => void;
|
|
7
|
+
} | null>;
|
|
8
|
+
export declare const deployRequest: <T>(options: DeployApiClientOptions, path: string, query?: Record<string, DeployQueryValueList | undefined>, init?: DeployRequestInit) => Promise<T>;
|
|
9
|
+
//# sourceMappingURL=request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../../src/deploy/api/common/request.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,sBAAsB,EACtB,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,SAAS,CAAC;AA4BjB,eAAO,MAAM,mBAAmB,GAAU,UAAU,QAAQ,KAAG,OAAO,CAAC,OAAO,CAU7E,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,MAAM,OAAO,KAAG,MAAM,GAAG,SA0C5D,CAAC;AA2BF,eAAO,MAAM,kBAAkB,GAC7B,MAAM,MAAM,KACX,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,IAAI,CAAC;IAAC,IAAI,EAAE,MAAM,IAAI,CAAA;CAAE,GAAG,IAAI,CA0B1D,CAAC;AAEF,eAAO,MAAM,aAAa,GAAU,CAAC,EACnC,SAAS,sBAAsB,EAC/B,MAAM,MAAM,EACZ,QAAQ,MAAM,CAAC,MAAM,EAAE,oBAAoB,GAAG,SAAS,CAAC,EACxD,OAAO,iBAAiB,KACvB,OAAO,CAAC,CAAC,CAsFX,CAAC"}
|