@kardalum/plugin-sdk 0.19.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 +211 -0
- package/README.md +19 -0
- package/dist/admin-section-registry.d.ts +16 -1
- package/dist/admin-section-registry.js +23 -0
- package/dist/built-in-editor-ids.d.ts +1 -1
- package/dist/built-in-editor-ids.js +2 -20
- package/dist/built-in-settings-schemas.d.ts +10 -0
- package/dist/built-in-settings-schemas.js +86 -0
- package/dist/built-in-value-schemas.js +35 -0
- package/dist/built-ins.js +38 -7
- 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 +7 -1
- package/dist/datatype-validation.d.ts +4 -9
- package/dist/datatype-validation.js +139 -1
- 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 +36 -4
- package/dist/index.js +50 -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 +285 -23
- package/dist/manifest.d.ts +450 -51
- package/dist/manifest.js +1 -1
- package/dist/media/media-picker.js +31 -18
- 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-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/richtext/block-panel.js +11 -6
- package/dist/richtext/insert-menu.js +9 -6
- package/dist/richtext/style-listbox.js +6 -4
- 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 +24 -24
- package/dist/structured-storage-types.d.ts +309 -9
- 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/views/asset-view.js +4 -1
- 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 +4 -1
- 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-view.js +7 -6
- package/dist/views/image-view.js +37 -19
- 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 +28 -13
- 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-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/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/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 +115 -3
- package/node_modules/@kardalum/api-schemas/dist/content-api.schema.js +58 -11
- 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-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 +8 -0
- package/node_modules/@kardalum/api-schemas/dist/data-type-config.schema.js +1 -1
- 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 +180 -15
- package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.js +41 -5
- 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 +90 -5
- 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 +117 -41
- package/node_modules/@kardalum/api-schemas/dist/index.js +89 -26
- 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/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 +312 -8
- package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.js +43 -3
- 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 +13 -1
- 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 +4 -0
- 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.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 +335 -6
- package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.js +242 -2
- 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-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 +47 -4
- 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/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 +90 -8
- package/node_modules/@kardalum/api-schemas/dist/server-settings-api.schema.js +59 -1
- package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.d.ts +110 -0
- package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.js +34 -2
- 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/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.schema.d.ts +1 -0
- package/node_modules/@kardalum/api-schemas/dist/template.schema.js +3 -0
- 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 +34 -3
- 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.js +6 -0
- 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/tokens.css +15 -3
- package/node_modules/@kardalum/design-tokens/dist/tokens.d.ts +1 -1
- package/node_modules/@kardalum/design-tokens/dist/tokens.js +12 -3
- package/node_modules/@kardalum/design-tokens/dist/tokens.json +8 -3
- package/node_modules/@kardalum/design-tokens/dist/types.d.ts +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 +25 -4
- 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/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/ui/dist/components/switch.js +1 -1
- package/node_modules/@kardalum/ui/dist/components/tooltip.js +1 -2
- package/node_modules/@kardalum/ui/dist/components/truncated-text.d.ts +6 -1
- package/node_modules/@kardalum/ui/dist/components/truncated-text.js +5 -4
- package/package.json +12 -2
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { InstallIdSchema, InstallReportSchema, SITE_KEY_MAX, StampSchema, isStamp } from "./marketplace-sites.schema.js";
|
|
3
|
+
// S367e (licence terms `tracing` and `revocation`): the per-download stamp,
|
|
4
|
+
// how a copy reports in, and the operator's leak and lock forms. The stamp's
|
|
5
|
+
// readers are shared by the marketplace (an uploaded copy) and the CMS (its
|
|
6
|
+
// own installed package): plain loops and indexOf over a capped text, never
|
|
7
|
+
// a pattern.
|
|
8
|
+
export const STAMP_FILE_NAME = "kardalum-license.json";
|
|
9
|
+
export const STAMP_MARKER = "kardalum-stamp:";
|
|
10
|
+
/** The root file is read only when it is this small. */
|
|
11
|
+
export const STAMP_FILE_MAX = 1024;
|
|
12
|
+
/** The code line is looked for in this many last bytes of a file. */
|
|
13
|
+
export const STAMP_TAIL_BYTES = 4096;
|
|
14
|
+
/** S367g (D5, licence terms `warnings`): every paid download carries the
|
|
15
|
+
* licence terms for buyers and the standard plugin licence at its root, in
|
|
16
|
+
* the buyer's language, inside the signed bytes. The CMS never serves them
|
|
17
|
+
* (its plugin-assets mount), and an author's package may not carry either
|
|
18
|
+
* name. Each is at most this many bytes. */
|
|
19
|
+
export const LICENCE_TERMS_FILE_NAME = "LICENCE-TERMS.md";
|
|
20
|
+
export const PLUGIN_LICENCE_FILE_NAME = "PLUGIN-LICENCE.md";
|
|
21
|
+
export const PACKAGE_TEXT_FILE_NAMES = [LICENCE_TERMS_FILE_NAME, PLUGIN_LICENCE_FILE_NAME];
|
|
22
|
+
export const PACKAGE_TEXT_FILE_MAX = 200 * 1024;
|
|
23
|
+
const RESERVED_ROOT_NAMES = [STAMP_FILE_NAME, ...PACKAGE_TEXT_FILE_NAMES].map((n) => n.toLowerCase());
|
|
24
|
+
/** Whether a package root entry takes a name the marketplace writes into
|
|
25
|
+
* every licensed download, compared without case. */
|
|
26
|
+
export function isReservedPackageRootName(name) {
|
|
27
|
+
return RESERVED_ROOT_NAMES.includes(name.toLowerCase());
|
|
28
|
+
}
|
|
29
|
+
/** The comment appended as the last line of `server/plugin.js` (never
|
|
30
|
+
* `remoteEntry.js`, which a browser fetches, so whatever it carries is
|
|
31
|
+
* public). A block comment after the last byte changes nothing a module
|
|
32
|
+
* does. */
|
|
33
|
+
export function stampLine(stamp) {
|
|
34
|
+
return `/* ${STAMP_MARKER}${stamp} */`;
|
|
35
|
+
}
|
|
36
|
+
function isHexCode(c) {
|
|
37
|
+
return (c >= 48 && c <= 57) || (c >= 97 && c <= 102);
|
|
38
|
+
}
|
|
39
|
+
/** The stamp after the last marker in `tail`: exactly 32 lowercase hex
|
|
40
|
+
* characters, the next character not hex. Null when there is none. */
|
|
41
|
+
export function stampFromCodeTail(tail) {
|
|
42
|
+
if (tail.length === 0 || tail.length > STAMP_TAIL_BYTES * 4)
|
|
43
|
+
return null;
|
|
44
|
+
const at = tail.lastIndexOf(STAMP_MARKER);
|
|
45
|
+
if (at < 0)
|
|
46
|
+
return null;
|
|
47
|
+
const start = at + STAMP_MARKER.length;
|
|
48
|
+
const candidate = tail.slice(start, start + 32);
|
|
49
|
+
if (!isStamp(candidate))
|
|
50
|
+
return null;
|
|
51
|
+
const after = start + 32;
|
|
52
|
+
if (after < tail.length && isHexCode(tail.charCodeAt(after)))
|
|
53
|
+
return null;
|
|
54
|
+
return candidate;
|
|
55
|
+
}
|
|
56
|
+
/** The stamp in the root file's text, `{"v":1,"stamp":"<hex>"}`, read only
|
|
57
|
+
* when the text is at most STAMP_FILE_MAX characters. */
|
|
58
|
+
export function stampFromLicenceFile(text) {
|
|
59
|
+
if (text.length === 0 || text.length > STAMP_FILE_MAX)
|
|
60
|
+
return null;
|
|
61
|
+
let value;
|
|
62
|
+
try {
|
|
63
|
+
value = JSON.parse(text);
|
|
64
|
+
}
|
|
65
|
+
catch {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
if (typeof value !== "object" || value === null || Array.isArray(value))
|
|
69
|
+
return null;
|
|
70
|
+
const v = value;
|
|
71
|
+
if (v.v !== 1 || typeof v.stamp !== "string")
|
|
72
|
+
return null;
|
|
73
|
+
return isStamp(v.stamp) ? v.stamp : null;
|
|
74
|
+
}
|
|
75
|
+
/** The packages route names the download it served in this header; the CMS
|
|
76
|
+
* sends it back to the signature route (D2). */
|
|
77
|
+
export const DOWNLOAD_ID_HEADER = "x-kardalum-download";
|
|
78
|
+
export const DownloadIdSchema = z.string().uuid();
|
|
79
|
+
/** S367e (D5): what a CMS that runs a stamped package without a licence
|
|
80
|
+
* sends once a day. No key: it has none. */
|
|
81
|
+
export const StampReportRequestSchema = z
|
|
82
|
+
.object({
|
|
83
|
+
pluginId: z.string().min(1).max(128),
|
|
84
|
+
domain: z.string().trim().min(1).max(SITE_KEY_MAX),
|
|
85
|
+
installId: InstallIdSchema,
|
|
86
|
+
install: InstallReportSchema.extend({ stamp: StampSchema }),
|
|
87
|
+
})
|
|
88
|
+
.strict();
|
|
89
|
+
export const LEAK_NOTE_MAX = 2000;
|
|
90
|
+
export const LEAK_FOUND_AT_MAX = 2000;
|
|
91
|
+
export const LEAK_REPORTER_NAME_MAX = 200;
|
|
92
|
+
export const LEAK_REPORTER_EMAIL_MAX = 320;
|
|
93
|
+
/** The largest package the leak screen reads, the upload door's own cap. */
|
|
94
|
+
export const LEAK_UPLOAD_MAX_BYTES = 20 * 1024 * 1024;
|
|
95
|
+
const optionalText = (max) => z
|
|
96
|
+
.string()
|
|
97
|
+
.trim()
|
|
98
|
+
.max(max)
|
|
99
|
+
.optional()
|
|
100
|
+
.transform((v) => (v === undefined || v === "" ? undefined : v));
|
|
101
|
+
/** The report-a-leak form's text fields; the stamp or the file is checked by
|
|
102
|
+
* the route (one of the two is required). */
|
|
103
|
+
export const LeakTraceFieldsSchema = z.object({
|
|
104
|
+
// S367f: a stamp pasted in upper case is the same stamp.
|
|
105
|
+
stamp: z.string().trim().toLowerCase().pipe(StampSchema).optional(),
|
|
106
|
+
foundAt: z.string().trim().min(1).max(LEAK_FOUND_AT_MAX),
|
|
107
|
+
reporterName: optionalText(LEAK_REPORTER_NAME_MAX),
|
|
108
|
+
reporterEmail: optionalText(LEAK_REPORTER_EMAIL_MAX),
|
|
109
|
+
note: optionalText(LEAK_NOTE_MAX),
|
|
110
|
+
});
|
|
111
|
+
const uuid = z.string().uuid();
|
|
112
|
+
const note = z.string().trim().min(1).max(LEAK_NOTE_MAX);
|
|
113
|
+
const reason = z.string().trim().min(1).max(500);
|
|
114
|
+
/** D9: a person's three actions on a leak case. Nothing revokes without the box. */
|
|
115
|
+
export const LeakCaseActionSchema = z.discriminatedUnion("action", [
|
|
116
|
+
z.object({ action: z.literal("lock"), caseId: uuid, note }),
|
|
117
|
+
z.object({ action: z.literal("dismiss"), caseId: uuid, note }),
|
|
118
|
+
z.object({ action: z.literal("revoke"), caseId: uuid, reason, confirmed: z.literal(true) }),
|
|
119
|
+
]);
|
|
120
|
+
/** D10, D11: the actions on a locked licence, and the key replacement. */
|
|
121
|
+
export const LicenceLockActionSchema = z.discriminatedUnion("action", [
|
|
122
|
+
z.object({ action: z.literal("lift"), licenseId: uuid, note, replaceKey: z.boolean() }),
|
|
123
|
+
z.object({ action: z.literal("revoke"), licenseId: uuid, reason, confirmed: z.literal(true) }),
|
|
124
|
+
z.object({ action: z.literal("replace-key"), licenseId: uuid, note }),
|
|
125
|
+
]);
|
|
126
|
+
/** M32 I6d (S1, N14, N22): the leaks page's clear of a licence's stored
|
|
127
|
+
* sightings, confirmed by its box, with the person's note (it deletes
|
|
128
|
+
* evidence, so another department can review why). */
|
|
129
|
+
export const ClearSightingsActionSchema = z.object({ licenseId: uuid, confirmed: z.literal(true), note });
|
|
130
|
+
/** M32 I6d (K5, review R1): the leak cases and their evidence domains a form
|
|
131
|
+
* showed the person. A "Not a leak" or a lift clears only these: at most the
|
|
132
|
+
* Locked licences card's 20 cases, each with at most 20 domains. */
|
|
133
|
+
export const SHOWN_CASES_MAX = 20;
|
|
134
|
+
export const SHOWN_SITES_MAX = 400;
|
|
135
|
+
export const ShownSitesSchema = z.object({
|
|
136
|
+
cases: z.array(uuid).max(SHOWN_CASES_MAX),
|
|
137
|
+
sites: z.array(z.object({ caseId: uuid, domain: z.string().min(1).max(253) })).max(SHOWN_SITES_MAX),
|
|
138
|
+
});
|
|
139
|
+
export const AUTHOR_LEAK_STATES = ["review", "locked", "revoked", "not-a-leak", "lifted"];
|
|
140
|
+
/** D14: an author's view of a leaked copy of their plugin. Strict, so no
|
|
141
|
+
* buyer field, no reporter field and no operator note can ride along. */
|
|
142
|
+
export const AuthorLeakRowSchema = z
|
|
143
|
+
.object({
|
|
144
|
+
pluginId: z.string(),
|
|
145
|
+
pluginName: z.string(),
|
|
146
|
+
licenceRef: z.string().length(10),
|
|
147
|
+
version: z.string().nullable(),
|
|
148
|
+
downloadDay: z.string().length(10).nullable(),
|
|
149
|
+
foundAt: z.string().max(LEAK_FOUND_AT_MAX).nullable(),
|
|
150
|
+
domains: z.array(z.object({ domain: z.string().max(SITE_KEY_MAX), firstDay: z.string().length(10), lastDay: z.string().length(10) }).strict()).max(20),
|
|
151
|
+
openedAt: z.string().datetime(),
|
|
152
|
+
state: z.enum(AUTHOR_LEAK_STATES),
|
|
153
|
+
})
|
|
154
|
+
.strict();
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export declare const CAPABILITY_DETAILS_HEADER = "x-kardalum-capability-details";
|
|
3
|
+
export declare const CAPABILITY_DETAILS_OBJECTS = "objects";
|
|
2
4
|
export declare const MarketplaceCapabilitySchema: z.ZodObject<{
|
|
3
5
|
id: z.ZodString;
|
|
4
6
|
mediation: z.ZodEnum<{
|
|
@@ -7,7 +9,7 @@ export declare const MarketplaceCapabilitySchema: z.ZodObject<{
|
|
|
7
9
|
}>;
|
|
8
10
|
payload: z.ZodObject<{
|
|
9
11
|
count: z.ZodNumber;
|
|
10
|
-
details: z.ZodArray<z.
|
|
12
|
+
details: z.ZodArray<z.ZodType<import("./capability-detail.js").CapabilityDetailRead, unknown, z.core.$ZodTypeInternals<import("./capability-detail.js").CapabilityDetailRead, unknown>>>;
|
|
11
13
|
}, z.core.$strip>;
|
|
12
14
|
}, z.core.$strip>;
|
|
13
15
|
export type MarketplaceCapability = z.infer<typeof MarketplaceCapabilitySchema>;
|
|
@@ -22,7 +24,7 @@ export declare const MarketplaceListingVersionSchema: z.ZodObject<{
|
|
|
22
24
|
}>;
|
|
23
25
|
payload: z.ZodObject<{
|
|
24
26
|
count: z.ZodNumber;
|
|
25
|
-
details: z.ZodArray<z.
|
|
27
|
+
details: z.ZodArray<z.ZodType<import("./capability-detail.js").CapabilityDetailRead, unknown, z.core.$ZodTypeInternals<import("./capability-detail.js").CapabilityDetailRead, unknown>>>;
|
|
26
28
|
}, z.core.$strip>;
|
|
27
29
|
}, z.core.$strip>>;
|
|
28
30
|
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -30,6 +32,12 @@ export declare const MarketplaceListingVersionSchema: z.ZodObject<{
|
|
|
30
32
|
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
31
33
|
en: z.ZodString;
|
|
32
34
|
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
35
|
+
offerTo: z.ZodOptional<z.ZodEnum<{
|
|
36
|
+
"content.read": "content.read";
|
|
37
|
+
"content.update": "content.update";
|
|
38
|
+
"content.publish": "content.publish";
|
|
39
|
+
"media.read": "media.read";
|
|
40
|
+
}>>;
|
|
33
41
|
}, z.core.$strip>>>;
|
|
34
42
|
roleOffers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
35
43
|
id: z.ZodString;
|
|
@@ -87,7 +95,7 @@ export declare const MarketplaceListingSchema: z.ZodObject<{
|
|
|
87
95
|
}>;
|
|
88
96
|
payload: z.ZodObject<{
|
|
89
97
|
count: z.ZodNumber;
|
|
90
|
-
details: z.ZodArray<z.
|
|
98
|
+
details: z.ZodArray<z.ZodType<import("./capability-detail.js").CapabilityDetailRead, unknown, z.core.$ZodTypeInternals<import("./capability-detail.js").CapabilityDetailRead, unknown>>>;
|
|
91
99
|
}, z.core.$strip>;
|
|
92
100
|
}, z.core.$strip>>;
|
|
93
101
|
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -95,6 +103,12 @@ export declare const MarketplaceListingSchema: z.ZodObject<{
|
|
|
95
103
|
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
96
104
|
en: z.ZodString;
|
|
97
105
|
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
106
|
+
offerTo: z.ZodOptional<z.ZodEnum<{
|
|
107
|
+
"content.read": "content.read";
|
|
108
|
+
"content.update": "content.update";
|
|
109
|
+
"content.publish": "content.publish";
|
|
110
|
+
"media.read": "media.read";
|
|
111
|
+
}>>;
|
|
98
112
|
}, z.core.$strip>>>;
|
|
99
113
|
roleOffers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
100
114
|
id: z.ZodString;
|
|
@@ -160,7 +174,7 @@ export declare const MarketplaceListingDetailVersionSchema: z.ZodObject<{
|
|
|
160
174
|
}>;
|
|
161
175
|
payload: z.ZodObject<{
|
|
162
176
|
count: z.ZodNumber;
|
|
163
|
-
details: z.ZodArray<z.
|
|
177
|
+
details: z.ZodArray<z.ZodType<import("./capability-detail.js").CapabilityDetailRead, unknown, z.core.$ZodTypeInternals<import("./capability-detail.js").CapabilityDetailRead, unknown>>>;
|
|
164
178
|
}, z.core.$strip>;
|
|
165
179
|
}, z.core.$strip>>;
|
|
166
180
|
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -168,6 +182,12 @@ export declare const MarketplaceListingDetailVersionSchema: z.ZodObject<{
|
|
|
168
182
|
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
169
183
|
en: z.ZodString;
|
|
170
184
|
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
185
|
+
offerTo: z.ZodOptional<z.ZodEnum<{
|
|
186
|
+
"content.read": "content.read";
|
|
187
|
+
"content.update": "content.update";
|
|
188
|
+
"content.publish": "content.publish";
|
|
189
|
+
"media.read": "media.read";
|
|
190
|
+
}>>;
|
|
171
191
|
}, z.core.$strip>>>;
|
|
172
192
|
roleOffers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
173
193
|
id: z.ZodString;
|
|
@@ -227,6 +247,19 @@ export declare const MarketplaceListingDetailVersionSchema: z.ZodObject<{
|
|
|
227
247
|
actions: z.ZodArray<z.ZodString>;
|
|
228
248
|
default: z.ZodLiteral<false>;
|
|
229
249
|
}, z.core.$strip>>;
|
|
250
|
+
offers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
251
|
+
action: z.ZodString;
|
|
252
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
253
|
+
en: z.ZodString;
|
|
254
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
255
|
+
target: z.ZodEnum<{
|
|
256
|
+
"content.read": "content.read";
|
|
257
|
+
"content.update": "content.update";
|
|
258
|
+
"content.publish": "content.publish";
|
|
259
|
+
"media.read": "media.read";
|
|
260
|
+
}>;
|
|
261
|
+
default: z.ZodBoolean;
|
|
262
|
+
}, z.core.$strip>>>;
|
|
230
263
|
steps: z.ZodArray<z.ZodObject<{
|
|
231
264
|
id: z.ZodString;
|
|
232
265
|
label: z.ZodPreprocess<z.ZodObject<{
|
|
@@ -286,6 +319,73 @@ export declare const MarketplaceListingDetailVersionSchema: z.ZodObject<{
|
|
|
286
319
|
}, z.core.$catchall<z.ZodString>>, unknown>>;
|
|
287
320
|
}, z.core.$strict>], "kind">>;
|
|
288
321
|
}, z.core.$strict>>;
|
|
322
|
+
settings: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
323
|
+
type: z.ZodLiteral<"text">;
|
|
324
|
+
default: z.ZodOptional<z.ZodString>;
|
|
325
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
326
|
+
multiline: z.ZodOptional<z.ZodBoolean>;
|
|
327
|
+
id: z.ZodString;
|
|
328
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
329
|
+
en: z.ZodString;
|
|
330
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
331
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
332
|
+
en: z.ZodString;
|
|
333
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>>;
|
|
334
|
+
askAtInstall: z.ZodOptional<z.ZodBoolean>;
|
|
335
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
336
|
+
type: z.ZodLiteral<"number">;
|
|
337
|
+
default: z.ZodOptional<z.ZodNumber>;
|
|
338
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
339
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
340
|
+
integer: z.ZodOptional<z.ZodBoolean>;
|
|
341
|
+
id: z.ZodString;
|
|
342
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
343
|
+
en: z.ZodString;
|
|
344
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
345
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
346
|
+
en: z.ZodString;
|
|
347
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>>;
|
|
348
|
+
askAtInstall: z.ZodOptional<z.ZodBoolean>;
|
|
349
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
350
|
+
type: z.ZodLiteral<"onOff">;
|
|
351
|
+
default: z.ZodOptional<z.ZodBoolean>;
|
|
352
|
+
id: z.ZodString;
|
|
353
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
354
|
+
en: z.ZodString;
|
|
355
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
356
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
357
|
+
en: z.ZodString;
|
|
358
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>>;
|
|
359
|
+
askAtInstall: z.ZodOptional<z.ZodBoolean>;
|
|
360
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
361
|
+
type: z.ZodLiteral<"choice">;
|
|
362
|
+
default: z.ZodOptional<z.ZodString>;
|
|
363
|
+
choices: z.ZodArray<z.ZodObject<{
|
|
364
|
+
value: z.ZodString;
|
|
365
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
366
|
+
en: z.ZodString;
|
|
367
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
368
|
+
}, z.core.$strict>>;
|
|
369
|
+
id: z.ZodString;
|
|
370
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
371
|
+
en: z.ZodString;
|
|
372
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
373
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
374
|
+
en: z.ZodString;
|
|
375
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>>;
|
|
376
|
+
askAtInstall: z.ZodOptional<z.ZodBoolean>;
|
|
377
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
378
|
+
type: z.ZodLiteral<"secret">;
|
|
379
|
+
secret: z.ZodString;
|
|
380
|
+
id: z.ZodString;
|
|
381
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
382
|
+
en: z.ZodString;
|
|
383
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
384
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
385
|
+
en: z.ZodString;
|
|
386
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>>;
|
|
387
|
+
askAtInstall: z.ZodOptional<z.ZodBoolean>;
|
|
388
|
+
}, z.core.$strict>], "type">>>;
|
|
289
389
|
}, z.core.$strip>>>;
|
|
290
390
|
}, z.core.$strip>;
|
|
291
391
|
export type MarketplaceListingDetailVersion = z.infer<typeof MarketplaceListingDetailVersionSchema>;
|
|
@@ -327,7 +427,7 @@ export declare const MarketplaceListingDetailSchema: z.ZodObject<{
|
|
|
327
427
|
}>;
|
|
328
428
|
payload: z.ZodObject<{
|
|
329
429
|
count: z.ZodNumber;
|
|
330
|
-
details: z.ZodArray<z.
|
|
430
|
+
details: z.ZodArray<z.ZodType<import("./capability-detail.js").CapabilityDetailRead, unknown, z.core.$ZodTypeInternals<import("./capability-detail.js").CapabilityDetailRead, unknown>>>;
|
|
331
431
|
}, z.core.$strip>;
|
|
332
432
|
}, z.core.$strip>>;
|
|
333
433
|
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -335,6 +435,12 @@ export declare const MarketplaceListingDetailSchema: z.ZodObject<{
|
|
|
335
435
|
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
336
436
|
en: z.ZodString;
|
|
337
437
|
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
438
|
+
offerTo: z.ZodOptional<z.ZodEnum<{
|
|
439
|
+
"content.read": "content.read";
|
|
440
|
+
"content.update": "content.update";
|
|
441
|
+
"content.publish": "content.publish";
|
|
442
|
+
"media.read": "media.read";
|
|
443
|
+
}>>;
|
|
338
444
|
}, z.core.$strip>>>;
|
|
339
445
|
roleOffers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
340
446
|
id: z.ZodString;
|
|
@@ -394,6 +500,19 @@ export declare const MarketplaceListingDetailSchema: z.ZodObject<{
|
|
|
394
500
|
actions: z.ZodArray<z.ZodString>;
|
|
395
501
|
default: z.ZodLiteral<false>;
|
|
396
502
|
}, z.core.$strip>>;
|
|
503
|
+
offers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
504
|
+
action: z.ZodString;
|
|
505
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
506
|
+
en: z.ZodString;
|
|
507
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
508
|
+
target: z.ZodEnum<{
|
|
509
|
+
"content.read": "content.read";
|
|
510
|
+
"content.update": "content.update";
|
|
511
|
+
"content.publish": "content.publish";
|
|
512
|
+
"media.read": "media.read";
|
|
513
|
+
}>;
|
|
514
|
+
default: z.ZodBoolean;
|
|
515
|
+
}, z.core.$strip>>>;
|
|
397
516
|
steps: z.ZodArray<z.ZodObject<{
|
|
398
517
|
id: z.ZodString;
|
|
399
518
|
label: z.ZodPreprocess<z.ZodObject<{
|
|
@@ -453,6 +572,73 @@ export declare const MarketplaceListingDetailSchema: z.ZodObject<{
|
|
|
453
572
|
}, z.core.$catchall<z.ZodString>>, unknown>>;
|
|
454
573
|
}, z.core.$strict>], "kind">>;
|
|
455
574
|
}, z.core.$strict>>;
|
|
575
|
+
settings: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
576
|
+
type: z.ZodLiteral<"text">;
|
|
577
|
+
default: z.ZodOptional<z.ZodString>;
|
|
578
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
579
|
+
multiline: z.ZodOptional<z.ZodBoolean>;
|
|
580
|
+
id: z.ZodString;
|
|
581
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
582
|
+
en: z.ZodString;
|
|
583
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
584
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
585
|
+
en: z.ZodString;
|
|
586
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>>;
|
|
587
|
+
askAtInstall: z.ZodOptional<z.ZodBoolean>;
|
|
588
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
589
|
+
type: z.ZodLiteral<"number">;
|
|
590
|
+
default: z.ZodOptional<z.ZodNumber>;
|
|
591
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
592
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
593
|
+
integer: z.ZodOptional<z.ZodBoolean>;
|
|
594
|
+
id: z.ZodString;
|
|
595
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
596
|
+
en: z.ZodString;
|
|
597
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
598
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
599
|
+
en: z.ZodString;
|
|
600
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>>;
|
|
601
|
+
askAtInstall: z.ZodOptional<z.ZodBoolean>;
|
|
602
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
603
|
+
type: z.ZodLiteral<"onOff">;
|
|
604
|
+
default: z.ZodOptional<z.ZodBoolean>;
|
|
605
|
+
id: z.ZodString;
|
|
606
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
607
|
+
en: z.ZodString;
|
|
608
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
609
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
610
|
+
en: z.ZodString;
|
|
611
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>>;
|
|
612
|
+
askAtInstall: z.ZodOptional<z.ZodBoolean>;
|
|
613
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
614
|
+
type: z.ZodLiteral<"choice">;
|
|
615
|
+
default: z.ZodOptional<z.ZodString>;
|
|
616
|
+
choices: z.ZodArray<z.ZodObject<{
|
|
617
|
+
value: z.ZodString;
|
|
618
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
619
|
+
en: z.ZodString;
|
|
620
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
621
|
+
}, z.core.$strict>>;
|
|
622
|
+
id: z.ZodString;
|
|
623
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
624
|
+
en: z.ZodString;
|
|
625
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
626
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
627
|
+
en: z.ZodString;
|
|
628
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>>;
|
|
629
|
+
askAtInstall: z.ZodOptional<z.ZodBoolean>;
|
|
630
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
631
|
+
type: z.ZodLiteral<"secret">;
|
|
632
|
+
secret: z.ZodString;
|
|
633
|
+
id: z.ZodString;
|
|
634
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
635
|
+
en: z.ZodString;
|
|
636
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
637
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
638
|
+
en: z.ZodString;
|
|
639
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>>;
|
|
640
|
+
askAtInstall: z.ZodOptional<z.ZodBoolean>;
|
|
641
|
+
}, z.core.$strict>], "type">>>;
|
|
456
642
|
}, z.core.$strip>>>;
|
|
457
643
|
}, z.core.$strip>>;
|
|
458
644
|
versions: z.ZodArray<z.ZodObject<{
|
|
@@ -466,7 +652,7 @@ export declare const MarketplaceListingDetailSchema: z.ZodObject<{
|
|
|
466
652
|
}>;
|
|
467
653
|
payload: z.ZodObject<{
|
|
468
654
|
count: z.ZodNumber;
|
|
469
|
-
details: z.ZodArray<z.
|
|
655
|
+
details: z.ZodArray<z.ZodType<import("./capability-detail.js").CapabilityDetailRead, unknown, z.core.$ZodTypeInternals<import("./capability-detail.js").CapabilityDetailRead, unknown>>>;
|
|
470
656
|
}, z.core.$strip>;
|
|
471
657
|
}, z.core.$strip>>;
|
|
472
658
|
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -474,6 +660,12 @@ export declare const MarketplaceListingDetailSchema: z.ZodObject<{
|
|
|
474
660
|
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
475
661
|
en: z.ZodString;
|
|
476
662
|
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
663
|
+
offerTo: z.ZodOptional<z.ZodEnum<{
|
|
664
|
+
"content.read": "content.read";
|
|
665
|
+
"content.update": "content.update";
|
|
666
|
+
"content.publish": "content.publish";
|
|
667
|
+
"media.read": "media.read";
|
|
668
|
+
}>>;
|
|
477
669
|
}, z.core.$strip>>>;
|
|
478
670
|
roleOffers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
479
671
|
id: z.ZodString;
|
|
@@ -533,6 +725,19 @@ export declare const MarketplaceListingDetailSchema: z.ZodObject<{
|
|
|
533
725
|
actions: z.ZodArray<z.ZodString>;
|
|
534
726
|
default: z.ZodLiteral<false>;
|
|
535
727
|
}, z.core.$strip>>;
|
|
728
|
+
offers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
729
|
+
action: z.ZodString;
|
|
730
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
731
|
+
en: z.ZodString;
|
|
732
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
733
|
+
target: z.ZodEnum<{
|
|
734
|
+
"content.read": "content.read";
|
|
735
|
+
"content.update": "content.update";
|
|
736
|
+
"content.publish": "content.publish";
|
|
737
|
+
"media.read": "media.read";
|
|
738
|
+
}>;
|
|
739
|
+
default: z.ZodBoolean;
|
|
740
|
+
}, z.core.$strip>>>;
|
|
536
741
|
steps: z.ZodArray<z.ZodObject<{
|
|
537
742
|
id: z.ZodString;
|
|
538
743
|
label: z.ZodPreprocess<z.ZodObject<{
|
|
@@ -592,6 +797,73 @@ export declare const MarketplaceListingDetailSchema: z.ZodObject<{
|
|
|
592
797
|
}, z.core.$catchall<z.ZodString>>, unknown>>;
|
|
593
798
|
}, z.core.$strict>], "kind">>;
|
|
594
799
|
}, z.core.$strict>>;
|
|
800
|
+
settings: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
801
|
+
type: z.ZodLiteral<"text">;
|
|
802
|
+
default: z.ZodOptional<z.ZodString>;
|
|
803
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
804
|
+
multiline: z.ZodOptional<z.ZodBoolean>;
|
|
805
|
+
id: z.ZodString;
|
|
806
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
807
|
+
en: z.ZodString;
|
|
808
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
809
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
810
|
+
en: z.ZodString;
|
|
811
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>>;
|
|
812
|
+
askAtInstall: z.ZodOptional<z.ZodBoolean>;
|
|
813
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
814
|
+
type: z.ZodLiteral<"number">;
|
|
815
|
+
default: z.ZodOptional<z.ZodNumber>;
|
|
816
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
817
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
818
|
+
integer: z.ZodOptional<z.ZodBoolean>;
|
|
819
|
+
id: z.ZodString;
|
|
820
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
821
|
+
en: z.ZodString;
|
|
822
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
823
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
824
|
+
en: z.ZodString;
|
|
825
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>>;
|
|
826
|
+
askAtInstall: z.ZodOptional<z.ZodBoolean>;
|
|
827
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
828
|
+
type: z.ZodLiteral<"onOff">;
|
|
829
|
+
default: z.ZodOptional<z.ZodBoolean>;
|
|
830
|
+
id: z.ZodString;
|
|
831
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
832
|
+
en: z.ZodString;
|
|
833
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
834
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
835
|
+
en: z.ZodString;
|
|
836
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>>;
|
|
837
|
+
askAtInstall: z.ZodOptional<z.ZodBoolean>;
|
|
838
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
839
|
+
type: z.ZodLiteral<"choice">;
|
|
840
|
+
default: z.ZodOptional<z.ZodString>;
|
|
841
|
+
choices: z.ZodArray<z.ZodObject<{
|
|
842
|
+
value: z.ZodString;
|
|
843
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
844
|
+
en: z.ZodString;
|
|
845
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
846
|
+
}, z.core.$strict>>;
|
|
847
|
+
id: z.ZodString;
|
|
848
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
849
|
+
en: z.ZodString;
|
|
850
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
851
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
852
|
+
en: z.ZodString;
|
|
853
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>>;
|
|
854
|
+
askAtInstall: z.ZodOptional<z.ZodBoolean>;
|
|
855
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
856
|
+
type: z.ZodLiteral<"secret">;
|
|
857
|
+
secret: z.ZodString;
|
|
858
|
+
id: z.ZodString;
|
|
859
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
860
|
+
en: z.ZodString;
|
|
861
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
862
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
863
|
+
en: z.ZodString;
|
|
864
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>>;
|
|
865
|
+
askAtInstall: z.ZodOptional<z.ZodBoolean>;
|
|
866
|
+
}, z.core.$strict>], "type">>>;
|
|
595
867
|
}, z.core.$strip>>>;
|
|
596
868
|
}, z.core.$strip>>;
|
|
597
869
|
activeDialect: z.ZodString;
|
|
@@ -639,7 +911,7 @@ export declare const MarketplaceListResponseSchema: z.ZodObject<{
|
|
|
639
911
|
}>;
|
|
640
912
|
payload: z.ZodObject<{
|
|
641
913
|
count: z.ZodNumber;
|
|
642
|
-
details: z.ZodArray<z.
|
|
914
|
+
details: z.ZodArray<z.ZodType<import("./capability-detail.js").CapabilityDetailRead, unknown, z.core.$ZodTypeInternals<import("./capability-detail.js").CapabilityDetailRead, unknown>>>;
|
|
643
915
|
}, z.core.$strip>;
|
|
644
916
|
}, z.core.$strip>>;
|
|
645
917
|
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -647,6 +919,12 @@ export declare const MarketplaceListResponseSchema: z.ZodObject<{
|
|
|
647
919
|
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
648
920
|
en: z.ZodString;
|
|
649
921
|
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
922
|
+
offerTo: z.ZodOptional<z.ZodEnum<{
|
|
923
|
+
"content.read": "content.read";
|
|
924
|
+
"content.update": "content.update";
|
|
925
|
+
"content.publish": "content.publish";
|
|
926
|
+
"media.read": "media.read";
|
|
927
|
+
}>>;
|
|
650
928
|
}, z.core.$strip>>>;
|
|
651
929
|
roleOffers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
652
930
|
id: z.ZodString;
|
|
@@ -760,7 +1038,11 @@ export declare const MarketplaceInstallBodySchema: z.ZodObject<{
|
|
|
760
1038
|
answers: z.ZodOptional<z.ZodObject<{
|
|
761
1039
|
sampleContent: z.ZodOptional<z.ZodBoolean>;
|
|
762
1040
|
roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1041
|
+
grants: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
763
1042
|
options: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodArray<z.ZodString>]>>, unknown>>;
|
|
1043
|
+
settings: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodObject<{
|
|
1044
|
+
secret: z.ZodString;
|
|
1045
|
+
}, z.core.$strict>]>>, unknown>>;
|
|
764
1046
|
}, z.core.$strict>>;
|
|
765
1047
|
}, z.core.$strict>;
|
|
766
1048
|
export declare const MarketplaceInstallMemberSchema: z.ZodObject<{
|
|
@@ -826,6 +1108,7 @@ export declare const MarketplaceInstallResponseSchema: z.ZodObject<{
|
|
|
826
1108
|
requestedVersion: z.ZodString;
|
|
827
1109
|
reason: z.ZodLiteral<"term_lapsed">;
|
|
828
1110
|
}, z.core.$strip>>;
|
|
1111
|
+
signInSwitchedOff: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
829
1112
|
}, z.core.$strip>;
|
|
830
1113
|
export type MarketplaceInstallResponse = z.infer<typeof MarketplaceInstallResponseSchema>;
|
|
831
1114
|
/** The 409 a marketplace install or update answers. `reason` is present
|
|
@@ -836,10 +1119,20 @@ export type MarketplaceInstallResponse = z.infer<typeof MarketplaceInstallRespon
|
|
|
836
1119
|
* 201 would have. Every other 409 carries `message` alone. */
|
|
837
1120
|
export declare const MarketplaceInstallConflictSchema: z.ZodObject<{
|
|
838
1121
|
message: z.ZodString;
|
|
839
|
-
reason: z.ZodOptional<z.
|
|
1122
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
1123
|
+
"license-not-recorded": "license-not-recorded";
|
|
1124
|
+
"download-unknown": "download-unknown";
|
|
1125
|
+
}>>;
|
|
840
1126
|
warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1127
|
+
signInSwitchedOff: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
841
1128
|
}, z.core.$strip>;
|
|
842
1129
|
export type MarketplaceInstallConflict = z.infer<typeof MarketplaceInstallConflictSchema>;
|
|
1130
|
+
export declare const MARKETPLACE_UNAVAILABLE_MESSAGE = "The marketplace did not answer; try again in a minute.";
|
|
1131
|
+
export declare const MarketplaceUnavailableSchema: z.ZodObject<{
|
|
1132
|
+
message: z.ZodString;
|
|
1133
|
+
reason: z.ZodLiteral<"upstream-unavailable">;
|
|
1134
|
+
}, z.core.$strict>;
|
|
1135
|
+
export type MarketplaceUnavailable = z.infer<typeof MarketplaceUnavailableSchema>;
|
|
843
1136
|
/** S319 (spec 3c): the 402 a marketplace install answers when the licence's
|
|
844
1137
|
* lapsed term does not cover the version: always for an update, which is
|
|
845
1138
|
* never downgraded, and for a fresh install with no older covered version
|
|
@@ -849,6 +1142,17 @@ export declare const MarketplaceInstallRenewRequiredSchema: z.ZodObject<{
|
|
|
849
1142
|
reason: z.ZodLiteral<"renew-required">;
|
|
850
1143
|
}, z.core.$strip>;
|
|
851
1144
|
export type MarketplaceInstallRenewRequired = z.infer<typeof MarketplaceInstallRenewRequiredSchema>;
|
|
1145
|
+
/** M32 I6d (K2): the install route's 429 when the marketplace refused a
|
|
1146
|
+
* package download because the licence reached its download limit; the
|
|
1147
|
+
* admin says it in its own words, `retryAfterSeconds` is the wait. */
|
|
1148
|
+
export declare const MarketplaceInstallDownloadLimitSchema: z.ZodObject<{
|
|
1149
|
+
message: z.ZodString;
|
|
1150
|
+
code: z.ZodLiteral<"download_limit">;
|
|
1151
|
+
retryAfterSeconds: z.ZodNumber;
|
|
1152
|
+
}, z.core.$strict>;
|
|
1153
|
+
export type MarketplaceInstallDownloadLimit = z.infer<typeof MarketplaceInstallDownloadLimitSchema>;
|
|
1154
|
+
/** The route's sentence, the time rounded up to the minute so it is never early. */
|
|
1155
|
+
export declare function marketplaceDownloadLimitMessage(retryAt: Date): string;
|
|
852
1156
|
/** S322c (D5, plan P14): the most plugins a missing-dependency answer names. */
|
|
853
1157
|
export declare const MARKETPLACE_MISSING_PLUGINS_MAX = 32;
|
|
854
1158
|
/** One plugin a bundle install needs and the site does not have. `author`
|