@salsita-ai/sdk 0.50.0-develop.c33986dc44 → 0.50.0-develop.c402728d10
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/README.md +5 -1
- package/dist/admin/AdminShell.js +1 -1
- package/dist/admin/legacy-admin/Application.js +1 -1
- package/dist/application-spec/core/enhanced-json-value.d.ts +2 -31
- package/dist/application-spec/core/enhanced-json-value.js +1 -1
- package/dist/application-spec/core/index.d.ts +1 -3
- package/dist/application-spec/core/index.js +1 -1
- package/dist/application-spec/core/json-schema.d.ts +2 -52
- package/dist/application-spec/core/markers/index.d.ts +1 -1
- package/dist/application-spec/core/markers/index.js +1 -1
- package/dist/application-spec/core/markers/msg-marker.d.ts +2 -28
- package/dist/application-spec/core/markers/msg-marker.js +1 -1
- package/dist/application-spec/core/markers/raw-eval-write-marker.d.ts +1 -1
- package/dist/application-spec/core/markers/raw-eval-write-marker.js +1 -1
- package/dist/application-spec/core/markers/raw-read-write-marker.js +1 -1
- package/dist/application-spec/errors/diagnostic-codes.d.ts +8 -1
- package/dist/application-spec/errors/diagnostic-codes.js +1 -1
- package/dist/application-spec/errors/diagnostic-messages.d.ts +15 -1
- package/dist/application-spec/errors/diagnostic-messages.js +1 -1
- package/dist/application-spec/generate-application/code/project-scaffolding.js +2 -2
- package/dist/application-spec/generate-application/code/templates/index.d.ts +2 -6
- package/dist/application-spec/generate-application/code/templates/index.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.d.ts +10 -0
- package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.js +7 -0
- package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/sdk-content.d.ts +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/sdk-content.js +1 -1
- package/dist/application-spec/generate-application/code/templates/story/wrapper.js +2 -4
- package/dist/application-spec/generate-application/implementations/phx-model.d.ts +1 -1
- package/dist/application-spec/generate-application/runtime/admin-runtime/admin-model-runtime.d.ts +1 -2
- package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-model-runtime.d.ts +1 -2
- package/dist/application-spec/generate-application/runtime/factory-data/factory-data-runtime.d.ts +1 -2
- package/dist/application-spec/generate-application/runtime/factory-data/recipe-defaults.d.ts +1 -1
- package/dist/application-spec/generate-application/runtime/factory-data/recipe-defaults.js +1 -1
- package/dist/application-spec/generate-application/runtime/factory-data/static-violations.d.ts +1 -2
- package/dist/application-spec/generate-application/runtime/factory-data/static-violations.js +1 -1
- package/dist/application-spec/generate-application/runtime/generate-runtime-instance.d.ts +1 -1
- package/dist/application-spec/generate-application/runtime/generate-runtime-instance.js +1 -1
- package/dist/application-spec/generate-application/runtime/sections/actions-runtime.d.ts +1 -2
- package/dist/application-spec/generate-application/runtime/sections/build-sdk-optic.d.ts +1 -1
- package/dist/application-spec/generate-application/runtime/sections/build-sdk-optic.js +1 -1
- package/dist/application-spec/generate-application/runtime/sections/build-user-bound-optic.d.ts +1 -1
- package/dist/application-spec/generate-application/runtime/sections/component-optic.d.ts +1 -2
- package/dist/application-spec/generate-application/runtime/sections/expression-runtime.d.ts +1 -2
- package/dist/application-spec/generate-application/runtime/sections/expression-runtime.js +1 -1
- package/dist/application-spec/generate-application/runtime/sections/generate-memo-eval-plan-runtime.d.ts +1 -2
- package/dist/application-spec/generate-application/runtime/sections/generate-memo-eval-plan-runtime.js +1 -1
- package/dist/application-spec/generate-application/runtime/sections/preset-runtime.d.ts +2 -3
- package/dist/application-spec/generate-application/runtime/sections/reflection-constants-runtime.d.ts +1 -1
- package/dist/application-spec/generate-application/runtime/spec-code/resolve-spec-code.d.ts +1 -1
- package/dist/application-spec/generate-application/runtime-spec/runtime-spec.d.ts +96 -31
- package/dist/application-spec/generate-application/runtime-spec/spec-code-id.d.ts +1 -1
- package/dist/application-spec/parse-application-files/merge/merged-assistant.d.ts +13 -4
- package/dist/application-spec/parse-application-files/merge/merged-assistant.js +1 -1
- package/dist/application-spec/parse-application-files/merge/merged-infra.d.ts +4 -11
- package/dist/application-spec/parse-application-files/merge/merged-transformers.d.ts +2 -4
- package/dist/application-spec/parse-application-files/parse-application-files.js +1 -1
- package/dist/application-spec/parse-application-files/raw-spec/raw-acl.d.ts +2 -2
- package/dist/application-spec/parse-application-files/raw-spec/raw-acl.js +1 -1
- package/dist/application-spec/parse-application-files/raw-spec/raw-admin-pages.d.ts +3 -24
- package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.d.ts +25 -20
- package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.js +1 -1
- package/dist/application-spec/parse-application-files/raw-spec/raw-expressions.d.ts +1 -1
- package/dist/application-spec/parse-application-files/raw-spec/raw-expressions.js +1 -1
- package/dist/application-spec/parse-application-files/raw-spec/raw-resources.d.ts +19 -64
- package/dist/application-spec/parse-application-files/spec/application/admin-spec/admin-pages.d.ts +3 -20
- package/dist/application-spec/parse-application-files/spec/application/admin-spec/states.d.ts +3 -5
- package/dist/application-spec/parse-application-files/spec/application/configurator-spec/states.d.ts +3 -8
- package/dist/application-spec/parse-application-files/spec/components/bindings/read-binding.d.ts +3 -13
- package/dist/application-spec/parse-application-files/spec/components/bindings/write-binding.d.ts +4 -32
- package/dist/application-spec/parse-application-files/spec/components/component-filter.d.ts +4 -10
- package/dist/application-spec/parse-application-files/spec/components/components.d.ts +3 -4
- package/dist/application-spec/parse-application-files/spec/components/index.d.ts +1 -2
- package/dist/application-spec/parse-application-files/spec/components/index.js +1 -1
- package/dist/application-spec/parse-application-files/spec/components/sdk-component-entry.d.ts +1 -1
- package/dist/application-spec/parse-application-files/spec/components/user-component-entry.d.ts +2 -3
- package/dist/application-spec/parse-application-files/spec/components/user-component-entry.js +1 -1
- package/dist/application-spec/parse-application-files/spec/components/user-components.d.ts +2 -3
- package/dist/application-spec/parse-application-files/spec/expressions/expression-read-types.d.ts +2 -2
- package/dist/application-spec/parse-application-files/spec/expressions/expressions.d.ts +7 -29
- package/dist/application-spec/parse-application-files/spec/expressions/index.d.ts +0 -1
- package/dist/application-spec/parse-application-files/spec/expressions/memo-eval-plan.d.ts +4 -71
- package/dist/application-spec/parse-application-files/spec/expressions/memo-eval-plan.js +1 -1
- package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.d.ts +2 -2
- package/dist/application-spec/parse-application-files/spec/invariants/invariant.d.ts +5 -21
- package/dist/application-spec/parse-application-files/spec/invariants/invariants.d.ts +4 -14
- package/dist/application-spec/parse-application-files/spec/model/aliases.d.ts +3 -9
- package/dist/application-spec/parse-application-files/spec/model/common-types.d.ts +6 -14
- package/dist/application-spec/parse-application-files/spec/model/defaults.d.ts +6 -31
- package/dist/application-spec/parse-application-files/spec/model/entity-types.d.ts +3 -8
- package/dist/application-spec/parse-application-files/spec/model/model-version-key.d.ts +3 -3
- package/dist/application-spec/parse-application-files/spec/model/names/action-name.d.ts +3 -7
- package/dist/application-spec/parse-application-files/spec/model/names/alias-name.d.ts +3 -7
- package/dist/application-spec/parse-application-files/spec/model/names/entity-or-alias-name.d.ts +3 -8
- package/dist/application-spec/parse-application-files/spec/model/names/entity-type-name.d.ts +3 -8
- package/dist/application-spec/parse-application-files/spec/model/names/expression-name.d.ts +3 -6
- package/dist/application-spec/parse-application-files/spec/model/names/instance-name.d.ts +3 -7
- package/dist/application-spec/parse-application-files/spec/model/names/invariant-name.d.ts +3 -3
- package/dist/application-spec/parse-application-files/spec/model/names/shape-property-name.d.ts +3 -11
- package/dist/application-spec/parse-application-files/spec/model/names/violation-type-name.d.ts +3 -3
- package/dist/application-spec/parse-application-files/spec/model/presets.d.ts +6 -29
- package/dist/application-spec/parse-application-files/spec/sections/actions.d.ts +6 -23
- package/dist/application-spec/parse-application-files/spec/sections/app-metadata.d.ts +3 -18
- package/dist/application-spec/parse-application-files/spec/sections/application-version.d.ts +3 -7
- package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.js +1 -1
- package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant.js +1 -1
- package/dist/application-spec/parse-application-files/spec/sections/data-spec/chunks.d.ts +6 -23
- package/dist/application-spec/parse-application-files/spec/sections/data-spec/custom-data-spec.d.ts +1 -16
- package/dist/application-spec/parse-application-files/spec/sections/data-spec/data-entry-key.d.ts +3 -9
- package/dist/application-spec/parse-application-files/spec/sections/data-spec/data-spec.d.ts +1 -10
- package/dist/application-spec/parse-application-files/spec/sections/data-spec/swatch-data-spec.d.ts +1 -14
- package/dist/application-spec/parse-application-files/spec/sections/state-value.d.ts +3 -7
- package/dist/application-spec/parse-application-files/spec/sections/theme.d.ts +3 -10
- package/dist/application-spec/parse-application-files/spec/sections/transformers.d.ts +4 -11
- package/dist/application-spec/parse-application-files/spec/sections/ui.d.ts +3 -12
- package/dist/client/authorized-client.d.ts +3 -1
- package/dist/client/authorized-client.js +1 -1
- package/dist/client/contract.d.ts +30 -1
- package/dist/client/contract.js +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/local-authorized-client.d.ts +3 -1
- package/dist/client/local-authorized-client.js +1 -1
- package/dist/client/memory-authorized-client.d.ts +4 -1
- package/dist/client/memory-authorized-client.js +1 -1
- package/dist/client/phoenix-api.d.ts +259 -1
- package/dist/configurator/ConfiguratorApp.js +1 -1
- package/dist/configurator/application-runtime/extensions/selectors.js +1 -1
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.d.ts +64 -6
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.js +1 -1
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.d.ts +21 -4
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.js +1 -1
- package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.d.ts +70 -56
- package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.js +1 -1
- package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.d.ts +30 -9
- package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.js +1 -1
- package/dist/configurator/application-runtime/extensions/systems/graphql-system/violations.d.ts +40 -0
- package/dist/configurator/application-runtime/extensions/systems/graphql-system/violations.js +1 -0
- package/dist/configurator/common/configurator-interface.d.ts +2 -2
- package/dist/configurator/common/configurator-interface.js +1 -1
- package/dist/configurator/configurator-context/configurator-hooks/index.d.ts +0 -1
- package/dist/configurator/configurator-context/configurator-hooks/index.js +1 -1
- package/dist/configurator/configurator-context/configurator-hooks/layout-hooks.js +1 -1
- package/dist/configurator/configurator-context/index.d.ts +0 -5
- package/dist/configurator/configurator-context/index.js +1 -1
- package/dist/configurator/pages/ConfiguratorNotFoundPage.js +1 -1
- package/dist/configurator/pages/LoadedConfiguratorDetailPage.js +1 -1
- package/dist/configurator/pages/NewConfiguratorPage.js +1 -1
- package/dist/configurator/pages/error-boundaries/DevContextFallback.js +1 -1
- package/dist/configurator/pages/error-boundaries/DevLoadingFallback.js +1 -1
- package/dist/configurator/ui/assistant/AssistantChips.js +1 -1
- package/dist/configurator/ui/assistant/AssistantComposer.d.ts +6 -0
- package/dist/configurator/ui/assistant/AssistantComposer.js +2 -1
- package/dist/configurator/ui/assistant/AssistantThread.js +1 -1
- package/dist/configurator/ui/assistant/attachments/MessageImages.d.ts +11 -0
- package/dist/configurator/ui/assistant/attachments/MessageImages.js +1 -0
- package/dist/configurator/ui/assistant/attachments/index.d.ts +2 -0
- package/dist/configurator/ui/assistant/attachments/index.js +1 -0
- package/dist/configurator/ui/assistant/attachments/prepare-image.d.ts +19 -0
- package/dist/configurator/ui/assistant/attachments/prepare-image.js +1 -0
- package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.d.ts +1 -1
- package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.js +1 -1
- package/dist/configurator/ui/assistant/screenshots/index.d.ts +1 -0
- package/dist/configurator/ui/assistant/screenshots/index.js +1 -1
- package/dist/configurator/ui/assistant/screenshots/tool-screenshots.d.ts +12 -4
- package/dist/configurator/ui/assistant/screenshots/tool-screenshots.js +1 -1
- package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.d.ts +8 -0
- package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.js +1 -0
- package/dist/configurator/ui/assistant/thread-items.d.ts +2 -0
- package/dist/configurator/ui/assistant/thread-items.js +1 -1
- package/dist/configurator/ui/assistant/tool-chip.d.ts +19 -9
- package/dist/configurator/ui/assistant/tool-chip.js +1 -1
- package/dist/configurator/ui/configurator-layout/slots/canvas/GPUAccelerationDisabled.js +1 -1
- package/dist/configurator/ui/configurator-layout/slots/canvas/WebGLNotSupported.js +1 -1
- package/dist/configurator/ui/configurator-layout/slots/readonly-banner/CloneToEditDialog.js +1 -1
- package/dist/configurator/ui/configurator-layout/universal/DesktopPreview.js +1 -1
- package/dist/configurator/ui/configurator-layout/universal/MobilePreview.js +1 -1
- package/dist/configurator/ui/legacy/chat/MobileChat.js +1 -1
- package/dist/configurator/ui/legacy/layout/common/CommonTopNavigation.js +1 -1
- package/dist/configurator/ui/legacy/layout/simple/SimpleSidebar.js +1 -1
- package/dist/configurator/ui/legacy/layout/simple/SimpleTopNavigation.js +1 -1
- package/dist/configurator/ui/legacy/layout/steps/StepsNavigation.js +1 -1
- package/dist/configurator/ui/legacy/layout/steps/StepsOwnerLayout.js +1 -1
- package/dist/configurator/ui/legacy/layout/steps/StepsSideBar.js +1 -1
- package/dist/configurator/ui/legacy/layout/tabs/TabsSidebar.js +1 -1
- package/dist/configurator/ui/phoenix-layout-elements/header/common/back-button/use-go-back-action.js +1 -1
- package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/StepsNavigation.js +1 -1
- package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/basic/use-basic-sidebar-footer.js +1 -1
- package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/PreviousStepButton.js +1 -1
- package/dist/configurator/ui/preset-layout/CategoryPresetUi.js +1 -1
- package/dist/configurator/ui/save-message-snackbars/SaveMessageSnackbars.js +1 -1
- package/dist/docs/3d-scene/cameras/custom.mdx +4 -2
- package/dist/docs/drag-and-drop/room-planner.mdx +1 -1
- package/dist/docs/index.json +1 -1
- package/dist/docs/phoenix/configurator-interface.mdx +1 -1
- package/dist/docs/phoenix/domain-model.mdx +4 -1
- package/dist/docs/phoenix/layout-slots.mdx +21 -0
- package/dist/docs/phoenix/migration-guide.mdx +3 -3
- package/dist/docs/phoenix/phoenix-cli.mdx +40 -7
- package/dist/docs/phoenix/project-structure.mdx +23 -19
- package/dist/docs/phoenix/sdk-builder-workflow.mdx +2 -2
- package/dist/docs/phoenix/webhooks.mdx +9 -1
- package/dist/domain/application/application-config.d.ts +6 -24
- package/dist/domain/application/assistant/assistant-manifest.d.ts +13 -3
- package/dist/domain/application/assistant/assistant-manifest.js +1 -1
- package/dist/domain/application/assistant/assistant-resolved-manifest.d.ts +5 -9
- package/dist/domain/application/assistant/assistant-resolved-manifest.js +1 -1
- package/dist/domain/application/assistant/build-assistant-lenses.js +1 -1
- package/dist/domain/application/assistant/build-assistant-manifest.js +1 -1
- package/dist/domain/application/assistant/generate-assistant-prompt.js +1 -1
- package/dist/domain/application/assistant/index.d.ts +3 -3
- package/dist/domain/application/assistant/index.js +1 -1
- package/dist/domain/application/assistant/session-setup/apply-assistant-setup.js +1 -1
- package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.d.ts +2 -4
- package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.js +1 -1
- package/dist/domain/application/assistant-mutations.js +1 -1
- package/dist/domain/available-system-components/available-system-components.d.ts +11 -0
- package/dist/domain/available-system-components/available-system-components.js +1 -0
- package/dist/domain/available-system-components/index.d.ts +1 -0
- package/dist/domain/available-system-components/index.js +1 -0
- package/dist/domain/{domain-builder.d.ts → domain-builder/domain-builder.d.ts} +2 -2
- package/dist/domain/domain-builder/domain-builder.js +1 -0
- package/dist/domain/domain-builder/index.d.ts +1 -0
- package/dist/domain/domain-builder/index.js +1 -0
- package/dist/domain/extensions/export-images/agent-screenshot.d.ts +6 -0
- package/dist/domain/extensions/export-images/agent-screenshot.js +1 -1
- package/dist/domain/extensions/export-images/index.d.ts +1 -1
- package/dist/domain/extensions/export-images/index.js +1 -1
- package/dist/domain/extensions/index.d.ts +1 -1
- package/dist/domain/extensions/index.js +1 -1
- package/dist/domain/index.d.ts +3 -2
- package/dist/domain/index.js +1 -1
- package/dist/domain/spec/application/admin-pages-section.d.ts +29 -0
- package/dist/domain/spec/application/admin-pages.d.ts +26 -0
- package/dist/domain/spec/application/admin-states.d.ts +5 -0
- package/dist/domain/spec/application/configurator-states.d.ts +8 -0
- package/dist/domain/spec/application/configurator-states.js +1 -0
- package/dist/domain/spec/application/index.d.ts +5 -0
- package/dist/domain/spec/application/index.js +1 -0
- package/dist/domain/spec/components/bindings/index.d.ts +2 -0
- package/dist/domain/spec/components/bindings/index.js +1 -0
- package/dist/domain/spec/components/bindings/read-binding.d.ts +13 -0
- package/dist/domain/spec/components/bindings/read-binding.js +1 -0
- package/dist/domain/spec/components/bindings/write-binding.d.ts +32 -0
- package/dist/domain/spec/components/bindings/write-binding.js +1 -0
- package/dist/{application-spec/parse-application-files → domain}/spec/components/component-entry.d.ts +3 -3
- package/dist/domain/spec/components/component-entry.js +1 -0
- package/dist/{application-spec/core → domain/spec}/components/component-filter.d.ts +3 -2
- package/dist/domain/spec/components/component-filters.d.ts +10 -0
- package/dist/domain/spec/components/component-filters.js +1 -0
- package/dist/domain/spec/components/components.d.ts +4 -0
- package/dist/domain/spec/components/components.js +1 -0
- package/dist/domain/spec/components/index.d.ts +6 -0
- package/dist/domain/spec/enhanced-json/enhanced-json-value.d.ts +30 -0
- package/dist/domain/spec/enhanced-json/enhanced-json-value.js +1 -0
- package/dist/domain/spec/enhanced-json/index.d.ts +1 -0
- package/dist/domain/spec/enhanced-json/index.js +1 -0
- package/dist/{application-spec/parse-application-files → domain}/spec/expressions/expression.d.ts +9 -3
- package/dist/domain/spec/expressions/expression.js +1 -0
- package/dist/domain/spec/expressions/expressions.d.ts +27 -0
- package/dist/domain/spec/expressions/expressions.js +1 -0
- package/dist/domain/spec/expressions/index.d.ts +5 -0
- package/dist/domain/spec/expressions/memo-eval-plan.d.ts +70 -0
- package/dist/domain/spec/expressions/memo-eval-plan.js +1 -0
- package/dist/domain/spec/expressions/relation-expression-params.js +1 -0
- package/dist/domain/spec/index.d.ts +9 -0
- package/dist/domain/spec/index.js +1 -0
- package/dist/domain/spec/invariants/index.d.ts +2 -0
- package/dist/domain/spec/invariants/index.js +1 -0
- package/dist/domain/spec/invariants/invariant.d.ts +24 -0
- package/dist/domain/spec/invariants/invariant.js +1 -0
- package/dist/domain/spec/invariants/invariants.d.ts +14 -0
- package/dist/domain/spec/invariants/invariants.js +1 -0
- package/dist/domain/spec/json-schema.d.ts +52 -0
- package/dist/domain/spec/json-schema.js +1 -0
- package/dist/domain/spec/markers/index.d.ts +3 -0
- package/dist/domain/spec/markers/index.js +1 -0
- package/dist/domain/spec/markers/msg-marker.d.ts +28 -0
- package/dist/domain/spec/markers/msg-marker.js +1 -0
- package/dist/domain/spec/model/aliases.d.ts +9 -0
- package/dist/domain/spec/model/aliases.js +1 -0
- package/dist/domain/spec/model/common-types.d.ts +15 -0
- package/dist/domain/spec/model/common-types.js +1 -0
- package/dist/domain/spec/model/defaults.d.ts +33 -0
- package/dist/domain/spec/model/defaults.js +1 -0
- package/dist/domain/spec/model/entity-types.d.ts +8 -0
- package/dist/domain/spec/model/entity-types.js +1 -0
- package/dist/domain/spec/model/index.d.ts +7 -0
- package/dist/domain/spec/model/index.js +1 -0
- package/dist/domain/spec/model/model-version-key.d.ts +3 -0
- package/dist/domain/spec/model/model-version-key.js +1 -0
- package/dist/domain/spec/model/names/action-name.d.ts +7 -0
- package/dist/domain/spec/model/names/action-name.js +1 -0
- package/dist/domain/spec/model/names/alias-name.d.ts +7 -0
- package/dist/domain/spec/model/names/alias-name.js +1 -0
- package/dist/domain/spec/model/names/entity-or-alias-name.d.ts +8 -0
- package/dist/domain/spec/model/names/entity-or-alias-name.js +1 -0
- package/dist/domain/spec/model/names/entity-type-name.d.ts +8 -0
- package/dist/domain/spec/model/names/entity-type-name.js +1 -0
- package/dist/domain/spec/model/names/expression-name.d.ts +6 -0
- package/dist/domain/spec/model/names/expression-name.js +1 -0
- package/dist/domain/spec/model/names/index.d.ts +9 -0
- package/dist/domain/spec/model/names/index.js +1 -0
- package/dist/domain/spec/model/names/instance-name.d.ts +7 -0
- package/dist/domain/spec/model/names/instance-name.js +1 -0
- package/dist/domain/spec/model/names/invariant-name.d.ts +3 -0
- package/dist/domain/spec/model/names/invariant-name.js +1 -0
- package/dist/domain/spec/model/names/shape-property-name.d.ts +11 -0
- package/dist/domain/spec/model/names/shape-property-name.js +1 -0
- package/dist/domain/spec/model/names/violation-type-name.d.ts +3 -0
- package/dist/domain/spec/model/names/violation-type-name.js +1 -0
- package/dist/domain/spec/model/presets.d.ts +30 -0
- package/dist/domain/spec/model/presets.js +1 -0
- package/dist/domain/spec/sections/actions.d.ts +23 -0
- package/dist/domain/spec/sections/actions.js +1 -0
- package/dist/domain/spec/sections/app-metadata.d.ts +18 -0
- package/dist/domain/spec/sections/app-metadata.js +1 -0
- package/dist/domain/spec/sections/application-version.d.ts +7 -0
- package/dist/domain/spec/sections/application-version.js +1 -0
- package/dist/domain/spec/sections/data-spec/chunks.d.ts +23 -0
- package/dist/domain/spec/sections/data-spec/chunks.js +1 -0
- package/dist/domain/spec/sections/data-spec/custom-data-spec-entry.d.ts +16 -0
- package/dist/domain/spec/sections/data-spec/custom-data-spec-entry.js +1 -0
- package/dist/domain/spec/sections/data-spec/data-entry-key.d.ts +9 -0
- package/dist/domain/spec/sections/data-spec/data-entry-key.js +1 -0
- package/dist/domain/spec/sections/data-spec/index.d.ts +5 -0
- package/dist/domain/spec/sections/data-spec/index.js +1 -0
- package/dist/domain/spec/sections/data-spec/parsed-data-spec-entries.d.ts +10 -0
- package/dist/domain/spec/sections/data-spec/parsed-data-spec-entries.js +1 -0
- package/dist/domain/spec/sections/data-spec/swatch-data-spec-entry.d.ts +14 -0
- package/dist/domain/spec/sections/data-spec/swatch-data-spec-entry.js +1 -0
- package/dist/domain/spec/sections/index.d.ts +9 -0
- package/dist/domain/spec/sections/index.js +1 -0
- package/dist/domain/spec/sections/infra/acl.d.ts +12 -0
- package/dist/domain/spec/sections/infra/acl.js +1 -0
- package/dist/domain/spec/sections/infra/index.d.ts +3 -0
- package/dist/domain/spec/sections/infra/index.js +1 -0
- package/dist/domain/spec/sections/infra/resource-entry.d.ts +46 -0
- package/dist/domain/spec/sections/infra/resource-entry.js +1 -0
- package/dist/domain/spec/sections/infra/resources-config.d.ts +10 -0
- package/dist/domain/spec/sections/infra/resources-config.js +1 -0
- package/dist/domain/spec/sections/state-value.d.ts +7 -0
- package/dist/domain/spec/sections/state-value.js +1 -0
- package/dist/domain/spec/sections/theme.d.ts +10 -0
- package/dist/domain/spec/sections/theme.js +1 -0
- package/dist/domain/spec/sections/transformers.d.ts +15 -0
- package/dist/domain/spec/sections/transformers.js +1 -0
- package/dist/domain/spec/sections/ui.d.ts +12 -0
- package/dist/domain/spec/sections/ui.js +1 -0
- package/dist/domain/system-definitions.js +1 -1
- package/dist/domain/utils/index.d.ts +2 -0
- package/dist/domain/utils/index.js +1 -0
- package/dist/editor/graphql/GraphQLPanel.js +1 -1
- package/dist/i18n/locales/cs/messages.js +1 -1
- package/dist/i18n/locales/da/messages.js +1 -1
- package/dist/i18n/locales/de/messages.js +1 -1
- package/dist/i18n/locales/de-AT/messages.js +1 -1
- package/dist/i18n/locales/en/messages.js +1 -1
- package/dist/i18n/locales/en-AU/messages.js +1 -1
- package/dist/i18n/locales/en-GB/messages.js +1 -1
- package/dist/i18n/locales/es/messages.js +1 -1
- package/dist/i18n/locales/fr/messages.js +1 -1
- package/dist/i18n/locales/hu/messages.js +1 -1
- package/dist/i18n/locales/it/messages.js +1 -1
- package/dist/i18n/locales/nl/messages.js +1 -1
- package/dist/i18n/locales/pl/messages.js +1 -1
- package/dist/i18n/locales/pt/messages.js +1 -1
- package/dist/i18n/locales/ro/messages.js +1 -1
- package/dist/i18n/locales/sk/messages.js +1 -1
- package/dist/i18n/locales/tr/messages.js +1 -1
- package/dist/legacy/domain-spec/__generated/domain-schema.d.ts +2 -2
- package/dist/legacy/phoenix-cli/services/webhook-service/transport.js +1 -1
- package/dist/legacy/phoenix-cli/services/webhook-service/tunnel.d.ts +1 -0
- package/dist/legacy/phoenix-cli/services/webhook-service/tunnel.js +1 -1
- package/dist/legacy/webhook-cli/lambda-local/index.js +1 -1
- package/dist/phoenix/application-spec/generate-application-spec-project.d.ts +1 -0
- package/dist/phoenix/application-spec/generate-application-spec-project.js +2 -2
- package/dist/phoenix/application-spec/generate-project-files.d.ts +1 -0
- package/dist/phoenix/application-spec/index.d.ts +1 -0
- package/dist/phoenix/application-spec/index.js +1 -1
- package/dist/phoenix/application-spec/resolve-deployment-data.d.ts +11 -0
- package/dist/phoenix/application-spec/resolve-deployment-data.js +2 -2
- package/dist/phoenix/bin.js +1 -1
- package/dist/phoenix/cli.js +1 -1
- package/dist/phoenix/commands/activate-deployment.js +1 -1
- package/dist/phoenix/commands/build.js +1 -1
- package/dist/phoenix/commands/changelog.js +1 -1
- package/dist/phoenix/commands/check.js +1 -1
- package/dist/phoenix/commands/clean.js +1 -1
- package/dist/phoenix/commands/cleanup-environment.js +2 -2
- package/dist/phoenix/commands/create-environment.js +1 -1
- package/dist/phoenix/commands/data.js +1 -1
- package/dist/phoenix/commands/deploy.js +1 -1
- package/dist/phoenix/commands/deployment-build-envs-command.js +1 -1
- package/dist/phoenix/commands/dev.js +4 -5
- package/dist/phoenix/commands/docs.js +1 -1
- package/dist/phoenix/commands/finish-deployment-command.js +1 -1
- package/dist/phoenix/commands/fix.js +1 -1
- package/dist/phoenix/commands/index.d.ts +1 -1
- package/dist/phoenix/commands/index.js +1 -1
- package/dist/phoenix/commands/inspect-assets.js +1 -1
- package/dist/phoenix/commands/list-environments.js +1 -1
- package/dist/phoenix/commands/login.d.ts +4 -1
- package/dist/phoenix/commands/login.js +2 -2
- package/dist/phoenix/commands/prepare-deployment-command.js +2 -2
- package/dist/phoenix/commands/register-deployment.js +1 -1
- package/dist/phoenix/commands/scene.js +1 -1
- package/dist/phoenix/commands/screenshot.js +1 -1
- package/dist/phoenix/commands/state.js +1 -1
- package/dist/phoenix/commands/story-build.js +3 -3
- package/dist/phoenix/commands/story-create.js +1 -1
- package/dist/phoenix/commands/story-dev.js +2 -2
- package/dist/phoenix/commands/sync.js +1 -1
- package/dist/phoenix/commands/variants.js +1 -1
- package/dist/phoenix/editor-server/commands-router.js +1 -1
- package/dist/phoenix/editor-server/editor-server.d.ts +2 -13
- package/dist/phoenix/editor-server/editor-server.js +1 -1
- package/dist/phoenix/editor-server/spec-router.js +1 -1
- package/dist/phoenix/editor-server/trpc.d.ts +2 -12
- package/dist/phoenix/lingui/index.d.ts +1 -0
- package/dist/phoenix/lingui/index.js +1 -0
- package/dist/phoenix/lingui/lingui.d.ts +18 -0
- package/dist/phoenix/lingui/lingui.js +1 -0
- package/dist/phoenix/services/application-spec-project-watcher.d.ts +11 -6
- package/dist/phoenix/services/application-spec-project-watcher.js +2 -2
- package/dist/phoenix/services/cli-credentials.d.ts +3 -0
- package/dist/phoenix/services/cli-credentials.js +1 -1
- package/dist/phoenix/services/cli-exit.d.ts +5 -0
- package/dist/phoenix/services/cli-exit.js +1 -0
- package/dist/phoenix/services/deployment/deployment-preparation-service.d.ts +28 -0
- package/dist/phoenix/services/deployment/deployment-preparation-service.js +1 -0
- package/dist/phoenix/{commands → services/deployment}/generated-env-markers.d.ts +1 -0
- package/dist/phoenix/services/deployment/generated-env-markers.js +1 -0
- package/dist/phoenix/services/deployment/index.d.ts +2 -0
- package/dist/phoenix/services/deployment/index.js +1 -0
- package/dist/phoenix/services/index.d.ts +5 -1
- package/dist/phoenix/services/index.js +1 -1
- package/dist/phoenix/services/lingui-watcher.js +1 -1
- package/dist/phoenix/services/phoenix-store.d.ts +3 -0
- package/dist/phoenix/services/phoenix-store.js +1 -1
- package/dist/phoenix/services/prepare-development-environment.js +1 -1
- package/dist/phoenix/services/session/editor-server-handle.d.ts +5 -0
- package/dist/phoenix/services/session/editor-server-handle.js +1 -0
- package/dist/phoenix/services/session/index.d.ts +2 -0
- package/dist/phoenix/services/session/index.js +1 -0
- package/dist/phoenix/services/session/phoenix-application.d.ts +82 -0
- package/dist/phoenix/services/session/phoenix-application.js +2 -0
- package/dist/phoenix/services/telemetry/amplitude-telemetry-transport.d.ts +9 -0
- package/dist/phoenix/services/telemetry/amplitude-telemetry-transport.js +1 -0
- package/dist/phoenix/services/telemetry/index.d.ts +3 -0
- package/dist/phoenix/services/telemetry/index.js +1 -0
- package/dist/phoenix/services/telemetry/telemetry-client.d.ts +25 -0
- package/dist/phoenix/services/telemetry/telemetry-client.js +1 -0
- package/dist/phoenix/services/telemetry/telemetry-command.d.ts +2 -0
- package/dist/phoenix/services/telemetry/telemetry-command.js +1 -0
- package/dist/phoenix/services/telemetry/telemetry-event.d.ts +44 -0
- package/dist/phoenix/services/telemetry/telemetry-event.js +1 -0
- package/dist/phoenix/services/telemetry/telemetry-state.d.ts +25 -0
- package/dist/phoenix/services/telemetry/telemetry-state.js +2 -0
- package/dist/phoenix/services/vite-config.js +1 -1
- package/dist/phoenix/services/webhook-service/transport.js +1 -1
- package/dist/phoenix/services/webhook-service/tunnel.d.ts +1 -0
- package/dist/phoenix/services/webhook-service/tunnel.js +1 -1
- package/dist/react-sdk/application-runtime/domain-application-context/chat-system.d.ts +1 -1
- package/dist/{configurator/configurator-context → react-sdk}/configurator-routing/ConfiguratorRoutingProvider.d.ts +1 -1
- package/dist/react-sdk/configurator-routing/ConfiguratorRoutingProvider.js +1 -0
- package/dist/{configurator/configurator-context → react-sdk}/configurator-routing/OnGoToIndexHandler.d.ts +1 -2
- package/dist/react-sdk/configurator-routing/OnGoToIndexHandler.js +1 -0
- package/dist/react-sdk/configurator-routing/index.d.ts +3 -0
- package/dist/{configurator/configurator-context → react-sdk}/configurator-routing/index.js +1 -1
- package/dist/{configurator/configurator-context → react-sdk}/configurator-routing/use-power-routing-lifecycle.d.ts +2 -0
- package/dist/react-sdk/configurator-routing/use-power-routing-lifecycle.js +1 -0
- package/dist/react-sdk/domain-application-context/BackendDataProvider.js +1 -1
- package/dist/react-sdk/domain-application-context/ConfigurationPersistSystemFailureHandler.js +1 -1
- package/dist/react-sdk/domain-application-context/FrontendDataProvider.js +1 -1
- package/dist/react-sdk/domain-application-context/OnPresetLoadedHandler.js +1 -0
- package/dist/react-sdk/domain-application-context/PublishedDataProvider.js +1 -1
- package/dist/react-sdk/domain-application-context/chat-hooks.d.ts +4 -0
- package/dist/react-sdk/domain-application-context/chat-hooks.js +1 -0
- package/dist/react-sdk/domain-application-context/index.d.ts +2 -0
- package/dist/react-sdk/domain-application-context/index.js +1 -1
- package/dist/react-sdk/elements/PhoenixEntityElement.js +1 -1
- package/dist/react-sdk/elements/PhoenixLayoutElement.js +1 -1
- package/dist/react-sdk/index.d.ts +5 -0
- package/dist/react-sdk/index.js +1 -1
- package/dist/react-sdk/integration/IntegrationSubscription.js +1 -0
- package/dist/react-sdk/integration/index.d.ts +1 -0
- package/dist/react-sdk/integration/index.js +1 -0
- package/dist/react-sdk/lifecycle-providers/ConfiguratorDataProvider.d.ts +8 -0
- package/dist/react-sdk/lifecycle-providers/ConfiguratorDataProvider.js +1 -0
- package/dist/react-sdk/lifecycle-providers/LifecycleProviders.js +1 -0
- package/dist/react-sdk/lifecycle-providers/index.d.ts +2 -0
- package/dist/react-sdk/lifecycle-providers/index.js +1 -0
- package/dist/react-sdk/notifications/index.d.ts +1 -0
- package/dist/react-sdk/notifications/index.js +1 -0
- package/dist/react-sdk/notifications/snackbar-action-button.d.ts +30 -0
- package/dist/react-sdk/notifications/snackbar-action-button.js +1 -0
- package/dist/react-sdk/preset-selection/PresetSelectionProvider.js +1 -0
- package/dist/react-sdk/preset-selection/index.d.ts +1 -0
- package/dist/react-sdk/preset-selection/index.js +1 -0
- package/dist/react-sdk/session/SessionServiceProvider.d.ts +5 -0
- package/dist/react-sdk/session/SessionServiceProvider.js +1 -1
- package/dist/ui-sdk/components/snackbar/Snackbar.d.ts +24 -3
- package/dist/ui-sdk/components/snackbar/Snackbar.js +1 -1
- package/dist/ui-sdk/icons/__generated/Paperclip.d.ts +3 -0
- package/dist/ui-sdk/icons/__generated/Paperclip.js +1 -0
- package/dist/ui-sdk/icons/__generated/index.d.ts +2 -0
- package/dist/ui-sdk/icons/__generated/index.js +1 -1
- package/dist/ui-sdk/icons/icons-registry.js +1 -1
- package/dist/ui-sdk/theme/types.d.ts +1 -1
- package/dist/watch/glob-matcher.d.ts +4 -4
- package/dist/watch/glob-matcher.js +1 -1
- package/dist/watch/watch.d.ts +4 -4
- package/dist/watch/watch.js +1 -1
- package/package.json +3 -3
- package/schema/domain-spec.json +22 -4
- package/dist/application-spec/core/components/index.d.ts +0 -2
- package/dist/application-spec/core/expressions/index.d.ts +0 -2
- package/dist/configurator/configurator-context/ConfiguratorDataProvider.d.ts +0 -2
- package/dist/configurator/configurator-context/ConfiguratorDataProvider.js +0 -1
- package/dist/configurator/configurator-context/IntegrationSubscription.js +0 -1
- package/dist/configurator/configurator-context/LifecycleProviders.js +0 -1
- package/dist/configurator/configurator-context/OnPresetLoadedHandler.js +0 -1
- package/dist/configurator/configurator-context/PresetSelectionProvider.js +0 -1
- package/dist/configurator/configurator-context/configurator-hooks/chat-hooks.d.ts +0 -1
- package/dist/configurator/configurator-context/configurator-hooks/chat-hooks.js +0 -1
- package/dist/configurator/configurator-context/configurator-routing/ConfiguratorRoutingProvider.js +0 -1
- package/dist/configurator/configurator-context/configurator-routing/OnGoToIndexHandler.js +0 -1
- package/dist/configurator/configurator-context/configurator-routing/index.d.ts +0 -2
- package/dist/configurator/configurator-context/configurator-routing/use-power-routing-lifecycle.js +0 -1
- package/dist/domain/available-system-components.d.ts +0 -11
- package/dist/domain/available-system-components.js +0 -1
- package/dist/domain/domain-builder.js +0 -1
- package/dist/phoenix/commands/generated-env-markers.js +0 -1
- package/dist/phoenix/services/lingui.d.ts +0 -15
- package/dist/phoenix/services/lingui.js +0 -1
- package/dist/phoenix/services/phoenix-application.d.ts +0 -21
- package/dist/phoenix/services/phoenix-application.js +0 -1
- /package/dist/{application-spec/core/expressions/relation-expression-params.js → domain/spec/application/admin-pages-section.js} +0 -0
- /package/dist/{application-spec/parse-application-files/spec/components/component-entry.js → domain/spec/application/admin-pages.js} +0 -0
- /package/dist/{application-spec/parse-application-files/spec/expressions/expression.js → domain/spec/application/admin-states.js} +0 -0
- /package/dist/{application-spec/core → domain/spec/application}/application-instance.d.ts +0 -0
- /package/dist/{application-spec/core → domain/spec/application}/application-instance.js +0 -0
- /package/dist/{application-spec/core → domain/spec}/components/component-filter.js +0 -0
- /package/dist/{application-spec/core → domain/spec}/components/index.js +0 -0
- /package/dist/{application-spec/core → domain/spec}/components/sdk-code-ref.d.ts +0 -0
- /package/dist/{application-spec/core → domain/spec}/components/sdk-code-ref.js +0 -0
- /package/dist/{application-spec/core → domain/spec}/expressions/index.js +0 -0
- /package/dist/{application-spec/core → domain/spec}/expressions/relation-expression-params.d.ts +0 -0
- /package/dist/{application-spec/core → domain/spec}/expressions/sdk-expression-implementation.d.ts +0 -0
- /package/dist/{application-spec/core → domain/spec}/expressions/sdk-expression-implementation.js +0 -0
- /package/dist/{application-spec/parse-application-files/spec/components → domain/spec/markers}/component-prop-target.d.ts +0 -0
- /package/dist/{application-spec/parse-application-files/spec/components → domain/spec/markers}/component-prop-target.js +0 -0
- /package/dist/{application-spec/core → domain/spec}/markers/eval-marker.d.ts +0 -0
- /package/dist/{application-spec/core → domain/spec}/markers/eval-marker.js +0 -0
- /package/dist/{configurator/configurator-context → react-sdk/domain-application-context}/OnPresetLoadedHandler.d.ts +0 -0
- /package/dist/{configurator/configurator-context → react-sdk/integration}/IntegrationSubscription.d.ts +0 -0
- /package/dist/{configurator/configurator-context → react-sdk/lifecycle-providers}/LifecycleProviders.d.ts +0 -0
- /package/dist/{configurator/configurator-context → react-sdk/preset-selection}/PresetSelectionProvider.d.ts +0 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { Branded } from '@salsita-ai/common/utils';
|
|
2
|
+
import type { ComponentPropTarget, EvalMarker, MsgMarker } from '../markers/index.js';
|
|
3
|
+
export type MemoEvalLiteral = string | number | boolean | null;
|
|
4
|
+
/**
|
|
5
|
+
* A single entry in the memoEval deps array.
|
|
6
|
+
*
|
|
7
|
+
* - `'eval'` — a `$eval` code fragment. At deps-build time the fragment is
|
|
8
|
+
* evaluated under `self` (`new Function('self', …)` at runtime, spliced
|
|
9
|
+
* verbatim under `self => [...]` in codegen). `label` annotates codegen
|
|
10
|
+
* output (e.g. `/* $eval: Entity.instance *\/`).
|
|
11
|
+
* - `'read'` — a read binding that resolves to `self[target]` at deps-build
|
|
12
|
+
* time.
|
|
13
|
+
*/
|
|
14
|
+
export type MemoEvalDep = Branded<'MemoEvalDep', {
|
|
15
|
+
readonly kind: 'eval';
|
|
16
|
+
readonly code: string;
|
|
17
|
+
readonly label: string;
|
|
18
|
+
} | {
|
|
19
|
+
readonly kind: 'read';
|
|
20
|
+
readonly target: string;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* Tree of values with slots referencing entries in the plan's `deps` array.
|
|
24
|
+
* Generated by codegen as a JS literal with params spliced in, or by runtime
|
|
25
|
+
* by walking and substituting from the `deps`-materialised values array.
|
|
26
|
+
*/
|
|
27
|
+
export type MemoEvalTemplate = Branded<'MemoEvalTemplate', {
|
|
28
|
+
readonly kind: 'literal';
|
|
29
|
+
readonly value: MemoEvalLiteral;
|
|
30
|
+
} | {
|
|
31
|
+
readonly kind: 'msg';
|
|
32
|
+
readonly marker: MsgMarker;
|
|
33
|
+
} | {
|
|
34
|
+
readonly kind: 'slot';
|
|
35
|
+
readonly depIndex: number;
|
|
36
|
+
} | {
|
|
37
|
+
readonly kind: 'array';
|
|
38
|
+
readonly items: readonly MemoEvalTemplate[];
|
|
39
|
+
} | {
|
|
40
|
+
readonly kind: 'object';
|
|
41
|
+
readonly entries: ReadonlyArray<readonly [string, MemoEvalTemplate]>;
|
|
42
|
+
}>;
|
|
43
|
+
export type MemoEvalPlanInput = MemoEvalLiteral | EvalMarker | MsgMarker | ComponentPropTarget | MemoEvalPlanInputArray | MemoEvalPlanInputObject;
|
|
44
|
+
export interface MemoEvalPlanInputArray extends ReadonlyArray<MemoEvalPlanInput> {
|
|
45
|
+
}
|
|
46
|
+
export interface MemoEvalPlanInputObject {
|
|
47
|
+
readonly [key: string]: MemoEvalPlanInput;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Normalized plan for producing a memoized reader from a tree containing
|
|
51
|
+
* `$eval`, `$target`, `$msg`, and literal nodes. Built once during spec
|
|
52
|
+
* parsing; codegen + runtime both generate from the same plan so their outputs
|
|
53
|
+
* cannot drift.
|
|
54
|
+
*
|
|
55
|
+
* - `deps` — ordered evaluation slots in first-seen walk order. Each slot
|
|
56
|
+
* dedupes (`$eval` by trimmed code, `$target` by name) so a repeated marker
|
|
57
|
+
* shares one dep.
|
|
58
|
+
* - `template` — rebuilt value tree with `slot { depIndex }` nodes in place
|
|
59
|
+
* of the consumed markers.
|
|
60
|
+
* - `usesSelf` — true when deps collection must receive `self`, either
|
|
61
|
+
* because a read dep exists or because an eval dep references `self`.
|
|
62
|
+
*
|
|
63
|
+
* When `deps` is empty the tree is fully static — generators cache
|
|
64
|
+
* non-primitive templates and keep primitive literals as bare thunks.
|
|
65
|
+
*/
|
|
66
|
+
export type MemoEvalPlan = Branded<'MemoEvalPlan', {
|
|
67
|
+
readonly deps: readonly MemoEvalDep[];
|
|
68
|
+
readonly template: MemoEvalTemplate;
|
|
69
|
+
readonly usesSelf: boolean;
|
|
70
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './application/index.js';
|
|
2
|
+
export * from './components/index.js';
|
|
3
|
+
export * from './enhanced-json/index.js';
|
|
4
|
+
export * from './expressions/index.js';
|
|
5
|
+
export type * from './invariants/index.js';
|
|
6
|
+
export type * from './json-schema.js';
|
|
7
|
+
export * from './markers/index.js';
|
|
8
|
+
export type * from './model/index.js';
|
|
9
|
+
export * from './sections/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./application/index.js";export*from"./components/index.js";export*from"./enhanced-json/index.js";export*from"./expressions/index.js";export*from"./markers/index.js";export*from"./sections/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Branded } from '@salsita-ai/common/utils';
|
|
2
|
+
import type { MsgMarker } from '../markers/index.js';
|
|
3
|
+
import type { InvariantName, ViolationTypeName } from '../model/index.js';
|
|
4
|
+
export type InvariantSeverity = 'fatal' | 'fixable' | 'warning' | 'notice';
|
|
5
|
+
/** A YAML invariant whose violation metadata is fully declared in the application spec. */
|
|
6
|
+
export type StaticInvariant = Branded<'StaticInvariant', {
|
|
7
|
+
readonly kind: 'static';
|
|
8
|
+
readonly name: InvariantName;
|
|
9
|
+
readonly violationType: ViolationTypeName;
|
|
10
|
+
readonly severity: InvariantSeverity;
|
|
11
|
+
readonly message: string | MsgMarker;
|
|
12
|
+
readonly controlViolationPriority?: number;
|
|
13
|
+
}>;
|
|
14
|
+
/** A YAML invariant whose implementation may return any of the declared violation types. */
|
|
15
|
+
export type DynamicInvariant = Branded<'DynamicInvariant', {
|
|
16
|
+
readonly kind: 'dynamic';
|
|
17
|
+
readonly name: InvariantName;
|
|
18
|
+
readonly violationTypes: readonly ViolationTypeName[];
|
|
19
|
+
}>;
|
|
20
|
+
/**
|
|
21
|
+
* A validated static or dynamic invariant declaration of the application spec. `application-spec`
|
|
22
|
+
* exports it as `Invariant`.
|
|
23
|
+
*/
|
|
24
|
+
export type SpecInvariant = StaticInvariant | DynamicInvariant;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Branded } from '@salsita-ai/common/utils';
|
|
2
|
+
import type { ComponentEntry } from '../components/index.js';
|
|
3
|
+
import type { SpecExpression } from '../expressions/index.js';
|
|
4
|
+
import type { EntityOrAliasName, InvariantName } from '../model/index.js';
|
|
5
|
+
import type { SpecInvariant } from './invariant.js';
|
|
6
|
+
/**
|
|
7
|
+
* Validated invariants and the expressions/components they contribute to the application spec.
|
|
8
|
+
* Entries retain their entity-or-alias declaration keys while artifacts expand to concrete entity types.
|
|
9
|
+
*/
|
|
10
|
+
export type Invariants = Branded<'Invariants', {
|
|
11
|
+
readonly entries: Readonly<Record<EntityOrAliasName, Readonly<Record<InvariantName, SpecInvariant>>>>;
|
|
12
|
+
readonly expressions: readonly SpecExpression[];
|
|
13
|
+
readonly components: readonly ComponentEntry[];
|
|
14
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { JsonSchemaType } from '../core/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* Plain AJV-ready JSON Schema — the output of `toRuntimeSchema` in `application-spec`.
|
|
4
|
+
*
|
|
5
|
+
* Identical in structure to `EnhancedJsonSchemaType` except the Phoenix-only
|
|
6
|
+
* extensions (`tsType`, `import`, `references`) are gone; those are
|
|
7
|
+
* stripped by `stripCustomKeywords` before this type is produced. All `$ref`
|
|
8
|
+
* targets are local (`#/$defs/{name}`) — no external references remain. Shapes
|
|
9
|
+
* stored under `$defs` are themselves `JsonSchema`s.
|
|
10
|
+
*
|
|
11
|
+
* Use this type anywhere the runtime AJV shape is required (validators,
|
|
12
|
+
* serializers, migration tools). Schema producers (`Shapes`, `CommonTypes`,
|
|
13
|
+
* relation inference) keep using `EnhancedJsonSchemaType`.
|
|
14
|
+
*/
|
|
15
|
+
export interface JsonSchema {
|
|
16
|
+
readonly id?: string;
|
|
17
|
+
readonly $ref?: string;
|
|
18
|
+
readonly $schema?: string;
|
|
19
|
+
readonly $defs?: Readonly<Record<string, JsonSchema>>;
|
|
20
|
+
readonly title?: string;
|
|
21
|
+
readonly description?: string;
|
|
22
|
+
readonly default?: unknown;
|
|
23
|
+
readonly format?: string;
|
|
24
|
+
readonly multipleOf?: number;
|
|
25
|
+
readonly maximum?: number;
|
|
26
|
+
readonly exclusiveMaximum?: boolean;
|
|
27
|
+
readonly minimum?: number;
|
|
28
|
+
readonly exclusiveMinimum?: boolean;
|
|
29
|
+
readonly maxLength?: number;
|
|
30
|
+
readonly minLength?: number;
|
|
31
|
+
readonly pattern?: string;
|
|
32
|
+
readonly additionalItems?: boolean | JsonSchema;
|
|
33
|
+
readonly items?: JsonSchema | readonly JsonSchema[];
|
|
34
|
+
readonly maxItems?: number;
|
|
35
|
+
readonly minItems?: number;
|
|
36
|
+
readonly uniqueItems?: boolean;
|
|
37
|
+
readonly maxProperties?: number;
|
|
38
|
+
readonly minProperties?: number;
|
|
39
|
+
readonly required?: readonly string[];
|
|
40
|
+
readonly additionalProperties?: boolean | JsonSchema;
|
|
41
|
+
readonly definitions?: Readonly<Record<string, JsonSchema>>;
|
|
42
|
+
readonly properties?: Readonly<Record<string, JsonSchema>>;
|
|
43
|
+
readonly patternProperties?: Readonly<Record<string, JsonSchema>>;
|
|
44
|
+
readonly dependencies?: Readonly<Record<string, JsonSchema | readonly string[]>>;
|
|
45
|
+
readonly enum?: readonly unknown[];
|
|
46
|
+
readonly type?: JsonSchemaType | readonly JsonSchemaType[];
|
|
47
|
+
readonly allOf?: readonly JsonSchema[];
|
|
48
|
+
readonly anyOf?: readonly JsonSchema[];
|
|
49
|
+
readonly oneOf?: readonly JsonSchema[];
|
|
50
|
+
readonly not?: JsonSchema;
|
|
51
|
+
readonly [k: string]: unknown;
|
|
52
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./component-prop-target.js";export*from"./eval-marker.js";export*from"./msg-marker.js";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { MessageDescriptor } from '@lingui/core';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
/** Key literal for the `$msg` marker in raw YAML. */
|
|
4
|
+
export declare const MSG_MARKER_KEY: '$msg';
|
|
5
|
+
/** Key literal for the optional `$msgId` qualifier on `$msg`. */
|
|
6
|
+
export declare const MSG_ID_MARKER_KEY: '$msgId';
|
|
7
|
+
/**
|
|
8
|
+
* YAML marker produced by `$msg: 'text'` / `$msg: 'text', $msgId: 'id'` entries.
|
|
9
|
+
* `$msgId` is a qualifier on `$msg`, not a standalone marker.
|
|
10
|
+
*/
|
|
11
|
+
export interface MsgMarker {
|
|
12
|
+
readonly $msg: string;
|
|
13
|
+
readonly $msgId?: string;
|
|
14
|
+
}
|
|
15
|
+
/** Zod decoder for {@link MsgMarker}. Strict — rejects extra keys. */
|
|
16
|
+
export declare const msgMarkerSchema: z.ZodObject<{
|
|
17
|
+
$msg: z.ZodString;
|
|
18
|
+
$msgId: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, "strict", z.ZodTypeAny, {
|
|
20
|
+
$msg: string;
|
|
21
|
+
$msgId?: string | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
$msg: string;
|
|
24
|
+
$msgId?: string | undefined;
|
|
25
|
+
}>;
|
|
26
|
+
/** Structural type guard for {@link MsgMarker}. */
|
|
27
|
+
export declare const isMsgMarker: (value: unknown) => value is MsgMarker;
|
|
28
|
+
export declare const createMessageDescriptor: (marker: MsgMarker) => MessageDescriptor;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{generateMessageId as s}from"@lingui/message-utils/generateMessageId";import{z as e}from"zod";export const MSG_MARKER_KEY="$msg";export const MSG_ID_MARKER_KEY="$msgId";export const msgMarkerSchema=e.object({$msg:e.string(),$msgId:e.string().optional()}).strict();export const isMsgMarker=s=>msgMarkerSchema.safeParse(s).success;export const createMessageDescriptor=e=>({id:e.$msgId??s(e.$msg),message:e.$msg});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Branded } from '@salsita-ai/common/utils';
|
|
2
|
+
import type { AliasName, EntityTypeName } from './names/index.js';
|
|
3
|
+
/**
|
|
4
|
+
* Flattened alias map — each alias name maps to the concrete entity types it resolves to.
|
|
5
|
+
* Nested aliases (e.g. AllLegs → [SteelLegs, LegsOak] where SteelLegs is itself an alias)
|
|
6
|
+
* are fully resolved to leaf entity types. Includes the synthetic "AnyDomainEntity" alias
|
|
7
|
+
* that maps to all entity types in the version. `application-spec` exports it as `Aliases`.
|
|
8
|
+
*/
|
|
9
|
+
export type SpecAliases = Branded<'Aliases', ReadonlyMap<AliasName, readonly EntityTypeName[]>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Branded } from '@salsita-ai/common/utils';
|
|
2
|
+
import type { EnhancedJsonSchemaType } from '../../core/index.js';
|
|
3
|
+
import type { JsonSchema } from '../json-schema.js';
|
|
4
|
+
/** A single common type definition with both enhanced schema (for type inference) and resolved runtime schema. */
|
|
5
|
+
export type CommonType = Branded<'CommonType', {
|
|
6
|
+
readonly name: string;
|
|
7
|
+
readonly schema: EnhancedJsonSchemaType;
|
|
8
|
+
readonly runtimeSchema: JsonSchema;
|
|
9
|
+
}>;
|
|
10
|
+
/**
|
|
11
|
+
* Branded map of common type name to CommonType.
|
|
12
|
+
* Entries are in topo-sorted order (dependencies before dependents),
|
|
13
|
+
* so iterating the map yields types in valid emission order.
|
|
14
|
+
*/
|
|
15
|
+
export type CommonTypes = Branded<'CommonTypes', ReadonlyMap<string, CommonType>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { Branded } from '@salsita-ai/common/utils';
|
|
2
|
+
import type { EnhancedJsonValue } from '../enhanced-json/index.js';
|
|
3
|
+
import type { EntityTypeName, ShapePropertyName } from './names/index.js';
|
|
4
|
+
/**
|
|
5
|
+
* A map of shape property names to their default values inside a single entity block.
|
|
6
|
+
* Raw YAML values — markers intact — keyed by a validated {@link ShapePropertyName}.
|
|
7
|
+
* Codegen emits these as-is via `stringifyEnhancedJsonValue`; at run time
|
|
8
|
+
* `createRecipeFactory` makes the generated `createRecipe` factory from them.
|
|
9
|
+
*/
|
|
10
|
+
export type DefaultEntries = Readonly<Record<ShapePropertyName, EnhancedJsonValue>>;
|
|
11
|
+
/**
|
|
12
|
+
* Validated defaults map — source keys confirmed to exist in `model.latest`,
|
|
13
|
+
* property names confirmed to exist on the (effective) shape of the entity
|
|
14
|
+
* or on every alias member's effective shape, values type-checked against the
|
|
15
|
+
* relaxed entity shape (all properties optional). Alias-keyed defaults are
|
|
16
|
+
* flattened here to concrete entity entries so downstream codegen only serialises
|
|
17
|
+
* a runtime-ready per-entity map.
|
|
18
|
+
*
|
|
19
|
+
* A source key may state part of a shape, but the flattened entry of a concrete
|
|
20
|
+
* entity type states every property of its shape: `createRecipeFactory` validates
|
|
21
|
+
* each entry as a whole entity when the generated module loads. An entity type
|
|
22
|
+
* with no entry has no defaults and is not checked.
|
|
23
|
+
*
|
|
24
|
+
* Values are raw `EnhancedJsonValue` so codegen can emit them via
|
|
25
|
+
* `stringifyEnhancedJsonValue` with `$msg` markers preserved.
|
|
26
|
+
*
|
|
27
|
+
* **Deprecated feature.** The whole defaults surface is retained for legacy parity.
|
|
28
|
+
* New specs should express initial values as `$data` entries. When the merged map is
|
|
29
|
+
* non-empty, the factory emits a `DEFAULTS_DEPRECATED` warning.
|
|
30
|
+
*/
|
|
31
|
+
export type Defaults = Branded<'Defaults', {
|
|
32
|
+
readonly entries: Readonly<Record<EntityTypeName, DefaultEntries>>;
|
|
33
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Branded } from '@salsita-ai/common/utils';
|
|
2
|
+
import type { EntityTypeName } from './names/index.js';
|
|
3
|
+
/**
|
|
4
|
+
* Validated list of entity type names declared in a model version (e.g. [Table, TopCircle, Legs3D]).
|
|
5
|
+
* Entity types are the concrete domain objects that can be instantiated in the configurator.
|
|
6
|
+
* Each name must be unique PascalCase.
|
|
7
|
+
*/
|
|
8
|
+
export type EntityTypes = Branded<'EntityTypes', readonly EntityTypeName[]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type * from './aliases.js';
|
|
2
|
+
export type * from './common-types.js';
|
|
3
|
+
export type * from './defaults.js';
|
|
4
|
+
export type * from './entity-types.js';
|
|
5
|
+
export type * from './model-version-key.js';
|
|
6
|
+
export type * from './names/index.js';
|
|
7
|
+
export type * from './presets.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Branded } from '@salsita-ai/common/utils';
|
|
2
|
+
/**
|
|
3
|
+
* Branded action name: camelCase without a prefix (e.g. "movePartBy", "swapCabinets"). An action is
|
|
4
|
+
* a named domain operation, so its name doubles as the key of its implementation and of its
|
|
5
|
+
* generated types.
|
|
6
|
+
*/
|
|
7
|
+
export type ActionName = Branded<'ActionName', string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Branded } from '@salsita-ai/common/utils';
|
|
2
|
+
/**
|
|
3
|
+
* Branded PascalCase alias name (e.g. "RootEntity", "AllLegs").
|
|
4
|
+
* Aliases group entity types so that shapes, expressions, and rules can target
|
|
5
|
+
* multiple entities at once. "RootEntity" is required in every model version.
|
|
6
|
+
*/
|
|
7
|
+
export type AliasName = Branded<'AliasName', string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AliasName } from './alias-name.js';
|
|
2
|
+
import type { EntityTypeName } from './entity-type-name.js';
|
|
3
|
+
/**
|
|
4
|
+
* A PascalCase name that identifies either a concrete entity type (e.g. "Table")
|
|
5
|
+
* or an alias group (e.g. "RootEntity"). Used as shape keys since shapes
|
|
6
|
+
* can be defined for both entity types and aliases.
|
|
7
|
+
*/
|
|
8
|
+
export type EntityOrAliasName = EntityTypeName | AliasName;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Branded } from '@salsita-ai/common/utils';
|
|
2
|
+
/**
|
|
3
|
+
* Branded PascalCase entity type name (e.g. "Table", "TopCircle", "Legs3D").
|
|
4
|
+
* Entity types are the concrete domain objects declared in a model version.
|
|
5
|
+
* Each entity type can have shapes, be referenced by aliases, and be instantiated
|
|
6
|
+
* in the configurator at runtime.
|
|
7
|
+
*/
|
|
8
|
+
export type EntityTypeName = Branded<'EntityTypeName', string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Branded } from '@salsita-ai/common/utils';
|
|
2
|
+
/**
|
|
3
|
+
* Branded expression name starting with $ followed by camelCase (e.g. "$price", "$isValid", "$availableColors").
|
|
4
|
+
* Expressions are computed properties on entities — their names are prefixed with $ to distinguish them from shape properties.
|
|
5
|
+
*/
|
|
6
|
+
export type ExpressionName = Branded<'ExpressionName', string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type * from './action-name.js';
|
|
2
|
+
export type * from './alias-name.js';
|
|
3
|
+
export type * from './entity-or-alias-name.js';
|
|
4
|
+
export type * from './entity-type-name.js';
|
|
5
|
+
export type * from './expression-name.js';
|
|
6
|
+
export type * from './instance-name.js';
|
|
7
|
+
export type * from './invariant-name.js';
|
|
8
|
+
export type * from './shape-property-name.js';
|
|
9
|
+
export type * from './violation-type-name.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Branded } from '@salsita-ai/common/utils';
|
|
2
|
+
/**
|
|
3
|
+
* Branded component instance name.
|
|
4
|
+
* User-declared names must start with a letter (e.g. "default", "body", "main").
|
|
5
|
+
* SDK-derived names may include `$` prefix and `.` separators (e.g. "$top", "Table.$top").
|
|
6
|
+
*/
|
|
7
|
+
export type InstanceName = Branded<'InstanceName', string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Branded } from '@salsita-ai/common/utils';
|
|
2
|
+
/**
|
|
3
|
+
* Branded shape property name — the key under which an entity shape (or
|
|
4
|
+
* alias shape) declares a field, and the key under which `defaults:` attaches
|
|
5
|
+
* initial values. Must match /^[a-z]\w*$/: start with a lowercase letter,
|
|
6
|
+
* then word characters (letters, digits, underscore).
|
|
7
|
+
*
|
|
8
|
+
* Examples: `height`, `positionX`, `hoodId`. Rejected: `Height`, `$height`,
|
|
9
|
+
* `3D`, `height-px`.
|
|
10
|
+
*/
|
|
11
|
+
export type ShapePropertyName = Branded<'ShapePropertyName', string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { Branded } from '@salsita-ai/common/utils';
|
|
2
|
+
/**
|
|
3
|
+
* A single entity within a preset — id, type, and shape properties.
|
|
4
|
+
* Properties are validated against the entity's schema from ConfigurationSchema.
|
|
5
|
+
*/
|
|
6
|
+
export type PresetEntity = Branded<'PresetEntity', {
|
|
7
|
+
readonly id: string;
|
|
8
|
+
readonly type: string;
|
|
9
|
+
readonly properties: Readonly<Record<string, unknown>>;
|
|
10
|
+
}>;
|
|
11
|
+
/**
|
|
12
|
+
* A single parsed preset — the root entity type, initial entities, and optional metadata.
|
|
13
|
+
* Represents one initial configuration state for a configurator deployment. `application-spec`
|
|
14
|
+
* exports it as `Preset`.
|
|
15
|
+
*/
|
|
16
|
+
export type SpecPreset = Branded<'Preset', {
|
|
17
|
+
readonly rootEntityType: string;
|
|
18
|
+
readonly initialDomainEntities: readonly PresetEntity[];
|
|
19
|
+
readonly name?: string;
|
|
20
|
+
readonly description?: string;
|
|
21
|
+
readonly img?: string;
|
|
22
|
+
readonly imgAlt?: string;
|
|
23
|
+
readonly detailTitle?: string;
|
|
24
|
+
readonly detailDescription?: string;
|
|
25
|
+
readonly tags?: readonly string[];
|
|
26
|
+
}>;
|
|
27
|
+
/** All parsed presets for a parsed configurator or admin model. */
|
|
28
|
+
export type Presets = Branded<'Presets', {
|
|
29
|
+
readonly presets: readonly SpecPreset[];
|
|
30
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Branded } from '@salsita-ai/common/utils';
|
|
2
|
+
import type { EnhancedJsonSchemaType } from '../../core/index.js';
|
|
3
|
+
import type { JsonSchema } from '../json-schema.js';
|
|
4
|
+
import type { ActionName } from '../model/index.js';
|
|
5
|
+
/** One parameter of an action: its declared schema, and whether a call has to pass it (a nullable param is optional). */
|
|
6
|
+
export interface ActionParam {
|
|
7
|
+
readonly schema: EnhancedJsonSchemaType;
|
|
8
|
+
readonly required: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* One validated action declaration. `params` and `result` keep the enhanced schemas for codegen and
|
|
12
|
+
* for consumers that expose the action; `paramsSchema` is the AJV-ready object schema of the parameters, with the
|
|
13
|
+
* refs resolved into `$defs`, which the action system validates the arguments of a call against.
|
|
14
|
+
*/
|
|
15
|
+
export type Action = Branded<'Action', {
|
|
16
|
+
readonly name: ActionName;
|
|
17
|
+
readonly description?: string;
|
|
18
|
+
readonly params: Readonly<Record<string, ActionParam>>;
|
|
19
|
+
readonly result: Readonly<Record<string, EnhancedJsonSchemaType>>;
|
|
20
|
+
readonly paramsSchema: JsonSchema;
|
|
21
|
+
}>;
|
|
22
|
+
/** The validated `actions` section: every declared action by name, in declaration order; empty when the spec declares none. */
|
|
23
|
+
export type Actions = Branded<'Actions', ReadonlyMap<ActionName, Action>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Branded } from '@salsita-ai/common/utils';
|
|
2
|
+
import type { ApplicationVersion } from './application-version.js';
|
|
3
|
+
/**
|
|
4
|
+
* Validated application metadata — version, auth, infrastructure settings.
|
|
5
|
+
* Used by codegen for ApplicationVersion export and builder chain methods.
|
|
6
|
+
*/
|
|
7
|
+
export type AppMetadata = Branded<'AppMetadata', {
|
|
8
|
+
readonly applicationVersion: ApplicationVersion;
|
|
9
|
+
readonly workspace: boolean;
|
|
10
|
+
readonly webComponentTag: string | undefined;
|
|
11
|
+
readonly pageTitle: string | undefined;
|
|
12
|
+
readonly useAuthHook: boolean;
|
|
13
|
+
readonly useClerk: boolean;
|
|
14
|
+
readonly enableAdminRelease: boolean;
|
|
15
|
+
readonly jsonSchemaValidator: 'ajv' | 'csp-compatible';
|
|
16
|
+
readonly gltfDecoder: 'js' | 'wasm';
|
|
17
|
+
readonly collectFinalizeData: boolean;
|
|
18
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Branded } from '@salsita-ai/common/utils';
|
|
2
|
+
/**
|
|
3
|
+
* Branded semantic version (x.y.z) of the application.
|
|
4
|
+
* Exported by codegen as the `ApplicationVersion` constant and stored as
|
|
5
|
+
* `applicationVersion` on the deployment record.
|
|
6
|
+
*/
|
|
7
|
+
export type ApplicationVersion = Branded<'ApplicationVersion', string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Branded } from '@salsita-ai/common/utils';
|
|
2
|
+
/**
|
|
3
|
+
* Validated published-data chunk name.
|
|
4
|
+
* Chunk names identify top-level partitions in generated `publishedData`. Data
|
|
5
|
+
* entries point to these names through their `chunk` field, and the parser adds
|
|
6
|
+
* the reserved `system` chunk when user chunks exist.
|
|
7
|
+
*/
|
|
8
|
+
export type ChunkName = Branded<'ChunkName', string>;
|
|
9
|
+
/**
|
|
10
|
+
* A named partition of published data with a scope.
|
|
11
|
+
* `scope` is typically `'project'` (per-project data) or `'public'` (shared).
|
|
12
|
+
*/
|
|
13
|
+
export interface ChunkDefinition {
|
|
14
|
+
/** Visibility/storage scope used by runtime data publishing for this chunk. */
|
|
15
|
+
readonly scope: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Validated chunk definitions, keyed by chunk name.
|
|
19
|
+
* When any user-defined chunks are present, the reserved `system` chunk is
|
|
20
|
+
* auto-injected with `scope: 'public'` to carry admin presets/recipes schemas.
|
|
21
|
+
* When the input is empty, no system injection happens (mirrors domain-spec behavior).
|
|
22
|
+
*/
|
|
23
|
+
export type Chunks = Readonly<Record<ChunkName, ChunkDefinition>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { DataCellValue, DataSchema } from '../../../core/index.js';
|
|
2
|
+
/** Parsed `$data.custom` entry with validated definition and normalized row values. */
|
|
3
|
+
export interface CustomDataSpecEntry {
|
|
4
|
+
/** Column/property schema for a custom data row, used by admin pages and published-data schemas. */
|
|
5
|
+
readonly definition: DataSchema;
|
|
6
|
+
/** Optional published-data chunk that receives this entry as an array property. */
|
|
7
|
+
readonly chunk?: string;
|
|
8
|
+
/** Ownership mode deciding whether data is manual, externally connected, or admin-generated. */
|
|
9
|
+
readonly kind: 'manual' | 'connected' | 'generated';
|
|
10
|
+
/** Optional human-readable label used by inferred admin pages and connected-data UI. */
|
|
11
|
+
readonly title?: string;
|
|
12
|
+
/** Optional icon name used in inferred admin navigation. */
|
|
13
|
+
readonly icon?: string;
|
|
14
|
+
/** Default rows normalized to the same column order as `definition`. */
|
|
15
|
+
readonly values?: ReadonlyArray<readonly DataCellValue[]>;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|