sandcms 0.5.2
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/LICENSE +57 -0
- package/README.md +84 -0
- package/dist/Image.svelte +53 -0
- package/dist/Image.svelte.d.ts +10 -0
- package/dist/Seo.svelte +29 -0
- package/dist/Seo.svelte.d.ts +10 -0
- package/dist/admin/Access.svelte +129 -0
- package/dist/admin/Access.svelte.d.ts +7 -0
- package/dist/admin/Account.svelte +190 -0
- package/dist/admin/Account.svelte.d.ts +7 -0
- package/dist/admin/Admin.svelte +42 -0
- package/dist/admin/Admin.svelte.d.ts +8 -0
- package/dist/admin/AssetAttachment.svelte +77 -0
- package/dist/admin/AssetAttachment.svelte.d.ts +15 -0
- package/dist/admin/Collection.svelte +52 -0
- package/dist/admin/Collection.svelte.d.ts +7 -0
- package/dist/admin/Dashboard.svelte +105 -0
- package/dist/admin/Dashboard.svelte.d.ts +7 -0
- package/dist/admin/Editor.svelte +192 -0
- package/dist/admin/Editor.svelte.d.ts +7 -0
- package/dist/admin/Fields.svelte +221 -0
- package/dist/admin/Fields.svelte.d.ts +17 -0
- package/dist/admin/Gallery.svelte +130 -0
- package/dist/admin/Gallery.svelte.d.ts +16 -0
- package/dist/admin/Inbox.svelte +154 -0
- package/dist/admin/Inbox.svelte.d.ts +8 -0
- package/dist/admin/Login.svelte +104 -0
- package/dist/admin/Login.svelte.d.ts +7 -0
- package/dist/admin/MediaLibrary.svelte +231 -0
- package/dist/admin/MediaLibrary.svelte.d.ts +7 -0
- package/dist/admin/MediaPicker.svelte +273 -0
- package/dist/admin/MediaPicker.svelte.d.ts +16 -0
- package/dist/admin/Notice.svelte +13 -0
- package/dist/admin/Notice.svelte.d.ts +8 -0
- package/dist/admin/NotificationSettings.svelte +153 -0
- package/dist/admin/NotificationSettings.svelte.d.ts +7 -0
- package/dist/admin/RichText.svelte +103 -0
- package/dist/admin/RichText.svelte.d.ts +9 -0
- package/dist/admin/RichTextLink.svelte +71 -0
- package/dist/admin/RichTextLink.svelte.d.ts +7 -0
- package/dist/admin/SelectField.svelte +39 -0
- package/dist/admin/SelectField.svelte.d.ts +15 -0
- package/dist/admin/Shell.svelte +106 -0
- package/dist/admin/Shell.svelte.d.ts +9 -0
- package/dist/admin/SortableList.svelte +104 -0
- package/dist/admin/SortableList.svelte.d.ts +30 -0
- package/dist/admin/UnsavedChanges.svelte +54 -0
- package/dist/admin/UnsavedChanges.svelte.d.ts +6 -0
- package/dist/admin/UploadButton.svelte +42 -0
- package/dist/admin/UploadButton.svelte.d.ts +10 -0
- package/dist/admin/UploadQueue.svelte +40 -0
- package/dist/admin/UploadQueue.svelte.d.ts +7 -0
- package/dist/admin/Users.svelte +185 -0
- package/dist/admin/Users.svelte.d.ts +7 -0
- package/dist/admin/client.d.ts +720 -0
- package/dist/admin/client.js +29 -0
- package/dist/admin/components/ui/alert/alert-action.svelte +20 -0
- package/dist/admin/components/ui/alert/alert-action.svelte.d.ts +5 -0
- package/dist/admin/components/ui/alert/alert-description.svelte +23 -0
- package/dist/admin/components/ui/alert/alert-description.svelte.d.ts +5 -0
- package/dist/admin/components/ui/alert/alert-title.svelte +23 -0
- package/dist/admin/components/ui/alert/alert-title.svelte.d.ts +5 -0
- package/dist/admin/components/ui/alert/alert.svelte +44 -0
- package/dist/admin/components/ui/alert/alert.svelte.d.ts +26 -0
- package/dist/admin/components/ui/alert/index.d.ts +6 -0
- package/dist/admin/components/ui/alert/index.js +8 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-action.svelte +27 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-action.svelte.d.ts +9 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-cancel.svelte +27 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-cancel.svelte.d.ts +9 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-content.svelte +32 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-content.svelte.d.ts +11 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-description.svelte +20 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-description.svelte.d.ts +4 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-footer.svelte +23 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-footer.svelte.d.ts +5 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-header.svelte +23 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-header.svelte.d.ts +5 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-media.svelte +23 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-media.svelte.d.ts +5 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-overlay.svelte +20 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-overlay.svelte.d.ts +4 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-portal.svelte +7 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-portal.svelte.d.ts +3 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-title.svelte +20 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-title.svelte.d.ts +4 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-trigger.svelte +7 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-trigger.svelte.d.ts +4 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog.svelte +7 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog.svelte.d.ts +3 -0
- package/dist/admin/components/ui/alert-dialog/index.d.ts +13 -0
- package/dist/admin/components/ui/alert-dialog/index.js +15 -0
- package/dist/admin/components/ui/attachment/attachment-action.svelte +21 -0
- package/dist/admin/components/ui/attachment/attachment-action.svelte.d.ts +4 -0
- package/dist/admin/components/ui/attachment/attachment-actions.svelte +23 -0
- package/dist/admin/components/ui/attachment/attachment-actions.svelte.d.ts +5 -0
- package/dist/admin/components/ui/attachment/attachment-content.svelte +23 -0
- package/dist/admin/components/ui/attachment/attachment-content.svelte.d.ts +5 -0
- package/dist/admin/components/ui/attachment/attachment-description.svelte +24 -0
- package/dist/admin/components/ui/attachment/attachment-description.svelte.d.ts +5 -0
- package/dist/admin/components/ui/attachment/attachment-group.svelte +23 -0
- package/dist/admin/components/ui/attachment/attachment-group.svelte.d.ts +5 -0
- package/dist/admin/components/ui/attachment/attachment-media.svelte +44 -0
- package/dist/admin/components/ui/attachment/attachment-media.svelte.d.ts +26 -0
- package/dist/admin/components/ui/attachment/attachment-title.svelte +23 -0
- package/dist/admin/components/ui/attachment/attachment-title.svelte.d.ts +5 -0
- package/dist/admin/components/ui/attachment/attachment-trigger.svelte +29 -0
- package/dist/admin/components/ui/attachment/attachment-trigger.svelte.d.ts +11 -0
- package/dist/admin/components/ui/attachment/attachment.svelte +54 -0
- package/dist/admin/components/ui/attachment/attachment.svelte.d.ts +45 -0
- package/dist/admin/components/ui/attachment/index.d.ts +10 -0
- package/dist/admin/components/ui/attachment/index.js +12 -0
- package/dist/admin/components/ui/avatar/avatar-badge.svelte +26 -0
- package/dist/admin/components/ui/avatar/avatar-badge.svelte.d.ts +5 -0
- package/dist/admin/components/ui/avatar/avatar-fallback.svelte +20 -0
- package/dist/admin/components/ui/avatar/avatar-fallback.svelte.d.ts +4 -0
- package/dist/admin/components/ui/avatar/avatar-group-count.svelte +23 -0
- package/dist/admin/components/ui/avatar/avatar-group-count.svelte.d.ts +5 -0
- package/dist/admin/components/ui/avatar/avatar-group.svelte +23 -0
- package/dist/admin/components/ui/avatar/avatar-group.svelte.d.ts +5 -0
- package/dist/admin/components/ui/avatar/avatar-image.svelte +17 -0
- package/dist/admin/components/ui/avatar/avatar-image.svelte.d.ts +4 -0
- package/dist/admin/components/ui/avatar/avatar.svelte +26 -0
- package/dist/admin/components/ui/avatar/avatar.svelte.d.ts +7 -0
- package/dist/admin/components/ui/avatar/index.d.ts +7 -0
- package/dist/admin/components/ui/avatar/index.js +9 -0
- package/dist/admin/components/ui/badge/badge.svelte +50 -0
- package/dist/admin/components/ui/badge/badge.svelte.d.ts +38 -0
- package/dist/admin/components/ui/badge/index.d.ts +2 -0
- package/dist/admin/components/ui/badge/index.js +2 -0
- package/dist/admin/components/ui/button/button.svelte +87 -0
- package/dist/admin/components/ui/button/button.svelte.d.ts +70 -0
- package/dist/admin/components/ui/button/index.d.ts +2 -0
- package/dist/admin/components/ui/button/index.js +4 -0
- package/dist/admin/components/ui/card/card-action.svelte +20 -0
- package/dist/admin/components/ui/card/card-action.svelte.d.ts +5 -0
- package/dist/admin/components/ui/card/card-content.svelte +20 -0
- package/dist/admin/components/ui/card/card-content.svelte.d.ts +5 -0
- package/dist/admin/components/ui/card/card-description.svelte +20 -0
- package/dist/admin/components/ui/card/card-description.svelte.d.ts +5 -0
- package/dist/admin/components/ui/card/card-footer.svelte +20 -0
- package/dist/admin/components/ui/card/card-footer.svelte.d.ts +5 -0
- package/dist/admin/components/ui/card/card-header.svelte +23 -0
- package/dist/admin/components/ui/card/card-header.svelte.d.ts +5 -0
- package/dist/admin/components/ui/card/card-title.svelte +20 -0
- package/dist/admin/components/ui/card/card-title.svelte.d.ts +5 -0
- package/dist/admin/components/ui/card/card.svelte +25 -0
- package/dist/admin/components/ui/card/card.svelte.d.ts +8 -0
- package/dist/admin/components/ui/card/index.d.ts +8 -0
- package/dist/admin/components/ui/card/index.js +10 -0
- package/dist/admin/components/ui/checkbox/checkbox.svelte +39 -0
- package/dist/admin/components/ui/checkbox/checkbox.svelte.d.ts +4 -0
- package/dist/admin/components/ui/checkbox/index.d.ts +2 -0
- package/dist/admin/components/ui/checkbox/index.js +4 -0
- package/dist/admin/components/ui/dialog/dialog-close.svelte +11 -0
- package/dist/admin/components/ui/dialog/dialog-close.svelte.d.ts +4 -0
- package/dist/admin/components/ui/dialog/dialog-content.svelte +48 -0
- package/dist/admin/components/ui/dialog/dialog-content.svelte.d.ts +13 -0
- package/dist/admin/components/ui/dialog/dialog-description.svelte +20 -0
- package/dist/admin/components/ui/dialog/dialog-description.svelte.d.ts +4 -0
- package/dist/admin/components/ui/dialog/dialog-footer.svelte +32 -0
- package/dist/admin/components/ui/dialog/dialog-footer.svelte.d.ts +8 -0
- package/dist/admin/components/ui/dialog/dialog-header.svelte +20 -0
- package/dist/admin/components/ui/dialog/dialog-header.svelte.d.ts +5 -0
- package/dist/admin/components/ui/dialog/dialog-overlay.svelte +20 -0
- package/dist/admin/components/ui/dialog/dialog-overlay.svelte.d.ts +4 -0
- package/dist/admin/components/ui/dialog/dialog-portal.svelte +7 -0
- package/dist/admin/components/ui/dialog/dialog-portal.svelte.d.ts +3 -0
- package/dist/admin/components/ui/dialog/dialog-title.svelte +17 -0
- package/dist/admin/components/ui/dialog/dialog-title.svelte.d.ts +4 -0
- package/dist/admin/components/ui/dialog/dialog-trigger.svelte +11 -0
- package/dist/admin/components/ui/dialog/dialog-trigger.svelte.d.ts +4 -0
- package/dist/admin/components/ui/dialog/dialog.svelte +7 -0
- package/dist/admin/components/ui/dialog/dialog.svelte.d.ts +3 -0
- package/dist/admin/components/ui/dialog/index.d.ts +11 -0
- package/dist/admin/components/ui/dialog/index.js +13 -0
- package/dist/admin/components/ui/input/index.d.ts +2 -0
- package/dist/admin/components/ui/input/index.js +4 -0
- package/dist/admin/components/ui/input/input.svelte +48 -0
- package/dist/admin/components/ui/input/input.svelte.d.ts +13 -0
- package/dist/admin/components/ui/label/index.d.ts +2 -0
- package/dist/admin/components/ui/label/index.js +4 -0
- package/dist/admin/components/ui/label/label.svelte +20 -0
- package/dist/admin/components/ui/label/label.svelte.d.ts +4 -0
- package/dist/admin/components/ui/select/index.d.ts +13 -0
- package/dist/admin/components/ui/select/index.js +15 -0
- package/dist/admin/components/ui/select/select-content.svelte +45 -0
- package/dist/admin/components/ui/select/select-content.svelte.d.ts +11 -0
- package/dist/admin/components/ui/select/select-group-heading.svelte +21 -0
- package/dist/admin/components/ui/select/select-group-heading.svelte.d.ts +10 -0
- package/dist/admin/components/ui/select/select-group.svelte +17 -0
- package/dist/admin/components/ui/select/select-group.svelte.d.ts +4 -0
- package/dist/admin/components/ui/select/select-item.svelte +42 -0
- package/dist/admin/components/ui/select/select-item.svelte.d.ts +4 -0
- package/dist/admin/components/ui/select/select-label.svelte +20 -0
- package/dist/admin/components/ui/select/select-label.svelte.d.ts +6 -0
- package/dist/admin/components/ui/select/select-portal.svelte +7 -0
- package/dist/admin/components/ui/select/select-portal.svelte.d.ts +3 -0
- package/dist/admin/components/ui/select/select-scroll-down-button.svelte +23 -0
- package/dist/admin/components/ui/select/select-scroll-down-button.svelte.d.ts +4 -0
- package/dist/admin/components/ui/select/select-scroll-up-button.svelte +23 -0
- package/dist/admin/components/ui/select/select-scroll-up-button.svelte.d.ts +4 -0
- package/dist/admin/components/ui/select/select-separator.svelte +18 -0
- package/dist/admin/components/ui/select/select-separator.svelte.d.ts +4 -0
- package/dist/admin/components/ui/select/select-trigger.svelte +29 -0
- package/dist/admin/components/ui/select/select-trigger.svelte.d.ts +8 -0
- package/dist/admin/components/ui/select/select-value.svelte +7 -0
- package/dist/admin/components/ui/select/select-value.svelte.d.ts +4 -0
- package/dist/admin/components/ui/select/select.svelte +11 -0
- package/dist/admin/components/ui/select/select.svelte.d.ts +3 -0
- package/dist/admin/components/ui/separator/index.d.ts +2 -0
- package/dist/admin/components/ui/separator/index.js +4 -0
- package/dist/admin/components/ui/separator/separator.svelte +21 -0
- package/dist/admin/components/ui/separator/separator.svelte.d.ts +4 -0
- package/dist/admin/components/ui/switch/index.d.ts +2 -0
- package/dist/admin/components/ui/switch/index.js +4 -0
- package/dist/admin/components/ui/switch/switch.svelte +34 -0
- package/dist/admin/components/ui/switch/switch.svelte.d.ts +8 -0
- package/dist/admin/components/ui/table/index.d.ts +9 -0
- package/dist/admin/components/ui/table/index.js +11 -0
- package/dist/admin/components/ui/table/table-body.svelte +20 -0
- package/dist/admin/components/ui/table/table-body.svelte.d.ts +5 -0
- package/dist/admin/components/ui/table/table-caption.svelte +20 -0
- package/dist/admin/components/ui/table/table-caption.svelte.d.ts +5 -0
- package/dist/admin/components/ui/table/table-cell.svelte +20 -0
- package/dist/admin/components/ui/table/table-cell.svelte.d.ts +5 -0
- package/dist/admin/components/ui/table/table-footer.svelte +20 -0
- package/dist/admin/components/ui/table/table-footer.svelte.d.ts +5 -0
- package/dist/admin/components/ui/table/table-head.svelte +23 -0
- package/dist/admin/components/ui/table/table-head.svelte.d.ts +5 -0
- package/dist/admin/components/ui/table/table-header.svelte +20 -0
- package/dist/admin/components/ui/table/table-header.svelte.d.ts +5 -0
- package/dist/admin/components/ui/table/table-row.svelte +23 -0
- package/dist/admin/components/ui/table/table-row.svelte.d.ts +5 -0
- package/dist/admin/components/ui/table/table.svelte +22 -0
- package/dist/admin/components/ui/table/table.svelte.d.ts +5 -0
- package/dist/admin/components/ui/textarea/index.d.ts +2 -0
- package/dist/admin/components/ui/textarea/index.js +4 -0
- package/dist/admin/components/ui/textarea/textarea.svelte +22 -0
- package/dist/admin/components/ui/textarea/textarea.svelte.d.ts +5 -0
- package/dist/admin/components/ui/toggle/index.d.ts +3 -0
- package/dist/admin/components/ui/toggle/index.js +5 -0
- package/dist/admin/components/ui/toggle/toggle.svelte +52 -0
- package/dist/admin/components/ui/toggle/toggle.svelte.d.ts +43 -0
- package/dist/admin/generated/FONT-LICENSE +93 -0
- package/dist/admin/generated/Geist-LICENSE.txt +93 -0
- package/dist/admin/generated/admin.css +3276 -0
- package/dist/admin/generated/fonts/geist-cyrillic-ext-wght-italic.woff2 +0 -0
- package/dist/admin/generated/fonts/geist-cyrillic-ext-wght-normal.woff2 +0 -0
- package/dist/admin/generated/fonts/geist-cyrillic-wght-italic.woff2 +0 -0
- package/dist/admin/generated/fonts/geist-cyrillic-wght-normal.woff2 +0 -0
- package/dist/admin/generated/fonts/geist-latin-ext-wght-italic.woff2 +0 -0
- package/dist/admin/generated/fonts/geist-latin-ext-wght-normal.woff2 +0 -0
- package/dist/admin/generated/fonts/geist-latin-wght-italic.woff2 +0 -0
- package/dist/admin/generated/fonts/geist-latin-wght-normal.woff2 +0 -0
- package/dist/admin/generated/fonts/geist-vietnamese-wght-italic.woff2 +0 -0
- package/dist/admin/generated/fonts/geist-vietnamese-wght-normal.woff2 +0 -0
- package/dist/admin/generated/geist-cyrillic-ext-wght-normal.woff2 +0 -0
- package/dist/admin/generated/geist-cyrillic-wght-normal.woff2 +0 -0
- package/dist/admin/generated/geist-latin-ext-wght-normal.woff2 +0 -0
- package/dist/admin/generated/geist-latin-wght-normal.woff2 +0 -0
- package/dist/admin/generated/geist-vietnamese-wght-normal.woff2 +0 -0
- package/dist/admin/generated/styles.css +2772 -0
- package/dist/admin/index.d.ts +2 -0
- package/dist/admin/index.js +1 -0
- package/dist/admin/types.d.ts +63 -0
- package/dist/admin/types.js +1 -0
- package/dist/admin/uploads.d.ts +12 -0
- package/dist/admin/uploads.js +23 -0
- package/dist/admin/utils.d.ts +11 -0
- package/dist/admin/utils.js +1 -0
- package/dist/blueprints/files.d.ts +7 -0
- package/dist/blueprints/files.js +112 -0
- package/dist/blueprints/gallery.d.ts +3 -0
- package/dist/blueprints/gallery.js +14 -0
- package/dist/blueprints/load.d.ts +6 -0
- package/dist/blueprints/load.js +186 -0
- package/dist/blueprints/merge.d.ts +2 -0
- package/dist/blueprints/merge.js +18 -0
- package/dist/blueprints/types.d.ts +58 -0
- package/dist/blueprints/types.js +1 -0
- package/dist/blueprints/validate.d.ts +8 -0
- package/dist/blueprints/validate.js +133 -0
- package/dist/cli/backup.d.ts +6 -0
- package/dist/cli/backup.js +85 -0
- package/dist/cli/cloudflare.d.ts +8 -0
- package/dist/cli/cloudflare.js +123 -0
- package/dist/cli/doctor.d.ts +1 -0
- package/dist/cli/doctor.js +56 -0
- package/dist/cli/files.d.ts +30 -0
- package/dist/cli/files.js +114 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +182 -0
- package/dist/cli/prompts.d.ts +5 -0
- package/dist/cli/prompts.js +41 -0
- package/dist/cli/scaffold.d.ts +2 -0
- package/dist/cli/scaffold.js +58 -0
- package/dist/cli/setup.d.ts +11 -0
- package/dist/cli/setup.js +116 -0
- package/dist/cli/upgrade.d.ts +1 -0
- package/dist/cli/upgrade.js +47 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +4 -0
- package/dist/media.d.ts +26 -0
- package/dist/media.js +27 -0
- package/dist/notification-fields.d.ts +8 -0
- package/dist/notification-fields.js +26 -0
- package/dist/richtext.d.ts +14 -0
- package/dist/richtext.js +73 -0
- package/dist/server/access.d.ts +16 -0
- package/dist/server/access.js +216 -0
- package/dist/server/admin-load.d.ts +342 -0
- package/dist/server/admin-load.js +135 -0
- package/dist/server/api.d.ts +3 -0
- package/dist/server/api.js +144 -0
- package/dist/server/auth.d.ts +744 -0
- package/dist/server/auth.js +142 -0
- package/dist/server/blueprint-icons.d.ts +4 -0
- package/dist/server/blueprint-icons.js +14 -0
- package/dist/server/cms.d.ts +1054 -0
- package/dist/server/cms.js +58 -0
- package/dist/server/content.d.ts +101 -0
- package/dist/server/content.js +285 -0
- package/dist/server/db/migration-data.d.ts +4 -0
- package/dist/server/db/migration-data.js +7 -0
- package/dist/server/db/migrations/0000_foundation.sql +180 -0
- package/dist/server/db/migrations/meta/0000_snapshot.json +1188 -0
- package/dist/server/db/migrations/meta/_journal.json +13 -0
- package/dist/server/db/schema.d.ts +2212 -0
- package/dist/server/db/schema.js +171 -0
- package/dist/server/db/store.d.ts +33 -0
- package/dist/server/db/store.js +131 -0
- package/dist/server/email/index.d.ts +50 -0
- package/dist/server/email/index.js +175 -0
- package/dist/server/email/template.d.ts +8 -0
- package/dist/server/email/template.js +53 -0
- package/dist/server/forms.d.ts +40 -0
- package/dist/server/forms.js +84 -0
- package/dist/server/hooks.d.ts +3 -0
- package/dist/server/hooks.js +85 -0
- package/dist/server/http.d.ts +3 -0
- package/dist/server/http.js +3 -0
- package/dist/server/index.d.ts +8 -0
- package/dist/server/index.js +7 -0
- package/dist/server/media/delivery.d.ts +3 -0
- package/dist/server/media/delivery.js +42 -0
- package/dist/server/media/presets.d.ts +2 -0
- package/dist/server/media/presets.js +8 -0
- package/dist/server/media/runner.d.ts +2 -0
- package/dist/server/media/runner.js +128 -0
- package/dist/server/media/service.d.ts +144 -0
- package/dist/server/media/service.js +280 -0
- package/dist/server/notifications.d.ts +9 -0
- package/dist/server/notifications.js +161 -0
- package/dist/server/request.d.ts +2 -0
- package/dist/server/request.js +39 -0
- package/dist/server/seo.d.ts +12 -0
- package/dist/server/seo.js +62 -0
- package/dist/worker/index.d.ts +10 -0
- package/dist/worker/index.js +266 -0
- package/dist/worker/source.d.ts +2 -0
- package/dist/worker/source.js +31 -0
- package/dist/worker/svg.d.ts +5 -0
- package/dist/worker/svg.js +142 -0
- package/docs/acceptance.md +58 -0
- package/docs/cloudflare.md +146 -0
- package/docs/content.md +188 -0
- package/docs/deployment.md +89 -0
- package/docs/email.md +124 -0
- package/docs/forms.md +18 -0
- package/docs/media.md +105 -0
- package/docs/package.md +84 -0
- package/docs/releases.md +29 -0
- package/docs/upgrades.md +62 -0
- package/package.json +124 -0
- package/templates/dockerignore +15 -0
- package/templates/hooks.server.ts +4 -0
- package/templates/integration.ts +20 -0
- package/templates/railpack.json +7 -0
- package/templates/routes/admin/+page.server.ts +3 -0
- package/templates/routes/admin/+page.svelte +6 -0
- package/templates/routes/api/+server.ts +4 -0
- package/templates/sandcms/blueprints/collections/photographers.yaml +6 -0
- package/templates/sandcms/blueprints/collections/projects.yaml +26 -0
- package/templates/sandcms/blueprints/files/image.yaml +6 -0
- package/templates/sandcms/blueprints/forms/registration.yaml +15 -0
- package/templates/sandcms/blueprints/pages/home.yaml +9 -0
- package/templates/sandcms/blueprints/site.yaml +13 -0
- package/templates/sandcms/config.yaml +12 -0
- package/templates/sandcms/worker/index.ts +1 -0
- package/templates/sandcms/worker/wrangler.jsonc +7 -0
|
@@ -0,0 +1,720 @@
|
|
|
1
|
+
export declare const authClient: import("better-auth/svelte").SvelteAuthClient<{
|
|
2
|
+
basePath: string;
|
|
3
|
+
plugins: {
|
|
4
|
+
id: "two-factor";
|
|
5
|
+
version: string;
|
|
6
|
+
$InferServerPlugin: ReturnType<(<O extends import("better-auth/client/plugins").TwoFactorOptions>(options?: O) => {
|
|
7
|
+
id: "two-factor";
|
|
8
|
+
version: string;
|
|
9
|
+
endpoints: {
|
|
10
|
+
enableTwoFactor: import("better-auth").StrictEndpoint<"/two-factor/enable", {
|
|
11
|
+
method: "POST";
|
|
12
|
+
body: import("zod").ZodObject<{
|
|
13
|
+
password: import("zod").ZodOptional<import("zod").ZodString>;
|
|
14
|
+
method: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
15
|
+
otp: "otp";
|
|
16
|
+
totp: "totp";
|
|
17
|
+
}>>;
|
|
18
|
+
issuer: import("zod").ZodOptional<import("zod").ZodString>;
|
|
19
|
+
}, import("zod/v4/core").$strip> | import("zod").ZodObject<{
|
|
20
|
+
password: import("zod").ZodString;
|
|
21
|
+
method: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
22
|
+
otp: "otp";
|
|
23
|
+
totp: "totp";
|
|
24
|
+
}>>;
|
|
25
|
+
issuer: import("zod").ZodOptional<import("zod").ZodString>;
|
|
26
|
+
}, import("zod/v4/core").$strip>;
|
|
27
|
+
use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
28
|
+
session: {
|
|
29
|
+
session: Record<string, any> & {
|
|
30
|
+
id: string;
|
|
31
|
+
createdAt: Date;
|
|
32
|
+
updatedAt: Date;
|
|
33
|
+
userId: string;
|
|
34
|
+
expiresAt: Date;
|
|
35
|
+
token: string;
|
|
36
|
+
ipAddress?: string | null | undefined;
|
|
37
|
+
userAgent?: string | null | undefined;
|
|
38
|
+
};
|
|
39
|
+
user: Record<string, any> & {
|
|
40
|
+
id: string;
|
|
41
|
+
createdAt: Date;
|
|
42
|
+
updatedAt: Date;
|
|
43
|
+
email: string;
|
|
44
|
+
emailVerified: boolean;
|
|
45
|
+
name: string;
|
|
46
|
+
image?: string | null | undefined;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
}>>[];
|
|
50
|
+
metadata: {
|
|
51
|
+
openapi: {
|
|
52
|
+
summary: string;
|
|
53
|
+
description: string;
|
|
54
|
+
responses: {
|
|
55
|
+
200: {
|
|
56
|
+
description: string;
|
|
57
|
+
content: {
|
|
58
|
+
"application/json": {
|
|
59
|
+
schema: {
|
|
60
|
+
type: "object";
|
|
61
|
+
properties: {
|
|
62
|
+
method: {
|
|
63
|
+
type: string;
|
|
64
|
+
enum: string[];
|
|
65
|
+
description: string;
|
|
66
|
+
};
|
|
67
|
+
totpURI: {
|
|
68
|
+
type: string;
|
|
69
|
+
description: string;
|
|
70
|
+
};
|
|
71
|
+
backupCodes: {
|
|
72
|
+
type: string;
|
|
73
|
+
items: {
|
|
74
|
+
type: string;
|
|
75
|
+
};
|
|
76
|
+
description: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
required: string[];
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
}, {
|
|
88
|
+
method: "otp";
|
|
89
|
+
} | {
|
|
90
|
+
method: "totp";
|
|
91
|
+
totpURI: string;
|
|
92
|
+
backupCodes: string[];
|
|
93
|
+
}>;
|
|
94
|
+
disableTwoFactor: import("better-auth").StrictEndpoint<"/two-factor/disable", {
|
|
95
|
+
method: "POST";
|
|
96
|
+
body: import("zod").ZodObject<{
|
|
97
|
+
password: import("zod").ZodOptional<import("zod").ZodString>;
|
|
98
|
+
}, import("zod/v4/core").$strip> | import("zod").ZodObject<{
|
|
99
|
+
password: import("zod").ZodString;
|
|
100
|
+
}, import("zod/v4/core").$strip>;
|
|
101
|
+
use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
102
|
+
session: {
|
|
103
|
+
session: Record<string, any> & {
|
|
104
|
+
id: string;
|
|
105
|
+
createdAt: Date;
|
|
106
|
+
updatedAt: Date;
|
|
107
|
+
userId: string;
|
|
108
|
+
expiresAt: Date;
|
|
109
|
+
token: string;
|
|
110
|
+
ipAddress?: string | null | undefined;
|
|
111
|
+
userAgent?: string | null | undefined;
|
|
112
|
+
};
|
|
113
|
+
user: Record<string, any> & {
|
|
114
|
+
id: string;
|
|
115
|
+
createdAt: Date;
|
|
116
|
+
updatedAt: Date;
|
|
117
|
+
email: string;
|
|
118
|
+
emailVerified: boolean;
|
|
119
|
+
name: string;
|
|
120
|
+
image?: string | null | undefined;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
}>>[];
|
|
124
|
+
metadata: {
|
|
125
|
+
openapi: {
|
|
126
|
+
summary: string;
|
|
127
|
+
description: string;
|
|
128
|
+
responses: {
|
|
129
|
+
200: {
|
|
130
|
+
description: string;
|
|
131
|
+
content: {
|
|
132
|
+
"application/json": {
|
|
133
|
+
schema: {
|
|
134
|
+
type: "object";
|
|
135
|
+
properties: {
|
|
136
|
+
status: {
|
|
137
|
+
type: string;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
}, {
|
|
148
|
+
status: boolean;
|
|
149
|
+
}>;
|
|
150
|
+
verifyBackupCode: import("better-auth").StrictEndpoint<"/two-factor/verify-backup-code", {
|
|
151
|
+
method: "POST";
|
|
152
|
+
body: import("zod").ZodObject<{
|
|
153
|
+
code: import("zod").ZodString;
|
|
154
|
+
disableSession: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
155
|
+
trustDevice: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
156
|
+
}, import("zod/v4/core").$strip>;
|
|
157
|
+
metadata: {
|
|
158
|
+
openapi: {
|
|
159
|
+
description: string;
|
|
160
|
+
responses: {
|
|
161
|
+
"200": {
|
|
162
|
+
description: string;
|
|
163
|
+
content: {
|
|
164
|
+
"application/json": {
|
|
165
|
+
schema: {
|
|
166
|
+
type: "object";
|
|
167
|
+
properties: {
|
|
168
|
+
user: {
|
|
169
|
+
type: string;
|
|
170
|
+
properties: {
|
|
171
|
+
id: {
|
|
172
|
+
type: string;
|
|
173
|
+
description: string;
|
|
174
|
+
};
|
|
175
|
+
email: {
|
|
176
|
+
type: string;
|
|
177
|
+
format: string;
|
|
178
|
+
nullable: boolean;
|
|
179
|
+
description: string;
|
|
180
|
+
};
|
|
181
|
+
emailVerified: {
|
|
182
|
+
type: string;
|
|
183
|
+
nullable: boolean;
|
|
184
|
+
description: string;
|
|
185
|
+
};
|
|
186
|
+
name: {
|
|
187
|
+
type: string;
|
|
188
|
+
nullable: boolean;
|
|
189
|
+
description: string;
|
|
190
|
+
};
|
|
191
|
+
image: {
|
|
192
|
+
type: string;
|
|
193
|
+
format: string;
|
|
194
|
+
nullable: boolean;
|
|
195
|
+
description: string;
|
|
196
|
+
};
|
|
197
|
+
twoFactorEnabled: {
|
|
198
|
+
type: string;
|
|
199
|
+
description: string;
|
|
200
|
+
};
|
|
201
|
+
createdAt: {
|
|
202
|
+
type: string;
|
|
203
|
+
format: string;
|
|
204
|
+
description: string;
|
|
205
|
+
};
|
|
206
|
+
updatedAt: {
|
|
207
|
+
type: string;
|
|
208
|
+
format: string;
|
|
209
|
+
description: string;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
required: string[];
|
|
213
|
+
description: string;
|
|
214
|
+
};
|
|
215
|
+
session: {
|
|
216
|
+
type: string;
|
|
217
|
+
properties: {
|
|
218
|
+
token: {
|
|
219
|
+
type: string;
|
|
220
|
+
description: string;
|
|
221
|
+
};
|
|
222
|
+
userId: {
|
|
223
|
+
type: string;
|
|
224
|
+
description: string;
|
|
225
|
+
};
|
|
226
|
+
createdAt: {
|
|
227
|
+
type: string;
|
|
228
|
+
format: string;
|
|
229
|
+
description: string;
|
|
230
|
+
};
|
|
231
|
+
expiresAt: {
|
|
232
|
+
type: string;
|
|
233
|
+
format: string;
|
|
234
|
+
description: string;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
required: string[];
|
|
238
|
+
description: string;
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
required: string[];
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
}, {
|
|
250
|
+
token: string | undefined;
|
|
251
|
+
user: (Record<string, any> & {
|
|
252
|
+
id: string;
|
|
253
|
+
createdAt: Date;
|
|
254
|
+
updatedAt: Date;
|
|
255
|
+
email: string;
|
|
256
|
+
emailVerified: boolean;
|
|
257
|
+
name: string;
|
|
258
|
+
image?: string | null | undefined;
|
|
259
|
+
}) | import("better-auth/client/plugins").UserWithTwoFactor;
|
|
260
|
+
}>;
|
|
261
|
+
generateBackupCodes: import("better-auth").StrictEndpoint<"/two-factor/generate-backup-codes", {
|
|
262
|
+
method: "POST";
|
|
263
|
+
body: import("zod").ZodObject<{
|
|
264
|
+
password: import("zod").ZodOptional<import("zod").ZodString>;
|
|
265
|
+
}, import("zod/v4/core").$strip> | import("zod").ZodObject<{
|
|
266
|
+
password: import("zod").ZodString;
|
|
267
|
+
}, import("zod/v4/core").$strip>;
|
|
268
|
+
use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
269
|
+
session: {
|
|
270
|
+
session: Record<string, any> & {
|
|
271
|
+
id: string;
|
|
272
|
+
createdAt: Date;
|
|
273
|
+
updatedAt: Date;
|
|
274
|
+
userId: string;
|
|
275
|
+
expiresAt: Date;
|
|
276
|
+
token: string;
|
|
277
|
+
ipAddress?: string | null | undefined;
|
|
278
|
+
userAgent?: string | null | undefined;
|
|
279
|
+
};
|
|
280
|
+
user: Record<string, any> & {
|
|
281
|
+
id: string;
|
|
282
|
+
createdAt: Date;
|
|
283
|
+
updatedAt: Date;
|
|
284
|
+
email: string;
|
|
285
|
+
emailVerified: boolean;
|
|
286
|
+
name: string;
|
|
287
|
+
image?: string | null | undefined;
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
}>>[];
|
|
291
|
+
metadata: {
|
|
292
|
+
openapi: {
|
|
293
|
+
description: string;
|
|
294
|
+
responses: {
|
|
295
|
+
"200": {
|
|
296
|
+
description: string;
|
|
297
|
+
content: {
|
|
298
|
+
"application/json": {
|
|
299
|
+
schema: {
|
|
300
|
+
type: "object";
|
|
301
|
+
properties: {
|
|
302
|
+
status: {
|
|
303
|
+
type: string;
|
|
304
|
+
description: string;
|
|
305
|
+
enum: boolean[];
|
|
306
|
+
};
|
|
307
|
+
backupCodes: {
|
|
308
|
+
type: string;
|
|
309
|
+
items: {
|
|
310
|
+
type: string;
|
|
311
|
+
};
|
|
312
|
+
description: string;
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
required: string[];
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
};
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
}, {
|
|
324
|
+
status: boolean;
|
|
325
|
+
backupCodes: string[];
|
|
326
|
+
}>;
|
|
327
|
+
viewBackupCodes: import("better-auth").StrictEndpoint<string, {
|
|
328
|
+
method: "POST";
|
|
329
|
+
body: import("zod").ZodObject<{
|
|
330
|
+
userId: import("zod").ZodCoercedString<unknown>;
|
|
331
|
+
}, import("zod/v4/core").$strip>;
|
|
332
|
+
}, {
|
|
333
|
+
status: boolean;
|
|
334
|
+
backupCodes: string[];
|
|
335
|
+
}>;
|
|
336
|
+
sendTwoFactorOTP: import("better-auth").StrictEndpoint<"/two-factor/send-otp", {
|
|
337
|
+
method: "POST";
|
|
338
|
+
body: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
339
|
+
trustDevice: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
340
|
+
}, import("zod/v4/core").$strip>>;
|
|
341
|
+
metadata: {
|
|
342
|
+
openapi: {
|
|
343
|
+
summary: string;
|
|
344
|
+
description: string;
|
|
345
|
+
responses: {
|
|
346
|
+
200: {
|
|
347
|
+
description: string;
|
|
348
|
+
content: {
|
|
349
|
+
"application/json": {
|
|
350
|
+
schema: {
|
|
351
|
+
type: "object";
|
|
352
|
+
properties: {
|
|
353
|
+
status: {
|
|
354
|
+
type: string;
|
|
355
|
+
};
|
|
356
|
+
};
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
};
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
};
|
|
364
|
+
}, {
|
|
365
|
+
status: boolean;
|
|
366
|
+
}>;
|
|
367
|
+
verifyTwoFactorOTP: import("better-auth").StrictEndpoint<"/two-factor/verify-otp", {
|
|
368
|
+
method: "POST";
|
|
369
|
+
body: import("zod").ZodObject<{
|
|
370
|
+
code: import("zod").ZodString;
|
|
371
|
+
trustDevice: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
372
|
+
}, import("zod/v4/core").$strip>;
|
|
373
|
+
metadata: {
|
|
374
|
+
openapi: {
|
|
375
|
+
summary: string;
|
|
376
|
+
description: string;
|
|
377
|
+
responses: {
|
|
378
|
+
"200": {
|
|
379
|
+
description: string;
|
|
380
|
+
content: {
|
|
381
|
+
"application/json": {
|
|
382
|
+
schema: {
|
|
383
|
+
type: "object";
|
|
384
|
+
properties: {
|
|
385
|
+
token: {
|
|
386
|
+
type: string;
|
|
387
|
+
description: string;
|
|
388
|
+
};
|
|
389
|
+
user: {
|
|
390
|
+
type: string;
|
|
391
|
+
properties: {
|
|
392
|
+
id: {
|
|
393
|
+
type: string;
|
|
394
|
+
description: string;
|
|
395
|
+
};
|
|
396
|
+
email: {
|
|
397
|
+
type: string;
|
|
398
|
+
format: string;
|
|
399
|
+
nullable: boolean;
|
|
400
|
+
description: string;
|
|
401
|
+
};
|
|
402
|
+
emailVerified: {
|
|
403
|
+
type: string;
|
|
404
|
+
nullable: boolean;
|
|
405
|
+
description: string;
|
|
406
|
+
};
|
|
407
|
+
name: {
|
|
408
|
+
type: string;
|
|
409
|
+
nullable: boolean;
|
|
410
|
+
description: string;
|
|
411
|
+
};
|
|
412
|
+
image: {
|
|
413
|
+
type: string;
|
|
414
|
+
format: string;
|
|
415
|
+
nullable: boolean;
|
|
416
|
+
description: string;
|
|
417
|
+
};
|
|
418
|
+
createdAt: {
|
|
419
|
+
type: string;
|
|
420
|
+
format: string;
|
|
421
|
+
description: string;
|
|
422
|
+
};
|
|
423
|
+
updatedAt: {
|
|
424
|
+
type: string;
|
|
425
|
+
format: string;
|
|
426
|
+
description: string;
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
required: string[];
|
|
430
|
+
description: string;
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
required: string[];
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
};
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
};
|
|
441
|
+
}, {
|
|
442
|
+
token: string;
|
|
443
|
+
user: import("better-auth/client/plugins").UserWithTwoFactor;
|
|
444
|
+
} | {
|
|
445
|
+
token: string;
|
|
446
|
+
user: Record<string, any> & {
|
|
447
|
+
id: string;
|
|
448
|
+
createdAt: Date;
|
|
449
|
+
updatedAt: Date;
|
|
450
|
+
email: string;
|
|
451
|
+
emailVerified: boolean;
|
|
452
|
+
name: string;
|
|
453
|
+
image?: string | null | undefined;
|
|
454
|
+
};
|
|
455
|
+
}>;
|
|
456
|
+
generateTOTP: import("better-auth").StrictEndpoint<string, {
|
|
457
|
+
method: "POST";
|
|
458
|
+
body: import("zod").ZodObject<{
|
|
459
|
+
secret: import("zod").ZodString;
|
|
460
|
+
}, import("zod/v4/core").$strip>;
|
|
461
|
+
metadata: {
|
|
462
|
+
openapi: {
|
|
463
|
+
summary: string;
|
|
464
|
+
description: string;
|
|
465
|
+
responses: {
|
|
466
|
+
200: {
|
|
467
|
+
description: string;
|
|
468
|
+
content: {
|
|
469
|
+
"application/json": {
|
|
470
|
+
schema: {
|
|
471
|
+
type: "object";
|
|
472
|
+
properties: {
|
|
473
|
+
code: {
|
|
474
|
+
type: string;
|
|
475
|
+
};
|
|
476
|
+
};
|
|
477
|
+
};
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
};
|
|
481
|
+
};
|
|
482
|
+
};
|
|
483
|
+
};
|
|
484
|
+
}, {
|
|
485
|
+
code: string;
|
|
486
|
+
}>;
|
|
487
|
+
getTOTPURI: import("better-auth").StrictEndpoint<"/two-factor/get-totp-uri", {
|
|
488
|
+
method: "POST";
|
|
489
|
+
use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
490
|
+
session: {
|
|
491
|
+
session: Record<string, any> & {
|
|
492
|
+
id: string;
|
|
493
|
+
createdAt: Date;
|
|
494
|
+
updatedAt: Date;
|
|
495
|
+
userId: string;
|
|
496
|
+
expiresAt: Date;
|
|
497
|
+
token: string;
|
|
498
|
+
ipAddress?: string | null | undefined;
|
|
499
|
+
userAgent?: string | null | undefined;
|
|
500
|
+
};
|
|
501
|
+
user: Record<string, any> & {
|
|
502
|
+
id: string;
|
|
503
|
+
createdAt: Date;
|
|
504
|
+
updatedAt: Date;
|
|
505
|
+
email: string;
|
|
506
|
+
emailVerified: boolean;
|
|
507
|
+
name: string;
|
|
508
|
+
image?: string | null | undefined;
|
|
509
|
+
};
|
|
510
|
+
};
|
|
511
|
+
}>>[];
|
|
512
|
+
body: import("zod").ZodObject<{
|
|
513
|
+
password: import("zod").ZodOptional<import("zod").ZodString>;
|
|
514
|
+
}, import("zod/v4/core").$strip> | import("zod").ZodObject<{
|
|
515
|
+
password: import("zod").ZodString;
|
|
516
|
+
}, import("zod/v4/core").$strip>;
|
|
517
|
+
metadata: {
|
|
518
|
+
openapi: {
|
|
519
|
+
summary: string;
|
|
520
|
+
description: string;
|
|
521
|
+
responses: {
|
|
522
|
+
200: {
|
|
523
|
+
description: string;
|
|
524
|
+
content: {
|
|
525
|
+
"application/json": {
|
|
526
|
+
schema: {
|
|
527
|
+
type: "object";
|
|
528
|
+
properties: {
|
|
529
|
+
totpURI: {
|
|
530
|
+
type: string;
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
};
|
|
534
|
+
};
|
|
535
|
+
};
|
|
536
|
+
};
|
|
537
|
+
};
|
|
538
|
+
};
|
|
539
|
+
};
|
|
540
|
+
}, {
|
|
541
|
+
totpURI: string;
|
|
542
|
+
}>;
|
|
543
|
+
verifyTOTP: import("better-auth").StrictEndpoint<"/two-factor/verify-totp", {
|
|
544
|
+
method: "POST";
|
|
545
|
+
body: import("zod").ZodObject<{
|
|
546
|
+
code: import("zod").ZodString;
|
|
547
|
+
trustDevice: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
548
|
+
}, import("zod/v4/core").$strip>;
|
|
549
|
+
metadata: {
|
|
550
|
+
openapi: {
|
|
551
|
+
summary: string;
|
|
552
|
+
description: string;
|
|
553
|
+
responses: {
|
|
554
|
+
200: {
|
|
555
|
+
description: string;
|
|
556
|
+
content: {
|
|
557
|
+
"application/json": {
|
|
558
|
+
schema: {
|
|
559
|
+
type: "object";
|
|
560
|
+
properties: {
|
|
561
|
+
status: {
|
|
562
|
+
type: string;
|
|
563
|
+
};
|
|
564
|
+
};
|
|
565
|
+
};
|
|
566
|
+
};
|
|
567
|
+
};
|
|
568
|
+
};
|
|
569
|
+
};
|
|
570
|
+
};
|
|
571
|
+
};
|
|
572
|
+
}, {
|
|
573
|
+
token: string;
|
|
574
|
+
user: import("better-auth/client/plugins").UserWithTwoFactor;
|
|
575
|
+
} | {
|
|
576
|
+
token: string;
|
|
577
|
+
user: Record<string, any> & {
|
|
578
|
+
id: string;
|
|
579
|
+
createdAt: Date;
|
|
580
|
+
updatedAt: Date;
|
|
581
|
+
email: string;
|
|
582
|
+
emailVerified: boolean;
|
|
583
|
+
name: string;
|
|
584
|
+
image?: string | null | undefined;
|
|
585
|
+
};
|
|
586
|
+
}>;
|
|
587
|
+
};
|
|
588
|
+
options: NoInfer<O>;
|
|
589
|
+
hooks: {
|
|
590
|
+
after: {
|
|
591
|
+
matcher(context: import("better-auth").HookEndpointContext): boolean;
|
|
592
|
+
handler: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
593
|
+
twoFactorRedirect: boolean;
|
|
594
|
+
twoFactorMethods: string[];
|
|
595
|
+
} | undefined>>;
|
|
596
|
+
}[];
|
|
597
|
+
};
|
|
598
|
+
schema: {
|
|
599
|
+
user: {
|
|
600
|
+
fields: {
|
|
601
|
+
twoFactorEnabled: {
|
|
602
|
+
type: "boolean";
|
|
603
|
+
required: false;
|
|
604
|
+
defaultValue: false;
|
|
605
|
+
input: false;
|
|
606
|
+
};
|
|
607
|
+
};
|
|
608
|
+
};
|
|
609
|
+
twoFactor: {
|
|
610
|
+
fields: {
|
|
611
|
+
secret: {
|
|
612
|
+
type: "string";
|
|
613
|
+
required: true;
|
|
614
|
+
returned: false;
|
|
615
|
+
index: true;
|
|
616
|
+
};
|
|
617
|
+
backupCodes: {
|
|
618
|
+
type: "string";
|
|
619
|
+
required: true;
|
|
620
|
+
returned: false;
|
|
621
|
+
};
|
|
622
|
+
userId: {
|
|
623
|
+
type: "string";
|
|
624
|
+
required: true;
|
|
625
|
+
returned: false;
|
|
626
|
+
references: {
|
|
627
|
+
model: string;
|
|
628
|
+
field: string;
|
|
629
|
+
};
|
|
630
|
+
index: true;
|
|
631
|
+
};
|
|
632
|
+
verified: {
|
|
633
|
+
type: "boolean";
|
|
634
|
+
required: false;
|
|
635
|
+
defaultValue: true;
|
|
636
|
+
input: false;
|
|
637
|
+
};
|
|
638
|
+
failedVerificationCount: {
|
|
639
|
+
type: "number";
|
|
640
|
+
required: false;
|
|
641
|
+
defaultValue: number;
|
|
642
|
+
input: false;
|
|
643
|
+
returned: false;
|
|
644
|
+
};
|
|
645
|
+
lockedUntil: {
|
|
646
|
+
type: "date";
|
|
647
|
+
required: false;
|
|
648
|
+
input: false;
|
|
649
|
+
returned: false;
|
|
650
|
+
};
|
|
651
|
+
};
|
|
652
|
+
};
|
|
653
|
+
};
|
|
654
|
+
rateLimit: {
|
|
655
|
+
pathMatcher(path: string): boolean;
|
|
656
|
+
window: number;
|
|
657
|
+
max: number;
|
|
658
|
+
}[];
|
|
659
|
+
$ERROR_CODES: {
|
|
660
|
+
OTP_NOT_ENABLED: import("better-auth").RawError<"OTP_NOT_ENABLED">;
|
|
661
|
+
OTP_NOT_CONFIGURED: import("better-auth").RawError<"OTP_NOT_CONFIGURED">;
|
|
662
|
+
OTP_HAS_EXPIRED: import("better-auth").RawError<"OTP_HAS_EXPIRED">;
|
|
663
|
+
TOTP_NOT_ENABLED: import("better-auth").RawError<"TOTP_NOT_ENABLED">;
|
|
664
|
+
TOTP_ALREADY_ENABLED: import("better-auth").RawError<"TOTP_ALREADY_ENABLED">;
|
|
665
|
+
TOTP_NOT_CONFIGURED: import("better-auth").RawError<"TOTP_NOT_CONFIGURED">;
|
|
666
|
+
TWO_FACTOR_NOT_ENABLED: import("better-auth").RawError<"TWO_FACTOR_NOT_ENABLED">;
|
|
667
|
+
BACKUP_CODES_NOT_ENABLED: import("better-auth").RawError<"BACKUP_CODES_NOT_ENABLED">;
|
|
668
|
+
INVALID_BACKUP_CODE: import("better-auth").RawError<"INVALID_BACKUP_CODE">;
|
|
669
|
+
INVALID_CODE: import("better-auth").RawError<"INVALID_CODE">;
|
|
670
|
+
TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE: import("better-auth").RawError<"TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE">;
|
|
671
|
+
ACCOUNT_TEMPORARILY_LOCKED: import("better-auth").RawError<"ACCOUNT_TEMPORARILY_LOCKED">;
|
|
672
|
+
INVALID_TWO_FACTOR_COOKIE: import("better-auth").RawError<"INVALID_TWO_FACTOR_COOKIE">;
|
|
673
|
+
};
|
|
674
|
+
})>;
|
|
675
|
+
atomListeners: {
|
|
676
|
+
matcher: (path: string) => boolean;
|
|
677
|
+
signal: "$sessionSignal";
|
|
678
|
+
}[];
|
|
679
|
+
pathMethods: {
|
|
680
|
+
"/two-factor/disable": "POST";
|
|
681
|
+
"/two-factor/enable": "POST";
|
|
682
|
+
"/two-factor/send-otp": "POST";
|
|
683
|
+
"/two-factor/generate-backup-codes": "POST";
|
|
684
|
+
"/two-factor/get-totp-uri": "POST";
|
|
685
|
+
"/two-factor/verify-totp": "POST";
|
|
686
|
+
"/two-factor/verify-otp": "POST";
|
|
687
|
+
"/two-factor/verify-backup-code": "POST";
|
|
688
|
+
};
|
|
689
|
+
fetchPlugins: {
|
|
690
|
+
id: string;
|
|
691
|
+
name: string;
|
|
692
|
+
hooks: {
|
|
693
|
+
onSuccess(context: import("better-auth/svelte").SuccessContext<any>): Promise<void>;
|
|
694
|
+
};
|
|
695
|
+
}[];
|
|
696
|
+
$ERROR_CODES: {
|
|
697
|
+
OTP_NOT_ENABLED: import("better-auth").RawError<"OTP_NOT_ENABLED">;
|
|
698
|
+
OTP_NOT_CONFIGURED: import("better-auth").RawError<"OTP_NOT_CONFIGURED">;
|
|
699
|
+
OTP_HAS_EXPIRED: import("better-auth").RawError<"OTP_HAS_EXPIRED">;
|
|
700
|
+
TOTP_NOT_ENABLED: import("better-auth").RawError<"TOTP_NOT_ENABLED">;
|
|
701
|
+
TOTP_ALREADY_ENABLED: import("better-auth").RawError<"TOTP_ALREADY_ENABLED">;
|
|
702
|
+
TOTP_NOT_CONFIGURED: import("better-auth").RawError<"TOTP_NOT_CONFIGURED">;
|
|
703
|
+
TWO_FACTOR_NOT_ENABLED: import("better-auth").RawError<"TWO_FACTOR_NOT_ENABLED">;
|
|
704
|
+
BACKUP_CODES_NOT_ENABLED: import("better-auth").RawError<"BACKUP_CODES_NOT_ENABLED">;
|
|
705
|
+
INVALID_BACKUP_CODE: import("better-auth").RawError<"INVALID_BACKUP_CODE">;
|
|
706
|
+
INVALID_CODE: import("better-auth").RawError<"INVALID_CODE">;
|
|
707
|
+
TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE: import("better-auth").RawError<"TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE">;
|
|
708
|
+
ACCOUNT_TEMPORARILY_LOCKED: import("better-auth").RawError<"ACCOUNT_TEMPORARILY_LOCKED">;
|
|
709
|
+
INVALID_TWO_FACTOR_COOKIE: import("better-auth").RawError<"INVALID_TWO_FACTOR_COOKIE">;
|
|
710
|
+
};
|
|
711
|
+
}[];
|
|
712
|
+
}>;
|
|
713
|
+
export declare class ApiError extends Error {
|
|
714
|
+
fields: Record<string, string>;
|
|
715
|
+
constructor(message: string, fields?: Record<string, string>);
|
|
716
|
+
}
|
|
717
|
+
export declare function api<T = unknown>(path: string, body: unknown): Promise<T>;
|
|
718
|
+
export declare const message: (e: unknown) => string;
|
|
719
|
+
export declare function assetUrl(asset: import('./types.js').Asset, _workerUrl: string): string;
|
|
720
|
+
export declare const date: (timestamp: number) => string;
|