Searching for results
No results found.
@@ -274,7 +470,7 @@ const DocsSearch = () => {
@@ -292,7 +488,7 @@ const DocsSearch = () => {
export default DocsSearch
-export function formatPageUrl(page: PageResult) {
+export function formatPageUrl(page: Page) {
const docsUrl = getDocsUrl()
switch (page.type) {
case PageType.Markdown:
@@ -305,7 +501,7 @@ export function formatPageUrl(page: PageResult) {
}
}
-export function formatSectionUrl(page: PageResult, section: PageSection) {
+export function formatSectionUrl(page: Page, section: PageSection) {
switch (page.type) {
case PageType.Markdown:
case PageType.GithubDiscussion:
@@ -317,7 +513,7 @@ export function formatSectionUrl(page: PageResult, section: PageSection) {
}
}
-export function getPageIcon(page: PageResult) {
+export function getPageIcon(page: Page) {
switch (page.type) {
case PageType.Markdown:
case PageType.Reference:
@@ -329,7 +525,7 @@ export function getPageIcon(page: PageResult) {
}
}
-export function getPageSectionIcon(page: PageResult) {
+export function getPageSectionIcon(page: Page) {
switch (page.type) {
case PageType.Markdown:
case PageType.Reference:
diff --git a/supabase/functions/common/database-types.ts b/supabase/functions/common/database-types.ts
index 7024bb35adb..80190d89f83 100644
--- a/supabase/functions/common/database-types.ts
+++ b/supabase/functions/common/database-types.ts
@@ -3,7 +3,7 @@ export type Json =
| number
| boolean
| null
- | { [key: string]: Json }
+ | { [key: string]: Json | undefined }
| Json[]
export interface Database {
@@ -38,35 +38,50 @@ export interface Database {
Row: {
checksum: string | null
id: number
+ last_refresh: string | null
meta: Json | null
parent_page_id: number | null
path: string
source: string | null
type: string | null
+ version: string | null
}
Insert: {
checksum?: string | null
id?: number
+ last_refresh?: string | null
meta?: Json | null
parent_page_id?: number | null
path: string
source?: string | null
type?: string | null
+ version?: string | null
}
Update: {
checksum?: string | null
id?: number
+ last_refresh?: string | null
meta?: Json | null
parent_page_id?: number | null
path?: string
source?: string | null
type?: string | null
+ version?: string | null
}
+ Relationships: [
+ {
+ foreignKeyName: "page_parent_page_id_fkey"
+ columns: ["parent_page_id"]
+ referencedRelation: "page"
+ referencedColumns: ["id"]
+ }
+ ]
}
page_section: {
Row: {
content: string | null
- embedding: unknown | null
+ embedding: string | null
+ fts_tokens: unknown | null
heading: string | null
id: number
page_id: number
@@ -75,7 +90,8 @@ export interface Database {
}
Insert: {
content?: string | null
- embedding?: unknown | null
+ embedding?: string | null
+ fts_tokens?: unknown | null
heading?: string | null
id?: number
page_id: number
@@ -84,19 +100,59 @@ export interface Database {
}
Update: {
content?: string | null
- embedding?: unknown | null
+ embedding?: string | null
+ fts_tokens?: unknown | null
heading?: string | null
id?: number
page_id?: number
slug?: string | null
token_count?: number | null
}
+ Relationships: [
+ {
+ foreignKeyName: "page_section_page_id_fkey"
+ columns: ["page_id"]
+ referencedRelation: "page"
+ referencedColumns: ["id"]
+ }
+ ]
}
}
Views: {
[_ in never]: never
}
Functions: {
+ docs_search_embeddings: {
+ Args: {
+ embedding: string
+ match_threshold: number
+ }
+ Returns: {
+ id: number
+ path: string
+ type: string
+ title: string
+ subtitle: string
+ description: string
+ headings: string[]
+ slugs: string[]
+ }[]
+ }
+ docs_search_fts: {
+ Args: {
+ query: string
+ }
+ Returns: {
+ id: number
+ path: string
+ type: string
+ title: string
+ subtitle: string
+ description: string
+ headings: string[]
+ slugs: string[]
+ }[]
+ }
get_page_parents: {
Args: {
page_id: number
@@ -108,6 +164,12 @@ export interface Database {
meta: Json
}[]
}
+ hnswhandler: {
+ Args: {
+ "": unknown
+ }
+ Returns: unknown
+ }
ivfflathandler: {
Args: {
"": unknown
@@ -116,7 +178,7 @@ export interface Database {
}
match_page_sections: {
Args: {
- embedding: unknown
+ embedding: string
match_threshold: number
match_count: number
min_content_length: number
@@ -132,13 +194,14 @@ export interface Database {
}
match_page_sections_v2: {
Args: {
- embedding: unknown
+ embedding: string
match_threshold: number
min_content_length: number
}
Returns: {
content: string | null
- embedding: unknown | null
+ embedding: string | null
+ fts_tokens: unknown | null
heading: string | null
id: number
page_id: number
@@ -150,29 +213,29 @@ export interface Database {
Args: {
"": number[]
}
- Returns: unknown
+ Returns: string
}
vector_dims: {
Args: {
- "": unknown
+ "": string
}
Returns: number
}
vector_norm: {
Args: {
- "": unknown
+ "": string
}
Returns: number
}
vector_out: {
Args: {
- "": unknown
+ "": string
}
Returns: unknown
}
vector_send: {
Args: {
- "": unknown
+ "": string
}
Returns: string
}
@@ -226,6 +289,14 @@ export interface Database {
public?: boolean | null
updated_at?: string | null
}
+ Relationships: [
+ {
+ foreignKeyName: "buckets_owner_fkey"
+ columns: ["owner"]
+ referencedRelation: "users"
+ referencedColumns: ["id"]
+ }
+ ]
}
migrations: {
Row: {
@@ -246,6 +317,7 @@ export interface Database {
id?: number
name?: string
}
+ Relationships: []
}
objects: {
Row: {
@@ -258,6 +330,7 @@ export interface Database {
owner: string | null
path_tokens: string[] | null
updated_at: string | null
+ version: string | null
}
Insert: {
bucket_id?: string | null
@@ -269,6 +342,7 @@ export interface Database {
owner?: string | null
path_tokens?: string[] | null
updated_at?: string | null
+ version?: string | null
}
Update: {
bucket_id?: string | null
@@ -280,13 +354,31 @@ export interface Database {
owner?: string | null
path_tokens?: string[] | null
updated_at?: string | null
+ version?: string | null
}
+ Relationships: [
+ {
+ foreignKeyName: "objects_bucketId_fkey"
+ columns: ["bucket_id"]
+ referencedRelation: "buckets"
+ referencedColumns: ["id"]
+ }
+ ]
}
}
Views: {
[_ in never]: never
}
Functions: {
+ can_insert_object: {
+ Args: {
+ bucketid: string
+ name: string
+ owner: string
+ metadata: Json
+ }
+ Returns: undefined
+ }
extension: {
Args: {
name: string
@@ -303,7 +395,7 @@ export interface Database {
Args: {
name: string
}
- Returns: string[]
+ Returns: unknown
}
get_size_by_bucket: {
Args: Record