@@ -46,15 +46,7 @@ export type Database = {
4646          handle : string  |  null 
4747          id : string  |  null 
4848        } 
49-         Relationships : [ 
50-           { 
51-             foreignKeyName : 'accounts_id_fkey' 
52-             columns : [ 'id' ] 
53-             isOneToOne : true 
54-             referencedRelation : 'users' 
55-             referencedColumns : [ 'id' ] 
56-           } , 
57-         ] 
49+         Relationships : [ ] 
5850      } 
5951      download_metrics : { 
6052        Row : { 
@@ -72,13 +64,6 @@ export type Database = {
7264            referencedRelation : 'packages' 
7365            referencedColumns : [ 'id' ] 
7466          } , 
75-           { 
76-             foreignKeyName : 'downloads_package_id_fkey' 
77-             columns : [ 'package_id' ] 
78-             isOneToOne : false 
79-             referencedRelation : 'packages' 
80-             referencedColumns : [ 'id' ] 
81-           } , 
8267        ] 
8368      } 
8469      members : { 
@@ -101,13 +86,6 @@ export type Database = {
10186          role ?: 'maintainer'  |  null 
10287        } 
10388        Relationships : [ 
104-           { 
105-             foreignKeyName : 'members_account_id_fkey' 
106-             columns : [ 'account_id' ] 
107-             isOneToOne : false 
108-             referencedRelation : 'accounts' 
109-             referencedColumns : [ 'id' ] 
110-           } , 
11189          { 
11290            foreignKeyName : 'members_account_id_fkey' 
11391            columns : [ 'account_id' ] 
@@ -122,13 +100,6 @@ export type Database = {
122100            referencedRelation : 'organizations' 
123101            referencedColumns : [ 'id' ] 
124102          } , 
125-           { 
126-             foreignKeyName : 'members_organization_id_fkey' 
127-             columns : [ 'organization_id' ] 
128-             isOneToOne : false 
129-             referencedRelation : 'organizations' 
130-             referencedColumns : [ 'id' ] 
131-           } , 
132103        ] 
133104      } 
134105      organizations : { 
@@ -161,13 +132,6 @@ export type Database = {
161132            referencedRelation : 'packages' 
162133            referencedColumns : [ 'id' ] 
163134          } , 
164-           { 
165-             foreignKeyName : 'package_upgrades_package_id_fkey' 
166-             columns : [ 'package_id' ] 
167-             isOneToOne : false 
168-             referencedRelation : 'packages' 
169-             referencedColumns : [ 'id' ] 
170-           } , 
171135        ] 
172136      } 
173137      package_versions : { 
@@ -191,13 +155,6 @@ export type Database = {
191155            referencedRelation : 'packages' 
192156            referencedColumns : [ 'id' ] 
193157          } , 
194-           { 
195-             foreignKeyName : 'package_versions_package_id_fkey' 
196-             columns : [ 'package_id' ] 
197-             isOneToOne : false 
198-             referencedRelation : 'packages' 
199-             referencedColumns : [ 'id' ] 
200-           } , 
201158        ] 
202159      } 
203160      packages : { 
@@ -214,15 +171,7 @@ export type Database = {
214171          package_name : string  |  null 
215172          partial_name : string  |  null 
216173        } 
217-         Relationships : [ 
218-           { 
219-             foreignKeyName : 'packages_handle_fkey' 
220-             columns : [ 'handle' ] 
221-             isOneToOne : false 
222-             referencedRelation : 'handle_registry' 
223-             referencedColumns : [ 'handle' ] 
224-           } , 
225-         ] 
174+         Relationships : [ ] 
226175      } 
227176    } 
228177    Functions : { 
@@ -242,6 +191,32 @@ export type Database = {
242191        Args : Record < PropertyKey ,  never > 
243192        Returns : unknown [ ] 
244193      } 
194+       get_account : { 
195+         Args : { 
196+           handle : string 
197+         } 
198+         Returns : { 
199+           avatar_path : string  |  null 
200+           bio : string  |  null 
201+           created_at : string  |  null 
202+           display_name : string  |  null 
203+           handle : string  |  null 
204+           id : string  |  null 
205+         } [ ] 
206+       } 
207+       get_organization : { 
208+         Args : { 
209+           handle : string 
210+         } 
211+         Returns : { 
212+           avatar_path : string  |  null 
213+           bio : string  |  null 
214+           created_at : string  |  null 
215+           display_name : string  |  null 
216+           handle : string  |  null 
217+           id : string  |  null 
218+         } [ ] 
219+       } 
245220      new_access_token : { 
246221        Args : { 
247222          token_name : string 
@@ -421,6 +396,7 @@ export type Database = {
421396          owner_id : string  |  null 
422397          path_tokens : string [ ]  |  null 
423398          updated_at : string  |  null 
399+           user_metadata : Json  |  null 
424400          version : string  |  null 
425401        } 
426402        Insert : { 
@@ -434,6 +410,7 @@ export type Database = {
434410          owner_id ?: string  |  null 
435411          path_tokens ?: string [ ]  |  null 
436412          updated_at ?: string  |  null 
413+           user_metadata ?: Json  |  null 
437414          version ?: string  |  null 
438415        } 
439416        Update : { 
@@ -447,6 +424,7 @@ export type Database = {
447424          owner_id ?: string  |  null 
448425          path_tokens ?: string [ ]  |  null 
449426          updated_at ?: string  |  null 
427+           user_metadata ?: Json  |  null 
450428          version ?: string  |  null 
451429        } 
452430        Relationships : [ 
@@ -468,6 +446,7 @@ export type Database = {
468446          key : string 
469447          owner_id : string  |  null 
470448          upload_signature : string 
449+           user_metadata : Json  |  null 
471450          version : string 
472451        } 
473452        Insert : { 
@@ -478,6 +457,7 @@ export type Database = {
478457          key : string 
479458          owner_id ?: string  |  null 
480459          upload_signature : string 
460+           user_metadata ?: Json  |  null 
481461          version : string 
482462        } 
483463        Update : { 
@@ -488,6 +468,7 @@ export type Database = {
488468          key ?: string 
489469          owner_id ?: string  |  null 
490470          upload_signature ?: string 
471+           user_metadata ?: Json  |  null 
491472          version ?: string 
492473        } 
493474        Relationships : [ 
@@ -624,6 +605,10 @@ export type Database = {
624605          updated_at : string 
625606        } [ ] 
626607      } 
608+       operation : { 
609+         Args : Record < PropertyKey ,  never > 
610+         Returns : string 
611+       } 
627612      search : { 
628613        Args : { 
629614          prefix : string 
@@ -735,3 +720,18 @@ export type Enums<
735720  : PublicEnumNameOrOptions  extends  keyof  PublicSchema [ 'Enums' ] 
736721    ? PublicSchema [ 'Enums' ] [ PublicEnumNameOrOptions ] 
737722    : never 
723+ 
724+ export  type  CompositeTypes < 
725+   PublicCompositeTypeNameOrOptions  extends 
726+     |  keyof  PublicSchema [ 'CompositeTypes' ] 
727+     |  {  schema : keyof  Database  } , 
728+   CompositeTypeName  extends  PublicCompositeTypeNameOrOptions  extends  { 
729+     schema : keyof  Database 
730+   } 
731+     ? keyof  Database [ PublicCompositeTypeNameOrOptions [ 'schema' ] ] [ 'CompositeTypes' ] 
732+     : never  =  never , 
733+ >  =  PublicCompositeTypeNameOrOptions  extends  {  schema : keyof  Database  } 
734+   ? Database [ PublicCompositeTypeNameOrOptions [ 'schema' ] ] [ 'CompositeTypes' ] [ CompositeTypeName ] 
735+   : PublicCompositeTypeNameOrOptions  extends  keyof  PublicSchema [ 'CompositeTypes' ] 
736+     ? PublicSchema [ 'CompositeTypes' ] [ PublicCompositeTypeNameOrOptions ] 
737+     : never 
0 commit comments