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 description: string 584 doc: string | null 585 leaflet: string 586 publication: string 587 title: string 588 } 589 Insert: { 590 description?: string 591 doc?: string | null 592 leaflet: string 593 publication: string 594 title?: string 595 } 596 Update: { 597 description?: string 598 doc?: string | null 599 leaflet?: string 600 publication?: string 601 title?: string 602 } 603 Relationships: [ 604 { 605 foreignKeyName: "leaflets_in_publications_doc_fkey" 606 columns: ["doc"] 607 isOneToOne: false 608 referencedRelation: "documents" 609 referencedColumns: ["uri"] 610 }, 611 { 612 foreignKeyName: "leaflets_in_publications_leaflet_fkey" 613 columns: ["leaflet"] 614 isOneToOne: false 615 referencedRelation: "permission_tokens" 616 referencedColumns: ["id"] 617 }, 618 { 619 foreignKeyName: "leaflets_in_publications_publication_fkey" 620 columns: ["publication"] 621 isOneToOne: false 622 referencedRelation: "publications" 623 referencedColumns: ["uri"] 624 }, 625 ] 626 } 627 notifications: { 628 Row: { 629 created_at: string 630 data: Json 631 id: string 632 read: boolean 633 recipient: string 634 } 635 Insert: { 636 created_at?: string 637 data: Json 638 id: string 639 read?: boolean 640 recipient: string 641 } 642 Update: { 643 created_at?: string 644 data?: Json 645 id?: string 646 read?: boolean 647 recipient?: string 648 } 649 Relationships: [ 650 { 651 foreignKeyName: "notifications_recipient_fkey" 652 columns: ["recipient"] 653 isOneToOne: false 654 referencedRelation: "identities" 655 referencedColumns: ["atp_did"] 656 }, 657 ] 658 } 659 oauth_session_store: { 660 Row: { 661 key: string 662 session: Json 663 } 664 Insert: { 665 key: string 666 session: Json 667 } 668 Update: { 669 key?: string 670 session?: Json 671 } 672 Relationships: [] 673 } 674 oauth_state_store: { 675 Row: { 676 key: string 677 state: Json 678 } 679 Insert: { 680 key: string 681 state: Json 682 } 683 Update: { 684 key?: string 685 state?: Json 686 } 687 Relationships: [] 688 } 689 permission_token_on_homepage: { 690 Row: { 691 created_at: string 692 identity: string 693 token: string 694 } 695 Insert: { 696 created_at?: string 697 identity: string 698 token: string 699 } 700 Update: { 701 created_at?: string 702 identity?: string 703 token?: string 704 } 705 Relationships: [ 706 { 707 foreignKeyName: "permission_token_creator_identity_fkey" 708 columns: ["identity"] 709 isOneToOne: false 710 referencedRelation: "identities" 711 referencedColumns: ["id"] 712 }, 713 { 714 foreignKeyName: "permission_token_creator_token_fkey" 715 columns: ["token"] 716 isOneToOne: false 717 referencedRelation: "permission_tokens" 718 referencedColumns: ["id"] 719 }, 720 ] 721 } 722 permission_token_rights: { 723 Row: { 724 change_entity_set: boolean 725 create_token: boolean 726 created_at: string 727 entity_set: string 728 read: boolean 729 token: string 730 write: boolean 731 } 732 Insert: { 733 change_entity_set?: boolean 734 create_token?: boolean 735 created_at?: string 736 entity_set: string 737 read?: boolean 738 token: string 739 write?: boolean 740 } 741 Update: { 742 change_entity_set?: boolean 743 create_token?: boolean 744 created_at?: string 745 entity_set?: string 746 read?: boolean 747 token?: string 748 write?: boolean 749 } 750 Relationships: [ 751 { 752 foreignKeyName: "permission_token_rights_entity_set_fkey" 753 columns: ["entity_set"] 754 isOneToOne: false 755 referencedRelation: "entity_sets" 756 referencedColumns: ["id"] 757 }, 758 { 759 foreignKeyName: "permission_token_rights_token_fkey" 760 columns: ["token"] 761 isOneToOne: false 762 referencedRelation: "permission_tokens" 763 referencedColumns: ["id"] 764 }, 765 ] 766 } 767 permission_tokens: { 768 Row: { 769 blocked_by_admin: boolean | null 770 id: string 771 root_entity: string 772 } 773 Insert: { 774 blocked_by_admin?: boolean | null 775 id?: string 776 root_entity: string 777 } 778 Update: { 779 blocked_by_admin?: boolean | null 780 id?: string 781 root_entity?: string 782 } 783 Relationships: [ 784 { 785 foreignKeyName: "permission_tokens_root_entity_fkey" 786 columns: ["root_entity"] 787 isOneToOne: false 788 referencedRelation: "entities" 789 referencedColumns: ["id"] 790 }, 791 ] 792 } 793 phone_number_auth_tokens: { 794 Row: { 795 confirmation_code: string 796 confirmed: boolean 797 country_code: string 798 created_at: string 799 id: string 800 phone_number: string 801 } 802 Insert: { 803 confirmation_code: string 804 confirmed?: boolean 805 country_code: string 806 created_at?: string 807 id?: string 808 phone_number: string 809 } 810 Update: { 811 confirmation_code?: string 812 confirmed?: boolean 813 country_code?: string 814 created_at?: string 815 id?: string 816 phone_number?: string 817 } 818 Relationships: [] 819 } 820 phone_rsvps_to_entity: { 821 Row: { 822 country_code: string 823 created_at: string 824 entity: string 825 id: string 826 name: string 827 phone_number: string 828 plus_ones: number 829 status: Database["public"]["Enums"]["rsvp_status"] 830 } 831 Insert: { 832 country_code: string 833 created_at?: string 834 entity: string 835 id?: string 836 name?: string 837 phone_number: string 838 plus_ones?: number 839 status: Database["public"]["Enums"]["rsvp_status"] 840 } 841 Update: { 842 country_code?: string 843 created_at?: string 844 entity?: string 845 id?: string 846 name?: string 847 phone_number?: string 848 plus_ones?: number 849 status?: Database["public"]["Enums"]["rsvp_status"] 850 } 851 Relationships: [ 852 { 853 foreignKeyName: "phone_rsvps_to_entity_entity_fkey" 854 columns: ["entity"] 855 isOneToOne: false 856 referencedRelation: "entities" 857 referencedColumns: ["id"] 858 }, 859 ] 860 } 861 poll_votes_on_entity: { 862 Row: { 863 created_at: string 864 id: string 865 option_entity: string 866 poll_entity: string 867 voter_token: string 868 } 869 Insert: { 870 created_at?: string 871 id?: string 872 option_entity: string 873 poll_entity: string 874 voter_token: string 875 } 876 Update: { 877 created_at?: string 878 id?: string 879 option_entity?: string 880 poll_entity?: string 881 voter_token?: string 882 } 883 Relationships: [ 884 { 885 foreignKeyName: "poll_votes_on_entity_option_entity_fkey" 886 columns: ["option_entity"] 887 isOneToOne: false 888 referencedRelation: "entities" 889 referencedColumns: ["id"] 890 }, 891 { 892 foreignKeyName: "poll_votes_on_entity_poll_entity_fkey" 893 columns: ["poll_entity"] 894 isOneToOne: false 895 referencedRelation: "entities" 896 referencedColumns: ["id"] 897 }, 898 ] 899 } 900 publication_domains: { 901 Row: { 902 created_at: string 903 domain: string 904 identity: string 905 publication: string 906 } 907 Insert: { 908 created_at?: string 909 domain: string 910 identity: string 911 publication: string 912 } 913 Update: { 914 created_at?: string 915 domain?: string 916 identity?: string 917 publication?: string 918 } 919 Relationships: [ 920 { 921 foreignKeyName: "publication_domains_domain_fkey" 922 columns: ["domain"] 923 isOneToOne: false 924 referencedRelation: "custom_domains" 925 referencedColumns: ["domain"] 926 }, 927 { 928 foreignKeyName: "publication_domains_identity_fkey" 929 columns: ["identity"] 930 isOneToOne: false 931 referencedRelation: "identities" 932 referencedColumns: ["atp_did"] 933 }, 934 { 935 foreignKeyName: "publication_domains_publication_fkey" 936 columns: ["publication"] 937 isOneToOne: false 938 referencedRelation: "publications" 939 referencedColumns: ["uri"] 940 }, 941 ] 942 } 943 publication_subscriptions: { 944 Row: { 945 created_at: string 946 identity: string 947 publication: string 948 record: Json 949 uri: string 950 } 951 Insert: { 952 created_at?: string 953 identity: string 954 publication: string 955 record: Json 956 uri: string 957 } 958 Update: { 959 created_at?: string 960 identity?: string 961 publication?: string 962 record?: Json 963 uri?: string 964 } 965 Relationships: [ 966 { 967 foreignKeyName: "publication_subscriptions_identity_fkey" 968 columns: ["identity"] 969 isOneToOne: false 970 referencedRelation: "identities" 971 referencedColumns: ["atp_did"] 972 }, 973 { 974 foreignKeyName: "publication_subscriptions_publication_fkey" 975 columns: ["publication"] 976 isOneToOne: false 977 referencedRelation: "publications" 978 referencedColumns: ["uri"] 979 }, 980 ] 981 } 982 publications: { 983 Row: { 984 identity_did: string 985 indexed_at: string 986 name: string 987 record: Json | null 988 uri: string 989 } 990 Insert: { 991 identity_did: string 992 indexed_at?: string 993 name: string 994 record?: Json | null 995 uri: string 996 } 997 Update: { 998 identity_did?: string 999 indexed_at?: string 1000 name?: string 1001 record?: Json | null 1002 uri?: string 1003 } 1004 Relationships: [ 1005 { 1006 foreignKeyName: "publications_identity_did_fkey" 1007 columns: ["identity_did"] 1008 isOneToOne: false 1009 referencedRelation: "identities" 1010 referencedColumns: ["atp_did"] 1011 }, 1012 ] 1013 } 1014 replicache_clients: { 1015 Row: { 1016 client_group: string 1017 client_id: string 1018 last_mutation: number 1019 } 1020 Insert: { 1021 client_group: string 1022 client_id: string 1023 last_mutation: number 1024 } 1025 Update: { 1026 client_group?: string 1027 client_id?: string 1028 last_mutation?: number 1029 } 1030 Relationships: [] 1031 } 1032 subscribers_to_publications: { 1033 Row: { 1034 created_at: string 1035 identity: string 1036 publication: string 1037 } 1038 Insert: { 1039 created_at?: string 1040 identity: string 1041 publication: string 1042 } 1043 Update: { 1044 created_at?: string 1045 identity?: string 1046 publication?: string 1047 } 1048 Relationships: [ 1049 { 1050 foreignKeyName: "subscribers_to_publications_identity_fkey" 1051 columns: ["identity"] 1052 isOneToOne: false 1053 referencedRelation: "identities" 1054 referencedColumns: ["email"] 1055 }, 1056 { 1057 foreignKeyName: "subscribers_to_publications_publication_fkey" 1058 columns: ["publication"] 1059 isOneToOne: false 1060 referencedRelation: "publications" 1061 referencedColumns: ["uri"] 1062 }, 1063 ] 1064 } 1065 } 1066 Views: { 1067 [_ in never]: never 1068 } 1069 Functions: { 1070 get_facts: { 1071 Args: { 1072 root: string 1073 } 1074 Returns: { 1075 attribute: string 1076 created_at: string 1077 data: Json 1078 entity: string 1079 id: string 1080 updated_at: string | null 1081 version: number 1082 }[] 1083 } 1084 get_facts_for_roots: { 1085 Args: { 1086 roots: string[] 1087 max_depth: number 1088 } 1089 Returns: { 1090 root_id: string 1091 id: string 1092 entity: string 1093 attribute: string 1094 data: Json 1095 created_at: string 1096 updated_at: string 1097 version: number 1098 }[] 1099 } 1100 get_facts_with_depth: { 1101 Args: { 1102 root: string 1103 max_depth: number 1104 } 1105 Returns: { 1106 like: unknown 1107 }[] 1108 } 1109 pull_data: { 1110 Args: { 1111 token_id: string 1112 client_group_id: string 1113 } 1114 Returns: Database["public"]["CompositeTypes"]["pull_result"] 1115 } 1116 } 1117 Enums: { 1118 rsvp_status: "GOING" | "NOT_GOING" | "MAYBE" 1119 } 1120 CompositeTypes: { 1121 pull_result: { 1122 client_groups: Json | null 1123 facts: Json | null 1124 publications: Json | null 1125 } 1126 } 1127 } 1128 storage: { 1129 Tables: { 1130 buckets: { 1131 Row: { 1132 allowed_mime_types: string[] | null 1133 avif_autodetection: boolean | null 1134 created_at: string | null 1135 file_size_limit: number | null 1136 id: string 1137 name: string 1138 owner: string | null 1139 owner_id: string | null 1140 public: boolean | null 1141 updated_at: string | null 1142 } 1143 Insert: { 1144 allowed_mime_types?: string[] | null 1145 avif_autodetection?: boolean | null 1146 created_at?: string | null 1147 file_size_limit?: number | null 1148 id: string 1149 name: string 1150 owner?: string | null 1151 owner_id?: string | null 1152 public?: boolean | null 1153 updated_at?: string | null 1154 } 1155 Update: { 1156 allowed_mime_types?: string[] | null 1157 avif_autodetection?: boolean | null 1158 created_at?: string | null 1159 file_size_limit?: number | null 1160 id?: string 1161 name?: string 1162 owner?: string | null 1163 owner_id?: string | null 1164 public?: boolean | null 1165 updated_at?: string | null 1166 } 1167 Relationships: [] 1168 } 1169 migrations: { 1170 Row: { 1171 executed_at: string | null 1172 hash: string 1173 id: number 1174 name: string 1175 } 1176 Insert: { 1177 executed_at?: string | null 1178 hash: string 1179 id: number 1180 name: string 1181 } 1182 Update: { 1183 executed_at?: string | null 1184 hash?: string 1185 id?: number 1186 name?: string 1187 } 1188 Relationships: [] 1189 } 1190 objects: { 1191 Row: { 1192 bucket_id: string | null 1193 created_at: string | null 1194 id: string 1195 last_accessed_at: string | null 1196 metadata: Json | null 1197 name: string | null 1198 owner: string | null 1199 owner_id: string | null 1200 path_tokens: string[] | null 1201 updated_at: string | null 1202 version: string | null 1203 } 1204 Insert: { 1205 bucket_id?: string | null 1206 created_at?: string | null 1207 id?: string 1208 last_accessed_at?: string | null 1209 metadata?: Json | null 1210 name?: string | null 1211 owner?: string | null 1212 owner_id?: string | null 1213 path_tokens?: string[] | null 1214 updated_at?: string | null 1215 version?: string | null 1216 } 1217 Update: { 1218 bucket_id?: string | null 1219 created_at?: string | null 1220 id?: string 1221 last_accessed_at?: string | null 1222 metadata?: Json | null 1223 name?: string | null 1224 owner?: string | null 1225 owner_id?: string | null 1226 path_tokens?: string[] | null 1227 updated_at?: string | null 1228 version?: string | null 1229 } 1230 Relationships: [ 1231 { 1232 foreignKeyName: "objects_bucketId_fkey" 1233 columns: ["bucket_id"] 1234 isOneToOne: false 1235 referencedRelation: "buckets" 1236 referencedColumns: ["id"] 1237 }, 1238 ] 1239 } 1240 s3_multipart_uploads: { 1241 Row: { 1242 bucket_id: string 1243 created_at: string 1244 id: string 1245 in_progress_size: number 1246 key: string 1247 owner_id: string | null 1248 upload_signature: string 1249 version: string 1250 } 1251 Insert: { 1252 bucket_id: string 1253 created_at?: string 1254 id: string 1255 in_progress_size?: number 1256 key: string 1257 owner_id?: string | null 1258 upload_signature: string 1259 version: string 1260 } 1261 Update: { 1262 bucket_id?: string 1263 created_at?: string 1264 id?: string 1265 in_progress_size?: number 1266 key?: string 1267 owner_id?: string | null 1268 upload_signature?: string 1269 version?: string 1270 } 1271 Relationships: [ 1272 { 1273 foreignKeyName: "s3_multipart_uploads_bucket_id_fkey" 1274 columns: ["bucket_id"] 1275 isOneToOne: false 1276 referencedRelation: "buckets" 1277 referencedColumns: ["id"] 1278 }, 1279 ] 1280 } 1281 s3_multipart_uploads_parts: { 1282 Row: { 1283 bucket_id: string 1284 created_at: string 1285 etag: string 1286 id: string 1287 key: string 1288 owner_id: string | null 1289 part_number: number 1290 size: number 1291 upload_id: string 1292 version: string 1293 } 1294 Insert: { 1295 bucket_id: string 1296 created_at?: string 1297 etag: string 1298 id?: string 1299 key: string 1300 owner_id?: string | null 1301 part_number: number 1302 size?: number 1303 upload_id: string 1304 version: string 1305 } 1306 Update: { 1307 bucket_id?: string 1308 created_at?: string 1309 etag?: string 1310 id?: string 1311 key?: string 1312 owner_id?: string | null 1313 part_number?: number 1314 size?: number 1315 upload_id?: string 1316 version?: string 1317 } 1318 Relationships: [ 1319 { 1320 foreignKeyName: "s3_multipart_uploads_parts_bucket_id_fkey" 1321 columns: ["bucket_id"] 1322 isOneToOne: false 1323 referencedRelation: "buckets" 1324 referencedColumns: ["id"] 1325 }, 1326 { 1327 foreignKeyName: "s3_multipart_uploads_parts_upload_id_fkey" 1328 columns: ["upload_id"] 1329 isOneToOne: false 1330 referencedRelation: "s3_multipart_uploads" 1331 referencedColumns: ["id"] 1332 }, 1333 ] 1334 } 1335 } 1336 Views: { 1337 [_ in never]: never 1338 } 1339 Functions: { 1340 can_insert_object: { 1341 Args: { 1342 bucketid: string 1343 name: string 1344 owner: string 1345 metadata: Json 1346 } 1347 Returns: undefined 1348 } 1349 extension: { 1350 Args: { 1351 name: string 1352 } 1353 Returns: string 1354 } 1355 filename: { 1356 Args: { 1357 name: string 1358 } 1359 Returns: string 1360 } 1361 foldername: { 1362 Args: { 1363 name: string 1364 } 1365 Returns: string[] 1366 } 1367 get_size_by_bucket: { 1368 Args: Record<PropertyKey, never> 1369 Returns: { 1370 size: number 1371 bucket_id: string 1372 }[] 1373 } 1374 list_multipart_uploads_with_delimiter: { 1375 Args: { 1376 bucket_id: string 1377 prefix_param: string 1378 delimiter_param: string 1379 max_keys?: number 1380 next_key_token?: string 1381 next_upload_token?: string 1382 } 1383 Returns: { 1384 key: string 1385 id: string 1386 created_at: string 1387 }[] 1388 } 1389 list_objects_with_delimiter: { 1390 Args: { 1391 bucket_id: string 1392 prefix_param: string 1393 delimiter_param: string 1394 max_keys?: number 1395 start_after?: string 1396 next_token?: string 1397 } 1398 Returns: { 1399 name: string 1400 id: string 1401 metadata: Json 1402 updated_at: string 1403 }[] 1404 } 1405 search: { 1406 Args: { 1407 prefix: string 1408 bucketname: string 1409 limits?: number 1410 levels?: number 1411 offsets?: number 1412 search?: string 1413 sortcolumn?: string 1414 sortorder?: string 1415 } 1416 Returns: { 1417 name: string 1418 id: string 1419 updated_at: string 1420 created_at: string 1421 last_accessed_at: string 1422 metadata: Json 1423 }[] 1424 } 1425 } 1426 Enums: { 1427 [_ in never]: never 1428 } 1429 CompositeTypes: { 1430 [_ in never]: never 1431 } 1432 } 1433} 1434 1435type PublicSchema = Database[Extract<keyof Database, "public">] 1436 1437export type Tables< 1438 PublicTableNameOrOptions extends 1439 | keyof (PublicSchema["Tables"] & PublicSchema["Views"]) 1440 | { schema: keyof Database }, 1441 TableName extends PublicTableNameOrOptions extends { schema: keyof Database } 1442 ? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] & 1443 Database[PublicTableNameOrOptions["schema"]]["Views"]) 1444 : never = never, 1445> = PublicTableNameOrOptions extends { schema: keyof Database } 1446 ? (Database[PublicTableNameOrOptions["schema"]]["Tables"] & 1447 Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends { 1448 Row: infer R 1449 } 1450 ? R 1451 : never 1452 : PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & 1453 PublicSchema["Views"]) 1454 ? (PublicSchema["Tables"] & 1455 PublicSchema["Views"])[PublicTableNameOrOptions] extends { 1456 Row: infer R 1457 } 1458 ? R 1459 : never 1460 : never 1461 1462export type TablesInsert< 1463 PublicTableNameOrOptions extends 1464 | keyof PublicSchema["Tables"] 1465 | { schema: keyof Database }, 1466 TableName extends PublicTableNameOrOptions extends { schema: keyof Database } 1467 ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] 1468 : never = never, 1469> = PublicTableNameOrOptions extends { schema: keyof Database } 1470 ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends { 1471 Insert: infer I 1472 } 1473 ? I 1474 : never 1475 : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] 1476 ? PublicSchema["Tables"][PublicTableNameOrOptions] extends { 1477 Insert: infer I 1478 } 1479 ? I 1480 : never 1481 : never 1482 1483export type TablesUpdate< 1484 PublicTableNameOrOptions extends 1485 | keyof PublicSchema["Tables"] 1486 | { schema: keyof Database }, 1487 TableName extends PublicTableNameOrOptions extends { schema: keyof Database } 1488 ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] 1489 : never = never, 1490> = PublicTableNameOrOptions extends { schema: keyof Database } 1491 ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends { 1492 Update: infer U 1493 } 1494 ? U 1495 : never 1496 : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] 1497 ? PublicSchema["Tables"][PublicTableNameOrOptions] extends { 1498 Update: infer U 1499 } 1500 ? U 1501 : never 1502 : never 1503 1504export type Enums< 1505 PublicEnumNameOrOptions extends 1506 | keyof PublicSchema["Enums"] 1507 | { schema: keyof Database }, 1508 EnumName extends PublicEnumNameOrOptions extends { schema: keyof Database } 1509 ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"] 1510 : never = never, 1511> = PublicEnumNameOrOptions extends { schema: keyof Database } 1512 ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName] 1513 : PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] 1514 ? PublicSchema["Enums"][PublicEnumNameOrOptions] 1515 : never 1516