@kardalum/plugin-sdk 0.18.0 → 0.20.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 +253 -0
- package/README.md +20 -1
- package/dist/admin-section-registry.d.ts +16 -1
- package/dist/admin-section-registry.js +23 -0
- package/dist/assets/asset-picker.js +3 -3
- package/dist/built-in-editor-ids.d.ts +1 -1
- package/dist/built-in-editor-ids.js +2 -20
- package/dist/built-in-serializers.js +1 -1
- package/dist/built-in-settings-schemas.d.ts +10 -0
- package/dist/built-in-settings-schemas.js +90 -4
- package/dist/built-in-value-schemas.js +35 -0
- package/dist/built-ins.js +48 -17
- package/dist/capabilities.d.ts +11 -1
- package/dist/capabilities.js +55 -3
- package/dist/cli.d.ts +66 -0
- package/dist/cli.js +22 -0
- package/dist/content-library.d.ts +85 -0
- package/dist/content-library.js +15 -0
- package/dist/content-picker/page-picker-sheet.d.ts +13 -0
- package/dist/content-picker/page-picker-sheet.js +105 -0
- package/dist/content-picker/page-tree.d.ts +25 -0
- package/dist/content-picker/page-tree.js +132 -0
- package/dist/data-type-plugin.d.ts +9 -3
- package/dist/datatype-validation.d.ts +6 -11
- package/dist/datatype-validation.js +141 -3
- package/dist/define-plugin.d.ts +4 -4
- package/dist/define-plugin.js +5 -5
- package/dist/entitlement-entry.d.ts +1 -1
- package/dist/entitlement-entry.js +1 -1
- package/dist/entitlement-gate.d.ts +14 -0
- package/dist/entitlement-gate.js +64 -7
- package/dist/entitlement-plan.d.ts +6 -0
- package/dist/entitlement-plan.js +10 -0
- package/dist/entitlement-types.d.ts +36 -12
- package/dist/entitlement.d.ts +31 -4
- package/dist/entitlement.js +58 -17
- package/dist/hook-entry.d.ts +5 -0
- package/dist/hook-entry.js +30 -0
- package/dist/host-entry.d.ts +1 -1
- package/dist/host-entry.js +1 -1
- package/dist/index.d.ts +38 -4
- package/dist/index.js +54 -3
- package/dist/mail.d.ts +30 -0
- package/dist/mail.js +1 -0
- package/dist/manifest-entry.d.ts +29 -4
- package/dist/manifest-entry.js +39 -2
- package/dist/manifest-schema.d.ts +443 -29
- package/dist/manifest-schema.js +292 -24
- package/dist/manifest.d.ts +450 -51
- package/dist/manifest.js +1 -1
- package/dist/media/media-picker.js +33 -20
- package/dist/media/upload-error.d.ts +5 -1
- package/dist/media/upload-error.js +14 -2
- package/dist/media-library.d.ts +32 -0
- package/dist/media-library.js +15 -0
- package/dist/nested-field-host.d.ts +76 -0
- package/dist/nested-field-host.js +90 -0
- package/dist/notify.d.ts +12 -4
- package/dist/notify.js +1 -1
- package/dist/outbound.d.ts +47 -0
- package/dist/outbound.js +1 -0
- package/dist/plugin-context.d.ts +5 -0
- package/dist/plugin-context.js +3 -3
- package/dist/plugin-screen-context.d.ts +112 -0
- package/dist/plugin-screen-context.js +26 -0
- package/dist/providers.d.ts +268 -0
- package/dist/providers.js +74 -0
- package/dist/read-all-pages.d.ts +5 -0
- package/dist/read-all-pages.js +3 -2
- package/dist/register-built-ins.js +6 -6
- package/dist/registry.js +1 -1
- package/dist/richtext/block-panel.js +12 -7
- package/dist/richtext/extensions.js +7 -7
- package/dist/richtext/insert-menu.js +12 -9
- package/dist/richtext/style-listbox.js +7 -5
- package/dist/richtext/text-style-class.js +1 -1
- package/dist/sdk-strings.d.ts +285 -0
- package/dist/sdk-strings.js +347 -0
- package/dist/sealing.d.ts +14 -0
- package/dist/sealing.js +1 -0
- package/dist/simple-storage-value-provider.js +27 -27
- package/dist/structured-storage-types.d.ts +309 -9
- package/dist/structured-storage-types.js +2 -2
- package/dist/text-entry.d.ts +1 -0
- package/dist/text-entry.js +6 -0
- package/dist/tokens/tailwind-theme.css +5 -0
- package/dist/tokens/tokens.css +15 -3
- package/dist/tokens/tokens.json +8 -3
- package/dist/ui-entry.js +3 -3
- package/dist/views/asset-view.js +6 -3
- package/dist/views/content-list-preview.js +3 -1
- package/dist/views/content-list-settings-view.js +11 -7
- package/dist/views/content-list-view.d.ts +5 -3
- package/dist/views/content-list-view.js +38 -34
- package/dist/views/content-picker-view.d.ts +3 -0
- package/dist/views/content-picker-view.js +143 -0
- package/dist/views/crop-view.d.ts +4 -6
- package/dist/views/crop-view.js +22 -13
- package/dist/views/date-range-view.js +9 -6
- package/dist/views/file-upload-view.d.ts +5 -7
- package/dist/views/file-upload-view.js +16 -7
- package/dist/views/group-view.d.ts +8 -0
- package/dist/views/group-view.js +123 -0
- package/dist/views/html-code-editor.js +2 -2
- package/dist/views/html-view.js +12 -11
- package/dist/views/image-view.js +40 -22
- package/dist/views/link-view.d.ts +3 -0
- package/dist/views/link-view.js +150 -0
- package/dist/views/options-list-view.d.ts +3 -0
- package/dist/views/options-list-view.js +104 -0
- package/dist/views/repeatable-list-view.d.ts +3 -0
- package/dist/views/repeatable-list-view.js +113 -0
- package/dist/views/rich-text-view.js +32 -16
- package/dist/views/suggest-key.d.ts +17 -0
- package/dist/views/suggest-key.js +55 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-connections.schema.d.ts +215 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-connections.schema.js +179 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-context.schema.d.ts +12 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-context.schema.js +10 -0
- package/node_modules/@kardalum/api-schemas/dist/api-error.schema.js +1 -1
- package/node_modules/@kardalum/api-schemas/dist/api-key-api.schema.d.ts +10 -0
- package/node_modules/@kardalum/api-schemas/dist/api-key-api.schema.js +5 -0
- package/node_modules/@kardalum/api-schemas/dist/asset-api.schema.js +1 -1
- package/node_modules/@kardalum/api-schemas/dist/audit-api.schema.d.ts +7 -1
- package/node_modules/@kardalum/api-schemas/dist/audit-api.schema.js +4 -2
- package/node_modules/@kardalum/api-schemas/dist/auth.schema.js +1 -1
- package/node_modules/@kardalum/api-schemas/dist/built-in-editor-ids.d.ts +1 -0
- package/node_modules/@kardalum/api-schemas/dist/built-in-editor-ids.js +27 -0
- package/node_modules/@kardalum/api-schemas/dist/capability-detail.d.ts +65 -0
- package/node_modules/@kardalum/api-schemas/dist/capability-detail.js +126 -0
- package/node_modules/@kardalum/api-schemas/dist/content-api.schema.d.ts +116 -3
- package/node_modules/@kardalum/api-schemas/dist/content-api.schema.js +71 -18
- package/node_modules/@kardalum/api-schemas/dist/content-list.schema.d.ts +57 -2
- package/node_modules/@kardalum/api-schemas/dist/content-list.schema.js +137 -0
- package/node_modules/@kardalum/api-schemas/dist/content-path.d.ts +1 -1
- package/node_modules/@kardalum/api-schemas/dist/content-path.js +1 -1
- package/node_modules/@kardalum/api-schemas/dist/content-search.schema.d.ts +50 -0
- package/node_modules/@kardalum/api-schemas/dist/content-search.schema.js +42 -0
- package/node_modules/@kardalum/api-schemas/dist/content-summary.schema.d.ts +37 -0
- package/node_modules/@kardalum/api-schemas/dist/content-summary.schema.js +19 -0
- package/node_modules/@kardalum/api-schemas/dist/content-trash-api.schema.js +3 -3
- package/node_modules/@kardalum/api-schemas/dist/content-trash.schema.js +1 -1
- package/node_modules/@kardalum/api-schemas/dist/content-unpublish.schema.d.ts +23 -0
- package/node_modules/@kardalum/api-schemas/dist/content-unpublish.schema.js +13 -0
- package/node_modules/@kardalum/api-schemas/dist/content.schema.d.ts +3 -0
- package/node_modules/@kardalum/api-schemas/dist/content.schema.js +10 -0
- package/node_modules/@kardalum/api-schemas/dist/contract-cancel.schema.d.ts +41 -0
- package/node_modules/@kardalum/api-schemas/dist/contract-cancel.schema.js +86 -0
- package/node_modules/@kardalum/api-schemas/dist/core-actions.d.ts +10 -5
- package/node_modules/@kardalum/api-schemas/dist/core-actions.js +7 -4
- package/node_modules/@kardalum/api-schemas/dist/data-type-api.schema.d.ts +25 -0
- package/node_modules/@kardalum/api-schemas/dist/data-type-api.schema.js +9 -1
- package/node_modules/@kardalum/api-schemas/dist/data-type-config.schema.js +4 -4
- package/node_modules/@kardalum/api-schemas/dist/data-type-issue.d.ts +35 -0
- package/node_modules/@kardalum/api-schemas/dist/data-type-issue.js +60 -0
- package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.d.ts +267 -12
- package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.js +54 -8
- package/node_modules/@kardalum/api-schemas/dist/document-type.schema.d.ts +24 -6
- package/node_modules/@kardalum/api-schemas/dist/document-type.schema.js +98 -13
- package/node_modules/@kardalum/api-schemas/dist/form-protection.d.ts +23 -0
- package/node_modules/@kardalum/api-schemas/dist/form-protection.js +12 -0
- package/node_modules/@kardalum/api-schemas/dist/graphql-limits.d.ts +12 -0
- package/node_modules/@kardalum/api-schemas/dist/graphql-limits.js +14 -0
- package/node_modules/@kardalum/api-schemas/dist/held-embed-words.d.ts +23 -0
- package/node_modules/@kardalum/api-schemas/dist/held-embed-words.js +70 -0
- package/node_modules/@kardalum/api-schemas/dist/index.d.ts +122 -43
- package/node_modules/@kardalum/api-schemas/dist/index.js +92 -27
- package/node_modules/@kardalum/api-schemas/dist/install-sign-in-switched-off.schema.d.ts +9 -0
- package/node_modules/@kardalum/api-schemas/dist/install-sign-in-switched-off.schema.js +9 -0
- package/node_modules/@kardalum/api-schemas/dist/legal-anchors.d.ts +8 -0
- package/node_modules/@kardalum/api-schemas/dist/legal-anchors.js +9 -0
- package/node_modules/@kardalum/api-schemas/dist/licensing.schema.d.ts +63 -0
- package/node_modules/@kardalum/api-schemas/dist/licensing.schema.js +54 -0
- package/node_modules/@kardalum/api-schemas/dist/listing-categories.schema.d.ts +46 -0
- package/node_modules/@kardalum/api-schemas/dist/listing-categories.schema.js +52 -0
- package/node_modules/@kardalum/api-schemas/dist/mail-rules.d.ts +224 -0
- package/node_modules/@kardalum/api-schemas/dist/mail-rules.js +404 -0
- package/node_modules/@kardalum/api-schemas/dist/management-multipart.schema.d.ts +8 -0
- package/node_modules/@kardalum/api-schemas/dist/management-multipart.schema.js +4 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-leaks.schema.d.ts +145 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-leaks.schema.js +154 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.d.ts +359 -8
- package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.js +85 -11
- package/node_modules/@kardalum/api-schemas/dist/marketplace-package-api.schema.d.ts +15 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-package-api.schema.js +14 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-payouts.schema.d.ts +131 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-payouts.schema.js +272 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-profile.schema.d.ts +84 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-profile.schema.js +138 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-revocation.schema.d.ts +20 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-revocation.schema.js +49 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-sites.schema.d.ts +211 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-sites.schema.js +424 -0
- package/node_modules/@kardalum/api-schemas/dist/mcp-plugins.schema.d.ts +78 -0
- package/node_modules/@kardalum/api-schemas/dist/mcp-plugins.schema.js +27 -0
- package/node_modules/@kardalum/api-schemas/dist/mcp-tool-inputs.schema.d.ts +70 -0
- package/node_modules/@kardalum/api-schemas/dist/mcp-tool-inputs.schema.js +43 -0
- package/node_modules/@kardalum/api-schemas/dist/media-api.schema.d.ts +22 -0
- package/node_modules/@kardalum/api-schemas/dist/media-api.schema.js +22 -10
- package/node_modules/@kardalum/api-schemas/dist/media-move.schema.d.ts +75 -0
- package/node_modules/@kardalum/api-schemas/dist/media-move.schema.js +53 -0
- package/node_modules/@kardalum/api-schemas/dist/media-reference-api.schema.d.ts +2 -2
- package/node_modules/@kardalum/api-schemas/dist/media-reference.d.ts +2 -0
- package/node_modules/@kardalum/api-schemas/dist/media-reference.js +55 -0
- package/node_modules/@kardalum/api-schemas/dist/media.schema.d.ts +1 -0
- package/node_modules/@kardalum/api-schemas/dist/media.schema.js +9 -5
- package/node_modules/@kardalum/api-schemas/dist/nested-fields.schema.d.ts +204 -0
- package/node_modules/@kardalum/api-schemas/dist/nested-fields.schema.js +370 -0
- package/node_modules/@kardalum/api-schemas/dist/nested-validation.d.ts +53 -0
- package/node_modules/@kardalum/api-schemas/dist/nested-validation.js +284 -0
- package/node_modules/@kardalum/api-schemas/dist/news.schema.d.ts +5 -5
- package/node_modules/@kardalum/api-schemas/dist/node-access.schema.d.ts +1 -2
- package/node_modules/@kardalum/api-schemas/dist/node-access.schema.js +1 -2
- package/node_modules/@kardalum/api-schemas/dist/notification-kinds.d.ts +145 -0
- package/node_modules/@kardalum/api-schemas/dist/notification-kinds.js +177 -0
- package/node_modules/@kardalum/api-schemas/dist/notification.schema.d.ts +258 -7
- package/node_modules/@kardalum/api-schemas/dist/notification.schema.js +96 -5
- package/node_modules/@kardalum/api-schemas/dist/page-address.d.ts +10 -0
- package/node_modules/@kardalum/api-schemas/dist/page-address.js +7 -0
- package/node_modules/@kardalum/api-schemas/dist/password-reset.schema.d.ts +34 -0
- package/node_modules/@kardalum/api-schemas/dist/password-reset.schema.js +60 -0
- package/node_modules/@kardalum/api-schemas/dist/plan-editor.schema.d.ts +28 -3
- package/node_modules/@kardalum/api-schemas/dist/plan-editor.schema.js +55 -8
- package/node_modules/@kardalum/api-schemas/dist/plugin-actions.schema.d.ts +12 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-actions.schema.js +13 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-caller.d.ts +23 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-caller.js +16 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-cli-commands.d.ts +76 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-cli-commands.js +316 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-content-access.d.ts +42 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-content-access.js +74 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-data-type-configs.d.ts +31 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-data-type-configs.js +131 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs-api.schema.d.ts +26 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs-text.js +1 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs.d.ts +26 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs.js +13 -5
- package/node_modules/@kardalum/api-schemas/dist/plugin-document-types.d.ts +228 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-document-types.js +41 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-durable-hooks.d.ts +26 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-durable-hooks.js +55 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-editor-extensions.d.ts +40 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-editor-extensions.js +124 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-field-info.d.ts +41 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-field-info.js +51 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-graphql-fields.d.ts +32 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-graphql-fields.js +102 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-held-embeds.d.ts +107 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-held-embeds.js +213 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-https-origin.d.ts +5 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-https-origin.js +21 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-id-rules.d.ts +4 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-id-rules.js +3 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.d.ts +44 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.js +38 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-install.d.ts +237 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-install.js +205 -6
- package/node_modules/@kardalum/api-schemas/dist/plugin-labels.d.ts +26 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-labels.js +29 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-locales.d.ts +32 -8
- package/node_modules/@kardalum/api-schemas/dist/plugin-locales.js +120 -14
- package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.d.ts +357 -4
- package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.js +279 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.d.ts +16 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.js +34 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-ai.d.ts +40 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-ai.js +139 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.d.ts +22 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.js +31 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-media-access.d.ts +25 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-media-access.js +43 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-outbound.d.ts +107 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-outbound.js +150 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-package-build.schema.d.ts +5 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-package-build.schema.js +7 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-providers.d.ts +310 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-providers.js +430 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-read-only.schema.d.ts +4 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-read-only.schema.js +2 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-registry-api.schema.js +1 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-sealed-values.d.ts +45 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-sealed-values.js +99 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-secrets.d.ts +68 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-secrets.js +114 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-settings.d.ts +342 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-settings.js +400 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-site-extensions.d.ts +180 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-site-extensions.js +612 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-storage-api.schema.d.ts +7 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-storage-api.schema.js +50 -7
- package/node_modules/@kardalum/api-schemas/dist/plugin-tasks.d.ts +45 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-tasks.js +197 -0
- package/node_modules/@kardalum/api-schemas/dist/plural-rules.d.ts +9 -0
- package/node_modules/@kardalum/api-schemas/dist/plural-rules.js +41 -0
- package/node_modules/@kardalum/api-schemas/dist/public-api.schema.d.ts +41 -0
- package/node_modules/@kardalum/api-schemas/dist/public-api.schema.js +100 -12
- package/node_modules/@kardalum/api-schemas/dist/refund-request.schema.d.ts +189 -0
- package/node_modules/@kardalum/api-schemas/dist/refund-request.schema.js +164 -0
- package/node_modules/@kardalum/api-schemas/dist/render-editing.d.ts +4 -4
- package/node_modules/@kardalum/api-schemas/dist/render-editing.js +4 -4
- package/node_modules/@kardalum/api-schemas/dist/render-settings-api.schema.js +1 -1
- package/node_modules/@kardalum/api-schemas/dist/revenue-view.schema.js +7 -3
- package/node_modules/@kardalum/api-schemas/dist/rich-text-shape.d.ts +6 -0
- package/node_modules/@kardalum/api-schemas/dist/rich-text-shape.js +82 -0
- package/node_modules/@kardalum/api-schemas/dist/rich-text-text.d.ts +66 -0
- package/node_modules/@kardalum/api-schemas/dist/rich-text-text.js +497 -0
- package/node_modules/@kardalum/api-schemas/dist/sale-conditions.schema.d.ts +82 -0
- package/node_modules/@kardalum/api-schemas/dist/sale-conditions.schema.js +99 -0
- package/node_modules/@kardalum/api-schemas/dist/sample-content.schema.d.ts +13 -0
- package/node_modules/@kardalum/api-schemas/dist/sample-content.schema.js +28 -0
- package/node_modules/@kardalum/api-schemas/dist/sandbox-attach.schema.d.ts +91 -1
- package/node_modules/@kardalum/api-schemas/dist/server-settings-api.schema.d.ts +289 -0
- package/node_modules/@kardalum/api-schemas/dist/server-settings-api.schema.js +205 -0
- package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.d.ts +121 -0
- package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.js +51 -10
- package/node_modules/@kardalum/api-schemas/dist/sign-in.schema.d.ts +384 -0
- package/node_modules/@kardalum/api-schemas/dist/sign-in.schema.js +616 -0
- package/node_modules/@kardalum/api-schemas/dist/snapshot-api.schema.d.ts +3 -3
- package/node_modules/@kardalum/api-schemas/dist/snapshot.schema.d.ts +1 -1
- package/node_modules/@kardalum/api-schemas/dist/snapshot.schema.js +1 -1
- package/node_modules/@kardalum/api-schemas/dist/structured-duplicate-key.d.ts +13 -0
- package/node_modules/@kardalum/api-schemas/dist/structured-duplicate-key.js +26 -0
- package/node_modules/@kardalum/api-schemas/dist/structured-fields.schema.d.ts +66 -0
- package/node_modules/@kardalum/api-schemas/dist/structured-fields.schema.js +160 -0
- package/node_modules/@kardalum/api-schemas/dist/template-api.schema.js +1 -1
- package/node_modules/@kardalum/api-schemas/dist/template.schema.d.ts +1 -0
- package/node_modules/@kardalum/api-schemas/dist/template.schema.js +3 -0
- package/node_modules/@kardalum/api-schemas/dist/theme-api.schema.d.ts +1 -1
- package/node_modules/@kardalum/api-schemas/dist/theme-api.schema.js +1 -1
- package/node_modules/@kardalum/api-schemas/dist/transaction-rolled-back.d.ts +13 -0
- package/node_modules/@kardalum/api-schemas/dist/transaction-rolled-back.js +29 -0
- package/node_modules/@kardalum/api-schemas/dist/trash-purge.schema.d.ts +13 -0
- package/node_modules/@kardalum/api-schemas/dist/trash-purge.schema.js +6 -0
- package/node_modules/@kardalum/api-schemas/dist/user-api.schema.d.ts +58 -1
- package/node_modules/@kardalum/api-schemas/dist/user-api.schema.js +35 -4
- package/node_modules/@kardalum/api-schemas/dist/vendor-service.schema.d.ts +5 -1
- package/node_modules/@kardalum/api-schemas/dist/vendor-service.schema.js +4 -3
- package/node_modules/@kardalum/api-schemas/package.json +1 -0
- package/node_modules/@kardalum/design-tokens/dist/build-css.d.ts +1 -1
- package/node_modules/@kardalum/design-tokens/dist/build-css.js +8 -2
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.css +5 -0
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.d.ts +1 -1
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.js +3 -3
- package/node_modules/@kardalum/design-tokens/dist/theme-css.d.ts +2 -2
- package/node_modules/@kardalum/design-tokens/dist/theme-css.js +2 -2
- package/node_modules/@kardalum/design-tokens/dist/theme-types.d.ts +2 -2
- package/node_modules/@kardalum/design-tokens/dist/themes/dark.d.ts +3 -3
- package/node_modules/@kardalum/design-tokens/dist/themes/dark.js +3 -3
- package/node_modules/@kardalum/design-tokens/dist/themes/light.d.ts +1 -1
- package/node_modules/@kardalum/design-tokens/dist/themes/light.js +1 -1
- package/node_modules/@kardalum/design-tokens/dist/tokens.css +15 -3
- package/node_modules/@kardalum/design-tokens/dist/tokens.d.ts +4 -4
- package/node_modules/@kardalum/design-tokens/dist/tokens.js +17 -8
- package/node_modules/@kardalum/design-tokens/dist/tokens.json +8 -3
- package/node_modules/@kardalum/design-tokens/dist/types.d.ts +2 -2
- package/node_modules/@kardalum/design-tokens/dist/types.js +1 -1
- package/node_modules/@kardalum/plugin-package/dist/build-reference.d.ts +21 -2
- package/node_modules/@kardalum/plugin-package/dist/build-reference.js +8 -2
- package/node_modules/@kardalum/plugin-package/dist/capabilities.d.ts +17 -10
- package/node_modules/@kardalum/plugin-package/dist/capabilities.js +355 -22
- package/node_modules/@kardalum/plugin-package/dist/client-bundle.d.ts +1 -1
- package/node_modules/@kardalum/plugin-package/dist/client-bundle.js +2 -0
- package/node_modules/@kardalum/plugin-package/dist/cms-range.d.ts +17 -0
- package/node_modules/@kardalum/plugin-package/dist/cms-range.js +353 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/ai-declarations.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/ai-declarations.js +26 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/archive-names.d.ts +1 -1
- package/node_modules/@kardalum/plugin-package/dist/delivery/archive-names.js +3 -2
- package/node_modules/@kardalum/plugin-package/dist/delivery/content-access.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/content-access.js +34 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/contributions.js +2 -2
- package/node_modules/@kardalum/plugin-package/dist/delivery/editor-extensions.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/editor-extensions.js +27 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/graphql-fields.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/graphql-fields.js +22 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/index.d.ts +1 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/index.js +1 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/label-languages.js +47 -5
- package/node_modules/@kardalum/plugin-package/dist/delivery/licence-check.d.ts +27 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/licence-check.js +95 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/locales.js +9 -4
- package/node_modules/@kardalum/plugin-package/dist/delivery/plugin-settings.d.ts +3 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/plugin-settings.js +68 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/providers.d.ts +3 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/providers.js +298 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/registry.js +27 -5
- package/node_modules/@kardalum/plugin-package/dist/delivery/sample-content.js +91 -2
- package/node_modules/@kardalum/plugin-package/dist/delivery/server-powers.d.ts +6 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/server-powers.js +140 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/site-extensions.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/site-extensions.js +36 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/templates.d.ts +1 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/templates.js +21 -1
- package/node_modules/@kardalum/plugin-package/dist/delivery/types.d.ts +10 -0
- package/node_modules/@kardalum/plugin-package/dist/envelope.d.ts +2 -2
- package/node_modules/@kardalum/plugin-package/dist/envelope.js +2 -2
- package/node_modules/@kardalum/plugin-package/dist/extract.d.ts +3 -3
- package/node_modules/@kardalum/plugin-package/dist/extract.js +9 -9
- package/node_modules/@kardalum/plugin-package/dist/hash.d.ts +1 -1
- package/node_modules/@kardalum/plugin-package/dist/hash.js +1 -1
- package/node_modules/@kardalum/plugin-package/dist/index.d.ts +4 -2
- package/node_modules/@kardalum/plugin-package/dist/index.js +2 -1
- package/node_modules/@kardalum/plugin-package/dist/license-verdict.d.ts +75 -0
- package/node_modules/@kardalum/plugin-package/dist/license-verdict.js +123 -0
- package/node_modules/@kardalum/plugin-package/dist/package-contract.d.ts +2 -2
- package/node_modules/@kardalum/plugin-package/dist/package-contract.js +5 -5
- package/node_modules/@kardalum/plugin-package/dist/types.d.ts +1 -1
- package/node_modules/@kardalum/ui/dist/components/alert-dialog.d.ts +1 -1
- package/node_modules/@kardalum/ui/dist/components/alert-dialog.js +8 -3
- package/node_modules/@kardalum/ui/dist/components/badge.js +1 -1
- package/node_modules/@kardalum/ui/dist/components/button.js +1 -1
- package/node_modules/@kardalum/ui/dist/components/dialog.d.ts +1 -1
- package/node_modules/@kardalum/ui/dist/components/dialog.js +49 -4
- package/node_modules/@kardalum/ui/dist/components/dropdown-menu.d.ts +5 -1
- package/node_modules/@kardalum/ui/dist/components/dropdown-menu.js +18 -5
- package/node_modules/@kardalum/ui/dist/components/empty-state.d.ts +4 -4
- package/node_modules/@kardalum/ui/dist/components/input.js +6 -1
- package/node_modules/@kardalum/ui/dist/components/property-field.js +3 -3
- package/node_modules/@kardalum/ui/dist/components/sheet.d.ts +1 -1
- package/node_modules/@kardalum/ui/dist/components/sheet.js +12 -7
- package/node_modules/@kardalum/ui/dist/components/skeleton.js +1 -1
- package/node_modules/@kardalum/ui/dist/components/switch.js +1 -1
- package/node_modules/@kardalum/ui/dist/components/tab-strip.d.ts +3 -3
- package/node_modules/@kardalum/ui/dist/components/toast.js +4 -3
- package/node_modules/@kardalum/ui/dist/components/tooltip.d.ts +27 -0
- package/node_modules/@kardalum/ui/dist/components/tooltip.js +81 -0
- package/node_modules/@kardalum/ui/dist/components/truncated-text.d.ts +16 -0
- package/node_modules/@kardalum/ui/dist/components/truncated-text.js +95 -0
- package/node_modules/@kardalum/ui/dist/components/use-toast.js +2 -2
- package/node_modules/@kardalum/ui/dist/index.d.ts +3 -1
- package/node_modules/@kardalum/ui/dist/index.js +3 -1
- package/node_modules/@kardalum/ui/dist/lib/menu-host.d.ts +5 -0
- package/node_modules/@kardalum/ui/dist/lib/menu-host.js +17 -0
- package/node_modules/@kardalum/ui/package.json +8 -6
- package/package.json +18 -7
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { CapabilityDetailReadSchema } from "./capability-detail.js";
|
|
2
3
|
import { PluginActionDeclarationSchema, PluginRoleOfferSchema } from "./plugin-actions.schema.js";
|
|
3
4
|
import { MANIFEST_ID_SEGMENT_MAX, PLUGIN_ID_REGEX, isPluginManifestId } from "./plugin-id-rules.js";
|
|
4
5
|
import { SampleContentOutcomeSchema } from "./sample-content-outcome.schema.js";
|
|
5
6
|
import { InstallAnswersSchema, InstallInterfaceWireSchema } from "./plugin-install.js";
|
|
6
7
|
import { InstallRoleOutcomeSchema } from "./plugin-install-record.schema.js";
|
|
7
8
|
import { InstallWarningsSchema } from "./install-warnings.schema.js";
|
|
9
|
+
import { SignInSwitchedOffSchema } from "./install-sign-in-switched-off.schema.js";
|
|
8
10
|
import { strictUrl } from "./strict-url.js";
|
|
9
11
|
import { PLAN_KEY_MAX, PLAN_NAME_MAX } from "./plan-editor.schema.js";
|
|
12
|
+
import { DOWNLOAD_RETRY_AFTER_MAX_SECONDS, PACKAGE_DOWNLOAD_LIMIT_CODE } from "./marketplace-package-api.schema.js";
|
|
10
13
|
// S268 Task 5: one derived capability, the wire form of the SDK's
|
|
11
14
|
// `Capability` (packages/plugin-sdk/src/capabilities.ts, which the
|
|
12
15
|
// marketplace computes at ingest). Deliberately NOT imported from there:
|
|
@@ -19,11 +22,21 @@ import { PLAN_KEY_MAX, PLAN_NAME_MAX } from "./plan-editor.schema.js";
|
|
|
19
22
|
// learned a new capability would otherwise fail response validation at
|
|
20
23
|
// an older admin and blank the whole screen, instead of rendering one
|
|
21
24
|
// row the admin has no label for. The install screen prints an unlabelled
|
|
22
|
-
// id raw for the same reason: drift should be visible, not fatal.
|
|
25
|
+
// id raw for the same reason: drift should be visible, not fatal. A
|
|
26
|
+
// detail's note is open for the same reason (CapabilityDetailReadSchema).
|
|
27
|
+
//
|
|
28
|
+
// M33 part 1 fix wave (contract-2): a CMS before M33 (the published 0.19.0)
|
|
29
|
+
// reads `details` as strings only, and its response schema refuses an object
|
|
30
|
+
// with a 500 that blanks its browse screen. So the marketplace answers each
|
|
31
|
+
// detail as its English line (formatCapabilityDetail) unless the request
|
|
32
|
+
// declares that it reads the object form, with this header and value; this
|
|
33
|
+
// CMS sends it on every marketplace read.
|
|
34
|
+
export const CAPABILITY_DETAILS_HEADER = "x-kardalum-capability-details";
|
|
35
|
+
export const CAPABILITY_DETAILS_OBJECTS = "objects";
|
|
23
36
|
export const MarketplaceCapabilitySchema = z.object({
|
|
24
37
|
id: z.string(),
|
|
25
38
|
mediation: z.enum(["mediated", "promised"]),
|
|
26
|
-
payload: z.object({ count: z.number().int(), details: z.array(
|
|
39
|
+
payload: z.object({ count: z.number().int(), details: z.array(CapabilityDetailReadSchema) }),
|
|
27
40
|
});
|
|
28
41
|
export const MarketplaceListingVersionSchema = z.object({
|
|
29
42
|
version: z.string(),
|
|
@@ -53,7 +66,7 @@ export const MarketplaceListingVersionSchema = z.object({
|
|
|
53
66
|
// none, and its versions are never held back by the CMS.
|
|
54
67
|
publishedAt: z.string().optional(),
|
|
55
68
|
// F4: some listings legitimately have no downloadable artifact yet
|
|
56
|
-
// (e.g. "available at launch" placeholders)
|
|
69
|
+
// (e.g. "available at launch" placeholders): the marketplace's public
|
|
57
70
|
// portal disables its own Download button for exactly this case. The
|
|
58
71
|
// admin-facing listing API had no way to say so, so the admin marketplace
|
|
59
72
|
// browser rendered an enabled Install button and only found out from the
|
|
@@ -61,6 +74,11 @@ export const MarketplaceListingVersionSchema = z.object({
|
|
|
61
74
|
// `artifactPath != null` (mirrors MarketplaceStarterSchema.hasArchive
|
|
62
75
|
// just below), never guessed client-side.
|
|
63
76
|
hasArtifact: z.boolean(),
|
|
77
|
+
// S366 (spec D5): whether the version declares bundle members, so a CMS can
|
|
78
|
+
// refuse to offer it as an update to a plain plugin from the browse answer
|
|
79
|
+
// and the batched latest versions alone. Optional: a marketplace from before
|
|
80
|
+
// S366 sends none, which reads as unknown, never as true.
|
|
81
|
+
declaresMembers: z.boolean().optional(),
|
|
64
82
|
});
|
|
65
83
|
// S316 (spec 3a, plan P11): a listing sells one to four plans. `shape` is a
|
|
66
84
|
// string, not an enum, so a CMS reading a newer marketplace that adds a
|
|
@@ -75,6 +93,13 @@ export const MarketplacePlanSchema = z.object({
|
|
|
75
93
|
// S321 (P10): positions are 0 and up; the bound also gives the reference example a real value.
|
|
76
94
|
position: z.number().int().nonnegative(),
|
|
77
95
|
});
|
|
96
|
+
// S348 (spec D1): the official marketplace's answer for a listing that a
|
|
97
|
+
// catalogue other than the official marketplace shows: "paid" when it lists the
|
|
98
|
+
// plugin at a price, "free" when it lists it free or does not list it. Set by
|
|
99
|
+
// the CMS's marketplace proxy from its own cached check, never taken from the
|
|
100
|
+
// catalogue. Absent when the catalogue is the official marketplace, and when
|
|
101
|
+
// the official marketplace could not be asked (unknown is not free).
|
|
102
|
+
export const OfficialPriceSchema = z.enum(["paid", "free"]);
|
|
78
103
|
export const MarketplaceListingSchema = z.object({
|
|
79
104
|
pluginId: z.string(),
|
|
80
105
|
name: z.string(),
|
|
@@ -89,7 +114,7 @@ export const MarketplaceListingSchema = z.object({
|
|
|
89
114
|
plans: z.array(MarketplacePlanSchema).optional(),
|
|
90
115
|
coverImagePath: z.string().nullable(),
|
|
91
116
|
latestVersion: MarketplaceListingVersionSchema.nullable(),
|
|
92
|
-
// Computed SERVER-SIDE against this CMS's active dialect
|
|
117
|
+
// Computed SERVER-SIDE against this CMS's active dialect: the admin
|
|
93
118
|
// client never guesses compatibility from raw dialect lists.
|
|
94
119
|
compatible: z.boolean(),
|
|
95
120
|
// S304-94: whether this CMS satisfies the latest version's cmsVersion range,
|
|
@@ -115,13 +140,20 @@ export const MarketplaceListingSchema = z.object({
|
|
|
115
140
|
// of the bundle that installed it: that bundle's plugin id, whose page is
|
|
116
141
|
// where the licence is bought and renewed.
|
|
117
142
|
licenseBundlePluginId: z.string().meta({ example: "com.acme.growth-bundle" }).optional(),
|
|
143
|
+
// S348: see OfficialPriceSchema above.
|
|
144
|
+
officialPrice: OfficialPriceSchema.optional(),
|
|
145
|
+
// S352 (D1): the listing's categories (LISTING_CATEGORIES keys), the chosen
|
|
146
|
+
// ones or, for a listing with none, the one its type files under. A plain
|
|
147
|
+
// string list, not the enum: a CMS reading a newer marketplace that adds a
|
|
148
|
+
// category must not fail the answer. Optional: an older marketplace sends none.
|
|
149
|
+
categories: z.array(z.string()).optional(),
|
|
118
150
|
});
|
|
119
151
|
// S148: a starter frontend the marketplace hosts as a versioned archive
|
|
120
|
-
// (Global Constraints
|
|
152
|
+
// (Global Constraints: a bundledTemplate WITHOUT an archive stays legal,
|
|
121
153
|
// hence hasArchive rather than always assuming a download exists) and the
|
|
122
154
|
// document types a template/section listing provisions on install. Both
|
|
123
155
|
// are projected server-side by the marketplace (starter-projection.ts) and
|
|
124
|
-
// only ever appear on the DETAIL surface, never on browse
|
|
156
|
+
// only ever appear on the DETAIL surface, never on browse: see
|
|
125
157
|
// MarketplaceListingDetailVersionSchema below.
|
|
126
158
|
export const MarketplaceStarterSchema = z.object({
|
|
127
159
|
name: z.string(),
|
|
@@ -133,7 +165,7 @@ export const MarketplaceDocumentTypeSummarySchema = z.object({
|
|
|
133
165
|
name: z.string(),
|
|
134
166
|
fields: z.array(z.string()),
|
|
135
167
|
});
|
|
136
|
-
// S153: a bundle's enriched member projection
|
|
168
|
+
// S153: a bundle's enriched member projection, snapshotted at ingest by
|
|
137
169
|
// the marketplace (bundle-members.ts), detail-only like the S148 starter
|
|
138
170
|
// fields (same extend-don't-widen browse protection below).
|
|
139
171
|
export const MarketplaceBundleMemberSchema = z.object({
|
|
@@ -146,6 +178,11 @@ export const MarketplaceBundleMemberSchema = z.object({
|
|
|
146
178
|
// "monthly", "yearly"). A string, never an enum: a newer marketplace never
|
|
147
179
|
// breaks an older admin (S292). Absent from a marketplace before S322c.
|
|
148
180
|
priceShape: z.string().optional(),
|
|
181
|
+
// S366c spec D2: the official marketplace's paid or free answer for the
|
|
182
|
+
// member, set by the CMS's proxy on the detail answer exactly as
|
|
183
|
+
// OfficialPriceSchema says for a listing (absent when the catalogue is the
|
|
184
|
+
// official marketplace or the answer is not known).
|
|
185
|
+
officialPrice: OfficialPriceSchema.optional(),
|
|
149
186
|
});
|
|
150
187
|
// Extends the base version shape rather than widening it: browse
|
|
151
188
|
// (MarketplaceListingSchema.latestVersion, MarketplaceListResponseSchema)
|
|
@@ -157,7 +194,7 @@ export const MarketplaceListingDetailVersionSchema = MarketplaceListingVersionSc
|
|
|
157
194
|
documentTypesSummary: z.array(MarketplaceDocumentTypeSummarySchema).nullable().optional(),
|
|
158
195
|
bundledMembers: z.array(MarketplaceBundleMemberSchema).nullable().optional(),
|
|
159
196
|
// S210: the package's own README, rendered by @kardalum/markdown in the
|
|
160
|
-
// admin's detail view. Detail-only for the same reason as starter above
|
|
197
|
+
// admin's detail view. Detail-only for the same reason as starter above:
|
|
161
198
|
// extending rather than widening is what keeps it off the browse screen,
|
|
162
199
|
// where the browse handler's response validation strips it back off.
|
|
163
200
|
readme: z.string().nullable().optional(),
|
|
@@ -173,6 +210,11 @@ export const MarketplaceListingDetailSchema = MarketplaceListingSchema.extend({
|
|
|
173
210
|
versions: z.array(MarketplaceListingDetailVersionSchema),
|
|
174
211
|
activeDialect: z.string(),
|
|
175
212
|
marketplaceBaseUrl: z.string(),
|
|
213
|
+
// S348 (P7, the operator's decision, 2026-11-03): the official marketplace's
|
|
214
|
+
// browser origin, present only when officialPrice is "paid", so the admin's
|
|
215
|
+
// Buy link can lead there when the catalogue lists the plugin free. Detail
|
|
216
|
+
// only, like the fields above: browse never carries it.
|
|
217
|
+
officialMarketplaceBaseUrl: z.string().meta({ example: "https://dev.kardalum.com" }).optional(),
|
|
176
218
|
});
|
|
177
219
|
// S288g Task 0: the marketplace's OWN listing API (GET /api/v1/listings and
|
|
178
220
|
// GET /api/v1/listings/:pluginId, upstream of a CMS's proxy) carries the
|
|
@@ -191,6 +233,8 @@ export const MarketplacePublicBaseSchema = z.object({
|
|
|
191
233
|
export const MarketplaceListQuerySchema = z.object({
|
|
192
234
|
q: z.string().optional(),
|
|
193
235
|
type: z.string().optional(),
|
|
236
|
+
// S352: one category key; the marketplace ignores an unknown one.
|
|
237
|
+
category: z.string().optional(),
|
|
194
238
|
db: z.string().optional(),
|
|
195
239
|
cursor: z.string().uuid().optional(),
|
|
196
240
|
limit: z.coerce.number().int().min(1).max(50).default(24),
|
|
@@ -237,6 +281,7 @@ export const MarketplaceLatestVersionSchema = MarketplaceListingVersionSchema.pi
|
|
|
237
281
|
supportedDialects: true,
|
|
238
282
|
hasArtifact: true,
|
|
239
283
|
publishedAt: true,
|
|
284
|
+
declaresMembers: true,
|
|
240
285
|
}).extend({
|
|
241
286
|
// S322b (P15): every plan of the listing, retired ones too (a holder may
|
|
242
287
|
// hold one), live first. Optional: a marketplace from before S322b sends none.
|
|
@@ -300,7 +345,7 @@ export const MarketplaceInstallBodySchema = z
|
|
|
300
345
|
answers: InstallAnswersSchema.optional(),
|
|
301
346
|
})
|
|
302
347
|
.strict();
|
|
303
|
-
// S152: a bundle install reports what its fan-out did per member
|
|
348
|
+
// S152: a bundle install reports what its fan-out did per member:
|
|
304
349
|
// "installed" (this operation installed it, ownership recorded) or
|
|
305
350
|
// "already-installed" (pre-existing, skipped, never claimed). Optional
|
|
306
351
|
// and absent for every non-bundle install, so single-plugin clients are
|
|
@@ -317,7 +362,7 @@ export const MarketplaceInstallHeldBackSchema = z.object({
|
|
|
317
362
|
requestedVersion: z.string(),
|
|
318
363
|
reason: z.literal("term_lapsed"),
|
|
319
364
|
});
|
|
320
|
-
// trustTier is a literal, not the broader TrustTier union
|
|
365
|
+
// trustTier is a literal, not the broader TrustTier union: this door
|
|
321
366
|
// (S138) only ever answers 201 for a "verified" result; a non-"verified"
|
|
322
367
|
// verdict is a 422 failure response (ApiErrorSchema), never this shape.
|
|
323
368
|
export const MarketplaceInstallResponseSchema = z.object({
|
|
@@ -341,6 +386,9 @@ export const MarketplaceInstallResponseSchema = z.object({
|
|
|
341
386
|
warnings: InstallWarningsSchema.optional(),
|
|
342
387
|
// S319: present only when the install held back to a covered version.
|
|
343
388
|
heldBack: MarketplaceInstallHeldBackSchema.optional(),
|
|
389
|
+
// M33 Sign-in: on an update, the ids of the sign-in entries it switched off
|
|
390
|
+
// because the installed declarations could not be read. Absent otherwise.
|
|
391
|
+
signInSwitchedOff: SignInSwitchedOffSchema.optional(),
|
|
344
392
|
});
|
|
345
393
|
/** The 409 a marketplace install or update answers. `reason` is present
|
|
346
394
|
* only for "license-not-recorded" (S284, D4): the plugin IS installed (or
|
|
@@ -350,9 +398,18 @@ export const MarketplaceInstallResponseSchema = z.object({
|
|
|
350
398
|
* 201 would have. Every other 409 carries `message` alone. */
|
|
351
399
|
export const MarketplaceInstallConflictSchema = z.object({
|
|
352
400
|
message: z.string(),
|
|
353
|
-
|
|
401
|
+
// S367g (D12): `download-unknown` when the marketplace would not re-sign
|
|
402
|
+
// the download (older than an hour, or not this site's).
|
|
403
|
+
reason: z.enum(["license-not-recorded", "download-unknown"]).optional(),
|
|
354
404
|
warnings: InstallWarningsSchema.optional(),
|
|
405
|
+
// M33 Sign-in: with "license-not-recorded" after an update, as the 201 would.
|
|
406
|
+
signInSwitchedOff: SignInSwitchedOffSchema.optional(),
|
|
355
407
|
});
|
|
408
|
+
// S367h (D10): the CMS's marketplace proxy answers an unreachable or failing
|
|
409
|
+
// marketplace with this one sentence and reason, never the upstream status
|
|
410
|
+
// or text, which can name hosts and statuses the admin has no use for.
|
|
411
|
+
export const MARKETPLACE_UNAVAILABLE_MESSAGE = "The marketplace did not answer; try again in a minute.";
|
|
412
|
+
export const MarketplaceUnavailableSchema = z.object({ message: z.string(), reason: z.literal("upstream-unavailable") }).strict();
|
|
356
413
|
/** S319 (spec 3c): the 402 a marketplace install answers when the licence's
|
|
357
414
|
* lapsed term does not cover the version: always for an update, which is
|
|
358
415
|
* never downgraded, and for a fresh install with no older covered version
|
|
@@ -361,6 +418,21 @@ export const MarketplaceInstallRenewRequiredSchema = z.object({
|
|
|
361
418
|
message: z.string(),
|
|
362
419
|
reason: z.literal("renew-required"),
|
|
363
420
|
});
|
|
421
|
+
/** M32 I6d (K2): the install route's 429 when the marketplace refused a
|
|
422
|
+
* package download because the licence reached its download limit; the
|
|
423
|
+
* admin says it in its own words, `retryAfterSeconds` is the wait. */
|
|
424
|
+
export const MarketplaceInstallDownloadLimitSchema = z
|
|
425
|
+
.object({
|
|
426
|
+
message: z.string(),
|
|
427
|
+
code: z.literal(PACKAGE_DOWNLOAD_LIMIT_CODE),
|
|
428
|
+
retryAfterSeconds: z.number().int().min(1).max(DOWNLOAD_RETRY_AFTER_MAX_SECONDS),
|
|
429
|
+
})
|
|
430
|
+
.strict();
|
|
431
|
+
/** The route's sentence, the time rounded up to the minute so it is never early. */
|
|
432
|
+
export function marketplaceDownloadLimitMessage(retryAt) {
|
|
433
|
+
const minute = new Date(Math.ceil(retryAt.getTime() / 60_000) * 60_000).toISOString().slice(0, 16).replace("T", " ");
|
|
434
|
+
return `The marketplace refused the download: this licence has reached its download limit for 24 hours. It can download again after ${minute} UTC.`;
|
|
435
|
+
}
|
|
364
436
|
/** S322c (D5, plan P14): the most plugins a missing-dependency answer names. */
|
|
365
437
|
export const MARKETPLACE_MISSING_PLUGINS_MAX = 32;
|
|
366
438
|
/** One plugin a bundle install needs and the site does not have. `author`
|
|
@@ -378,4 +450,6 @@ export const MarketplaceInstallDependenciesMissingSchema = z.object({
|
|
|
378
450
|
message: z.string(),
|
|
379
451
|
reason: z.literal("dependencies-missing"),
|
|
380
452
|
missing: z.array(MarketplaceMissingPluginSchema).min(1).max(MARKETPLACE_MISSING_PLUGINS_MAX),
|
|
453
|
+
/** S366 (spec D6): how many of the bundle's rollback steps failed, sent only when any did. */
|
|
454
|
+
rollbackFailures: z.number().int().positive().optional(),
|
|
381
455
|
});
|
|
@@ -15,3 +15,18 @@ export declare const PackageTermLapsedSchema: z.ZodObject<{
|
|
|
15
15
|
renewUrl: z.ZodString;
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
export type PackageTermLapsed = z.infer<typeof PackageTermLapsedSchema>;
|
|
18
|
+
/** M32 I6d (K1): the code a marketplace package download answers, with HTTP
|
|
19
|
+
* 429, when the licence has reached its download allowance for the window. */
|
|
20
|
+
export declare const PACKAGE_DOWNLOAD_LIMIT_CODE: "download_limit";
|
|
21
|
+
/** The longest wait a download_limit refusal names: the window is 24 hours. */
|
|
22
|
+
export declare const DOWNLOAD_RETRY_AFTER_MAX_SECONDS = 86400;
|
|
23
|
+
/** The 429 body. `retryAfterSeconds` equals the Retry-After header: when the
|
|
24
|
+
* next download of the licence passes. The per-address rate limit's 429 has
|
|
25
|
+
* no `code` and does not parse. */
|
|
26
|
+
export declare const PackageDownloadLimitSchema: z.ZodObject<{
|
|
27
|
+
error: z.ZodString;
|
|
28
|
+
code: z.ZodLiteral<"download_limit">;
|
|
29
|
+
message: z.ZodString;
|
|
30
|
+
retryAfterSeconds: z.ZodNumber;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export type PackageDownloadLimit = z.infer<typeof PackageDownloadLimitSchema>;
|
|
@@ -14,3 +14,17 @@ export const PackageTermLapsedSchema = z.object({
|
|
|
14
14
|
entitledVersion: z.string().min(1).max(256).optional(),
|
|
15
15
|
renewUrl: z.string(),
|
|
16
16
|
});
|
|
17
|
+
/** M32 I6d (K1): the code a marketplace package download answers, with HTTP
|
|
18
|
+
* 429, when the licence has reached its download allowance for the window. */
|
|
19
|
+
export const PACKAGE_DOWNLOAD_LIMIT_CODE = "download_limit";
|
|
20
|
+
/** The longest wait a download_limit refusal names: the window is 24 hours. */
|
|
21
|
+
export const DOWNLOAD_RETRY_AFTER_MAX_SECONDS = 86_400;
|
|
22
|
+
/** The 429 body. `retryAfterSeconds` equals the Retry-After header: when the
|
|
23
|
+
* next download of the licence passes. The per-address rate limit's 429 has
|
|
24
|
+
* no `code` and does not parse. */
|
|
25
|
+
export const PackageDownloadLimitSchema = z.object({
|
|
26
|
+
error: z.string(),
|
|
27
|
+
code: z.literal(PACKAGE_DOWNLOAD_LIMIT_CODE),
|
|
28
|
+
message: z.string(),
|
|
29
|
+
retryAfterSeconds: z.number().int().min(1).max(DOWNLOAD_RETRY_AFTER_MAX_SECONDS),
|
|
30
|
+
});
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Country codes and IBAN lengths of the SWIFT IBAN registry (the registry's
|
|
4
|
+
* published country list, as of 2026). An unknown country is refused.
|
|
5
|
+
*/
|
|
6
|
+
export declare const IBAN_LENGTHS: Readonly<Record<string, number>>;
|
|
7
|
+
export declare const PAYOUT_LIMITS: {
|
|
8
|
+
readonly holder: 140;
|
|
9
|
+
readonly reference: 200;
|
|
10
|
+
readonly note: 1000;
|
|
11
|
+
readonly email: 254;
|
|
12
|
+
};
|
|
13
|
+
/** Drops spaces and upper-cases. Input past 64 characters yields "" (never an IBAN). */
|
|
14
|
+
export declare function normalizeIban(raw: string): string;
|
|
15
|
+
/** 15 to 34 characters, CC + 2 digits + letters and digits, the country's length, mod 97 equals 1. */
|
|
16
|
+
export declare function isIban(value: string): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Exactly one @, a local part of 1 to 64, a domain of at most 253 with an inner
|
|
19
|
+
* dot and no empty label; no whitespace, control character, quote, angle
|
|
20
|
+
* bracket or comma; at most 254 characters overall.
|
|
21
|
+
*/
|
|
22
|
+
export declare function isPayoutEmail(value: string): boolean;
|
|
23
|
+
/** YYYY-MM-DD with a real calendar day. */
|
|
24
|
+
export declare function isIsoDate(value: string): boolean;
|
|
25
|
+
export declare const PayoutMethodInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
26
|
+
kind: z.ZodLiteral<"paypal">;
|
|
27
|
+
paypalEmail: z.ZodString;
|
|
28
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
+
kind: z.ZodLiteral<"bank">;
|
|
30
|
+
accountHolder: z.ZodString;
|
|
31
|
+
iban: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
32
|
+
}, z.core.$strip>], "kind">;
|
|
33
|
+
export type PayoutMethodInput = z.infer<typeof PayoutMethodInputSchema>;
|
|
34
|
+
export declare const PayoutMonthSchema: z.ZodString;
|
|
35
|
+
export declare const PayoutRecordInputSchema: z.ZodObject<{
|
|
36
|
+
developerId: z.ZodString;
|
|
37
|
+
reportMonth: z.ZodPreprocess<z.ZodNullable<z.ZodString>, unknown>;
|
|
38
|
+
paidOn: z.ZodString;
|
|
39
|
+
amount: z.ZodString;
|
|
40
|
+
fee: z.ZodString;
|
|
41
|
+
reference: z.ZodString;
|
|
42
|
+
note: z.ZodPreprocess<z.ZodNullable<z.ZodString>, unknown>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
export type PayoutRecordInput = z.infer<typeof PayoutRecordInputSchema>;
|
|
45
|
+
export declare const LedgerReversalInputSchema: z.ZodObject<{
|
|
46
|
+
entryId: z.ZodString;
|
|
47
|
+
note: z.ZodString;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
/** `nonce` is the form's own id, drawn when the page rendered: a second
|
|
50
|
+
* press of the same form posts the fee once (its ledger key). */
|
|
51
|
+
export declare const ManualFeeInputSchema: z.ZodObject<{
|
|
52
|
+
developerId: z.ZodString;
|
|
53
|
+
purchaseId: z.ZodString;
|
|
54
|
+
amount: z.ZodString;
|
|
55
|
+
note: z.ZodString;
|
|
56
|
+
nonce: z.ZodString;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
export declare const PaymentFeeDecisionInputSchema: z.ZodObject<{
|
|
59
|
+
developerId: z.ZodString;
|
|
60
|
+
purchaseId: z.ZodString;
|
|
61
|
+
choice: z.ZodEnum<{
|
|
62
|
+
kardalum: "kardalum";
|
|
63
|
+
fee: "fee";
|
|
64
|
+
}>;
|
|
65
|
+
amount: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
66
|
+
currency: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
67
|
+
eur: "eur";
|
|
68
|
+
usd: "usd";
|
|
69
|
+
}>>, unknown>;
|
|
70
|
+
rate: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
71
|
+
note: z.ZodString;
|
|
72
|
+
nonce: z.ZodString;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
/** A correction also names the payment fee entry the page showed (`""` for
|
|
75
|
+
* none), so a page shown before another change is refused, not applied.
|
|
76
|
+
* The re-review of I6e's fix wave (R1): it may carry the part of the fee the
|
|
77
|
+
* provider returned, as its records show it (`returned`, same currency as
|
|
78
|
+
* the fee), for a refund whose fee read failed; with a fee only. */
|
|
79
|
+
export declare const PaymentFeeCorrectionInputSchema: z.ZodObject<{
|
|
80
|
+
shownEntryId: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>;
|
|
81
|
+
returned: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
82
|
+
confirmedReturned: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
83
|
+
confirmedCredit: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
84
|
+
developerId: z.ZodString;
|
|
85
|
+
purchaseId: z.ZodString;
|
|
86
|
+
choice: z.ZodEnum<{
|
|
87
|
+
kardalum: "kardalum";
|
|
88
|
+
fee: "fee";
|
|
89
|
+
}>;
|
|
90
|
+
amount: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
91
|
+
currency: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
92
|
+
eur: "eur";
|
|
93
|
+
usd: "usd";
|
|
94
|
+
}>>, unknown>;
|
|
95
|
+
rate: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
96
|
+
note: z.ZodString;
|
|
97
|
+
nonce: z.ZodString;
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
export declare const ACCEPTANCE_SLUGS: readonly ["terms", "author-agreement"];
|
|
100
|
+
export declare const AgreementAcceptanceInputSchema: z.ZodObject<{
|
|
101
|
+
slug: z.ZodEnum<{
|
|
102
|
+
terms: "terms";
|
|
103
|
+
"author-agreement": "author-agreement";
|
|
104
|
+
}>;
|
|
105
|
+
version: z.ZodString;
|
|
106
|
+
accepted: z.ZodLiteral<"on">;
|
|
107
|
+
}, z.core.$strip>;
|
|
108
|
+
export declare const LegalAnnouncementInputSchema: z.ZodObject<{
|
|
109
|
+
slug: z.ZodEnum<{
|
|
110
|
+
terms: "terms";
|
|
111
|
+
"author-agreement": "author-agreement";
|
|
112
|
+
}>;
|
|
113
|
+
version: z.ZodString;
|
|
114
|
+
appliesFrom: z.ZodPreprocess<z.ZodNullable<z.ZodString>, unknown>;
|
|
115
|
+
}, z.core.$strip>;
|
|
116
|
+
/** The longest statement of reasons an end by Kardalum carries. */
|
|
117
|
+
export declare const AGREEMENT_END_REASON_MAX = 2000;
|
|
118
|
+
/** An end recorded by Kardalum carries its reasons, sent to the author as
|
|
119
|
+
* the statement of reasons; an end the author asked for needs none. */
|
|
120
|
+
export declare const AgreementEndInputSchema: z.ZodObject<{
|
|
121
|
+
developerId: z.ZodString;
|
|
122
|
+
endedBy: z.ZodEnum<{
|
|
123
|
+
kardalum: "kardalum";
|
|
124
|
+
author: "author";
|
|
125
|
+
}>;
|
|
126
|
+
confirmEmail: z.ZodString;
|
|
127
|
+
reason: z.ZodPreprocess<z.ZodNullable<z.ZodString>, unknown>;
|
|
128
|
+
}, z.core.$strip>;
|
|
129
|
+
export declare const ListingWithdrawalInputSchema: z.ZodObject<{
|
|
130
|
+
listingId: z.ZodString;
|
|
131
|
+
}, z.core.$strip>;
|