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