a tool for shared writing and social publishing
at feature/page-blocks 1428 lines 37 kB view raw
1export type Json = 2 | string 3 | number 4 | boolean 5 | null 6 | { [key: string]: Json | undefined } 7 | Json[] 8 9export type Database = { 10 graphql_public: { 11 Tables: { 12 [_ in never]: never 13 } 14 Views: { 15 [_ in never]: never 16 } 17 Functions: { 18 graphql: { 19 Args: { 20 operationName?: string 21 query?: string 22 variables?: Json 23 extensions?: Json 24 } 25 Returns: Json 26 } 27 } 28 Enums: { 29 [_ in never]: never 30 } 31 CompositeTypes: { 32 [_ in never]: never 33 } 34 } 35 public: { 36 Tables: { 37 bsky_follows: { 38 Row: { 39 follows: string 40 identity: string 41 } 42 Insert: { 43 follows: string 44 identity?: string 45 } 46 Update: { 47 follows?: string 48 identity?: string 49 } 50 Relationships: [ 51 { 52 foreignKeyName: "bsky_follows_follows_fkey" 53 columns: ["follows"] 54 isOneToOne: false 55 referencedRelation: "identities" 56 referencedColumns: ["atp_did"] 57 }, 58 { 59 foreignKeyName: "bsky_follows_identity_fkey" 60 columns: ["identity"] 61 isOneToOne: false 62 referencedRelation: "identities" 63 referencedColumns: ["atp_did"] 64 }, 65 ] 66 } 67 bsky_posts: { 68 Row: { 69 cid: string 70 indexed_at: string 71 post_view: Json 72 uri: string 73 } 74 Insert: { 75 cid: string 76 indexed_at?: string 77 post_view: Json 78 uri: string 79 } 80 Update: { 81 cid?: string 82 indexed_at?: string 83 post_view?: Json 84 uri?: string 85 } 86 Relationships: [] 87 } 88 bsky_profiles: { 89 Row: { 90 did: string 91 handle: string | null 92 indexed_at: string 93 record: Json 94 } 95 Insert: { 96 did: string 97 handle?: string | null 98 indexed_at?: string 99 record: Json 100 } 101 Update: { 102 did?: string 103 handle?: string | null 104 indexed_at?: string 105 record?: Json 106 } 107 Relationships: [ 108 { 109 foreignKeyName: "bsky_profiles_did_fkey" 110 columns: ["did"] 111 isOneToOne: true 112 referencedRelation: "identities" 113 referencedColumns: ["atp_did"] 114 }, 115 ] 116 } 117 comments_on_documents: { 118 Row: { 119 document: string | null 120 indexed_at: string 121 profile: string | null 122 record: Json 123 uri: string 124 } 125 Insert: { 126 document?: string | null 127 indexed_at?: string 128 profile?: string | null 129 record: Json 130 uri: string 131 } 132 Update: { 133 document?: string | null 134 indexed_at?: string 135 profile?: string | null 136 record?: Json 137 uri?: string 138 } 139 Relationships: [ 140 { 141 foreignKeyName: "comments_on_documents_document_fkey" 142 columns: ["document"] 143 isOneToOne: false 144 referencedRelation: "documents" 145 referencedColumns: ["uri"] 146 }, 147 { 148 foreignKeyName: "comments_on_documents_profile_fkey" 149 columns: ["profile"] 150 isOneToOne: false 151 referencedRelation: "bsky_profiles" 152 referencedColumns: ["did"] 153 }, 154 ] 155 } 156 custom_domain_routes: { 157 Row: { 158 created_at: string 159 domain: string 160 edit_permission_token: string 161 id: string 162 route: string 163 view_permission_token: string 164 } 165 Insert: { 166 created_at?: string 167 domain: string 168 edit_permission_token: string 169 id?: string 170 route: string 171 view_permission_token: string 172 } 173 Update: { 174 created_at?: string 175 domain?: string 176 edit_permission_token?: string 177 id?: string 178 route?: string 179 view_permission_token?: string 180 } 181 Relationships: [ 182 { 183 foreignKeyName: "custom_domain_routes_domain_fkey" 184 columns: ["domain"] 185 isOneToOne: false 186 referencedRelation: "custom_domains" 187 referencedColumns: ["domain"] 188 }, 189 { 190 foreignKeyName: "custom_domain_routes_edit_permission_token_fkey" 191 columns: ["edit_permission_token"] 192 isOneToOne: false 193 referencedRelation: "permission_tokens" 194 referencedColumns: ["id"] 195 }, 196 { 197 foreignKeyName: "custom_domain_routes_view_permission_token_fkey" 198 columns: ["view_permission_token"] 199 isOneToOne: false 200 referencedRelation: "permission_tokens" 201 referencedColumns: ["id"] 202 }, 203 ] 204 } 205 custom_domains: { 206 Row: { 207 confirmed: boolean 208 created_at: string 209 domain: string 210 identity: string | null 211 identity_id: string | null 212 } 213 Insert: { 214 confirmed: boolean 215 created_at?: string 216 domain: string 217 identity?: string | null 218 identity_id?: string | null 219 } 220 Update: { 221 confirmed?: boolean 222 created_at?: string 223 domain?: string 224 identity?: string | null 225 identity_id?: string | null 226 } 227 Relationships: [ 228 { 229 foreignKeyName: "custom_domains_identity_fkey" 230 columns: ["identity"] 231 isOneToOne: false 232 referencedRelation: "identities" 233 referencedColumns: ["email"] 234 }, 235 { 236 foreignKeyName: "custom_domains_identity_id_fkey" 237 columns: ["identity_id"] 238 isOneToOne: false 239 referencedRelation: "identities" 240 referencedColumns: ["id"] 241 }, 242 ] 243 } 244 document_mentions_in_bsky: { 245 Row: { 246 document: string 247 indexed_at: string 248 link: string 249 uri: string 250 } 251 Insert: { 252 document: string 253 indexed_at?: string 254 link: string 255 uri: string 256 } 257 Update: { 258 document?: string 259 indexed_at?: string 260 link?: string 261 uri?: string 262 } 263 Relationships: [ 264 { 265 foreignKeyName: "document_mentions_in_bsky_document_fkey" 266 columns: ["document"] 267 isOneToOne: false 268 referencedRelation: "documents" 269 referencedColumns: ["uri"] 270 }, 271 { 272 foreignKeyName: "document_mentions_in_bsky_uri_fkey" 273 columns: ["uri"] 274 isOneToOne: false 275 referencedRelation: "bsky_posts" 276 referencedColumns: ["uri"] 277 }, 278 ] 279 } 280 documents: { 281 Row: { 282 data: Json 283 indexed_at: string 284 uri: string 285 } 286 Insert: { 287 data: Json 288 indexed_at?: string 289 uri: string 290 } 291 Update: { 292 data?: Json 293 indexed_at?: string 294 uri?: string 295 } 296 Relationships: [] 297 } 298 documents_in_publications: { 299 Row: { 300 document: string 301 indexed_at: string 302 publication: string 303 } 304 Insert: { 305 document: string 306 indexed_at?: string 307 publication: string 308 } 309 Update: { 310 document?: string 311 indexed_at?: string 312 publication?: string 313 } 314 Relationships: [ 315 { 316 foreignKeyName: "documents_in_publications_document_fkey" 317 columns: ["document"] 318 isOneToOne: false 319 referencedRelation: "documents" 320 referencedColumns: ["uri"] 321 }, 322 { 323 foreignKeyName: "documents_in_publications_publication_fkey" 324 columns: ["publication"] 325 isOneToOne: false 326 referencedRelation: "publications" 327 referencedColumns: ["uri"] 328 }, 329 ] 330 } 331 email_auth_tokens: { 332 Row: { 333 confirmation_code: string 334 confirmed: boolean 335 created_at: string 336 email: string | null 337 id: string 338 identity: string | null 339 } 340 Insert: { 341 confirmation_code: string 342 confirmed?: boolean 343 created_at?: string 344 email?: string | null 345 id?: string 346 identity?: string | null 347 } 348 Update: { 349 confirmation_code?: string 350 confirmed?: boolean 351 created_at?: string 352 email?: string | null 353 id?: string 354 identity?: string | null 355 } 356 Relationships: [ 357 { 358 foreignKeyName: "email_auth_tokens_identity_fkey" 359 columns: ["identity"] 360 isOneToOne: false 361 referencedRelation: "identities" 362 referencedColumns: ["id"] 363 }, 364 ] 365 } 366 email_subscriptions_to_entity: { 367 Row: { 368 confirmation_code: string 369 confirmed: boolean 370 created_at: string 371 email: string 372 entity: string 373 id: string 374 token: string 375 } 376 Insert: { 377 confirmation_code: string 378 confirmed?: boolean 379 created_at?: string 380 email: string 381 entity: string 382 id?: string 383 token: string 384 } 385 Update: { 386 confirmation_code?: string 387 confirmed?: boolean 388 created_at?: string 389 email?: string 390 entity?: string 391 id?: string 392 token?: string 393 } 394 Relationships: [ 395 { 396 foreignKeyName: "email_subscriptions_to_entity_entity_fkey" 397 columns: ["entity"] 398 isOneToOne: false 399 referencedRelation: "entities" 400 referencedColumns: ["id"] 401 }, 402 { 403 foreignKeyName: "email_subscriptions_to_entity_token_fkey" 404 columns: ["token"] 405 isOneToOne: false 406 referencedRelation: "permission_tokens" 407 referencedColumns: ["id"] 408 }, 409 ] 410 } 411 entities: { 412 Row: { 413 created_at: string 414 id: string 415 set: string 416 } 417 Insert: { 418 created_at?: string 419 id: string 420 set: string 421 } 422 Update: { 423 created_at?: string 424 id?: string 425 set?: string 426 } 427 Relationships: [ 428 { 429 foreignKeyName: "entities_set_fkey" 430 columns: ["set"] 431 isOneToOne: false 432 referencedRelation: "entity_sets" 433 referencedColumns: ["id"] 434 }, 435 ] 436 } 437 entity_sets: { 438 Row: { 439 created_at: string 440 id: string 441 } 442 Insert: { 443 created_at?: string 444 id?: string 445 } 446 Update: { 447 created_at?: string 448 id?: string 449 } 450 Relationships: [] 451 } 452 facts: { 453 Row: { 454 attribute: string 455 created_at: string 456 data: Json 457 entity: string 458 id: string 459 updated_at: string | null 460 version: number 461 } 462 Insert: { 463 attribute: string 464 created_at?: string 465 data: Json 466 entity: string 467 id: string 468 updated_at?: string | null 469 version?: number 470 } 471 Update: { 472 attribute?: string 473 created_at?: string 474 data?: Json 475 entity?: string 476 id?: string 477 updated_at?: string | null 478 version?: number 479 } 480 Relationships: [ 481 { 482 foreignKeyName: "facts_entity_fkey" 483 columns: ["entity"] 484 isOneToOne: false 485 referencedRelation: "entities" 486 referencedColumns: ["id"] 487 }, 488 ] 489 } 490 identities: { 491 Row: { 492 atp_did: string | null 493 created_at: string 494 email: string | null 495 home_page: string 496 id: string 497 interface_state: Json | null 498 } 499 Insert: { 500 atp_did?: string | null 501 created_at?: string 502 email?: string | null 503 home_page: string 504 id?: string 505 interface_state?: Json | null 506 } 507 Update: { 508 atp_did?: string | null 509 created_at?: string 510 email?: string | null 511 home_page?: string 512 id?: string 513 interface_state?: Json | null 514 } 515 Relationships: [ 516 { 517 foreignKeyName: "identities_home_page_fkey" 518 columns: ["home_page"] 519 isOneToOne: false 520 referencedRelation: "permission_tokens" 521 referencedColumns: ["id"] 522 }, 523 ] 524 } 525 leaflets_in_publications: { 526 Row: { 527 description: string 528 doc: string | null 529 leaflet: string 530 publication: string 531 title: string 532 } 533 Insert: { 534 description?: string 535 doc?: string | null 536 leaflet: string 537 publication: string 538 title?: string 539 } 540 Update: { 541 description?: string 542 doc?: string | null 543 leaflet?: string 544 publication?: string 545 title?: string 546 } 547 Relationships: [ 548 { 549 foreignKeyName: "leaflets_in_publications_doc_fkey" 550 columns: ["doc"] 551 isOneToOne: false 552 referencedRelation: "documents" 553 referencedColumns: ["uri"] 554 }, 555 { 556 foreignKeyName: "leaflets_in_publications_leaflet_fkey" 557 columns: ["leaflet"] 558 isOneToOne: false 559 referencedRelation: "permission_tokens" 560 referencedColumns: ["id"] 561 }, 562 { 563 foreignKeyName: "leaflets_in_publications_publication_fkey" 564 columns: ["publication"] 565 isOneToOne: false 566 referencedRelation: "publications" 567 referencedColumns: ["uri"] 568 }, 569 ] 570 } 571 oauth_session_store: { 572 Row: { 573 key: string 574 session: Json 575 } 576 Insert: { 577 key: string 578 session: Json 579 } 580 Update: { 581 key?: string 582 session?: Json 583 } 584 Relationships: [] 585 } 586 oauth_state_store: { 587 Row: { 588 key: string 589 state: Json 590 } 591 Insert: { 592 key: string 593 state: Json 594 } 595 Update: { 596 key?: string 597 state?: Json 598 } 599 Relationships: [] 600 } 601 permission_token_on_homepage: { 602 Row: { 603 created_at: string 604 identity: string 605 token: string 606 } 607 Insert: { 608 created_at?: string 609 identity: string 610 token: string 611 } 612 Update: { 613 created_at?: string 614 identity?: string 615 token?: string 616 } 617 Relationships: [ 618 { 619 foreignKeyName: "permission_token_creator_identity_fkey" 620 columns: ["identity"] 621 isOneToOne: false 622 referencedRelation: "identities" 623 referencedColumns: ["id"] 624 }, 625 { 626 foreignKeyName: "permission_token_creator_token_fkey" 627 columns: ["token"] 628 isOneToOne: false 629 referencedRelation: "permission_tokens" 630 referencedColumns: ["id"] 631 }, 632 ] 633 } 634 permission_token_rights: { 635 Row: { 636 change_entity_set: boolean 637 create_token: boolean 638 created_at: string 639 entity_set: string 640 read: boolean 641 token: string 642 write: boolean 643 } 644 Insert: { 645 change_entity_set?: boolean 646 create_token?: boolean 647 created_at?: string 648 entity_set: string 649 read?: boolean 650 token: string 651 write?: boolean 652 } 653 Update: { 654 change_entity_set?: boolean 655 create_token?: boolean 656 created_at?: string 657 entity_set?: string 658 read?: boolean 659 token?: string 660 write?: boolean 661 } 662 Relationships: [ 663 { 664 foreignKeyName: "permission_token_rights_entity_set_fkey" 665 columns: ["entity_set"] 666 isOneToOne: false 667 referencedRelation: "entity_sets" 668 referencedColumns: ["id"] 669 }, 670 { 671 foreignKeyName: "permission_token_rights_token_fkey" 672 columns: ["token"] 673 isOneToOne: false 674 referencedRelation: "permission_tokens" 675 referencedColumns: ["id"] 676 }, 677 ] 678 } 679 permission_tokens: { 680 Row: { 681 blocked_by_admin: boolean | null 682 id: string 683 root_entity: string 684 } 685 Insert: { 686 blocked_by_admin?: boolean | null 687 id?: string 688 root_entity: string 689 } 690 Update: { 691 blocked_by_admin?: boolean | null 692 id?: string 693 root_entity?: string 694 } 695 Relationships: [ 696 { 697 foreignKeyName: "permission_tokens_root_entity_fkey" 698 columns: ["root_entity"] 699 isOneToOne: false 700 referencedRelation: "entities" 701 referencedColumns: ["id"] 702 }, 703 ] 704 } 705 phone_number_auth_tokens: { 706 Row: { 707 confirmation_code: string 708 confirmed: boolean 709 country_code: string 710 created_at: string 711 id: string 712 phone_number: string 713 } 714 Insert: { 715 confirmation_code: string 716 confirmed?: boolean 717 country_code: string 718 created_at?: string 719 id?: string 720 phone_number: string 721 } 722 Update: { 723 confirmation_code?: string 724 confirmed?: boolean 725 country_code?: string 726 created_at?: string 727 id?: string 728 phone_number?: string 729 } 730 Relationships: [] 731 } 732 phone_rsvps_to_entity: { 733 Row: { 734 country_code: string 735 created_at: string 736 entity: string 737 id: string 738 name: string 739 phone_number: string 740 plus_ones: number 741 status: Database["public"]["Enums"]["rsvp_status"] 742 } 743 Insert: { 744 country_code: string 745 created_at?: string 746 entity: string 747 id?: string 748 name?: string 749 phone_number: string 750 plus_ones?: number 751 status: Database["public"]["Enums"]["rsvp_status"] 752 } 753 Update: { 754 country_code?: string 755 created_at?: string 756 entity?: string 757 id?: string 758 name?: string 759 phone_number?: string 760 plus_ones?: number 761 status?: Database["public"]["Enums"]["rsvp_status"] 762 } 763 Relationships: [ 764 { 765 foreignKeyName: "phone_rsvps_to_entity_entity_fkey" 766 columns: ["entity"] 767 isOneToOne: false 768 referencedRelation: "entities" 769 referencedColumns: ["id"] 770 }, 771 ] 772 } 773 poll_votes_on_entity: { 774 Row: { 775 created_at: string 776 id: string 777 option_entity: string 778 poll_entity: string 779 voter_token: string 780 } 781 Insert: { 782 created_at?: string 783 id?: string 784 option_entity: string 785 poll_entity: string 786 voter_token: string 787 } 788 Update: { 789 created_at?: string 790 id?: string 791 option_entity?: string 792 poll_entity?: string 793 voter_token?: string 794 } 795 Relationships: [ 796 { 797 foreignKeyName: "poll_votes_on_entity_option_entity_fkey" 798 columns: ["option_entity"] 799 isOneToOne: false 800 referencedRelation: "entities" 801 referencedColumns: ["id"] 802 }, 803 { 804 foreignKeyName: "poll_votes_on_entity_poll_entity_fkey" 805 columns: ["poll_entity"] 806 isOneToOne: false 807 referencedRelation: "entities" 808 referencedColumns: ["id"] 809 }, 810 ] 811 } 812 publication_domains: { 813 Row: { 814 created_at: string 815 domain: string 816 identity: string 817 publication: string 818 } 819 Insert: { 820 created_at?: string 821 domain: string 822 identity: string 823 publication: string 824 } 825 Update: { 826 created_at?: string 827 domain?: string 828 identity?: string 829 publication?: string 830 } 831 Relationships: [ 832 { 833 foreignKeyName: "publication_domains_domain_fkey" 834 columns: ["domain"] 835 isOneToOne: false 836 referencedRelation: "custom_domains" 837 referencedColumns: ["domain"] 838 }, 839 { 840 foreignKeyName: "publication_domains_identity_fkey" 841 columns: ["identity"] 842 isOneToOne: false 843 referencedRelation: "identities" 844 referencedColumns: ["atp_did"] 845 }, 846 { 847 foreignKeyName: "publication_domains_publication_fkey" 848 columns: ["publication"] 849 isOneToOne: false 850 referencedRelation: "publications" 851 referencedColumns: ["uri"] 852 }, 853 ] 854 } 855 publication_subscriptions: { 856 Row: { 857 created_at: string 858 identity: string 859 publication: string 860 record: Json 861 uri: string 862 } 863 Insert: { 864 created_at?: string 865 identity: string 866 publication: string 867 record: Json 868 uri: string 869 } 870 Update: { 871 created_at?: string 872 identity?: string 873 publication?: string 874 record?: Json 875 uri?: string 876 } 877 Relationships: [ 878 { 879 foreignKeyName: "publication_subscriptions_identity_fkey" 880 columns: ["identity"] 881 isOneToOne: false 882 referencedRelation: "identities" 883 referencedColumns: ["atp_did"] 884 }, 885 { 886 foreignKeyName: "publication_subscriptions_publication_fkey" 887 columns: ["publication"] 888 isOneToOne: false 889 referencedRelation: "publications" 890 referencedColumns: ["uri"] 891 }, 892 ] 893 } 894 publications: { 895 Row: { 896 identity_did: string 897 indexed_at: string 898 name: string 899 record: Json | null 900 uri: string 901 } 902 Insert: { 903 identity_did: string 904 indexed_at?: string 905 name: string 906 record?: Json | null 907 uri: string 908 } 909 Update: { 910 identity_did?: string 911 indexed_at?: string 912 name?: string 913 record?: Json | null 914 uri?: string 915 } 916 Relationships: [ 917 { 918 foreignKeyName: "publications_identity_did_fkey" 919 columns: ["identity_did"] 920 isOneToOne: false 921 referencedRelation: "identities" 922 referencedColumns: ["atp_did"] 923 }, 924 ] 925 } 926 replicache_clients: { 927 Row: { 928 client_group: string 929 client_id: string 930 last_mutation: number 931 } 932 Insert: { 933 client_group: string 934 client_id: string 935 last_mutation: number 936 } 937 Update: { 938 client_group?: string 939 client_id?: string 940 last_mutation?: number 941 } 942 Relationships: [] 943 } 944 subscribers_to_publications: { 945 Row: { 946 created_at: string 947 identity: string 948 publication: string 949 } 950 Insert: { 951 created_at?: string 952 identity: string 953 publication: string 954 } 955 Update: { 956 created_at?: string 957 identity?: string 958 publication?: string 959 } 960 Relationships: [ 961 { 962 foreignKeyName: "subscribers_to_publications_identity_fkey" 963 columns: ["identity"] 964 isOneToOne: false 965 referencedRelation: "identities" 966 referencedColumns: ["email"] 967 }, 968 { 969 foreignKeyName: "subscribers_to_publications_publication_fkey" 970 columns: ["publication"] 971 isOneToOne: false 972 referencedRelation: "publications" 973 referencedColumns: ["uri"] 974 }, 975 ] 976 } 977 } 978 Views: { 979 [_ in never]: never 980 } 981 Functions: { 982 get_facts: { 983 Args: { 984 root: string 985 } 986 Returns: { 987 attribute: string 988 created_at: string 989 data: Json 990 entity: string 991 id: string 992 updated_at: string | null 993 version: number 994 }[] 995 } 996 get_facts_for_roots: { 997 Args: { 998 roots: string[] 999 max_depth: number 1000 } 1001 Returns: { 1002 root_id: string 1003 id: string 1004 entity: string 1005 attribute: string 1006 data: Json 1007 created_at: string 1008 updated_at: string 1009 version: number 1010 }[] 1011 } 1012 get_facts_with_depth: { 1013 Args: { 1014 root: string 1015 max_depth: number 1016 } 1017 Returns: { 1018 like: unknown 1019 }[] 1020 } 1021 pull_data: { 1022 Args: { 1023 token_id: string 1024 client_group_id: string 1025 } 1026 Returns: Database["public"]["CompositeTypes"]["pull_result"] 1027 } 1028 } 1029 Enums: { 1030 rsvp_status: "GOING" | "NOT_GOING" | "MAYBE" 1031 } 1032 CompositeTypes: { 1033 pull_result: { 1034 client_groups: Json | null 1035 facts: Json | null 1036 publications: Json | null 1037 } 1038 } 1039 } 1040 storage: { 1041 Tables: { 1042 buckets: { 1043 Row: { 1044 allowed_mime_types: string[] | null 1045 avif_autodetection: boolean | null 1046 created_at: string | null 1047 file_size_limit: number | null 1048 id: string 1049 name: string 1050 owner: string | null 1051 owner_id: string | null 1052 public: boolean | null 1053 updated_at: string | null 1054 } 1055 Insert: { 1056 allowed_mime_types?: string[] | null 1057 avif_autodetection?: boolean | null 1058 created_at?: string | null 1059 file_size_limit?: number | null 1060 id: string 1061 name: string 1062 owner?: string | null 1063 owner_id?: string | null 1064 public?: boolean | null 1065 updated_at?: string | null 1066 } 1067 Update: { 1068 allowed_mime_types?: string[] | null 1069 avif_autodetection?: boolean | null 1070 created_at?: string | null 1071 file_size_limit?: number | null 1072 id?: string 1073 name?: string 1074 owner?: string | null 1075 owner_id?: string | null 1076 public?: boolean | null 1077 updated_at?: string | null 1078 } 1079 Relationships: [] 1080 } 1081 migrations: { 1082 Row: { 1083 executed_at: string | null 1084 hash: string 1085 id: number 1086 name: string 1087 } 1088 Insert: { 1089 executed_at?: string | null 1090 hash: string 1091 id: number 1092 name: string 1093 } 1094 Update: { 1095 executed_at?: string | null 1096 hash?: string 1097 id?: number 1098 name?: string 1099 } 1100 Relationships: [] 1101 } 1102 objects: { 1103 Row: { 1104 bucket_id: string | null 1105 created_at: string | null 1106 id: string 1107 last_accessed_at: string | null 1108 metadata: Json | null 1109 name: string | null 1110 owner: string | null 1111 owner_id: string | null 1112 path_tokens: string[] | null 1113 updated_at: string | null 1114 version: string | null 1115 } 1116 Insert: { 1117 bucket_id?: string | null 1118 created_at?: string | null 1119 id?: string 1120 last_accessed_at?: string | null 1121 metadata?: Json | null 1122 name?: string | null 1123 owner?: string | null 1124 owner_id?: string | null 1125 path_tokens?: string[] | null 1126 updated_at?: string | null 1127 version?: string | null 1128 } 1129 Update: { 1130 bucket_id?: string | null 1131 created_at?: string | null 1132 id?: string 1133 last_accessed_at?: string | null 1134 metadata?: Json | null 1135 name?: string | null 1136 owner?: string | null 1137 owner_id?: string | null 1138 path_tokens?: string[] | null 1139 updated_at?: string | null 1140 version?: string | null 1141 } 1142 Relationships: [ 1143 { 1144 foreignKeyName: "objects_bucketId_fkey" 1145 columns: ["bucket_id"] 1146 isOneToOne: false 1147 referencedRelation: "buckets" 1148 referencedColumns: ["id"] 1149 }, 1150 ] 1151 } 1152 s3_multipart_uploads: { 1153 Row: { 1154 bucket_id: string 1155 created_at: string 1156 id: string 1157 in_progress_size: number 1158 key: string 1159 owner_id: string | null 1160 upload_signature: string 1161 version: string 1162 } 1163 Insert: { 1164 bucket_id: string 1165 created_at?: string 1166 id: string 1167 in_progress_size?: number 1168 key: string 1169 owner_id?: string | null 1170 upload_signature: string 1171 version: string 1172 } 1173 Update: { 1174 bucket_id?: string 1175 created_at?: string 1176 id?: string 1177 in_progress_size?: number 1178 key?: string 1179 owner_id?: string | null 1180 upload_signature?: string 1181 version?: string 1182 } 1183 Relationships: [ 1184 { 1185 foreignKeyName: "s3_multipart_uploads_bucket_id_fkey" 1186 columns: ["bucket_id"] 1187 isOneToOne: false 1188 referencedRelation: "buckets" 1189 referencedColumns: ["id"] 1190 }, 1191 ] 1192 } 1193 s3_multipart_uploads_parts: { 1194 Row: { 1195 bucket_id: string 1196 created_at: string 1197 etag: string 1198 id: string 1199 key: string 1200 owner_id: string | null 1201 part_number: number 1202 size: number 1203 upload_id: string 1204 version: string 1205 } 1206 Insert: { 1207 bucket_id: string 1208 created_at?: string 1209 etag: string 1210 id?: string 1211 key: string 1212 owner_id?: string | null 1213 part_number: number 1214 size?: number 1215 upload_id: string 1216 version: string 1217 } 1218 Update: { 1219 bucket_id?: string 1220 created_at?: string 1221 etag?: string 1222 id?: string 1223 key?: string 1224 owner_id?: string | null 1225 part_number?: number 1226 size?: number 1227 upload_id?: string 1228 version?: string 1229 } 1230 Relationships: [ 1231 { 1232 foreignKeyName: "s3_multipart_uploads_parts_bucket_id_fkey" 1233 columns: ["bucket_id"] 1234 isOneToOne: false 1235 referencedRelation: "buckets" 1236 referencedColumns: ["id"] 1237 }, 1238 { 1239 foreignKeyName: "s3_multipart_uploads_parts_upload_id_fkey" 1240 columns: ["upload_id"] 1241 isOneToOne: false 1242 referencedRelation: "s3_multipart_uploads" 1243 referencedColumns: ["id"] 1244 }, 1245 ] 1246 } 1247 } 1248 Views: { 1249 [_ in never]: never 1250 } 1251 Functions: { 1252 can_insert_object: { 1253 Args: { 1254 bucketid: string 1255 name: string 1256 owner: string 1257 metadata: Json 1258 } 1259 Returns: undefined 1260 } 1261 extension: { 1262 Args: { 1263 name: string 1264 } 1265 Returns: string 1266 } 1267 filename: { 1268 Args: { 1269 name: string 1270 } 1271 Returns: string 1272 } 1273 foldername: { 1274 Args: { 1275 name: string 1276 } 1277 Returns: string[] 1278 } 1279 get_size_by_bucket: { 1280 Args: Record<PropertyKey, never> 1281 Returns: { 1282 size: number 1283 bucket_id: string 1284 }[] 1285 } 1286 list_multipart_uploads_with_delimiter: { 1287 Args: { 1288 bucket_id: string 1289 prefix_param: string 1290 delimiter_param: string 1291 max_keys?: number 1292 next_key_token?: string 1293 next_upload_token?: string 1294 } 1295 Returns: { 1296 key: string 1297 id: string 1298 created_at: string 1299 }[] 1300 } 1301 list_objects_with_delimiter: { 1302 Args: { 1303 bucket_id: string 1304 prefix_param: string 1305 delimiter_param: string 1306 max_keys?: number 1307 start_after?: string 1308 next_token?: string 1309 } 1310 Returns: { 1311 name: string 1312 id: string 1313 metadata: Json 1314 updated_at: string 1315 }[] 1316 } 1317 search: { 1318 Args: { 1319 prefix: string 1320 bucketname: string 1321 limits?: number 1322 levels?: number 1323 offsets?: number 1324 search?: string 1325 sortcolumn?: string 1326 sortorder?: string 1327 } 1328 Returns: { 1329 name: string 1330 id: string 1331 updated_at: string 1332 created_at: string 1333 last_accessed_at: string 1334 metadata: Json 1335 }[] 1336 } 1337 } 1338 Enums: { 1339 [_ in never]: never 1340 } 1341 CompositeTypes: { 1342 [_ in never]: never 1343 } 1344 } 1345} 1346 1347type PublicSchema = Database[Extract<keyof Database, "public">] 1348 1349export type Tables< 1350 PublicTableNameOrOptions extends 1351 | keyof (PublicSchema["Tables"] & PublicSchema["Views"]) 1352 | { schema: keyof Database }, 1353 TableName extends PublicTableNameOrOptions extends { schema: keyof Database } 1354 ? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] & 1355 Database[PublicTableNameOrOptions["schema"]]["Views"]) 1356 : never = never, 1357> = PublicTableNameOrOptions extends { schema: keyof Database } 1358 ? (Database[PublicTableNameOrOptions["schema"]]["Tables"] & 1359 Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends { 1360 Row: infer R 1361 } 1362 ? R 1363 : never 1364 : PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & 1365 PublicSchema["Views"]) 1366 ? (PublicSchema["Tables"] & 1367 PublicSchema["Views"])[PublicTableNameOrOptions] extends { 1368 Row: infer R 1369 } 1370 ? R 1371 : never 1372 : never 1373 1374export type TablesInsert< 1375 PublicTableNameOrOptions extends 1376 | keyof PublicSchema["Tables"] 1377 | { schema: keyof Database }, 1378 TableName extends PublicTableNameOrOptions extends { schema: keyof Database } 1379 ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] 1380 : never = never, 1381> = PublicTableNameOrOptions extends { schema: keyof Database } 1382 ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends { 1383 Insert: infer I 1384 } 1385 ? I 1386 : never 1387 : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] 1388 ? PublicSchema["Tables"][PublicTableNameOrOptions] extends { 1389 Insert: infer I 1390 } 1391 ? I 1392 : never 1393 : never 1394 1395export type TablesUpdate< 1396 PublicTableNameOrOptions extends 1397 | keyof PublicSchema["Tables"] 1398 | { schema: keyof Database }, 1399 TableName extends PublicTableNameOrOptions extends { schema: keyof Database } 1400 ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] 1401 : never = never, 1402> = PublicTableNameOrOptions extends { schema: keyof Database } 1403 ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends { 1404 Update: infer U 1405 } 1406 ? U 1407 : never 1408 : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] 1409 ? PublicSchema["Tables"][PublicTableNameOrOptions] extends { 1410 Update: infer U 1411 } 1412 ? U 1413 : never 1414 : never 1415 1416export type Enums< 1417 PublicEnumNameOrOptions extends 1418 | keyof PublicSchema["Enums"] 1419 | { schema: keyof Database }, 1420 EnumName extends PublicEnumNameOrOptions extends { schema: keyof Database } 1421 ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"] 1422 : never = never, 1423> = PublicEnumNameOrOptions extends { schema: keyof Database } 1424 ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName] 1425 : PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] 1426 ? PublicSchema["Enums"][PublicEnumNameOrOptions] 1427 : never 1428