@plitzi/sdk-mcp 0.33.0
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/CHANGELOG.md +15 -0
- package/README.md +175 -0
- package/dist/createServer.d.ts +11 -0
- package/dist/createServer.js +36 -0
- package/dist/createServer.test.d.ts +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +21 -0
- package/dist/modules/ai/AIEngine.d.ts +20 -0
- package/dist/modules/ai/AIEngine.js +120 -0
- package/dist/modules/ai/index.d.ts +4 -0
- package/dist/modules/ai/toolkit.d.ts +17 -0
- package/dist/modules/ai/toolkit.js +59 -0
- package/dist/modules/ai/toolkit.test.d.ts +1 -0
- package/dist/modules/mcp/apps/apps.test.d.ts +1 -0
- package/dist/modules/mcp/apps/example/index.d.ts +8 -0
- package/dist/modules/mcp/apps/example/view/index.tsx +70 -0
- package/dist/modules/mcp/apps/index.d.ts +11 -0
- package/dist/modules/mcp/apps/index.js +16 -0
- package/dist/modules/mcp/apps/render/index.d.ts +4 -0
- package/dist/modules/mcp/apps/render/index.js +17 -0
- package/dist/modules/mcp/apps/render/styles.d.ts +10 -0
- package/dist/modules/mcp/apps/render/styles.js +54 -0
- package/dist/modules/mcp/apps/render/styles.test.d.ts +1 -0
- package/dist/modules/mcp/apps/render/view/heldBatch.ts +107 -0
- package/dist/modules/mcp/apps/render/view/index.tsx +314 -0
- package/dist/modules/mcp/apps/render/view/streamProgress.ts +137 -0
- package/dist/modules/mcp/apps/shared/assets.d.ts +10 -0
- package/dist/modules/mcp/apps/shared/assets.js +10 -0
- package/dist/modules/mcp/apps/shared/bundle.d.ts +4 -0
- package/dist/modules/mcp/apps/shared/bundle.js +23 -0
- package/dist/modules/mcp/apps/shared/index.d.ts +3 -0
- package/dist/modules/mcp/apps/shared/page.d.ts +2 -0
- package/dist/modules/mcp/apps/shared/page.js +34 -0
- package/dist/modules/mcp/apps/shared/registerApp.d.ts +5 -0
- package/dist/modules/mcp/apps/shared/registerApp.js +43 -0
- package/dist/modules/mcp/apps/shared/resolve.d.ts +1 -0
- package/dist/modules/mcp/apps/shared/resolve.js +5 -0
- package/dist/modules/mcp/apps/shared/shell.ejs +59 -0
- package/dist/modules/mcp/apps/shared/zodEnglishOnly.d.ts +4 -0
- package/dist/modules/mcp/apps/shared/zodEnglishOnly.js +23 -0
- package/dist/modules/mcp/catalogs/builtinCallbacks.d.ts +19 -0
- package/dist/modules/mcp/catalogs/builtinCallbacks.js +139 -0
- package/dist/modules/mcp/catalogs/builtinComponents.d.ts +4 -0
- package/dist/modules/mcp/catalogs/builtinComponents.js +165 -0
- package/dist/modules/mcp/catalogs/builtinElementCallbacks.d.ts +17 -0
- package/dist/modules/mcp/catalogs/builtinElementCallbacks.js +50 -0
- package/dist/modules/mcp/catalogs/builtinTransformers.d.ts +28 -0
- package/dist/modules/mcp/catalogs/builtinTransformers.js +148 -0
- package/dist/modules/mcp/catalogs/builtinTransformers.test.d.ts +1 -0
- package/dist/modules/mcp/catalogs/builtinUtilities.d.ts +15 -0
- package/dist/modules/mcp/catalogs/builtinUtilities.js +90 -0
- package/dist/modules/mcp/catalogs/cssCatalog/border.d.ts +4 -0
- package/dist/modules/mcp/catalogs/cssCatalog/border.js +30 -0
- package/dist/modules/mcp/catalogs/cssCatalog/box.d.ts +4 -0
- package/dist/modules/mcp/catalogs/cssCatalog/box.js +31 -0
- package/dist/modules/mcp/catalogs/cssCatalog/cssCatalog.test.d.ts +1 -0
- package/dist/modules/mcp/catalogs/cssCatalog/helpers.d.ts +34 -0
- package/dist/modules/mcp/catalogs/cssCatalog/helpers.js +185 -0
- package/dist/modules/mcp/catalogs/cssCatalog/index.d.ts +18 -0
- package/dist/modules/mcp/catalogs/cssCatalog/index.js +131 -0
- package/dist/modules/mcp/catalogs/cssCatalog/layout.d.ts +9 -0
- package/dist/modules/mcp/catalogs/cssCatalog/layout.js +99 -0
- package/dist/modules/mcp/catalogs/cssCatalog/visual.d.ts +8 -0
- package/dist/modules/mcp/catalogs/cssCatalog/visual.js +147 -0
- package/dist/modules/mcp/catalogs/index.d.ts +9 -0
- package/dist/modules/mcp/catalogs/observed.d.ts +46 -0
- package/dist/modules/mcp/catalogs/observed.js +90 -0
- package/dist/modules/mcp/catalogs/paramSpec.d.ts +39 -0
- package/dist/modules/mcp/catalogs/paramSpec.js +69 -0
- package/dist/modules/mcp/catalogs/registry.d.ts +35 -0
- package/dist/modules/mcp/catalogs/registry.js +89 -0
- package/dist/modules/mcp/e2e/connector.test.d.ts +1 -0
- package/dist/modules/mcp/e2e/host.test.d.ts +1 -0
- package/dist/modules/mcp/e2e/index.d.ts +6 -0
- package/dist/modules/mcp/e2e/mcpEndpoint.d.ts +27 -0
- package/dist/modules/mcp/e2e/oauthConnector.test.d.ts +1 -0
- package/dist/modules/mcp/e2e/postMessageChannel.d.ts +22 -0
- package/dist/modules/mcp/e2e/renderingHost.d.ts +39 -0
- package/dist/modules/mcp/handler.d.ts +22 -0
- package/dist/modules/mcp/handler.js +83 -0
- package/dist/modules/mcp/helpers/agentPrompt.d.ts +4 -0
- package/dist/modules/mcp/helpers/agentPrompt.js +104 -0
- package/dist/modules/mcp/helpers/computeVersion.d.ts +1 -0
- package/dist/modules/mcp/helpers/computeVersion.js +16 -0
- package/dist/modules/mcp/helpers/guide.d.ts +4 -0
- package/dist/modules/mcp/helpers/guide.js +608 -0
- package/dist/modules/mcp/helpers/index.d.ts +8 -0
- package/dist/modules/mcp/helpers/interactions.d.ts +30 -0
- package/dist/modules/mcp/helpers/interactions.js +123 -0
- package/dist/modules/mcp/helpers/log.d.ts +8 -0
- package/dist/modules/mcp/helpers/log.js +64 -0
- package/dist/modules/mcp/helpers/log.test.d.ts +1 -0
- package/dist/modules/mcp/helpers/opResult.d.ts +13 -0
- package/dist/modules/mcp/helpers/opResult.js +18 -0
- package/dist/modules/mcp/helpers/space.d.ts +126 -0
- package/dist/modules/mcp/helpers/space.js +314 -0
- package/dist/modules/mcp/helpers/uris.d.ts +33 -0
- package/dist/modules/mcp/helpers/uris.js +50 -0
- package/dist/modules/mcp/index.d.ts +13 -0
- package/dist/modules/mcp/mcp.bench.d.ts +1 -0
- package/dist/modules/mcp/previewClient.d.ts +13 -0
- package/dist/modules/mcp/previewClient.js +31 -0
- package/dist/modules/mcp/proxy/config.d.ts +20 -0
- package/dist/modules/mcp/proxy/config.js +62 -0
- package/dist/modules/mcp/proxy/endpoint.test.d.ts +1 -0
- package/dist/modules/mcp/proxy/fetch.d.ts +18 -0
- package/dist/modules/mcp/proxy/fetch.js +91 -0
- package/dist/modules/mcp/proxy/grant.d.ts +25 -0
- package/dist/modules/mcp/proxy/grant.js +67 -0
- package/dist/modules/mcp/proxy/guard.d.ts +6 -0
- package/dist/modules/mcp/proxy/guard.js +38 -0
- package/dist/modules/mcp/proxy/handler.d.ts +8 -0
- package/dist/modules/mcp/proxy/handler.js +99 -0
- package/dist/modules/mcp/proxy/index.d.ts +8 -0
- package/dist/modules/mcp/proxy/payload.d.ts +8 -0
- package/dist/modules/mcp/proxy/payload.js +29 -0
- package/dist/modules/mcp/proxy/proxy.test.d.ts +1 -0
- package/dist/modules/mcp/proxy/rewrite.d.ts +18 -0
- package/dist/modules/mcp/proxy/rewrite.js +138 -0
- package/dist/modules/mcp/proxy/sign.d.ts +6 -0
- package/dist/modules/mcp/proxy/sign.js +15 -0
- package/dist/modules/mcp/proxy/types.d.ts +45 -0
- package/dist/modules/mcp/proxy/types.js +9 -0
- package/dist/modules/mcp/proxy/wiring.test.d.ts +1 -0
- package/dist/modules/mcp/resources/canonical.d.ts +6 -0
- package/dist/modules/mcp/resources/canonical.js +30 -0
- package/dist/modules/mcp/resources/connectors.d.ts +22 -0
- package/dist/modules/mcp/resources/connectors.js +46 -0
- package/dist/modules/mcp/resources/core.d.ts +5 -0
- package/dist/modules/mcp/resources/core.js +18 -0
- package/dist/modules/mcp/resources/envelope.d.ts +10 -0
- package/dist/modules/mcp/resources/envelope.js +14 -0
- package/dist/modules/mcp/resources/index.d.ts +9 -0
- package/dist/modules/mcp/resources/primer.d.ts +7 -0
- package/dist/modules/mcp/resources/primer.js +33 -0
- package/dist/modules/mcp/resources/register.d.ts +10 -0
- package/dist/modules/mcp/resources/register.js +205 -0
- package/dist/modules/mcp/resources/renderGuide.d.ts +10 -0
- package/dist/modules/mcp/resources/renderGuide.js +451 -0
- package/dist/modules/mcp/resources/router.d.ts +10 -0
- package/dist/modules/mcp/resources/router.js +39 -0
- package/dist/modules/mcp/resources/schema.d.ts +5 -0
- package/dist/modules/mcp/resources/schema.js +43 -0
- package/dist/modules/mcp/resources/style.d.ts +5 -0
- package/dist/modules/mcp/resources/style.js +34 -0
- package/dist/modules/mcp/screenshotClient.d.ts +13 -0
- package/dist/modules/mcp/screenshotClient.js +47 -0
- package/dist/modules/mcp/server.d.ts +31 -0
- package/dist/modules/mcp/server.js +127 -0
- package/dist/modules/mcp/tests/apply.test.d.ts +1 -0
- package/dist/modules/mcp/tests/bindings.test.d.ts +1 -0
- package/dist/modules/mcp/tests/connectors.test.d.ts +1 -0
- package/dist/modules/mcp/tests/css.test.d.ts +1 -0
- package/dist/modules/mcp/tests/helpers.d.ts +13 -0
- package/dist/modules/mcp/tests/interactions.test.d.ts +1 -0
- package/dist/modules/mcp/tests/pages.test.d.ts +1 -0
- package/dist/modules/mcp/tests/reads.test.d.ts +1 -0
- package/dist/modules/mcp/tests/schemaIds.test.d.ts +1 -0
- package/dist/modules/mcp/tests/search.test.d.ts +1 -0
- package/dist/modules/mcp/tests/skill.test.d.ts +1 -0
- package/dist/modules/mcp/tests/styles.test.d.ts +1 -0
- package/dist/modules/mcp/tests/tools.test.d.ts +1 -0
- package/dist/modules/mcp/tests/validation.test.d.ts +1 -0
- package/dist/modules/mcp/tools/apply/dispatch.d.ts +6 -0
- package/dist/modules/mcp/tools/apply/dispatch.js +128 -0
- package/dist/modules/mcp/tools/apply/index.d.ts +656 -0
- package/dist/modules/mcp/tools/apply/index.js +161 -0
- package/dist/modules/mcp/tools/apply/writeResult.d.ts +8 -0
- package/dist/modules/mcp/tools/apply/writeResult.js +37 -0
- package/dist/modules/mcp/tools/index.d.ts +18 -0
- package/dist/modules/mcp/tools/index.js +24 -0
- package/dist/modules/mcp/tools/operations/connectors/deleteConnector.d.ts +9 -0
- package/dist/modules/mcp/tools/operations/connectors/deleteConnector.js +20 -0
- package/dist/modules/mcp/tools/operations/connectors/index.d.ts +188 -0
- package/dist/modules/mcp/tools/operations/connectors/index.js +12 -0
- package/dist/modules/mcp/tools/operations/connectors/manifest.d.ts +89 -0
- package/dist/modules/mcp/tools/operations/connectors/manifest.js +70 -0
- package/dist/modules/mcp/tools/operations/connectors/patchConnector.d.ts +94 -0
- package/dist/modules/mcp/tools/operations/connectors/patchConnector.js +58 -0
- package/dist/modules/mcp/tools/operations/connectors/upsertConnector.d.ts +98 -0
- package/dist/modules/mcp/tools/operations/connectors/upsertConnector.js +64 -0
- package/dist/modules/mcp/tools/operations/index.d.ts +2235 -0
- package/dist/modules/mcp/tools/operations/index.js +55 -0
- package/dist/modules/mcp/tools/operations/schema/bindings/deleteBinding.d.ts +17 -0
- package/dist/modules/mcp/tools/operations/schema/bindings/deleteBinding.js +32 -0
- package/dist/modules/mcp/tools/operations/schema/bindings/patchBinding.d.ts +25 -0
- package/dist/modules/mcp/tools/operations/schema/bindings/patchBinding.js +36 -0
- package/dist/modules/mcp/tools/operations/schema/bindings/upsertBinding.d.ts +27 -0
- package/dist/modules/mcp/tools/operations/schema/bindings/upsertBinding.js +47 -0
- package/dist/modules/mcp/tools/operations/schema/elements/deleteElement.d.ts +10 -0
- package/dist/modules/mcp/tools/operations/schema/elements/deleteElement.js +29 -0
- package/dist/modules/mcp/tools/operations/schema/elements/moveElement.d.ts +16 -0
- package/dist/modules/mcp/tools/operations/schema/elements/moveElement.js +41 -0
- package/dist/modules/mcp/tools/operations/schema/elements/patchElement.d.ts +27 -0
- package/dist/modules/mcp/tools/operations/schema/elements/patchElement.js +60 -0
- package/dist/modules/mcp/tools/operations/schema/elements/repeatElement.d.ts +55 -0
- package/dist/modules/mcp/tools/operations/schema/elements/repeatElement.js +148 -0
- package/dist/modules/mcp/tools/operations/schema/elements/upsertElement.d.ts +16 -0
- package/dist/modules/mcp/tools/operations/schema/elements/upsertElement.js +66 -0
- package/dist/modules/mcp/tools/operations/schema/folders/deleteFolder.d.ts +9 -0
- package/dist/modules/mcp/tools/operations/schema/folders/deleteFolder.js +32 -0
- package/dist/modules/mcp/tools/operations/schema/folders/upsertFolder.d.ts +12 -0
- package/dist/modules/mcp/tools/operations/schema/folders/upsertFolder.js +49 -0
- package/dist/modules/mcp/tools/operations/schema/index.d.ts +21 -0
- package/dist/modules/mcp/tools/operations/schema/interactions/deleteInteraction.d.ts +12 -0
- package/dist/modules/mcp/tools/operations/schema/interactions/deleteInteraction.js +52 -0
- package/dist/modules/mcp/tools/operations/schema/interactions/patchInteractionNode.d.ts +18 -0
- package/dist/modules/mcp/tools/operations/schema/interactions/patchInteractionNode.js +47 -0
- package/dist/modules/mcp/tools/operations/schema/interactions/upsertInteractionFlow.d.ts +27 -0
- package/dist/modules/mcp/tools/operations/schema/interactions/upsertInteractionFlow.js +44 -0
- package/dist/modules/mcp/tools/operations/schema/operations.d.ts +236 -0
- package/dist/modules/mcp/tools/operations/schema/operations.js +41 -0
- package/dist/modules/mcp/tools/operations/schema/pages/deletePage.d.ts +9 -0
- package/dist/modules/mcp/tools/operations/schema/pages/deletePage.js +25 -0
- package/dist/modules/mcp/tools/operations/schema/pages/upsertPage.d.ts +14 -0
- package/dist/modules/mcp/tools/operations/schema/pages/upsertPage.js +77 -0
- package/dist/modules/mcp/tools/operations/schema/settings/patchSettings.d.ts +36 -0
- package/dist/modules/mcp/tools/operations/schema/settings/patchSettings.js +44 -0
- package/dist/modules/mcp/tools/operations/schema/shared.d.ts +106 -0
- package/dist/modules/mcp/tools/operations/schema/shared.js +131 -0
- package/dist/modules/mcp/tools/operations/schema/translator.d.ts +12 -0
- package/dist/modules/mcp/tools/operations/schema/translator.js +216 -0
- package/dist/modules/mcp/tools/operations/schema/variables/deleteVariable.d.ts +9 -0
- package/dist/modules/mcp/tools/operations/schema/variables/deleteVariable.js +18 -0
- package/dist/modules/mcp/tools/operations/schema/variables/upsertVariable.d.ts +16 -0
- package/dist/modules/mcp/tools/operations/schema/variables/upsertVariable.js +42 -0
- package/dist/modules/mcp/tools/operations/schema/write.d.ts +42 -0
- package/dist/modules/mcp/tools/operations/schema/write.js +112 -0
- package/dist/modules/mcp/tools/operations/schemaIds.d.ts +6 -0
- package/dist/modules/mcp/tools/operations/schemaIds.js +58 -0
- package/dist/modules/mcp/tools/operations/style/definitions/deleteDefinition.d.ts +9 -0
- package/dist/modules/mcp/tools/operations/style/definitions/deleteDefinition.js +21 -0
- package/dist/modules/mcp/tools/operations/style/definitions/patchDefinition.d.ts +37 -0
- package/dist/modules/mcp/tools/operations/style/definitions/patchDefinition.js +28 -0
- package/dist/modules/mcp/tools/operations/style/definitions/upsertDefinition.d.ts +37 -0
- package/dist/modules/mcp/tools/operations/style/definitions/upsertDefinition.js +24 -0
- package/dist/modules/mcp/tools/operations/style/definitions/upsertDefinitions.d.ts +41 -0
- package/dist/modules/mcp/tools/operations/style/definitions/upsertDefinitions.js +40 -0
- package/dist/modules/mcp/tools/operations/style/globalStyles/deleteGlobalStyle.d.ts +9 -0
- package/dist/modules/mcp/tools/operations/style/globalStyles/deleteGlobalStyle.js +21 -0
- package/dist/modules/mcp/tools/operations/style/globalStyles/patchGlobalStyle.d.ts +37 -0
- package/dist/modules/mcp/tools/operations/style/globalStyles/patchGlobalStyle.js +28 -0
- package/dist/modules/mcp/tools/operations/style/globalStyles/upsertGlobalStyle.d.ts +37 -0
- package/dist/modules/mcp/tools/operations/style/globalStyles/upsertGlobalStyle.js +24 -0
- package/dist/modules/mcp/tools/operations/style/idStyles/deleteIdStyle.d.ts +9 -0
- package/dist/modules/mcp/tools/operations/style/idStyles/deleteIdStyle.js +21 -0
- package/dist/modules/mcp/tools/operations/style/idStyles/patchIdStyle.d.ts +37 -0
- package/dist/modules/mcp/tools/operations/style/idStyles/patchIdStyle.js +28 -0
- package/dist/modules/mcp/tools/operations/style/idStyles/upsertIdStyle.d.ts +37 -0
- package/dist/modules/mcp/tools/operations/style/idStyles/upsertIdStyle.js +24 -0
- package/dist/modules/mcp/tools/operations/style/index.d.ts +15 -0
- package/dist/modules/mcp/tools/operations/style/operations.d.ts +264 -0
- package/dist/modules/mcp/tools/operations/style/operations.js +29 -0
- package/dist/modules/mcp/tools/operations/style/shared.d.ts +116 -0
- package/dist/modules/mcp/tools/operations/style/shared.js +59 -0
- package/dist/modules/mcp/tools/operations/style/translator.d.ts +12 -0
- package/dist/modules/mcp/tools/operations/style/translator.js +101 -0
- package/dist/modules/mcp/tools/operations/style/variables/deleteStyleVariable.d.ts +15 -0
- package/dist/modules/mcp/tools/operations/style/variables/deleteStyleVariable.js +21 -0
- package/dist/modules/mcp/tools/operations/style/variables/upsertStyleVariable.d.ts +20 -0
- package/dist/modules/mcp/tools/operations/style/variables/upsertStyleVariable.js +22 -0
- package/dist/modules/mcp/tools/operations/style/write.d.ts +12 -0
- package/dist/modules/mcp/tools/operations/style/write.js +108 -0
- package/dist/modules/mcp/tools/preview.d.ts +472 -0
- package/dist/modules/mcp/tools/preview.js +37 -0
- package/dist/modules/mcp/tools/read.d.ts +9 -0
- package/dist/modules/mcp/tools/read.js +51 -0
- package/dist/modules/mcp/tools/render.d.ts +506 -0
- package/dist/modules/mcp/tools/render.js +184 -0
- package/dist/modules/mcp/tools/render.test.d.ts +1 -0
- package/dist/modules/mcp/tools/screenshot.d.ts +656 -0
- package/dist/modules/mcp/tools/screenshot.js +83 -0
- package/dist/modules/mcp/tools/search.d.ts +15 -0
- package/dist/modules/mcp/tools/search.js +115 -0
- package/dist/modules/mcp/tools/shared/expandOperations.d.ts +13 -0
- package/dist/modules/mcp/tools/shared/expandOperations.js +44 -0
- package/dist/modules/mcp/tools/shared/tool.d.ts +72 -0
- package/dist/modules/mcp/tools/shared/tool.js +33 -0
- package/dist/modules/mcp/tools/shared/validator/audit.d.ts +4 -0
- package/dist/modules/mcp/tools/shared/validator/audit.js +124 -0
- package/dist/modules/mcp/tools/shared/validator/batch.d.ts +5 -0
- package/dist/modules/mcp/tools/shared/validator/batch.js +39 -0
- package/dist/modules/mcp/tools/shared/validator/bindings.d.ts +6 -0
- package/dist/modules/mcp/tools/shared/validator/bindings.js +70 -0
- package/dist/modules/mcp/tools/shared/validator/connectors.d.ts +19 -0
- package/dist/modules/mcp/tools/shared/validator/connectors.js +76 -0
- package/dist/modules/mcp/tools/shared/validator/context.d.ts +38 -0
- package/dist/modules/mcp/tools/shared/validator/context.js +35 -0
- package/dist/modules/mcp/tools/shared/validator/css.d.ts +4 -0
- package/dist/modules/mcp/tools/shared/validator/css.js +39 -0
- package/dist/modules/mcp/tools/shared/validator/elements.d.ts +7 -0
- package/dist/modules/mcp/tools/shared/validator/elements.js +68 -0
- package/dist/modules/mcp/tools/shared/validator/index.d.ts +8 -0
- package/dist/modules/mcp/tools/shared/validator/index.js +268 -0
- package/dist/modules/mcp/tools/shared/validator/interactions.d.ts +3 -0
- package/dist/modules/mcp/tools/shared/validator/interactions.js +103 -0
- package/dist/modules/mcp/tools/shared/validator/refs.d.ts +4 -0
- package/dist/modules/mcp/tools/shared/validator/refs.js +28 -0
- package/dist/modules/mcp/tools/validate.d.ts +653 -0
- package/dist/modules/mcp/tools/validate.js +47 -0
- package/dist/modules/mcp/types/aiSchema.d.ts +226 -0
- package/dist/modules/mcp/types/appTypes.d.ts +26 -0
- package/dist/modules/mcp/types/index.d.ts +5 -0
- package/dist/modules/mcp/types/previewTypes.d.ts +25 -0
- package/dist/modules/mcp/types/screenshotTypes.d.ts +29 -0
- package/dist/modules/mcp/types/toolTypes.d.ts +145 -0
- package/dist/modules/oauth/authorize.d.ts +7 -0
- package/dist/modules/oauth/authorize.js +177 -0
- package/dist/modules/oauth/challenge.d.ts +11 -0
- package/dist/modules/oauth/challenge.js +33 -0
- package/dist/modules/oauth/consentPage.d.ts +7 -0
- package/dist/modules/oauth/consentPage.js +118 -0
- package/dist/modules/oauth/metadata.d.ts +40 -0
- package/dist/modules/oauth/metadata.js +69 -0
- package/dist/modules/oauth/oauth.test.d.ts +1 -0
- package/dist/modules/oauth/params.d.ts +5 -0
- package/dist/modules/oauth/params.js +5 -0
- package/dist/modules/oauth/pkce.d.ts +6 -0
- package/dist/modules/oauth/pkce.js +15 -0
- package/dist/modules/oauth/records.d.ts +71 -0
- package/dist/modules/oauth/records.js +46 -0
- package/dist/modules/oauth/register.d.ts +5 -0
- package/dist/modules/oauth/register.js +55 -0
- package/dist/modules/oauth/respond.d.ts +13 -0
- package/dist/modules/oauth/respond.js +44 -0
- package/dist/modules/oauth/token.d.ts +5 -0
- package/dist/modules/oauth/token.js +100 -0
- package/dist/options.d.ts +73 -0
- package/dist/packageBoundary.test.d.ts +1 -0
- package/dist/pipeline.d.ts +12 -0
- package/dist/pipeline.js +29 -0
- package/dist/pipeline.test.d.ts +1 -0
- package/dist/preview/createPreview.d.ts +10 -0
- package/dist/preview/createPreview.js +83 -0
- package/dist/server.d.ts +15 -0
- package/dist/server.js +7 -0
- package/dist/stages/mcp.d.ts +4 -0
- package/dist/stages/mcp.js +30 -0
- package/dist/stages/oauth.d.ts +19 -0
- package/dist/stages/oauth.js +114 -0
- package/dist/stages/preview.d.ts +2 -0
- package/dist/stages/preview.js +37 -0
- package/dist/stages/proxy.d.ts +3 -0
- package/dist/stages/proxy.js +14 -0
- package/dist/tests/httpRequest.d.ts +14 -0
- package/package.json +77 -0
- package/skills/plitzi-render/SKILL.md +174 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { findPageByRef, resolveRef } from "../../../../helpers/space.js";
|
|
2
|
+
import { pageUri } from "../../../../helpers/uris.js";
|
|
3
|
+
import { empty, fail } from "../../../../helpers/opResult.js";
|
|
4
|
+
import { elementInput, position } from "../shared.js";
|
|
5
|
+
import { collectInputRefs, createElement, guardNewRef, writeInitialState } from "../write.js";
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
//#region src/modules/mcp/tools/operations/schema/elements/upsertElement.ts
|
|
8
|
+
var upsertElementOp = z.object({
|
|
9
|
+
type: z.literal("upsertElement"),
|
|
10
|
+
pageRef: z.string().describe("Page ref or id"),
|
|
11
|
+
element: elementInput,
|
|
12
|
+
parentRef: z.string().optional().describe("Anchor ref/id; defaults to page root"),
|
|
13
|
+
position: position.optional()
|
|
14
|
+
}).describe("Add an element to a page, or fully update it when element.ref already exists (props and style are REPLACED, not merged). To change only some fields of an existing element, use patchElement instead.");
|
|
15
|
+
var upsertElement = (space, env, op) => {
|
|
16
|
+
const page = findPageByRef(space.schema, op.pageRef);
|
|
17
|
+
if (!page) return fail("pageRef", `Page "${op.pageRef}" not found`, "Read plitzi://schema/" + env + "/pages for valid refs");
|
|
18
|
+
const existing = resolveRef(space.schema, page, op.element.ref);
|
|
19
|
+
if (existing && existing.id !== page.id) {
|
|
20
|
+
if (op.element.label !== void 0) existing.definition.label = op.element.label;
|
|
21
|
+
if (op.element.props !== void 0 || op.element.subType !== void 0) {
|
|
22
|
+
const subType = op.element.subType ?? existing.attributes.subType;
|
|
23
|
+
existing.attributes = subType === void 0 ? { ...op.element.props } : {
|
|
24
|
+
subType,
|
|
25
|
+
...op.element.props
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
if (op.element.style !== void 0) {
|
|
29
|
+
const selectors = { base: (op.element.style.base ?? []).join(" ") };
|
|
30
|
+
for (const [slot, classes] of Object.entries(op.element.style.slots ?? {})) selectors[slot] = classes.join(" ");
|
|
31
|
+
existing.definition.styleSelectors = selectors;
|
|
32
|
+
}
|
|
33
|
+
if (op.element.initialState !== void 0) writeInitialState(existing, op.element.initialState, false);
|
|
34
|
+
if (op.element.runtime !== void 0) existing.definition.runtime = op.element.runtime;
|
|
35
|
+
return {
|
|
36
|
+
...empty(),
|
|
37
|
+
updated: 1,
|
|
38
|
+
staleResources: [pageUri(env, op.pageRef)],
|
|
39
|
+
elementRefs: [op.element.ref]
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
for (const ref of collectInputRefs(op.element)) {
|
|
43
|
+
const guard = guardNewRef(space, ref, "element.ref");
|
|
44
|
+
if (guard) return guard;
|
|
45
|
+
}
|
|
46
|
+
let parent = page;
|
|
47
|
+
let index;
|
|
48
|
+
if (op.parentRef) {
|
|
49
|
+
const anchor = resolveRef(space.schema, page, op.parentRef);
|
|
50
|
+
if (!anchor) return fail("parentRef", `Parent "${op.parentRef}" not found in page "${op.pageRef}"`, "Use an existing ref");
|
|
51
|
+
if (op.position === "before" || op.position === "after") {
|
|
52
|
+
parent = anchor.definition.parentId ? space.schema.flat[anchor.definition.parentId] : page;
|
|
53
|
+
const at = (parent.definition.items ?? []).indexOf(anchor.id);
|
|
54
|
+
index = at < 0 ? void 0 : op.position === "after" ? at + 1 : at;
|
|
55
|
+
} else parent = anchor;
|
|
56
|
+
}
|
|
57
|
+
createElement(space, page, op.element, parent, index);
|
|
58
|
+
return {
|
|
59
|
+
...empty(),
|
|
60
|
+
created: 1,
|
|
61
|
+
staleResources: [pageUri(env, op.pageRef)],
|
|
62
|
+
elementRefs: [op.element.ref]
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
//#endregion
|
|
66
|
+
export { upsertElement, upsertElementOp };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Space, OpResult } from '../../../../helpers';
|
|
3
|
+
import { Env } from '../../../../types';
|
|
4
|
+
export declare const deleteFolderOp: z.ZodObject<{
|
|
5
|
+
type: z.ZodLiteral<"deleteFolder">;
|
|
6
|
+
ref: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export type DeleteFolder = z.infer<typeof deleteFolderOp>;
|
|
9
|
+
export declare const deleteFolder: (space: Space, env: Env, op: DeleteFolder) => OpResult;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { findFolderByRef, isPageElement, pageFoldersOf, sortFolders } from "../../../../helpers/space.js";
|
|
2
|
+
import { folderUri, foldersUri, pagesUri } from "../../../../helpers/uris.js";
|
|
3
|
+
import { empty, fail } from "../../../../helpers/opResult.js";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
//#region src/modules/mcp/tools/operations/schema/folders/deleteFolder.ts
|
|
6
|
+
var deleteFolderOp = z.object({
|
|
7
|
+
type: z.literal("deleteFolder"),
|
|
8
|
+
ref: z.string()
|
|
9
|
+
}).describe("Delete a folder; its child folders and pages move up to its parent (or the root)");
|
|
10
|
+
var deleteFolder = (space, env, op) => {
|
|
11
|
+
const folders = pageFoldersOf(space.schema);
|
|
12
|
+
const folder = findFolderByRef(space.schema, op.ref);
|
|
13
|
+
if (!folder) return fail("ref", `Folder "${op.ref}" not found`, "Read plitzi://folders for valid refs");
|
|
14
|
+
const newParent = folder.parentId;
|
|
15
|
+
for (const child of folders) if (child.parentId === folder.id) {
|
|
16
|
+
if (newParent === void 0) Reflect.deleteProperty(child, "parentId");
|
|
17
|
+
else child.parentId = newParent;
|
|
18
|
+
}
|
|
19
|
+
for (const el of Object.values(space.schema.flat)) if (isPageElement(space.schema, el) && el.attributes.folder === folder.id) el.attributes.folder = newParent ?? "";
|
|
20
|
+
space.schema.pageFolders = sortFolders(folders.filter((f) => f.id !== folder.id));
|
|
21
|
+
return {
|
|
22
|
+
...empty(),
|
|
23
|
+
deleted: 1,
|
|
24
|
+
staleResources: [
|
|
25
|
+
folderUri(env, folder.id),
|
|
26
|
+
foldersUri(env),
|
|
27
|
+
pagesUri(env)
|
|
28
|
+
]
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
32
|
+
export { deleteFolder, deleteFolderOp };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Space, OpResult } from '../../../../helpers';
|
|
3
|
+
import { Env } from '../../../../types';
|
|
4
|
+
export declare const upsertFolderOp: z.ZodObject<{
|
|
5
|
+
type: z.ZodLiteral<"upsertFolder">;
|
|
6
|
+
ref: z.ZodString;
|
|
7
|
+
name: z.ZodOptional<z.ZodString>;
|
|
8
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
9
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export type UpsertFolder = z.infer<typeof upsertFolderOp>;
|
|
12
|
+
export declare const upsertFolder: (space: Space, env: Env, op: UpsertFolder) => OpResult;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { findFolderByRef, pageFoldersOf, slugify, sortFolders } from "../../../../helpers/space.js";
|
|
2
|
+
import { folderUri, foldersUri } from "../../../../helpers/uris.js";
|
|
3
|
+
import { empty, fail } from "../../../../helpers/opResult.js";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
//#region src/modules/mcp/tools/operations/schema/folders/upsertFolder.ts
|
|
6
|
+
var upsertFolderOp = z.object({
|
|
7
|
+
type: z.literal("upsertFolder"),
|
|
8
|
+
ref: z.string().describe("Folder ref: an existing folder id/name/slug to update, or a new id you choose"),
|
|
9
|
+
name: z.string().optional(),
|
|
10
|
+
slug: z.string().optional(),
|
|
11
|
+
parentId: z.string().nullable().optional().describe("Ref of the parent folder for nesting; null keeps it at root")
|
|
12
|
+
}).describe("Create a sidebar page-folder, or update it when ref already exists. Nest it under another via parentId.");
|
|
13
|
+
var upsertFolder = (space, env, op) => {
|
|
14
|
+
const folders = pageFoldersOf(space.schema);
|
|
15
|
+
let parentId;
|
|
16
|
+
if (op.parentId !== void 0 && op.parentId !== null) {
|
|
17
|
+
const parent = findFolderByRef(space.schema, op.parentId);
|
|
18
|
+
if (!parent) return fail("parentId", `Parent folder "${op.parentId}" not found`, "Create it with upsertFolder first");
|
|
19
|
+
parentId = parent.id;
|
|
20
|
+
}
|
|
21
|
+
const existing = findFolderByRef(space.schema, op.ref);
|
|
22
|
+
if (existing) {
|
|
23
|
+
if (op.name !== void 0) existing.name = op.name;
|
|
24
|
+
if (op.slug !== void 0) existing.slug = op.slug;
|
|
25
|
+
if (op.parentId === null) Reflect.deleteProperty(existing, "parentId");
|
|
26
|
+
else if (op.parentId !== void 0) existing.parentId = parentId;
|
|
27
|
+
space.schema.pageFolders = sortFolders(folders);
|
|
28
|
+
return {
|
|
29
|
+
...empty(),
|
|
30
|
+
updated: 1,
|
|
31
|
+
staleResources: [folderUri(env, existing.id), foldersUri(env)]
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
const folder = {
|
|
35
|
+
id: op.ref,
|
|
36
|
+
name: op.name ?? op.ref,
|
|
37
|
+
slug: op.slug ?? slugify(op.ref)
|
|
38
|
+
};
|
|
39
|
+
if (parentId !== void 0) folder.parentId = parentId;
|
|
40
|
+
folders.push(folder);
|
|
41
|
+
space.schema.pageFolders = sortFolders(folders);
|
|
42
|
+
return {
|
|
43
|
+
...empty(),
|
|
44
|
+
created: 1,
|
|
45
|
+
staleResources: [folderUri(env, folder.id), foldersUri(env)]
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
//#endregion
|
|
49
|
+
export { upsertFolder, upsertFolderOp };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from './translator';
|
|
2
|
+
export { elementOps } from './operations';
|
|
3
|
+
export type { ElementInput } from './shared';
|
|
4
|
+
export * from './elements/upsertElement';
|
|
5
|
+
export * from './elements/repeatElement';
|
|
6
|
+
export * from './elements/patchElement';
|
|
7
|
+
export * from './elements/deleteElement';
|
|
8
|
+
export * from './elements/moveElement';
|
|
9
|
+
export * from './pages/upsertPage';
|
|
10
|
+
export * from './pages/deletePage';
|
|
11
|
+
export * from './folders/upsertFolder';
|
|
12
|
+
export * from './folders/deleteFolder';
|
|
13
|
+
export * from './variables/upsertVariable';
|
|
14
|
+
export * from './variables/deleteVariable';
|
|
15
|
+
export * from './bindings/upsertBinding';
|
|
16
|
+
export * from './bindings/patchBinding';
|
|
17
|
+
export * from './bindings/deleteBinding';
|
|
18
|
+
export * from './interactions/upsertInteractionFlow';
|
|
19
|
+
export * from './interactions/patchInteractionNode';
|
|
20
|
+
export * from './interactions/deleteInteraction';
|
|
21
|
+
export * from './settings/patchSettings';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { OpResult, Space } from '../../../../helpers';
|
|
3
|
+
import { Env } from '../../../../types';
|
|
4
|
+
export declare const deleteInteractionOp: z.ZodObject<{
|
|
5
|
+
type: z.ZodLiteral<"deleteInteraction">;
|
|
6
|
+
pageRef: z.ZodString;
|
|
7
|
+
ref: z.ZodString;
|
|
8
|
+
flowId: z.ZodOptional<z.ZodString>;
|
|
9
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export type DeleteInteraction = z.infer<typeof deleteInteractionOp>;
|
|
12
|
+
export declare const deleteInteraction: (space: Space, env: Env, op: DeleteInteraction) => OpResult;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { pageUri } from "../../../../helpers/uris.js";
|
|
2
|
+
import { empty, fail } from "../../../../helpers/opResult.js";
|
|
3
|
+
import { resolveElement } from "../write.js";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
//#region src/modules/mcp/tools/operations/schema/interactions/deleteInteraction.ts
|
|
6
|
+
var deleteInteractionOp = z.object({
|
|
7
|
+
type: z.literal("deleteInteraction"),
|
|
8
|
+
pageRef: z.string().describe("Page ref or id"),
|
|
9
|
+
ref: z.string().describe("Element ref or id"),
|
|
10
|
+
flowId: z.string().optional().describe("Remove the whole flow with this id (the trigger node id)"),
|
|
11
|
+
nodeId: z.string().optional().describe("Remove a single step; its neighbors are re-linked. Deleting a trigger removes its flow")
|
|
12
|
+
}).describe("DESTRUCTIVE, not undoable — remove a flow (by flowId) or a single step (by nodeId); provide exactly one. To turn a step OFF instead, patchInteractionNode { enabled: false }. Confirm with the user first.");
|
|
13
|
+
var removeFlow = (interactions, flowId) => {
|
|
14
|
+
let deleted = 0;
|
|
15
|
+
for (const [nodeId, node] of Object.entries(interactions)) if ((node.flowId || node.id) === flowId) {
|
|
16
|
+
Reflect.deleteProperty(interactions, nodeId);
|
|
17
|
+
deleted++;
|
|
18
|
+
}
|
|
19
|
+
return deleted;
|
|
20
|
+
};
|
|
21
|
+
var deleteInteraction = (space, env, op) => {
|
|
22
|
+
if (Boolean(op.flowId) === Boolean(op.nodeId)) return fail("nodeId", "Provide exactly one of flowId or nodeId", "flowId removes a whole flow; nodeId removes a step");
|
|
23
|
+
const found = resolveElement(space, env, op.pageRef, op.ref);
|
|
24
|
+
if ("error" in found) return found.error;
|
|
25
|
+
const interactions = found.el.definition.interactions;
|
|
26
|
+
if (!interactions) return fail("ref", `Element "${op.ref}" has no interactions`, "Nothing to delete");
|
|
27
|
+
let deleted = 0;
|
|
28
|
+
if (op.flowId) deleted = removeFlow(interactions, op.flowId);
|
|
29
|
+
else if (op.nodeId) {
|
|
30
|
+
if (!(op.nodeId in interactions)) return fail("nodeId", `Interaction node "${op.nodeId}" not found on "${op.ref}"`, "Read the element to list nodes");
|
|
31
|
+
const node = interactions[op.nodeId];
|
|
32
|
+
if (node.type === "trigger") deleted = removeFlow(interactions, node.flowId || node.id);
|
|
33
|
+
else {
|
|
34
|
+
const before = node.beforeNode ? interactions[node.beforeNode] : void 0;
|
|
35
|
+
const after = node.afterNode ? interactions[node.afterNode] : void 0;
|
|
36
|
+
if (before) before.afterNode = node.afterNode;
|
|
37
|
+
if (after) after.beforeNode = node.beforeNode;
|
|
38
|
+
Reflect.deleteProperty(interactions, op.nodeId);
|
|
39
|
+
deleted = 1;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
if (deleted === 0) return fail("flowId", `No interaction matching "${op.flowId ?? op.nodeId}" on "${op.ref}"`, "Nothing to delete");
|
|
43
|
+
if (Object.keys(interactions).length === 0) Reflect.deleteProperty(found.el.definition, "interactions");
|
|
44
|
+
return {
|
|
45
|
+
...empty(),
|
|
46
|
+
deleted,
|
|
47
|
+
staleResources: [pageUri(env, op.pageRef)],
|
|
48
|
+
elementRefs: [op.ref]
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
//#endregion
|
|
52
|
+
export { deleteInteraction, deleteInteractionOp };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { OpResult, Space } from '../../../../helpers';
|
|
3
|
+
import { Env } from '../../../../types';
|
|
4
|
+
export declare const patchInteractionNodeOp: z.ZodObject<{
|
|
5
|
+
type: z.ZodLiteral<"patchInteractionNode">;
|
|
6
|
+
pageRef: z.ZodString;
|
|
7
|
+
ref: z.ZodString;
|
|
8
|
+
nodeId: z.ZodString;
|
|
9
|
+
title: z.ZodOptional<z.ZodString>;
|
|
10
|
+
action: z.ZodOptional<z.ZodString>;
|
|
11
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
when: z.ZodOptional<z.ZodType<import('@plitzi/plitzi-ui/components/QueryBuilder').RuleGroup, unknown, z.core.$ZodTypeInternals<import('@plitzi/plitzi-ui/components/QueryBuilder').RuleGroup, unknown>>>;
|
|
14
|
+
elementId: z.ZodOptional<z.ZodString>;
|
|
15
|
+
preview: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export type PatchInteractionNode = z.infer<typeof patchInteractionNodeOp>;
|
|
18
|
+
export declare const patchInteractionNode: (space: Space, env: Env, op: PatchInteractionNode) => OpResult;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { pageUri } from "../../../../helpers/uris.js";
|
|
2
|
+
import { NULLISH_ELEMENT_IDS } from "../../../../helpers/interactions.js";
|
|
3
|
+
import { empty, fail } from "../../../../helpers/opResult.js";
|
|
4
|
+
import { interactionNode } from "../shared.js";
|
|
5
|
+
import { resolveElement, resolveTargetRef } from "../write.js";
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
//#region src/modules/mcp/tools/operations/schema/interactions/patchInteractionNode.ts
|
|
8
|
+
var { title, action, params, enabled, when, elementId, preview } = interactionNode.shape;
|
|
9
|
+
var patchInteractionNodeOp = z.object({
|
|
10
|
+
type: z.literal("patchInteractionNode"),
|
|
11
|
+
pageRef: z.string().describe("Page ref or id"),
|
|
12
|
+
ref: z.string().describe("Element ref or id"),
|
|
13
|
+
nodeId: z.string().describe("Id of the interaction node to update"),
|
|
14
|
+
title: title.optional(),
|
|
15
|
+
action: action.optional(),
|
|
16
|
+
params: params.describe("Merged onto the node params: listed keys change, others are preserved"),
|
|
17
|
+
enabled,
|
|
18
|
+
when,
|
|
19
|
+
elementId,
|
|
20
|
+
preview
|
|
21
|
+
}).describe("Partially update ONE step of a flow (found by nodeId): only the fields you pass change, the order/links are untouched. This is how you DISABLE a step without removing it — { enabled: false } keeps it in the flow. deleteInteraction is for actually removing one. Fails if the node does not exist.");
|
|
22
|
+
var patchInteractionNode = (space, env, op) => {
|
|
23
|
+
const found = resolveElement(space, env, op.pageRef, op.ref);
|
|
24
|
+
if ("error" in found) return found.error;
|
|
25
|
+
const node = found.el.definition.interactions?.[op.nodeId];
|
|
26
|
+
if (!node) return fail("nodeId", `Interaction node "${op.nodeId}" not found on "${op.ref}"`, "Read the element to list nodes");
|
|
27
|
+
if (op.title !== void 0) node.title = op.title;
|
|
28
|
+
if (op.action !== void 0) node.action = op.action;
|
|
29
|
+
if (op.params !== void 0) node.params = {
|
|
30
|
+
...node.params,
|
|
31
|
+
...op.params
|
|
32
|
+
};
|
|
33
|
+
if (op.enabled !== void 0) node.enabled = op.enabled;
|
|
34
|
+
if (op.when !== void 0) node.when = op.when;
|
|
35
|
+
if (op.elementId !== void 0) node.elementId = resolveTargetRef(space, op.elementId);
|
|
36
|
+
if (node.type === "utility") node.elementId = null;
|
|
37
|
+
else if (typeof node.elementId === "string" && NULLISH_ELEMENT_IDS.has(node.elementId)) node.elementId = null;
|
|
38
|
+
if (op.preview !== void 0) node.preview = op.preview;
|
|
39
|
+
return {
|
|
40
|
+
...empty(),
|
|
41
|
+
updated: 1,
|
|
42
|
+
staleResources: [pageUri(env, op.pageRef)],
|
|
43
|
+
elementRefs: [op.ref]
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
//#endregion
|
|
47
|
+
export { patchInteractionNode, patchInteractionNodeOp };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { OpResult, Space } from '../../../../helpers';
|
|
3
|
+
import { Env } from '../../../../types';
|
|
4
|
+
export declare const upsertInteractionFlowOp: z.ZodObject<{
|
|
5
|
+
type: z.ZodLiteral<"upsertInteractionFlow">;
|
|
6
|
+
pageRef: z.ZodString;
|
|
7
|
+
ref: z.ZodString;
|
|
8
|
+
flowId: z.ZodOptional<z.ZodString>;
|
|
9
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodOptional<z.ZodString>;
|
|
11
|
+
title: z.ZodString;
|
|
12
|
+
nodeType: z.ZodEnum<{
|
|
13
|
+
trigger: "trigger";
|
|
14
|
+
globalCallback: "globalCallback";
|
|
15
|
+
callback: "callback";
|
|
16
|
+
utility: "utility";
|
|
17
|
+
}>;
|
|
18
|
+
action: z.ZodString;
|
|
19
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
20
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
when: z.ZodOptional<z.ZodType<import('@plitzi/plitzi-ui/components/QueryBuilder').RuleGroup, unknown, z.core.$ZodTypeInternals<import('@plitzi/plitzi-ui/components/QueryBuilder').RuleGroup, unknown>>>;
|
|
22
|
+
elementId: z.ZodOptional<z.ZodString>;
|
|
23
|
+
preview: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
export type UpsertInteractionFlow = z.infer<typeof upsertInteractionFlowOp>;
|
|
27
|
+
export declare const upsertInteractionFlow: (space: Space, env: Env, op: UpsertInteractionFlow) => OpResult;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { pageUri } from "../../../../helpers/uris.js";
|
|
2
|
+
import { materializeFlow } from "../../../../helpers/interactions.js";
|
|
3
|
+
import { empty } from "../../../../helpers/opResult.js";
|
|
4
|
+
import { interactionNode } from "../shared.js";
|
|
5
|
+
import { ensureIdRef, resolveElement, resolveTargetRef } from "../write.js";
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
//#region src/modules/mcp/tools/operations/schema/interactions/upsertInteractionFlow.ts
|
|
8
|
+
var upsertInteractionFlowOp = z.object({
|
|
9
|
+
type: z.literal("upsertInteractionFlow"),
|
|
10
|
+
pageRef: z.string().describe("Page ref or id"),
|
|
11
|
+
ref: z.string().describe("Element ref or id"),
|
|
12
|
+
flowId: z.string().optional().describe("Existing flow to replace (the trigger node id). Omit to create a new flow"),
|
|
13
|
+
nodes: z.array(interactionNode).min(1).describe("Ordered steps of the flow: the FIRST must be a trigger, the rest run after it in order")
|
|
14
|
+
}).describe("Create or replace one interaction flow on an element from an ordered list of steps — pass them in execution order, the beforeNode/afterNode/flowId links are computed for you. For a globalCallback OMIT elementId: it is registered on a source module, not the host element, and the source and default params are filled in for you. To edit a single step in place use patchInteractionNode.");
|
|
15
|
+
var upsertInteractionFlow = (space, env, op) => {
|
|
16
|
+
const found = resolveElement(space, env, op.pageRef, op.ref);
|
|
17
|
+
if ("error" in found) return found.error;
|
|
18
|
+
const ownerRef = ensureIdRef(space, found.el);
|
|
19
|
+
const nodes = (op.flowId && !op.nodes[0].id ? [{
|
|
20
|
+
...op.nodes[0],
|
|
21
|
+
id: op.flowId
|
|
22
|
+
}, ...op.nodes.slice(1)] : op.nodes).map((node) => node.elementId === void 0 || node.nodeType === "utility" ? node : {
|
|
23
|
+
...node,
|
|
24
|
+
elementId: resolveTargetRef(space, node.elementId)
|
|
25
|
+
});
|
|
26
|
+
const { flowId, record } = materializeFlow(nodes, ownerRef);
|
|
27
|
+
const interactions = found.el.definition.interactions ?? {};
|
|
28
|
+
const targetFlow = op.flowId ?? flowId;
|
|
29
|
+
let replaced = false;
|
|
30
|
+
for (const [nodeId, node] of Object.entries(interactions)) if ((node.flowId || node.id) === targetFlow) {
|
|
31
|
+
Reflect.deleteProperty(interactions, nodeId);
|
|
32
|
+
replaced = true;
|
|
33
|
+
}
|
|
34
|
+
Object.assign(interactions, record);
|
|
35
|
+
found.el.definition.interactions = interactions;
|
|
36
|
+
return {
|
|
37
|
+
...empty(),
|
|
38
|
+
...replaced ? { updated: 1 } : { created: 1 },
|
|
39
|
+
staleResources: [pageUri(env, op.pageRef)],
|
|
40
|
+
elementRefs: [op.ref]
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
//#endregion
|
|
44
|
+
export { upsertInteractionFlow, upsertInteractionFlowOp };
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
export declare const elementOps: {
|
|
2
|
+
upsertElement: import('zod').ZodObject<{
|
|
3
|
+
type: import('zod').ZodLiteral<"upsertElement">;
|
|
4
|
+
pageRef: import('zod').ZodString;
|
|
5
|
+
element: import('zod').ZodType<import('./shared').ElementInput, unknown, import('zod/v4/core').$ZodTypeInternals<import('./shared').ElementInput, unknown>>;
|
|
6
|
+
parentRef: import('zod').ZodOptional<import('zod').ZodString>;
|
|
7
|
+
position: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
8
|
+
inside: "inside";
|
|
9
|
+
before: "before";
|
|
10
|
+
after: "after";
|
|
11
|
+
}>>;
|
|
12
|
+
}, import('zod/v4/core').$strip>;
|
|
13
|
+
repeatElement: import('zod').ZodObject<{
|
|
14
|
+
type: import('zod').ZodLiteral<"repeatElement">;
|
|
15
|
+
pageRef: import('zod').ZodString;
|
|
16
|
+
ref: import('zod').ZodString;
|
|
17
|
+
elementType: import('zod').ZodOptional<import('zod').ZodString>;
|
|
18
|
+
label: import('zod').ZodOptional<import('zod').ZodString>;
|
|
19
|
+
style: import('zod').ZodOptional<import('zod').ZodObject<{
|
|
20
|
+
base: import('zod').ZodOptional<import('zod').ZodArray<import('zod').ZodString>>;
|
|
21
|
+
slots: import('zod').ZodOptional<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodArray<import('zod').ZodString>>>;
|
|
22
|
+
}, import('zod/v4/core').$strip>>;
|
|
23
|
+
parentRef: import('zod').ZodOptional<import('zod').ZodString>;
|
|
24
|
+
position: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
25
|
+
inside: "inside";
|
|
26
|
+
before: "before";
|
|
27
|
+
after: "after";
|
|
28
|
+
}>>;
|
|
29
|
+
template: import('zod').ZodType<import('.').TemplateElement, unknown, import('zod/v4/core').$ZodTypeInternals<import('.').TemplateElement, unknown>>;
|
|
30
|
+
items: import('zod').ZodArray<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodUnknown>>;
|
|
31
|
+
}, import('zod/v4/core').$strip>;
|
|
32
|
+
patchElement: import('zod').ZodObject<{
|
|
33
|
+
type: import('zod').ZodLiteral<"patchElement">;
|
|
34
|
+
pageRef: import('zod').ZodString;
|
|
35
|
+
ref: import('zod').ZodString;
|
|
36
|
+
idRef: import('zod').ZodOptional<import('zod').ZodString>;
|
|
37
|
+
label: import('zod').ZodOptional<import('zod').ZodString>;
|
|
38
|
+
subType: import('zod').ZodOptional<import('zod').ZodString>;
|
|
39
|
+
props: import('zod').ZodOptional<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodUnknown>>;
|
|
40
|
+
style: import('zod').ZodOptional<import('zod').ZodObject<{
|
|
41
|
+
base: import('zod').ZodOptional<import('zod').ZodArray<import('zod').ZodString>>;
|
|
42
|
+
slots: import('zod').ZodOptional<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodArray<import('zod').ZodString>>>;
|
|
43
|
+
}, import('zod/v4/core').$strip>>;
|
|
44
|
+
initialState: import('zod').ZodOptional<import('zod').ZodObject<{
|
|
45
|
+
styleVariant: import('zod').ZodOptional<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodUnion<readonly [import('zod').ZodString, import('zod').ZodArray<import('zod').ZodString>]>>>>;
|
|
46
|
+
visibility: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
47
|
+
}, import('zod/v4/core').$strip>>;
|
|
48
|
+
runtime: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
49
|
+
server: "server";
|
|
50
|
+
client: "client";
|
|
51
|
+
shared: "shared";
|
|
52
|
+
}>>;
|
|
53
|
+
}, import('zod/v4/core').$strip>;
|
|
54
|
+
deleteElement: import('zod').ZodObject<{
|
|
55
|
+
type: import('zod').ZodLiteral<"deleteElement">;
|
|
56
|
+
pageRef: import('zod').ZodString;
|
|
57
|
+
ref: import('zod').ZodString;
|
|
58
|
+
}, import('zod/v4/core').$strip>;
|
|
59
|
+
moveElement: import('zod').ZodObject<{
|
|
60
|
+
type: import('zod').ZodLiteral<"moveElement">;
|
|
61
|
+
pageRef: import('zod').ZodString;
|
|
62
|
+
ref: import('zod').ZodString;
|
|
63
|
+
toParentRef: import('zod').ZodString;
|
|
64
|
+
position: import('zod').ZodEnum<{
|
|
65
|
+
inside: "inside";
|
|
66
|
+
before: "before";
|
|
67
|
+
after: "after";
|
|
68
|
+
}>;
|
|
69
|
+
}, import('zod/v4/core').$strip>;
|
|
70
|
+
upsertPage: import('zod').ZodObject<{
|
|
71
|
+
type: import('zod').ZodLiteral<"upsertPage">;
|
|
72
|
+
ref: import('zod').ZodString;
|
|
73
|
+
label: import('zod').ZodOptional<import('zod').ZodString>;
|
|
74
|
+
slug: import('zod').ZodOptional<import('zod').ZodString>;
|
|
75
|
+
folder: import('zod').ZodOptional<import('zod').ZodNullable<import('zod').ZodString>>;
|
|
76
|
+
default: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
77
|
+
enabled: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
78
|
+
}, import('zod/v4/core').$strip>;
|
|
79
|
+
deletePage: import('zod').ZodObject<{
|
|
80
|
+
type: import('zod').ZodLiteral<"deletePage">;
|
|
81
|
+
ref: import('zod').ZodString;
|
|
82
|
+
}, import('zod/v4/core').$strip>;
|
|
83
|
+
upsertFolder: import('zod').ZodObject<{
|
|
84
|
+
type: import('zod').ZodLiteral<"upsertFolder">;
|
|
85
|
+
ref: import('zod').ZodString;
|
|
86
|
+
name: import('zod').ZodOptional<import('zod').ZodString>;
|
|
87
|
+
slug: import('zod').ZodOptional<import('zod').ZodString>;
|
|
88
|
+
parentId: import('zod').ZodOptional<import('zod').ZodNullable<import('zod').ZodString>>;
|
|
89
|
+
}, import('zod/v4/core').$strip>;
|
|
90
|
+
deleteFolder: import('zod').ZodObject<{
|
|
91
|
+
type: import('zod').ZodLiteral<"deleteFolder">;
|
|
92
|
+
ref: import('zod').ZodString;
|
|
93
|
+
}, import('zod/v4/core').$strip>;
|
|
94
|
+
upsertVariable: import('zod').ZodObject<{
|
|
95
|
+
type: import('zod').ZodLiteral<"upsertVariable">;
|
|
96
|
+
name: import('zod').ZodString;
|
|
97
|
+
variableType: import('zod').ZodString;
|
|
98
|
+
value: import('zod').ZodUnion<readonly [import('zod').ZodString, import('zod').ZodNumber, import('zod').ZodBoolean]>;
|
|
99
|
+
category: import('zod').ZodOptional<import('zod').ZodString>;
|
|
100
|
+
subValues: import('zod').ZodOptional<import('zod').ZodArray<import('zod').ZodObject<{
|
|
101
|
+
when: import('zod').ZodUnknown;
|
|
102
|
+
value: import('zod').ZodUnion<readonly [import('zod').ZodString, import('zod').ZodNumber, import('zod').ZodBoolean]>;
|
|
103
|
+
}, import('zod/v4/core').$strip>>>;
|
|
104
|
+
}, import('zod/v4/core').$strip>;
|
|
105
|
+
deleteVariable: import('zod').ZodObject<{
|
|
106
|
+
type: import('zod').ZodLiteral<"deleteVariable">;
|
|
107
|
+
name: import('zod').ZodString;
|
|
108
|
+
}, import('zod/v4/core').$strip>;
|
|
109
|
+
upsertBinding: import('zod').ZodObject<{
|
|
110
|
+
type: import('zod').ZodLiteral<"upsertBinding">;
|
|
111
|
+
pageRef: import('zod').ZodString;
|
|
112
|
+
ref: import('zod').ZodString;
|
|
113
|
+
category: import('zod').ZodEnum<{
|
|
114
|
+
attributes: "attributes";
|
|
115
|
+
style: "style";
|
|
116
|
+
initialState: "initialState";
|
|
117
|
+
}>;
|
|
118
|
+
binding: import('zod').ZodObject<{
|
|
119
|
+
to: import('zod').ZodString;
|
|
120
|
+
source: import('zod').ZodString;
|
|
121
|
+
id: import('zod').ZodOptional<import('zod').ZodString>;
|
|
122
|
+
transformers: import('zod').ZodOptional<import('zod').ZodArray<import('zod').ZodObject<{
|
|
123
|
+
action: import('zod').ZodString;
|
|
124
|
+
params: import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodString>;
|
|
125
|
+
enabled: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
126
|
+
}, import('zod/v4/core').$strip>>>;
|
|
127
|
+
when: import('zod').ZodOptional<import('zod').ZodType<import('@plitzi/plitzi-ui/components/QueryBuilder').RuleGroup, unknown, import('zod/v4/core').$ZodTypeInternals<import('@plitzi/plitzi-ui/components/QueryBuilder').RuleGroup, unknown>>>;
|
|
128
|
+
enabled: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
129
|
+
}, import('zod/v4/core').$strip>;
|
|
130
|
+
}, import('zod/v4/core').$strip>;
|
|
131
|
+
patchBinding: import('zod').ZodObject<{
|
|
132
|
+
type: import('zod').ZodLiteral<"patchBinding">;
|
|
133
|
+
pageRef: import('zod').ZodString;
|
|
134
|
+
ref: import('zod').ZodString;
|
|
135
|
+
category: import('zod').ZodEnum<{
|
|
136
|
+
attributes: "attributes";
|
|
137
|
+
style: "style";
|
|
138
|
+
initialState: "initialState";
|
|
139
|
+
}>;
|
|
140
|
+
to: import('zod').ZodString;
|
|
141
|
+
id: import('zod').ZodOptional<import('zod').ZodString>;
|
|
142
|
+
source: import('zod').ZodOptional<import('zod').ZodString>;
|
|
143
|
+
transformers: import('zod').ZodOptional<import('zod').ZodArray<import('zod').ZodObject<{
|
|
144
|
+
action: import('zod').ZodString;
|
|
145
|
+
params: import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodString>;
|
|
146
|
+
enabled: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
147
|
+
}, import('zod/v4/core').$strip>>>;
|
|
148
|
+
when: import('zod').ZodOptional<import('zod').ZodType<import('@plitzi/plitzi-ui/components/QueryBuilder').RuleGroup, unknown, import('zod/v4/core').$ZodTypeInternals<import('@plitzi/plitzi-ui/components/QueryBuilder').RuleGroup, unknown>>>;
|
|
149
|
+
enabled: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
150
|
+
}, import('zod/v4/core').$strip>;
|
|
151
|
+
deleteBinding: import('zod').ZodObject<{
|
|
152
|
+
type: import('zod').ZodLiteral<"deleteBinding">;
|
|
153
|
+
pageRef: import('zod').ZodString;
|
|
154
|
+
ref: import('zod').ZodString;
|
|
155
|
+
category: import('zod').ZodEnum<{
|
|
156
|
+
attributes: "attributes";
|
|
157
|
+
style: "style";
|
|
158
|
+
initialState: "initialState";
|
|
159
|
+
}>;
|
|
160
|
+
to: import('zod').ZodString;
|
|
161
|
+
id: import('zod').ZodOptional<import('zod').ZodString>;
|
|
162
|
+
}, import('zod/v4/core').$strip>;
|
|
163
|
+
upsertInteractionFlow: import('zod').ZodObject<{
|
|
164
|
+
type: import('zod').ZodLiteral<"upsertInteractionFlow">;
|
|
165
|
+
pageRef: import('zod').ZodString;
|
|
166
|
+
ref: import('zod').ZodString;
|
|
167
|
+
flowId: import('zod').ZodOptional<import('zod').ZodString>;
|
|
168
|
+
nodes: import('zod').ZodArray<import('zod').ZodObject<{
|
|
169
|
+
id: import('zod').ZodOptional<import('zod').ZodString>;
|
|
170
|
+
title: import('zod').ZodString;
|
|
171
|
+
nodeType: import('zod').ZodEnum<{
|
|
172
|
+
trigger: "trigger";
|
|
173
|
+
globalCallback: "globalCallback";
|
|
174
|
+
callback: "callback";
|
|
175
|
+
utility: "utility";
|
|
176
|
+
}>;
|
|
177
|
+
action: import('zod').ZodString;
|
|
178
|
+
params: import('zod').ZodOptional<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodUnknown>>;
|
|
179
|
+
enabled: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
180
|
+
when: import('zod').ZodOptional<import('zod').ZodType<import('@plitzi/plitzi-ui/components/QueryBuilder').RuleGroup, unknown, import('zod/v4/core').$ZodTypeInternals<import('@plitzi/plitzi-ui/components/QueryBuilder').RuleGroup, unknown>>>;
|
|
181
|
+
elementId: import('zod').ZodOptional<import('zod').ZodString>;
|
|
182
|
+
preview: import('zod').ZodOptional<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodUnknown>>;
|
|
183
|
+
}, import('zod/v4/core').$strip>>;
|
|
184
|
+
}, import('zod/v4/core').$strip>;
|
|
185
|
+
patchInteractionNode: import('zod').ZodObject<{
|
|
186
|
+
type: import('zod').ZodLiteral<"patchInteractionNode">;
|
|
187
|
+
pageRef: import('zod').ZodString;
|
|
188
|
+
ref: import('zod').ZodString;
|
|
189
|
+
nodeId: import('zod').ZodString;
|
|
190
|
+
title: import('zod').ZodOptional<import('zod').ZodString>;
|
|
191
|
+
action: import('zod').ZodOptional<import('zod').ZodString>;
|
|
192
|
+
params: import('zod').ZodOptional<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodUnknown>>;
|
|
193
|
+
enabled: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
194
|
+
when: import('zod').ZodOptional<import('zod').ZodType<import('@plitzi/plitzi-ui/components/QueryBuilder').RuleGroup, unknown, import('zod/v4/core').$ZodTypeInternals<import('@plitzi/plitzi-ui/components/QueryBuilder').RuleGroup, unknown>>>;
|
|
195
|
+
elementId: import('zod').ZodOptional<import('zod').ZodString>;
|
|
196
|
+
preview: import('zod').ZodOptional<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodUnknown>>;
|
|
197
|
+
}, import('zod/v4/core').$strip>;
|
|
198
|
+
deleteInteraction: import('zod').ZodObject<{
|
|
199
|
+
type: import('zod').ZodLiteral<"deleteInteraction">;
|
|
200
|
+
pageRef: import('zod').ZodString;
|
|
201
|
+
ref: import('zod').ZodString;
|
|
202
|
+
flowId: import('zod').ZodOptional<import('zod').ZodString>;
|
|
203
|
+
nodeId: import('zod').ZodOptional<import('zod').ZodString>;
|
|
204
|
+
}, import('zod/v4/core').$strip>;
|
|
205
|
+
patchSettings: import('zod').ZodObject<{
|
|
206
|
+
type: import('zod').ZodLiteral<"patchSettings">;
|
|
207
|
+
customCss: import('zod').ZodOptional<import('zod').ZodString>;
|
|
208
|
+
keepState: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
209
|
+
stateStorage: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
210
|
+
localStorage: "localStorage";
|
|
211
|
+
sessionStorage: "sessionStorage";
|
|
212
|
+
}>>;
|
|
213
|
+
userProvider: import('zod').ZodOptional<import('zod').ZodString>;
|
|
214
|
+
tokenStorage: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
215
|
+
"": "";
|
|
216
|
+
localStorage: "localStorage";
|
|
217
|
+
sessionStorage: "sessionStorage";
|
|
218
|
+
}>>;
|
|
219
|
+
loginUrl: import('zod').ZodOptional<import('zod').ZodString>;
|
|
220
|
+
userUrl: import('zod').ZodOptional<import('zod').ZodString>;
|
|
221
|
+
refreshUrl: import('zod').ZodOptional<import('zod').ZodString>;
|
|
222
|
+
logoutUrl: import('zod').ZodOptional<import('zod').ZodString>;
|
|
223
|
+
detailsPath: import('zod').ZodOptional<import('zod').ZodString>;
|
|
224
|
+
tokenPath: import('zod').ZodOptional<import('zod').ZodString>;
|
|
225
|
+
refreshTokenPath: import('zod').ZodOptional<import('zod').ZodString>;
|
|
226
|
+
expirationTimePath: import('zod').ZodOptional<import('zod').ZodString>;
|
|
227
|
+
refreshExpirationTimePath: import('zod').ZodOptional<import('zod').ZodString>;
|
|
228
|
+
sessionHintCookie: import('zod').ZodOptional<import('zod').ZodString>;
|
|
229
|
+
sessionExchangeUrl: import('zod').ZodOptional<import('zod').ZodString>;
|
|
230
|
+
sessionGate: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
231
|
+
optimistic: "optimistic";
|
|
232
|
+
strict: "strict";
|
|
233
|
+
}>>;
|
|
234
|
+
sessionRevalidateSeconds: import('zod').ZodOptional<import('zod').ZodNumber>;
|
|
235
|
+
}, import('zod/v4/core').$strip>;
|
|
236
|
+
};
|