import{ENTITY_RELATION_TYPES as t}from"@redocly/config";const i={type:"object",properties:{id:{type:"string"},organizationId:{type:"string"},projectId:{type:"string"},sourceKey:{type:"string"},sourceVersion:{type:"string"},sourceRevision:{type:"string"},sourceToTargetRelation:{type:"string"},targetKey:{type:"string"},targetVersion:{type:"string"},targetRevision:{type:"string"},targetToSourceRelation:{type:"string"},sourceFile:{type:["string","null"]},fileHash:{type:["string","null"]},isDeleted:{type:["boolean","null"]},createdAt:{type:"string"},updatedAt:{type:"string"},lastSeenRunId:{type:["string","null"]}},required:["id","organizationId","projectId","sourceKey","sourceVersion","sourceRevision","sourceToTargetRelation","targetKey","targetVersion","targetRevision","targetToSourceRelation","createdAt","updatedAt"],additionalProperties:!1},r={type:"object",properties:{id:{type:"string"},organizationId:{type:"string"},projectId:{type:"string"},key:{type:"string"},type:{type:"string"},title:{type:"string"},summary:{type:["string","null"]},tags:{type:["string","null"]},metadata:{type:["string","null"]},git:{type:["string","null"]},contact:{type:["string","null"]},links:{type:["string","null"]},createdAt:{type:"string"},updatedAt:{type:"string"},source:{type:"string",enum:["file","remote"]},sourceFile:{type:["string","null"]},fileHash:{type:["string","null"]},version:{type:["string","null"]},revision:{type:["string","null"]},hash:{type:["string","null"]},isCurrent:{type:["boolean","null"]},isDefaultVersion:{type:["boolean","null"]},isDeleted:{type:["boolean","null"]},rbacTeams:{type:["string","null"]}},required:["id","organizationId","projectId","key","type","title","createdAt","updatedAt","source"],additionalProperties:!1},n={type:"object",properties:{id:{type:"string"},key:{type:"string"},title:{type:"string"},type:{type:"string"},summary:{type:["string","null"]},source:{type:"string"},relation_role:{type:["string","null"]},relation_type:{type:["string","null"],enum:t},source_file:{type:["string","null"]},created_at:{type:["string"]},updated_at:{type:["string"]},metadata:{type:["string","null"]},version:{type:["string","null"]}},required:["id","key","title","type","source","created_at","updated_at"],additionalProperties:!1},s={type:"object",properties:{id:{type:"string",minLength:1},key:{type:"string",minLength:1},title:{type:"string",minLength:1},type:{type:"string",minLength:1},summary:{type:["string","null"]},source:{type:"string",minLength:1},source_file:{type:["string","null"]},created_at:{type:["string"]},updated_at:{type:["string"]},metadata:{type:["string","object","null"]},version:{type:["string","null"]},revision:{type:["string","null"]},direction:{type:"string",enum:["outgoing","incoming"]},relation_field:{type:"string",minLength:1}},required:["id","key","title","type","source","direction","relation_field","created_at","updated_at"],additionalProperties:!1};export{r as entityDatabaseSchema,i as entityRelationDatabaseSchema,n as relatedEntityDatabaseSchema,s as relatedEntityQueryRowDatabaseSchema};
