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