@@ -75,6 +75,7 @@ export interface Config {
75
75
tenants : Tenant ;
76
76
categories : Category ;
77
77
media : Media ;
78
+ 'collection-level-config' : CollectionLevelConfig ;
78
79
'payload-locked-documents' : PayloadLockedDocument ;
79
80
'payload-preferences' : PayloadPreference ;
80
81
'payload-migrations' : PayloadMigration ;
@@ -89,6 +90,7 @@ export interface Config {
89
90
tenants : TenantsSelect < false > | TenantsSelect < true > ;
90
91
categories : CategoriesSelect < false > | CategoriesSelect < true > ;
91
92
media : MediaSelect < false > | MediaSelect < true > ;
93
+ 'collection-level-config' : CollectionLevelConfigSelect < false > | CollectionLevelConfigSelect < true > ;
92
94
'payload-locked-documents' : PayloadLockedDocumentsSelect < false > | PayloadLockedDocumentsSelect < true > ;
93
95
'payload-preferences' : PayloadPreferencesSelect < false > | PayloadPreferencesSelect < true > ;
94
96
'payload-migrations' : PayloadMigrationsSelect < false > | PayloadMigrationsSelect < true > ;
@@ -146,6 +148,13 @@ export interface User {
146
148
hash ?: string | null ;
147
149
loginAttempts ?: number | null ;
148
150
lockUntil ?: string | null ;
151
+ sessions ?:
152
+ | {
153
+ id : string ;
154
+ createdAt ?: string | null ;
155
+ expiresAt : string ;
156
+ } [ ]
157
+ | null ;
149
158
password ?: string | null ;
150
159
}
151
160
/**
@@ -834,6 +843,18 @@ export interface SsrAutosave {
834
843
createdAt : string ;
835
844
_status ?: ( 'draft' | 'published' ) | null ;
836
845
}
846
+ /**
847
+ * Live Preview is enabled on this collection's own config, not the root config.
848
+ *
849
+ * This interface was referenced by `Config`'s JSON-Schema
850
+ * via the `definition` "collection-level-config".
851
+ */
852
+ export interface CollectionLevelConfig {
853
+ id : string ;
854
+ title ?: string | null ;
855
+ updatedAt : string ;
856
+ createdAt : string ;
857
+ }
837
858
/**
838
859
* This interface was referenced by `Config`'s JSON-Schema
839
860
* via the `definition` "payload-locked-documents".
@@ -872,6 +893,10 @@ export interface PayloadLockedDocument {
872
893
| ( {
873
894
relationTo : 'media' ;
874
895
value : string | Media ;
896
+ } | null )
897
+ | ( {
898
+ relationTo : 'collection-level-config' ;
899
+ value : string | CollectionLevelConfig ;
875
900
} | null ) ;
876
901
globalSlug ?: string | null ;
877
902
user : {
@@ -929,6 +954,13 @@ export interface UsersSelect<T extends boolean = true> {
929
954
hash ?: T ;
930
955
loginAttempts ?: T ;
931
956
lockUntil ?: T ;
957
+ sessions ?:
958
+ | T
959
+ | {
960
+ id ?: T ;
961
+ createdAt ?: T ;
962
+ expiresAt ?: T ;
963
+ } ;
932
964
}
933
965
/**
934
966
* This interface was referenced by `Config`'s JSON-Schema
@@ -1395,6 +1427,15 @@ export interface MediaSelect<T extends boolean = true> {
1395
1427
focalX ?: T ;
1396
1428
focalY ?: T ;
1397
1429
}
1430
+ /**
1431
+ * This interface was referenced by `Config`'s JSON-Schema
1432
+ * via the `definition` "collection-level-config_select".
1433
+ */
1434
+ export interface CollectionLevelConfigSelect < T extends boolean = true > {
1435
+ title ?: T ;
1436
+ updatedAt ?: T ;
1437
+ createdAt ?: T ;
1438
+ }
1398
1439
/**
1399
1440
* This interface was referenced by `Config`'s JSON-Schema
1400
1441
* via the `definition` "payload-locked-documents_select".
0 commit comments