@@ -70,6 +70,7 @@ export interface Config {
7070 media : Media ;
7171 users : User ;
7272 'Audit-log' : AuditLog ;
73+ 'payload-kv' : PayloadKv ;
7374 'payload-jobs' : PayloadJob ;
7475 'payload-locked-documents' : PayloadLockedDocument ;
7576 'payload-preferences' : PayloadPreference ;
@@ -80,6 +81,7 @@ export interface Config {
8081 media : MediaSelect < false > | MediaSelect < true > ;
8182 users : UsersSelect < false > | UsersSelect < true > ;
8283 'Audit-log' : AuditLogSelect < false > | AuditLogSelect < true > ;
84+ 'payload-kv' : PayloadKvSelect < false > | PayloadKvSelect < true > ;
8385 'payload-jobs' : PayloadJobsSelect < false > | PayloadJobsSelect < true > ;
8486 'payload-locked-documents' : PayloadLockedDocumentsSelect < false > | PayloadLockedDocumentsSelect < true > ;
8587 'payload-preferences' : PayloadPreferencesSelect < false > | PayloadPreferencesSelect < true > ;
@@ -187,6 +189,23 @@ export interface AuditLog {
187189 type : 'info' | 'debug' | 'warning' | 'error' | 'audit' | 'security' | 'unknown' ;
188190 createdAt : string ;
189191}
192+ /**
193+ * This interface was referenced by `Config`'s JSON-Schema
194+ * via the `definition` "payload-kv".
195+ */
196+ export interface PayloadKv {
197+ id : string ;
198+ key : string ;
199+ data :
200+ | {
201+ [ k : string ] : unknown ;
202+ }
203+ | unknown [ ]
204+ | string
205+ | number
206+ | boolean
207+ | null ;
208+ }
190209/**
191210 * This interface was referenced by `Config`'s JSON-Schema
192211 * via the `definition` "payload-jobs".
@@ -306,10 +325,6 @@ export interface PayloadLockedDocument {
306325 | ( {
307326 relationTo : 'Audit-log' ;
308327 value : string | AuditLog ;
309- } | null )
310- | ( {
311- relationTo : 'payload-jobs' ;
312- value : string | PayloadJob ;
313328 } | null ) ;
314329 globalSlug ?: string | null ;
315330 user : {
@@ -409,6 +424,14 @@ export interface AuditLogSelect<T extends boolean = true> {
409424 type ?: T ;
410425 createdAt ?: T ;
411426}
427+ /**
428+ * This interface was referenced by `Config`'s JSON-Schema
429+ * via the `definition` "payload-kv_select".
430+ */
431+ export interface PayloadKvSelect < T extends boolean = true > {
432+ key ?: T ;
433+ data ?: T ;
434+ }
412435/**
413436 * This interface was referenced by `Config`'s JSON-Schema
414437 * via the `definition` "payload-jobs_select".
0 commit comments