qarpeo 0.1.18 → 0.1.21
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/README.md +96 -96
- package/dist/chunks/auth-schema.mjs +3 -1
- package/dist/chunks/wrangler.mjs +22 -3
- package/dist/cli/index.mjs +448 -221
- package/dist/fate/index.d.ts +29 -22
- package/dist/fate/index.mjs +1 -3
- package/dist/module.d.ts +1 -1
- package/dist/module.mjs +103 -82
- package/dist/runtime/ai.d.ts +2 -2
- package/dist/runtime/app/components/BlobImage.vue +119 -107
- package/dist/runtime/app/components/CMSBlocks.vue +104 -93
- package/dist/runtime/app/components/CMSContent.vue +24 -23
- package/dist/runtime/app/components/CMSImage.vue +49 -49
- package/dist/runtime/app/components/CMSLocaleSwitcher.vue +110 -110
- package/dist/runtime/app/components/CMSPreviewBanner.vue +83 -79
- package/dist/runtime/app/components/CMSVersionBanner.vue +53 -49
- package/dist/runtime/app/components/CMSVersionSwitcher.vue +140 -140
- package/dist/runtime/app/components/ContentRenderer.vue +83 -80
- package/dist/runtime/app/components/FileUpload.vue +200 -196
- package/dist/runtime/app/components/ImpersonationBanner.vue +61 -57
- package/dist/runtime/app/components/QarpeoWelcome.vue +84 -84
- package/dist/runtime/app/components/SignedIn.vue +13 -13
- package/dist/runtime/app/components/SignedOut.vue +13 -13
- package/dist/runtime/app/components/shiki.css +34 -34
- package/dist/runtime/app/composables/ai.d.ts +22 -22
- package/dist/runtime/app/composables/ai.mjs +3 -7
- package/dist/runtime/app/composables/analytics.mjs +1 -1
- package/dist/runtime/app/composables/api-tokens.mjs +1 -1
- package/dist/runtime/app/composables/auth.d.ts +6 -7
- package/dist/runtime/app/composables/auth.mjs +6 -3
- package/dist/runtime/app/composables/chat.mjs +3 -7
- package/dist/runtime/app/composables/cms-preview.d.ts +3 -3
- package/dist/runtime/app/composables/cms-preview.mjs +1 -1
- package/dist/runtime/app/composables/cms.d.ts +3 -5
- package/dist/runtime/app/composables/cms.mjs +2 -2
- package/dist/runtime/app/composables/docs-version.d.ts +8 -7
- package/dist/runtime/app/composables/docs-version.mjs +3 -3
- package/dist/runtime/app/composables/impersonation.mjs +1 -1
- package/dist/runtime/app/composables/notifications.d.ts +5 -5
- package/dist/runtime/app/composables/notifications.mjs +4 -5
- package/dist/runtime/app/composables/organization.mjs +1 -1
- package/dist/runtime/app/composables/passkey.mjs +1 -1
- package/dist/runtime/app/composables/passwordless.mjs +1 -1
- package/dist/runtime/app/composables/payments.d.ts +2 -1
- package/dist/runtime/app/composables/payments.mjs +1 -1
- package/dist/runtime/app/composables/realtime.d.ts +13 -13
- package/dist/runtime/app/composables/realtime.mjs +2 -2
- package/dist/runtime/app/composables/resumable-upload.d.ts +11 -11
- package/dist/runtime/app/composables/resumable-upload.mjs +1 -1
- package/dist/runtime/app/composables/site.mjs +1 -1
- package/dist/runtime/app/composables/storage.d.ts +151 -11
- package/dist/runtime/app/composables/storage.mjs +291 -33
- package/dist/runtime/app/composables/turnstile.mjs +1 -1
- package/dist/runtime/app/composables/two-factor.mjs +1 -1
- package/dist/runtime/app/pages/devtools/agents.vue +716 -716
- package/dist/runtime/app/pages/devtools/analytics.vue +616 -616
- package/dist/runtime/app/pages/devtools/auth.vue +381 -350
- package/dist/runtime/app/pages/devtools/blob.vue +743 -744
- package/dist/runtime/app/pages/devtools/db.vue +545 -545
- package/dist/runtime/app/pages/devtools/domains.vue +771 -771
- package/dist/runtime/app/pages/devtools/kv.vue +827 -828
- package/dist/runtime/app/pages/devtools/logs.vue +649 -653
- package/dist/runtime/app/pages/devtools/mail.vue +388 -388
- package/dist/runtime/app/pages/devtools/overview.vue +391 -389
- package/dist/runtime/app/pages/devtools/realtime.vue +89 -27
- package/dist/runtime/app/pages/devtools/security.vue +20 -5
- package/dist/runtime/app/pages/devtools/settings.vue +559 -559
- package/dist/runtime/app/pages/devtools/tasks.vue +26 -10
- package/dist/runtime/app/pages/devtools.vue +176 -176
- package/dist/runtime/app/plugins/seo.mjs +1 -1
- package/dist/runtime/app/plugins/shortcuts.client.d.ts +1 -4
- package/dist/runtime/app/public/sw-notifications.mjs +47 -52
- package/dist/runtime/blob.mjs +11 -4
- package/dist/runtime/browser.d.ts +1 -1
- package/dist/runtime/browser.mjs +12 -2
- package/dist/runtime/cache.d.ts +2 -1
- package/dist/runtime/kv.mjs +4 -1
- package/dist/runtime/providers/qarpeo.d.ts +3 -3
- package/dist/runtime/server/durable-objects/agent.mjs +1 -1
- package/dist/runtime/server/durable-objects/room.d.ts +2 -2
- package/dist/runtime/server/durable-objects/room.mjs +5 -5
- package/dist/runtime/server/middleware/devtools.mjs +6 -2
- package/dist/runtime/server/plugins/cms.d.ts +4 -2
- package/dist/runtime/server/plugins/dev-proxy.mjs +1 -1
- package/dist/runtime/server/routes/__qarpeo/agents/chat.post.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/agents/chat.post.mjs +4 -1
- package/dist/runtime/server/routes/__qarpeo/analytics/events.get.d.ts +1 -4
- package/dist/runtime/server/routes/__qarpeo/analytics/summary.get.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/analytics/summary.get.mjs +5 -1
- package/dist/runtime/server/routes/__qarpeo/db/tables.get.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/db/tables.get.mjs +1 -1
- package/dist/runtime/server/routes/__qarpeo/logs.get.d.ts +4 -1
- package/dist/runtime/server/routes/__qarpeo/mail/track/click/[id].get.mjs +1 -1
- package/dist/runtime/server/routes/__qarpeo/mail/track/open/[id].get.mjs +2 -2
- package/dist/runtime/server/routes/__qarpeo/overview.get.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/realtime/broadcast.post.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/realtime/broadcast.post.mjs +1 -1
- package/dist/runtime/server/routes/__qarpeo/realtime/clear.post.d.ts +1 -4
- package/dist/runtime/server/routes/__qarpeo/realtime/clear.post.mjs +1 -1
- package/dist/runtime/server/routes/__qarpeo/realtime/disconnect.post.d.ts +1 -4
- package/dist/runtime/server/routes/__qarpeo/realtime/disconnect.post.mjs +1 -1
- package/dist/runtime/server/routes/__qarpeo/realtime/room.get.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/realtime/rooms.get.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/security/analytics.get.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/security/ban.post.d.ts +1 -4
- package/dist/runtime/server/routes/__qarpeo/security/clear.post.d.ts +1 -4
- package/dist/runtime/server/routes/__qarpeo/security/unban.post.d.ts +1 -4
- package/dist/runtime/server/routes/__qarpeo/settings.get.mjs +1 -1
- package/dist/runtime/server/routes/__qarpeo/tasks/run.post.mjs +3 -1
- package/dist/runtime/server/routes/agents/[agent]/chat.post.mjs +8 -2
- package/dist/runtime/server/routes/agents/[agent]/clear.post.mjs +8 -2
- package/dist/runtime/server/routes/agents/[agent]/history.get.mjs +8 -2
- package/dist/runtime/server/routes/ai/embed.post.d.ts +1 -4
- package/dist/runtime/server/routes/ai/search.post.d.ts +2 -2
- package/dist/runtime/server/routes/auth/account.delete.mjs +1 -1
- package/dist/runtime/server/routes/auth/handler.mjs +6 -1
- package/dist/runtime/server/routes/auth/magic-link/verify.get.mjs +1 -1
- package/dist/runtime/server/routes/auth/organization/members/[id].delete.mjs +7 -1
- package/dist/runtime/server/routes/auth/otp/verify.post.mjs +1 -1
- package/dist/runtime/server/routes/auth/sso/login.get.mjs +7 -1
- package/dist/runtime/server/routes/auth/sso/oidc/callback.get.mjs +8 -2
- package/dist/runtime/server/routes/auth/sso/saml/acs.post.mjs +7 -2
- package/dist/runtime/server/routes/auth/webauthn/login/options.post.mjs +1 -1
- package/dist/runtime/server/routes/auth/webauthn/login/verify.post.mjs +7 -2
- package/dist/runtime/server/routes/auth/webauthn/register/options.post.mjs +6 -1
- package/dist/runtime/server/routes/auth/webauthn/register/verify.post.mjs +6 -1
- package/dist/runtime/server/routes/browser/crawl.post.d.ts +1 -2
- package/dist/runtime/server/routes/browser/invoice.post.d.ts +1 -2
- package/dist/runtime/server/routes/browser/og-image.post.d.ts +2 -2
- package/dist/runtime/server/routes/browser/pdf.post.d.ts +1 -2
- package/dist/runtime/server/routes/browser/pdf.post.mjs +6 -1
- package/dist/runtime/server/routes/browser/screenshot.post.d.ts +2 -2
- package/dist/runtime/server/routes/browser/screenshot.post.mjs +5 -1
- package/dist/runtime/server/routes/cms/components/index.get.d.ts +2 -2
- package/dist/runtime/server/routes/cms/preview/disable.get.d.ts +4 -3
- package/dist/runtime/server/routes/cms/preview/enable.get.d.ts +8 -8
- package/dist/runtime/server/routes/cms/search.get.mjs +1 -1
- package/dist/runtime/server/routes/cms/webhooks/[provider].post.d.ts +7 -7
- package/dist/runtime/server/routes/cms/webhooks/[provider].post.mjs +9 -2
- package/dist/runtime/server/routes/docs/search.get.d.ts +9 -9
- package/dist/runtime/server/routes/fate.mjs +5 -8
- package/dist/runtime/server/routes/mail/bounce.post.d.ts +2 -2
- package/dist/runtime/server/routes/mail/unsubscribe.d.ts +2 -2
- package/dist/runtime/server/routes/mail/webhooks.post.d.ts +2 -2
- package/dist/runtime/server/routes/mail/webhooks.post.mjs +7 -1
- package/dist/runtime/server/routes/payments/usage.get.d.ts +8 -8
- package/dist/runtime/server/routes/payments/usage.post.d.ts +2 -2
- package/dist/runtime/server/routes/realtime/history.delete.d.ts +4 -3
- package/dist/runtime/server/routes/realtime/history.get.d.ts +7 -6
- package/dist/runtime/server/routes/realtime/ws.get.mjs +6 -1
- package/dist/runtime/server/routes/robots.txt.get.mjs +1 -1
- package/dist/runtime/server/routes/sitemap.xml.get.mjs +2 -1
- package/dist/runtime/server/routes/storage/multipart/abort.post.d.ts +2 -2
- package/dist/runtime/server/routes/storage/multipart/complete.post.d.ts +2 -2
- package/dist/runtime/server/routes/storage/multipart/complete.post.mjs +2 -2
- package/dist/runtime/server/routes/storage/multipart/create.post.d.ts +2 -2
- package/dist/runtime/server/routes/storage/multipart/create.post.mjs +7 -3
- package/dist/runtime/server/routes/storage/multipart/part.put.d.ts +2 -2
- package/dist/runtime/server/routes/storage/multipart/part.put.mjs +1 -1
- package/dist/runtime/server/routes/tenants/[tenant]/domains/[domain]/index.delete.mjs +2 -4
- package/dist/runtime/server/routes/tenants/[tenant]/domains/[domain]/verify.post.mjs +2 -4
- package/dist/runtime/server/routes/tenants/[tenant]/domains/index.get.mjs +1 -1
- package/dist/runtime/server/routes/tenants/[tenant]/domains/index.post.mjs +2 -4
- package/dist/runtime/server/tasks/cms/publish.mjs +1 -1
- package/dist/runtime/server/utils/ai.d.ts +9 -9
- package/dist/runtime/server/utils/ai.mjs +3 -3
- package/dist/runtime/server/utils/auth.d.ts +12 -16
- package/dist/runtime/server/utils/auth.mjs +15 -9
- package/dist/runtime/server/utils/bots.mjs +21 -7
- package/dist/runtime/server/utils/browser-utils.d.ts +44 -41
- package/dist/runtime/server/utils/browser-utils.mjs +14 -4
- package/dist/runtime/server/utils/cache.d.ts +5 -5
- package/dist/runtime/server/utils/cms/common.d.ts +26 -0
- package/dist/runtime/server/utils/cms/common.mjs +68 -0
- package/dist/runtime/server/utils/cms/git.d.ts +24 -0
- package/dist/runtime/server/utils/cms/git.mjs +240 -0
- package/dist/runtime/server/utils/cms/markdown.d.ts +22 -0
- package/dist/runtime/server/utils/cms/markdown.mjs +92 -0
- package/dist/runtime/server/utils/cms/path.d.ts +51 -0
- package/dist/runtime/server/utils/cms/path.mjs +127 -0
- package/dist/runtime/server/utils/cms/search.d.ts +22 -0
- package/dist/runtime/server/utils/cms/search.mjs +221 -0
- package/dist/runtime/server/utils/cms-events.d.ts +1 -1
- package/dist/runtime/server/utils/cms-events.mjs +2 -2
- package/dist/runtime/server/utils/cms-filter.mjs +2 -2
- package/dist/runtime/server/utils/cms.d.ts +17 -149
- package/dist/runtime/server/utils/cms.mjs +52 -761
- package/dist/runtime/server/utils/config.d.ts +5 -4
- package/dist/runtime/server/utils/domains.mjs +7 -4
- package/dist/runtime/server/utils/email-templates.d.ts +10 -7
- package/dist/runtime/server/utils/email-templates.mjs +20 -5
- package/dist/runtime/server/utils/feed.d.ts +2 -2
- package/dist/runtime/server/utils/feed.mjs +3 -1
- package/dist/runtime/server/utils/mail-suppression.d.ts +8 -24
- package/dist/runtime/server/utils/mail-suppression.mjs +2 -2
- package/dist/runtime/server/utils/mail.d.ts +7 -8
- package/dist/runtime/server/utils/mail.mjs +17 -12
- package/dist/runtime/server/utils/multipart-store.d.ts +2 -2
- package/dist/runtime/server/utils/notifications.d.ts +9 -23
- package/dist/runtime/server/utils/organization.mjs +4 -12
- package/dist/runtime/server/utils/passwordless.mjs +1 -1
- package/dist/runtime/server/utils/payments.d.ts +2 -6
- package/dist/runtime/server/utils/payments.mjs +1 -1
- package/dist/runtime/server/utils/queue.d.ts +21 -31
- package/dist/runtime/server/utils/rag.d.ts +4 -4
- package/dist/runtime/server/utils/rag.mjs +8 -8
- package/dist/runtime/server/utils/realtime-store.d.ts +2 -2
- package/dist/runtime/server/utils/realtime.d.ts +26 -28
- package/dist/runtime/server/utils/scheduled-task.d.ts +1 -3
- package/dist/runtime/server/utils/security-store.d.ts +2 -2
- package/dist/runtime/server/utils/session.d.ts +9 -11
- package/dist/runtime/server/utils/sso.d.ts +9 -15
- package/dist/runtime/server/utils/sso.mjs +4 -8
- package/dist/runtime/server/utils/storage.d.ts +19 -2
- package/dist/runtime/server/utils/storage.mjs +36 -7
- package/dist/runtime/server/utils/tenant.mjs +3 -1
- package/dist/runtime/server/utils/turnstile.d.ts +3 -5
- package/dist/runtime/server/utils/vapid.d.ts +5 -8
- package/dist/runtime/server/utils/vapid.mjs +26 -13
- package/dist/runtime/service.d.ts +13 -13
- package/dist/runtime/service.mjs +4 -2
- package/dist/runtime/test-utils.d.ts +20 -30
- package/dist/runtime/test-utils.mjs +5 -4
- package/dist/runtime/types/auth-globals.d.ts +14 -14
- package/dist/runtime/types/imports.d.ts +82 -82
- package/dist/runtime/types/index.d.ts +2 -2
- package/dist/runtime/types/r2.d.ts +5 -0
- package/dist/runtime/types/service.d.ts +11 -18
- package/dist/types.d.ts +100 -107
- package/dist/utils/auth-schema.d.ts +2 -2
- package/dist/utils/cms-sources.d.ts +3 -3
- package/dist/utils/local-db.d.ts +3 -3
- package/dist/utils/notifications-schema.d.ts +1 -3
- package/dist/utils/pkg.d.ts +7 -0
- package/dist/utils/queue.d.ts +3 -3
- package/dist/utils/tasks.d.ts +3 -2
- package/package.json +11 -8
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
declare const getAuthSession: (event: any) => Promise<any>
|
|
2
|
-
declare const setAuthSession: (event: any, session: any, config?: any) => Promise<any>
|
|
3
|
-
declare const replaceAuthSession: (event: any, session: any, config?: any) => Promise<any>
|
|
4
|
-
declare const clearAuthSession: (event: any, config?: any) => Promise<boolean>
|
|
5
|
-
declare const requireAuthSession: (event: any, opts?: any) => Promise<any>
|
|
6
|
-
declare const getUserSession: (event: any) => Promise<any>
|
|
7
|
-
declare const setUserSession: (event: any, session: any, config?: any) => Promise<any>
|
|
8
|
-
declare const replaceUserSession: (event: any, session: any, config?: any) => Promise<any>
|
|
9
|
-
declare const clearUserSession: (event: any, config?: any) => Promise<boolean>
|
|
10
|
-
declare const requireUserSession: (event: any, opts?: any) => Promise<any>
|
|
11
|
-
declare const useUserSession: () => any
|
|
12
|
-
declare const useRuntimeConfig: (event?: any) => any
|
|
13
|
-
declare const navigateTo: any
|
|
14
|
-
declare const defineNuxtRouteMiddleware: any
|
|
1
|
+
declare const getAuthSession: (event: any) => Promise<any>
|
|
2
|
+
declare const setAuthSession: (event: any, session: any, config?: any) => Promise<any>
|
|
3
|
+
declare const replaceAuthSession: (event: any, session: any, config?: any) => Promise<any>
|
|
4
|
+
declare const clearAuthSession: (event: any, config?: any) => Promise<boolean>
|
|
5
|
+
declare const requireAuthSession: (event: any, opts?: any) => Promise<any>
|
|
6
|
+
declare const getUserSession: (event: any) => Promise<any>
|
|
7
|
+
declare const setUserSession: (event: any, session: any, config?: any) => Promise<any>
|
|
8
|
+
declare const replaceUserSession: (event: any, session: any, config?: any) => Promise<any>
|
|
9
|
+
declare const clearUserSession: (event: any, config?: any) => Promise<boolean>
|
|
10
|
+
declare const requireUserSession: (event: any, opts?: any) => Promise<any>
|
|
11
|
+
declare const useUserSession: () => any
|
|
12
|
+
declare const useRuntimeConfig: (event?: any) => any
|
|
13
|
+
declare const navigateTo: any
|
|
14
|
+
declare const defineNuxtRouteMiddleware: any
|
|
@@ -1,82 +1,82 @@
|
|
|
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/auth/schema" {
|
|
21
|
-
export const user: any
|
|
22
|
-
export const users: any
|
|
23
|
-
export const session: any
|
|
24
|
-
export const sessions: any
|
|
25
|
-
export const account: any
|
|
26
|
-
export const accounts: any
|
|
27
|
-
export const verification: any
|
|
28
|
-
export const verifications: any
|
|
29
|
-
export const twoFactor: any
|
|
30
|
-
export const passkey: any
|
|
31
|
-
export const authenticators: any
|
|
32
|
-
export const organization: any
|
|
33
|
-
export const organizations: any
|
|
34
|
-
export const member: any
|
|
35
|
-
export const members: any
|
|
36
|
-
export const invitation: any
|
|
37
|
-
export const invitations: any
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
declare module "@schema" {
|
|
41
|
-
export * from "#qarpeo/schema"
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
declare module "#qarpeo/agents-registry" {
|
|
45
|
-
const def: any
|
|
46
|
-
export default def
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
declare module "#qarpeo/queue-consumer" {
|
|
50
|
-
const handler: any
|
|
51
|
-
export default handler
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
declare module "#app" {
|
|
55
|
-
export const useRuntimeConfig: any
|
|
56
|
-
export const useAsyncData: any
|
|
57
|
-
export const navigateTo: any
|
|
58
|
-
export const defineNuxtRouteMiddleware: any
|
|
59
|
-
export const createError: any
|
|
60
|
-
export const $fetch: any
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
declare module "#imports" {
|
|
64
|
-
export const useAuth: any
|
|
65
|
-
export const useSession: any
|
|
66
|
-
export const authClient: any
|
|
67
|
-
export const useUserSession: any
|
|
68
|
-
export const getAuthSession: any
|
|
69
|
-
export const setAuthSession: any
|
|
70
|
-
export const replaceAuthSession: any
|
|
71
|
-
export const clearAuthSession: any
|
|
72
|
-
export const requireAuthSession: any
|
|
73
|
-
export const getUserSession: any
|
|
74
|
-
export const setUserSession: any
|
|
75
|
-
export const replaceUserSession: any
|
|
76
|
-
export const clearUserSession: any
|
|
77
|
-
export const requireUserSession: any
|
|
78
|
-
export const useChat: any
|
|
79
|
-
export const useAgentChat: any
|
|
80
|
-
export const useAIStream: any
|
|
81
|
-
export const useVectorSearch: any
|
|
82
|
-
}
|
|
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/auth/schema" {
|
|
21
|
+
export const user: any
|
|
22
|
+
export const users: any
|
|
23
|
+
export const session: any
|
|
24
|
+
export const sessions: any
|
|
25
|
+
export const account: any
|
|
26
|
+
export const accounts: any
|
|
27
|
+
export const verification: any
|
|
28
|
+
export const verifications: any
|
|
29
|
+
export const twoFactor: any
|
|
30
|
+
export const passkey: any
|
|
31
|
+
export const authenticators: any
|
|
32
|
+
export const organization: any
|
|
33
|
+
export const organizations: any
|
|
34
|
+
export const member: any
|
|
35
|
+
export const members: any
|
|
36
|
+
export const invitation: any
|
|
37
|
+
export const invitations: any
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
declare module "@schema" {
|
|
41
|
+
export * from "#qarpeo/schema"
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
declare module "#qarpeo/agents-registry" {
|
|
45
|
+
const def: any
|
|
46
|
+
export default def
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
declare module "#qarpeo/queue-consumer" {
|
|
50
|
+
const handler: any
|
|
51
|
+
export default handler
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare module "#app" {
|
|
55
|
+
export const useRuntimeConfig: any
|
|
56
|
+
export const useAsyncData: any
|
|
57
|
+
export const navigateTo: any
|
|
58
|
+
export const defineNuxtRouteMiddleware: any
|
|
59
|
+
export const createError: any
|
|
60
|
+
export const $fetch: any
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
declare module "#imports" {
|
|
64
|
+
export const useAuth: any
|
|
65
|
+
export const useSession: any
|
|
66
|
+
export const authClient: any
|
|
67
|
+
export const useUserSession: any
|
|
68
|
+
export const getAuthSession: any
|
|
69
|
+
export const setAuthSession: any
|
|
70
|
+
export const replaceAuthSession: any
|
|
71
|
+
export const clearAuthSession: any
|
|
72
|
+
export const requireAuthSession: any
|
|
73
|
+
export const getUserSession: any
|
|
74
|
+
export const setUserSession: any
|
|
75
|
+
export const replaceUserSession: any
|
|
76
|
+
export const clearUserSession: any
|
|
77
|
+
export const requireUserSession: any
|
|
78
|
+
export const useChat: any
|
|
79
|
+
export const useAgentChat: any
|
|
80
|
+
export const useAIStream: any
|
|
81
|
+
export const useVectorSearch: any
|
|
82
|
+
}
|
|
@@ -97,8 +97,8 @@ export interface KVGetOptions {
|
|
|
97
97
|
*/
|
|
98
98
|
type?: "json" | "text" | "arrayBuffer" | "stream";
|
|
99
99
|
/**
|
|
100
|
-
* Time-to-live in seconds for edge PoP cache caching this KV read.
|
|
101
|
-
*
|
|
100
|
+
* Time-to-live in seconds for edge PoP cache caching this KV read. Minimum is 60 seconds per
|
|
101
|
+
* Cloudflare KV specifications.
|
|
102
102
|
*/
|
|
103
103
|
cacheTtl?: number;
|
|
104
104
|
}
|
|
@@ -76,6 +76,11 @@ export interface BlobHandleUploadOptions {
|
|
|
76
76
|
prefix?: string;
|
|
77
77
|
ensure?: BlobEnsureOptions;
|
|
78
78
|
customMetadata?: Record<string, string>;
|
|
79
|
+
put?: {
|
|
80
|
+
prefix?: string;
|
|
81
|
+
addRandomSuffix?: boolean;
|
|
82
|
+
customMetadata?: Record<string, string>;
|
|
83
|
+
};
|
|
79
84
|
}
|
|
80
85
|
export interface R2UploadedPart {
|
|
81
86
|
partNumber: number;
|
|
@@ -1,33 +1,26 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Cloudflare Worker-to-Worker Service Binding types.
|
|
3
|
-
*
|
|
4
|
-
* and Cloudflare Workers RPC direct interface methods.
|
|
2
|
+
* Cloudflare Worker-to-Worker Service Binding types. Supports standard Worker Fetcher interface
|
|
3
|
+
* (HTTP-style invocation) and Cloudflare Workers RPC direct interface methods.
|
|
5
4
|
*/
|
|
6
5
|
export interface FetcherOptions {
|
|
7
6
|
headers?: Record<string, string>;
|
|
8
7
|
cf?: Record<string, any>;
|
|
9
8
|
redirect?: RequestRedirect;
|
|
10
9
|
}
|
|
11
|
-
/**
|
|
12
|
-
* Cloudflare Worker Service Fetcher binding interface.
|
|
13
|
-
*/
|
|
10
|
+
/** Cloudflare Worker Service Fetcher binding interface. */
|
|
14
11
|
export interface ServiceBindingFetcher {
|
|
15
12
|
fetch(input: RequestInfo | URL | string, init?: RequestInit): Promise<Response>;
|
|
16
13
|
connect?(address: any, options?: any): any;
|
|
17
14
|
[key: string]: any;
|
|
18
15
|
}
|
|
19
|
-
/**
|
|
20
|
-
* Service binding request options for HTTP-style calls.
|
|
21
|
-
*/
|
|
16
|
+
/** Service binding request options for HTTP-style calls. */
|
|
22
17
|
export interface ServiceRequestOptions {
|
|
23
18
|
method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
|
|
24
19
|
headers?: Record<string, string>;
|
|
25
20
|
body?: any;
|
|
26
21
|
query?: Record<string, any>;
|
|
27
22
|
}
|
|
28
|
-
/**
|
|
29
|
-
* Typed client for interacting with another Cloudflare Worker service.
|
|
30
|
-
*/
|
|
23
|
+
/** Typed client for interacting with another Cloudflare Worker service. */
|
|
31
24
|
export interface QarpeoServiceClient<TRpc = Record<string, any>> {
|
|
32
25
|
/** The raw Cloudflare Worker Fetcher binding instance */
|
|
33
26
|
readonly raw: ServiceBindingFetcher;
|
|
@@ -57,14 +50,14 @@ export interface QarpeoServiceClient<TRpc = Record<string, any>> {
|
|
|
57
50
|
/** Shortcut for DELETE request returning JSON */
|
|
58
51
|
delete<T = any>(path: string, query?: Record<string, any>, headers?: Record<string, string>): Promise<T>;
|
|
59
52
|
/**
|
|
60
|
-
* Direct RPC proxy for Cloudflare Workers RPC.
|
|
61
|
-
*
|
|
53
|
+
* Direct RPC proxy for Cloudflare Workers RPC. Calls exported RPC methods directly across workers
|
|
54
|
+
* without HTTP serialization.
|
|
62
55
|
*
|
|
63
56
|
* @example
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
57
|
+
* ;```ts
|
|
58
|
+
* const billing = useServiceBinding<BillingService>("BILLING")
|
|
59
|
+
* const invoice = await billing.rpc.getInvoice("inv_123")
|
|
60
|
+
* ```
|
|
68
61
|
*/
|
|
69
62
|
readonly rpc: TRpc;
|
|
70
63
|
}
|