database-types.ts1176 lines · main
| 1 | export type Json = string | number | boolean | null | { [key: string]: Json | undefined } | Json[] |
| 2 | |
| 3 | export type Database = { |
| 4 | content: { |
| 5 | Tables: { |
| 6 | error: { |
| 7 | Row: { |
| 8 | code: string |
| 9 | created_at: string | null |
| 10 | deleted_at: string | null |
| 11 | http_status_code: number | null |
| 12 | id: string |
| 13 | message: string | null |
| 14 | metadata: Json | null |
| 15 | service: string |
| 16 | updated_at: string | null |
| 17 | } |
| 18 | Insert: { |
| 19 | code: string |
| 20 | created_at?: string | null |
| 21 | deleted_at?: string | null |
| 22 | http_status_code?: number | null |
| 23 | id?: string |
| 24 | message?: string | null |
| 25 | metadata?: Json | null |
| 26 | service: string |
| 27 | updated_at?: string | null |
| 28 | } |
| 29 | Update: { |
| 30 | code?: string |
| 31 | created_at?: string | null |
| 32 | deleted_at?: string | null |
| 33 | http_status_code?: number | null |
| 34 | id?: string |
| 35 | message?: string | null |
| 36 | metadata?: Json | null |
| 37 | service?: string |
| 38 | updated_at?: string | null |
| 39 | } |
| 40 | Relationships: [ |
| 41 | { |
| 42 | foreignKeyName: 'error_service_fkey' |
| 43 | columns: ['service'] |
| 44 | isOneToOne: false |
| 45 | referencedRelation: 'service' |
| 46 | referencedColumns: ['id'] |
| 47 | }, |
| 48 | ] |
| 49 | } |
| 50 | service: { |
| 51 | Row: { |
| 52 | created_at: string | null |
| 53 | deleted_at: string | null |
| 54 | id: string |
| 55 | name: string |
| 56 | updated_at: string | null |
| 57 | } |
| 58 | Insert: { |
| 59 | created_at?: string | null |
| 60 | deleted_at?: string | null |
| 61 | id?: string |
| 62 | name: string |
| 63 | updated_at?: string | null |
| 64 | } |
| 65 | Update: { |
| 66 | created_at?: string | null |
| 67 | deleted_at?: string | null |
| 68 | id?: string |
| 69 | name?: string |
| 70 | updated_at?: string | null |
| 71 | } |
| 72 | Relationships: [] |
| 73 | } |
| 74 | } |
| 75 | Views: { |
| 76 | [_ in never]: never |
| 77 | } |
| 78 | Functions: { |
| 79 | delete_error_codes_except: { |
| 80 | Args: { |
| 81 | skip_codes: Json |
| 82 | } |
| 83 | Returns: number |
| 84 | } |
| 85 | update_error_code: { |
| 86 | Args: { |
| 87 | code: string |
| 88 | service: string |
| 89 | http_status_code?: number |
| 90 | message?: string |
| 91 | metadata?: Json |
| 92 | } |
| 93 | Returns: boolean |
| 94 | } |
| 95 | } |
| 96 | Enums: { |
| 97 | [_ in never]: never |
| 98 | } |
| 99 | CompositeTypes: { |
| 100 | [_ in never]: never |
| 101 | } |
| 102 | } |
| 103 | graphql_public: { |
| 104 | Tables: { |
| 105 | [_ in never]: never |
| 106 | } |
| 107 | Views: { |
| 108 | [_ in never]: never |
| 109 | } |
| 110 | Functions: { |
| 111 | graphql: { |
| 112 | Args: { |
| 113 | operationName?: string |
| 114 | query?: string |
| 115 | variables?: Json |
| 116 | extensions?: Json |
| 117 | } |
| 118 | Returns: Json |
| 119 | } |
| 120 | } |
| 121 | Enums: { |
| 122 | [_ in never]: never |
| 123 | } |
| 124 | CompositeTypes: { |
| 125 | [_ in never]: never |
| 126 | } |
| 127 | } |
| 128 | public: { |
| 129 | Tables: { |
| 130 | feedback: { |
| 131 | Row: { |
| 132 | date_created: string |
| 133 | id: number |
| 134 | metadata: Json | null |
| 135 | page: string |
| 136 | vote: Database['public']['Enums']['feedback_vote'] |
| 137 | } |
| 138 | Insert: { |
| 139 | date_created?: string |
| 140 | id?: never |
| 141 | metadata?: Json | null |
| 142 | page: string |
| 143 | vote: Database['public']['Enums']['feedback_vote'] |
| 144 | } |
| 145 | Update: { |
| 146 | date_created?: string |
| 147 | id?: never |
| 148 | metadata?: Json | null |
| 149 | page?: string |
| 150 | vote?: Database['public']['Enums']['feedback_vote'] |
| 151 | } |
| 152 | Relationships: [] |
| 153 | } |
| 154 | last_changed: { |
| 155 | Row: { |
| 156 | checksum: string |
| 157 | heading: string |
| 158 | id: number |
| 159 | last_checked: string |
| 160 | last_updated: string |
| 161 | parent_page: string |
| 162 | } |
| 163 | Insert: { |
| 164 | checksum: string |
| 165 | heading: string |
| 166 | id?: never |
| 167 | last_checked?: string |
| 168 | last_updated?: string |
| 169 | parent_page: string |
| 170 | } |
| 171 | Update: { |
| 172 | checksum?: string |
| 173 | heading?: string |
| 174 | id?: never |
| 175 | last_checked?: string |
| 176 | last_updated?: string |
| 177 | parent_page?: string |
| 178 | } |
| 179 | Relationships: [] |
| 180 | } |
| 181 | launch_weeks: { |
| 182 | Row: { |
| 183 | created_at: string |
| 184 | end_date: string | null |
| 185 | id: string |
| 186 | start_date: string | null |
| 187 | } |
| 188 | Insert: { |
| 189 | created_at?: string |
| 190 | end_date?: string | null |
| 191 | id: string |
| 192 | start_date?: string | null |
| 193 | } |
| 194 | Update: { |
| 195 | created_at?: string |
| 196 | end_date?: string | null |
| 197 | id?: string |
| 198 | start_date?: string | null |
| 199 | } |
| 200 | Relationships: [] |
| 201 | } |
| 202 | meetups: { |
| 203 | Row: { |
| 204 | city: string | null |
| 205 | country: string | null |
| 206 | created_at: string |
| 207 | display_info: string | null |
| 208 | id: string |
| 209 | is_live: boolean |
| 210 | is_published: boolean |
| 211 | launch_week: string |
| 212 | link: string | null |
| 213 | start_at: string | null |
| 214 | timezone: string | null |
| 215 | title: string | null |
| 216 | } |
| 217 | Insert: { |
| 218 | city?: string | null |
| 219 | country?: string | null |
| 220 | created_at?: string |
| 221 | display_info?: string | null |
| 222 | id?: string |
| 223 | is_live?: boolean |
| 224 | is_published?: boolean |
| 225 | launch_week: string |
| 226 | link?: string | null |
| 227 | start_at?: string | null |
| 228 | timezone?: string | null |
| 229 | title?: string | null |
| 230 | } |
| 231 | Update: { |
| 232 | city?: string | null |
| 233 | country?: string | null |
| 234 | created_at?: string |
| 235 | display_info?: string | null |
| 236 | id?: string |
| 237 | is_live?: boolean |
| 238 | is_published?: boolean |
| 239 | launch_week?: string |
| 240 | link?: string | null |
| 241 | start_at?: string | null |
| 242 | timezone?: string | null |
| 243 | title?: string | null |
| 244 | } |
| 245 | Relationships: [ |
| 246 | { |
| 247 | foreignKeyName: 'meetups_launch_week_fkey' |
| 248 | columns: ['launch_week'] |
| 249 | isOneToOne: false |
| 250 | referencedRelation: 'launch_weeks' |
| 251 | referencedColumns: ['id'] |
| 252 | }, |
| 253 | ] |
| 254 | } |
| 255 | page: { |
| 256 | Row: { |
| 257 | checksum: string | null |
| 258 | content: string | null |
| 259 | fts_tokens: unknown | null |
| 260 | id: number |
| 261 | last_refresh: string | null |
| 262 | meta: Json | null |
| 263 | path: string |
| 264 | source: string | null |
| 265 | title_tokens: unknown | null |
| 266 | type: string | null |
| 267 | version: string | null |
| 268 | } |
| 269 | Insert: { |
| 270 | checksum?: string | null |
| 271 | content?: string | null |
| 272 | fts_tokens?: unknown | null |
| 273 | id?: number |
| 274 | last_refresh?: string | null |
| 275 | meta?: Json | null |
| 276 | path: string |
| 277 | source?: string | null |
| 278 | title_tokens?: unknown | null |
| 279 | type?: string | null |
| 280 | version?: string | null |
| 281 | } |
| 282 | Update: { |
| 283 | checksum?: string | null |
| 284 | content?: string | null |
| 285 | fts_tokens?: unknown | null |
| 286 | id?: number |
| 287 | last_refresh?: string | null |
| 288 | meta?: Json | null |
| 289 | path?: string |
| 290 | source?: string | null |
| 291 | title_tokens?: unknown | null |
| 292 | type?: string | null |
| 293 | version?: string | null |
| 294 | } |
| 295 | Relationships: [] |
| 296 | } |
| 297 | page_nimbus: { |
| 298 | Row: { |
| 299 | checksum: string | null |
| 300 | content: string | null |
| 301 | fts_tokens: unknown | null |
| 302 | id: number |
| 303 | last_refresh: string | null |
| 304 | meta: Json | null |
| 305 | path: string |
| 306 | source: string | null |
| 307 | title_tokens: unknown | null |
| 308 | type: string | null |
| 309 | version: string | null |
| 310 | } |
| 311 | Insert: { |
| 312 | checksum?: string | null |
| 313 | content?: string | null |
| 314 | fts_tokens?: unknown | null |
| 315 | id?: never |
| 316 | last_refresh?: string | null |
| 317 | meta?: Json | null |
| 318 | path: string |
| 319 | source?: string | null |
| 320 | title_tokens?: unknown | null |
| 321 | type?: string | null |
| 322 | version?: string | null |
| 323 | } |
| 324 | Update: { |
| 325 | checksum?: string | null |
| 326 | content?: string | null |
| 327 | fts_tokens?: unknown | null |
| 328 | id?: never |
| 329 | last_refresh?: string | null |
| 330 | meta?: Json | null |
| 331 | path?: string |
| 332 | source?: string | null |
| 333 | title_tokens?: unknown | null |
| 334 | type?: string | null |
| 335 | version?: string | null |
| 336 | } |
| 337 | Relationships: [] |
| 338 | } |
| 339 | page_section: { |
| 340 | Row: { |
| 341 | content: string | null |
| 342 | embedding: string | null |
| 343 | heading: string | null |
| 344 | id: number |
| 345 | page_id: number |
| 346 | rag_ignore: boolean | null |
| 347 | slug: string | null |
| 348 | token_count: number | null |
| 349 | } |
| 350 | Insert: { |
| 351 | content?: string | null |
| 352 | embedding?: string | null |
| 353 | heading?: string | null |
| 354 | id?: number |
| 355 | page_id: number |
| 356 | rag_ignore?: boolean | null |
| 357 | slug?: string | null |
| 358 | token_count?: number | null |
| 359 | } |
| 360 | Update: { |
| 361 | content?: string | null |
| 362 | embedding?: string | null |
| 363 | heading?: string | null |
| 364 | id?: number |
| 365 | page_id?: number |
| 366 | rag_ignore?: boolean | null |
| 367 | slug?: string | null |
| 368 | token_count?: number | null |
| 369 | } |
| 370 | Relationships: [ |
| 371 | { |
| 372 | foreignKeyName: 'page_section_page_id_fkey' |
| 373 | columns: ['page_id'] |
| 374 | isOneToOne: false |
| 375 | referencedRelation: 'page' |
| 376 | referencedColumns: ['id'] |
| 377 | }, |
| 378 | ] |
| 379 | } |
| 380 | page_section_nimbus: { |
| 381 | Row: { |
| 382 | content: string | null |
| 383 | embedding: string | null |
| 384 | heading: string | null |
| 385 | id: number |
| 386 | page_id: number |
| 387 | rag_ignore: boolean | null |
| 388 | slug: string | null |
| 389 | token_count: number | null |
| 390 | } |
| 391 | Insert: { |
| 392 | content?: string | null |
| 393 | embedding?: string | null |
| 394 | heading?: string | null |
| 395 | id?: never |
| 396 | page_id: number |
| 397 | rag_ignore?: boolean | null |
| 398 | slug?: string | null |
| 399 | token_count?: number | null |
| 400 | } |
| 401 | Update: { |
| 402 | content?: string | null |
| 403 | embedding?: string | null |
| 404 | heading?: string | null |
| 405 | id?: never |
| 406 | page_id?: number |
| 407 | rag_ignore?: boolean | null |
| 408 | slug?: string | null |
| 409 | token_count?: number | null |
| 410 | } |
| 411 | Relationships: [ |
| 412 | { |
| 413 | foreignKeyName: 'page_section_nimbus_page_id_fkey' |
| 414 | columns: ['page_id'] |
| 415 | isOneToOne: false |
| 416 | referencedRelation: 'page_nimbus' |
| 417 | referencedColumns: ['id'] |
| 418 | }, |
| 419 | ] |
| 420 | } |
| 421 | tickets: { |
| 422 | Row: { |
| 423 | company: string | null |
| 424 | created_at: string |
| 425 | email: string | null |
| 426 | game_won_at: string | null |
| 427 | id: string |
| 428 | launch_week: string |
| 429 | location: string | null |
| 430 | metadata: Json | null |
| 431 | name: string | null |
| 432 | referred_by: string | null |
| 433 | role: string | null |
| 434 | shared_on_linkedin: string | null |
| 435 | shared_on_twitter: string | null |
| 436 | ticket_number: number |
| 437 | user_id: string |
| 438 | username: string | null |
| 439 | } |
| 440 | Insert: { |
| 441 | company?: string | null |
| 442 | created_at?: string |
| 443 | email?: string | null |
| 444 | game_won_at?: string | null |
| 445 | id?: string |
| 446 | launch_week: string |
| 447 | location?: string | null |
| 448 | metadata?: Json | null |
| 449 | name?: string | null |
| 450 | referred_by?: string | null |
| 451 | role?: string | null |
| 452 | shared_on_linkedin?: string | null |
| 453 | shared_on_twitter?: string | null |
| 454 | ticket_number?: number |
| 455 | user_id: string |
| 456 | username?: string | null |
| 457 | } |
| 458 | Update: { |
| 459 | company?: string | null |
| 460 | created_at?: string |
| 461 | email?: string | null |
| 462 | game_won_at?: string | null |
| 463 | id?: string |
| 464 | launch_week?: string |
| 465 | location?: string | null |
| 466 | metadata?: Json | null |
| 467 | name?: string | null |
| 468 | referred_by?: string | null |
| 469 | role?: string | null |
| 470 | shared_on_linkedin?: string | null |
| 471 | shared_on_twitter?: string | null |
| 472 | ticket_number?: number |
| 473 | user_id?: string |
| 474 | username?: string | null |
| 475 | } |
| 476 | Relationships: [ |
| 477 | { |
| 478 | foreignKeyName: 'public_tickets_id_fkey' |
| 479 | columns: ['user_id'] |
| 480 | isOneToOne: false |
| 481 | referencedRelation: 'users' |
| 482 | referencedColumns: ['id'] |
| 483 | }, |
| 484 | { |
| 485 | foreignKeyName: 'tickets_launch_week_fkey' |
| 486 | columns: ['launch_week'] |
| 487 | isOneToOne: false |
| 488 | referencedRelation: 'launch_weeks' |
| 489 | referencedColumns: ['id'] |
| 490 | }, |
| 491 | { |
| 492 | foreignKeyName: 'tickets_user_id_fkey' |
| 493 | columns: ['user_id'] |
| 494 | isOneToOne: false |
| 495 | referencedRelation: 'users' |
| 496 | referencedColumns: ['id'] |
| 497 | }, |
| 498 | ] |
| 499 | } |
| 500 | troubleshooting_entries: { |
| 501 | Row: { |
| 502 | api: Json | null |
| 503 | checksum: string |
| 504 | date_created: string |
| 505 | date_updated: string |
| 506 | errors: Json[] | null |
| 507 | github_id: string |
| 508 | github_url: string |
| 509 | id: string |
| 510 | keywords: string[] | null |
| 511 | title: string |
| 512 | topics: string[] |
| 513 | } |
| 514 | Insert: { |
| 515 | api?: Json | null |
| 516 | checksum: string |
| 517 | date_created?: string |
| 518 | date_updated?: string |
| 519 | errors?: Json[] | null |
| 520 | github_id: string |
| 521 | github_url: string |
| 522 | id?: string |
| 523 | keywords?: string[] | null |
| 524 | title: string |
| 525 | topics: string[] |
| 526 | } |
| 527 | Update: { |
| 528 | api?: Json | null |
| 529 | checksum?: string |
| 530 | date_created?: string |
| 531 | date_updated?: string |
| 532 | errors?: Json[] | null |
| 533 | github_id?: string |
| 534 | github_url?: string |
| 535 | id?: string |
| 536 | keywords?: string[] | null |
| 537 | title?: string |
| 538 | topics?: string[] |
| 539 | } |
| 540 | Relationships: [] |
| 541 | } |
| 542 | validation_history: { |
| 543 | Row: { |
| 544 | created_at: string |
| 545 | id: number |
| 546 | tag: string |
| 547 | } |
| 548 | Insert: { |
| 549 | created_at?: string |
| 550 | id?: never |
| 551 | tag: string |
| 552 | } |
| 553 | Update: { |
| 554 | created_at?: string |
| 555 | id?: never |
| 556 | tag?: string |
| 557 | } |
| 558 | Relationships: [] |
| 559 | } |
| 560 | } |
| 561 | Views: { |
| 562 | tickets_view: { |
| 563 | Row: { |
| 564 | company: string | null |
| 565 | created_at: string | null |
| 566 | id: string | null |
| 567 | launch_week: string | null |
| 568 | location: string | null |
| 569 | metadata: Json | null |
| 570 | name: string | null |
| 571 | platinum: boolean | null |
| 572 | referrals: number | null |
| 573 | role: string | null |
| 574 | secret: boolean | null |
| 575 | shared_on_linkedin: string | null |
| 576 | shared_on_twitter: string | null |
| 577 | ticket_number: number | null |
| 578 | username: string | null |
| 579 | } |
| 580 | Relationships: [ |
| 581 | { |
| 582 | foreignKeyName: 'tickets_launch_week_fkey' |
| 583 | columns: ['launch_week'] |
| 584 | isOneToOne: false |
| 585 | referencedRelation: 'launch_weeks' |
| 586 | referencedColumns: ['id'] |
| 587 | }, |
| 588 | ] |
| 589 | } |
| 590 | } |
| 591 | Functions: { |
| 592 | cleanup_last_changed_pages: { |
| 593 | Args: Record<PropertyKey, never> |
| 594 | Returns: number |
| 595 | } |
| 596 | docs_search_embeddings: { |
| 597 | Args: { |
| 598 | embedding: string |
| 599 | match_threshold: number |
| 600 | } |
| 601 | Returns: { |
| 602 | id: number |
| 603 | path: string |
| 604 | type: string |
| 605 | title: string |
| 606 | subtitle: string |
| 607 | description: string |
| 608 | headings: string[] |
| 609 | slugs: string[] |
| 610 | }[] |
| 611 | } |
| 612 | docs_search_embeddings_nimbus: { |
| 613 | Args: { |
| 614 | embedding: string |
| 615 | match_threshold: number |
| 616 | } |
| 617 | Returns: { |
| 618 | id: number |
| 619 | path: string |
| 620 | type: string |
| 621 | title: string |
| 622 | subtitle: string |
| 623 | description: string |
| 624 | headings: string[] |
| 625 | slugs: string[] |
| 626 | }[] |
| 627 | } |
| 628 | docs_search_fts: { |
| 629 | Args: { |
| 630 | query: string |
| 631 | } |
| 632 | Returns: { |
| 633 | id: number |
| 634 | path: string |
| 635 | type: string |
| 636 | title: string |
| 637 | subtitle: string |
| 638 | description: string |
| 639 | }[] |
| 640 | } |
| 641 | docs_search_fts_nimbus: { |
| 642 | Args: { |
| 643 | query: string |
| 644 | } |
| 645 | Returns: { |
| 646 | id: number |
| 647 | path: string |
| 648 | type: string |
| 649 | title: string |
| 650 | subtitle: string |
| 651 | description: string |
| 652 | }[] |
| 653 | } |
| 654 | get_full_content_url: { |
| 655 | Args: { |
| 656 | type: string |
| 657 | path: string |
| 658 | slug: string |
| 659 | } |
| 660 | Returns: string |
| 661 | } |
| 662 | get_last_revalidation_for_tags: { |
| 663 | Args: { |
| 664 | tags: string[] |
| 665 | } |
| 666 | Returns: { |
| 667 | tag: string |
| 668 | created_at: string |
| 669 | }[] |
| 670 | } |
| 671 | hnswhandler: { |
| 672 | Args: { |
| 673 | '': unknown |
| 674 | } |
| 675 | Returns: unknown |
| 676 | } |
| 677 | ipv6_active_status: { |
| 678 | Args: { |
| 679 | project_ref: string |
| 680 | } |
| 681 | Returns: { |
| 682 | pgbouncer_active: boolean |
| 683 | vercel_active: boolean |
| 684 | }[] |
| 685 | } |
| 686 | ivfflathandler: { |
| 687 | Args: { |
| 688 | '': unknown |
| 689 | } |
| 690 | Returns: unknown |
| 691 | } |
| 692 | json_matches_schema: { |
| 693 | Args: { |
| 694 | schema: Json |
| 695 | instance: Json |
| 696 | } |
| 697 | Returns: boolean |
| 698 | } |
| 699 | jsonb_matches_schema: { |
| 700 | Args: { |
| 701 | schema: Json |
| 702 | instance: Json |
| 703 | } |
| 704 | Returns: boolean |
| 705 | } |
| 706 | jsonschema_is_valid: { |
| 707 | Args: { |
| 708 | schema: Json |
| 709 | } |
| 710 | Returns: boolean |
| 711 | } |
| 712 | jsonschema_validation_errors: { |
| 713 | Args: { |
| 714 | schema: Json |
| 715 | instance: Json |
| 716 | } |
| 717 | Returns: string[] |
| 718 | } |
| 719 | match_embedding: { |
| 720 | Args: { |
| 721 | embedding: string |
| 722 | match_threshold?: number |
| 723 | max_results?: number |
| 724 | } |
| 725 | Returns: { |
| 726 | content: string | null |
| 727 | embedding: string | null |
| 728 | heading: string | null |
| 729 | id: number |
| 730 | page_id: number |
| 731 | rag_ignore: boolean | null |
| 732 | slug: string | null |
| 733 | token_count: number | null |
| 734 | }[] |
| 735 | } |
| 736 | match_embedding_nimbus: { |
| 737 | Args: { |
| 738 | embedding: string |
| 739 | match_threshold?: number |
| 740 | max_results?: number |
| 741 | } |
| 742 | Returns: { |
| 743 | content: string | null |
| 744 | embedding: string | null |
| 745 | heading: string | null |
| 746 | id: number |
| 747 | page_id: number |
| 748 | rag_ignore: boolean | null |
| 749 | slug: string | null |
| 750 | token_count: number | null |
| 751 | }[] |
| 752 | } |
| 753 | match_page_sections_v2: { |
| 754 | Args: { |
| 755 | embedding: string |
| 756 | match_threshold: number |
| 757 | min_content_length: number |
| 758 | } |
| 759 | Returns: { |
| 760 | content: string | null |
| 761 | embedding: string | null |
| 762 | heading: string | null |
| 763 | id: number |
| 764 | page_id: number |
| 765 | rag_ignore: boolean | null |
| 766 | slug: string | null |
| 767 | token_count: number | null |
| 768 | }[] |
| 769 | } |
| 770 | match_page_sections_v2_nimbus: { |
| 771 | Args: { |
| 772 | embedding: string |
| 773 | match_threshold: number |
| 774 | min_content_length: number |
| 775 | } |
| 776 | Returns: { |
| 777 | content: string | null |
| 778 | embedding: string | null |
| 779 | heading: string | null |
| 780 | id: number |
| 781 | page_id: number |
| 782 | rag_ignore: boolean | null |
| 783 | slug: string | null |
| 784 | token_count: number | null |
| 785 | }[] |
| 786 | } |
| 787 | search_content: { |
| 788 | Args: { |
| 789 | embedding: string |
| 790 | include_full_content?: boolean |
| 791 | match_threshold?: number |
| 792 | max_result?: number |
| 793 | } |
| 794 | Returns: { |
| 795 | id: number |
| 796 | page_title: string |
| 797 | type: string |
| 798 | href: string |
| 799 | content: string |
| 800 | metadata: Json |
| 801 | subsections: Json[] |
| 802 | }[] |
| 803 | } |
| 804 | search_content_hybrid: { |
| 805 | Args: { |
| 806 | query_text: string |
| 807 | query_embedding: string |
| 808 | max_result?: number |
| 809 | full_text_weight?: number |
| 810 | semantic_weight?: number |
| 811 | rrf_k?: number |
| 812 | match_threshold?: number |
| 813 | include_full_content?: boolean |
| 814 | } |
| 815 | Returns: { |
| 816 | id: number |
| 817 | page_title: string |
| 818 | type: string |
| 819 | href: string |
| 820 | content: string |
| 821 | metadata: Json |
| 822 | subsections: Json[] |
| 823 | }[] |
| 824 | } |
| 825 | search_content_hybrid_nimbus: { |
| 826 | Args: { |
| 827 | query_text: string |
| 828 | query_embedding: string |
| 829 | max_result?: number |
| 830 | full_text_weight?: number |
| 831 | semantic_weight?: number |
| 832 | rrf_k?: number |
| 833 | match_threshold?: number |
| 834 | include_full_content?: boolean |
| 835 | } |
| 836 | Returns: { |
| 837 | id: number |
| 838 | page_title: string |
| 839 | type: string |
| 840 | href: string |
| 841 | content: string |
| 842 | metadata: Json |
| 843 | subsections: Json[] |
| 844 | }[] |
| 845 | } |
| 846 | search_content_nimbus: { |
| 847 | Args: { |
| 848 | embedding: string |
| 849 | include_full_content?: boolean |
| 850 | match_threshold?: number |
| 851 | max_result?: number |
| 852 | } |
| 853 | Returns: { |
| 854 | id: number |
| 855 | page_title: string |
| 856 | type: string |
| 857 | href: string |
| 858 | content: string |
| 859 | metadata: Json |
| 860 | subsections: Json[] |
| 861 | }[] |
| 862 | } |
| 863 | update_last_changed_checksum: { |
| 864 | Args: { |
| 865 | new_parent_page: string |
| 866 | new_heading: string |
| 867 | new_checksum: string |
| 868 | git_update_time: string |
| 869 | check_time: string |
| 870 | } |
| 871 | Returns: string |
| 872 | } |
| 873 | validate_troubleshooting_errors: { |
| 874 | Args: { |
| 875 | errors: Json[] |
| 876 | } |
| 877 | Returns: boolean |
| 878 | } |
| 879 | vector_avg: { |
| 880 | Args: { |
| 881 | '': number[] |
| 882 | } |
| 883 | Returns: string |
| 884 | } |
| 885 | vector_dims: { |
| 886 | Args: { |
| 887 | '': string |
| 888 | } |
| 889 | Returns: number |
| 890 | } |
| 891 | vector_norm: { |
| 892 | Args: { |
| 893 | '': string |
| 894 | } |
| 895 | Returns: number |
| 896 | } |
| 897 | vector_out: { |
| 898 | Args: { |
| 899 | '': string |
| 900 | } |
| 901 | Returns: unknown |
| 902 | } |
| 903 | vector_send: { |
| 904 | Args: { |
| 905 | '': string |
| 906 | } |
| 907 | Returns: string |
| 908 | } |
| 909 | vector_typmod_in: { |
| 910 | Args: { |
| 911 | '': unknown[] |
| 912 | } |
| 913 | Returns: number |
| 914 | } |
| 915 | } |
| 916 | Enums: { |
| 917 | feedback_vote: 'yes' | 'no' |
| 918 | } |
| 919 | CompositeTypes: { |
| 920 | [_ in never]: never |
| 921 | } |
| 922 | } |
| 923 | storage: { |
| 924 | Tables: { |
| 925 | buckets: { |
| 926 | Row: { |
| 927 | allowed_mime_types: string[] | null |
| 928 | avif_autodetection: boolean | null |
| 929 | created_at: string | null |
| 930 | file_size_limit: number | null |
| 931 | id: string |
| 932 | name: string |
| 933 | owner: string | null |
| 934 | owner_id: string | null |
| 935 | public: boolean | null |
| 936 | updated_at: string | null |
| 937 | } |
| 938 | Insert: { |
| 939 | allowed_mime_types?: string[] | null |
| 940 | avif_autodetection?: boolean | null |
| 941 | created_at?: string | null |
| 942 | file_size_limit?: number | null |
| 943 | id: string |
| 944 | name: string |
| 945 | owner?: string | null |
| 946 | owner_id?: string | null |
| 947 | public?: boolean | null |
| 948 | updated_at?: string | null |
| 949 | } |
| 950 | Update: { |
| 951 | allowed_mime_types?: string[] | null |
| 952 | avif_autodetection?: boolean | null |
| 953 | created_at?: string | null |
| 954 | file_size_limit?: number | null |
| 955 | id?: string |
| 956 | name?: string |
| 957 | owner?: string | null |
| 958 | owner_id?: string | null |
| 959 | public?: boolean | null |
| 960 | updated_at?: string | null |
| 961 | } |
| 962 | Relationships: [] |
| 963 | } |
| 964 | migrations: { |
| 965 | Row: { |
| 966 | executed_at: string | null |
| 967 | hash: string |
| 968 | id: number |
| 969 | name: string |
| 970 | } |
| 971 | Insert: { |
| 972 | executed_at?: string | null |
| 973 | hash: string |
| 974 | id: number |
| 975 | name: string |
| 976 | } |
| 977 | Update: { |
| 978 | executed_at?: string | null |
| 979 | hash?: string |
| 980 | id?: number |
| 981 | name?: string |
| 982 | } |
| 983 | Relationships: [] |
| 984 | } |
| 985 | objects: { |
| 986 | Row: { |
| 987 | bucket_id: string | null |
| 988 | created_at: string | null |
| 989 | id: string |
| 990 | last_accessed_at: string | null |
| 991 | metadata: Json | null |
| 992 | name: string | null |
| 993 | owner: string | null |
| 994 | owner_id: string | null |
| 995 | path_tokens: string[] | null |
| 996 | updated_at: string | null |
| 997 | version: string | null |
| 998 | } |
| 999 | Insert: { |
| 1000 | bucket_id?: string | null |
| 1001 | created_at?: string | null |
| 1002 | id?: string |
| 1003 | last_accessed_at?: string | null |
| 1004 | metadata?: Json | null |
| 1005 | name?: string | null |
| 1006 | owner?: string | null |
| 1007 | owner_id?: string | null |
| 1008 | path_tokens?: string[] | null |
| 1009 | updated_at?: string | null |
| 1010 | version?: string | null |
| 1011 | } |
| 1012 | Update: { |
| 1013 | bucket_id?: string | null |
| 1014 | created_at?: string | null |
| 1015 | id?: string |
| 1016 | last_accessed_at?: string | null |
| 1017 | metadata?: Json | null |
| 1018 | name?: string | null |
| 1019 | owner?: string | null |
| 1020 | owner_id?: string | null |
| 1021 | path_tokens?: string[] | null |
| 1022 | updated_at?: string | null |
| 1023 | version?: string | null |
| 1024 | } |
| 1025 | Relationships: [ |
| 1026 | { |
| 1027 | foreignKeyName: 'objects_bucketId_fkey' |
| 1028 | columns: ['bucket_id'] |
| 1029 | isOneToOne: false |
| 1030 | referencedRelation: 'buckets' |
| 1031 | referencedColumns: ['id'] |
| 1032 | }, |
| 1033 | ] |
| 1034 | } |
| 1035 | } |
| 1036 | Views: { |
| 1037 | [_ in never]: never |
| 1038 | } |
| 1039 | Functions: { |
| 1040 | can_insert_object: { |
| 1041 | Args: { |
| 1042 | bucketid: string |
| 1043 | name: string |
| 1044 | owner: string |
| 1045 | metadata: Json |
| 1046 | } |
| 1047 | Returns: undefined |
| 1048 | } |
| 1049 | extension: { |
| 1050 | Args: { |
| 1051 | name: string |
| 1052 | } |
| 1053 | Returns: string |
| 1054 | } |
| 1055 | filename: { |
| 1056 | Args: { |
| 1057 | name: string |
| 1058 | } |
| 1059 | Returns: string |
| 1060 | } |
| 1061 | foldername: { |
| 1062 | Args: { |
| 1063 | name: string |
| 1064 | } |
| 1065 | Returns: string[] |
| 1066 | } |
| 1067 | get_size_by_bucket: { |
| 1068 | Args: Record<PropertyKey, never> |
| 1069 | Returns: { |
| 1070 | size: number |
| 1071 | bucket_id: string |
| 1072 | }[] |
| 1073 | } |
| 1074 | search: { |
| 1075 | Args: { |
| 1076 | prefix: string |
| 1077 | bucketname: string |
| 1078 | limits?: number |
| 1079 | levels?: number |
| 1080 | offsets?: number |
| 1081 | search?: string |
| 1082 | sortcolumn?: string |
| 1083 | sortorder?: string |
| 1084 | } |
| 1085 | Returns: { |
| 1086 | name: string |
| 1087 | id: string |
| 1088 | updated_at: string |
| 1089 | created_at: string |
| 1090 | last_accessed_at: string |
| 1091 | metadata: Json |
| 1092 | }[] |
| 1093 | } |
| 1094 | } |
| 1095 | Enums: { |
| 1096 | [_ in never]: never |
| 1097 | } |
| 1098 | CompositeTypes: { |
| 1099 | [_ in never]: never |
| 1100 | } |
| 1101 | } |
| 1102 | } |
| 1103 | |
| 1104 | type PublicSchema = Database[Extract<keyof Database, 'public'>] |
| 1105 | |
| 1106 | export type Tables< |
| 1107 | PublicTableNameOrOptions extends |
| 1108 | | keyof (PublicSchema['Tables'] & PublicSchema['Views']) |
| 1109 | | { schema: keyof Database }, |
| 1110 | TableName extends PublicTableNameOrOptions extends { schema: keyof Database } |
| 1111 | ? keyof (Database[PublicTableNameOrOptions['schema']]['Tables'] & |
| 1112 | Database[PublicTableNameOrOptions['schema']]['Views']) |
| 1113 | : never = never, |
| 1114 | > = PublicTableNameOrOptions extends { schema: keyof Database } |
| 1115 | ? (Database[PublicTableNameOrOptions['schema']]['Tables'] & |
| 1116 | Database[PublicTableNameOrOptions['schema']]['Views'])[TableName] extends { |
| 1117 | Row: infer R |
| 1118 | } |
| 1119 | ? R |
| 1120 | : never |
| 1121 | : PublicTableNameOrOptions extends keyof (PublicSchema['Tables'] & PublicSchema['Views']) |
| 1122 | ? (PublicSchema['Tables'] & PublicSchema['Views'])[PublicTableNameOrOptions] extends { |
| 1123 | Row: infer R |
| 1124 | } |
| 1125 | ? R |
| 1126 | : never |
| 1127 | : never |
| 1128 | |
| 1129 | export type TablesInsert< |
| 1130 | PublicTableNameOrOptions extends keyof PublicSchema['Tables'] | { schema: keyof Database }, |
| 1131 | TableName extends PublicTableNameOrOptions extends { schema: keyof Database } |
| 1132 | ? keyof Database[PublicTableNameOrOptions['schema']]['Tables'] |
| 1133 | : never = never, |
| 1134 | > = PublicTableNameOrOptions extends { schema: keyof Database } |
| 1135 | ? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends { |
| 1136 | Insert: infer I |
| 1137 | } |
| 1138 | ? I |
| 1139 | : never |
| 1140 | : PublicTableNameOrOptions extends keyof PublicSchema['Tables'] |
| 1141 | ? PublicSchema['Tables'][PublicTableNameOrOptions] extends { |
| 1142 | Insert: infer I |
| 1143 | } |
| 1144 | ? I |
| 1145 | : never |
| 1146 | : never |
| 1147 | |
| 1148 | export type TablesUpdate< |
| 1149 | PublicTableNameOrOptions extends keyof PublicSchema['Tables'] | { schema: keyof Database }, |
| 1150 | TableName extends PublicTableNameOrOptions extends { schema: keyof Database } |
| 1151 | ? keyof Database[PublicTableNameOrOptions['schema']]['Tables'] |
| 1152 | : never = never, |
| 1153 | > = PublicTableNameOrOptions extends { schema: keyof Database } |
| 1154 | ? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends { |
| 1155 | Update: infer U |
| 1156 | } |
| 1157 | ? U |
| 1158 | : never |
| 1159 | : PublicTableNameOrOptions extends keyof PublicSchema['Tables'] |
| 1160 | ? PublicSchema['Tables'][PublicTableNameOrOptions] extends { |
| 1161 | Update: infer U |
| 1162 | } |
| 1163 | ? U |
| 1164 | : never |
| 1165 | : never |
| 1166 | |
| 1167 | export type Enums< |
| 1168 | PublicEnumNameOrOptions extends keyof PublicSchema['Enums'] | { schema: keyof Database }, |
| 1169 | EnumName extends PublicEnumNameOrOptions extends { schema: keyof Database } |
| 1170 | ? keyof Database[PublicEnumNameOrOptions['schema']]['Enums'] |
| 1171 | : never = never, |
| 1172 | > = PublicEnumNameOrOptions extends { schema: keyof Database } |
| 1173 | ? Database[PublicEnumNameOrOptions['schema']]['Enums'][EnumName] |
| 1174 | : PublicEnumNameOrOptions extends keyof PublicSchema['Enums'] |
| 1175 | ? PublicSchema['Enums'][PublicEnumNameOrOptions] |
| 1176 | : never |