dineway 0.2.37 → 0.2.39
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/dist/{activity-BbtYp_4V.mjs → activity-LXZdjKwI.mjs} +1 -1
- package/dist/{activity-events-CiFN61xq.mjs → activity-events-DoqeOM8x.mjs} +1 -1
- package/dist/adapter-symbols-Bq3JsWGM.d.mts +5 -0
- package/dist/{adapters-Rol-inz6.d.mts → adapters-C8nRpUuj.d.mts} +22 -6
- package/dist/after.d.mts +10 -0
- package/dist/{after-BVaUn7bK.mjs → after.mjs} +3 -2
- package/dist/{allowed-origins-Cp7BI3L9.mjs → allowed-origins-DiVrMLxh.mjs} +1 -1
- package/dist/api/route-utils.d.mts +12 -10
- package/dist/api/route-utils.mjs +18 -19
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/api/schemas/index.mjs +5 -5
- package/dist/{api-kJUT0VCn.mjs → api-COSxvdOi.mjs} +11 -11
- package/dist/{api-tokens-OAgvq4xg.mjs → api-tokens-CNHnKO57.mjs} +1 -1
- package/dist/{apply--6MFJ5h9.mjs → apply-D4rZHDyg.mjs} +18 -18
- package/dist/astro/index.d.mts +13 -11
- package/dist/astro/index.mjs +20 -14
- package/dist/astro/middleware/auth.d.mts +11 -9
- package/dist/astro/middleware/auth.mjs +7 -8
- package/dist/astro/middleware/redirect.mjs +7 -7
- package/dist/astro/middleware/request-context.mjs +4 -5
- package/dist/astro/middleware/seed.d.mts +1 -1
- package/dist/astro/middleware/seed.mjs +3 -3
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.d.mts +9 -1
- package/dist/astro/middleware.mjs +301 -132
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +7 -7
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +7 -7
- package/dist/astro/routes/api/admin/api-tokens/_id_.mjs +4 -4
- package/dist/astro/routes/api/admin/api-tokens/index.mjs +6 -6
- package/dist/astro/routes/api/admin/briefing.mjs +22 -23
- package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +5 -5
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +11 -11
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +11 -11
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +11 -11
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +19 -20
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +19 -20
- package/dist/astro/routes/api/admin/bylines/index.mjs +19 -20
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +16 -17
- package/dist/astro/routes/api/admin/comments/_id_.mjs +6 -7
- package/dist/astro/routes/api/admin/comments/bulk.mjs +12 -13
- package/dist/astro/routes/api/admin/comments/counts.mjs +6 -7
- package/dist/astro/routes/api/admin/comments/index.mjs +12 -13
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +37 -38
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +37 -38
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +42 -43
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +42 -43
- package/dist/astro/routes/api/admin/context/diff.mjs +41 -42
- package/dist/astro/routes/api/admin/context/index.mjs +42 -43
- package/dist/astro/routes/api/admin/context/stale.mjs +41 -42
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +37 -38
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +41 -42
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +41 -42
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +38 -39
- package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +3 -3
- package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +6 -6
- package/dist/astro/routes/api/admin/oauth-clients/index.mjs +6 -6
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +66 -67
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +66 -67
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +58 -59
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +65 -66
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +65 -66
- package/dist/astro/routes/api/admin/plugins/index.mjs +58 -59
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +2 -2
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +58 -59
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +65 -66
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +58 -59
- package/dist/astro/routes/api/admin/plugins/updates.mjs +58 -59
- package/dist/astro/routes/api/admin/review-requests/_id_/image.mjs +23 -24
- package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +34 -35
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +50 -51
- package/dist/astro/routes/api/admin/review-requests/_id_/revoke.mjs +8 -8
- package/dist/astro/routes/api/admin/review-requests/index.mjs +48 -49
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +58 -59
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +2 -2
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +58 -59
- package/dist/astro/routes/api/admin/users/_id_/disable.mjs +2 -2
- package/dist/astro/routes/api/admin/users/_id_/enable.mjs +1 -1
- package/dist/astro/routes/api/admin/users/_id_/index.mjs +8 -8
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +3 -3
- package/dist/astro/routes/api/admin/users/index.mjs +7 -7
- package/dist/astro/routes/api/auth/dev-bypass.mjs +5 -5
- package/dist/astro/routes/api/auth/invite/accept.mjs +1 -1
- package/dist/astro/routes/api/auth/invite/complete.mjs +12 -12
- package/dist/astro/routes/api/auth/invite/index.mjs +9 -9
- package/dist/astro/routes/api/auth/invite/register-options.mjs +11 -11
- package/dist/astro/routes/api/auth/logout.mjs +2 -2
- package/dist/astro/routes/api/auth/magic-link/send.mjs +12 -12
- package/dist/astro/routes/api/auth/magic-link/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/me.mjs +10 -10
- package/dist/astro/routes/api/auth/mode.mjs +1 -1
- package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs +3 -3
- package/dist/astro/routes/api/auth/oauth/_provider_.mjs +3 -3
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +7 -7
- package/dist/astro/routes/api/auth/passkey/index.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/options.mjs +14 -14
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +11 -11
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +12 -12
- package/dist/astro/routes/api/auth/passkey/verify.mjs +12 -12
- package/dist/astro/routes/api/auth/setup-token/index.mjs +6 -6
- package/dist/astro/routes/api/auth/setup-token/verify.mjs +3 -3
- package/dist/astro/routes/api/auth/signup/complete.mjs +12 -12
- package/dist/astro/routes/api/auth/signup/request.mjs +12 -12
- package/dist/astro/routes/api/auth/signup/verify.mjs +1 -1
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.d.mts +11 -9
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +19 -20
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +17 -18
- package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +20 -21
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +29 -30
- package/dist/astro/routes/api/content/_collection_/_id_/release-readiness.mjs +8 -8
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +29 -30
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +18 -19
- package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +12 -12
- package/dist/astro/routes/api/content/_collection_/authors.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/index.mjs +12 -12
- package/dist/astro/routes/api/content/_collection_/trash.mjs +8 -8
- package/dist/astro/routes/api/dashboard.mjs +11 -12
- package/dist/astro/routes/api/dev/emails.mjs +2 -2
- package/dist/astro/routes/api/health.mjs +1 -1
- package/dist/astro/routes/api/import/probe.d.mts +3 -3
- package/dist/astro/routes/api/import/probe.mjs +22 -23
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +10 -10
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +11 -9
- package/dist/astro/routes/api/import/wordpress/execute.mjs +45 -46
- package/dist/astro/routes/api/import/wordpress/media.d.mts +11 -9
- package/dist/astro/routes/api/import/wordpress/media.mjs +13 -13
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +46 -47
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +12 -10
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +43 -44
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +26 -27
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +11 -9
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +50 -51
- package/dist/astro/routes/api/integration/artifact.mjs +8 -9
- package/dist/astro/routes/api/integration/dispatch.mjs +12 -13
- package/dist/astro/routes/api/integrations/_provider_.mjs +9 -10
- package/dist/astro/routes/api/integrations/index.mjs +8 -9
- package/dist/astro/routes/api/manifest.mjs +5 -5
- package/dist/astro/routes/api/mcp.mjs +87 -88
- package/dist/astro/routes/api/media/_id_/confirm.mjs +11 -11
- package/dist/astro/routes/api/media/_id_.mjs +9 -9
- package/dist/astro/routes/api/media/file/_...key_.mjs +1 -1
- package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.mjs +2 -2
- package/dist/astro/routes/api/media/providers/_providerId_/index.mjs +2 -2
- package/dist/astro/routes/api/media/providers/index.mjs +2 -2
- package/dist/astro/routes/api/media/upload-url.mjs +12 -12
- package/dist/astro/routes/api/media.mjs +15 -15
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +42 -43
- package/dist/astro/routes/api/menus/_name_/items.mjs +42 -43
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +42 -43
- package/dist/astro/routes/api/menus/_name_/translations.mjs +42 -43
- package/dist/astro/routes/api/menus/_name_.mjs +42 -43
- package/dist/astro/routes/api/menus/index.mjs +42 -43
- package/dist/astro/routes/api/oauth/authorize.mjs +8 -8
- package/dist/astro/routes/api/oauth/device/authorize.mjs +6 -6
- package/dist/astro/routes/api/oauth/device/code.mjs +10 -10
- package/dist/astro/routes/api/oauth/device/token.mjs +9 -9
- package/dist/astro/routes/api/oauth/register.mjs +4 -4
- package/dist/astro/routes/api/oauth/token/refresh.mjs +6 -6
- package/dist/astro/routes/api/oauth/token/revoke.mjs +6 -6
- package/dist/astro/routes/api/oauth/token.mjs +7 -7
- package/dist/astro/routes/api/openapi.json.mjs +5 -5
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +3 -3
- package/dist/astro/routes/api/redirects/404s/index.mjs +13 -13
- package/dist/astro/routes/api/redirects/404s/summary.mjs +13 -13
- package/dist/astro/routes/api/redirects/_id_.mjs +42 -43
- package/dist/astro/routes/api/redirects/index.mjs +42 -43
- package/dist/astro/routes/api/revisions/_revisionId_/index.mjs +2 -2
- package/dist/astro/routes/api/revisions/_revisionId_/restore.mjs +2 -2
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +60 -61
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +60 -61
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +60 -61
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +60 -61
- package/dist/astro/routes/api/schema/collections/index.mjs +60 -61
- package/dist/astro/routes/api/schema/index.mjs +10 -10
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +58 -59
- package/dist/astro/routes/api/schema/orphans/index.mjs +58 -59
- package/dist/astro/routes/api/search/enable.mjs +13 -13
- package/dist/astro/routes/api/search/index.mjs +12 -12
- package/dist/astro/routes/api/search/rebuild.mjs +13 -13
- package/dist/astro/routes/api/search/stats.mjs +7 -7
- package/dist/astro/routes/api/search/suggest.mjs +12 -12
- package/dist/astro/routes/api/sections/_slug_.mjs +42 -43
- package/dist/astro/routes/api/sections/index.mjs +42 -43
- package/dist/astro/routes/api/settings/email.mjs +4 -4
- package/dist/astro/routes/api/settings/reviews.mjs +9 -9
- package/dist/astro/routes/api/settings.mjs +42 -43
- package/dist/astro/routes/api/setup/admin-verify.mjs +14 -14
- package/dist/astro/routes/api/setup/admin.mjs +12 -12
- package/dist/astro/routes/api/setup/dev-bypass.mjs +30 -31
- package/dist/astro/routes/api/setup/dev-reset.mjs +2 -2
- package/dist/astro/routes/api/setup/index.mjs +32 -33
- package/dist/astro/routes/api/setup/status.mjs +3 -3
- package/dist/astro/routes/api/snapshot.mjs +8 -9
- package/dist/astro/routes/api/system/heartbeat.mjs +2 -2
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +45 -46
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +45 -46
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +45 -46
- package/dist/astro/routes/api/taxonomies/index.mjs +45 -46
- package/dist/astro/routes/api/themes/preview.mjs +6 -7
- package/dist/astro/routes/api/typegen.mjs +4 -4
- package/dist/astro/routes/api/well-known/auth.mjs +3 -3
- package/dist/astro/routes/api/well-known/oauth-authorization-server.mjs +3 -3
- package/dist/astro/routes/api/well-known/oauth-protected-resource.mjs +3 -3
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +41 -42
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +42 -43
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +42 -43
- package/dist/astro/routes/api/widget-areas/_name_.mjs +39 -40
- package/dist/astro/routes/api/widget-areas/index.mjs +42 -43
- package/dist/astro/routes/api/widget-components.mjs +2 -2
- package/dist/astro/routes/robots.txt.mjs +8 -9
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +16 -17
- package/dist/astro/routes/sitemap.xml.mjs +15 -16
- package/dist/astro/session-driver.d.mts +1 -1
- package/dist/astro/session-driver.mjs +2 -2
- package/dist/astro/types.d.mts +14 -12
- package/dist/{audit-F5iWkbcJ.mjs → audit-Cl495Ze3.mjs} +1 -1
- package/dist/auth/providers/github.d.mts +1 -1
- package/dist/auth/providers/google.d.mts +1 -1
- package/dist/{auth-control-guard-DPOSBNFI.mjs → auth-control-guard-DbjgJdlo.mjs} +1 -1
- package/dist/{authorize-CXIjxIfC.mjs → authorize-DDmgmnW-.mjs} +1 -1
- package/dist/{briefing-BiBHuHqK.mjs → briefing-COw-WcYz.mjs} +6 -6
- package/dist/{briefing-DQYj9x6H.mjs → briefing-DsD-Ouwc.mjs} +1 -1
- package/dist/{bundle-DImnxo71.mjs → bundle-bhiszAui.mjs} +2 -2
- package/dist/{byline-BCPYEtzy.mjs → byline-TYk2kad6.mjs} +6 -6
- package/dist/{byline-fields-CY6V0ew1.mjs → byline-fields-BKj5f3Ub.mjs} +1 -1
- package/dist/{byline-fields-Cr3vqtmy.d.mts → byline-fields-CKhPED5o.d.mts} +31 -31
- package/dist/{byline-fields-DGNKitg3.mjs → byline-fields-DZ46DF10.mjs} +3 -3
- package/dist/{byline-registry-CkuVVeJJ.mjs → byline-registry-CJihchD1.mjs} +1 -1
- package/dist/{bylines-BkRyEw1m.mjs → bylines-6T9iVC9j.mjs} +3 -3
- package/dist/{bylines-ulHYkoqw.mjs → bylines-CvTSCAw9.mjs} +5 -5
- package/dist/{cache-DZDOBJv3.mjs → cache-B5NSHhxG.mjs} +2 -2
- package/dist/{chunks-BnG3LPMN.mjs → chunks-C8vSD_5L.mjs} +1 -1
- package/dist/cli/index.mjs +50 -46
- package/dist/cli/plugin-kit.d.mts +11 -9
- package/dist/cli/plugin-kit.mjs +2 -2
- package/dist/client/index.d.mts +11 -9
- package/dist/client/index.mjs +2 -2
- package/dist/{client-factory-6vLLT06O.mjs → client-factory-C1ZQCMog.mjs} +1 -1
- package/dist/{comment-DX7gSK1w.mjs → comment-DAQfUjqt.mjs} +2 -2
- package/dist/{comment-reaction-Cun5eIXL.mjs → comment-reaction-Dp3G7UZc.mjs} +1 -1
- package/dist/{comments-CFswogn0.mjs → comments-BrvIaRAx.mjs} +1 -1
- package/dist/{content-D_Q7BEGo.mjs → content-CIKsrvU9.mjs} +12 -11
- package/dist/{content-refresh-9M9cc55-.mjs → content-refresh-BilzqcLt.mjs} +4 -4
- package/dist/{context-jRMnVU99.mjs → context-DAs_MZjJ.mjs} +11 -11
- package/dist/{context-CDZsqodm.mjs → context-DVTvucNb.mjs} +2 -2
- package/dist/{context-route-helpers-CWAHJFl3.mjs → context-route-helpers-BP-UJ4u8.mjs} +1 -1
- package/dist/{d1-binding-D6HZa3ks.mjs → d1-binding-DrLMBUxu.mjs} +6 -2
- package/dist/{dashboard-C7K-qmQw.mjs → dashboard-BAjWCGCP.mjs} +4 -4
- package/dist/database/batch.d.mts +2 -1
- package/dist/database/batch.mjs +5 -3
- package/dist/database/d1/index.d.mts +11 -9
- package/dist/database/d1/index.mjs +5 -5
- package/dist/db/index.d.mts +4 -4
- package/dist/db/index.mjs +3 -13
- package/dist/db/libsql.d.mts +1 -1
- package/dist/db/postgres.d.mts +1 -1
- package/dist/db/sqlite.d.mts +1 -1
- package/dist/{device-flow-Prqg6ycD.mjs → device-flow-Dh0rNlh1.mjs} +3 -3
- package/dist/{discovery-CYcZJ1o3.mjs → discovery-V0e0Gg8j.mjs} +4 -4
- package/dist/{enrich-BjF-J4sF.mjs → enrich-B7PIJ8Iy.mjs} +1 -1
- package/dist/{evidence-CoLCtvqq.mjs → evidence-Vnp_fQbC.mjs} +6 -6
- package/dist/{field-defs-cache-BKKFFf_V.mjs → field-defs-cache-aXUeXJdC.mjs} +6 -6
- package/dist/{fts-manager-DA74x_uP.mjs → fts-manager-BrPpYtK0.mjs} +1 -1
- package/dist/{hitl-requests-CMlepQbW.mjs → hitl-requests-BxMMON3s.mjs} +2 -2
- package/dist/{hitl-route-helpers-DnNP_wMa.mjs → hitl-route-helpers-sdnjpx2k.mjs} +4 -4
- package/dist/{import-CJiI0o15.mjs → import-C2-v4FCs.mjs} +9 -9
- package/dist/{index-mlJSqFkG.d.mts → index-BVGe04wF.d.mts} +3 -3
- package/dist/index.d.mts +17 -15
- package/dist/index.mjs +98 -98
- package/dist/{integration-credentials-Br16M1VE.mjs → integration-credentials-DMEXZU2J.mjs} +2 -2
- package/dist/{jsonld-B2e_FWju.d.mts → jsonld-XWmmAoVo.d.mts} +2 -2
- package/dist/{load-B2oitobd.mjs → load-DvCVppOF.mjs} +1 -1
- package/dist/{loader-Cgsx23wU.mjs → loader-Dp6zLmQm.mjs} +3 -3
- package/dist/{manifest-schema-DBXM_g8l.mjs → manifest-schema-CCvogfrP.mjs} +1 -1
- package/dist/{mcp-reviewed-executor-XBjd6qYu.mjs → mcp-reviewed-executor-B8Gbin3T.mjs} +6 -6
- package/dist/media/image-endpoint.mjs +1 -1
- package/dist/media/index.d.mts +1 -1
- package/dist/media/index.mjs +2 -2
- package/dist/media/local-runtime.d.mts +13 -11
- package/dist/media/local-runtime.mjs +2 -2
- package/dist/{media-BZqwtRTZ.mjs → media-C5ba8fvI.mjs} +1 -1
- package/dist/{media-allowlist-CyByjUXh.mjs → media-allowlist-DQvscVkS.mjs} +1 -1
- package/dist/{menus-BJvvB0n9.mjs → menus-CyNpBQrX.mjs} +2 -2
- package/dist/{menus-DNcY6Do7.mjs → menus-w5xwT-f5.mjs} +7 -7
- package/dist/{migrations-C7YXse7V.mjs → migrations-CLlX25HO.mjs} +2 -2
- package/dist/{oauth-authorization-B_mmz7O2.mjs → oauth-authorization-CdqJZUMf.mjs} +4 -4
- package/dist/{oauth-clients-Cr4pdIAE.mjs → oauth-clients-CHNb9MAZ.mjs} +2 -2
- package/dist/object-cache/memory.d.mts +1 -1
- package/dist/{object-cache-DYGlsI-R.mjs → object-cache-mxCW-Rpt.mjs} +1 -1
- package/dist/page/index.d.mts +12 -10
- package/dist/page/index.mjs +1 -1
- package/dist/{parse-BscLr3p2.mjs → parse-THHCpJLB.mjs} +1 -1
- package/dist/plugin-utils.d.mts +11 -9
- package/dist/plugins/adapt-sandbox-entry.d.mts +11 -9
- package/dist/plugins/adapt-sandbox-entry.mjs +1 -1
- package/dist/{plugins-D6zhTwNX.mjs → plugins-pfraURNp.mjs} +8 -8
- package/dist/{policy-CrK1vl8l.mjs → policy-B6mVa7ib.mjs} +2 -2
- package/dist/{preview-E1xKZGsX.mjs → preview-Bh7D7F27.mjs} +3 -3
- package/dist/{provider-loader-H2wdGD0o.d.mts → provider-loader-DT7vQ5FI.d.mts} +1 -1
- package/dist/{public-url-Dj1vD21t.d.mts → public-url-BvnTaacI.d.mts} +1 -1
- package/dist/{public-url-zoO-QbN6.d.mts → public-url-Ccv0Xmue.d.mts} +2 -2
- package/dist/{publication-authorization-D4Cq5dn5.mjs → publication-authorization-B_HJSnzR.mjs} +10 -10
- package/dist/{query-DnK6LJdA.mjs → query-DLeahg3x.mjs} +4 -4
- package/dist/{query-BTxYlpUS.mjs → query-xspvw7Ui.mjs} +15 -15
- package/dist/{rate-limit-RaBJEgyt.mjs → rate-limit-BsBr_U9g.mjs} +2 -2
- package/dist/{redirect-HLI3wT5Y.mjs → redirect-BQFa1THe.mjs} +2 -2
- package/dist/{redirects-DpRiuRWn.mjs → redirects-CVfxefrz.mjs} +3 -3
- package/dist/{redirects-D16GFaOa.mjs → redirects-DJcsgz_X.mjs} +5 -5
- package/dist/{registry-DcV93OL_.mjs → registry-Dclv9iHv.mjs} +7 -7
- package/dist/{release-CZfAeyXm.mjs → release-B3Q-9B7N.mjs} +3 -3
- package/dist/request-context.d.mts +5 -1
- package/dist/request-context.mjs +12 -1
- package/dist/{request-meta-C6yGqnGD.mjs → request-meta-CjORiJQ_.mjs} +1 -1
- package/dist/{review-payload-BPwisxjF.mjs → review-payload-Bap86e75.mjs} +13 -13
- package/dist/{review-requests-BF2eEKr8.mjs → review-requests-CUVn0RBl.mjs} +2 -2
- package/dist/{review-requests-CP3Nfqhy.mjs → review-requests-CcSUTm_l.mjs} +2 -2
- package/dist/{review-route-helpers-BYx3Px90.mjs → review-route-helpers-CKBfGKCi.mjs} +1 -1
- package/dist/{revocation-DZ8e4JCS.mjs → revocation-C_ZQvGRT.mjs} +2 -2
- package/dist/{runner-CVeq0266.mjs → runner-CRU7BXjr.mjs} +1 -1
- package/dist/{runner-Cxl-vyk2.d.mts → runner-SoP1rphP.d.mts} +1 -1
- package/dist/{runs-B8kCirJ6.mjs → runs-BtaAiLTw.mjs} +4 -4
- package/dist/runtime.d.mts +14 -11
- package/dist/runtime.mjs +5 -4
- package/dist/scheduled-publish-BxdShRGs.d.mts +9 -0
- package/dist/schema-CosVhHJt.mjs +8 -0
- package/dist/{search-C9qOBgvo.mjs → search-BI9uKr7U.mjs} +3 -3
- package/dist/{secrets-BP2YTPWn.mjs → secrets-D_pergcD.mjs} +4 -4
- package/dist/{sections-CkoQY7Z9.mjs → sections-BqqYq9RW.mjs} +2 -2
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +24 -25
- package/dist/seo/index.d.mts +3 -3
- package/dist/seo/index.mjs +9 -9
- package/dist/{seo-Bypxm1iD.mjs → seo-B-5PsaJO.mjs} +1 -1
- package/dist/{seo-B3cQl1r2.mjs → seo-Bs_DUxJf.mjs} +2 -2
- package/dist/{service-CMR5_eSN.mjs → service-B65aJsN7.mjs} +3 -3
- package/dist/{service-mJBl4ZP4.mjs → service-W2xuGLgw.mjs} +2 -2
- package/dist/{session-user-DacoiKrJ.mjs → session-user-eweCNKzW.mjs} +1 -1
- package/dist/{settings-DiAKrrP4.mjs → settings-CyJ2-MKx.mjs} +2 -2
- package/dist/{settings-dNtUakSt.mjs → settings-DsBzKeUQ.mjs} +8 -8
- package/dist/{setup-complete-CWMnrNFN.mjs → setup-complete-DeivSVJi.mjs} +1 -1
- package/dist/{site-activity-BrN2NviL.mjs → site-activity-DU0UPDji.mjs} +1 -1
- package/dist/{site-context-Bll8ehSX.mjs → site-context-Dic2jHuw.mjs} +15 -15
- package/dist/{site-url-DoTPKRND.mjs → site-url-Tw6CfBB2.mjs} +1 -1
- package/dist/{state-D8AogXCV.mjs → state-DM7blWfT.mjs} +1 -1
- package/dist/storage/local.d.mts +1 -1
- package/dist/storage/local.mjs +1 -1
- package/dist/storage/s3.d.mts +1 -1
- package/dist/storage/s3.mjs +2 -2
- package/dist/{store-CjmmGlVw.mjs → store-32e6dfD-.mjs} +2 -2
- package/dist/{submission-CdXVheI1.mjs → submission-DJmRejGR.mjs} +10 -10
- package/dist/{taxonomies-rJBePDW_.mjs → taxonomies-BFsUR7kc.mjs} +3 -3
- package/dist/{taxonomies-9lXML1QX.mjs → taxonomies-lWGNLKgn.mjs} +7 -7
- package/dist/{taxonomy-CAd9SL-L.mjs → taxonomy-DN6i1upz.mjs} +3 -3
- package/dist/{trusted-proxy-CvDP0g0F.mjs → trusted-proxy-hYufGFPK.mjs} +1 -1
- package/dist/{types-5xfwCI4m.d.mts → types-CJynaYg1.d.mts} +15 -24
- package/dist/{types-BFoQ5a1v.d.mts → types-CgcOeaiQ.d.mts} +1 -1
- package/dist/{types-BqxIv8Il.mjs → types-RFzE_V1M.mjs} +1 -1
- package/dist/ui/server-runtime.d.mts +15 -13
- package/dist/ui/server-runtime.mjs +25 -26
- package/dist/{user-1-YV30lf.mjs → user-Btai9rl3.mjs} +2 -2
- package/dist/{utils-BoWkoty8.mjs → utils-CYxGuO_P.mjs} +2 -2
- package/dist/{validate-CupwWNWL.mjs → validate-C05z0m7M.mjs} +3 -3
- package/dist/{validate-CCOsvPg2.d.mts → validate-kmN2lS8H.d.mts} +3 -3
- package/dist/version-BnLdwIT1.mjs +6 -0
- package/dist/{widgets-DbOctkXv.mjs → widgets-BOrDZdQ3.mjs} +3 -3
- package/dist/{wordpress-slugs-pQlLXbKn.mjs → wordpress-slugs-ROzITIBK.mjs} +1 -1
- package/dist/{worker-0TNlZuCU.mjs → worker-Bg35R37I.mjs} +10 -10
- package/dist/workers-build-5UQ4j69Q.mjs +70 -0
- package/dist/{zod-generator-BzACAoR5.mjs → zod-generator-DkrWuID7.mjs} +2 -2
- package/package.json +10 -18
- package/dist/astro/middleware/workers.d.mts +0 -6
- package/dist/astro/middleware/workers.mjs +0 -8
- package/dist/d1-dialect-BBxPg6Om.mjs +0 -48
- package/dist/db/d1.d.mts +0 -7
- package/dist/db/d1.mjs +0 -13
- package/dist/schema-DFeC5axi.mjs +0 -8
- package/dist/version-cCcZvW0B.mjs +0 -6
- package/dist/workers-build-QVrquLLe.mjs +0 -36
- /package/dist/{api-tokens-DA18zxza.mjs → api-tokens-0N3nafqZ.mjs} +0 -0
- /package/dist/{challenge-store-DFGsDtCj.mjs → challenge-store-BPn3goP9.mjs} +0 -0
- /package/dist/{components-gMTtJqHg.mjs → components-rFN8NH3N.mjs} +0 -0
- /package/dist/{context-types-DLD_HnKT.mjs → context-types-CPWAJRs5.mjs} +0 -0
- /package/dist/{cron-BVYo08mi.mjs → cron-C7HCJPPl.mjs} +0 -0
- /package/dist/{default-w3MwLng7.mjs → default-BS6VQRkB.mjs} +0 -0
- /package/dist/{email-console-CpvgEN1w.mjs → email-console-GqK6hgMJ.mjs} +0 -0
- /package/dist/{error-B-44r5TD.mjs → error-B5a45Tfb.mjs} +0 -0
- /package/dist/{escape-B1GM0yJU.mjs → escape-CE7xOWzJ.mjs} +0 -0
- /package/dist/{experimental-workflows-fzJHB3ZI.mjs → experimental-workflows-BbxpWwBy.mjs} +0 -0
- /package/dist/{forgeway-account-CnWOIusE.mjs → forgeway-account-DcTxh3Gw.mjs} +0 -0
- /package/dist/{hash-DvMZXj2L.mjs → hash-D2Rqd2J2.mjs} +0 -0
- /package/dist/{media-url-D-elxQjL.mjs → media-url-D9kdpoLS.mjs} +0 -0
- /package/dist/{mime-D_ae-u_U.mjs → mime-BnVhH671.mjs} +0 -0
- /package/dist/{mode-BJwb_MgK.mjs → mode-D0gePRtf.mjs} +0 -0
- /package/dist/{normalize-5rct_U0I.mjs → normalize-aTwryvvi.mjs} +0 -0
- /package/dist/{oauth-authority-DOjME4Hh.mjs → oauth-authority-P5YMSk2z.mjs} +0 -0
- /package/dist/{oauth-state-store-D2H9hKcN.mjs → oauth-state-store-CMqLdo4I.mjs} +0 -0
- /package/dist/{options-BcqHWpc-.mjs → options-JiLWB6Bt.mjs} +0 -0
- /package/dist/{output-CdmbQioY.mjs → output-7HDrYTSQ.mjs} +0 -0
- /package/dist/{parser-ehIlj32k.mjs → parser-kettsjWc.mjs} +0 -0
- /package/dist/{passkey-config-sUQoLEj_.mjs → passkey-config-DVzQ3dv3.mjs} +0 -0
- /package/dist/{patterns-CZ7D4y_R.mjs → patterns-Ay-4KImK.mjs} +0 -0
- /package/dist/{placeholder-CQKI6vLd.d.mts → placeholder-DJLP_HY7.d.mts} +0 -0
- /package/dist/{portable-text-DH3Om_2D.mjs → portable-text-tQhvPLf1.mjs} +0 -0
- /package/dist/{process-cache-MHM4Sqzs.mjs → process-cache-C19OA3am.mjs} +0 -0
- /package/dist/{provider-loader-Dnv2neOu.mjs → provider-loader-DERzBMUz.mjs} +0 -0
- /package/dist/{public-discovery-CTql6jdZ.mjs → public-discovery-BGyhuD5U.mjs} +0 -0
- /package/dist/{public-url-DNt9A1yS.mjs → public-url-DFXUU6Wp.mjs} +0 -0
- /package/dist/{public-url-4sMO36Gw.mjs → public-url-sR8SVmTt.mjs} +0 -0
- /package/dist/{redirect-Cjjb5VYr.mjs → redirect-BxacnBYL.mjs} +0 -0
- /package/dist/{request-cache-DPmV5nk4.mjs → request-cache-8_ifFzVw.mjs} +0 -0
- /package/dist/{resolve-CpOV2jt_.mjs → resolve-DEKC4qVa.mjs} +0 -0
- /package/dist/{revision-090sZyGc.mjs → revision-W6FDfDqx.mjs} +0 -0
- /package/dist/{runtime-env-v-1UXPAH.mjs → runtime-env-CPTzh0mZ.mjs} +0 -0
- /package/dist/{seo-contributions-atY3jZEV.mjs → seo-contributions-LEFs1d7w.mjs} +0 -0
- /package/dist/{service-CeEi6nax.mjs → service-kQ5ljRzX.mjs} +0 -0
- /package/dist/{setup-nonce-BUmfCiY1.mjs → setup-nonce-B6A5Y1ea.mjs} +0 -0
- /package/dist/{sidecar-client-CbrX8nuw.mjs → sidecar-client-BwPhhz-F.mjs} +0 -0
- /package/dist/{slugify-Di8Q_MFq.mjs → slugify-kD31VIv2.mjs} +0 -0
- /package/dist/{ssrf-COxLChKv.mjs → ssrf-C9dyjU8O.mjs} +0 -0
- /package/dist/{stable-hash-DEtJgcp7.mjs → stable-hash-B9Tbb2f_.mjs} +0 -0
- /package/dist/{status-DBSB6tdS.mjs → status-Bjf_uSrW.mjs} +0 -0
- /package/dist/{tokens-I3tSjoFI.mjs → tokens-D-StaTAQ.mjs} +0 -0
- /package/dist/{transport-aPKvM53n.mjs → transport-BrU1aDY5.mjs} +0 -0
- /package/dist/{types-CVRNRAA5.d.mts → types-B--VyN3n.d.mts} +0 -0
- /package/dist/{types-SddyDti7.d.mts → types-B03h5jt_.d.mts} +0 -0
- /package/dist/{types-CyBH89BS.mjs → types-COvyXIp7.mjs} +0 -0
- /package/dist/{types-DNPP-eu4.d.mts → types-CtGSEKEJ.d.mts} +0 -0
- /package/dist/{types-ChSk0dmw.mjs → types-DNBL-4Sn.mjs} +0 -0
- /package/dist/{types-CAD4OvmF.d.mts → types-DsJTXStN.d.mts} +0 -0
- /package/dist/{types-BWsEjujW.d.mts → types-KFzuijKE.d.mts} +0 -0
- /package/dist/{types-BKsk4nnM.mjs → types-PLJ9hlhh.mjs} +0 -0
- /package/dist/{types-1qU0-N1P.d.mts → types-SlLXjRpg.d.mts} +0 -0
- /package/dist/{url-DfqolpO2.mjs → url-DGG3hw_h.mjs} +0 -0
- /package/dist/{url-Ce0qtSdB.mjs → url-DUz3LbCs.mjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as resolveActorIdentity } from "./actor-DxUAJgQX.mjs";
|
|
2
|
-
import { t as SiteActivityRepository } from "./site-activity-
|
|
2
|
+
import { t as SiteActivityRepository } from "./site-activity-DU0UPDji.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/site-context/activity.ts
|
|
5
5
|
const REDACTED = "[redacted]";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Kysely } from "kysely";
|
|
2
|
+
|
|
1
3
|
//#region src/db/adapters.d.ts
|
|
2
4
|
/**
|
|
3
5
|
* Database Adapter Functions
|
|
@@ -29,6 +31,7 @@ type DatabaseDialectType = "sqlite" | "postgres";
|
|
|
29
31
|
* Database descriptor - serializable config for virtual modules
|
|
30
32
|
*/
|
|
31
33
|
interface DatabaseDescriptor {
|
|
34
|
+
supportsRequestScope?: boolean;
|
|
32
35
|
entrypoint: string;
|
|
33
36
|
config: unknown;
|
|
34
37
|
type: DatabaseDialectType;
|
|
@@ -75,11 +78,6 @@ declare function sqlite(config: SqliteConfig): DatabaseDescriptor;
|
|
|
75
78
|
* ```
|
|
76
79
|
*/
|
|
77
80
|
declare function libsql(config: LibsqlConfig): DatabaseDescriptor;
|
|
78
|
-
interface D1Config {
|
|
79
|
-
binding: string;
|
|
80
|
-
}
|
|
81
|
-
/** Cloudflare D1 binding. Schema migrations run explicitly before deployment. */
|
|
82
|
-
declare function d1(config?: D1Config): DatabaseDescriptor;
|
|
83
81
|
/**
|
|
84
82
|
* PostgreSQL connection configuration
|
|
85
83
|
*/
|
|
@@ -107,5 +105,23 @@ interface PostgresConfig {
|
|
|
107
105
|
* ```
|
|
108
106
|
*/
|
|
109
107
|
declare function postgres(config: PostgresConfig): DatabaseDescriptor;
|
|
108
|
+
/** Adapter lifecycle shared by hosted and connection-backed databases. */
|
|
109
|
+
interface RequestScopedDbOpts<Config = unknown> {
|
|
110
|
+
config: Config;
|
|
111
|
+
isAuthenticated: boolean;
|
|
112
|
+
isWrite: boolean;
|
|
113
|
+
cookies: {
|
|
114
|
+
get(name: string): {
|
|
115
|
+
value: string;
|
|
116
|
+
} | undefined;
|
|
117
|
+
set(name: string, value: string, options: Record<string, unknown>): void;
|
|
118
|
+
};
|
|
119
|
+
url: URL;
|
|
120
|
+
}
|
|
121
|
+
interface RequestScopedDb {
|
|
122
|
+
db: Kysely<unknown>;
|
|
123
|
+
commit(isAuthenticated?: boolean): void;
|
|
124
|
+
close?(): void;
|
|
125
|
+
}
|
|
110
126
|
//#endregion
|
|
111
|
-
export {
|
|
127
|
+
export { RequestScopedDb as a, libsql as c, PostgresConfig as i, postgres as l, DatabaseDialectType as n, RequestScopedDbOpts as o, LibsqlConfig as r, SqliteConfig as s, DatabaseDescriptor as t, sqlite as u };
|
package/dist/after.d.mts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/after.d.ts
|
|
2
|
+
type AfterCallback = () => void | Promise<void>;
|
|
3
|
+
type WaitUntil = (promise: Promise<unknown>) => void;
|
|
4
|
+
/** Bind background work before initializing the runtime or handling a request. */
|
|
5
|
+
declare function runWithBackgroundTasks<T>(waitUntil: WaitUntil, operation: () => T): T;
|
|
6
|
+
declare function hasBackgroundTaskContext(): boolean;
|
|
7
|
+
/** Best-effort work; durable jobs still need a persisted queue or outbox. */
|
|
8
|
+
declare function after(fn: AfterCallback): void;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { AfterCallback, WaitUntil, after, hasBackgroundTaskContext, runWithBackgroundTasks };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { withPrimaryDatabase } from "./request-context.mjs";
|
|
1
2
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
2
3
|
|
|
3
4
|
//#region src/after.ts
|
|
@@ -14,11 +15,11 @@ function hasBackgroundTaskContext() {
|
|
|
14
15
|
}
|
|
15
16
|
/** Best-effort work; durable jobs still need a persisted queue or outbox. */
|
|
16
17
|
function after(fn) {
|
|
17
|
-
const promise = Promise.resolve().then(fn).catch((error) => {
|
|
18
|
+
const promise = Promise.resolve().then(() => withPrimaryDatabase(fn)).catch((error) => {
|
|
18
19
|
console.error("[dineway] deferred task failed:", error);
|
|
19
20
|
});
|
|
20
21
|
context.getStore()?.(promise);
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
//#endregion
|
|
24
|
-
export { hasBackgroundTaskContext
|
|
25
|
+
export { after, hasBackgroundTaskContext, runWithBackgroundTasks };
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { Bt as StorageCollectionConfig,
|
|
2
|
-
import { t as Database } from "../types-
|
|
3
|
-
import "../runner-
|
|
4
|
-
import "../index-
|
|
5
|
-
import "../types-
|
|
6
|
-
import "../
|
|
7
|
-
import "../
|
|
8
|
-
import "../
|
|
9
|
-
import "../
|
|
10
|
-
import
|
|
1
|
+
import { Bt as StorageCollectionConfig, dc as isParseError, fc as parseBody, gc as handleError, hc as apiSuccess, lc as OptionsRepository, mc as apiError, pc as parseQuery, uc as ParseResult, zt as StorageCollection } from "../types-CJynaYg1.mjs";
|
|
2
|
+
import { t as Database } from "../types-B--VyN3n.mjs";
|
|
3
|
+
import "../runner-SoP1rphP.mjs";
|
|
4
|
+
import "../index-BVGe04wF.mjs";
|
|
5
|
+
import "../types-B03h5jt_.mjs";
|
|
6
|
+
import "../adapters-C8nRpUuj.mjs";
|
|
7
|
+
import "../scheduled-publish-BxdShRGs.mjs";
|
|
8
|
+
import "../public-url-Ccv0Xmue.mjs";
|
|
9
|
+
import "../validate-kmN2lS8H.mjs";
|
|
10
|
+
import "../byline-fields-CKhPED5o.mjs";
|
|
11
|
+
import "../types-DsJTXStN.mjs";
|
|
12
|
+
import { t as getPublicOrigin } from "../public-url-BvnTaacI.mjs";
|
|
11
13
|
import { Kysely } from "kysely";
|
|
12
14
|
|
|
13
15
|
//#region src/api/auth-storage.d.ts
|
package/dist/api/route-utils.mjs
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
import "../d1-binding-
|
|
1
|
+
import "../d1-binding-DrLMBUxu.mjs";
|
|
2
2
|
import "../dialect-helpers-C6xtO-Ui.mjs";
|
|
3
3
|
import "../base64-Cz-aU0X1.mjs";
|
|
4
|
-
import "../types-
|
|
4
|
+
import "../types-RFzE_V1M.mjs";
|
|
5
5
|
import "../actor-DxUAJgQX.mjs";
|
|
6
6
|
import "../atomic-authority-CnBQJ14T.mjs";
|
|
7
|
-
import "../
|
|
8
|
-
import "../
|
|
9
|
-
import "../
|
|
10
|
-
import "../
|
|
11
|
-
import "../
|
|
12
|
-
import "../
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import "../
|
|
16
|
-
import "../
|
|
17
|
-
import "../
|
|
18
|
-
import "../
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
21
|
-
import "../
|
|
22
|
-
import {
|
|
23
|
-
import { t as finalizeSetup } from "../setup-complete-CWMnrNFN.mjs";
|
|
7
|
+
import "../object-cache-mxCW-Rpt.mjs";
|
|
8
|
+
import "../revision-W6FDfDqx.mjs";
|
|
9
|
+
import "../content-CIKsrvU9.mjs";
|
|
10
|
+
import "../media-C5ba8fvI.mjs";
|
|
11
|
+
import "../user-Btai9rl3.mjs";
|
|
12
|
+
import { t as OptionsRepository } from "../options-JiLWB6Bt.mjs";
|
|
13
|
+
import { r as createStorageAccess } from "../context-DAs_MZjJ.mjs";
|
|
14
|
+
import "../enrich-B7PIJ8Iy.mjs";
|
|
15
|
+
import "../seo-Bs_DUxJf.mjs";
|
|
16
|
+
import "../content-refresh-BilzqcLt.mjs";
|
|
17
|
+
import "../ssrf-C9dyjU8O.mjs";
|
|
18
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../error-B5a45Tfb.mjs";
|
|
19
|
+
import { i as parseQuery, n as parseBody, t as isParseError } from "../parse-THHCpJLB.mjs";
|
|
20
|
+
import "../cron-C7HCJPPl.mjs";
|
|
21
|
+
import { n as getPublicOrigin } from "../public-url-sR8SVmTt.mjs";
|
|
22
|
+
import { t as finalizeSetup } from "../setup-complete-DeivSVJi.mjs";
|
|
24
23
|
|
|
25
24
|
//#region src/api/auth-storage.ts
|
|
26
25
|
/**
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as settingsUpdateBody, $n as contentResponseSchema, $t as adminCommentListResponseSchema, A as widgetAreaSchema, An as mediaConfirmResponseSchema, At as inviteCompleteBody, B as usersListQuery, Bn as contentAuthorSchema, Bt as signupRequestBody, C as redirectSchema, Cn as orphanedTableSchema, Ct as menuSchema, D as createWidgetBody, Dn as DEFAULT_MAX_UPLOAD_SIZE, Dt as updateMenuBody, E as createWidgetAreaBody, En as updateFieldBody, Et as reorderMenuItemsBody, F as allowedDomainUpdateBody, Fn as mediaProviderListQuery, Ft as passkeyRegisterOptionsBody, G as wpPrepareBody, Gn as contentListQuery, Gt as hitlRequestResolveBody, H as wpMediaImportBody, Hn as contentCompareResponseSchema, Ht as reviewRequestListQuery, I as userDetailSchema, In as mediaResponseSchema, It as passkeyRegisterVerifyBody, J as searchQuery, Jn as contentPublicationReceiptSchema, Jt as contextEntryDiffQuery, K as wpRewriteUrlsBody, Kn as contentListResponseSchema, Kt as siteBriefingQuery, L as userListResponseSchema, Ln as mediaUpdateBody, Lt as passkeyRenameBody, M as widgetAreaWithWidgetsSchema, Mn as mediaItemSchema, Mt as inviteRegisterOptionsBody, N as widgetSchema, Nn as mediaListQuery, Nt as magicLinkSendBody, O as reorderWidgetsBody, On as formatFileSize, Ot as updateMenuItemBody, P as allowedDomainCreateBody, Pn as mediaListResponseSchema, Pt as passkeyOptionsBody, Q as searchSuggestQuery, Qn as contentReleaseReadinessResponseSchema, Qt as contextEntrySupersedeBody, R as userSchema, Rn as mediaUploadUrlBody, Rt as passkeyVerifyBody, S as redirectListResponseSchema, Sn as orphanedTableListResponseSchema, St as menuListItemSchema, T as updateRedirectBody, Tn as updateCollectionBody, Tt as menuWithItemsSchema, U as wpPluginAnalyzeBody, Un as contentCreateBody, Ut as reviewRequestResolveBody, V as importProbeBody, Vn as contentAuthorsResponseSchema, Vt as reviewRequestCreateBody, W as wpPluginExecuteBody, Wn as contentItemSchema, Wt as hitlRequestListQuery, X as searchResponseSchema, Xn as contentPublishResponseSchema, Xt as contextEntryReviewBody, Y as searchRebuildBody, Yn as contentPublishBody, Yt as contextEntryListQuery, Z as searchResultSchema, Zn as contentReleaseReadinessQuery, Zt as contextEntryStaleQuery, _ as notFoundListResponseSchema, _n as fieldListResponseSchema, _r as localeFilterQuery, _t as updateTermBody, a as bylineFieldUpdateBody, an as commentStatusBody, ar as contentTranslationsResponseSchema, at as updateSectionBody, b as notFoundSummaryResponseSchema, bn as fieldSchema, br as slugPattern, bt as menuItemSchema, c as bylineCreditSchema, cn as publicCommentListResponseSchema, cr as trashedContentItemSchema, ct as taxonomyDefSchema, d as bylineUpdateBody, dn as collectionListResponseSchema, dr as apiErrorSchema, dt as termGetResponseSchema, en as commentBulkBody, er as contentScheduleBody, et as siteSettingsSchema, f as bylinesListQuery, fn as collectionResponseSchema, fr as countResponseSchema, ft as termListResponseSchema, g as notFoundListQuery, gn as createFieldBody, gr as localeCode, gt as termWithCountSchema, h as notFoundEntrySchema, hn as createCollectionBody, hr as httpUrl, ht as termTranslationsSchema, i as bylineFieldReorderBody, in as commentSchema, ir as contentTranslationSchema, it as sectionsListQuery, j as widgetAreaWithWidgetsAndCountSchema, jn as mediaExistingResponseSchema, jt as inviteCreateBody, k as updateWidgetBody, kn as mediaConfirmBody, kt as authMeActionBody, l as bylineListResponseSchema, ln as publicCommentSchema, lr as trashedContentListResponseSchema, lt as taxonomyDefTranslationsSchema, m as createRedirectBody, mn as collectionWithFieldsResponseSchema, mr as deleteResponseSchema, mt as termSchema, n as bylineFieldDefinitionSchema, nn as commentCountsResponseSchema, nr as contentSeoSchema, nt as sectionListResponseSchema, o as bylineFieldUsageResponseSchema, on as createCommentBody, or as contentTrashQuery, ot as createTaxonomyDefBody, p as contentBylineInputSchema, pn as collectionSchema, pr as cursorPaginationQuery, pt as termResponseSchema, q as searchEnableBody, qn as contentPreviewUrlBody, qt as contextEntryCreateBody, r as bylineFieldListResponseSchema, rn as commentListQuery, rr as contentTermsBody, rt as sectionSchema, s as bylineCreateBody, sn as createReactionBody, sr as contentUpdateBody, st as createTermBody, t as bylineFieldCreateBody, tn as commentBulkResponseSchema, tr as contentSeoInput, tt as createSectionBody, u as bylineSummarySchema, un as collectionGetQuery, ur as VALID_ROLE_LEVELS, ut as taxonomyListResponseSchema, v as notFoundPruneBody, vn as fieldReorderBody, vr as offsetPaginationQuery, vt as createMenuBody, w as redirectsListQuery, wn as schemaExportQuery, wt as menuTranslationsSchema, x as notFoundSummarySchema, xn as orphanRegisterBody, xr as successEnvelope, xt as menuItemTypeEnum, y as notFoundSummaryQuery, yn as fieldResponseSchema, yr as roleLevel, yt as createMenuItemBody, z as userUpdateBody, zn as mediaUploadUrlResponseSchema, zt as signupCompleteBody } from "../../byline-fields-
|
|
1
|
+
import { $ as settingsUpdateBody, $n as contentResponseSchema, $t as adminCommentListResponseSchema, A as widgetAreaSchema, An as mediaConfirmResponseSchema, At as inviteCompleteBody, B as usersListQuery, Bn as contentAuthorSchema, Bt as signupRequestBody, C as redirectSchema, Cn as orphanedTableSchema, Ct as menuSchema, D as createWidgetBody, Dn as DEFAULT_MAX_UPLOAD_SIZE, Dt as updateMenuBody, E as createWidgetAreaBody, En as updateFieldBody, Et as reorderMenuItemsBody, F as allowedDomainUpdateBody, Fn as mediaProviderListQuery, Ft as passkeyRegisterOptionsBody, G as wpPrepareBody, Gn as contentListQuery, Gt as hitlRequestResolveBody, H as wpMediaImportBody, Hn as contentCompareResponseSchema, Ht as reviewRequestListQuery, I as userDetailSchema, In as mediaResponseSchema, It as passkeyRegisterVerifyBody, J as searchQuery, Jn as contentPublicationReceiptSchema, Jt as contextEntryDiffQuery, K as wpRewriteUrlsBody, Kn as contentListResponseSchema, Kt as siteBriefingQuery, L as userListResponseSchema, Ln as mediaUpdateBody, Lt as passkeyRenameBody, M as widgetAreaWithWidgetsSchema, Mn as mediaItemSchema, Mt as inviteRegisterOptionsBody, N as widgetSchema, Nn as mediaListQuery, Nt as magicLinkSendBody, O as reorderWidgetsBody, On as formatFileSize, Ot as updateMenuItemBody, P as allowedDomainCreateBody, Pn as mediaListResponseSchema, Pt as passkeyOptionsBody, Q as searchSuggestQuery, Qn as contentReleaseReadinessResponseSchema, Qt as contextEntrySupersedeBody, R as userSchema, Rn as mediaUploadUrlBody, Rt as passkeyVerifyBody, S as redirectListResponseSchema, Sn as orphanedTableListResponseSchema, St as menuListItemSchema, T as updateRedirectBody, Tn as updateCollectionBody, Tt as menuWithItemsSchema, U as wpPluginAnalyzeBody, Un as contentCreateBody, Ut as reviewRequestResolveBody, V as importProbeBody, Vn as contentAuthorsResponseSchema, Vt as reviewRequestCreateBody, W as wpPluginExecuteBody, Wn as contentItemSchema, Wt as hitlRequestListQuery, X as searchResponseSchema, Xn as contentPublishResponseSchema, Xt as contextEntryReviewBody, Y as searchRebuildBody, Yn as contentPublishBody, Yt as contextEntryListQuery, Z as searchResultSchema, Zn as contentReleaseReadinessQuery, Zt as contextEntryStaleQuery, _ as notFoundListResponseSchema, _n as fieldListResponseSchema, _r as localeFilterQuery, _t as updateTermBody, a as bylineFieldUpdateBody, an as commentStatusBody, ar as contentTranslationsResponseSchema, at as updateSectionBody, b as notFoundSummaryResponseSchema, bn as fieldSchema, br as slugPattern, bt as menuItemSchema, c as bylineCreditSchema, cn as publicCommentListResponseSchema, cr as trashedContentItemSchema, ct as taxonomyDefSchema, d as bylineUpdateBody, dn as collectionListResponseSchema, dr as apiErrorSchema, dt as termGetResponseSchema, en as commentBulkBody, er as contentScheduleBody, et as siteSettingsSchema, f as bylinesListQuery, fn as collectionResponseSchema, fr as countResponseSchema, ft as termListResponseSchema, g as notFoundListQuery, gn as createFieldBody, gr as localeCode, gt as termWithCountSchema, h as notFoundEntrySchema, hn as createCollectionBody, hr as httpUrl, ht as termTranslationsSchema, i as bylineFieldReorderBody, in as commentSchema, ir as contentTranslationSchema, it as sectionsListQuery, j as widgetAreaWithWidgetsAndCountSchema, jn as mediaExistingResponseSchema, jt as inviteCreateBody, k as updateWidgetBody, kn as mediaConfirmBody, kt as authMeActionBody, l as bylineListResponseSchema, ln as publicCommentSchema, lr as trashedContentListResponseSchema, lt as taxonomyDefTranslationsSchema, m as createRedirectBody, mn as collectionWithFieldsResponseSchema, mr as deleteResponseSchema, mt as termSchema, n as bylineFieldDefinitionSchema, nn as commentCountsResponseSchema, nr as contentSeoSchema, nt as sectionListResponseSchema, o as bylineFieldUsageResponseSchema, on as createCommentBody, or as contentTrashQuery, ot as createTaxonomyDefBody, p as contentBylineInputSchema, pn as collectionSchema, pr as cursorPaginationQuery, pt as termResponseSchema, q as searchEnableBody, qn as contentPreviewUrlBody, qt as contextEntryCreateBody, r as bylineFieldListResponseSchema, rn as commentListQuery, rr as contentTermsBody, rt as sectionSchema, s as bylineCreateBody, sn as createReactionBody, sr as contentUpdateBody, st as createTermBody, t as bylineFieldCreateBody, tn as commentBulkResponseSchema, tr as contentSeoInput, tt as createSectionBody, u as bylineSummarySchema, un as collectionGetQuery, ur as VALID_ROLE_LEVELS, ut as taxonomyListResponseSchema, v as notFoundPruneBody, vn as fieldReorderBody, vr as offsetPaginationQuery, vt as createMenuBody, w as redirectsListQuery, wn as schemaExportQuery, wt as menuTranslationsSchema, x as notFoundSummarySchema, xn as orphanRegisterBody, xr as successEnvelope, xt as menuItemTypeEnum, y as notFoundSummaryQuery, yn as fieldResponseSchema, yr as roleLevel, yt as createMenuItemBody, z as userUpdateBody, zn as mediaUploadUrlResponseSchema, zt as signupCompleteBody } from "../../byline-fields-CKhPED5o.mjs";
|
|
2
2
|
import { atprotoLoginBody, setupAdminBody, setupAdminVerifyBody, setupAtprotoAdminBody, setupBody } from "./setup.mjs";
|
|
3
3
|
export { DEFAULT_MAX_UPLOAD_SIZE, VALID_ROLE_LEVELS, adminCommentListResponseSchema, allowedDomainCreateBody, allowedDomainUpdateBody, apiErrorSchema, atprotoLoginBody, authMeActionBody, bylineCreateBody, bylineCreditSchema, bylineFieldCreateBody, bylineFieldDefinitionSchema, bylineFieldListResponseSchema, bylineFieldReorderBody, bylineFieldUpdateBody, bylineFieldUsageResponseSchema, bylineListResponseSchema, bylineSummarySchema, bylineUpdateBody, bylinesListQuery, collectionGetQuery, collectionListResponseSchema, collectionResponseSchema, collectionSchema, collectionWithFieldsResponseSchema, commentBulkBody, commentBulkResponseSchema, commentCountsResponseSchema, commentListQuery, commentSchema, commentStatusBody, contentAuthorSchema, contentAuthorsResponseSchema, contentBylineInputSchema, contentCompareResponseSchema, contentCreateBody, contentItemSchema, contentListQuery, contentListResponseSchema, contentPreviewUrlBody, contentPublicationReceiptSchema, contentPublishBody, contentPublishResponseSchema, contentReleaseReadinessQuery, contentReleaseReadinessResponseSchema, contentResponseSchema, contentScheduleBody, contentSeoInput, contentSeoSchema, contentTermsBody, contentTranslationSchema, contentTranslationsResponseSchema, contentTrashQuery, contentUpdateBody, contextEntryCreateBody, contextEntryDiffQuery, contextEntryListQuery, contextEntryReviewBody, contextEntryStaleQuery, contextEntrySupersedeBody, countResponseSchema, createCollectionBody, createCommentBody, createFieldBody, createMenuBody, createMenuItemBody, createReactionBody, createRedirectBody, createSectionBody, createTaxonomyDefBody, createTermBody, createWidgetAreaBody, createWidgetBody, cursorPaginationQuery, deleteResponseSchema, fieldListResponseSchema, fieldReorderBody, fieldResponseSchema, fieldSchema, formatFileSize, hitlRequestListQuery, hitlRequestResolveBody, httpUrl, importProbeBody, inviteCompleteBody, inviteCreateBody, inviteRegisterOptionsBody, localeCode, localeFilterQuery, magicLinkSendBody, mediaConfirmBody, mediaConfirmResponseSchema, mediaExistingResponseSchema, mediaItemSchema, mediaListQuery, mediaListResponseSchema, mediaProviderListQuery, mediaResponseSchema, mediaUpdateBody, mediaUploadUrlBody, mediaUploadUrlResponseSchema, menuItemSchema, menuItemTypeEnum, menuListItemSchema, menuSchema, menuTranslationsSchema, menuWithItemsSchema, notFoundEntrySchema, notFoundListQuery, notFoundListResponseSchema, notFoundPruneBody, notFoundSummaryQuery, notFoundSummaryResponseSchema, notFoundSummarySchema, offsetPaginationQuery, orphanRegisterBody, orphanedTableListResponseSchema, orphanedTableSchema, passkeyOptionsBody, passkeyRegisterOptionsBody, passkeyRegisterVerifyBody, passkeyRenameBody, passkeyVerifyBody, publicCommentListResponseSchema, publicCommentSchema, redirectListResponseSchema, redirectSchema, redirectsListQuery, reorderMenuItemsBody, reorderWidgetsBody, reviewRequestCreateBody, reviewRequestListQuery, reviewRequestResolveBody, roleLevel, schemaExportQuery, searchEnableBody, searchQuery, searchRebuildBody, searchResponseSchema, searchResultSchema, searchSuggestQuery, sectionListResponseSchema, sectionSchema, sectionsListQuery, settingsUpdateBody, setupAdminBody, setupAdminVerifyBody, setupAtprotoAdminBody, setupBody, signupCompleteBody, signupRequestBody, siteBriefingQuery, siteSettingsSchema, slugPattern, successEnvelope, taxonomyDefSchema, taxonomyDefTranslationsSchema, taxonomyListResponseSchema, termGetResponseSchema, termListResponseSchema, termResponseSchema, termSchema, termTranslationsSchema, termWithCountSchema, trashedContentItemSchema, trashedContentListResponseSchema, updateCollectionBody, updateFieldBody, updateMenuBody, updateMenuItemBody, updateRedirectBody, updateSectionBody, updateTermBody, updateWidgetBody, userDetailSchema, userListResponseSchema, userSchema, userUpdateBody, usersListQuery, widgetAreaSchema, widgetAreaWithWidgetsAndCountSchema, widgetAreaWithWidgetsSchema, widgetSchema, wpMediaImportBody, wpPluginAnalyzeBody, wpPluginExecuteBody, wpPrepareBody, wpRewriteUrlsBody };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../../context-types-
|
|
2
|
-
import "../../public-discovery-
|
|
3
|
-
import { $ as createMenuBody, $t as contentCompareResponseSchema, A as searchRebuildBody, An as countResponseSchema, At as fieldResponseSchema, B as updateSectionBody, Bt as mediaConfirmBody, C as userDetailSchema, Cn as bylineListResponseSchema, Ct as collectionResponseSchema, D as usersListQuery, Dn as contentBylineInputSchema, Dt as createFieldBody, E as userUpdateBody, En as bylinesListQuery, Et as createCollectionBody, F as siteSettingsSchema, Fn as localeFilterQuery, Ft as schemaExportQuery, G as taxonomyListResponseSchema, Gt as mediaListResponseSchema, H as createTermBody, Ht as mediaExistingResponseSchema, I as createSectionBody, In as offsetPaginationQuery, It as updateCollectionBody, J as termResponseSchema, Jt as mediaUpdateBody, K as termGetResponseSchema, Kt as mediaProviderListQuery, L as sectionListResponseSchema, Ln as roleLevel, Lt as updateFieldBody, M as searchResultSchema, Mn as deleteResponseSchema, Mt as orphanRegisterBody, N as searchSuggestQuery, Nn as httpUrl, Nt as orphanedTableListResponseSchema, O as searchEnableBody, On as VALID_ROLE_LEVELS, Ot as fieldListResponseSchema, P as settingsUpdateBody, Pn as localeCode, Pt as orphanedTableSchema, Q as updateTermBody, Qt as contentAuthorsResponseSchema, R as sectionSchema, Rn as slugPattern, Rt as DEFAULT_MAX_UPLOAD_SIZE, S as allowedDomainUpdateBody, Sn as bylineCreditSchema, St as collectionListResponseSchema, T as userSchema, Tn as bylineUpdateBody, Tt as collectionWithFieldsResponseSchema, U as taxonomyDefSchema, Ut as mediaItemSchema, V as createTaxonomyDefBody, Vt as mediaConfirmResponseSchema, W as taxonomyDefTranslationsSchema, Wt as mediaListQuery, X as termTranslationsSchema, Xt as mediaUploadUrlResponseSchema, Y as termSchema, Yt as mediaUploadUrlBody, Z as termWithCountSchema, Zt as contentAuthorSchema, _ as widgetAreaSchema, _n as contentTrashQuery, _t as createCommentBody, a as notFoundPruneBody, an as contentPublicationReceiptSchema, at as menuTranslationsSchema, b as widgetSchema, bn as trashedContentListResponseSchema, bt as publicCommentSchema, c as notFoundSummarySchema, cn as contentReleaseReadinessQuery, ct as updateMenuBody, d as redirectsListQuery, dn as contentScheduleBody, dt as commentBulkBody, en as contentCreateBody, et as createMenuItemBody, f as updateRedirectBody, fn as contentSeoInput, ft as commentBulkResponseSchema, g as updateWidgetBody, gn as contentTranslationsResponseSchema, gt as commentStatusBody, h as reorderWidgetsBody, hn as contentTranslationSchema, ht as commentSchema, i as notFoundListResponseSchema, in as contentPreviewUrlBody, it as menuSchema, j as searchResponseSchema, jn as cursorPaginationQuery, jt as fieldSchema, k as searchQuery, kn as apiErrorSchema, kt as fieldReorderBody, l as redirectListResponseSchema, ln as contentReleaseReadinessResponseSchema, lt as updateMenuItemBody, m as createWidgetBody, mn as contentTermsBody, mt as commentListQuery, n as notFoundEntrySchema, nn as contentListQuery, nt as menuItemTypeEnum, o as notFoundSummaryQuery, on as contentPublishBody, ot as menuWithItemsSchema, p as createWidgetAreaBody, pn as contentSeoSchema, pt as commentCountsResponseSchema, q as termListResponseSchema, qt as mediaResponseSchema, r as notFoundListQuery, rn as contentListResponseSchema, rt as menuListItemSchema, s as notFoundSummaryResponseSchema, sn as contentPublishResponseSchema, st as reorderMenuItemsBody, t as createRedirectBody, tn as contentItemSchema, tt as menuItemSchema, u as redirectSchema, un as contentResponseSchema, ut as adminCommentListResponseSchema, v as widgetAreaWithWidgetsAndCountSchema, vn as contentUpdateBody, vt as createReactionBody, w as userListResponseSchema, wn as bylineSummarySchema, wt as collectionSchema, x as allowedDomainCreateBody, xn as bylineCreateBody, xt as collectionGetQuery, y as widgetAreaWithWidgetsSchema, yn as trashedContentItemSchema, yt as publicCommentListResponseSchema, z as sectionsListQuery, zn as successEnvelope, zt as formatFileSize } from "../../redirects-
|
|
4
|
-
import { A as siteBriefingQuery, C as signupCompleteBody, D as reviewRequestResolveBody, E as reviewRequestListQuery, F as contextEntryStaleQuery, I as contextEntrySupersedeBody, M as contextEntryDiffQuery, N as contextEntryListQuery, O as hitlRequestListQuery, P as contextEntryReviewBody, S as passkeyVerifyBody, T as reviewRequestCreateBody, _ as magicLinkSendBody, a as bylineFieldUpdateBody, b as passkeyRegisterVerifyBody, c as wpMediaImportBody, d as wpPrepareBody, f as wpRewriteUrlsBody, g as inviteRegisterOptionsBody, h as inviteCreateBody, i as bylineFieldReorderBody, j as contextEntryCreateBody, k as hitlRequestResolveBody, l as wpPluginAnalyzeBody, m as inviteCompleteBody, n as bylineFieldDefinitionSchema, o as bylineFieldUsageResponseSchema, p as authMeActionBody, r as bylineFieldListResponseSchema, s as importProbeBody, t as bylineFieldCreateBody, u as wpPluginExecuteBody, v as passkeyOptionsBody, w as signupRequestBody, x as passkeyRenameBody, y as passkeyRegisterOptionsBody } from "../../byline-fields-
|
|
1
|
+
import "../../context-types-CPWAJRs5.mjs";
|
|
2
|
+
import "../../public-discovery-BGyhuD5U.mjs";
|
|
3
|
+
import { $ as createMenuBody, $t as contentCompareResponseSchema, A as searchRebuildBody, An as countResponseSchema, At as fieldResponseSchema, B as updateSectionBody, Bt as mediaConfirmBody, C as userDetailSchema, Cn as bylineListResponseSchema, Ct as collectionResponseSchema, D as usersListQuery, Dn as contentBylineInputSchema, Dt as createFieldBody, E as userUpdateBody, En as bylinesListQuery, Et as createCollectionBody, F as siteSettingsSchema, Fn as localeFilterQuery, Ft as schemaExportQuery, G as taxonomyListResponseSchema, Gt as mediaListResponseSchema, H as createTermBody, Ht as mediaExistingResponseSchema, I as createSectionBody, In as offsetPaginationQuery, It as updateCollectionBody, J as termResponseSchema, Jt as mediaUpdateBody, K as termGetResponseSchema, Kt as mediaProviderListQuery, L as sectionListResponseSchema, Ln as roleLevel, Lt as updateFieldBody, M as searchResultSchema, Mn as deleteResponseSchema, Mt as orphanRegisterBody, N as searchSuggestQuery, Nn as httpUrl, Nt as orphanedTableListResponseSchema, O as searchEnableBody, On as VALID_ROLE_LEVELS, Ot as fieldListResponseSchema, P as settingsUpdateBody, Pn as localeCode, Pt as orphanedTableSchema, Q as updateTermBody, Qt as contentAuthorsResponseSchema, R as sectionSchema, Rn as slugPattern, Rt as DEFAULT_MAX_UPLOAD_SIZE, S as allowedDomainUpdateBody, Sn as bylineCreditSchema, St as collectionListResponseSchema, T as userSchema, Tn as bylineUpdateBody, Tt as collectionWithFieldsResponseSchema, U as taxonomyDefSchema, Ut as mediaItemSchema, V as createTaxonomyDefBody, Vt as mediaConfirmResponseSchema, W as taxonomyDefTranslationsSchema, Wt as mediaListQuery, X as termTranslationsSchema, Xt as mediaUploadUrlResponseSchema, Y as termSchema, Yt as mediaUploadUrlBody, Z as termWithCountSchema, Zt as contentAuthorSchema, _ as widgetAreaSchema, _n as contentTrashQuery, _t as createCommentBody, a as notFoundPruneBody, an as contentPublicationReceiptSchema, at as menuTranslationsSchema, b as widgetSchema, bn as trashedContentListResponseSchema, bt as publicCommentSchema, c as notFoundSummarySchema, cn as contentReleaseReadinessQuery, ct as updateMenuBody, d as redirectsListQuery, dn as contentScheduleBody, dt as commentBulkBody, en as contentCreateBody, et as createMenuItemBody, f as updateRedirectBody, fn as contentSeoInput, ft as commentBulkResponseSchema, g as updateWidgetBody, gn as contentTranslationsResponseSchema, gt as commentStatusBody, h as reorderWidgetsBody, hn as contentTranslationSchema, ht as commentSchema, i as notFoundListResponseSchema, in as contentPreviewUrlBody, it as menuSchema, j as searchResponseSchema, jn as cursorPaginationQuery, jt as fieldSchema, k as searchQuery, kn as apiErrorSchema, kt as fieldReorderBody, l as redirectListResponseSchema, ln as contentReleaseReadinessResponseSchema, lt as updateMenuItemBody, m as createWidgetBody, mn as contentTermsBody, mt as commentListQuery, n as notFoundEntrySchema, nn as contentListQuery, nt as menuItemTypeEnum, o as notFoundSummaryQuery, on as contentPublishBody, ot as menuWithItemsSchema, p as createWidgetAreaBody, pn as contentSeoSchema, pt as commentCountsResponseSchema, q as termListResponseSchema, qt as mediaResponseSchema, r as notFoundListQuery, rn as contentListResponseSchema, rt as menuListItemSchema, s as notFoundSummaryResponseSchema, sn as contentPublishResponseSchema, st as reorderMenuItemsBody, t as createRedirectBody, tn as contentItemSchema, tt as menuItemSchema, u as redirectSchema, un as contentResponseSchema, ut as adminCommentListResponseSchema, v as widgetAreaWithWidgetsAndCountSchema, vn as contentUpdateBody, vt as createReactionBody, w as userListResponseSchema, wn as bylineSummarySchema, wt as collectionSchema, x as allowedDomainCreateBody, xn as bylineCreateBody, xt as collectionGetQuery, y as widgetAreaWithWidgetsSchema, yn as trashedContentItemSchema, yt as publicCommentListResponseSchema, z as sectionsListQuery, zn as successEnvelope, zt as formatFileSize } from "../../redirects-CVfxefrz.mjs";
|
|
4
|
+
import { A as siteBriefingQuery, C as signupCompleteBody, D as reviewRequestResolveBody, E as reviewRequestListQuery, F as contextEntryStaleQuery, I as contextEntrySupersedeBody, M as contextEntryDiffQuery, N as contextEntryListQuery, O as hitlRequestListQuery, P as contextEntryReviewBody, S as passkeyVerifyBody, T as reviewRequestCreateBody, _ as magicLinkSendBody, a as bylineFieldUpdateBody, b as passkeyRegisterVerifyBody, c as wpMediaImportBody, d as wpPrepareBody, f as wpRewriteUrlsBody, g as inviteRegisterOptionsBody, h as inviteCreateBody, i as bylineFieldReorderBody, j as contextEntryCreateBody, k as hitlRequestResolveBody, l as wpPluginAnalyzeBody, m as inviteCompleteBody, n as bylineFieldDefinitionSchema, o as bylineFieldUsageResponseSchema, p as authMeActionBody, r as bylineFieldListResponseSchema, s as importProbeBody, t as bylineFieldCreateBody, u as wpPluginExecuteBody, v as passkeyOptionsBody, w as signupRequestBody, x as passkeyRenameBody, y as passkeyRegisterOptionsBody } from "../../byline-fields-DZ46DF10.mjs";
|
|
5
5
|
import { atprotoLoginBody, setupAdminBody, setupAdminVerifyBody, setupAtprotoAdminBody, setupBody } from "./setup.mjs";
|
|
6
|
-
import "../../status-
|
|
6
|
+
import "../../status-Bjf_uSrW.mjs";
|
|
7
7
|
|
|
8
8
|
export { DEFAULT_MAX_UPLOAD_SIZE, VALID_ROLE_LEVELS, adminCommentListResponseSchema, allowedDomainCreateBody, allowedDomainUpdateBody, apiErrorSchema, atprotoLoginBody, authMeActionBody, bylineCreateBody, bylineCreditSchema, bylineFieldCreateBody, bylineFieldDefinitionSchema, bylineFieldListResponseSchema, bylineFieldReorderBody, bylineFieldUpdateBody, bylineFieldUsageResponseSchema, bylineListResponseSchema, bylineSummarySchema, bylineUpdateBody, bylinesListQuery, collectionGetQuery, collectionListResponseSchema, collectionResponseSchema, collectionSchema, collectionWithFieldsResponseSchema, commentBulkBody, commentBulkResponseSchema, commentCountsResponseSchema, commentListQuery, commentSchema, commentStatusBody, contentAuthorSchema, contentAuthorsResponseSchema, contentBylineInputSchema, contentCompareResponseSchema, contentCreateBody, contentItemSchema, contentListQuery, contentListResponseSchema, contentPreviewUrlBody, contentPublicationReceiptSchema, contentPublishBody, contentPublishResponseSchema, contentReleaseReadinessQuery, contentReleaseReadinessResponseSchema, contentResponseSchema, contentScheduleBody, contentSeoInput, contentSeoSchema, contentTermsBody, contentTranslationSchema, contentTranslationsResponseSchema, contentTrashQuery, contentUpdateBody, contextEntryCreateBody, contextEntryDiffQuery, contextEntryListQuery, contextEntryReviewBody, contextEntryStaleQuery, contextEntrySupersedeBody, countResponseSchema, createCollectionBody, createCommentBody, createFieldBody, createMenuBody, createMenuItemBody, createReactionBody, createRedirectBody, createSectionBody, createTaxonomyDefBody, createTermBody, createWidgetAreaBody, createWidgetBody, cursorPaginationQuery, deleteResponseSchema, fieldListResponseSchema, fieldReorderBody, fieldResponseSchema, fieldSchema, formatFileSize, hitlRequestListQuery, hitlRequestResolveBody, httpUrl, importProbeBody, inviteCompleteBody, inviteCreateBody, inviteRegisterOptionsBody, localeCode, localeFilterQuery, magicLinkSendBody, mediaConfirmBody, mediaConfirmResponseSchema, mediaExistingResponseSchema, mediaItemSchema, mediaListQuery, mediaListResponseSchema, mediaProviderListQuery, mediaResponseSchema, mediaUpdateBody, mediaUploadUrlBody, mediaUploadUrlResponseSchema, menuItemSchema, menuItemTypeEnum, menuListItemSchema, menuSchema, menuTranslationsSchema, menuWithItemsSchema, notFoundEntrySchema, notFoundListQuery, notFoundListResponseSchema, notFoundPruneBody, notFoundSummaryQuery, notFoundSummaryResponseSchema, notFoundSummarySchema, offsetPaginationQuery, orphanRegisterBody, orphanedTableListResponseSchema, orphanedTableSchema, passkeyOptionsBody, passkeyRegisterOptionsBody, passkeyRegisterVerifyBody, passkeyRenameBody, passkeyVerifyBody, publicCommentListResponseSchema, publicCommentSchema, redirectListResponseSchema, redirectSchema, redirectsListQuery, reorderMenuItemsBody, reorderWidgetsBody, reviewRequestCreateBody, reviewRequestListQuery, reviewRequestResolveBody, roleLevel, schemaExportQuery, searchEnableBody, searchQuery, searchRebuildBody, searchResponseSchema, searchResultSchema, searchSuggestQuery, sectionListResponseSchema, sectionSchema, sectionsListQuery, settingsUpdateBody, setupAdminBody, setupAdminVerifyBody, setupAtprotoAdminBody, setupBody, signupCompleteBody, signupRequestBody, siteBriefingQuery, siteSettingsSchema, slugPattern, successEnvelope, taxonomyDefSchema, taxonomyDefTranslationsSchema, taxonomyListResponseSchema, termGetResponseSchema, termListResponseSchema, termResponseSchema, termSchema, termTranslationsSchema, termWithCountSchema, trashedContentItemSchema, trashedContentListResponseSchema, updateCollectionBody, updateFieldBody, updateMenuBody, updateMenuItemBody, updateRedirectBody, updateSectionBody, updateTermBody, updateWidgetBody, userDetailSchema, userListResponseSchema, userSchema, userUpdateBody, usersListQuery, widgetAreaSchema, widgetAreaWithWidgetsAndCountSchema, widgetAreaWithWidgetsSchema, widgetSchema, wpMediaImportBody, wpPluginAnalyzeBody, wpPluginExecuteBody, wpPrepareBody, wpRewriteUrlsBody };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
+
import { after } from "./after.mjs";
|
|
1
2
|
import { atomicBatch, rowUnchanged } from "./database/batch.mjs";
|
|
2
3
|
import { r as validatePluginIdentifier } from "./validate-Co3j6T_K.mjs";
|
|
3
4
|
import { t as contentWriteChecks } from "./atomic-authority-CnBQJ14T.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { n as
|
|
11
|
-
import { n as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { t as DinewayStorageError } from "./types-BKsk4nnM.mjs";
|
|
5
|
+
import { o as invalidateCollectionCache } from "./object-cache-mxCW-Rpt.mjs";
|
|
6
|
+
import { t as RevisionRepository } from "./revision-W6FDfDqx.mjs";
|
|
7
|
+
import { t as ContentRepository } from "./content-CIKsrvU9.mjs";
|
|
8
|
+
import { t as MediaRepository } from "./media-C5ba8fvI.mjs";
|
|
9
|
+
import { u as PluginStateRepository } from "./briefing-COw-WcYz.mjs";
|
|
10
|
+
import { n as hashString } from "./hash-D2Rqd2J2.mjs";
|
|
11
|
+
import { n as SchemaRegistry, t as SchemaError } from "./registry-Dclv9iHv.mjs";
|
|
12
|
+
import { n as VERSION, t as COMMIT } from "./version-BnLdwIT1.mjs";
|
|
13
|
+
import { a as reconcileManifestAccess, i as pluginManifestSchema, r as normalizeManifestRoute } from "./manifest-schema-CCvogfrP.mjs";
|
|
14
|
+
import { t as DinewayStorageError } from "./types-PLJ9hlhh.mjs";
|
|
15
15
|
import { sql } from "kysely";
|
|
16
16
|
import { z } from "zod";
|
|
17
17
|
import { createGzipDecoder, unpackTar } from "modern-tar";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { c as __exportAll } from "./runner-
|
|
1
|
+
import { c as __exportAll } from "./runner-CRU7BXjr.mjs";
|
|
2
2
|
import { atomicBatch, rowUnchanged } from "./database/batch.mjs";
|
|
3
3
|
import { n as getI18nConfig } from "./config-XW5tMrH8.mjs";
|
|
4
|
-
import { o as invalidateCollectionCache } from "./object-cache-
|
|
5
|
-
import { t as ContentRepository } from "./content-
|
|
6
|
-
import { t as MediaRepository } from "./media-
|
|
7
|
-
import { t as TaxonomyRepository } from "./taxonomy-
|
|
8
|
-
import { t as RedirectRepository } from "./redirect-
|
|
9
|
-
import { t as BylineRepository } from "./byline-
|
|
10
|
-
import { a as markContentMediaUsageCollectionStaleSafely, o as prepareContentMediaUsageCollectionStale } from "./content-refresh-
|
|
11
|
-
import { a as validateExternalUrl, r as ssrfSafeFetch } from "./ssrf-
|
|
12
|
-
import { t as FTSManager } from "./fts-manager-
|
|
13
|
-
import { n as SchemaRegistry } from "./registry-
|
|
14
|
-
import { s as setSiteSettings } from "./settings-
|
|
15
|
-
import { t as validateSeed } from "./validate-
|
|
4
|
+
import { o as invalidateCollectionCache } from "./object-cache-mxCW-Rpt.mjs";
|
|
5
|
+
import { t as ContentRepository } from "./content-CIKsrvU9.mjs";
|
|
6
|
+
import { t as MediaRepository } from "./media-C5ba8fvI.mjs";
|
|
7
|
+
import { t as TaxonomyRepository } from "./taxonomy-DN6i1upz.mjs";
|
|
8
|
+
import { t as RedirectRepository } from "./redirect-BQFa1THe.mjs";
|
|
9
|
+
import { t as BylineRepository } from "./byline-TYk2kad6.mjs";
|
|
10
|
+
import { a as markContentMediaUsageCollectionStaleSafely, o as prepareContentMediaUsageCollectionStale } from "./content-refresh-BilzqcLt.mjs";
|
|
11
|
+
import { a as validateExternalUrl, r as ssrfSafeFetch } from "./ssrf-C9dyjU8O.mjs";
|
|
12
|
+
import { t as FTSManager } from "./fts-manager-BrPpYtK0.mjs";
|
|
13
|
+
import { n as SchemaRegistry } from "./registry-Dclv9iHv.mjs";
|
|
14
|
+
import { s as setSiteSettings } from "./settings-DsBzKeUQ.mjs";
|
|
15
|
+
import { t as validateSeed } from "./validate-C05z0m7M.mjs";
|
|
16
16
|
import { sql } from "kysely";
|
|
17
17
|
import { ulid } from "ulidx";
|
|
18
18
|
import { imageSize } from "image-size";
|
|
@@ -289,7 +289,7 @@ async function applySeed(db, seed, options = {}) {
|
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
|
-
const { invalidateTaxonomyDefsCache } = await import("./taxonomies-
|
|
292
|
+
const { invalidateTaxonomyDefsCache } = await import("./taxonomies-lWGNLKgn.mjs").then((n) => n.u);
|
|
293
293
|
invalidateTaxonomyDefsCache();
|
|
294
294
|
}
|
|
295
295
|
if (includeContent && seed.bylines) {
|
|
@@ -518,9 +518,9 @@ async function applySeed(db, seed, options = {}) {
|
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
const { invalidateBylineCache } = await import("./bylines-
|
|
522
|
-
const { invalidateUrlPatternCache } = await import("./query-
|
|
523
|
-
const { invalidateRedirectCache } = await import("./cache-
|
|
521
|
+
const { invalidateBylineCache } = await import("./bylines-CvTSCAw9.mjs").then((n) => n.t);
|
|
522
|
+
const { invalidateUrlPatternCache } = await import("./query-xspvw7Ui.mjs").then((n) => n.o);
|
|
523
|
+
const { invalidateRedirectCache } = await import("./cache-B5NSHhxG.mjs").then((n) => n.t);
|
|
524
524
|
invalidateBylineCache();
|
|
525
525
|
invalidateUrlPatternCache();
|
|
526
526
|
invalidateRedirectCache();
|
|
@@ -626,7 +626,7 @@ async function writeSeedContent(db, collection, entry, data, bylineIds, target)
|
|
|
626
626
|
statements
|
|
627
627
|
});
|
|
628
628
|
invalidateCollectionCache(collection);
|
|
629
|
-
const { invalidateTermCache } = await import("./taxonomies-
|
|
629
|
+
const { invalidateTermCache } = await import("./taxonomies-lWGNLKgn.mjs").then((n) => n.u);
|
|
630
630
|
invalidateTermCache();
|
|
631
631
|
const item = await repository.findById(collection, id);
|
|
632
632
|
if (!item) throw new Error("Failed to reload seeded content");
|
package/dist/astro/index.d.mts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { i as ContentItem } from "../types-
|
|
2
|
-
import { Ao as
|
|
3
|
-
import "../types-
|
|
4
|
-
import "../runner-
|
|
5
|
-
import "../index-
|
|
6
|
-
import "../types-
|
|
7
|
-
import
|
|
8
|
-
import "../
|
|
9
|
-
import "../
|
|
10
|
-
import "../
|
|
11
|
-
import "../
|
|
1
|
+
import { i as ContentItem } from "../types-CgcOeaiQ.mjs";
|
|
2
|
+
import { Ao as getStoredConfig, At as ResolvedPlugin, Mo as S3StorageConfig, No as StorageDescriptor, Oo as DinewayConfig, Ws as MediaItem, jo as LocalStorageConfig } from "../types-CJynaYg1.mjs";
|
|
3
|
+
import "../types-B--VyN3n.mjs";
|
|
4
|
+
import "../runner-SoP1rphP.mjs";
|
|
5
|
+
import "../index-BVGe04wF.mjs";
|
|
6
|
+
import "../types-B03h5jt_.mjs";
|
|
7
|
+
import "../adapters-C8nRpUuj.mjs";
|
|
8
|
+
import { i as ObjectCacheRuntimeConfig, r as ObjectCacheDescriptor } from "../types-CtGSEKEJ.mjs";
|
|
9
|
+
import "../scheduled-publish-BxdShRGs.mjs";
|
|
10
|
+
import "../public-url-Ccv0Xmue.mjs";
|
|
11
|
+
import "../validate-kmN2lS8H.mjs";
|
|
12
|
+
import "../byline-fields-CKhPED5o.mjs";
|
|
13
|
+
import "../types-DsJTXStN.mjs";
|
|
12
14
|
import { DinewayHandlers, DinewayManifest, ManifestCollection } from "./types.mjs";
|
|
13
15
|
import { AstroIntegration } from "astro";
|
|
14
16
|
|
package/dist/astro/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as INTERNAL_MEDIA_PREFIX } from "../normalize-
|
|
2
|
-
import { n as VERSION, t as COMMIT } from "../version-
|
|
3
|
-
import { t as defaultSeed } from "../default-
|
|
4
|
-
import { n as validateAllowedOrigins, r as validateOriginShape } from "../allowed-origins-
|
|
5
|
-
import { r as writeWorkersBuildMetadata } from "../workers-build-
|
|
1
|
+
import { t as INTERNAL_MEDIA_PREFIX } from "../normalize-aTwryvvi.mjs";
|
|
2
|
+
import { n as VERSION, t as COMMIT } from "../version-BnLdwIT1.mjs";
|
|
3
|
+
import { t as defaultSeed } from "../default-BS6VQRkB.mjs";
|
|
4
|
+
import { n as validateAllowedOrigins, r as validateOriginShape } from "../allowed-origins-DiVrMLxh.mjs";
|
|
5
|
+
import { r as writeWorkersBuildMetadata } from "../workers-build-5UQ4j69Q.mjs";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
7
7
|
import { existsSync, readFileSync } from "node:fs";
|
|
8
8
|
import { dirname, isAbsolute, relative, resolve } from "node:path";
|
|
@@ -1061,13 +1061,14 @@ function generateConfigModule(serializableConfig) {
|
|
|
1061
1061
|
* Generates the dialect virtual module.
|
|
1062
1062
|
* Statically imports the configured database dialect and exports the dialect type.
|
|
1063
1063
|
*/
|
|
1064
|
-
function generateDialectModule(
|
|
1065
|
-
|
|
1066
|
-
const
|
|
1064
|
+
function generateDialectModule(opts) {
|
|
1065
|
+
const { entrypoint, supportsRequestScope } = opts;
|
|
1066
|
+
if (!entrypoint) return "export const createDialect = undefined; export const dialectType = \"sqlite\"; export const createRequestScopedDb = () => null; export const createCoalescingDialect = undefined;";
|
|
1067
1067
|
return `
|
|
1068
|
-
import { createDialect
|
|
1069
|
-
export
|
|
1070
|
-
export const dialectType = ${JSON.stringify(type)};
|
|
1068
|
+
import { createDialect } from "${entrypoint}";
|
|
1069
|
+
export { createDialect };
|
|
1070
|
+
export const dialectType = ${JSON.stringify(opts.type ?? "sqlite")};
|
|
1071
|
+
${supportsRequestScope ? `export { createRequestScopedDb } from "${entrypoint}"; import * as adapter from "${entrypoint}"; export const createCoalescingDialect = Reflect.get(adapter, "createCoalescingDialect");` : "export const createRequestScopedDb = () => null; export const createCoalescingDialect = undefined;"}
|
|
1071
1072
|
`;
|
|
1072
1073
|
}
|
|
1073
1074
|
/**
|
|
@@ -1377,7 +1378,7 @@ function isWorkersAdapter(name) {
|
|
|
1377
1378
|
return name === "@astrojs/cloudflare";
|
|
1378
1379
|
}
|
|
1379
1380
|
function validateWorkersConfig(config) {
|
|
1380
|
-
if (config.database?.entrypoint !== "dineway/db/d1") throw new Error("Cloudflare Workers require database: d1() from dineway/
|
|
1381
|
+
if (config.database?.entrypoint !== "@dineway-ai/cloudflare/db/d1") throw new Error("Cloudflare Workers require database: d1() from @dineway-ai/cloudflare. Apply D1 migrations explicitly before deployment.");
|
|
1381
1382
|
if (!config.storage || config.storage.entrypoint === "dineway/storage/local") throw new Error("Cloudflare Workers require durable object storage. Use storage: s3() from dineway/astro, with S3_* runtime secrets (including R2's S3 API).");
|
|
1382
1383
|
if ((config.sandboxed?.length || config.marketplace) && !config.sandboxRunner) throw new Error("Cloudflare Workers require a Workers-compatible sandboxRunner for sandboxed plugins or the marketplace. The default Node worker-thread sandbox is unavailable.");
|
|
1383
1384
|
if (config.playground) throw new Error("The Node playground is unavailable on Cloudflare Workers.");
|
|
@@ -1483,7 +1484,11 @@ function createVirtualModulesPlugin(options) {
|
|
|
1483
1484
|
},
|
|
1484
1485
|
load(id) {
|
|
1485
1486
|
if (id === RESOLVED_VIRTUAL_CONFIG_ID) return generateConfigModule(serializableConfig);
|
|
1486
|
-
if (id === RESOLVED_VIRTUAL_DIALECT_ID) return generateDialectModule(
|
|
1487
|
+
if (id === RESOLVED_VIRTUAL_DIALECT_ID) return generateDialectModule({
|
|
1488
|
+
entrypoint: resolvedConfig.database?.entrypoint,
|
|
1489
|
+
type: resolvedConfig.database?.type,
|
|
1490
|
+
supportsRequestScope: resolvedConfig.database?.supportsRequestScope ?? false
|
|
1491
|
+
});
|
|
1487
1492
|
if (id === RESOLVED_VIRTUAL_STORAGE_ID) return generateStorageModule(resolvedConfig.storage?.entrypoint);
|
|
1488
1493
|
if (id === RESOLVED_VIRTUAL_OBJECT_CACHE_ID) return generateObjectCacheModule(resolvedConfig.objectCache?.entrypoint, resolvedConfig.objectCache?.config);
|
|
1489
1494
|
if (id === RESOLVED_VIRTUAL_PLUGINS_ID) return generatePluginsModule(pluginDescriptors);
|
|
@@ -1691,6 +1696,7 @@ function resolveImageEndpoint(opts) {
|
|
|
1691
1696
|
if (opts.imagesDisabled) return {};
|
|
1692
1697
|
const current = opts.currentEntrypoint;
|
|
1693
1698
|
if (current === void 0 || OVERRIDABLE_IMAGE_ENDPOINTS.has(current)) return { entrypoint: "dineway/image-endpoint" };
|
|
1699
|
+
if (current === "@astrojs/cloudflare/image-transform-endpoint") return { entrypoint: "@dineway-ai/cloudflare/image-endpoint" };
|
|
1694
1700
|
if (PASSTHROUGH_IMAGE_ENDPOINTS.has(current)) return {};
|
|
1695
1701
|
return { warn: `A custom image.endpoint (${current}) is configured; Dineway will not wrap it, so storage-backed media may render unoptimized.` };
|
|
1696
1702
|
}
|
|
@@ -1867,7 +1873,7 @@ function dineway(config = {}) {
|
|
|
1867
1873
|
order: "pre"
|
|
1868
1874
|
});
|
|
1869
1875
|
if (isWorkersAdapter(astroConfig.adapter?.name)) addMiddleware({
|
|
1870
|
-
entrypoint: "dineway/middleware
|
|
1876
|
+
entrypoint: "@dineway-ai/cloudflare/middleware",
|
|
1871
1877
|
order: "pre"
|
|
1872
1878
|
});
|
|
1873
1879
|
addMiddleware({
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../../types-
|
|
3
|
-
import "../../runner-
|
|
4
|
-
import "../../index-
|
|
5
|
-
import "../../types-
|
|
6
|
-
import "../../
|
|
7
|
-
import "../../
|
|
8
|
-
import "../../
|
|
9
|
-
import "../../
|
|
1
|
+
import { po as SiteAuthTokenContext } from "../../types-CJynaYg1.mjs";
|
|
2
|
+
import "../../types-B--VyN3n.mjs";
|
|
3
|
+
import "../../runner-SoP1rphP.mjs";
|
|
4
|
+
import "../../index-BVGe04wF.mjs";
|
|
5
|
+
import "../../types-B03h5jt_.mjs";
|
|
6
|
+
import "../../adapters-C8nRpUuj.mjs";
|
|
7
|
+
import "../../scheduled-publish-BxdShRGs.mjs";
|
|
8
|
+
import "../../public-url-Ccv0Xmue.mjs";
|
|
9
|
+
import "../../validate-kmN2lS8H.mjs";
|
|
10
|
+
import "../../byline-fields-CKhPED5o.mjs";
|
|
11
|
+
import "../../types-DsJTXStN.mjs";
|
|
10
12
|
import { DinewayHandlers } from "../types.mjs";
|
|
11
13
|
import { User } from "@dineway-ai/auth";
|
|
12
14
|
import * as astro from "astro";
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import "../../d1-binding-D6HZa3ks.mjs";
|
|
2
1
|
import { getRequestContext, runWithContext } from "../../request-context.mjs";
|
|
2
|
+
import "../../d1-binding-DrLMBUxu.mjs";
|
|
3
3
|
import "../../dialect-helpers-C6xtO-Ui.mjs";
|
|
4
4
|
import { n as bindOAuthTokenHash } from "../../actor-DxUAJgQX.mjs";
|
|
5
5
|
import { n as prepareAuthenticatedWriteChecks } from "../../atomic-authority-CnBQJ14T.mjs";
|
|
6
|
-
import "../../
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { t as
|
|
11
|
-
import {
|
|
12
|
-
import { a as resolveApiToken, o as resolveOAuthToken } from "../../api-tokens-OAgvq4xg.mjs";
|
|
6
|
+
import { t as apiError } from "../../error-B5a45Tfb.mjs";
|
|
7
|
+
import { a as hashApiToken, i as hasScope } from "../../api-tokens-0N3nafqZ.mjs";
|
|
8
|
+
import { n as getPublicOrigin } from "../../public-url-sR8SVmTt.mjs";
|
|
9
|
+
import { t as getAuthMode } from "../../mode-D0gePRtf.mjs";
|
|
10
|
+
import { t as resolveSessionUser } from "../../session-user-eweCNKzW.mjs";
|
|
11
|
+
import { a as resolveApiToken, o as resolveOAuthToken } from "../../api-tokens-CNHnKO57.mjs";
|
|
13
12
|
import { ulid } from "ulidx";
|
|
14
13
|
import { defineMiddleware } from "astro:middleware";
|
|
15
14
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "../../d1-binding-D6HZa3ks.mjs";
|
|
2
1
|
import { getRequestContext } from "../../request-context.mjs";
|
|
2
|
+
import "../../d1-binding-DrLMBUxu.mjs";
|
|
3
3
|
import "../../dialect-helpers-C6xtO-Ui.mjs";
|
|
4
4
|
import "../../base64-Cz-aU0X1.mjs";
|
|
5
|
-
import "../../types-
|
|
6
|
-
import { r as getDb } from "../../loader-
|
|
7
|
-
import { n as alternateTrailingSlashPath, t as RedirectRepository } from "../../redirect-
|
|
8
|
-
import { a as matchCachedPatterns, n as compileRedirectRules, o as setCachedRedirects, r as getCachedRedirects } from "../../cache-
|
|
9
|
-
import { n as isTerminalStatus } from "../../status-
|
|
5
|
+
import "../../types-RFzE_V1M.mjs";
|
|
6
|
+
import { r as getDb } from "../../loader-Dp6zLmQm.mjs";
|
|
7
|
+
import { n as alternateTrailingSlashPath, t as RedirectRepository } from "../../redirect-BQFa1THe.mjs";
|
|
8
|
+
import { a as matchCachedPatterns, n as compileRedirectRules, o as setCachedRedirects, r as getCachedRedirects } from "../../cache-B5NSHhxG.mjs";
|
|
9
|
+
import { n as isTerminalStatus } from "../../status-Bjf_uSrW.mjs";
|
|
10
10
|
import { defineMiddleware } from "astro:middleware";
|
|
11
11
|
|
|
12
12
|
//#region src/astro/middleware/redirect.ts
|
|
@@ -50,7 +50,7 @@ const onRequest = defineMiddleware(async (context, next) => {
|
|
|
50
50
|
}
|
|
51
51
|
try {
|
|
52
52
|
const repo = new RedirectRepository(db);
|
|
53
|
-
const hasDbOverride = !!getRequestContext()?.db;
|
|
53
|
+
const hasDbOverride = !!getRequestContext()?.db && getRequestContext()?.dbIsIsolated !== false;
|
|
54
54
|
let exact = null;
|
|
55
55
|
let rules;
|
|
56
56
|
if (hasDbOverride) {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { getRequestContext, runWithContext, runWithPageCache } from "../../request-context.mjs";
|
|
2
2
|
import "../../base64-Cz-aU0X1.mjs";
|
|
3
|
-
import "../../
|
|
4
|
-
import "../../
|
|
5
|
-
import "../../
|
|
6
|
-
import {
|
|
7
|
-
import { n as parseContentId, r as verifyPreviewToken } from "../../tokens-I3tSjoFI.mjs";
|
|
3
|
+
import "../../options-JiLWB6Bt.mjs";
|
|
4
|
+
import "../../runtime-env-CPTzh0mZ.mjs";
|
|
5
|
+
import { a as resolveSecretsCached } from "../../secrets-D_pergcD.mjs";
|
|
6
|
+
import { n as parseContentId, r as verifyPreviewToken } from "../../tokens-D-StaTAQ.mjs";
|
|
8
7
|
import { defineMiddleware } from "astro:middleware";
|
|
9
8
|
|
|
10
9
|
//#region src/visual-editing/toolbar.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as runMigrations, o as assertD1Migrations, t as MIGRATION_NAMES } from "../../runner-
|
|
2
|
-
import "../../d1-binding-
|
|
1
|
+
import { a as runMigrations, o as assertD1Migrations, t as MIGRATION_NAMES } from "../../runner-CRU7BXjr.mjs";
|
|
2
|
+
import "../../d1-binding-DrLMBUxu.mjs";
|
|
3
3
|
import { AtomicWriteConflict, atomicBatch, isD1Database, rowUnchanged } from "../../database/batch.mjs";
|
|
4
4
|
import "../../dialect-helpers-C6xtO-Ui.mjs";
|
|
5
|
-
import { t as readRuntimeEnv } from "../../runtime-env-
|
|
5
|
+
import { t as readRuntimeEnv } from "../../runtime-env-CPTzh0mZ.mjs";
|
|
6
6
|
import { sql } from "kysely";
|
|
7
7
|
import { ulid } from "ulidx";
|
|
8
8
|
import { defineMiddleware } from "astro:middleware";
|