@@ -10,10 +10,12 @@ export interface Config {
10
10
auth : {
11
11
users : UserAuthOperations ;
12
12
'login-with-either' : LoginWithEitherAuthOperations ;
13
+ 'require-email' : RequireEmailAuthOperations ;
13
14
} ;
14
15
collections : {
15
16
users : User ;
16
17
'login-with-either' : LoginWithEither ;
18
+ 'require-email' : RequireEmail ;
17
19
'payload-locked-documents' : PayloadLockedDocument ;
18
20
'payload-preferences' : PayloadPreference ;
19
21
'payload-migrations' : PayloadMigration ;
@@ -22,6 +24,7 @@ export interface Config {
22
24
collectionsSelect : {
23
25
users : UsersSelect < false > | UsersSelect < true > ;
24
26
'login-with-either' : LoginWithEitherSelect < false > | LoginWithEitherSelect < true > ;
27
+ 'require-email' : RequireEmailSelect < false > | RequireEmailSelect < true > ;
25
28
'payload-locked-documents' : PayloadLockedDocumentsSelect < false > | PayloadLockedDocumentsSelect < true > ;
26
29
'payload-preferences' : PayloadPreferencesSelect < false > | PayloadPreferencesSelect < true > ;
27
30
'payload-migrations' : PayloadMigrationsSelect < false > | PayloadMigrationsSelect < true > ;
@@ -38,6 +41,9 @@ export interface Config {
38
41
} )
39
42
| ( LoginWithEither & {
40
43
collection : 'login-with-either' ;
44
+ } )
45
+ | ( RequireEmail & {
46
+ collection : 'require-email' ;
41
47
} ) ;
42
48
jobs : {
43
49
tasks : unknown ;
@@ -90,6 +96,23 @@ export interface LoginWithEitherAuthOperations {
90
96
username : string ;
91
97
} ;
92
98
}
99
+ export interface RequireEmailAuthOperations {
100
+ forgotPassword : {
101
+ username : string ;
102
+ } ;
103
+ login : {
104
+ password : string ;
105
+ username : string ;
106
+ } ;
107
+ registerFirstUser : {
108
+ password : string ;
109
+ username : string ;
110
+ email : string ;
111
+ } ;
112
+ unlock : {
113
+ username : string ;
114
+ } ;
115
+ }
93
116
/**
94
117
* This interface was referenced by `Config`'s JSON-Schema
95
118
* via the `definition` "users".
@@ -126,6 +149,24 @@ export interface LoginWithEither {
126
149
lockUntil ?: string | null ;
127
150
password ?: string | null ;
128
151
}
152
+ /**
153
+ * This interface was referenced by `Config`'s JSON-Schema
154
+ * via the `definition` "require-email".
155
+ */
156
+ export interface RequireEmail {
157
+ id : string ;
158
+ updatedAt : string ;
159
+ createdAt : string ;
160
+ email : string ;
161
+ username : string ;
162
+ resetPasswordToken ?: string | null ;
163
+ resetPasswordExpiration ?: string | null ;
164
+ salt ?: string | null ;
165
+ hash ?: string | null ;
166
+ loginAttempts ?: number | null ;
167
+ lockUntil ?: string | null ;
168
+ password ?: string | null ;
169
+ }
129
170
/**
130
171
* This interface was referenced by `Config`'s JSON-Schema
131
172
* via the `definition` "payload-locked-documents".
@@ -140,6 +181,10 @@ export interface PayloadLockedDocument {
140
181
| ( {
141
182
relationTo : 'login-with-either' ;
142
183
value : string | LoginWithEither ;
184
+ } | null )
185
+ | ( {
186
+ relationTo : 'require-email' ;
187
+ value : string | RequireEmail ;
143
188
} | null ) ;
144
189
globalSlug ?: string | null ;
145
190
user :
@@ -150,6 +195,10 @@ export interface PayloadLockedDocument {
150
195
| {
151
196
relationTo : 'login-with-either' ;
152
197
value : string | LoginWithEither ;
198
+ }
199
+ | {
200
+ relationTo : 'require-email' ;
201
+ value : string | RequireEmail ;
153
202
} ;
154
203
updatedAt : string ;
155
204
createdAt : string ;
@@ -168,6 +217,10 @@ export interface PayloadPreference {
168
217
| {
169
218
relationTo : 'login-with-either' ;
170
219
value : string | LoginWithEither ;
220
+ }
221
+ | {
222
+ relationTo : 'require-email' ;
223
+ value : string | RequireEmail ;
171
224
} ;
172
225
key ?: string | null ;
173
226
value ?:
@@ -225,6 +278,22 @@ export interface LoginWithEitherSelect<T extends boolean = true> {
225
278
loginAttempts ?: T ;
226
279
lockUntil ?: T ;
227
280
}
281
+ /**
282
+ * This interface was referenced by `Config`'s JSON-Schema
283
+ * via the `definition` "require-email_select".
284
+ */
285
+ export interface RequireEmailSelect < T extends boolean = true > {
286
+ updatedAt ?: T ;
287
+ createdAt ?: T ;
288
+ email ?: T ;
289
+ username ?: T ;
290
+ resetPasswordToken ?: T ;
291
+ resetPasswordExpiration ?: T ;
292
+ salt ?: T ;
293
+ hash ?: T ;
294
+ loginAttempts ?: T ;
295
+ lockUntil ?: T ;
296
+ }
228
297
/**
229
298
* This interface was referenced by `Config`'s JSON-Schema
230
299
* via the `definition` "payload-locked-documents_select".
0 commit comments