>(null),
+)
diff --git a/apps/ssr/client/components/ui/user-avatar.tsx b/apps/ssr/client/components/ui/user-avatar.tsx
index 0c67f0fd5..f33e34dcf 100644
--- a/apps/ssr/client/components/ui/user-avatar.tsx
+++ b/apps/ssr/client/components/ui/user-avatar.tsx
@@ -1,5 +1,6 @@
import { useWhoami } from "@client/atoms/user"
import { Avatar, AvatarFallback, AvatarImage } from "@follow/components/ui/avatar/index.jsx"
+import { UserRole } from "@follow/constants"
import { getBackgroundGradient } from "@follow/utils/color"
import { cn } from "@follow/utils/utils"
import { useMemo } from "react"
@@ -26,13 +27,15 @@ export const UserAvatar = ({ className }: { className?: string }) => {
name: "Innei",
image: "https://avatars-githubusercontent-webp.webp.se/u/41265413?v=4",
handle: "innei",
+ role: UserRole.Free,
+ roleEndAt: new Date(),
deleted: false,
}
} else {
return null
}
}
- const { name, image } = user
+ const { name, image } = user!
return (
>({
+ resolver: zodResolver(formSchema),
+ defaultValues: {
+ referral: getDefaultReferralCode(),
+ },
+ })
+
+ const { watch } = form
+ useEffect(() => {
+ const sub = watch((value) => {
+ const referralCode = value.referral
+ if (referralCode) {
+ localStorage.setItem(getStorageNS("referral-code"), referralCode)
+ }
+ })
+ return () => sub.unsubscribe()
+ }, [watch])
+
+ const referral = watch("referral")
+
+ const { data } = useQuery({
+ queryKey: ["referral", "days", referral],
+ queryFn: () => getReferralCycleDays(referral || ""),
+ enabled: !!referral,
+ refetchOnWindowFocus: false,
+ refetchOnReconnect: false,
+ })
+ const days = data?.data.referralCycleDays || 0
+
+ return (
+
+
+ )
+}
diff --git a/apps/ssr/client/pages/(login)/register.tsx b/apps/ssr/client/pages/(login)/register.tsx
index e18fa39af..16dfdf2a3 100644
--- a/apps/ssr/client/pages/(login)/register.tsx
+++ b/apps/ssr/client/pages/(login)/register.tsx
@@ -1,4 +1,6 @@
+import { useServerConfigs } from "@client/atoms/server-configs"
import { loginHandler, signUp } from "@client/lib/auth"
+import { ReferralForm } from "@client/modules/referral"
import { useAuthProviders } from "@client/query/users"
import { Logo } from "@follow/components/icons/logo.jsx"
import { Button, MotionButtonBase } from "@follow/components/ui/button/index.jsx"
@@ -46,6 +48,7 @@ const formSchema = z
})
function RegisterForm() {
+ const serverConfigs = useServerConfigs()
const { t } = useTranslation()
const [isSubmitting, setIsSubmitting] = useState(false)
const navigate = useNavigate()
@@ -185,6 +188,7 @@ function RegisterForm() {
)}
+ {serverConfigs?.REFERRAL_ENABLED && }
{isEmail ? (
setIsEmail(false)}>
Back
diff --git a/apps/ssr/client/providers/root-providers.tsx b/apps/ssr/client/providers/root-providers.tsx
index 937f2644e..2864f1e4d 100644
--- a/apps/ssr/client/providers/root-providers.tsx
+++ b/apps/ssr/client/providers/root-providers.tsx
@@ -10,6 +10,7 @@ import type { FC, PropsWithChildren } from "react"
import { queryClient } from "../lib/query-client"
import { jotaiStore } from "../lib/store"
+import { ServerConfigsProvider } from "./server-configs-provider"
import { UserProvider } from "./user-provider"
const ThemeProvider = () => {
@@ -21,6 +22,7 @@ export const RootProviders: FC
= ({ children }) => (
+
diff --git a/apps/ssr/client/providers/server-configs-provider.tsx b/apps/ssr/client/providers/server-configs-provider.tsx
new file mode 100644
index 000000000..aecb4063a
--- /dev/null
+++ b/apps/ssr/client/providers/server-configs-provider.tsx
@@ -0,0 +1,23 @@
+import { setServerConfigs } from "@client/atoms/server-configs"
+import { apiClient } from "@client/lib/api-fetch"
+import { useQuery } from "@tanstack/react-query"
+import { useEffect } from "react"
+
+const useServerConfigsQuery = () => {
+ const { data } = useQuery({
+ queryKey: ["server-configs"],
+ queryFn: async () => await apiClient.status.configs.$get(),
+ })
+ return data?.data
+}
+
+export const ServerConfigsProvider = () => {
+ const serverConfigs = useServerConfigsQuery()
+
+ useEffect(() => {
+ if (!serverConfigs) return
+ setServerConfigs(serverConfigs)
+ }, [serverConfigs])
+
+ return null
+}
diff --git a/icons/mgc/check_cute_re.svg b/icons/mgc/check_cute_re.svg
new file mode 100644
index 000000000..ebcfcaeeb
--- /dev/null
+++ b/icons/mgc/check_cute_re.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/locales/app/en.json b/locales/app/en.json
index de19769c9..77472c7af 100644
--- a/locales/app/en.json
+++ b/locales/app/en.json
@@ -322,6 +322,10 @@
"register.email": "Email",
"register.login": "Login",
"register.password": "Password",
+ "register.referral.days": "Sign up with this referral code to get {{days}} days of Pro Preview",
+ "register.referral.description": "Sign up with referral code to get extra days of Pro Preview",
+ "register.referral.invalid": "Invalid referral code",
+ "register.referral.label": "Referral Code",
"register.submit": "Create account",
"resize.tooltip.double_click_to_collapse": "Double click to reset to default size",
"resize.tooltip.drag_to_resize": "Drag to resize",
diff --git a/locales/errors/en.json b/locales/errors/en.json
index 1d1cab113..d3d62f84e 100644
--- a/locales/errors/en.json
+++ b/locales/errors/en.json
@@ -67,5 +67,6 @@
"13007": "This RSSHub instance is unavailable currently",
"14000": "Invalid file",
"14001": "File too large",
- "14002": "Upload failed"
+ "14002": "Upload failed",
+ "15000": "AI token limit exceeded. Please try again later."
}
diff --git a/locales/external/en.json b/locales/external/en.json
index 4bda047f7..cde38f445 100644
--- a/locales/external/en.json
+++ b/locales/external/en.json
@@ -78,6 +78,10 @@
"register.label": "Sign up to {{app_name}}",
"register.login": "Sign in",
"register.password": "Password",
+ "register.referral.days": "Sign up with this referral code to get {{days}} days of Pro Preview",
+ "register.referral.description": "Sign up with referral code to get extra days of Pro Preview",
+ "register.referral.invalid": "Invalid referral code",
+ "register.referral.label": "Referral Code",
"register.submit": "Create account",
"words.email": "Email"
}
diff --git a/locales/settings/en.json b/locales/settings/en.json
index a23901ef5..5b041f92f 100644
--- a/locales/settings/en.json
+++ b/locales/settings/en.json
@@ -397,6 +397,7 @@
"notifications.test": "Test Notification",
"notifications.test_success": "Test notification sent successfully.",
"notifications.token": "Client Token",
+ "plan.description": "Enjoy every Pro feature from day one—new users get a full‑access trial, and you can keep those perks simply by inviting friends or making a small support contribution. Learn more.",
"privacy.privacy": "Privacy",
"privacy.terms": "Terms",
"profile.avatar.cropInstructions": "Drag the crop area to adjust your avatar",
@@ -470,6 +471,13 @@
"profile.two_factor.no_password": "You need to set a password before enabling 2FA.",
"profile.updateSuccess": "Profile updated.",
"profile.update_password_success": "Password updated.",
+ "referral.description": "Share Folo with your friends! For every friend who signs up and activates their account, your Pro Preview will be extended. Friends you invite will also get {{day}} days of Pro Preview! Learn more.",
+ "referral.invited_friend_status.pending": "Pending validation",
+ "referral.invited_friend_status.valid": "Valid",
+ "referral.link": "Your Invite Link:",
+ "referral.pro_status.preview": "Your Pro Preview Status: Expires {{dateString}} ({{daysLeft}} days left)",
+ "referral.pro_status.trial": "Your Current Tier: Free",
+ "referral.pro_status.user": "Your Pro Preview Status: Active",
"rsshub.addModal.access_key_label": "Access Key (Optional)",
"rsshub.addModal.add": "Add",
"rsshub.addModal.base_url_label": "Base URL",
@@ -511,8 +519,12 @@
"titles.invitations": "Invitations",
"titles.lists": "Lists",
"titles.notifications": "Notifications",
+ "titles.plan.long": "Upgrade your plan",
+ "titles.plan.short": "Plan",
"titles.power": "Power",
"titles.privacy": "Privacy",
+ "titles.referral.long": "Invite Friends & Extend Pro",
+ "titles.referral.short": "Invite & Earn",
"titles.shortcuts": "Shortcuts",
"titles.sign_out": "Sign Out",
"wallet.balance.activePoints": "Active Points",
diff --git a/packages/internal/components/package.json b/packages/internal/components/package.json
index 9d7eb2041..22e240ea0 100644
--- a/packages/internal/components/package.json
+++ b/packages/internal/components/package.json
@@ -38,6 +38,7 @@
"@radix-ui/react-label": "2.1.7",
"@radix-ui/react-navigation-menu": "1.2.13",
"@radix-ui/react-popover": "1.1.14",
+ "@radix-ui/react-progress": "1.1.7",
"@radix-ui/react-radio-group": "1.3.7",
"@radix-ui/react-scroll-area": "1.2.9",
"@radix-ui/react-select": "2.2.5",
diff --git a/packages/internal/components/src/ui/button/index.tsx b/packages/internal/components/src/ui/button/index.tsx
index 58af7bc23..a21b9a404 100644
--- a/packages/internal/components/src/ui/button/index.tsx
+++ b/packages/internal/components/src/ui/button/index.tsx
@@ -28,6 +28,7 @@ const motionBaseMap = {
export const MotionButtonBase = ({
ref,
children,
+ disabled,
...rest
}: HTMLMotionProps<"button"> & { ref?: React.Ref }) => {
const isMobile = useMobile()
@@ -35,7 +36,8 @@ export const MotionButtonBase = ({
diff --git a/packages/internal/components/src/ui/progress/index.tsx b/packages/internal/components/src/ui/progress/index.tsx
new file mode 100644
index 000000000..6ef9c27a3
--- /dev/null
+++ b/packages/internal/components/src/ui/progress/index.tsx
@@ -0,0 +1,28 @@
+"use client"
+
+import { cn } from "@follow/utils/utils"
+import * as ProgressPrimitive from "@radix-ui/react-progress"
+import * as React from "react"
+
+const Progress = ({
+ ref,
+ className,
+ value,
+ ...props
+}: React.ComponentPropsWithoutRef & {
+ ref?: React.RefObject | null>
+}) => (
+
+
+
+)
+Progress.displayName = ProgressPrimitive.Root.displayName
+
+export { Progress }
diff --git a/packages/internal/constants/src/enums.ts b/packages/internal/constants/src/enums.ts
index 1c6b7133d..be03cc7fe 100644
--- a/packages/internal/constants/src/enums.ts
+++ b/packages/internal/constants/src/enums.ts
@@ -13,6 +13,28 @@ export enum Routes {
}
export enum UserRole {
+ Admin = "admin",
+ PreProTrial = "pre_pro_trial",
+ PrePro = "pre_pro",
+ Free = "free",
+ /**
+ * @deprecated
+ * @see UserRole.Free
+ */
+ // TODO: remove this
Trial = "trial",
- User = "user",
+ Pro = "pro",
}
+
+export const UserRoleName: Record = {
+ [UserRole.Admin]: "Admin",
+ [UserRole.PreProTrial]: "Pro Preview Trial",
+ [UserRole.PrePro]: "Pro Preview",
+ [UserRole.Free]: "Free",
+ /**
+ * @deprecated
+ * @see UserRole.Free
+ */
+ [UserRole.Trial]: "Free",
+ [UserRole.Pro]: "Pro",
+} as const
diff --git a/packages/internal/models/src/types.ts b/packages/internal/models/src/types.ts
index 893878290..75ed8b217 100644
--- a/packages/internal/models/src/types.ts
+++ b/packages/internal/models/src/types.ts
@@ -16,6 +16,7 @@ export type UserModel = OptionalKey<
| "bio"
| "website"
| "socialLinks"
+ | "stripeCustomerId"
>
export type ExtractBizResponse any> = Exclude<
diff --git a/packages/internal/shared/package.json b/packages/internal/shared/package.json
index d57ff0835..58befecbc 100644
--- a/packages/internal/shared/package.json
+++ b/packages/internal/shared/package.json
@@ -31,6 +31,7 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
+ "@better-auth/stripe": "1.2.9",
"@electron-toolkit/preload": "3.0.2",
"@electron-toolkit/tsconfig": "1.0.1",
"@hono/node-server": "1.15.0",
@@ -40,6 +41,7 @@
"drizzle-orm": "0.44.2",
"hono": "4.8.1",
"sonner": "2.0.6",
+ "stripe": "18.2.1",
"zod": "3.25.75"
}
}
diff --git a/packages/internal/shared/src/auth.ts b/packages/internal/shared/src/auth.ts
index da4d26548..0cdaae774 100644
--- a/packages/internal/shared/src/auth.ts
+++ b/packages/internal/shared/src/auth.ts
@@ -1,3 +1,4 @@
+import { stripeClient } from "@better-auth/stripe/client"
import { IN_ELECTRON } from "@follow/shared"
import type { authPlugins } from "@follow/shared/hono"
import type { BetterAuthClientPlugin, BetterFetchOption } from "better-auth/client"
@@ -31,6 +32,7 @@ export const baseAuthPlugins = [
},
}),
twoFactorClient(),
+ stripeClient({ subscription: true }),
] satisfies BetterAuthClientPlugin[]
export type AuthClient = ReturnType<
@@ -54,7 +56,19 @@ export class Auth {
this.authClient = createAuthClient({
baseURL: `${this.options.apiURL}/better-auth`,
plugins: baseAuthPlugins,
- fetchOptions: this.options.fetchOptions,
+ fetchOptions: {
+ ...this.options.fetchOptions,
+ onRequest: (context) => {
+ const referralCode = localStorage.getItem(getStorageNS("referral-code"))
+ if (referralCode) {
+ context.headers.set("folo-referral-code", referralCode)
+ }
+
+ this.options.fetchOptions?.onRequest?.(context)
+
+ return context
+ },
+ },
})
}
@@ -86,3 +100,7 @@ export class Auth {
}
}
}
+
+// copy from packages/internal/utils/src/ns.ts
+const ns = "follow"
+const getStorageNS = (key: string) => `${ns}:${key}`
diff --git a/packages/internal/shared/src/hono.ts b/packages/internal/shared/src/hono.ts
index 3009379e7..4b8b31c20 100644
--- a/packages/internal/shared/src/hono.ts
+++ b/packages/internal/shared/src/hono.ts
@@ -1,1271 +1,1298 @@
-import * as hono_hono_base from 'hono/hono-base';
-import * as hono_types from 'hono/types';
-import * as hono_utils_http_status from 'hono/utils/http-status';
-import { HttpBindings } from '@hono/node-server';
-import * as ai from 'ai';
-import * as zod from 'zod';
-import { z } from 'zod';
-import * as zod_v4_core from 'zod/v4/core';
-import * as zod_v4 from 'zod/v4';
-import * as better_call from 'better-call';
-import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
-import { AnyPgColumn } from 'drizzle-orm/pg-core';
-import * as drizzle_orm from 'drizzle-orm';
-import { InferInsertModel, SQL } from 'drizzle-orm';
-import * as better_auth_plugins from 'better-auth/plugins';
-import * as better_auth from 'better-auth';
-import { BetterAuthOptions } from 'better-auth';
+// @ts-nocheck
+import { HttpBindings } from "@hono/node-server";
+import * as zod1169 from "zod";
+import { z } from "zod";
+import * as better_auth246 from "better-auth";
+import { BetterAuthOptions } from "better-auth";
+import * as better_auth_plugins332 from "better-auth/plugins";
+import * as better_call38 from "better-call";
+import Stripe from "stripe";
+import * as drizzle_orm_pg_core1159 from "drizzle-orm/pg-core";
+import { AnyPgColumn } from "drizzle-orm/pg-core";
+import * as drizzle_orm1055 from "drizzle-orm";
+import { InferInsertModel, InferSelectModel, SQL } from "drizzle-orm";
+import * as zod_v441 from "zod/v4";
+import * as ai56 from "ai";
+import * as hono_utils_http_status0 from "hono/utils/http-status";
+import * as hono_types2 from "hono/types";
+import * as hono_hono_base37 from "hono/hono-base";
+import * as zod_v4_core42 from "zod/v4/core";
+//#region src/types/env.d.ts
type Env = {
- Bindings: HttpBindings;
+ Bindings: HttpBindings;
};
-
-declare const tools: {
- displayFeeds: ai.Tool<{
- feedIds: string[];
- }, {
- feedList: {
- feed: {
- id: string;
- url: string;
- title: string | null;
- description: string | null;
- siteUrl: string | null;
- image: string | null;
- checkedAt: Date;
- lastModifiedHeader: string | null;
- etagHeader: string | null;
- ttl: number | null;
- errorMessage: string | null;
- errorAt: Date | null;
- ownerUserId: string | null;
- language: string | null;
- migrateTo: string | null;
- rsshubRoute: string | null;
- rsshubNamespace: string | null;
- nsfw: boolean | null;
- };
- analytics: {
- feedId: string;
- updatesPerWeek: number | null;
- subscriptionCount: number | null;
- latestEntryPublishedAt: Date | null;
- view: number | null;
- } | null;
- }[];
- }>;
- getFeeds: ai.Tool<{
- select: ("id" | "image" | "description" | "title" | "url" | "siteUrl" | "checkedAt" | "lastModifiedHeader" | "etagHeader" | "ttl" | "errorMessage" | "errorAt" | "ownerUserId" | "language" | "migrateTo" | "rsshubRoute" | "rsshubNamespace" | "nsfw")[];
- ids: string[];
- }, {
- feeds: Record[];
- }>;
- getFeedEntries: ai.Tool<{
- select: ("id" | "description" | "title" | "content" | "author" | "url" | "language" | "feedId" | "guid" | "media" | "categories" | "attachments" | "extra" | "authorUrl" | "authorAvatar" | "insertedAt" | "publishedAt")[];
- feedId: string;
- }, {
- entries: Record[];
- }>;
- getEntry: ai.Tool<{
- id: string;
- select: ("id" | "description" | "title" | "content" | "author" | "url" | "language" | "feedId" | "guid" | "media" | "categories" | "attachments" | "extra" | "authorUrl" | "authorAvatar" | "insertedAt" | "publishedAt")[];
- }, Record | null>;
-};
-
-declare const authPlugins: ({
- id: "customGetProviders";
- endpoints: {
- customGetProviders: {
- (inputCtx_0?: ({
- body?: undefined;
- } & {
- method?: "GET" | undefined;
- } & {
- query?: Record | undefined;
- } & {
- params?: Record;
- } & {
- request?: Request;
- } & {
- headers?: HeadersInit;
- } & {
- asResponse?: boolean;
- returnHeaders?: boolean;
- use?: better_call.Middleware[];
- path?: string;
- } & {
- asResponse?: AsResponse | undefined;
- returnHeaders?: ReturnHeaders | undefined;
- }) | undefined): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
- headers: Headers;
- response: any;
- } : any>;
- options: {
- method: "GET";
- } & {
- use: any[];
- };
- path: "/get-providers";
- };
- };
-} | {
- id: "getAccountInfo";
- endpoints: {
- getAccountInfo: {
- (inputCtx_0?: ({
- body?: undefined;
- } & {
- method?: "GET" | undefined;
- } & {
- query?: Record | undefined;
- } & {
- params?: Record;
- } & {
- request?: Request;
- } & {
- headers?: HeadersInit;
- } & {
- asResponse?: boolean;
- returnHeaders?: boolean;
- use?: better_call.Middleware[];
- path?: string;
- } & {
- asResponse?: AsResponse | undefined;
- returnHeaders?: ReturnHeaders | undefined;
- }) | undefined): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
- headers: Headers;
- response: ({
- id: string;
- provider: string;
- profile: {
- id: string;
- name?: string;
- email?: string | null;
- image?: string;
- emailVerified: boolean;
- };
- accountId?: undefined;
- } | {
- id: string;
- accountId: string;
- provider: string;
- profile: {
- id: string;
- name?: string;
- email?: string | null;
- image?: string;
- emailVerified: boolean;
- } | undefined;
- })[] | null;
- } : ({
- id: string;
- provider: string;
- profile: {
- id: string;
- name?: string;
- email?: string | null;
- image?: string;
- emailVerified: boolean;
- };
- accountId?: undefined;
- } | {
- id: string;
- accountId: string;
- provider: string;
- profile: {
- id: string;
- name?: string;
- email?: string | null;
- image?: string;
- emailVerified: boolean;
- } | undefined;
- })[] | null>;
- options: {
- method: "GET";
- } & {
- use: any[];
- };
- path: "/get-account-info";
- };
- };
-} | {
- id: "deleteUserCustom";
- endpoints: {
- deleteUserCustom: {
- (inputCtx_0: {
- body: {
- TOTPCode: string;
- };
- } & {
- method?: "POST" | undefined;
- } & {
- query?: Record | undefined;
- } & {
- params?: Record;
- } & {
- request?: Request;
- } & {
- headers?: HeadersInit;
- } & {
- asResponse?: boolean;
- returnHeaders?: boolean;
- use?: better_call.Middleware[];
- path?: string;
- } & {
- asResponse?: AsResponse | undefined;
- returnHeaders?: ReturnHeaders | undefined;
- }): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
- headers: Headers;
- response: void;
- } : void>;
- options: {
- method: "POST";
- body: zod_v4.ZodObject<{
- TOTPCode: zod_v4.ZodString;
- }, zod_v4_core.$strip>;
- } & {
- use: any[];
- };
- path: "/delete-user-custom";
- };
- };
-} | {
- id: "oneTimeToken";
- endpoints: {
- generateOneTimeToken: {
- (inputCtx_0?: ({
- body?: undefined;
- } & {
- method?: "GET" | undefined;
- } & {
- query?: Record | undefined;
- } & {
- params?: Record;
- } & {
- request?: Request;
- } & {
- headers?: HeadersInit;
- } & {
- asResponse?: boolean;
- returnHeaders?: boolean;
- use?: better_call.Middleware[];
- path?: string;
- } & {
- asResponse?: AsResponse | undefined;
- returnHeaders?: ReturnHeaders | undefined;
- }) | undefined): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
- headers: Headers;
- response: {
- token: string;
- };
- } : {
- token: string;
- }>;
- options: {
- method: "GET";
- use: ((inputContext: better_call.MiddlewareInputContext) => Promise<{
- session: {
- session: Record & {
- id: string;
- createdAt: Date;
- updatedAt: Date;
- userId: string;
- expiresAt: Date;
- token: string;
- ipAddress?: string | null | undefined;
- userAgent?: string | null | undefined;
- };
- user: Record & {
- id: string;
- name: string;
- email: string;
- emailVerified: boolean;
- createdAt: Date;
- updatedAt: Date;
- image?: string | null | undefined;
- };
- };
- }>)[];
- } & {
- use: any[];
- };
- path: "/one-time-token/generate";
- };
- applyOneTimeToken: {
- (inputCtx_0: {
- body: {
- token: string;
- };
- } & {
- method?: "POST" | undefined;
- } & {
- query?: Record | undefined;
- } & {
- params?: Record;
- } & {
- request?: Request;
- } & {
- headers?: HeadersInit;
- } & {
- asResponse?: boolean;
- returnHeaders?: boolean;
- use?: better_call.Middleware[];
- path?: string;
- } & {
- asResponse?: AsResponse | undefined;
- returnHeaders?: ReturnHeaders | undefined;
- }): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
- headers: Headers;
- response: {
- user: {
- id: string;
- name: string;
- email: string;
- emailVerified: boolean;
- createdAt: Date;
- updatedAt: Date;
- image?: string | null | undefined;
- } & Record;
- };
- } : {
- user: {
- id: string;
- name: string;
- email: string;
- emailVerified: boolean;
- createdAt: Date;
- updatedAt: Date;
- image?: string | null | undefined;
- } & Record;
- }>;
- options: {
- method: "POST";
- body: zod.ZodObject<{
- token: zod.ZodString;
- }, "strip", zod.ZodTypeAny, {
- token: string;
- }, {
- token: string;
- }>;
- } & {
- use: any[];
- };
- path: "/one-time-token/apply";
- };
- };
-})[];
-
-declare const achievements: drizzle_orm_pg_core.PgTableWithColumns<{
- name: "achievements";
- schema: undefined;
- columns: {
- id: drizzle_orm_pg_core.PgColumn<{
- name: "id";
- tableName: "achievements";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: true;
- hasDefault: true;
- isPrimaryKey: true;
- isAutoincrement: false;
- hasRuntimeDefault: true;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- userId: drizzle_orm_pg_core.PgColumn<{
- name: "user_id";
- tableName: "achievements";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: true;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- type: drizzle_orm_pg_core.PgColumn<{
- name: "type";
- tableName: "achievements";
- dataType: "string";
- columnType: "PgText";
- data: "checking" | "completed" | "incomplete" | "audit" | "received";
- driverParam: string;
- notNull: true;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: ["checking", "completed", "incomplete", "audit", "received"];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- actionId: drizzle_orm_pg_core.PgColumn<{
- name: "action_id";
- tableName: "achievements";
- dataType: "number";
- columnType: "PgInteger";
- data: number;
- driverParam: string | number;
- notNull: true;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: undefined;
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- progress: drizzle_orm_pg_core.PgColumn<{
- name: "progress";
- tableName: "achievements";
- dataType: "number";
- columnType: "PgInteger";
- data: number;
- driverParam: string | number;
- notNull: true;
- hasDefault: true;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: undefined;
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- progressMax: drizzle_orm_pg_core.PgColumn<{
- name: "progress_max";
- tableName: "achievements";
- dataType: "number";
- columnType: "PgInteger";
- data: number;
- driverParam: string | number;
- notNull: true;
- hasDefault: true;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: undefined;
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- done: drizzle_orm_pg_core.PgColumn<{
- name: "done";
- tableName: "achievements";
- dataType: "boolean";
- columnType: "PgBoolean";
- data: boolean;
- driverParam: boolean;
- notNull: true;
- hasDefault: true;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: undefined;
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- doneAt: drizzle_orm_pg_core.PgColumn<{
- name: "done_at";
- tableName: "achievements";
- dataType: "date";
- columnType: "PgTimestamp";
- data: Date;
- driverParam: string;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: undefined;
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- tx: drizzle_orm_pg_core.PgColumn<{
- name: "tx";
- tableName: "achievements";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- };
- dialect: "pg";
+//#endregion
+//#region src/lib/ai/tools/utilities/types.d.ts
+interface ConversationContext {
+ currentFeedId?: string;
+ currentEntryId?: string;
+ selectedText?: string;
+ sessionTopic?: string;
+ userIntent?: string;
+}
+interface UserPreferences {
+ contentTypes: string[];
+ languages: string[];
+ categories: string[];
+ readingPatterns: {
+ timeOfDay: string[];
+ frequency: string;
+ velocity: number;
+ };
+ aiInteractionStyle: string;
+ helpTopics: string[];
+}
+//#endregion
+//#region src/schema/achievements.d.ts
+declare const achievements: drizzle_orm_pg_core1159.PgTableWithColumns<{
+ name: "achievements";
+ schema: undefined;
+ columns: {
+ id: drizzle_orm_pg_core1159.PgColumn<{
+ name: "id";
+ tableName: "achievements";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: true;
+ hasDefault: true;
+ isPrimaryKey: true;
+ isAutoincrement: false;
+ hasRuntimeDefault: true;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ userId: drizzle_orm_pg_core1159.PgColumn<{
+ name: "user_id";
+ tableName: "achievements";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: true;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ type: drizzle_orm_pg_core1159.PgColumn<{
+ name: "type";
+ tableName: "achievements";
+ dataType: "string";
+ columnType: "PgText";
+ data: "checking" | "completed" | "incomplete" | "audit" | "received";
+ driverParam: string;
+ notNull: true;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: ["checking", "completed", "incomplete", "audit", "received"];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ actionId: drizzle_orm_pg_core1159.PgColumn<{
+ name: "action_id";
+ tableName: "achievements";
+ dataType: "number";
+ columnType: "PgInteger";
+ data: number;
+ driverParam: string | number;
+ notNull: true;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ progress: drizzle_orm_pg_core1159.PgColumn<{
+ name: "progress";
+ tableName: "achievements";
+ dataType: "number";
+ columnType: "PgInteger";
+ data: number;
+ driverParam: string | number;
+ notNull: true;
+ hasDefault: true;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ progressMax: drizzle_orm_pg_core1159.PgColumn<{
+ name: "progress_max";
+ tableName: "achievements";
+ dataType: "number";
+ columnType: "PgInteger";
+ data: number;
+ driverParam: string | number;
+ notNull: true;
+ hasDefault: true;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ done: drizzle_orm_pg_core1159.PgColumn<{
+ name: "done";
+ tableName: "achievements";
+ dataType: "boolean";
+ columnType: "PgBoolean";
+ data: boolean;
+ driverParam: boolean;
+ notNull: true;
+ hasDefault: true;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ doneAt: drizzle_orm_pg_core1159.PgColumn<{
+ name: "done_at";
+ tableName: "achievements";
+ dataType: "date";
+ columnType: "PgTimestamp";
+ data: Date;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ tx: drizzle_orm_pg_core1159.PgColumn<{
+ name: "tx";
+ tableName: "achievements";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ };
+ dialect: "pg";
}>;
-declare const achievementsOpenAPISchema: zod.ZodObject<{
- id: zod.ZodString;
- userId: zod.ZodString;
- type: zod.ZodEnum<["checking", "completed", "incomplete", "audit", "received"]>;
- actionId: zod.ZodNumber;
- progress: zod.ZodNumber;
- progressMax: zod.ZodNumber;
- done: zod.ZodBoolean;
- doneAt: zod.ZodNullable;
- tx: zod.ZodNullable;
-}, zod.UnknownKeysParam, zod.ZodTypeAny, {
- id: string;
- userId: string;
- type: "checking" | "completed" | "incomplete" | "audit" | "received";
- actionId: number;
- progress: number;
- progressMax: number;
- done: boolean;
- doneAt: string | null;
- tx: string | null;
+declare const achievementsOpenAPISchema: zod1169.ZodObject<{
+ id: zod1169.ZodString;
+ userId: zod1169.ZodString;
+ type: zod1169.ZodEnum<["checking", "completed", "incomplete", "audit", "received"]>;
+ actionId: zod1169.ZodNumber;
+ progress: zod1169.ZodNumber;
+ progressMax: zod1169.ZodNumber;
+ done: zod1169.ZodBoolean;
+ doneAt: zod1169.ZodNullable;
+ tx: zod1169.ZodNullable;
+}, zod1169.UnknownKeysParam, zod1169.ZodTypeAny, {
+ id: string;
+ userId: string;
+ type: "checking" | "completed" | "incomplete" | "audit" | "received";
+ actionId: number;
+ progress: number;
+ progressMax: number;
+ done: boolean;
+ doneAt: string | null;
+ tx: string | null;
}, {
- id: string;
- userId: string;
- type: "checking" | "completed" | "incomplete" | "audit" | "received";
- actionId: number;
- progress: number;
- progressMax: number;
- done: boolean;
- doneAt: string | null;
- tx: string | null;
+ id: string;
+ userId: string;
+ type: "checking" | "completed" | "incomplete" | "audit" | "received";
+ actionId: number;
+ progress: number;
+ progressMax: number;
+ done: boolean;
+ doneAt: string | null;
+ tx: string | null;
}>;
-
+//#endregion
+//#region src/schema/actions.d.ts
declare const languageSchema: z.ZodEnum<["en", "ja", "zh-CN", "zh-TW"]>;
declare const conditionItemSchema: z.ZodObject<{
+ field: z.ZodEnum<["view", "title", "site_url", "feed_url", "category", "entry_title", "entry_content", "entry_url", "entry_author", "entry_media_length", "entry_attachments_duration", "status"]>;
+ operator: z.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>;
+ value: z.ZodString;
+}, "strip", z.ZodTypeAny, {
+ value: string;
+ field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+}, {
+ value: string;
+ field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+}>;
+type ConditionItem = z.infer;
+declare const actions: drizzle_orm_pg_core1159.PgTableWithColumns<{
+ name: "actions";
+ schema: undefined;
+ columns: {
+ userId: drizzle_orm_pg_core1159.PgColumn<{
+ name: "user_id";
+ tableName: "actions";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: true;
+ hasDefault: false;
+ isPrimaryKey: true;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ createdAt: drizzle_orm_pg_core1159.PgColumn<{
+ name: "created_at";
+ tableName: "actions";
+ dataType: "date";
+ columnType: "PgTimestamp";
+ data: Date;
+ driverParam: string;
+ notNull: false;
+ hasDefault: true;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ updatedAt: drizzle_orm_pg_core1159.PgColumn<{
+ name: "updated_at";
+ tableName: "actions";
+ dataType: "date";
+ columnType: "PgTimestamp";
+ data: Date;
+ driverParam: string;
+ notNull: false;
+ hasDefault: true;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ rules: drizzle_orm_pg_core1159.PgColumn<{
+ name: "rules";
+ tableName: "actions";
+ dataType: "json";
+ columnType: "PgJsonb";
+ data: {
+ name: string;
+ condition: {
+ value: string;
+ field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }[] | {
+ value: string;
+ field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }[][];
+ result: {
+ disabled?: boolean | undefined;
+ translation?: boolean | "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
+ summary?: boolean | undefined;
+ readability?: boolean | undefined;
+ sourceContent?: boolean | undefined;
+ silence?: boolean | undefined;
+ block?: boolean | undefined;
+ star?: boolean | undefined;
+ newEntryNotification?: boolean | undefined;
+ rewriteRules?: {
+ from: string;
+ to: string;
+ }[] | undefined;
+ blockRules?: {
+ value: string | number;
+ field: "title" | "content" | "all" | "author" | "url" | "order";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }[] | undefined;
+ webhooks?: string[] | undefined;
+ };
+ }[];
+ driverParam: unknown;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {
+ $type: {
+ name: string;
+ condition: {
+ value: string;
+ field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }[] | {
+ value: string;
+ field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }[][];
+ result: {
+ disabled?: boolean | undefined;
+ translation?: boolean | "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
+ summary?: boolean | undefined;
+ readability?: boolean | undefined;
+ sourceContent?: boolean | undefined;
+ silence?: boolean | undefined;
+ block?: boolean | undefined;
+ star?: boolean | undefined;
+ newEntryNotification?: boolean | undefined;
+ rewriteRules?: {
+ from: string;
+ to: string;
+ }[] | undefined;
+ blockRules?: {
+ value: string | number;
+ field: "title" | "content" | "all" | "author" | "url" | "order";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }[] | undefined;
+ webhooks?: string[] | undefined;
+ };
+ }[];
+ }>;
+ };
+ dialect: "pg";
+}>;
+declare const actionsItemOpenAPISchema: z.ZodObject<{
+ name: z.ZodString;
+ condition: z.ZodUnion<[z.ZodArray;
operator: z.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>;
value: z.ZodString;
-}, "strip", z.ZodTypeAny, {
+ }, "strip", z.ZodTypeAny, {
value: string;
field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
-}, {
+ }, {
value: string;
field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
-}>;
-type ConditionItem = z.infer;
-declare const actions: drizzle_orm_pg_core.PgTableWithColumns<{
- name: "actions";
- schema: undefined;
- columns: {
- userId: drizzle_orm_pg_core.PgColumn<{
- name: "user_id";
- tableName: "actions";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: true;
- hasDefault: false;
- isPrimaryKey: true;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- createdAt: drizzle_orm_pg_core.PgColumn<{
- name: "created_at";
- tableName: "actions";
- dataType: "date";
- columnType: "PgTimestamp";
- data: Date;
- driverParam: string;
- notNull: false;
- hasDefault: true;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: undefined;
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- updatedAt: drizzle_orm_pg_core.PgColumn<{
- name: "updated_at";
- tableName: "actions";
- dataType: "date";
- columnType: "PgTimestamp";
- data: Date;
- driverParam: string;
- notNull: false;
- hasDefault: true;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: undefined;
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- rules: drizzle_orm_pg_core.PgColumn<{
- name: "rules";
- tableName: "actions";
- dataType: "json";
- columnType: "PgJsonb";
- data: {
- name: string;
- condition: {
- value: string;
- field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }[] | {
- value: string;
- field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }[][];
- result: {
- disabled?: boolean | undefined;
- translation?: boolean | "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
- summary?: boolean | undefined;
- readability?: boolean | undefined;
- sourceContent?: boolean | undefined;
- silence?: boolean | undefined;
- block?: boolean | undefined;
- star?: boolean | undefined;
- newEntryNotification?: boolean | undefined;
- rewriteRules?: {
- from: string;
- to: string;
- }[] | undefined;
- blockRules?: {
- value: string | number;
- field: "title" | "content" | "all" | "author" | "url" | "order";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }[] | undefined;
- webhooks?: string[] | undefined;
- };
- }[];
- driverParam: unknown;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: undefined;
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {
- $type: {
- name: string;
- condition: {
- value: string;
- field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }[] | {
- value: string;
- field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }[][];
- result: {
- disabled?: boolean | undefined;
- translation?: boolean | "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
- summary?: boolean | undefined;
- readability?: boolean | undefined;
- sourceContent?: boolean | undefined;
- silence?: boolean | undefined;
- block?: boolean | undefined;
- star?: boolean | undefined;
- newEntryNotification?: boolean | undefined;
- rewriteRules?: {
- from: string;
- to: string;
- }[] | undefined;
- blockRules?: {
- value: string | number;
- field: "title" | "content" | "all" | "author" | "url" | "order";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }[] | undefined;
- webhooks?: string[] | undefined;
- };
- }[];
- }>;
- };
- dialect: "pg";
-}>;
-declare const actionsItemOpenAPISchema: z.ZodObject<{
- name: z.ZodString;
- condition: z.ZodUnion<[z.ZodArray;
- operator: z.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>;
- value: z.ZodString;
+ }>, "many">, z.ZodArray;
+ operator: z.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>;
+ value: z.ZodString;
+ }, "strip", z.ZodTypeAny, {
+ value: string;
+ field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }, {
+ value: string;
+ field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }>, "many">, "many">]>;
+ result: z.ZodObject<{
+ disabled: z.ZodOptional;
+ translation: z.ZodOptional, z.ZodBoolean]>>;
+ summary: z.ZodOptional;
+ readability: z.ZodOptional;
+ sourceContent: z.ZodOptional;
+ silence: z.ZodOptional;
+ block: z.ZodOptional;
+ star: z.ZodOptional;
+ newEntryNotification: z.ZodOptional;
+ rewriteRules: z.ZodOptional, "many">, z.ZodArray;
- operator: z.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>;
- value: z.ZodString;
+ from: string;
+ to: string;
+ }>, "many">>;
+ blockRules: z.ZodOptional;
+ operator: z.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>;
+ value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
}, "strip", z.ZodTypeAny, {
- value: string;
- field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ value: string | number;
+ field: "title" | "content" | "all" | "author" | "url" | "order";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
}, {
- value: string;
- field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }>, "many">, "many">]>;
- result: z.ZodObject<{
- disabled: z.ZodOptional;
- translation: z.ZodOptional, z.ZodBoolean]>>;
- summary: z.ZodOptional;
- readability: z.ZodOptional;
- sourceContent: z.ZodOptional;
- silence: z.ZodOptional;
- block: z.ZodOptional;
- star: z.ZodOptional;
- newEntryNotification: z.ZodOptional;
- rewriteRules: z.ZodOptional, "many">>;
- blockRules: z.ZodOptional;
- operator: z.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>;
- value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
- }, "strip", z.ZodTypeAny, {
- value: string | number;
- field: "title" | "content" | "all" | "author" | "url" | "order";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }, {
- value: string | number;
- field: "title" | "content" | "all" | "author" | "url" | "order";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }>, "many">>;
- webhooks: z.ZodOptional>;
- }, "strip", z.ZodTypeAny, {
- disabled?: boolean | undefined;
- translation?: boolean | "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
- summary?: boolean | undefined;
- readability?: boolean | undefined;
- sourceContent?: boolean | undefined;
- silence?: boolean | undefined;
- block?: boolean | undefined;
- star?: boolean | undefined;
- newEntryNotification?: boolean | undefined;
- rewriteRules?: {
- from: string;
- to: string;
- }[] | undefined;
- blockRules?: {
- value: string | number;
- field: "title" | "content" | "all" | "author" | "url" | "order";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }[] | undefined;
- webhooks?: string[] | undefined;
- }, {
- disabled?: boolean | undefined;
- translation?: boolean | "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
- summary?: boolean | undefined;
- readability?: boolean | undefined;
- sourceContent?: boolean | undefined;
- silence?: boolean | undefined;
- block?: boolean | undefined;
- star?: boolean | undefined;
- newEntryNotification?: boolean | undefined;
- rewriteRules?: {
- from: string;
- to: string;
- }[] | undefined;
- blockRules?: {
- value: string | number;
- field: "title" | "content" | "all" | "author" | "url" | "order";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }[] | undefined;
- webhooks?: string[] | undefined;
- }>;
+ value: string | number;
+ field: "title" | "content" | "all" | "author" | "url" | "order";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }>, "many">>;
+ webhooks: z.ZodOptional>;
+ }, "strip", z.ZodTypeAny, {
+ disabled?: boolean | undefined;
+ translation?: boolean | "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
+ summary?: boolean | undefined;
+ readability?: boolean | undefined;
+ sourceContent?: boolean | undefined;
+ silence?: boolean | undefined;
+ block?: boolean | undefined;
+ star?: boolean | undefined;
+ newEntryNotification?: boolean | undefined;
+ rewriteRules?: {
+ from: string;
+ to: string;
+ }[] | undefined;
+ blockRules?: {
+ value: string | number;
+ field: "title" | "content" | "all" | "author" | "url" | "order";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }[] | undefined;
+ webhooks?: string[] | undefined;
+ }, {
+ disabled?: boolean | undefined;
+ translation?: boolean | "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
+ summary?: boolean | undefined;
+ readability?: boolean | undefined;
+ sourceContent?: boolean | undefined;
+ silence?: boolean | undefined;
+ block?: boolean | undefined;
+ star?: boolean | undefined;
+ newEntryNotification?: boolean | undefined;
+ rewriteRules?: {
+ from: string;
+ to: string;
+ }[] | undefined;
+ blockRules?: {
+ value: string | number;
+ field: "title" | "content" | "all" | "author" | "url" | "order";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }[] | undefined;
+ webhooks?: string[] | undefined;
+ }>;
}, "strip", z.ZodTypeAny, {
- name: string;
- condition: {
- value: string;
- field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }[] | {
- value: string;
- field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }[][];
- result: {
- disabled?: boolean | undefined;
- translation?: boolean | "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
- summary?: boolean | undefined;
- readability?: boolean | undefined;
- sourceContent?: boolean | undefined;
- silence?: boolean | undefined;
- block?: boolean | undefined;
- star?: boolean | undefined;
- newEntryNotification?: boolean | undefined;
- rewriteRules?: {
- from: string;
- to: string;
- }[] | undefined;
- blockRules?: {
- value: string | number;
- field: "title" | "content" | "all" | "author" | "url" | "order";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }[] | undefined;
- webhooks?: string[] | undefined;
- };
+ name: string;
+ condition: {
+ value: string;
+ field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }[] | {
+ value: string;
+ field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }[][];
+ result: {
+ disabled?: boolean | undefined;
+ translation?: boolean | "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
+ summary?: boolean | undefined;
+ readability?: boolean | undefined;
+ sourceContent?: boolean | undefined;
+ silence?: boolean | undefined;
+ block?: boolean | undefined;
+ star?: boolean | undefined;
+ newEntryNotification?: boolean | undefined;
+ rewriteRules?: {
+ from: string;
+ to: string;
+ }[] | undefined;
+ blockRules?: {
+ value: string | number;
+ field: "title" | "content" | "all" | "author" | "url" | "order";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }[] | undefined;
+ webhooks?: string[] | undefined;
+ };
}, {
- name: string;
- condition: {
- value: string;
- field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }[] | {
- value: string;
- field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }[][];
- result: {
- disabled?: boolean | undefined;
- translation?: boolean | "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
- summary?: boolean | undefined;
- readability?: boolean | undefined;
- sourceContent?: boolean | undefined;
- silence?: boolean | undefined;
- block?: boolean | undefined;
- star?: boolean | undefined;
- newEntryNotification?: boolean | undefined;
- rewriteRules?: {
- from: string;
- to: string;
- }[] | undefined;
- blockRules?: {
- value: string | number;
- field: "title" | "content" | "all" | "author" | "url" | "order";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }[] | undefined;
- webhooks?: string[] | undefined;
- };
+ name: string;
+ condition: {
+ value: string;
+ field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }[] | {
+ value: string;
+ field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }[][];
+ result: {
+ disabled?: boolean | undefined;
+ translation?: boolean | "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
+ summary?: boolean | undefined;
+ readability?: boolean | undefined;
+ sourceContent?: boolean | undefined;
+ silence?: boolean | undefined;
+ block?: boolean | undefined;
+ star?: boolean | undefined;
+ newEntryNotification?: boolean | undefined;
+ rewriteRules?: {
+ from: string;
+ to: string;
+ }[] | undefined;
+ blockRules?: {
+ value: string | number;
+ field: "title" | "content" | "all" | "author" | "url" | "order";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }[] | undefined;
+ webhooks?: string[] | undefined;
+ };
}>;
type ActionItem = z.infer;
declare const actionsOpenAPISchema: z.ZodObject;
- updatedAt: z.ZodNullable;
- rules: z.ZodNullable>;
+ userId: z.ZodString;
+ createdAt: z.ZodNullable;
+ updatedAt: z.ZodNullable;
+ rules: z.ZodNullable>;
}, "rules"> & {
- rules: z.ZodNullable;
- operator: z.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>;
- value: z.ZodString;
- }, "strip", z.ZodTypeAny, {
- value: string;
- field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }, {
- value: string;
- field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }>, "many">, z.ZodArray;
- operator: z.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>;
- value: z.ZodString;
- }, "strip", z.ZodTypeAny, {
- value: string;
- field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }, {
- value: string;
- field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }>, "many">, "many">]>;
- result: z.ZodObject<{
- disabled: z.ZodOptional;
- translation: z.ZodOptional, z.ZodBoolean]>>;
- summary: z.ZodOptional;
- readability: z.ZodOptional;
- sourceContent: z.ZodOptional;
- silence: z.ZodOptional;
- block: z.ZodOptional;
- star: z.ZodOptional;
- newEntryNotification: z.ZodOptional;
- rewriteRules: z.ZodOptional, "many">>;
- blockRules: z.ZodOptional;
- operator: z.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>;
- value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
- }, "strip", z.ZodTypeAny, {
- value: string | number;
- field: "title" | "content" | "all" | "author" | "url" | "order";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }, {
- value: string | number;
- field: "title" | "content" | "all" | "author" | "url" | "order";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }>, "many">>;
- webhooks: z.ZodOptional>;
- }, "strip", z.ZodTypeAny, {
- disabled?: boolean | undefined;
- translation?: boolean | "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
- summary?: boolean | undefined;
- readability?: boolean | undefined;
- sourceContent?: boolean | undefined;
- silence?: boolean | undefined;
- block?: boolean | undefined;
- star?: boolean | undefined;
- newEntryNotification?: boolean | undefined;
- rewriteRules?: {
- from: string;
- to: string;
- }[] | undefined;
- blockRules?: {
- value: string | number;
- field: "title" | "content" | "all" | "author" | "url" | "order";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }[] | undefined;
- webhooks?: string[] | undefined;
- }, {
- disabled?: boolean | undefined;
- translation?: boolean | "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
- summary?: boolean | undefined;
- readability?: boolean | undefined;
- sourceContent?: boolean | undefined;
- silence?: boolean | undefined;
- block?: boolean | undefined;
- star?: boolean | undefined;
- newEntryNotification?: boolean | undefined;
- rewriteRules?: {
- from: string;
- to: string;
- }[] | undefined;
- blockRules?: {
- value: string | number;
- field: "title" | "content" | "all" | "author" | "url" | "order";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }[] | undefined;
- webhooks?: string[] | undefined;
- }>;
+ rules: z.ZodNullable;
+ operator: z.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>;
+ value: z.ZodString;
}, "strip", z.ZodTypeAny, {
- name: string;
- condition: {
- value: string;
- field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }[] | {
- value: string;
- field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }[][];
- result: {
- disabled?: boolean | undefined;
- translation?: boolean | "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
- summary?: boolean | undefined;
- readability?: boolean | undefined;
- sourceContent?: boolean | undefined;
- silence?: boolean | undefined;
- block?: boolean | undefined;
- star?: boolean | undefined;
- newEntryNotification?: boolean | undefined;
- rewriteRules?: {
- from: string;
- to: string;
- }[] | undefined;
- blockRules?: {
- value: string | number;
- field: "title" | "content" | "all" | "author" | "url" | "order";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }[] | undefined;
- webhooks?: string[] | undefined;
- };
+ value: string;
+ field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
}, {
- name: string;
- condition: {
- value: string;
- field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }[] | {
- value: string;
- field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }[][];
- result: {
- disabled?: boolean | undefined;
- translation?: boolean | "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
- summary?: boolean | undefined;
- readability?: boolean | undefined;
- sourceContent?: boolean | undefined;
- silence?: boolean | undefined;
- block?: boolean | undefined;
- star?: boolean | undefined;
- newEntryNotification?: boolean | undefined;
- rewriteRules?: {
- from: string;
- to: string;
- }[] | undefined;
- blockRules?: {
- value: string | number;
- field: "title" | "content" | "all" | "author" | "url" | "order";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }[] | undefined;
- webhooks?: string[] | undefined;
- };
- }>, "many">>>;
+ value: string;
+ field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }>, "many">, z.ZodArray;
+ operator: z.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>;
+ value: z.ZodString;
+ }, "strip", z.ZodTypeAny, {
+ value: string;
+ field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }, {
+ value: string;
+ field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }>, "many">, "many">]>;
+ result: z.ZodObject<{
+ disabled: z.ZodOptional;
+ translation: z.ZodOptional, z.ZodBoolean]>>;
+ summary: z.ZodOptional;
+ readability: z.ZodOptional;
+ sourceContent: z.ZodOptional;
+ silence: z.ZodOptional;
+ block: z.ZodOptional;
+ star: z.ZodOptional;
+ newEntryNotification: z.ZodOptional;
+ rewriteRules: z.ZodOptional, "many">>;
+ blockRules: z.ZodOptional;
+ operator: z.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>;
+ value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
+ }, "strip", z.ZodTypeAny, {
+ value: string | number;
+ field: "title" | "content" | "all" | "author" | "url" | "order";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }, {
+ value: string | number;
+ field: "title" | "content" | "all" | "author" | "url" | "order";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }>, "many">>;
+ webhooks: z.ZodOptional>;
+ }, "strip", z.ZodTypeAny, {
+ disabled?: boolean | undefined;
+ translation?: boolean | "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
+ summary?: boolean | undefined;
+ readability?: boolean | undefined;
+ sourceContent?: boolean | undefined;
+ silence?: boolean | undefined;
+ block?: boolean | undefined;
+ star?: boolean | undefined;
+ newEntryNotification?: boolean | undefined;
+ rewriteRules?: {
+ from: string;
+ to: string;
+ }[] | undefined;
+ blockRules?: {
+ value: string | number;
+ field: "title" | "content" | "all" | "author" | "url" | "order";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }[] | undefined;
+ webhooks?: string[] | undefined;
+ }, {
+ disabled?: boolean | undefined;
+ translation?: boolean | "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
+ summary?: boolean | undefined;
+ readability?: boolean | undefined;
+ sourceContent?: boolean | undefined;
+ silence?: boolean | undefined;
+ block?: boolean | undefined;
+ star?: boolean | undefined;
+ newEntryNotification?: boolean | undefined;
+ rewriteRules?: {
+ from: string;
+ to: string;
+ }[] | undefined;
+ blockRules?: {
+ value: string | number;
+ field: "title" | "content" | "all" | "author" | "url" | "order";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }[] | undefined;
+ webhooks?: string[] | undefined;
+ }>;
+ }, "strip", z.ZodTypeAny, {
+ name: string;
+ condition: {
+ value: string;
+ field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }[] | {
+ value: string;
+ field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }[][];
+ result: {
+ disabled?: boolean | undefined;
+ translation?: boolean | "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
+ summary?: boolean | undefined;
+ readability?: boolean | undefined;
+ sourceContent?: boolean | undefined;
+ silence?: boolean | undefined;
+ block?: boolean | undefined;
+ star?: boolean | undefined;
+ newEntryNotification?: boolean | undefined;
+ rewriteRules?: {
+ from: string;
+ to: string;
+ }[] | undefined;
+ blockRules?: {
+ value: string | number;
+ field: "title" | "content" | "all" | "author" | "url" | "order";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }[] | undefined;
+ webhooks?: string[] | undefined;
+ };
+ }, {
+ name: string;
+ condition: {
+ value: string;
+ field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }[] | {
+ value: string;
+ field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }[][];
+ result: {
+ disabled?: boolean | undefined;
+ translation?: boolean | "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
+ summary?: boolean | undefined;
+ readability?: boolean | undefined;
+ sourceContent?: boolean | undefined;
+ silence?: boolean | undefined;
+ block?: boolean | undefined;
+ star?: boolean | undefined;
+ newEntryNotification?: boolean | undefined;
+ rewriteRules?: {
+ from: string;
+ to: string;
+ }[] | undefined;
+ blockRules?: {
+ value: string | number;
+ field: "title" | "content" | "all" | "author" | "url" | "order";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }[] | undefined;
+ webhooks?: string[] | undefined;
+ };
+ }>, "many">>>;
}, "strip", z.ZodTypeAny, {
- createdAt: string | null;
- updatedAt: string | null;
- userId: string;
- rules?: {
- name: string;
- condition: {
- value: string;
- field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }[] | {
- value: string;
- field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }[][];
- result: {
- disabled?: boolean | undefined;
- translation?: boolean | "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
- summary?: boolean | undefined;
- readability?: boolean | undefined;
- sourceContent?: boolean | undefined;
- silence?: boolean | undefined;
- block?: boolean | undefined;
- star?: boolean | undefined;
- newEntryNotification?: boolean | undefined;
- rewriteRules?: {
- from: string;
- to: string;
- }[] | undefined;
- blockRules?: {
- value: string | number;
- field: "title" | "content" | "all" | "author" | "url" | "order";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }[] | undefined;
- webhooks?: string[] | undefined;
- };
- }[] | null | undefined;
+ createdAt: string | null;
+ updatedAt: string | null;
+ userId: string;
+ rules?: {
+ name: string;
+ condition: {
+ value: string;
+ field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }[] | {
+ value: string;
+ field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }[][];
+ result: {
+ disabled?: boolean | undefined;
+ translation?: boolean | "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
+ summary?: boolean | undefined;
+ readability?: boolean | undefined;
+ sourceContent?: boolean | undefined;
+ silence?: boolean | undefined;
+ block?: boolean | undefined;
+ star?: boolean | undefined;
+ newEntryNotification?: boolean | undefined;
+ rewriteRules?: {
+ from: string;
+ to: string;
+ }[] | undefined;
+ blockRules?: {
+ value: string | number;
+ field: "title" | "content" | "all" | "author" | "url" | "order";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }[] | undefined;
+ webhooks?: string[] | undefined;
+ };
+ }[] | null | undefined;
}, {
- createdAt: string | null;
- updatedAt: string | null;
- userId: string;
- rules?: {
- name: string;
- condition: {
- value: string;
- field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }[] | {
- value: string;
- field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }[][];
- result: {
- disabled?: boolean | undefined;
- translation?: boolean | "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
- summary?: boolean | undefined;
- readability?: boolean | undefined;
- sourceContent?: boolean | undefined;
- silence?: boolean | undefined;
- block?: boolean | undefined;
- star?: boolean | undefined;
- newEntryNotification?: boolean | undefined;
- rewriteRules?: {
- from: string;
- to: string;
- }[] | undefined;
- blockRules?: {
- value: string | number;
- field: "title" | "content" | "all" | "author" | "url" | "order";
- operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }[] | undefined;
- webhooks?: string[] | undefined;
- };
- }[] | null | undefined;
+ createdAt: string | null;
+ updatedAt: string | null;
+ userId: string;
+ rules?: {
+ name: string;
+ condition: {
+ value: string;
+ field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }[] | {
+ value: string;
+ field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }[][];
+ result: {
+ disabled?: boolean | undefined;
+ translation?: boolean | "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
+ summary?: boolean | undefined;
+ readability?: boolean | undefined;
+ sourceContent?: boolean | undefined;
+ silence?: boolean | undefined;
+ block?: boolean | undefined;
+ star?: boolean | undefined;
+ newEntryNotification?: boolean | undefined;
+ rewriteRules?: {
+ from: string;
+ to: string;
+ }[] | undefined;
+ blockRules?: {
+ value: string | number;
+ field: "title" | "content" | "all" | "author" | "url" | "order";
+ operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
+ }[] | undefined;
+ webhooks?: string[] | undefined;
+ };
+ }[] | null | undefined;
}>;
-declare const actionsRelations: drizzle_orm.Relations<"actions", {
- users: drizzle_orm.One<"user", true>;
+declare const actionsRelations: drizzle_orm1055.Relations<"actions", {
+ users: drizzle_orm1055.One<"user", true>;
}>;
type ActionsModel = z.infer;
type SettingsModel = Exclude["result"], undefined>;
-
-declare const activities: drizzle_orm_pg_core.PgTableWithColumns<{
- name: "activities";
- schema: undefined;
- columns: {
- userId: drizzle_orm_pg_core.PgColumn<{
- name: "user_id";
- tableName: "activities";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: true;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- activeAt: drizzle_orm_pg_core.PgColumn<{
- name: "active_at";
- tableName: "activities";
- dataType: "date";
- columnType: "PgDate";
- data: Date;
- driverParam: string;
- notNull: true;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: undefined;
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- platform: drizzle_orm_pg_core.PgColumn<{
- name: "platform";
- tableName: "activities";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: true;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- version: drizzle_orm_pg_core.PgColumn<{
- name: "version";
- tableName: "activities";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- };
- dialect: "pg";
+//#endregion
+//#region src/schema/activities.d.ts
+declare const activities: drizzle_orm_pg_core1159.PgTableWithColumns<{
+ name: "activities";
+ schema: undefined;
+ columns: {
+ userId: drizzle_orm_pg_core1159.PgColumn<{
+ name: "user_id";
+ tableName: "activities";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: true;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ activeAt: drizzle_orm_pg_core1159.PgColumn<{
+ name: "active_at";
+ tableName: "activities";
+ dataType: "date";
+ columnType: "PgDate";
+ data: Date;
+ driverParam: string;
+ notNull: true;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ platform: drizzle_orm_pg_core1159.PgColumn<{
+ name: "platform";
+ tableName: "activities";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: true;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ version: drizzle_orm_pg_core1159.PgColumn<{
+ name: "version";
+ tableName: "activities";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ };
+ dialect: "pg";
}>;
-declare const activitiesOpenAPISchema: zod.ZodObject<{
- userId: zod.ZodString;
- activeAt: zod.ZodString;
- platform: zod.ZodString;
- version: zod.ZodNullable;
-}, zod.UnknownKeysParam, zod.ZodTypeAny, {
- userId: string;
- activeAt: string;
- platform: string;
- version: string | null;
+declare const activitiesOpenAPISchema: zod1169.ZodObject<{
+ userId: zod1169.ZodString;
+ activeAt: zod1169.ZodString;
+ platform: zod1169.ZodString;
+ version: zod1169.ZodNullable;
+}, zod1169.UnknownKeysParam, zod1169.ZodTypeAny, {
+ userId: string;
+ activeAt: string;
+ platform: string;
+ version: string | null;
}, {
- userId: string;
- activeAt: string;
- platform: string;
- version: string | null;
+ userId: string;
+ activeAt: string;
+ platform: string;
+ version: string | null;
}>;
-
+//#endregion
+//#region src/schema/airdrops.d.ts
declare const detailModelSchema: z.ZodNullable>;
+type DetailModel = z.infer;
+declare const activityEnum: readonly ["public_beta"];
+type AirdropActivity = typeof activityEnum[number];
+declare const airdrops: drizzle_orm_pg_core1159.PgTableWithColumns<{
+ name: "airdrops";
+ schema: undefined;
+ columns: {
+ activity: drizzle_orm_pg_core1159.PgColumn<{
+ name: "activity";
+ tableName: "airdrops";
+ dataType: "string";
+ columnType: "PgText";
+ data: "public_beta";
+ driverParam: string;
+ notNull: true;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: ["public_beta"];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ userId: drizzle_orm_pg_core1159.PgColumn<{
+ name: "user_id";
+ tableName: "airdrops";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: true;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ amount: drizzle_orm_pg_core1159.PgColumn<{
+ name: "amount";
+ tableName: "airdrops";
+ dataType: "string";
+ columnType: "PgNumeric";
+ data: string;
+ driverParam: string;
+ notNull: true;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ rank: drizzle_orm_pg_core1159.PgColumn<{
+ name: "rank";
+ tableName: "airdrops";
+ dataType: "string";
+ columnType: "PgNumeric";
+ data: string;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ detail: drizzle_orm_pg_core1159.PgColumn<{
+ name: "detail";
+ tableName: "airdrops";
+ dataType: "json";
+ columnType: "PgJsonb";
+ data: {
+ "Invitations count": number;
+ "Purchase lists cost": number;
+ "Total tip amount": number;
+ "Feeds subscriptions count": number;
+ "Lists subscriptions count": number;
+ "Inbox subscriptions count": number;
+ "Recent read count in the last month": number;
+ "Mint count": number;
+ "Claimed feeds count": number;
+ "Claimed feeds subscriptions count": number;
+ "Lists with more than 1 feed count": number;
+ "Created lists subscriptions count": number;
+ "Created lists income amount": number;
+ "GitHub Community Contributions": number;
+ "Invitations count Rank": number;
+ "Purchase lists cost Rank": number;
+ "Total tip amount Rank": number;
+ "Feeds subscriptions count Rank": number;
+ "Lists subscriptions count Rank": number;
+ "Inbox subscriptions count Rank": number;
+ "Recent read count in the last month Rank": number;
+ "Mint count Rank": number;
+ "Claimed feeds count Rank": number;
+ "Claimed feeds subscriptions count Rank": number;
+ "Lists with more than 1 feed count Rank": number;
+ "Created lists subscriptions count Rank": number;
+ "Created lists income amount Rank": number;
+ "GitHub Community Contributions Rank": number;
+ } | null;
+ driverParam: unknown;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {
+ $type: {
+ "Invitations count": number;
+ "Purchase lists cost": number;
+ "Total tip amount": number;
+ "Feeds subscriptions count": number;
+ "Lists subscriptions count": number;
+ "Inbox subscriptions count": number;
+ "Recent read count in the last month": number;
+ "Mint count": number;
+ "Claimed feeds count": number;
+ "Claimed feeds subscriptions count": number;
+ "Lists with more than 1 feed count": number;
+ "Created lists subscriptions count": number;
+ "Created lists income amount": number;
+ "GitHub Community Contributions": number;
+ "Invitations count Rank": number;
+ "Purchase lists cost Rank": number;
+ "Total tip amount Rank": number;
+ "Feeds subscriptions count Rank": number;
+ "Lists subscriptions count Rank": number;
+ "Inbox subscriptions count Rank": number;
+ "Recent read count in the last month Rank": number;
+ "Mint count Rank": number;
+ "Claimed feeds count Rank": number;
+ "Claimed feeds subscriptions count Rank": number;
+ "Lists with more than 1 feed count Rank": number;
+ "Created lists subscriptions count Rank": number;
+ "Created lists income amount Rank": number;
+ "GitHub Community Contributions Rank": number;
+ } | null;
+ }>;
+ verify: drizzle_orm_pg_core1159.PgColumn<{
+ name: "verify";
+ tableName: "airdrops";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ tx: drizzle_orm_pg_core1159.PgColumn<{
+ name: "tx";
+ tableName: "airdrops";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ };
+ dialect: "pg";
+}>;
+declare const airdropsOpenAPISchema: z.ZodObject;
+ userId: z.ZodString;
+ amount: z.ZodString;
+ rank: z.ZodNullable;
+ detail: z.ZodNullable>;
+ verify: z.ZodNullable;
+ tx: z.ZodNullable;
+}, "detail"> & {
+ detail: z.ZodNullable>;
-type DetailModel = z.infer;
-declare const activityEnum: readonly ["public_beta"];
-type AirdropActivity = typeof activityEnum[number];
-declare const airdrops: drizzle_orm_pg_core.PgTableWithColumns<{
- name: "airdrops";
- schema: undefined;
- columns: {
- activity: drizzle_orm_pg_core.PgColumn<{
- name: "activity";
- tableName: "airdrops";
- dataType: "string";
- columnType: "PgText";
- data: "public_beta";
- driverParam: string;
- notNull: true;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: ["public_beta"];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- userId: drizzle_orm_pg_core.PgColumn<{
- name: "user_id";
- tableName: "airdrops";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: true;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- amount: drizzle_orm_pg_core.PgColumn<{
- name: "amount";
- tableName: "airdrops";
- dataType: "string";
- columnType: "PgNumeric";
- data: string;
- driverParam: string;
- notNull: true;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: undefined;
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- rank: drizzle_orm_pg_core.PgColumn<{
- name: "rank";
- tableName: "airdrops";
- dataType: "string";
- columnType: "PgNumeric";
- data: string;
- driverParam: string;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: undefined;
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- detail: drizzle_orm_pg_core.PgColumn<{
- name: "detail";
- tableName: "airdrops";
- dataType: "json";
- columnType: "PgJsonb";
- data: {
- "Invitations count": number;
- "Purchase lists cost": number;
- "Total tip amount": number;
- "Feeds subscriptions count": number;
- "Lists subscriptions count": number;
- "Inbox subscriptions count": number;
- "Recent read count in the last month": number;
- "Mint count": number;
- "Claimed feeds count": number;
- "Claimed feeds subscriptions count": number;
- "Lists with more than 1 feed count": number;
- "Created lists subscriptions count": number;
- "Created lists income amount": number;
- "GitHub Community Contributions": number;
- "Invitations count Rank": number;
- "Purchase lists cost Rank": number;
- "Total tip amount Rank": number;
- "Feeds subscriptions count Rank": number;
- "Lists subscriptions count Rank": number;
- "Inbox subscriptions count Rank": number;
- "Recent read count in the last month Rank": number;
- "Mint count Rank": number;
- "Claimed feeds count Rank": number;
- "Claimed feeds subscriptions count Rank": number;
- "Lists with more than 1 feed count Rank": number;
- "Created lists subscriptions count Rank": number;
- "Created lists income amount Rank": number;
- "GitHub Community Contributions Rank": number;
- } | null;
- driverParam: unknown;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: undefined;
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {
- $type: {
- "Invitations count": number;
- "Purchase lists cost": number;
- "Total tip amount": number;
- "Feeds subscriptions count": number;
- "Lists subscriptions count": number;
- "Inbox subscriptions count": number;
- "Recent read count in the last month": number;
- "Mint count": number;
- "Claimed feeds count": number;
- "Claimed feeds subscriptions count": number;
- "Lists with more than 1 feed count": number;
- "Created lists subscriptions count": number;
- "Created lists income amount": number;
- "GitHub Community Contributions": number;
- "Invitations count Rank": number;
- "Purchase lists cost Rank": number;
- "Total tip amount Rank": number;
- "Feeds subscriptions count Rank": number;
- "Lists subscriptions count Rank": number;
- "Inbox subscriptions count Rank": number;
- "Recent read count in the last month Rank": number;
- "Mint count Rank": number;
- "Claimed feeds count Rank": number;
- "Claimed feeds subscriptions count Rank": number;
- "Lists with more than 1 feed count Rank": number;
- "Created lists subscriptions count Rank": number;
- "Created lists income amount Rank": number;
- "GitHub Community Contributions Rank": number;
- } | null;
- }>;
- verify: drizzle_orm_pg_core.PgColumn<{
- name: "verify";
- tableName: "airdrops";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- tx: drizzle_orm_pg_core.PgColumn<{
- name: "tx";
- tableName: "airdrops";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- };
- dialect: "pg";
-}>;
-declare const airdropsOpenAPISchema: z.ZodObject;
- userId: z.ZodString;
- amount: z.ZodString;
- rank: z.ZodNullable;
- detail: z.ZodNullable>;
- verify: z.ZodNullable;
- tx: z.ZodNullable;
-}, "detail"> & {
- detail: z.ZodNullable>;
+ }>>;
}, "strip", z.ZodTypeAny, {
- userId: string;
- tx: string | null;
- activity: "public_beta";
- amount: string;
- rank: string | null;
- detail: {
- "Invitations count": number;
- "Purchase lists cost": number;
- "Total tip amount": number;
- "Feeds subscriptions count": number;
- "Lists subscriptions count": number;
- "Inbox subscriptions count": number;
- "Recent read count in the last month": number;
- "Mint count": number;
- "Claimed feeds count": number;
- "Claimed feeds subscriptions count": number;
- "Lists with more than 1 feed count": number;
- "Created lists subscriptions count": number;
- "Created lists income amount": number;
- "GitHub Community Contributions": number;
- "Invitations count Rank": number;
- "Purchase lists cost Rank": number;
- "Total tip amount Rank": number;
- "Feeds subscriptions count Rank": number;
- "Lists subscriptions count Rank": number;
- "Inbox subscriptions count Rank": number;
- "Recent read count in the last month Rank": number;
- "Mint count Rank": number;
- "Claimed feeds count Rank": number;
- "Claimed feeds subscriptions count Rank": number;
- "Lists with more than 1 feed count Rank": number;
- "Created lists subscriptions count Rank": number;
- "Created lists income amount Rank": number;
- "GitHub Community Contributions Rank": number;
- } | null;
- verify: string | null;
+ userId: string;
+ tx: string | null;
+ activity: "public_beta";
+ amount: string;
+ rank: string | null;
+ detail: {
+ "Invitations count": number;
+ "Purchase lists cost": number;
+ "Total tip amount": number;
+ "Feeds subscriptions count": number;
+ "Lists subscriptions count": number;
+ "Inbox subscriptions count": number;
+ "Recent read count in the last month": number;
+ "Mint count": number;
+ "Claimed feeds count": number;
+ "Claimed feeds subscriptions count": number;
+ "Lists with more than 1 feed count": number;
+ "Created lists subscriptions count": number;
+ "Created lists income amount": number;
+ "GitHub Community Contributions": number;
+ "Invitations count Rank": number;
+ "Purchase lists cost Rank": number;
+ "Total tip amount Rank": number;
+ "Feeds subscriptions count Rank": number;
+ "Lists subscriptions count Rank": number;
+ "Inbox subscriptions count Rank": number;
+ "Recent read count in the last month Rank": number;
+ "Mint count Rank": number;
+ "Claimed feeds count Rank": number;
+ "Claimed feeds subscriptions count Rank": number;
+ "Lists with more than 1 feed count Rank": number;
+ "Created lists subscriptions count Rank": number;
+ "Created lists income amount Rank": number;
+ "GitHub Community Contributions Rank": number;
+ } | null;
+ verify: string | null;
}, {
- userId: string;
- tx: string | null;
- activity: "public_beta";
- amount: string;
- rank: string | null;
- detail: {
- "Invitations count": number;
- "Purchase lists cost": number;
- "Total tip amount": number;
- "Feeds subscriptions count": number;
- "Lists subscriptions count": number;
- "Inbox subscriptions count": number;
- "Recent read count in the last month": number;
- "Mint count": number;
- "Claimed feeds count": number;
- "Claimed feeds subscriptions count": number;
- "Lists with more than 1 feed count": number;
- "Created lists subscriptions count": number;
- "Created lists income amount": number;
- "GitHub Community Contributions": number;
- "Invitations count Rank": number;
- "Purchase lists cost Rank": number;
- "Total tip amount Rank": number;
- "Feeds subscriptions count Rank": number;
- "Lists subscriptions count Rank": number;
- "Inbox subscriptions count Rank": number;
- "Recent read count in the last month Rank": number;
- "Mint count Rank": number;
- "Claimed feeds count Rank": number;
- "Claimed feeds subscriptions count Rank": number;
- "Lists with more than 1 feed count Rank": number;
- "Created lists subscriptions count Rank": number;
- "Created lists income amount Rank": number;
- "GitHub Community Contributions Rank": number;
- } | null;
- verify: string | null;
+ userId: string;
+ tx: string | null;
+ activity: "public_beta";
+ amount: string;
+ rank: string | null;
+ detail: {
+ "Invitations count": number;
+ "Purchase lists cost": number;
+ "Total tip amount": number;
+ "Feeds subscriptions count": number;
+ "Lists subscriptions count": number;
+ "Inbox subscriptions count": number;
+ "Recent read count in the last month": number;
+ "Mint count": number;
+ "Claimed feeds count": number;
+ "Claimed feeds subscriptions count": number;
+ "Lists with more than 1 feed count": number;
+ "Created lists subscriptions count": number;
+ "Created lists income amount": number;
+ "GitHub Community Contributions": number;
+ "Invitations count Rank": number;
+ "Purchase lists cost Rank": number;
+ "Total tip amount Rank": number;
+ "Feeds subscriptions count Rank": number;
+ "Lists subscriptions count Rank": number;
+ "Inbox subscriptions count Rank": number;
+ "Recent read count in the last month Rank": number;
+ "Mint count Rank": number;
+ "Claimed feeds count Rank": number;
+ "Claimed feeds subscriptions count Rank": number;
+ "Lists with more than 1 feed count Rank": number;
+ "Created lists subscriptions count Rank": number;
+ "Created lists income amount Rank": number;
+ "GitHub Community Contributions Rank": number;
+ } | null;
+ verify: string | null;
}>;
-
-declare const captcha: drizzle_orm_pg_core.PgTableWithColumns<{
- name: "captcha";
- schema: undefined;
- columns: {
- userId: drizzle_orm_pg_core.PgColumn<{
- name: "user_id";
- tableName: "captcha";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: true;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- failedCount: drizzle_orm_pg_core.PgColumn<{
- name: "failed_count";
- tableName: "captcha";
- dataType: "number";
- columnType: "PgInteger";
- data: number;
- driverParam: string | number;
- notNull: true;
- hasDefault: true;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: undefined;
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- passedCount: drizzle_orm_pg_core.PgColumn<{
- name: "passed_count";
- tableName: "captcha";
- dataType: "number";
- columnType: "PgInteger";
- data: number;
- driverParam: string | number;
- notNull: true;
- hasDefault: true;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: undefined;
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- };
- dialect: "pg";
+//#endregion
+//#region src/schema/captcha.d.ts
+declare const captcha: drizzle_orm_pg_core1159.PgTableWithColumns<{
+ name: "captcha";
+ schema: undefined;
+ columns: {
+ userId: drizzle_orm_pg_core1159.PgColumn<{
+ name: "user_id";
+ tableName: "captcha";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: true;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ failedCount: drizzle_orm_pg_core1159.PgColumn<{
+ name: "failed_count";
+ tableName: "captcha";
+ dataType: "number";
+ columnType: "PgInteger";
+ data: number;
+ driverParam: string | number;
+ notNull: true;
+ hasDefault: true;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ passedCount: drizzle_orm_pg_core1159.PgColumn<{
+ name: "passed_count";
+ tableName: "captcha";
+ dataType: "number";
+ columnType: "PgInteger";
+ data: number;
+ driverParam: string | number;
+ notNull: true;
+ hasDefault: true;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ };
+ dialect: "pg";
}>;
-
-declare const collections: drizzle_orm_pg_core.PgTableWithColumns<{
- name: "collections";
- schema: undefined;
- columns: {
- userId: drizzle_orm_pg_core.PgColumn<{
- name: "user_id";
- tableName: "collections";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: true;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- feedId: drizzle_orm_pg_core.PgColumn<{
- name: "feed_id";
- tableName: "collections";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: true;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- entryId: drizzle_orm_pg_core.PgColumn<{
- name: "entry_id";
- tableName: "collections";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: true;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- createdAt: drizzle_orm_pg_core.PgColumn<{
- name: "created_at";
- tableName: "collections";
- dataType: "date";
- columnType: "PgTimestamp";
- data: Date;
- driverParam: string;
- notNull: true;
- hasDefault: true;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: undefined;
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- view: drizzle_orm_pg_core.PgColumn<{
- name: "view";
- tableName: "collections";
- dataType: "number";
- columnType: "PgSmallInt";
- data: number;
- driverParam: string | number;
- notNull: true;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: undefined;
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- };
- dialect: "pg";
+//#endregion
+//#region src/schema/collections.d.ts
+declare const collections: drizzle_orm_pg_core1159.PgTableWithColumns<{
+ name: "collections";
+ schema: undefined;
+ columns: {
+ userId: drizzle_orm_pg_core1159.PgColumn<{
+ name: "user_id";
+ tableName: "collections";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: true;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ feedId: drizzle_orm_pg_core1159.PgColumn<{
+ name: "feed_id";
+ tableName: "collections";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: true;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ entryId: drizzle_orm_pg_core1159.PgColumn<{
+ name: "entry_id";
+ tableName: "collections";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: true;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ createdAt: drizzle_orm_pg_core1159.PgColumn<{
+ name: "created_at";
+ tableName: "collections";
+ dataType: "date";
+ columnType: "PgTimestamp";
+ data: Date;
+ driverParam: string;
+ notNull: true;
+ hasDefault: true;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ view: drizzle_orm_pg_core1159.PgColumn<{
+ name: "view";
+ tableName: "collections";
+ dataType: "number";
+ columnType: "PgSmallInt";
+ data: number;
+ driverParam: string | number;
+ notNull: true;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ };
+ dialect: "pg";
}>;
-declare const collectionsOpenAPISchema: zod.ZodObject<{
- userId: zod.ZodString;
- feedId: zod.ZodString;
- entryId: zod.ZodString;
- createdAt: zod.ZodString;
- view: zod.ZodNumber;
-}, zod.UnknownKeysParam, zod.ZodTypeAny, {
- createdAt: string;
- userId: string;
- view: number;
- feedId: string;
- entryId: string;
+declare const collectionsOpenAPISchema: zod1169.ZodObject<{
+ userId: zod1169.ZodString;
+ feedId: zod1169.ZodString;
+ entryId: zod1169.ZodString;
+ createdAt: zod1169.ZodString;
+ view: zod1169.ZodNumber;
+}, zod1169.UnknownKeysParam, zod1169.ZodTypeAny, {
+ createdAt: string;
+ userId: string;
+ view: number;
+ feedId: string;
+ entryId: string;
}, {
- createdAt: string;
- userId: string;
- view: number;
- feedId: string;
- entryId: string;
+ createdAt: string;
+ userId: string;
+ view: number;
+ feedId: string;
+ entryId: string;
}>;
-declare const collectionsRelations: drizzle_orm.Relations<"collections", {
- users: drizzle_orm.One<"user", true>;
- entries: drizzle_orm.One<"entries", true>;
- feeds: drizzle_orm.One<"feeds", true>;
+declare const collectionsRelations: drizzle_orm1055.Relations<"collections", {
+ users: drizzle_orm1055.One<"user", true>;
+ entries: drizzle_orm1055.One<"entries", true>;
+ feeds: drizzle_orm1055.One<"feeds", true>;
}>;
-
+//#endregion
+//#region src/schema/entries.d.ts
type MediaModel = {
- url: string;
- type: "photo" | "video";
- preview_image_url?: string;
- width?: number;
- height?: number;
- blurhash?: string;
+ url: string;
+ type: "photo" | "video";
+ preview_image_url?: string;
+ width?: number;
+ height?: number;
+ blurhash?: string;
};
type AttachmentsModel = {
- url: string;
- duration_in_seconds?: number | string;
- mime_type?: string;
- size_in_bytes?: number;
- title?: string;
+ url: string;
+ duration_in_seconds?: number | string;
+ mime_type?: string;
+ size_in_bytes?: number;
+ title?: string;
};
type ExtraModel = {
- links?: {
- url: string;
- type: string;
- content_html?: string;
- }[];
+ links?: {
+ url: string;
+ type: string;
+ content_html?: string;
+ }[];
};
declare const CommonEntryFields: {
- id: drizzle_orm.HasRuntimeDefault>>>>;
- title: drizzle_orm_pg_core.PgTextBuilderInitial<"title", [string, ...string[]]>;
- url: drizzle_orm_pg_core.PgTextBuilderInitial<"url", [string, ...string[]]>;
- content: drizzle_orm_pg_core.PgTextBuilderInitial<"content", [string, ...string[]]>;
- description: drizzle_orm_pg_core.PgTextBuilderInitial<"description", [string, ...string[]]>;
- guid: drizzle_orm.NotNull>;
- author: drizzle_orm_pg_core.PgTextBuilderInitial<"author", [string, ...string[]]>;
- authorUrl: drizzle_orm_pg_core.PgTextBuilderInitial<"author_url", [string, ...string[]]>;
- authorAvatar: drizzle_orm_pg_core.PgTextBuilderInitial<"author_avatar", [string, ...string[]]>;
- insertedAt: drizzle_orm.NotNull>;
- publishedAt: drizzle_orm.NotNull>;
- media: drizzle_orm.$Type, MediaModel[]>;
- categories: drizzle_orm_pg_core.PgArrayBuilder<{
+ id: drizzle_orm1055.HasRuntimeDefault>>>>;
+ title: drizzle_orm_pg_core1159.PgTextBuilderInitial<"title", [string, ...string[]]>;
+ url: drizzle_orm_pg_core1159.PgTextBuilderInitial<"url", [string, ...string[]]>;
+ content: drizzle_orm_pg_core1159.PgTextBuilderInitial<"content", [string, ...string[]]>;
+ description: drizzle_orm_pg_core1159.PgTextBuilderInitial<"description", [string, ...string[]]>;
+ guid: drizzle_orm1055.NotNull>;
+ author: drizzle_orm_pg_core1159.PgTextBuilderInitial<"author", [string, ...string[]]>;
+ authorUrl: drizzle_orm_pg_core1159.PgTextBuilderInitial<"author_url", [string, ...string[]]>;
+ authorAvatar: drizzle_orm_pg_core1159.PgTextBuilderInitial<"author_avatar", [string, ...string[]]>;
+ insertedAt: drizzle_orm1055.NotNull>;
+ publishedAt: drizzle_orm1055.NotNull>;
+ media: drizzle_orm1055.$Type, MediaModel[]>;
+ categories: drizzle_orm_pg_core1159.PgArrayBuilder<{
+ name: "categories";
+ dataType: "array";
+ columnType: "PgArray";
+ data: string[];
+ driverParam: string | string[];
+ enumValues: [string, ...string[]];
+ size: undefined;
+ baseBuilder: {
+ name: "categories";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ enumValues: [string, ...string[]];
+ driverParam: string;
+ };
+ }, {
+ name: "categories";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ enumValues: [string, ...string[]];
+ driverParam: string;
+ }>;
+ attachments: drizzle_orm1055.$Type, AttachmentsModel[]>;
+ extra: drizzle_orm1055.$Type, ExtraModel>;
+ language: drizzle_orm_pg_core1159.PgTextBuilderInitial<"language", [string, ...string[]]>;
+};
+declare const entries: drizzle_orm_pg_core1159.PgTableWithColumns<{
+ name: "entries";
+ schema: undefined;
+ columns: {
+ id: drizzle_orm_pg_core1159.PgColumn<{
+ name: "id";
+ tableName: "entries";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: true;
+ hasDefault: true;
+ isPrimaryKey: true;
+ isAutoincrement: false;
+ hasRuntimeDefault: true;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ title: drizzle_orm_pg_core1159.PgColumn<{
+ name: "title";
+ tableName: "entries";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ url: drizzle_orm_pg_core1159.PgColumn<{
+ name: "url";
+ tableName: "entries";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ content: drizzle_orm_pg_core1159.PgColumn<{
+ name: "content";
+ tableName: "entries";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ description: drizzle_orm_pg_core1159.PgColumn<{
+ name: "description";
+ tableName: "entries";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ guid: drizzle_orm_pg_core1159.PgColumn<{
+ name: "guid";
+ tableName: "entries";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: true;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ author: drizzle_orm_pg_core1159.PgColumn<{
+ name: "author";
+ tableName: "entries";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ authorUrl: drizzle_orm_pg_core1159.PgColumn<{
+ name: "author_url";
+ tableName: "entries";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ authorAvatar: drizzle_orm_pg_core1159.PgColumn<{
+ name: "author_avatar";
+ tableName: "entries";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ insertedAt: drizzle_orm_pg_core1159.PgColumn<{
+ name: "inserted_at";
+ tableName: "entries";
+ dataType: "date";
+ columnType: "PgTimestamp";
+ data: Date;
+ driverParam: string;
+ notNull: true;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ publishedAt: drizzle_orm_pg_core1159.PgColumn<{
+ name: "published_at";
+ tableName: "entries";
+ dataType: "date";
+ columnType: "PgTimestamp";
+ data: Date;
+ driverParam: string;
+ notNull: true;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ media: drizzle_orm_pg_core1159.PgColumn<{
+ name: "media";
+ tableName: "entries";
+ dataType: "json";
+ columnType: "PgJsonb";
+ data: MediaModel[];
+ driverParam: unknown;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {
+ $type: MediaModel[];
+ }>;
+ categories: drizzle_orm_pg_core1159.PgColumn<{
+ name: "categories";
+ tableName: "entries";
+ dataType: "array";
+ columnType: "PgArray";
+ data: string[];
+ driverParam: string | string[];
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: drizzle_orm1055.Column<{
name: "categories";
- dataType: "array";
- columnType: "PgArray";
- data: string[];
- driverParam: string | string[];
+ tableName: "entries";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
enumValues: [string, ...string[]];
- size: undefined;
- baseBuilder: {
- name: "categories";
- dataType: "string";
- columnType: "PgText";
- data: string;
- enumValues: [string, ...string[]];
- driverParam: string;
- };
- }, {
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {
+ baseBuilder: drizzle_orm_pg_core1159.PgColumnBuilder<{
name: "categories";
dataType: "string";
columnType: "PgText";
data: string;
enumValues: [string, ...string[]];
driverParam: string;
+ }, {}, {}, drizzle_orm1055.ColumnBuilderExtraConfig>;
+ size: undefined;
}>;
- attachments: drizzle_orm.$Type, AttachmentsModel[]>;
- extra: drizzle_orm.$Type, ExtraModel>;
- language: drizzle_orm_pg_core.PgTextBuilderInitial<"language", [string, ...string[]]>;
-};
-declare const entries: drizzle_orm_pg_core.PgTableWithColumns<{
- name: "entries";
- schema: undefined;
- columns: {
- id: drizzle_orm_pg_core.PgColumn<{
- name: "id";
- tableName: "entries";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: true;
- hasDefault: true;
- isPrimaryKey: true;
- isAutoincrement: false;
- hasRuntimeDefault: true;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- title: drizzle_orm_pg_core.PgColumn<{
- name: "title";
- tableName: "entries";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- url: drizzle_orm_pg_core.PgColumn<{
- name: "url";
- tableName: "entries";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- content: drizzle_orm_pg_core.PgColumn<{
- name: "content";
- tableName: "entries";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- description: drizzle_orm_pg_core.PgColumn<{
- name: "description";
- tableName: "entries";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- guid: drizzle_orm_pg_core.PgColumn<{
- name: "guid";
- tableName: "entries";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: true;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- author: drizzle_orm_pg_core.PgColumn<{
- name: "author";
- tableName: "entries";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- authorUrl: drizzle_orm_pg_core.PgColumn<{
- name: "author_url";
- tableName: "entries";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- authorAvatar: drizzle_orm_pg_core.PgColumn<{
- name: "author_avatar";
- tableName: "entries";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- insertedAt: drizzle_orm_pg_core.PgColumn<{
- name: "inserted_at";
- tableName: "entries";
- dataType: "date";
- columnType: "PgTimestamp";
- data: Date;
- driverParam: string;
- notNull: true;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: undefined;
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- publishedAt: drizzle_orm_pg_core.PgColumn<{
- name: "published_at";
- tableName: "entries";
- dataType: "date";
- columnType: "PgTimestamp";
- data: Date;
- driverParam: string;
- notNull: true;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: undefined;
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- media: drizzle_orm_pg_core.PgColumn<{
- name: "media";
- tableName: "entries";
- dataType: "json";
- columnType: "PgJsonb";
- data: MediaModel[];
- driverParam: unknown;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: undefined;
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {
- $type: MediaModel[];
- }>;
- categories: drizzle_orm_pg_core.PgColumn<{
- name: "categories";
- tableName: "entries";
- dataType: "array";
- columnType: "PgArray";
- data: string[];
- driverParam: string | string[];
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: drizzle_orm.Column<{
- name: "categories";
- tableName: "entries";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- identity: undefined;
- generated: undefined;
- }, {}, {
- baseBuilder: drizzle_orm_pg_core.PgColumnBuilder<{
- name: "categories";
- dataType: "string";
- columnType: "PgText";
- data: string;
- enumValues: [string, ...string[]];
- driverParam: string;
- }, {}, {}, drizzle_orm.ColumnBuilderExtraConfig>;
- size: undefined;
- }>;
- attachments: drizzle_orm_pg_core.PgColumn<{
- name: "attachments";
- tableName: "entries";
- dataType: "json";
- columnType: "PgJsonb";
- data: AttachmentsModel[];
- driverParam: unknown;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: undefined;
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {
- $type: AttachmentsModel[];
- }>;
- extra: drizzle_orm_pg_core.PgColumn<{
- name: "extra";
- tableName: "entries";
- dataType: "json";
- columnType: "PgJsonb";
- data: ExtraModel;
- driverParam: unknown;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: undefined;
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {
- $type: ExtraModel;
- }>;
- language: drizzle_orm_pg_core.PgColumn<{
- name: "language";
- tableName: "entries";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- feedId: drizzle_orm_pg_core.PgColumn<{
- name: "feed_id";
- tableName: "entries";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: true;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- };
- dialect: "pg";
+ attachments: drizzle_orm_pg_core1159.PgColumn<{
+ name: "attachments";
+ tableName: "entries";
+ dataType: "json";
+ columnType: "PgJsonb";
+ data: AttachmentsModel[];
+ driverParam: unknown;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {
+ $type: AttachmentsModel[];
+ }>;
+ extra: drizzle_orm_pg_core1159.PgColumn<{
+ name: "extra";
+ tableName: "entries";
+ dataType: "json";
+ columnType: "PgJsonb";
+ data: ExtraModel;
+ driverParam: unknown;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {
+ $type: ExtraModel;
+ }>;
+ language: drizzle_orm_pg_core1159.PgColumn<{
+ name: "language";
+ tableName: "entries";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ feedId: drizzle_orm_pg_core1159.PgColumn<{
+ name: "feed_id";
+ tableName: "entries";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: true;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ };
+ dialect: "pg";
}>;
declare const attachmentsZodSchema: z.ZodNullable>;
+ mime_type: z.ZodOptional;
+ size_in_bytes: z.ZodOptional;
+ title: z.ZodOptional;
+}, "strip", z.ZodTypeAny, {
+ url: string;
+ title?: string | undefined;
+ duration_in_seconds?: string | number | undefined;
+ mime_type?: string | undefined;
+ size_in_bytes?: number | undefined;
+}, {
+ url: string;
+ title?: string | undefined;
+ duration_in_seconds?: string | number | undefined;
+ mime_type?: string | undefined;
+ size_in_bytes?: number | undefined;
+}>, "many">>>;
+declare const mediaZodSchema: z.ZodNullable;
+ width: z.ZodOptional;
+ height: z.ZodOptional;
+ preview_image_url: z.ZodOptional;
+ blurhash: z.ZodOptional;
+}, "strip", z.ZodTypeAny, {
+ type: "photo" | "video";
+ url: string;
+ width?: number | undefined;
+ height?: number | undefined;
+ preview_image_url?: string | undefined;
+ blurhash?: string | undefined;
+}, {
+ type: "photo" | "video";
+ url: string;
+ width?: number | undefined;
+ height?: number | undefined;
+ preview_image_url?: string | undefined;
+ blurhash?: string | undefined;
+}>, "many">>>;
+declare const extraZodSchema: z.ZodNullable;
+ }, "strip", z.ZodTypeAny, {
+ type: string;
+ url: string;
+ content_html?: string | undefined;
+ }, {
+ type: string;
+ url: string;
+ content_html?: string | undefined;
+ }>, "many">>>;
+}, "strip", z.ZodTypeAny, {
+ links?: {
+ type: string;
+ url: string;
+ content_html?: string | undefined;
+ }[] | null | undefined;
+}, {
+ links?: {
+ type: string;
+ url: string;
+ content_html?: string | undefined;
+ }[] | null | undefined;
+}>>>;
+declare const entriesOpenAPISchema: z.ZodObject;
+ url: z.ZodNullable;
+ content: z.ZodNullable;
+ description: z.ZodNullable;
+ guid: z.ZodString;
+ author: z.ZodNullable;
+ authorUrl: z.ZodNullable;
+ authorAvatar: z.ZodNullable;
+ insertedAt: z.ZodString;
+ publishedAt: z.ZodString;
+ media: z.ZodNullable>;
+ categories: z.ZodNullable>;
+ attachments: z.ZodNullable>;
+ extra: z.ZodNullable>;
+ language: z.ZodNullable;
+ feedId: z.ZodString;
+}, "media" | "attachments" | "extra"> & {
+ attachments: z.ZodNullable>;
mime_type: z.ZodOptional;
size_in_bytes: z.ZodOptional;
title: z.ZodOptional;
-}, "strip", z.ZodTypeAny, {
+ }, "strip", z.ZodTypeAny, {
url: string;
title?: string | undefined;
duration_in_seconds?: string | number | undefined;
mime_type?: string | undefined;
size_in_bytes?: number | undefined;
-}, {
+ }, {
url: string;
title?: string | undefined;
duration_in_seconds?: string | number | undefined;
mime_type?: string | undefined;
size_in_bytes?: number | undefined;
-}>, "many">>>;
-declare const mediaZodSchema: z.ZodNullable, "many">>>;
+ media: z.ZodNullable;
width: z.ZodOptional;
height: z.ZodOptional;
preview_image_url: z.ZodOptional;
blurhash: z.ZodOptional;
-}, "strip", z.ZodTypeAny, {
+ }, "strip", z.ZodTypeAny, {
type: "photo" | "video";
url: string;
width?: number | undefined;
height?: number | undefined;
preview_image_url?: string | undefined;
blurhash?: string | undefined;
-}, {
+ }, {
type: "photo" | "video";
url: string;
width?: number | undefined;
height?: number | undefined;
preview_image_url?: string | undefined;
blurhash?: string | undefined;
-}>, "many">>>;
-declare const extraZodSchema: z.ZodNullable, "many">>>;
+ extra: z.ZodNullable;
+ url: z.ZodString;
+ type: z.ZodString;
+ content_html: z.ZodOptional;
}, "strip", z.ZodTypeAny, {
- type: string;
- url: string;
- content_html?: string | undefined;
+ type: string;
+ url: string;
+ content_html?: string | undefined;
}, {
- type: string;
- url: string;
- content_html?: string | undefined;
+ type: string;
+ url: string;
+ content_html?: string | undefined;
}>, "many">>>;
-}, "strip", z.ZodTypeAny, {
+ }, "strip", z.ZodTypeAny, {
links?: {
- type: string;
- url: string;
- content_html?: string | undefined;
+ type: string;
+ url: string;
+ content_html?: string | undefined;
}[] | null | undefined;
-}, {
+ }, {
links?: {
- type: string;
- url: string;
- content_html?: string | undefined;
+ type: string;
+ url: string;
+ content_html?: string | undefined;
}[] | null | undefined;
-}>>>;
-declare const entriesOpenAPISchema: z.ZodObject;
- url: z.ZodNullable;
- content: z.ZodNullable;
- description: z.ZodNullable;
- guid: z.ZodString;
- author: z.ZodNullable;
- authorUrl: z.ZodNullable;
- authorAvatar: z.ZodNullable;
- insertedAt: z.ZodString;
- publishedAt: z.ZodString;
- media: z.ZodNullable>;
- categories: z.ZodNullable>;
- attachments: z.ZodNullable>;
- extra: z.ZodNullable>;
- language: z.ZodNullable;
- feedId: z.ZodString;
-}, "media" | "attachments" | "extra"> & {
- attachments: z.ZodNullable>;
- mime_type: z.ZodOptional;
- size_in_bytes: z.ZodOptional;
- title: z.ZodOptional;
- }, "strip", z.ZodTypeAny, {
- url: string;
- title?: string | undefined;
- duration_in_seconds?: string | number | undefined;
- mime_type?: string | undefined;
- size_in_bytes?: number | undefined;
- }, {
- url: string;
- title?: string | undefined;
- duration_in_seconds?: string | number | undefined;
- mime_type?: string | undefined;
- size_in_bytes?: number | undefined;
- }>, "many">>>;
- media: z.ZodNullable;
- width: z.ZodOptional;
- height: z.ZodOptional;
- preview_image_url: z.ZodOptional;
- blurhash: z.ZodOptional;
- }, "strip", z.ZodTypeAny, {
- type: "photo" | "video";
- url: string;
- width?: number | undefined;
- height?: number | undefined;
- preview_image_url?: string | undefined;
- blurhash?: string | undefined;
- }, {
- type: "photo" | "video";
- url: string;
- width?: number | undefined;
- height?: number | undefined;
- preview_image_url?: string | undefined;
- blurhash?: string | undefined;
- }>, "many">>>;
- extra: z.ZodNullable;
- }, "strip", z.ZodTypeAny, {
- type: string;
- url: string;
- content_html?: string | undefined;
- }, {
- type: string;
- url: string;
- content_html?: string | undefined;
- }>, "many">>>;
- }, "strip", z.ZodTypeAny, {
- links?: {
- type: string;
- url: string;
- content_html?: string | undefined;
- }[] | null | undefined;
- }, {
- links?: {
- type: string;
- url: string;
- content_html?: string | undefined;
- }[] | null | undefined;
- }>>>;
+ }>>>;
}, "strip", z.ZodTypeAny, {
- id: string;
- description: string | null;
- title: string | null;
- content: string | null;
- author: string | null;
- url: string | null;
- language: string | null;
- feedId: string;
- guid: string;
- categories: string[] | null;
- authorUrl: string | null;
- authorAvatar: string | null;
- insertedAt: string;
- publishedAt: string;
- media?: {
- type: "photo" | "video";
- url: string;
- width?: number | undefined;
- height?: number | undefined;
- preview_image_url?: string | undefined;
- blurhash?: string | undefined;
+ id: string;
+ description: string | null;
+ title: string | null;
+ content: string | null;
+ author: string | null;
+ url: string | null;
+ language: string | null;
+ feedId: string;
+ guid: string;
+ categories: string[] | null;
+ authorUrl: string | null;
+ authorAvatar: string | null;
+ insertedAt: string;
+ publishedAt: string;
+ media?: {
+ type: "photo" | "video";
+ url: string;
+ width?: number | undefined;
+ height?: number | undefined;
+ preview_image_url?: string | undefined;
+ blurhash?: string | undefined;
+ }[] | null | undefined;
+ attachments?: {
+ url: string;
+ title?: string | undefined;
+ duration_in_seconds?: string | number | undefined;
+ mime_type?: string | undefined;
+ size_in_bytes?: number | undefined;
+ }[] | null | undefined;
+ extra?: {
+ links?: {
+ type: string;
+ url: string;
+ content_html?: string | undefined;
}[] | null | undefined;
- attachments?: {
- url: string;
- title?: string | undefined;
- duration_in_seconds?: string | number | undefined;
- mime_type?: string | undefined;
- size_in_bytes?: number | undefined;
- }[] | null | undefined;
- extra?: {
- links?: {
- type: string;
- url: string;
- content_html?: string | undefined;
- }[] | null | undefined;
- } | null | undefined;
+ } | null | undefined;
}, {
- id: string;
- description: string | null;
- title: string | null;
- content: string | null;
- author: string | null;
- url: string | null;
- language: string | null;
- feedId: string;
- guid: string;
- categories: string[] | null;
- authorUrl: string | null;
- authorAvatar: string | null;
- insertedAt: string;
- publishedAt: string;
- media?: {
- type: "photo" | "video";
- url: string;
- width?: number | undefined;
- height?: number | undefined;
- preview_image_url?: string | undefined;
- blurhash?: string | undefined;
+ id: string;
+ description: string | null;
+ title: string | null;
+ content: string | null;
+ author: string | null;
+ url: string | null;
+ language: string | null;
+ feedId: string;
+ guid: string;
+ categories: string[] | null;
+ authorUrl: string | null;
+ authorAvatar: string | null;
+ insertedAt: string;
+ publishedAt: string;
+ media?: {
+ type: "photo" | "video";
+ url: string;
+ width?: number | undefined;
+ height?: number | undefined;
+ preview_image_url?: string | undefined;
+ blurhash?: string | undefined;
+ }[] | null | undefined;
+ attachments?: {
+ url: string;
+ title?: string | undefined;
+ duration_in_seconds?: string | number | undefined;
+ mime_type?: string | undefined;
+ size_in_bytes?: number | undefined;
+ }[] | null | undefined;
+ extra?: {
+ links?: {
+ type: string;
+ url: string;
+ content_html?: string | undefined;
}[] | null | undefined;
- attachments?: {
- url: string;
- title?: string | undefined;
- duration_in_seconds?: string | number | undefined;
- mime_type?: string | undefined;
- size_in_bytes?: number | undefined;
- }[] | null | undefined;
- extra?: {
- links?: {
- type: string;
- url: string;
- content_html?: string | undefined;
- }[] | null | undefined;
- } | null | undefined;
+ } | null | undefined;
}>;
-declare const entriesRelations: drizzle_orm.Relations<"entries", {
- feeds: drizzle_orm.One<"feeds", true>;
- collections: drizzle_orm.Many<"collections">;
- feedPowerTokens: drizzle_orm.One<"feedPowerTokens", true>;
+declare const entriesRelations: drizzle_orm1055.Relations<"entries", {
+ feeds: drizzle_orm1055.One<"feeds", true>;
+ collections: drizzle_orm1055.Many<"collections">;
+ feedPowerTokens: drizzle_orm1055.One<"feedPowerTokens", true>;
}>;
type EntriesModel = InferInsertModel & {
- attachments?: AttachmentsModel[] | null;
- media?: MediaModel[] | null;
+ attachments?: AttachmentsModel[] | null;
+ media?: MediaModel[] | null;
};
-declare const urlReads: drizzle_orm_pg_core.PgTableWithColumns<{
- name: "urlReads";
- schema: undefined;
- columns: {
- url: drizzle_orm_pg_core.PgColumn<{
- name: "url";
- tableName: "urlReads";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: true;
- hasDefault: false;
- isPrimaryKey: true;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- userIds: drizzle_orm_pg_core.PgColumn<{
- name: "user_ids";
- tableName: "urlReads";
- dataType: "array";
- columnType: "PgArray";
- data: string[];
- driverParam: string | string[];
- notNull: true;
- hasDefault: true;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: drizzle_orm.Column<{
- name: "user_ids";
- tableName: "urlReads";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- identity: undefined;
- generated: undefined;
- }, {}, {
- baseBuilder: drizzle_orm_pg_core.PgColumnBuilder<{
- name: "user_ids";
- dataType: "string";
- columnType: "PgText";
- data: string;
- enumValues: [string, ...string[]];
- driverParam: string;
- }, {}, {}, drizzle_orm.ColumnBuilderExtraConfig>;
- size: undefined;
- }>;
- count: drizzle_orm_pg_core.PgColumn<{
- name: "count";
- tableName: "urlReads";
- dataType: "number";
- columnType: "PgInteger";
- data: number;
- driverParam: string | number;
- notNull: true;
- hasDefault: true;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: undefined;
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- };
- dialect: "pg";
+declare const urlReads: drizzle_orm_pg_core1159.PgTableWithColumns<{
+ name: "urlReads";
+ schema: undefined;
+ columns: {
+ url: drizzle_orm_pg_core1159.PgColumn<{
+ name: "url";
+ tableName: "urlReads";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: true;
+ hasDefault: false;
+ isPrimaryKey: true;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ userIds: drizzle_orm_pg_core1159.PgColumn<{
+ name: "user_ids";
+ tableName: "urlReads";
+ dataType: "array";
+ columnType: "PgArray";
+ data: string[];
+ driverParam: string | string[];
+ notNull: true;
+ hasDefault: true;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: drizzle_orm1055.Column<{
+ name: "user_ids";
+ tableName: "urlReads";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {
+ baseBuilder: drizzle_orm_pg_core1159.PgColumnBuilder<{
+ name: "user_ids";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ enumValues: [string, ...string[]];
+ driverParam: string;
+ }, {}, {}, drizzle_orm1055.ColumnBuilderExtraConfig>;
+ size: undefined;
+ }>;
+ count: drizzle_orm_pg_core1159.PgColumn<{
+ name: "count";
+ tableName: "urlReads";
+ dataType: "number";
+ columnType: "PgInteger";
+ data: number;
+ driverParam: string | number;
+ notNull: true;
+ hasDefault: true;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ };
+ dialect: "pg";
}>;
type UrlReadsModel = InferInsertModel;
declare const urlReadsOpenAPISchema: z.ZodObject<{
- url: z.ZodString;
- userIds: z.ZodArray;
- count: z.ZodNumber;
+ url: z.ZodString;
+ userIds: z.ZodArray;
+ count: z.ZodNumber;
}, z.UnknownKeysParam, z.ZodTypeAny, {
- url: string;
- userIds: string[];
- count: number;
+ url: string;
+ userIds: string[];
+ count: number;
}, {
- url: string;
- userIds: string[];
- count: number;
+ url: string;
+ userIds: string[];
+ count: number;
}>;
-
-declare const feedAnalytics: drizzle_orm_pg_core.PgTableWithColumns<{
- name: "feed_analytics";
- schema: undefined;
- columns: {
- feedId: drizzle_orm_pg_core.PgColumn<{
- name: "feed_id";
- tableName: "feed_analytics";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: true;
- hasDefault: false;
- isPrimaryKey: true;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- updatesPerWeek: drizzle_orm_pg_core.PgColumn<{
- name: "updates_per_week";
- tableName: "feed_analytics";
- dataType: "number";
- columnType: "PgInteger";
- data: number;
- driverParam: string | number;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: undefined;
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- subscriptionCount: drizzle_orm_pg_core.PgColumn<{
- name: "subscription_count";
- tableName: "feed_analytics";
- dataType: "number";
- columnType: "PgInteger";
- data: number;
- driverParam: string | number;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: undefined;
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- latestEntryPublishedAt: drizzle_orm_pg_core.PgColumn<{
- name: "latest_entry_published_at";
- tableName: "feed_analytics";
- dataType: "date";
- columnType: "PgTimestamp";
- data: Date;
- driverParam: string;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: undefined;
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- view: drizzle_orm_pg_core.PgColumn<{
- name: "view";
- tableName: "feed_analytics";
- dataType: "number";
- columnType: "PgSmallInt";
- data: number;
- driverParam: string | number;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: undefined;
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- };
- dialect: "pg";
+//#endregion
+//#region src/schema/feeds/analytics.d.ts
+declare const feedAnalytics: drizzle_orm_pg_core1159.PgTableWithColumns<{
+ name: "feed_analytics";
+ schema: undefined;
+ columns: {
+ feedId: drizzle_orm_pg_core1159.PgColumn<{
+ name: "feed_id";
+ tableName: "feed_analytics";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: true;
+ hasDefault: false;
+ isPrimaryKey: true;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ updatesPerWeek: drizzle_orm_pg_core1159.PgColumn<{
+ name: "updates_per_week";
+ tableName: "feed_analytics";
+ dataType: "number";
+ columnType: "PgInteger";
+ data: number;
+ driverParam: string | number;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ subscriptionCount: drizzle_orm_pg_core1159.PgColumn<{
+ name: "subscription_count";
+ tableName: "feed_analytics";
+ dataType: "number";
+ columnType: "PgInteger";
+ data: number;
+ driverParam: string | number;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ latestEntryPublishedAt: drizzle_orm_pg_core1159.PgColumn<{
+ name: "latest_entry_published_at";
+ tableName: "feed_analytics";
+ dataType: "date";
+ columnType: "PgTimestamp";
+ data: Date;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ view: drizzle_orm_pg_core1159.PgColumn<{
+ name: "view";
+ tableName: "feed_analytics";
+ dataType: "number";
+ columnType: "PgSmallInt";
+ data: number;
+ driverParam: string | number;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ };
+ dialect: "pg";
}>;
-declare const feedAnalyticsOpenAPISchema: zod.ZodObject<{
- feedId: zod.ZodString;
- updatesPerWeek: zod.ZodNullable;
- subscriptionCount: zod.ZodNullable;
- latestEntryPublishedAt: zod.ZodNullable;
- view: zod.ZodNullable;
-}, zod.UnknownKeysParam, zod.ZodTypeAny, {
- view: number | null;
- feedId: string;
- updatesPerWeek: number | null;
- subscriptionCount: number | null;
- latestEntryPublishedAt: string | null;
+declare const feedAnalyticsOpenAPISchema: zod1169.ZodObject<{
+ feedId: zod1169.ZodString;
+ updatesPerWeek: zod1169.ZodNullable;
+ subscriptionCount: zod1169.ZodNullable;
+ latestEntryPublishedAt: zod1169.ZodNullable;
+ view: zod1169.ZodNullable;
+}, zod1169.UnknownKeysParam, zod1169.ZodTypeAny, {
+ view: number | null;
+ feedId: string;
+ updatesPerWeek: number | null;
+ subscriptionCount: number | null;
+ latestEntryPublishedAt: string | null;
}, {
- view: number | null;
- feedId: string;
- updatesPerWeek: number | null;
- subscriptionCount: number | null;
- latestEntryPublishedAt: string | null;
+ view: number | null;
+ feedId: string;
+ updatesPerWeek: number | null;
+ subscriptionCount: number | null;
+ latestEntryPublishedAt: string | null;
}>;
-declare const feedAnalyticsRelations: drizzle_orm.Relations<"feed_analytics", {
- feed: drizzle_orm.One<"feeds", true>;
+declare const feedAnalyticsRelations: drizzle_orm1055.Relations<"feed_analytics", {
+ feed: drizzle_orm1055.One<"feeds", true>;
}>;
-
-declare const feeds: drizzle_orm_pg_core.PgTableWithColumns<{
- name: "feeds";
- schema: undefined;
- columns: {
- id: drizzle_orm_pg_core.PgColumn<{
- name: "id";
- tableName: "feeds";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: true;
- hasDefault: true;
- isPrimaryKey: true;
- isAutoincrement: false;
- hasRuntimeDefault: true;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- url: drizzle_orm_pg_core.PgColumn<{
- name: "url";
- tableName: "feeds";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: true;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- title: drizzle_orm_pg_core.PgColumn<{
- name: "title";
- tableName: "feeds";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- description: drizzle_orm_pg_core.PgColumn<{
- name: "description";
- tableName: "feeds";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- siteUrl: drizzle_orm_pg_core.PgColumn<{
- name: "site_url";
- tableName: "feeds";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- image: drizzle_orm_pg_core.PgColumn<{
- name: "image";
- tableName: "feeds";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- checkedAt: drizzle_orm_pg_core.PgColumn<{
- name: "checked_at";
- tableName: "feeds";
- dataType: "date";
- columnType: "PgTimestamp";
- data: Date;
- driverParam: string;
- notNull: true;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: undefined;
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- lastModifiedHeader: drizzle_orm_pg_core.PgColumn<{
- name: "last_modified_header";
- tableName: "feeds";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- etagHeader: drizzle_orm_pg_core.PgColumn<{
- name: "etag_header";
- tableName: "feeds";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- ttl: drizzle_orm_pg_core.PgColumn<{
- name: "ttl";
- tableName: "feeds";
- dataType: "number";
- columnType: "PgInteger";
- data: number;
- driverParam: string | number;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: undefined;
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- errorMessage: drizzle_orm_pg_core.PgColumn<{
- name: "error_message";
- tableName: "feeds";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- errorAt: drizzle_orm_pg_core.PgColumn<{
- name: "error_at";
- tableName: "feeds";
- dataType: "date";
- columnType: "PgTimestamp";
- data: Date;
- driverParam: string;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: undefined;
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- ownerUserId: drizzle_orm_pg_core.PgColumn<{
- name: "owner_user_id";
- tableName: "feeds";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- language: drizzle_orm_pg_core.PgColumn<{
- name: "language";
- tableName: "feeds";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- migrateTo: drizzle_orm_pg_core.PgColumn<{
- name: "migrate_to";
- tableName: "feeds";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- rsshubRoute: drizzle_orm_pg_core.PgColumn<{
- name: "rsshub_route";
- tableName: "feeds";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- rsshubNamespace: drizzle_orm_pg_core.PgColumn<{
- name: "rsshub_namespace";
- tableName: "feeds";
- dataType: "string";
- columnType: "PgText";
- data: string;
- driverParam: string;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: [string, ...string[]];
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- nsfw: drizzle_orm_pg_core.PgColumn<{
- name: "nsfw";
- tableName: "feeds";
- dataType: "boolean";
- columnType: "PgBoolean";
- data: boolean;
- driverParam: boolean;
- notNull: false;
- hasDefault: false;
- isPrimaryKey: false;
- isAutoincrement: false;
- hasRuntimeDefault: false;
- enumValues: undefined;
- baseColumn: never;
- identity: undefined;
- generated: undefined;
- }, {}, {}>;
- };
- dialect: "pg";
+//#endregion
+//#region src/schema/feeds/feeds.d.ts
+declare const feeds: drizzle_orm_pg_core1159.PgTableWithColumns<{
+ name: "feeds";
+ schema: undefined;
+ columns: {
+ id: drizzle_orm_pg_core1159.PgColumn<{
+ name: "id";
+ tableName: "feeds";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: true;
+ hasDefault: true;
+ isPrimaryKey: true;
+ isAutoincrement: false;
+ hasRuntimeDefault: true;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ url: drizzle_orm_pg_core1159.PgColumn<{
+ name: "url";
+ tableName: "feeds";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: true;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ title: drizzle_orm_pg_core1159.PgColumn<{
+ name: "title";
+ tableName: "feeds";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ description: drizzle_orm_pg_core1159.PgColumn<{
+ name: "description";
+ tableName: "feeds";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ siteUrl: drizzle_orm_pg_core1159.PgColumn<{
+ name: "site_url";
+ tableName: "feeds";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ image: drizzle_orm_pg_core1159.PgColumn<{
+ name: "image";
+ tableName: "feeds";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ checkedAt: drizzle_orm_pg_core1159.PgColumn<{
+ name: "checked_at";
+ tableName: "feeds";
+ dataType: "date";
+ columnType: "PgTimestamp";
+ data: Date;
+ driverParam: string;
+ notNull: true;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ lastModifiedHeader: drizzle_orm_pg_core1159.PgColumn<{
+ name: "last_modified_header";
+ tableName: "feeds";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ etagHeader: drizzle_orm_pg_core1159.PgColumn<{
+ name: "etag_header";
+ tableName: "feeds";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ ttl: drizzle_orm_pg_core1159.PgColumn<{
+ name: "ttl";
+ tableName: "feeds";
+ dataType: "number";
+ columnType: "PgInteger";
+ data: number;
+ driverParam: string | number;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ errorMessage: drizzle_orm_pg_core1159.PgColumn<{
+ name: "error_message";
+ tableName: "feeds";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ errorAt: drizzle_orm_pg_core1159.PgColumn<{
+ name: "error_at";
+ tableName: "feeds";
+ dataType: "date";
+ columnType: "PgTimestamp";
+ data: Date;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ ownerUserId: drizzle_orm_pg_core1159.PgColumn<{
+ name: "owner_user_id";
+ tableName: "feeds";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ language: drizzle_orm_pg_core1159.PgColumn<{
+ name: "language";
+ tableName: "feeds";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ migrateTo: drizzle_orm_pg_core1159.PgColumn<{
+ name: "migrate_to";
+ tableName: "feeds";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ rsshubRoute: drizzle_orm_pg_core1159.PgColumn<{
+ name: "rsshub_route";
+ tableName: "feeds";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ rsshubNamespace: drizzle_orm_pg_core1159.PgColumn<{
+ name: "rsshub_namespace";
+ tableName: "feeds";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ nsfw: drizzle_orm_pg_core1159.PgColumn<{
+ name: "nsfw";
+ tableName: "feeds";
+ dataType: "boolean";
+ columnType: "PgBoolean";
+ data: boolean;
+ driverParam: boolean;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ };
+ dialect: "pg";
}>;
-declare const feedsOpenAPISchema: zod.ZodObject<{
- id: zod.ZodString;
- url: zod.ZodString;
- title: zod.ZodNullable;
- description: zod.ZodNullable;
- siteUrl: zod.ZodNullable;
- image: zod.ZodNullable;
- checkedAt: zod.ZodString;
- lastModifiedHeader: zod.ZodNullable;
- etagHeader: zod.ZodNullable;
- ttl: zod.ZodNullable;
- errorMessage: zod.ZodNullable;
- errorAt: zod.ZodNullable;
- ownerUserId: zod.ZodNullable;
- language: zod.ZodNullable;
- migrateTo: zod.ZodNullable;
- rsshubRoute: zod.ZodNullable;
- rsshubNamespace: zod.ZodNullable;
- nsfw: zod.ZodNullable;
-}, zod.UnknownKeysParam, zod.ZodTypeAny, {
- id: string;
- image: string | null;
- description: string | null;
- title: string | null;
- url: string;
- siteUrl: string | null;
- checkedAt: string;
- lastModifiedHeader: string | null;
- etagHeader: string | null;
- ttl: number | null;
- errorMessage: string | null;
- errorAt: string | null;
- ownerUserId: string | null;
- language: string | null;
- migrateTo: string | null;
- rsshubRoute: string | null;
- rsshubNamespace: string | null;
- nsfw: boolean | null;
+declare const feedsOpenAPISchema: zod1169.ZodObject<{
+ id: zod1169.ZodString;
+ url: zod1169.ZodString;
+ title: zod1169.ZodNullable;
+ description: zod1169.ZodNullable;
+ siteUrl: zod1169.ZodNullable;
+ image: zod1169.ZodNullable;
+ checkedAt: zod1169.ZodString;
+ lastModifiedHeader: zod1169.ZodNullable