qarpeo 0.0.0-alpha.10
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 +21 -0
- package/README.md +102 -0
- package/dist/chunks/auth-schema.mjs +219 -0
- package/dist/chunks/wrangler.mjs +783 -0
- package/dist/cli/index.mjs +1085 -0
- package/dist/dev/env.d.ts +12 -0
- package/dist/dev/wrangler.d.ts +18 -0
- package/dist/module.d.ts +16 -0
- package/dist/module.mjs +4436 -0
- package/dist/runtime/ai.d.ts +25 -0
- package/dist/runtime/ai.mjs +106 -0
- package/dist/runtime/analytics.d.ts +24 -0
- package/dist/runtime/analytics.mjs +38 -0
- package/dist/runtime/app/components/BlobImage.vue +100 -0
- package/dist/runtime/app/components/CMSBlocks.vue +93 -0
- package/dist/runtime/app/components/CMSContent.vue +23 -0
- package/dist/runtime/app/components/CMSImage.vue +49 -0
- package/dist/runtime/app/components/CMSLocaleSwitcher.vue +110 -0
- package/dist/runtime/app/components/CMSPreviewBanner.vue +79 -0
- package/dist/runtime/app/components/CMSVersionBanner.vue +49 -0
- package/dist/runtime/app/components/CMSVersionSwitcher.vue +126 -0
- package/dist/runtime/app/components/ContentRenderer.vue +80 -0
- package/dist/runtime/app/components/FileUpload.vue +196 -0
- package/dist/runtime/app/components/ImpersonationBanner.vue +57 -0
- package/dist/runtime/app/components/SignedIn.vue +13 -0
- package/dist/runtime/app/components/SignedOut.vue +13 -0
- package/dist/runtime/app/components/shiki.css +34 -0
- package/dist/runtime/app/composables/analytics.d.ts +125 -0
- package/dist/runtime/app/composables/analytics.mjs +81 -0
- package/dist/runtime/app/composables/api-tokens.d.ts +49 -0
- package/dist/runtime/app/composables/api-tokens.mjs +61 -0
- package/dist/runtime/app/composables/auth.d.ts +50 -0
- package/dist/runtime/app/composables/auth.mjs +101 -0
- package/dist/runtime/app/composables/chat.d.ts +69 -0
- package/dist/runtime/app/composables/chat.mjs +159 -0
- package/dist/runtime/app/composables/cms-preview.d.ts +33 -0
- package/dist/runtime/app/composables/cms-preview.mjs +83 -0
- package/dist/runtime/app/composables/cms.d.ts +307 -0
- package/dist/runtime/app/composables/cms.mjs +355 -0
- package/dist/runtime/app/composables/docs-version.d.ts +35 -0
- package/dist/runtime/app/composables/docs-version.mjs +70 -0
- package/dist/runtime/app/composables/impersonation.d.ts +14 -0
- package/dist/runtime/app/composables/impersonation.mjs +44 -0
- package/dist/runtime/app/composables/notifications.d.ts +35 -0
- package/dist/runtime/app/composables/notifications.mjs +139 -0
- package/dist/runtime/app/composables/organization.d.ts +127 -0
- package/dist/runtime/app/composables/organization.mjs +138 -0
- package/dist/runtime/app/composables/passkey.d.ts +6 -0
- package/dist/runtime/app/composables/passkey.mjs +105 -0
- package/dist/runtime/app/composables/passwordless.d.ts +7 -0
- package/dist/runtime/app/composables/passwordless.mjs +67 -0
- package/dist/runtime/app/composables/payments.d.ts +43 -0
- package/dist/runtime/app/composables/payments.mjs +74 -0
- package/dist/runtime/app/composables/realtime.d.ts +96 -0
- package/dist/runtime/app/composables/realtime.mjs +432 -0
- package/dist/runtime/app/composables/site.d.ts +35 -0
- package/dist/runtime/app/composables/site.mjs +36 -0
- package/dist/runtime/app/composables/storage.d.ts +60 -0
- package/dist/runtime/app/composables/storage.mjs +294 -0
- package/dist/runtime/app/composables/tenant.d.ts +82 -0
- package/dist/runtime/app/composables/tenant.mjs +120 -0
- package/dist/runtime/app/composables/turnstile.d.ts +3 -0
- package/dist/runtime/app/composables/turnstile.mjs +10 -0
- package/dist/runtime/app/composables/two-factor.d.ts +12 -0
- package/dist/runtime/app/composables/two-factor.mjs +65 -0
- package/dist/runtime/app/middleware/auth.global.d.ts +2 -0
- package/dist/runtime/app/middleware/auth.global.mjs +44 -0
- package/dist/runtime/app/pages/cms.vue +2249 -0
- package/dist/runtime/app/pages/devtools/agents.vue +717 -0
- package/dist/runtime/app/pages/devtools/analytics.vue +618 -0
- package/dist/runtime/app/pages/devtools/auth.vue +351 -0
- package/dist/runtime/app/pages/devtools/blob.vue +745 -0
- package/dist/runtime/app/pages/devtools/db.vue +546 -0
- package/dist/runtime/app/pages/devtools/domains.vue +772 -0
- package/dist/runtime/app/pages/devtools/kv.vue +829 -0
- package/dist/runtime/app/pages/devtools/logs.vue +655 -0
- package/dist/runtime/app/pages/devtools/mail.vue +389 -0
- package/dist/runtime/app/pages/devtools/overview.vue +390 -0
- package/dist/runtime/app/pages/devtools/settings.vue +560 -0
- package/dist/runtime/app/pages/devtools.vue +165 -0
- package/dist/runtime/app/plugins/seo.d.ts +2 -0
- package/dist/runtime/app/plugins/seo.mjs +105 -0
- package/dist/runtime/app/plugins/shortcuts.client.d.ts +6 -0
- package/dist/runtime/app/plugins/shortcuts.client.mjs +19 -0
- package/dist/runtime/app/public/sw-notifications.mjs +52 -0
- package/dist/runtime/auth.d.ts +25 -0
- package/dist/runtime/auth.mjs +11 -0
- package/dist/runtime/bindings.d.ts +27 -0
- package/dist/runtime/bindings.mjs +38 -0
- package/dist/runtime/blob.d.ts +26 -0
- package/dist/runtime/blob.mjs +334 -0
- package/dist/runtime/bots.d.ts +1 -0
- package/dist/runtime/bots.mjs +1 -0
- package/dist/runtime/browser.d.ts +21 -0
- package/dist/runtime/browser.mjs +64 -0
- package/dist/runtime/cache.d.ts +19 -0
- package/dist/runtime/cache.mjs +12 -0
- package/dist/runtime/cms.d.ts +2 -0
- package/dist/runtime/cms.mjs +0 -0
- package/dist/runtime/db.d.ts +21 -0
- package/dist/runtime/db.mjs +36 -0
- package/dist/runtime/drizzle.d.ts +11 -0
- package/dist/runtime/drizzle.mjs +18 -0
- package/dist/runtime/email.d.ts +51 -0
- package/dist/runtime/email.mjs +245 -0
- package/dist/runtime/hyperdrive.d.ts +21 -0
- package/dist/runtime/hyperdrive.mjs +49 -0
- package/dist/runtime/index.d.ts +23 -0
- package/dist/runtime/index.mjs +23 -0
- package/dist/runtime/kv.d.ts +16 -0
- package/dist/runtime/kv.mjs +126 -0
- package/dist/runtime/payments.d.ts +2 -0
- package/dist/runtime/payments.mjs +0 -0
- package/dist/runtime/queue.d.ts +21 -0
- package/dist/runtime/queue.mjs +41 -0
- package/dist/runtime/rag.d.ts +1 -0
- package/dist/runtime/rag.mjs +1 -0
- package/dist/runtime/ratelimit.d.ts +21 -0
- package/dist/runtime/ratelimit.mjs +38 -0
- package/dist/runtime/realtime.d.ts +6 -0
- package/dist/runtime/realtime.mjs +13 -0
- package/dist/runtime/server/db/cms-schema.d.ts +651 -0
- package/dist/runtime/server/db/cms-schema.mjs +74 -0
- package/dist/runtime/server/durable-objects/agent.d.ts +14 -0
- package/dist/runtime/server/durable-objects/agent.mjs +571 -0
- package/dist/runtime/server/durable-objects/room.d.ts +34 -0
- package/dist/runtime/server/durable-objects/room.mjs +514 -0
- package/dist/runtime/server/middleware/auth.d.ts +2 -0
- package/dist/runtime/server/middleware/auth.mjs +108 -0
- package/dist/runtime/server/middleware/devtools.d.ts +2 -0
- package/dist/runtime/server/middleware/devtools.mjs +61 -0
- package/dist/runtime/server/middleware/ratelimit.d.ts +2 -0
- package/dist/runtime/server/middleware/ratelimit.mjs +49 -0
- package/dist/runtime/server/middleware/tenancy.d.ts +6 -0
- package/dist/runtime/server/middleware/tenancy.mjs +15 -0
- package/dist/runtime/server/middleware/tracker.d.ts +7 -0
- package/dist/runtime/server/middleware/tracker.mjs +9 -0
- package/dist/runtime/server/plugins/agents.d.ts +7 -0
- package/dist/runtime/server/plugins/agents.mjs +3 -0
- package/dist/runtime/server/plugins/cms.d.ts +7 -0
- package/dist/runtime/server/plugins/cms.mjs +16 -0
- package/dist/runtime/server/plugins/dev-logs.d.ts +1 -0
- package/dist/runtime/server/plugins/dev-logs.mjs +58 -0
- package/dist/runtime/server/plugins/dev-proxy.d.ts +3 -0
- package/dist/runtime/server/plugins/dev-proxy.mjs +21 -0
- package/dist/runtime/server/plugins/env.d.ts +6 -0
- package/dist/runtime/server/plugins/env.mjs +17 -0
- package/dist/runtime/server/plugins/queue.d.ts +6 -0
- package/dist/runtime/server/plugins/queue.mjs +8 -0
- package/dist/runtime/server/routes/__qarpeo/agents/chat.post.d.ts +20 -0
- package/dist/runtime/server/routes/__qarpeo/agents/chat.post.mjs +110 -0
- package/dist/runtime/server/routes/__qarpeo/agents/clear.post.d.ts +7 -0
- package/dist/runtime/server/routes/__qarpeo/agents/clear.post.mjs +15 -0
- package/dist/runtime/server/routes/__qarpeo/agents/create.post.d.ts +17 -0
- package/dist/runtime/server/routes/__qarpeo/agents/create.post.mjs +47 -0
- package/dist/runtime/server/routes/__qarpeo/agents/history.get.d.ts +15 -0
- package/dist/runtime/server/routes/__qarpeo/agents/history.get.mjs +24 -0
- package/dist/runtime/server/routes/__qarpeo/agents/list.get.d.ts +5 -0
- package/dist/runtime/server/routes/__qarpeo/agents/list.get.mjs +63 -0
- package/dist/runtime/server/routes/__qarpeo/analytics/events.get.d.ts +64 -0
- package/dist/runtime/server/routes/__qarpeo/analytics/events.get.mjs +55 -0
- package/dist/runtime/server/routes/__qarpeo/analytics/summary.get.d.ts +30 -0
- package/dist/runtime/server/routes/__qarpeo/analytics/summary.get.mjs +73 -0
- package/dist/runtime/server/routes/__qarpeo/auth/revoke-session.post.d.ts +6 -0
- package/dist/runtime/server/routes/__qarpeo/auth/revoke-session.post.mjs +26 -0
- package/dist/runtime/server/routes/__qarpeo/auth/sessions.get.d.ts +6 -0
- package/dist/runtime/server/routes/__qarpeo/auth/sessions.get.mjs +46 -0
- package/dist/runtime/server/routes/__qarpeo/auth/users.get.d.ts +7 -0
- package/dist/runtime/server/routes/__qarpeo/auth/users.get.mjs +65 -0
- package/dist/runtime/server/routes/__qarpeo/blob/files.get.d.ts +22 -0
- package/dist/runtime/server/routes/__qarpeo/blob/files.get.mjs +36 -0
- package/dist/runtime/server/routes/__qarpeo/db/query.post.d.ts +23 -0
- package/dist/runtime/server/routes/__qarpeo/db/query.post.mjs +34 -0
- package/dist/runtime/server/routes/__qarpeo/db/tables.get.d.ts +31 -0
- package/dist/runtime/server/routes/__qarpeo/db/tables.get.mjs +81 -0
- package/dist/runtime/server/routes/__qarpeo/kv/delete.post.d.ts +11 -0
- package/dist/runtime/server/routes/__qarpeo/kv/delete.post.mjs +18 -0
- package/dist/runtime/server/routes/__qarpeo/kv/get.get.d.ts +11 -0
- package/dist/runtime/server/routes/__qarpeo/kv/get.get.mjs +20 -0
- package/dist/runtime/server/routes/__qarpeo/kv/keys.get.d.ts +8 -0
- package/dist/runtime/server/routes/__qarpeo/kv/keys.get.mjs +27 -0
- package/dist/runtime/server/routes/__qarpeo/kv/set.post.d.ts +14 -0
- package/dist/runtime/server/routes/__qarpeo/kv/set.post.mjs +24 -0
- package/dist/runtime/server/routes/__qarpeo/logs.delete.d.ts +5 -0
- package/dist/runtime/server/routes/__qarpeo/logs.delete.mjs +6 -0
- package/dist/runtime/server/routes/__qarpeo/logs.get.d.ts +5 -0
- package/dist/runtime/server/routes/__qarpeo/logs.get.mjs +26 -0
- package/dist/runtime/server/routes/__qarpeo/logs.post.d.ts +6 -0
- package/dist/runtime/server/routes/__qarpeo/logs.post.mjs +17 -0
- package/dist/runtime/server/routes/__qarpeo/mail/bounce.post.d.ts +5 -0
- package/dist/runtime/server/routes/__qarpeo/mail/bounce.post.mjs +37 -0
- package/dist/runtime/server/routes/__qarpeo/mail/clear.post.d.ts +4 -0
- package/dist/runtime/server/routes/__qarpeo/mail/clear.post.mjs +6 -0
- package/dist/runtime/server/routes/__qarpeo/mail/inbox.get.d.ts +5 -0
- package/dist/runtime/server/routes/__qarpeo/mail/inbox.get.mjs +7 -0
- package/dist/runtime/server/routes/__qarpeo/mail/send-test.post.d.ts +4 -0
- package/dist/runtime/server/routes/__qarpeo/mail/send-test.post.mjs +29 -0
- package/dist/runtime/server/routes/__qarpeo/mail/track/click/[id].get.d.ts +2 -0
- package/dist/runtime/server/routes/__qarpeo/mail/track/click/[id].get.mjs +23 -0
- package/dist/runtime/server/routes/__qarpeo/mail/track/open/[id].get.d.ts +2 -0
- package/dist/runtime/server/routes/__qarpeo/mail/track/open/[id].get.mjs +31 -0
- package/dist/runtime/server/routes/__qarpeo/overview/health.get.d.ts +8 -0
- package/dist/runtime/server/routes/__qarpeo/overview/health.get.mjs +46 -0
- package/dist/runtime/server/routes/__qarpeo/overview.get.d.ts +32 -0
- package/dist/runtime/server/routes/__qarpeo/overview.get.mjs +38 -0
- package/dist/runtime/server/routes/__qarpeo/settings/reset-dev-data.post.d.ts +11 -0
- package/dist/runtime/server/routes/__qarpeo/settings/reset-dev-data.post.mjs +84 -0
- package/dist/runtime/server/routes/__qarpeo/settings.get.d.ts +124 -0
- package/dist/runtime/server/routes/__qarpeo/settings.get.mjs +145 -0
- package/dist/runtime/server/routes/__qarpeo/tenants/create.post.d.ts +7 -0
- package/dist/runtime/server/routes/__qarpeo/tenants/create.post.mjs +26 -0
- package/dist/runtime/server/routes/__qarpeo/tenants/domain-add.post.d.ts +6 -0
- package/dist/runtime/server/routes/__qarpeo/tenants/domain-add.post.mjs +29 -0
- package/dist/runtime/server/routes/__qarpeo/tenants/domain-delete.post.d.ts +7 -0
- package/dist/runtime/server/routes/__qarpeo/tenants/domain-delete.post.mjs +21 -0
- package/dist/runtime/server/routes/__qarpeo/tenants/domain-verify.post.d.ts +9 -0
- package/dist/runtime/server/routes/__qarpeo/tenants/domain-verify.post.mjs +21 -0
- package/dist/runtime/server/routes/__qarpeo/tenants/list.get.d.ts +15 -0
- package/dist/runtime/server/routes/__qarpeo/tenants/list.get.mjs +22 -0
- package/dist/runtime/server/routes/agents/[agent]/chat.post.d.ts +2 -0
- package/dist/runtime/server/routes/agents/[agent]/chat.post.mjs +35 -0
- package/dist/runtime/server/routes/agents/[agent]/clear.post.d.ts +4 -0
- package/dist/runtime/server/routes/agents/[agent]/clear.post.mjs +27 -0
- package/dist/runtime/server/routes/agents/[agent]/history.get.d.ts +4 -0
- package/dist/runtime/server/routes/agents/[agent]/history.get.mjs +27 -0
- package/dist/runtime/server/routes/analytics/events.get.d.ts +3 -0
- package/dist/runtime/server/routes/analytics/events.get.mjs +17 -0
- package/dist/runtime/server/routes/analytics/pageviews.get.d.ts +3 -0
- package/dist/runtime/server/routes/analytics/pageviews.get.mjs +15 -0
- package/dist/runtime/server/routes/analytics/summary.get.d.ts +6 -0
- package/dist/runtime/server/routes/analytics/summary.get.mjs +15 -0
- package/dist/runtime/server/routes/atom.xml.get.d.ts +2 -0
- package/dist/runtime/server/routes/atom.xml.get.mjs +76 -0
- package/dist/runtime/server/routes/auth/2fa/disable.post.d.ts +4 -0
- package/dist/runtime/server/routes/auth/2fa/disable.post.mjs +44 -0
- package/dist/runtime/server/routes/auth/2fa/setup.post.d.ts +6 -0
- package/dist/runtime/server/routes/auth/2fa/setup.post.mjs +32 -0
- package/dist/runtime/server/routes/auth/2fa/verify.post.d.ts +6 -0
- package/dist/runtime/server/routes/auth/2fa/verify.post.mjs +92 -0
- package/dist/runtime/server/routes/auth/[provider]/callback.d.ts +1 -0
- package/dist/runtime/server/routes/auth/[provider]/callback.mjs +1 -0
- package/dist/runtime/server/routes/auth/[provider].d.ts +3 -0
- package/dist/runtime/server/routes/auth/[provider].mjs +95 -0
- package/dist/runtime/server/routes/auth/account.delete.d.ts +5 -0
- package/dist/runtime/server/routes/auth/account.delete.mjs +52 -0
- package/dist/runtime/server/routes/auth/impersonate/start.post.d.ts +5 -0
- package/dist/runtime/server/routes/auth/impersonate/start.post.mjs +14 -0
- package/dist/runtime/server/routes/auth/impersonate/stop.post.d.ts +5 -0
- package/dist/runtime/server/routes/auth/impersonate/stop.post.mjs +5 -0
- package/dist/runtime/server/routes/auth/logout-all.post.d.ts +4 -0
- package/dist/runtime/server/routes/auth/logout-all.post.mjs +16 -0
- package/dist/runtime/server/routes/auth/logout-others.post.d.ts +4 -0
- package/dist/runtime/server/routes/auth/logout-others.post.mjs +11 -0
- package/dist/runtime/server/routes/auth/logout.post.d.ts +4 -0
- package/dist/runtime/server/routes/auth/logout.post.mjs +17 -0
- package/dist/runtime/server/routes/auth/magic-link/send.post.d.ts +10 -0
- package/dist/runtime/server/routes/auth/magic-link/send.post.mjs +29 -0
- package/dist/runtime/server/routes/auth/magic-link/verify.get.d.ts +2 -0
- package/dist/runtime/server/routes/auth/magic-link/verify.get.mjs +81 -0
- package/dist/runtime/server/routes/auth/organization/create.post.d.ts +5 -0
- package/dist/runtime/server/routes/auth/organization/create.post.mjs +10 -0
- package/dist/runtime/server/routes/auth/organization/invite.post.d.ts +9 -0
- package/dist/runtime/server/routes/auth/organization/invite.post.mjs +27 -0
- package/dist/runtime/server/routes/auth/organization/join.post.d.ts +6 -0
- package/dist/runtime/server/routes/auth/organization/join.post.mjs +15 -0
- package/dist/runtime/server/routes/auth/organization/list.get.d.ts +5 -0
- package/dist/runtime/server/routes/auth/organization/list.get.mjs +7 -0
- package/dist/runtime/server/routes/auth/organization/members/[id].delete.d.ts +4 -0
- package/dist/runtime/server/routes/auth/organization/members/[id].delete.mjs +33 -0
- package/dist/runtime/server/routes/auth/organization/members/index.get.d.ts +6 -0
- package/dist/runtime/server/routes/auth/organization/members/index.get.mjs +18 -0
- package/dist/runtime/server/routes/auth/organization/mfa.post.d.ts +6 -0
- package/dist/runtime/server/routes/auth/organization/mfa.post.mjs +33 -0
- package/dist/runtime/server/routes/auth/organization/sso/[id].delete.d.ts +4 -0
- package/dist/runtime/server/routes/auth/organization/sso/[id].delete.mjs +28 -0
- package/dist/runtime/server/routes/auth/organization/sso/index.get.d.ts +2 -0
- package/dist/runtime/server/routes/auth/organization/sso/index.get.mjs +23 -0
- package/dist/runtime/server/routes/auth/organization/sso/index.post.d.ts +5 -0
- package/dist/runtime/server/routes/auth/organization/sso/index.post.mjs +84 -0
- package/dist/runtime/server/routes/auth/organization/switch.post.d.ts +6 -0
- package/dist/runtime/server/routes/auth/organization/switch.post.mjs +14 -0
- package/dist/runtime/server/routes/auth/otp/send.post.d.ts +10 -0
- package/dist/runtime/server/routes/auth/otp/send.post.mjs +29 -0
- package/dist/runtime/server/routes/auth/otp/verify.post.d.ts +6 -0
- package/dist/runtime/server/routes/auth/otp/verify.post.mjs +95 -0
- package/dist/runtime/server/routes/auth/sessions/[id].delete.d.ts +5 -0
- package/dist/runtime/server/routes/auth/sessions/[id].delete.mjs +24 -0
- package/dist/runtime/server/routes/auth/sessions.get.d.ts +2 -0
- package/dist/runtime/server/routes/auth/sessions.get.mjs +11 -0
- package/dist/runtime/server/routes/auth/sso/login.get.d.ts +2 -0
- package/dist/runtime/server/routes/auth/sso/login.get.mjs +94 -0
- package/dist/runtime/server/routes/auth/sso/oidc/callback.get.d.ts +2 -0
- package/dist/runtime/server/routes/auth/sso/oidc/callback.get.mjs +113 -0
- package/dist/runtime/server/routes/auth/sso/saml/acs.post.d.ts +2 -0
- package/dist/runtime/server/routes/auth/sso/saml/acs.post.mjs +95 -0
- package/dist/runtime/server/routes/auth/tokens/[id].delete.d.ts +4 -0
- package/dist/runtime/server/routes/auth/tokens/[id].delete.mjs +13 -0
- package/dist/runtime/server/routes/auth/tokens/create.post.d.ts +9 -0
- package/dist/runtime/server/routes/auth/tokens/create.post.mjs +17 -0
- package/dist/runtime/server/routes/auth/tokens/index.get.d.ts +9 -0
- package/dist/runtime/server/routes/auth/tokens/index.get.mjs +5 -0
- package/dist/runtime/server/routes/auth/turnstile/verify.post.d.ts +2 -0
- package/dist/runtime/server/routes/auth/turnstile/verify.post.mjs +15 -0
- package/dist/runtime/server/routes/auth/user.get.d.ts +2 -0
- package/dist/runtime/server/routes/auth/user.get.mjs +6 -0
- package/dist/runtime/server/routes/auth/webauthn/login/options.post.d.ts +2 -0
- package/dist/runtime/server/routes/auth/webauthn/login/options.post.mjs +17 -0
- package/dist/runtime/server/routes/auth/webauthn/login/verify.post.d.ts +6 -0
- package/dist/runtime/server/routes/auth/webauthn/login/verify.post.mjs +127 -0
- package/dist/runtime/server/routes/auth/webauthn/register/options.post.d.ts +2 -0
- package/dist/runtime/server/routes/auth/webauthn/register/options.post.mjs +47 -0
- package/dist/runtime/server/routes/auth/webauthn/register/verify.post.d.ts +5 -0
- package/dist/runtime/server/routes/auth/webauthn/register/verify.post.mjs +88 -0
- package/dist/runtime/server/routes/cms/[collection]/[id]/preview-token.post.d.ts +8 -0
- package/dist/runtime/server/routes/cms/[collection]/[id]/preview-token.post.mjs +27 -0
- package/dist/runtime/server/routes/cms/[collection]/[id]/publish.post.d.ts +6 -0
- package/dist/runtime/server/routes/cms/[collection]/[id]/publish.post.mjs +19 -0
- package/dist/runtime/server/routes/cms/[collection]/[id]/review.post.d.ts +6 -0
- package/dist/runtime/server/routes/cms/[collection]/[id]/review.post.mjs +33 -0
- package/dist/runtime/server/routes/cms/[collection]/[id].delete.d.ts +4 -0
- package/dist/runtime/server/routes/cms/[collection]/[id].delete.mjs +17 -0
- package/dist/runtime/server/routes/cms/[collection]/[id].put.d.ts +4 -0
- package/dist/runtime/server/routes/cms/[collection]/[id].put.mjs +18 -0
- package/dist/runtime/server/routes/cms/[collection]/[slug].get.d.ts +4 -0
- package/dist/runtime/server/routes/cms/[collection]/[slug].get.mjs +19 -0
- package/dist/runtime/server/routes/cms/[collection]/atom.xml.get.d.ts +2 -0
- package/dist/runtime/server/routes/cms/[collection]/atom.xml.get.mjs +69 -0
- package/dist/runtime/server/routes/cms/[collection]/by-path.get.d.ts +8 -0
- package/dist/runtime/server/routes/cms/[collection]/by-path.get.mjs +23 -0
- package/dist/runtime/server/routes/cms/[collection]/feed.xml.get.d.ts +2 -0
- package/dist/runtime/server/routes/cms/[collection]/feed.xml.get.mjs +65 -0
- package/dist/runtime/server/routes/cms/[collection]/index.get.d.ts +7 -0
- package/dist/runtime/server/routes/cms/[collection]/index.get.mjs +15 -0
- package/dist/runtime/server/routes/cms/[collection]/index.post.d.ts +4 -0
- package/dist/runtime/server/routes/cms/[collection]/index.post.mjs +23 -0
- package/dist/runtime/server/routes/cms/[collection]/references.get.d.ts +19 -0
- package/dist/runtime/server/routes/cms/[collection]/references.get.mjs +47 -0
- package/dist/runtime/server/routes/cms/[collection]/surroundings.get.d.ts +10 -0
- package/dist/runtime/server/routes/cms/[collection]/surroundings.get.mjs +12 -0
- package/dist/runtime/server/routes/cms/collections/[id].delete.d.ts +4 -0
- package/dist/runtime/server/routes/cms/collections/[id].delete.mjs +10 -0
- package/dist/runtime/server/routes/cms/collections/[id].put.d.ts +4 -0
- package/dist/runtime/server/routes/cms/collections/[id].put.mjs +11 -0
- package/dist/runtime/server/routes/cms/collections/index.get.d.ts +4 -0
- package/dist/runtime/server/routes/cms/collections/index.get.mjs +6 -0
- package/dist/runtime/server/routes/cms/collections/index.post.d.ts +4 -0
- package/dist/runtime/server/routes/cms/collections/index.post.mjs +19 -0
- package/dist/runtime/server/routes/cms/components/index.get.d.ts +17 -0
- package/dist/runtime/server/routes/cms/components/index.get.mjs +16 -0
- package/dist/runtime/server/routes/cms/deploy.post.d.ts +4 -0
- package/dist/runtime/server/routes/cms/deploy.post.mjs +46 -0
- package/dist/runtime/server/routes/cms/export.post.d.ts +10 -0
- package/dist/runtime/server/routes/cms/export.post.mjs +55 -0
- package/dist/runtime/server/routes/cms/navigation.get.d.ts +8 -0
- package/dist/runtime/server/routes/cms/navigation.get.mjs +36 -0
- package/dist/runtime/server/routes/cms/preview/disable.get.d.ts +9 -0
- package/dist/runtime/server/routes/cms/preview/disable.get.mjs +9 -0
- package/dist/runtime/server/routes/cms/preview/enable.get.d.ts +14 -0
- package/dist/runtime/server/routes/cms/preview/enable.get.mjs +42 -0
- package/dist/runtime/server/routes/cms/publish-scheduled.post.d.ts +11 -0
- package/dist/runtime/server/routes/cms/publish-scheduled.post.mjs +35 -0
- package/dist/runtime/server/routes/cms/search.get.d.ts +13 -0
- package/dist/runtime/server/routes/cms/search.get.mjs +137 -0
- package/dist/runtime/server/routes/cms/sync.post.d.ts +7 -0
- package/dist/runtime/server/routes/cms/sync.post.mjs +18 -0
- package/dist/runtime/server/routes/cms/webhooks/[provider].post.d.ts +150 -0
- package/dist/runtime/server/routes/cms/webhooks/[provider].post.mjs +213 -0
- package/dist/runtime/server/routes/docs/search.get.d.ts +15 -0
- package/dist/runtime/server/routes/docs/search.get.mjs +20 -0
- package/dist/runtime/server/routes/feed.xml.get.d.ts +2 -0
- package/dist/runtime/server/routes/feed.xml.get.mjs +73 -0
- package/dist/runtime/server/routes/mail/bounce.post.d.ts +14 -0
- package/dist/runtime/server/routes/mail/bounce.post.mjs +56 -0
- package/dist/runtime/server/routes/mail/inbox/[id].get.d.ts +2 -0
- package/dist/runtime/server/routes/mail/inbox/[id].get.mjs +9 -0
- package/dist/runtime/server/routes/mail/inbox.get.d.ts +4 -0
- package/dist/runtime/server/routes/mail/inbox.get.mjs +7 -0
- package/dist/runtime/server/routes/mail/suppressions/[email].delete.d.ts +11 -0
- package/dist/runtime/server/routes/mail/suppressions/[email].delete.mjs +18 -0
- package/dist/runtime/server/routes/mail/suppressions/index.get.d.ts +12 -0
- package/dist/runtime/server/routes/mail/suppressions/index.get.mjs +23 -0
- package/dist/runtime/server/routes/mail/suppressions/index.post.d.ts +10 -0
- package/dist/runtime/server/routes/mail/suppressions/index.post.mjs +23 -0
- package/dist/runtime/server/routes/mail/unsubscribe.d.ts +13 -0
- package/dist/runtime/server/routes/mail/unsubscribe.mjs +91 -0
- package/dist/runtime/server/routes/mail/webhooks.post.d.ts +12 -0
- package/dist/runtime/server/routes/mail/webhooks.post.mjs +71 -0
- package/dist/runtime/server/routes/notifications/[id]/read.post.d.ts +4 -0
- package/dist/runtime/server/routes/notifications/[id]/read.post.mjs +13 -0
- package/dist/runtime/server/routes/notifications/[id].delete.d.ts +4 -0
- package/dist/runtime/server/routes/notifications/[id].delete.mjs +13 -0
- package/dist/runtime/server/routes/notifications/[id].get.d.ts +2 -0
- package/dist/runtime/server/routes/notifications/[id].get.mjs +15 -0
- package/dist/runtime/server/routes/notifications/index.get.d.ts +6 -0
- package/dist/runtime/server/routes/notifications/index.get.mjs +18 -0
- package/dist/runtime/server/routes/notifications/push/subscribe.post.d.ts +4 -0
- package/dist/runtime/server/routes/notifications/push/subscribe.post.mjs +20 -0
- package/dist/runtime/server/routes/notifications/push/unsubscribe.post.d.ts +4 -0
- package/dist/runtime/server/routes/notifications/push/unsubscribe.post.mjs +15 -0
- package/dist/runtime/server/routes/notifications/read-all.post.d.ts +4 -0
- package/dist/runtime/server/routes/notifications/read-all.post.mjs +11 -0
- package/dist/runtime/server/routes/payments/cancel.post.d.ts +7 -0
- package/dist/runtime/server/routes/payments/cancel.post.mjs +9 -0
- package/dist/runtime/server/routes/payments/change-plan.post.d.ts +7 -0
- package/dist/runtime/server/routes/payments/change-plan.post.mjs +12 -0
- package/dist/runtime/server/routes/payments/checkout.post.d.ts +9 -0
- package/dist/runtime/server/routes/payments/checkout.post.mjs +16 -0
- package/dist/runtime/server/routes/payments/pause.post.d.ts +7 -0
- package/dist/runtime/server/routes/payments/pause.post.mjs +9 -0
- package/dist/runtime/server/routes/payments/portal.post.d.ts +5 -0
- package/dist/runtime/server/routes/payments/portal.post.mjs +9 -0
- package/dist/runtime/server/routes/payments/subscription.get.d.ts +6 -0
- package/dist/runtime/server/routes/payments/subscription.get.mjs +9 -0
- package/dist/runtime/server/routes/payments/usage.get.d.ts +12 -0
- package/dist/runtime/server/routes/payments/usage.get.mjs +18 -0
- package/dist/runtime/server/routes/payments/usage.post.d.ts +6 -0
- package/dist/runtime/server/routes/payments/usage.post.mjs +24 -0
- package/dist/runtime/server/routes/payments/webhook.post.d.ts +14 -0
- package/dist/runtime/server/routes/payments/webhook.post.mjs +21 -0
- package/dist/runtime/server/routes/realtime/broadcast.post.d.ts +4 -0
- package/dist/runtime/server/routes/realtime/broadcast.post.mjs +26 -0
- package/dist/runtime/server/routes/realtime/history.delete.d.ts +13 -0
- package/dist/runtime/server/routes/realtime/history.delete.mjs +12 -0
- package/dist/runtime/server/routes/realtime/history.get.d.ts +16 -0
- package/dist/runtime/server/routes/realtime/history.get.mjs +15 -0
- package/dist/runtime/server/routes/realtime/presence.get.d.ts +6 -0
- package/dist/runtime/server/routes/realtime/presence.get.mjs +27 -0
- package/dist/runtime/server/routes/realtime/state.get.d.ts +5 -0
- package/dist/runtime/server/routes/realtime/state.get.mjs +26 -0
- package/dist/runtime/server/routes/realtime/state.post.d.ts +6 -0
- package/dist/runtime/server/routes/realtime/state.post.mjs +37 -0
- package/dist/runtime/server/routes/realtime/ws.get.d.ts +2 -0
- package/dist/runtime/server/routes/realtime/ws.get.mjs +73 -0
- package/dist/runtime/server/routes/robots.txt.get.d.ts +2 -0
- package/dist/runtime/server/routes/robots.txt.get.mjs +41 -0
- package/dist/runtime/server/routes/rss.xml.get.d.ts +2 -0
- package/dist/runtime/server/routes/rss.xml.get.mjs +2 -0
- package/dist/runtime/server/routes/sitemap.xml.get.d.ts +2 -0
- package/dist/runtime/server/routes/sitemap.xml.get.mjs +84 -0
- package/dist/runtime/server/routes/storage/file/[...key].delete.d.ts +4 -0
- package/dist/runtime/server/routes/storage/file/[...key].delete.mjs +23 -0
- package/dist/runtime/server/routes/storage/file/[...key].get.d.ts +2 -0
- package/dist/runtime/server/routes/storage/file/[...key].get.mjs +23 -0
- package/dist/runtime/server/routes/storage/files.get.d.ts +14 -0
- package/dist/runtime/server/routes/storage/files.get.mjs +11 -0
- package/dist/runtime/server/routes/storage/presigned.post.d.ts +8 -0
- package/dist/runtime/server/routes/storage/presigned.post.mjs +39 -0
- package/dist/runtime/server/routes/storage/sign.post.d.ts +6 -0
- package/dist/runtime/server/routes/storage/sign.post.mjs +24 -0
- package/dist/runtime/server/routes/storage/upload.post.d.ts +22 -0
- package/dist/runtime/server/routes/storage/upload.post.mjs +96 -0
- package/dist/runtime/server/routes/tenants/[tenant]/domains/[domain]/index.delete.d.ts +8 -0
- package/dist/runtime/server/routes/tenants/[tenant]/domains/[domain]/index.delete.mjs +39 -0
- package/dist/runtime/server/routes/tenants/[tenant]/domains/[domain]/verify.post.d.ts +8 -0
- package/dist/runtime/server/routes/tenants/[tenant]/domains/[domain]/verify.post.mjs +39 -0
- package/dist/runtime/server/routes/tenants/[tenant]/domains/index.get.d.ts +8 -0
- package/dist/runtime/server/routes/tenants/[tenant]/domains/index.get.mjs +20 -0
- package/dist/runtime/server/routes/tenants/[tenant]/domains/index.post.d.ts +8 -0
- package/dist/runtime/server/routes/tenants/[tenant]/domains/index.post.mjs +44 -0
- package/dist/runtime/server/routes/tenants/current.get.d.ts +8 -0
- package/dist/runtime/server/routes/tenants/current.get.mjs +6 -0
- package/dist/runtime/server/tasks/cms/publish.d.ts +4 -0
- package/dist/runtime/server/tasks/cms/publish.mjs +18 -0
- package/dist/runtime/server/utils/agent-store.d.ts +24 -0
- package/dist/runtime/server/utils/agent-store.mjs +53 -0
- package/dist/runtime/server/utils/agents-registry-fallback.d.ts +1 -0
- package/dist/runtime/server/utils/agents-registry-fallback.mjs +1 -0
- package/dist/runtime/server/utils/ai.d.ts +119 -0
- package/dist/runtime/server/utils/ai.mjs +607 -0
- package/dist/runtime/server/utils/analytics-query.d.ts +109 -0
- package/dist/runtime/server/utils/analytics-query.mjs +234 -0
- package/dist/runtime/server/utils/auth.d.ts +60 -0
- package/dist/runtime/server/utils/auth.mjs +361 -0
- package/dist/runtime/server/utils/blob-store.d.ts +13 -0
- package/dist/runtime/server/utils/blob-store.mjs +60 -0
- package/dist/runtime/server/utils/bots.d.ts +21 -0
- package/dist/runtime/server/utils/bots.mjs +491 -0
- package/dist/runtime/server/utils/cache.d.ts +33 -0
- package/dist/runtime/server/utils/cache.mjs +128 -0
- package/dist/runtime/server/utils/cms-events.d.ts +17 -0
- package/dist/runtime/server/utils/cms-events.mjs +80 -0
- package/dist/runtime/server/utils/cms-filter.d.ts +3 -0
- package/dist/runtime/server/utils/cms-filter.mjs +34 -0
- package/dist/runtime/server/utils/cms.d.ts +278 -0
- package/dist/runtime/server/utils/cms.mjs +3268 -0
- package/dist/runtime/server/utils/config.d.ts +27 -0
- package/dist/runtime/server/utils/config.mjs +38 -0
- package/dist/runtime/server/utils/context.d.ts +13 -0
- package/dist/runtime/server/utils/context.mjs +98 -0
- package/dist/runtime/server/utils/crypto.d.ts +16 -0
- package/dist/runtime/server/utils/crypto.mjs +56 -0
- package/dist/runtime/server/utils/dev-logs.d.ts +21 -0
- package/dist/runtime/server/utils/dev-logs.mjs +41 -0
- package/dist/runtime/server/utils/dev-proxy.d.ts +1 -0
- package/dist/runtime/server/utils/dev-proxy.mjs +69 -0
- package/dist/runtime/server/utils/domains.d.ts +46 -0
- package/dist/runtime/server/utils/domains.mjs +318 -0
- package/dist/runtime/server/utils/drizzle.d.ts +10 -0
- package/dist/runtime/server/utils/drizzle.mjs +36 -0
- package/dist/runtime/server/utils/email-templates.d.ts +44 -0
- package/dist/runtime/server/utils/email-templates.mjs +373 -0
- package/dist/runtime/server/utils/feed.d.ts +42 -0
- package/dist/runtime/server/utils/feed.mjs +161 -0
- package/dist/runtime/server/utils/impersonation.d.ts +67 -0
- package/dist/runtime/server/utils/impersonation.mjs +298 -0
- package/dist/runtime/server/utils/jobs.d.ts +70 -0
- package/dist/runtime/server/utils/jobs.mjs +125 -0
- package/dist/runtime/server/utils/kv-store.d.ts +9 -0
- package/dist/runtime/server/utils/kv-store.mjs +32 -0
- package/dist/runtime/server/utils/mail-suppression.d.ts +62 -0
- package/dist/runtime/server/utils/mail-suppression.mjs +328 -0
- package/dist/runtime/server/utils/mail.d.ts +90 -0
- package/dist/runtime/server/utils/mail.mjs +366 -0
- package/dist/runtime/server/utils/notifications.d.ts +51 -0
- package/dist/runtime/server/utils/notifications.mjs +215 -0
- package/dist/runtime/server/utils/organization.d.ts +54 -0
- package/dist/runtime/server/utils/organization.mjs +354 -0
- package/dist/runtime/server/utils/passwordless.d.ts +48 -0
- package/dist/runtime/server/utils/passwordless.mjs +179 -0
- package/dist/runtime/server/utils/payments.d.ts +121 -0
- package/dist/runtime/server/utils/payments.mjs +1067 -0
- package/dist/runtime/server/utils/queue-fallback.d.ts +2 -0
- package/dist/runtime/server/utils/queue-fallback.mjs +2 -0
- package/dist/runtime/server/utils/queue.d.ts +4 -0
- package/dist/runtime/server/utils/queue.mjs +3 -0
- package/dist/runtime/server/utils/rag.d.ts +25 -0
- package/dist/runtime/server/utils/rag.mjs +333 -0
- package/dist/runtime/server/utils/ratelimit.d.ts +45 -0
- package/dist/runtime/server/utils/ratelimit.mjs +182 -0
- package/dist/runtime/server/utils/realtime.d.ts +110 -0
- package/dist/runtime/server/utils/realtime.mjs +197 -0
- package/dist/runtime/server/utils/schema-fallback.d.ts +3 -0
- package/dist/runtime/server/utils/schema-fallback.mjs +2 -0
- package/dist/runtime/server/utils/session.d.ts +72 -0
- package/dist/runtime/server/utils/session.mjs +287 -0
- package/dist/runtime/server/utils/sso.d.ts +49 -0
- package/dist/runtime/server/utils/sso.mjs +131 -0
- package/dist/runtime/server/utils/storage.d.ts +111 -0
- package/dist/runtime/server/utils/storage.mjs +654 -0
- package/dist/runtime/server/utils/tenant.d.ts +44 -0
- package/dist/runtime/server/utils/tenant.mjs +285 -0
- package/dist/runtime/server/utils/totp.d.ts +33 -0
- package/dist/runtime/server/utils/totp.mjs +112 -0
- package/dist/runtime/server/utils/tracker.d.ts +72 -0
- package/dist/runtime/server/utils/tracker.mjs +139 -0
- package/dist/runtime/server/utils/turnstile.d.ts +17 -0
- package/dist/runtime/server/utils/turnstile.mjs +68 -0
- package/dist/runtime/server/utils/vapid.d.ts +35 -0
- package/dist/runtime/server/utils/vapid.mjs +211 -0
- package/dist/runtime/storage.d.ts +1 -0
- package/dist/runtime/storage.mjs +0 -0
- package/dist/runtime/types/ai.d.ts +68 -0
- package/dist/runtime/types/ai.mjs +0 -0
- package/dist/runtime/types/analytics.d.ts +30 -0
- package/dist/runtime/types/analytics.mjs +0 -0
- package/dist/runtime/types/auth-globals.d.ts +14 -0
- package/dist/runtime/types/auth.d.ts +153 -0
- package/dist/runtime/types/auth.mjs +0 -0
- package/dist/runtime/types/browser.d.ts +29 -0
- package/dist/runtime/types/browser.mjs +0 -0
- package/dist/runtime/types/d1.d.ts +44 -0
- package/dist/runtime/types/d1.mjs +0 -0
- package/dist/runtime/types/drizzle.d.ts +13 -0
- package/dist/runtime/types/drizzle.mjs +0 -0
- package/dist/runtime/types/durable-object.d.ts +51 -0
- package/dist/runtime/types/durable-object.mjs +0 -0
- package/dist/runtime/types/email.d.ts +66 -0
- package/dist/runtime/types/email.mjs +0 -0
- package/dist/runtime/types/hyperdrive.d.ts +18 -0
- package/dist/runtime/types/hyperdrive.mjs +0 -0
- package/dist/runtime/types/imports.d.ts +58 -0
- package/dist/runtime/types/index.d.ts +156 -0
- package/dist/runtime/types/index.mjs +13 -0
- package/dist/runtime/types/queue.d.ts +67 -0
- package/dist/runtime/types/queue.mjs +0 -0
- package/dist/runtime/types/r2.d.ts +108 -0
- package/dist/runtime/types/r2.mjs +0 -0
- package/dist/runtime/types/ratelimit.d.ts +21 -0
- package/dist/runtime/types/ratelimit.mjs +0 -0
- package/dist/runtime/types/vectorize.d.ts +74 -0
- package/dist/runtime/types/vectorize.mjs +0 -0
- package/dist/runtime/vectorize.d.ts +21 -0
- package/dist/runtime/vectorize.mjs +53 -0
- package/dist/types.d.ts +2750 -0
- package/dist/types.mjs +1 -0
- package/dist/utils/agents.d.ts +8 -0
- package/dist/utils/auth-schema.d.ts +11 -0
- package/dist/utils/bindings.d.ts +16 -0
- package/dist/utils/cms-schema.d.ts +1 -0
- package/dist/utils/cms-sources.d.ts +62 -0
- package/dist/utils/drizzle.d.ts +42 -0
- package/dist/utils/jobs.d.ts +8 -0
- package/dist/utils/local-db.d.ts +28 -0
- package/dist/utils/notifications-schema.d.ts +15 -0
- package/dist/utils/payments-schema.d.ts +11 -0
- package/dist/utils/pkg.d.ts +15 -0
- package/dist/utils/queue.d.ts +8 -0
- package/dist/utils/tenants-schema.d.ts +11 -0
- package/package.json +104 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { AnyRelations, defineRelations, ExtractTablesFromSchema } from "drizzle-orm";
|
|
2
|
+
import type { DrizzleD1Database } from "drizzle-orm/d1";
|
|
3
|
+
import type { D1Database } from "./d1";
|
|
4
|
+
/**
|
|
5
|
+
* Derives the `TRelations` type that Drizzle RC infers when you call `defineRelations(schema)` with
|
|
6
|
+
* no explicit relation config — i.e. every table is included but no foreign-key relations are
|
|
7
|
+
* declared yet. This gives `db.query.<table>.findMany()` full type-safety without any cast.
|
|
8
|
+
*/
|
|
9
|
+
export type InferDrizzleRelations<TSchema extends Record<string, unknown>> = ReturnType<typeof defineRelations<ExtractTablesFromSchema<TSchema>>>;
|
|
10
|
+
export type QarpeoDrizzleDB<TRelations extends AnyRelations = AnyRelations> = DrizzleD1Database<TRelations> & {
|
|
11
|
+
/** Access the raw underlying Cloudflare D1Database binding. */
|
|
12
|
+
raw(bindingName?: string): D1Database;
|
|
13
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/** Cloudflare Durable Objects types for Qarpeo Realtime. */
|
|
2
|
+
export interface DurableObjectId {
|
|
3
|
+
toString(): string;
|
|
4
|
+
equals(other: DurableObjectId): boolean;
|
|
5
|
+
readonly name?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface DurableObjectStub {
|
|
8
|
+
readonly id: DurableObjectId;
|
|
9
|
+
readonly name?: string;
|
|
10
|
+
fetch(request: Request | string, init?: RequestInit): Promise<Response>;
|
|
11
|
+
}
|
|
12
|
+
export interface DurableObjectNamespace {
|
|
13
|
+
newUniqueId(options?: {
|
|
14
|
+
jurisdiction?: string;
|
|
15
|
+
}): DurableObjectId;
|
|
16
|
+
idFromName(name: string): DurableObjectId;
|
|
17
|
+
idFromString(id: string): DurableObjectId;
|
|
18
|
+
get(id: DurableObjectId): DurableObjectStub;
|
|
19
|
+
}
|
|
20
|
+
export interface DurableObjectStorage {
|
|
21
|
+
get<T = unknown>(key: string): Promise<T | undefined>;
|
|
22
|
+
get<T = unknown>(keys: string[]): Promise<Map<string, T>>;
|
|
23
|
+
put<T = unknown>(key: string, value: T): Promise<void>;
|
|
24
|
+
put<T = unknown>(entries: Record<string, T>): Promise<void>;
|
|
25
|
+
delete(key: string): Promise<boolean>;
|
|
26
|
+
delete(keys: string[]): Promise<number>;
|
|
27
|
+
deleteAll(): Promise<void>;
|
|
28
|
+
list<T = unknown>(options?: {
|
|
29
|
+
start?: string;
|
|
30
|
+
startAfter?: string;
|
|
31
|
+
end?: string;
|
|
32
|
+
prefix?: string;
|
|
33
|
+
reverse?: boolean;
|
|
34
|
+
limit?: number;
|
|
35
|
+
}): Promise<Map<string, T>>;
|
|
36
|
+
transaction<T>(closure: (txn: DurableObjectStorage) => Promise<T>): Promise<T>;
|
|
37
|
+
setAlarm?(scheduledTime: number | Date): Promise<void>;
|
|
38
|
+
getAlarm?(): Promise<number | null>;
|
|
39
|
+
deleteAlarm?(): Promise<void>;
|
|
40
|
+
}
|
|
41
|
+
export interface DurableObjectState {
|
|
42
|
+
readonly id: DurableObjectId;
|
|
43
|
+
readonly storage: DurableObjectStorage;
|
|
44
|
+
waitUntil(promise: Promise<unknown>): void;
|
|
45
|
+
blockConcurrencyWhile<T>(callback: () => Promise<T>): Promise<T>;
|
|
46
|
+
acceptWebSocket(ws: WebSocket, tags?: string[]): void;
|
|
47
|
+
getWebSockets(tag?: string): WebSocket[];
|
|
48
|
+
setWebSocketAutoResponse?(maybeReqResp?: unknown): void;
|
|
49
|
+
getWebSocketAutoResponse?(): unknown;
|
|
50
|
+
getWebSocketAutoResponseTimestamp?(ws: WebSocket): Date | null;
|
|
51
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { CFEvent } from "./index";
|
|
2
|
+
/** Parsed sender identity for UI selection, multi-inbox routing, and reply formatting. */
|
|
3
|
+
export interface EmailSenderIdentity {
|
|
4
|
+
/** Identifier key (e.g. 'default', 'support', 'billing', 'alerts') */
|
|
5
|
+
key: string;
|
|
6
|
+
/** Clean email address (e.g. 'support@myapp.com') */
|
|
7
|
+
address: string;
|
|
8
|
+
/** Display name if present (e.g. 'Support Team') */
|
|
9
|
+
name?: string;
|
|
10
|
+
/** Full RFC formatted label (e.g. 'Support Team [support@myapp.com](mailto:support@myapp.com)') */
|
|
11
|
+
label: string;
|
|
12
|
+
}
|
|
13
|
+
/** Options for sending transactional emails via Cloudflare send_email or dev interceptor. */
|
|
14
|
+
export interface SendEmailOptions {
|
|
15
|
+
/** Recipient email address or array of recipient addresses. */
|
|
16
|
+
to: string | string[];
|
|
17
|
+
/**
|
|
18
|
+
* Sender email address (e.g. 'noreply@myapp.com' or 'MyApp
|
|
19
|
+
* [noreply@myapp.com](mailto:noreply@myapp.com)'). If omitted, falls back to `QARPEO_EMAIL_FROM`
|
|
20
|
+
* or the configured site email.
|
|
21
|
+
*/
|
|
22
|
+
from?: string;
|
|
23
|
+
/** Email subject line. */
|
|
24
|
+
subject: string;
|
|
25
|
+
/** Plain-text version of the email body. */
|
|
26
|
+
text?: string;
|
|
27
|
+
/** HTML formatted version of the email body. */
|
|
28
|
+
html?: string;
|
|
29
|
+
/** Carbon copy recipient(s). */
|
|
30
|
+
cc?: string | string[];
|
|
31
|
+
/** Blind carbon copy recipient(s). */
|
|
32
|
+
bcc?: string | string[];
|
|
33
|
+
/** Reply-To email address. */
|
|
34
|
+
replyTo?: string;
|
|
35
|
+
/** Custom RFC 2822 email headers. */
|
|
36
|
+
headers?: Record<string, string>;
|
|
37
|
+
/** Optional Cloudflare send_email binding name override (defaults to 'EMAIL'). */
|
|
38
|
+
binding?: string;
|
|
39
|
+
/** Optional event context for resolving Cloudflare worker environment. */
|
|
40
|
+
event?: CFEvent;
|
|
41
|
+
}
|
|
42
|
+
/** Result returned by `sendEmail()`. */
|
|
43
|
+
export interface SendEmailResult {
|
|
44
|
+
/** Whether the email was sent or accepted by the dev mailbox interceptor. */
|
|
45
|
+
success: boolean;
|
|
46
|
+
/** Generated unique message identifier (Message-ID). */
|
|
47
|
+
id: string;
|
|
48
|
+
/** Optional status or diagnostic message. */
|
|
49
|
+
message?: string;
|
|
50
|
+
}
|
|
51
|
+
/** Raw Cloudflare SendEmail binding interface available in the Worker environment. */
|
|
52
|
+
export interface SendEmailBinding {
|
|
53
|
+
/** Sends an EmailMessage through Cloudflare's email delivery infrastructure. */
|
|
54
|
+
send(message: any): Promise<void>;
|
|
55
|
+
[key: string]: any;
|
|
56
|
+
}
|
|
57
|
+
/** Typed client interface for Cloudflare transactional email. */
|
|
58
|
+
export interface QarpeoEmail {
|
|
59
|
+
/**
|
|
60
|
+
* Send a transactional email. In dev mode, intercepts and formats output to the terminal console.
|
|
61
|
+
* In production, sends via Cloudflare's native `send_email` Workers binding.
|
|
62
|
+
*/
|
|
63
|
+
send(options: SendEmailOptions): Promise<SendEmailResult>;
|
|
64
|
+
/** Access the raw underlying Cloudflare `send_email` binding. */
|
|
65
|
+
raw(bindingName?: string): SendEmailBinding;
|
|
66
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface HyperdriveBinding {
|
|
2
|
+
/** The complete connection URI routed through Hyperdrive's global connection pool. */
|
|
3
|
+
readonly connectionString: string;
|
|
4
|
+
/** The host of the Hyperdrive proxy server. */
|
|
5
|
+
readonly host: string;
|
|
6
|
+
/** The port of the Hyperdrive proxy server. */
|
|
7
|
+
readonly port: number;
|
|
8
|
+
/** The database username. */
|
|
9
|
+
readonly user: string;
|
|
10
|
+
/** The database password. */
|
|
11
|
+
readonly password: string;
|
|
12
|
+
/** The database name. */
|
|
13
|
+
readonly database: string;
|
|
14
|
+
}
|
|
15
|
+
export interface QarpeoHyperdrive extends HyperdriveBinding {
|
|
16
|
+
/** Access the raw underlying Cloudflare Hyperdrive binding. */
|
|
17
|
+
raw(bindingName?: string): HyperdriveBinding;
|
|
18
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
declare const $fetch: any
|
|
2
|
+
declare const useAsyncData: any
|
|
3
|
+
declare const useRuntimeConfig: (event?: any) => any
|
|
4
|
+
declare const defineNuxtPlugin: any
|
|
5
|
+
declare const useRouter: any
|
|
6
|
+
|
|
7
|
+
declare global {
|
|
8
|
+
const getAuthSession: (event: any) => Promise<any>
|
|
9
|
+
const setAuthSession: (event: any, session: any, config?: any) => Promise<any>
|
|
10
|
+
const replaceAuthSession: (event: any, session: any, config?: any) => Promise<any>
|
|
11
|
+
const clearAuthSession: (event: any, config?: any) => Promise<boolean>
|
|
12
|
+
const requireAuthSession: (event: any, opts?: any) => Promise<any>
|
|
13
|
+
const getUserSession: (event: any) => Promise<any>
|
|
14
|
+
const setUserSession: (event: any, session: any, config?: any) => Promise<any>
|
|
15
|
+
const replaceUserSession: (event: any, session: any, config?: any) => Promise<any>
|
|
16
|
+
const clearUserSession: (event: any, config?: any) => Promise<boolean>
|
|
17
|
+
const requireUserSession: (event: any, opts?: any) => Promise<any>
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare module "#qarpeo/agents-registry" {
|
|
21
|
+
const def: any
|
|
22
|
+
export default def
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare module "#qarpeo/queue-consumer" {
|
|
26
|
+
const handler: any
|
|
27
|
+
export default handler
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
declare module "#app" {
|
|
31
|
+
export const useRuntimeConfig: any
|
|
32
|
+
export const useAsyncData: any
|
|
33
|
+
export const navigateTo: any
|
|
34
|
+
export const defineNuxtRouteMiddleware: any
|
|
35
|
+
export const createError: any
|
|
36
|
+
export const $fetch: any
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
declare module "#imports" {
|
|
40
|
+
export const useAuth: any
|
|
41
|
+
export const useUserSession: any
|
|
42
|
+
export const getAuthSession: any
|
|
43
|
+
export const setAuthSession: any
|
|
44
|
+
export const replaceAuthSession: any
|
|
45
|
+
export const clearAuthSession: any
|
|
46
|
+
export const requireAuthSession: any
|
|
47
|
+
export const getUserSession: any
|
|
48
|
+
export const setUserSession: any
|
|
49
|
+
export const replaceUserSession: any
|
|
50
|
+
export const clearUserSession: any
|
|
51
|
+
export const requireUserSession: any
|
|
52
|
+
export const useRuntimeConfig: any
|
|
53
|
+
export const useNitroApp: any
|
|
54
|
+
export const navigateTo: any
|
|
55
|
+
export const defineNuxtRouteMiddleware: any
|
|
56
|
+
export const createError: any
|
|
57
|
+
export const $fetch: any
|
|
58
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import type { RequestEvent } from "nuxt/server";
|
|
2
|
+
export * from "./d1";
|
|
3
|
+
export * from "./r2";
|
|
4
|
+
export * from "./drizzle";
|
|
5
|
+
export * from "./email";
|
|
6
|
+
export * from "./ai";
|
|
7
|
+
export * from "./vectorize";
|
|
8
|
+
export * from "./queue";
|
|
9
|
+
export * from "./analytics";
|
|
10
|
+
export * from "./ratelimit";
|
|
11
|
+
export * from "./hyperdrive";
|
|
12
|
+
export * from "./browser";
|
|
13
|
+
export * from "./auth";
|
|
14
|
+
export * from "./durable-object";
|
|
15
|
+
/** Cloudflare Execution Context for waitUntil and passThroughOnException. */
|
|
16
|
+
export interface CFExecutionContext {
|
|
17
|
+
waitUntil(promise: Promise<any>): void;
|
|
18
|
+
passThroughOnException(): void;
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
}
|
|
21
|
+
/** Cloudflare environment and execution context container attached to events. */
|
|
22
|
+
export interface CloudflareEventContext {
|
|
23
|
+
env: Record<string, any>;
|
|
24
|
+
context?: CFExecutionContext;
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
}
|
|
27
|
+
/** Context container found on Nuxt 5 `RequestEvent`, H3 `H3Event`, and Nitro events. */
|
|
28
|
+
export interface CFEventContext {
|
|
29
|
+
cloudflare?: CloudflareEventContext;
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Server event type: supports modern Nuxt 5 `RequestEvent`, Nitro / H3 events, and objects with a
|
|
34
|
+
* request context container.
|
|
35
|
+
*/
|
|
36
|
+
export type CFEvent = RequestEvent | {
|
|
37
|
+
context?: CFEventContext;
|
|
38
|
+
env?: Record<string, any>;
|
|
39
|
+
platform?: {
|
|
40
|
+
env?: Record<string, any>;
|
|
41
|
+
context?: any;
|
|
42
|
+
};
|
|
43
|
+
[key: string]: any;
|
|
44
|
+
};
|
|
45
|
+
export interface KVNamespaceListKey<Metadata = unknown> {
|
|
46
|
+
name: string;
|
|
47
|
+
expiration?: number;
|
|
48
|
+
metadata?: Metadata;
|
|
49
|
+
}
|
|
50
|
+
export interface KVNamespaceListResult<Metadata = unknown> {
|
|
51
|
+
keys: KVNamespaceListKey<Metadata>[];
|
|
52
|
+
list_complete: boolean;
|
|
53
|
+
cursor?: string;
|
|
54
|
+
}
|
|
55
|
+
export interface KVNamespacePutOptions {
|
|
56
|
+
expiration?: number;
|
|
57
|
+
expirationTtl?: number;
|
|
58
|
+
metadata?: unknown;
|
|
59
|
+
}
|
|
60
|
+
export interface KVNamespace {
|
|
61
|
+
get(key: string, options?: {
|
|
62
|
+
type?: "text" | "json" | "arrayBuffer" | "stream";
|
|
63
|
+
}): Promise<any>;
|
|
64
|
+
getWithMetadata<M = unknown>(key: string, options?: {
|
|
65
|
+
type?: "text" | "json" | "arrayBuffer" | "stream";
|
|
66
|
+
}): Promise<{
|
|
67
|
+
value: any;
|
|
68
|
+
metadata: M | null;
|
|
69
|
+
}>;
|
|
70
|
+
put(key: string, value: string | ArrayBuffer | ReadableStream, options?: KVNamespacePutOptions): Promise<void>;
|
|
71
|
+
delete(key: string): Promise<void>;
|
|
72
|
+
list(options?: {
|
|
73
|
+
prefix?: string;
|
|
74
|
+
limit?: number;
|
|
75
|
+
cursor?: string;
|
|
76
|
+
}): Promise<KVNamespaceListResult<unknown>>;
|
|
77
|
+
}
|
|
78
|
+
export interface KVSetOptions {
|
|
79
|
+
/** Time to live in seconds (minimum 60 for Cloudflare KV) */
|
|
80
|
+
ttl?: number;
|
|
81
|
+
/** Alias for ttl (seconds) */
|
|
82
|
+
ex?: number;
|
|
83
|
+
/** Absolute Unix timestamp (seconds) when the key should expire */
|
|
84
|
+
expiration?: number;
|
|
85
|
+
/** Arbitrary metadata attached alongside the value in Cloudflare KV */
|
|
86
|
+
metadata?: unknown;
|
|
87
|
+
}
|
|
88
|
+
export interface KVGetOptions {
|
|
89
|
+
/**
|
|
90
|
+
* Return type for the value:
|
|
91
|
+
*
|
|
92
|
+
* - `"json"` (default): auto-deserializes JSON back to the original type
|
|
93
|
+
* - `"text"`: returns the raw stored string
|
|
94
|
+
* - `"arrayBuffer"`: returns raw bytes as ArrayBuffer
|
|
95
|
+
* - `"stream"`: returns a ReadableStream
|
|
96
|
+
*/
|
|
97
|
+
type?: "json" | "text" | "arrayBuffer" | "stream";
|
|
98
|
+
/**
|
|
99
|
+
* Time-to-live in seconds for edge PoP cache caching this KV read.
|
|
100
|
+
* Minimum is 60 seconds per Cloudflare KV specifications.
|
|
101
|
+
*/
|
|
102
|
+
cacheTtl?: number;
|
|
103
|
+
}
|
|
104
|
+
export interface KVListOptions {
|
|
105
|
+
/** Only return keys with this prefix */
|
|
106
|
+
prefix?: string;
|
|
107
|
+
/** Maximum number of keys per page (max 1000, default 1000) */
|
|
108
|
+
limit?: number;
|
|
109
|
+
/** Pagination cursor from a previous list() call */
|
|
110
|
+
cursor?: string;
|
|
111
|
+
}
|
|
112
|
+
export interface QarpeoKV {
|
|
113
|
+
/**
|
|
114
|
+
* Get a value from KV. Defaults to JSON deserialization. Pass `{ type: "text" | "arrayBuffer" |
|
|
115
|
+
* "stream" }` for binary/raw access.
|
|
116
|
+
*
|
|
117
|
+
* @template T Expected return type (default: `unknown`)
|
|
118
|
+
*/
|
|
119
|
+
get<T = unknown>(key: string, options?: KVGetOptions): Promise<T | null>;
|
|
120
|
+
/** Store a value in KV. Objects and arrays are auto-serialized to JSON. Strings are stored as-is. */
|
|
121
|
+
set(key: string, value: unknown, options?: KVSetOptions): Promise<void>;
|
|
122
|
+
/** Check if a key exists in KV */
|
|
123
|
+
has(key: string): Promise<boolean>;
|
|
124
|
+
/** Delete a key from KV */
|
|
125
|
+
delete(key: string): Promise<boolean>;
|
|
126
|
+
/** Alias for delete */
|
|
127
|
+
del(key: string): Promise<boolean>;
|
|
128
|
+
/**
|
|
129
|
+
* List all keys, transparently handling CF KV's 1000-key cursor pagination. Pass a `prefix` to
|
|
130
|
+
* filter keys by prefix.
|
|
131
|
+
*/
|
|
132
|
+
keys(prefix?: string): Promise<string[]>;
|
|
133
|
+
/**
|
|
134
|
+
* Raw paginated list — returns one page of keys plus a cursor for continuation. Use this when you
|
|
135
|
+
* need manual pagination control.
|
|
136
|
+
*/
|
|
137
|
+
list(options?: KVListOptions): Promise<KVNamespaceListResult<unknown>>;
|
|
138
|
+
/**
|
|
139
|
+
* Delete all keys (or all keys matching a prefix). Handles pagination internally; deletes
|
|
140
|
+
* concurrently.
|
|
141
|
+
*/
|
|
142
|
+
clear(prefix?: string): Promise<void>;
|
|
143
|
+
/**
|
|
144
|
+
* Get a value together with its metadata in a single CF KV round-trip. This is a Cloudflare
|
|
145
|
+
* KV-native feature — no other KV provider supports it.
|
|
146
|
+
*
|
|
147
|
+
* @template T Value type
|
|
148
|
+
* @template M Metadata type
|
|
149
|
+
*/
|
|
150
|
+
getWithMetadata<T = unknown, M = unknown>(key: string, options?: KVGetOptions): Promise<{
|
|
151
|
+
value: T | null;
|
|
152
|
+
metadata: M | null;
|
|
153
|
+
}>;
|
|
154
|
+
/** Access the raw underlying Cloudflare KVNamespace binding */
|
|
155
|
+
raw(bindingName?: string): KVNamespace;
|
|
156
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from "./d1.mjs";
|
|
2
|
+
export * from "./r2.mjs";
|
|
3
|
+
export * from "./drizzle.mjs";
|
|
4
|
+
export * from "./email.mjs";
|
|
5
|
+
export * from "./ai.mjs";
|
|
6
|
+
export * from "./vectorize.mjs";
|
|
7
|
+
export * from "./queue.mjs";
|
|
8
|
+
export * from "./analytics.mjs";
|
|
9
|
+
export * from "./ratelimit.mjs";
|
|
10
|
+
export * from "./hyperdrive.mjs";
|
|
11
|
+
export * from "./browser.mjs";
|
|
12
|
+
export * from "./auth.mjs";
|
|
13
|
+
export * from "./durable-object.mjs";
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export type QueueContentType = "json" | "text" | "bytes" | "v8";
|
|
2
|
+
export interface QueueSendOptions {
|
|
3
|
+
/** Content type of the message body (default: 'json') */
|
|
4
|
+
contentType?: QueueContentType;
|
|
5
|
+
/** Delay delivery of this message in seconds (default: 0) */
|
|
6
|
+
delaySeconds?: number;
|
|
7
|
+
}
|
|
8
|
+
export interface MessageSendRequest<T = any> {
|
|
9
|
+
/** The message payload */
|
|
10
|
+
body: T;
|
|
11
|
+
/** Content type of the message body */
|
|
12
|
+
contentType?: QueueContentType;
|
|
13
|
+
/** Delay delivery of this message in seconds */
|
|
14
|
+
delaySeconds?: number;
|
|
15
|
+
}
|
|
16
|
+
export interface QueueSendBatchOptions {
|
|
17
|
+
/** Delay delivery of all messages in this batch in seconds */
|
|
18
|
+
delaySeconds?: number;
|
|
19
|
+
}
|
|
20
|
+
export interface QueueMessage<T = any> {
|
|
21
|
+
/** Unique ID of the message */
|
|
22
|
+
readonly id: string;
|
|
23
|
+
/** Timestamp when the message was initially published */
|
|
24
|
+
readonly timestamp: Date;
|
|
25
|
+
/** The message payload */
|
|
26
|
+
readonly body: T;
|
|
27
|
+
/** Number of times delivery has been attempted */
|
|
28
|
+
readonly attempts: number;
|
|
29
|
+
/** Acknowledge successful processing of this message */
|
|
30
|
+
ack(): void;
|
|
31
|
+
/** Mark message as failed and retry delivery after optional delay */
|
|
32
|
+
retry(options?: {
|
|
33
|
+
delaySeconds?: number;
|
|
34
|
+
}): void;
|
|
35
|
+
}
|
|
36
|
+
export interface QueueMessageBatch<T = any> {
|
|
37
|
+
/** Name of the queue that produced this batch */
|
|
38
|
+
readonly queue: string;
|
|
39
|
+
/** Array of messages contained in this batch */
|
|
40
|
+
readonly messages: readonly QueueMessage<T>[];
|
|
41
|
+
/** Acknowledge all messages in the batch at once */
|
|
42
|
+
ackAll(): void;
|
|
43
|
+
/** Retry all messages in the batch at once */
|
|
44
|
+
retryAll(options?: {
|
|
45
|
+
delaySeconds?: number;
|
|
46
|
+
}): void;
|
|
47
|
+
}
|
|
48
|
+
export interface Queue<T = any> {
|
|
49
|
+
/**
|
|
50
|
+
* Send a single message to the queue.
|
|
51
|
+
*
|
|
52
|
+
* @param message The message payload
|
|
53
|
+
* @param options Optional content type or delay settings
|
|
54
|
+
*/
|
|
55
|
+
send(message: T, options?: QueueSendOptions): Promise<void>;
|
|
56
|
+
/**
|
|
57
|
+
* Send a batch of messages to the queue in a single network request.
|
|
58
|
+
*
|
|
59
|
+
* @param messages Iterable of message requests
|
|
60
|
+
* @param options Optional batch delay settings
|
|
61
|
+
*/
|
|
62
|
+
sendBatch(messages: Iterable<MessageSendRequest<T>>, options?: QueueSendBatchOptions): Promise<void>;
|
|
63
|
+
}
|
|
64
|
+
export interface QarpeoQueue<T = any> extends Queue<T> {
|
|
65
|
+
/** Access the raw underlying Cloudflare Queue binding */
|
|
66
|
+
raw(bindingName?: string): Queue<T>;
|
|
67
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import type { CFEvent } from "./index";
|
|
2
|
+
export type BlobAccessTier = "public" | "unlisted" | "private";
|
|
3
|
+
export interface R2HttpMetadata {
|
|
4
|
+
contentType?: string;
|
|
5
|
+
contentLanguage?: string;
|
|
6
|
+
contentDisposition?: string;
|
|
7
|
+
contentEncoding?: string;
|
|
8
|
+
cacheControl?: string;
|
|
9
|
+
cacheExpiry?: Date;
|
|
10
|
+
}
|
|
11
|
+
export interface R2Object {
|
|
12
|
+
key: string;
|
|
13
|
+
version: string;
|
|
14
|
+
size: number;
|
|
15
|
+
etag: string;
|
|
16
|
+
httpEtag: string;
|
|
17
|
+
uploaded: Date;
|
|
18
|
+
httpMetadata?: R2HttpMetadata;
|
|
19
|
+
customMetadata?: Record<string, string>;
|
|
20
|
+
writeHttpMetadata(headers: Headers): void;
|
|
21
|
+
}
|
|
22
|
+
export interface R2ObjectBody extends R2Object {
|
|
23
|
+
body: ReadableStream;
|
|
24
|
+
bodyUsed: boolean;
|
|
25
|
+
arrayBuffer(): Promise<ArrayBuffer>;
|
|
26
|
+
text(): Promise<string>;
|
|
27
|
+
json<T = unknown>(): Promise<T>;
|
|
28
|
+
blob(): Promise<Blob>;
|
|
29
|
+
}
|
|
30
|
+
export interface R2Objects {
|
|
31
|
+
objects: R2Object[];
|
|
32
|
+
truncated: boolean;
|
|
33
|
+
cursor?: string;
|
|
34
|
+
delimitedPrefixes: string[];
|
|
35
|
+
}
|
|
36
|
+
export interface R2ListOptions {
|
|
37
|
+
limit?: number;
|
|
38
|
+
prefix?: string;
|
|
39
|
+
cursor?: string;
|
|
40
|
+
delimiter?: string;
|
|
41
|
+
include?: ("httpMetadata" | "customMetadata")[];
|
|
42
|
+
}
|
|
43
|
+
export interface R2PutOptions {
|
|
44
|
+
httpMetadata?: R2HttpMetadata | Headers;
|
|
45
|
+
customMetadata?: Record<string, string>;
|
|
46
|
+
sha1?: ArrayBuffer | string;
|
|
47
|
+
sha256?: ArrayBuffer | string;
|
|
48
|
+
md5?: ArrayBuffer | string;
|
|
49
|
+
}
|
|
50
|
+
export interface R2Bucket {
|
|
51
|
+
head(key: string): Promise<R2Object | null>;
|
|
52
|
+
get(key: string, options?: {
|
|
53
|
+
onlyIf?: Headers;
|
|
54
|
+
}): Promise<R2ObjectBody | null>;
|
|
55
|
+
put(key: string, value: ReadableStream | ArrayBuffer | ArrayBufferView | string | Blob | null, options?: R2PutOptions): Promise<R2Object>;
|
|
56
|
+
delete(keys: string | string[]): Promise<void>;
|
|
57
|
+
list(options?: R2ListOptions): Promise<R2Objects>;
|
|
58
|
+
}
|
|
59
|
+
export interface BlobPutOptions {
|
|
60
|
+
contentType?: string;
|
|
61
|
+
customMetadata?: Record<string, string>;
|
|
62
|
+
httpMetadata?: R2HttpMetadata;
|
|
63
|
+
}
|
|
64
|
+
export interface BlobServeOptions {
|
|
65
|
+
cacheControl?: string;
|
|
66
|
+
contentDisposition?: string;
|
|
67
|
+
}
|
|
68
|
+
export type BlobSize = "100KB" | "250KB" | "500KB" | "1MB" | "2MB" | "5MB" | "10MB" | "25MB" | "50MB" | "100MB" | "250MB" | "500MB" | "1GB" | "2GB" | "5GB" | (string & {}) | number;
|
|
69
|
+
export interface BlobEnsureOptions {
|
|
70
|
+
maxSize?: BlobSize;
|
|
71
|
+
types?: string[] | string;
|
|
72
|
+
}
|
|
73
|
+
export interface BlobHandleUploadOptions {
|
|
74
|
+
formKey?: string;
|
|
75
|
+
pathname?: string | ((file: File) => string);
|
|
76
|
+
prefix?: string;
|
|
77
|
+
ensure?: BlobEnsureOptions;
|
|
78
|
+
customMetadata?: Record<string, string>;
|
|
79
|
+
}
|
|
80
|
+
export interface R2UploadedPart {
|
|
81
|
+
partNumber: number;
|
|
82
|
+
etag: string;
|
|
83
|
+
}
|
|
84
|
+
export interface R2MultipartUpload {
|
|
85
|
+
key: string;
|
|
86
|
+
uploadId: string;
|
|
87
|
+
uploadPart(partNumber: number, value: ReadableStream | ArrayBuffer | ArrayBufferView | string | Blob | Uint8Array): Promise<R2UploadedPart>;
|
|
88
|
+
abort(): Promise<void>;
|
|
89
|
+
complete(uploadedParts: R2UploadedPart[]): Promise<R2Object>;
|
|
90
|
+
}
|
|
91
|
+
export interface QarpeoBlob {
|
|
92
|
+
put(pathname: string, data: ReadableStream | ArrayBuffer | ArrayBufferView | string | Blob | Uint8Array, options?: BlobPutOptions): Promise<R2Object>;
|
|
93
|
+
get(pathname: string): Promise<R2ObjectBody | null>;
|
|
94
|
+
text(pathname: string): Promise<string | null>;
|
|
95
|
+
json<T = unknown>(pathname: string): Promise<T | null>;
|
|
96
|
+
arrayBuffer(pathname: string): Promise<ArrayBuffer | null>;
|
|
97
|
+
has(pathname: string): Promise<boolean>;
|
|
98
|
+
head(pathname: string): Promise<R2Object | null>;
|
|
99
|
+
delete(pathname: string | string[]): Promise<void>;
|
|
100
|
+
list(options?: R2ListOptions): Promise<R2Objects>;
|
|
101
|
+
serve(event: CFEvent, pathname: string, options?: BlobServeOptions): Promise<Response>;
|
|
102
|
+
handleUpload(event: CFEvent, options?: BlobHandleUploadOptions): Promise<R2Object & {
|
|
103
|
+
pathname: string;
|
|
104
|
+
}>;
|
|
105
|
+
createMultipartUpload(pathname: string, options?: R2PutOptions): Promise<R2MultipartUpload>;
|
|
106
|
+
resumeMultipartUpload(pathname: string, uploadId: string): R2MultipartUpload;
|
|
107
|
+
raw(bindingName?: string): R2Bucket;
|
|
108
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface RateLimitOptions {
|
|
2
|
+
/** The unique key to rate limit against (e.g. client IP, user ID, route path) */
|
|
3
|
+
key: string;
|
|
4
|
+
}
|
|
5
|
+
export interface RateLimitResult {
|
|
6
|
+
/** Whether the request is permitted within the rate limit threshold */
|
|
7
|
+
success: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface RateLimiterBinding {
|
|
10
|
+
/**
|
|
11
|
+
* Evaluates the rate limit for the specified key.
|
|
12
|
+
*
|
|
13
|
+
* @param options The key to limit
|
|
14
|
+
* @returns Object containing boolean `success` flag
|
|
15
|
+
*/
|
|
16
|
+
limit(options: RateLimitOptions): Promise<RateLimitResult>;
|
|
17
|
+
}
|
|
18
|
+
export interface QarpeoRateLimit extends RateLimiterBinding {
|
|
19
|
+
/** Access the raw underlying Cloudflare RateLimiter binding. */
|
|
20
|
+
raw(bindingName?: string): RateLimiterBinding;
|
|
21
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export type VectorizeDistanceMetric = "cosine" | "euclidean" | "dot-product";
|
|
2
|
+
export type VectorizeVectorValues = number[] | Float32Array | Float64Array;
|
|
3
|
+
export interface VectorizeVector {
|
|
4
|
+
/** Unique identifier for the vector */
|
|
5
|
+
id: string;
|
|
6
|
+
/** Dense vector embedding values */
|
|
7
|
+
values: VectorizeVectorValues;
|
|
8
|
+
/** Optional namespace to group vectors within an index */
|
|
9
|
+
namespace?: string;
|
|
10
|
+
/** Optional key-value metadata attached to the vector */
|
|
11
|
+
metadata?: Record<string, any>;
|
|
12
|
+
}
|
|
13
|
+
export interface VectorizeMatch {
|
|
14
|
+
/** Vector identifier */
|
|
15
|
+
id: string;
|
|
16
|
+
/** Similarity score relative to the query vector */
|
|
17
|
+
score: number;
|
|
18
|
+
/** Vector values (if returnValues was set to true) */
|
|
19
|
+
values?: number[];
|
|
20
|
+
/** Namespace (if present) */
|
|
21
|
+
namespace?: string;
|
|
22
|
+
/** Metadata attached to the vector (if returnMetadata was requested) */
|
|
23
|
+
metadata?: Record<string, any>;
|
|
24
|
+
}
|
|
25
|
+
export interface VectorizeQueryOptions {
|
|
26
|
+
/** Maximum number of nearest neighbors to return (default: 5, max: 100) */
|
|
27
|
+
topK?: number;
|
|
28
|
+
/** Whether to return the raw vector values in matches (default: false) */
|
|
29
|
+
returnValues?: boolean;
|
|
30
|
+
/** Whether and which metadata to return: 'none', 'indexed', 'all', or boolean */
|
|
31
|
+
returnMetadata?: "none" | "indexed" | "all" | boolean;
|
|
32
|
+
/** Filter criteria for metadata-based filtering */
|
|
33
|
+
filter?: Record<string, any>;
|
|
34
|
+
/** Search only within a specific vector namespace */
|
|
35
|
+
namespace?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface VectorizeQueryResult {
|
|
38
|
+
/** Matching vector records sorted by similarity */
|
|
39
|
+
matches: VectorizeMatch[];
|
|
40
|
+
/** Number of returned matches */
|
|
41
|
+
count: number;
|
|
42
|
+
}
|
|
43
|
+
export interface VectorizeAsyncMutation {
|
|
44
|
+
/** Unique ID tracking the async background mutation in Vectorize */
|
|
45
|
+
mutationId: string;
|
|
46
|
+
}
|
|
47
|
+
export interface VectorizeIndexDetails {
|
|
48
|
+
/** Dimensionality of the vectors stored in the index (e.g. 768, 1536) */
|
|
49
|
+
dimensions: number;
|
|
50
|
+
/** Distance metric used for nearest-neighbor calculation */
|
|
51
|
+
metric: VectorizeDistanceMetric;
|
|
52
|
+
/** Approximate number of vectors stored */
|
|
53
|
+
vectorCount?: number;
|
|
54
|
+
/** The most recent mutation ID that has been indexed */
|
|
55
|
+
processedUpToMutation?: string;
|
|
56
|
+
}
|
|
57
|
+
export interface VectorizeIndex {
|
|
58
|
+
/** Query the index with a vector to find its nearest neighbors */
|
|
59
|
+
query(vector: VectorizeVectorValues, options?: VectorizeQueryOptions): Promise<VectorizeQueryResult>;
|
|
60
|
+
/** Insert new vectors into the index */
|
|
61
|
+
insert(vectors: VectorizeVector[]): Promise<VectorizeAsyncMutation>;
|
|
62
|
+
/** Insert or update vectors by ID in the index */
|
|
63
|
+
upsert(vectors: VectorizeVector[]): Promise<VectorizeAsyncMutation>;
|
|
64
|
+
/** Delete vectors from the index by their IDs */
|
|
65
|
+
deleteByIds(ids: string[]): Promise<VectorizeAsyncMutation>;
|
|
66
|
+
/** Retrieve vectors from the index by their IDs */
|
|
67
|
+
getByIds(ids: string[]): Promise<VectorizeVector[]>;
|
|
68
|
+
/** Retrieve index metadata and statistics */
|
|
69
|
+
describe(): Promise<VectorizeIndexDetails>;
|
|
70
|
+
}
|
|
71
|
+
export interface QarpeoVectorize extends VectorizeIndex {
|
|
72
|
+
/** Access the raw underlying Cloudflare VectorizeIndex binding */
|
|
73
|
+
raw(bindingName?: string): VectorizeIndex;
|
|
74
|
+
}
|
|
File without changes
|