/**
 * Entity types and filter types
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { ApiExposureLevel, ObjectCategory } from './schema-types';
export type ConstructiveInternalTypeAttachment = unknown;
export type ConstructiveInternalTypeHostname = unknown;
export type ConstructiveInternalTypeImage = unknown;
export type ConstructiveInternalTypeUrl = unknown;
export interface Api {
    annotations: unknown | null;
    anonRole: string | null;
    databaseId: string | null;
    dbname: string | null;
    id: string | null;
    isPublic: boolean | null;
    labels: unknown | null;
    name: string | null;
    roleName: string | null;
}
export interface ApiModule {
    apiId: string | null;
    data: unknown | null;
    databaseId: string | null;
    id: string | null;
    name: string | null;
}
export interface ApiSchema {
    apiId: string | null;
    databaseId: string | null;
    id: string | null;
    schemaId: string | null;
}
export interface ApiSetting {
    apiId: string | null;
    databaseId: string | null;
    enableAggregates: boolean | null;
    enableBulk: boolean | null;
    enableConnectionFilter: boolean | null;
    enableDirectUploads: boolean | null;
    enableI18N: boolean | null;
    enableLlm: boolean | null;
    enableLtree: boolean | null;
    enableManyToMany: boolean | null;
    enablePostgis: boolean | null;
    enablePresignedUploads: boolean | null;
    enableRealtime: boolean | null;
    enableSearch: boolean | null;
    id: string | null;
    options: unknown | null;
}
export interface App {
    appIdPrefix: string | null;
    appImage: ConstructiveInternalTypeImage | null;
    appStoreId: string | null;
    appStoreLink: ConstructiveInternalTypeUrl | null;
    databaseId: string | null;
    id: string | null;
    name: string | null;
    playStoreLink: ConstructiveInternalTypeUrl | null;
    siteId: string | null;
}
export interface AstMigration {
    actionId: string | null;
    actionName: string | null;
    actorId: string | null;
    createdAt: string | null;
    databaseId: string | null;
    deploy: unknown | null;
    deploys: string | null;
    id: number | null;
    name: string | null;
    payload: unknown | null;
    requires: string[] | null;
    revert: unknown | null;
    verify: unknown | null;
}
export interface CheckConstraint {
    category: ObjectCategory | null;
    createdAt: string | null;
    databaseId: string | null;
    expr: unknown | null;
    fieldIds: string[] | null;
    id: string | null;
    name: string | null;
    smartTags: unknown | null;
    tableId: string | null;
    tags: string[] | null;
    type: string | null;
    updatedAt: string | null;
}
export interface CompositeType {
    attributes: unknown | null;
    category: ObjectCategory | null;
    databaseId: string | null;
    description: string | null;
    id: string | null;
    label: string | null;
    name: string | null;
    schemaId: string | null;
    smartTags: unknown | null;
    tags: string[] | null;
}
export interface CorsSetting {
    allowedOrigins: string[] | null;
    apiId: string | null;
    databaseId: string | null;
    id: string | null;
}
export interface Database {
    createdAt: string | null;
    hash: string | null;
    id: string | null;
    label: string | null;
    name: string | null;
    ownerId: string | null;
    platform: boolean | null;
    schemaHash: string | null;
    updatedAt: string | null;
}
export interface DatabaseSetting {
    annotations: unknown | null;
    databaseId: string | null;
    enableAggregates: boolean | null;
    enableBulk: boolean | null;
    enableConnectionFilter: boolean | null;
    enableDirectUploads: boolean | null;
    enableI18N: boolean | null;
    enableLlm: boolean | null;
    enableLtree: boolean | null;
    enableManyToMany: boolean | null;
    enablePostgis: boolean | null;
    enablePresignedUploads: boolean | null;
    enableRealtime: boolean | null;
    enableSearch: boolean | null;
    id: string | null;
    labels: unknown | null;
    options: unknown | null;
}
export interface DatabaseTransfer {
    completedAt: string | null;
    createdAt: string | null;
    databaseId: string | null;
    expiresAt: string | null;
    id: string | null;
    initiatedBy: string | null;
    notes: string | null;
    sourceApproved: boolean | null;
    sourceApprovedAt: string | null;
    status: string | null;
    targetApproved: boolean | null;
    targetApprovedAt: string | null;
    targetOwnerId: string | null;
    updatedAt: string | null;
}
export interface DefaultPrivilege {
    databaseId: string | null;
    granteeName: string | null;
    id: string | null;
    isGrant: boolean | null;
    objectType: string | null;
    privilege: string | null;
    schemaId: string | null;
}
export interface Domain {
    annotations: unknown | null;
    apiId: string | null;
    databaseId: string | null;
    domain: ConstructiveInternalTypeHostname | null;
    id: string | null;
    labels: unknown | null;
    serviceId: string | null;
    siteId: string | null;
    subdomain: ConstructiveInternalTypeHostname | null;
}
export interface EmbeddingChunk {
    chunkOverlap: number | null;
    chunkSize: number | null;
    chunkStrategy: string | null;
    chunkingTaskName: string | null;
    chunksTableId: string | null;
    chunksTableName: string | null;
    contentFieldName: string | null;
    createdAt: string | null;
    databaseId: string | null;
    dimensions: number | null;
    embeddingFieldId: string | null;
    embeddingModel: string | null;
    embeddingProvider: string | null;
    enqueueChunkingJob: boolean | null;
    id: string | null;
    metadataFields: unknown | null;
    metric: string | null;
    parentFkFieldId: string | null;
    searchIndexes: unknown | null;
    tableId: string | null;
    updatedAt: string | null;
}
export interface Enum {
    category: ObjectCategory | null;
    databaseId: string | null;
    description: string | null;
    id: string | null;
    label: string | null;
    name: string | null;
    schemaId: string | null;
    smartTags: unknown | null;
    tags: string[] | null;
    values: string[] | null;
}
export interface Field {
    apiRequired: boolean | null;
    category: ObjectCategory | null;
    chk: unknown | null;
    chkExpr: unknown | null;
    createdAt: string | null;
    databaseId: string | null;
    defaultValue: unknown | null;
    description: string | null;
    fieldOrder: number | null;
    generationExpression: unknown | null;
    generationType: string | null;
    id: string | null;
    isRequired: boolean | null;
    label: string | null;
    max: number | null;
    min: number | null;
    name: string | null;
    regexp: string | null;
    smartTags: unknown | null;
    tableId: string | null;
    tags: string[] | null;
    type: unknown | null;
    updatedAt: string | null;
}
export interface ForeignKeyConstraint {
    category: ObjectCategory | null;
    createdAt: string | null;
    databaseId: string | null;
    deleteAction: string | null;
    description: string | null;
    fieldIds: string[] | null;
    id: string | null;
    name: string | null;
    refFieldIds: string[] | null;
    refTableId: string | null;
    smartTags: unknown | null;
    tableId: string | null;
    tags: string[] | null;
    type: string | null;
    updateAction: string | null;
    updatedAt: string | null;
}
export interface FullTextSearch {
    createdAt: string | null;
    databaseId: string | null;
    fieldId: string | null;
    fieldIds: string[] | null;
    id: string | null;
    langColumn: string | null;
    langs: string[] | null;
    tableId: string | null;
    updatedAt: string | null;
    weights: string[] | null;
}
export interface Function {
    databaseId: string | null;
    id: string | null;
    name: string | null;
    schemaId: string | null;
}
export interface HttpRoute {
    createdAt: string | null;
    createdBy: string | null;
    databaseId: string | null;
    domainId: string | null;
    id: string | null;
    isActive: boolean | null;
    method: string | null;
    path: string | null;
    priority: number | null;
    targetId: string | null;
    targetKind: string | null;
    updatedAt: string | null;
    updatedBy: string | null;
}
export interface Index {
    accessMethod: string | null;
    category: ObjectCategory | null;
    createdAt: string | null;
    databaseId: string | null;
    fieldIds: string[] | null;
    id: string | null;
    includeFieldIds: string[] | null;
    indexParams: unknown | null;
    isUnique: boolean | null;
    name: string | null;
    opClasses: string[] | null;
    options: unknown | null;
    smartTags: unknown | null;
    tableId: string | null;
    tags: string[] | null;
    updatedAt: string | null;
    whereClause: unknown | null;
}
export interface ManagedDomain {
    annotations: unknown | null;
    databaseId: string | null;
    domain: ConstructiveInternalTypeHostname | null;
    id: string | null;
    isWildcard: boolean | null;
    tlsReadyAt: string | null;
    tlsStatus: string | null;
    verificationStatus: string | null;
    verifiedAt: string | null;
}
export interface NodeTypeRegistry {
    category: string | null;
    description: string | null;
    displayName: string | null;
    name: string | null;
    parameterSchema: unknown | null;
    slug: string | null;
    tags: string[] | null;
}
export interface Partition {
    createdAt: string | null;
    databaseId: string | null;
    id: string | null;
    interval: string | null;
    isParented: boolean | null;
    namingPattern: string | null;
    partitionKeyId: string | null;
    premake: number | null;
    retention: string | null;
    retentionKeepTable: boolean | null;
    strategy: string | null;
    tableId: string | null;
    updatedAt: string | null;
}
export interface Policy {
    category: ObjectCategory | null;
    createdAt: string | null;
    data: unknown | null;
    databaseId: string | null;
    disabled: boolean | null;
    granteeName: string | null;
    id: string | null;
    name: string | null;
    permissive: boolean | null;
    policyType: string | null;
    privilege: string | null;
    smartTags: unknown | null;
    tableId: string | null;
    tags: string[] | null;
    updatedAt: string | null;
    withCheck: unknown | null;
}
export interface PrimaryKeyConstraint {
    category: ObjectCategory | null;
    createdAt: string | null;
    databaseId: string | null;
    fieldIds: string[] | null;
    id: string | null;
    name: string | null;
    smartTags: unknown | null;
    tableId: string | null;
    tags: string[] | null;
    type: string | null;
    updatedAt: string | null;
}
export interface PubkeySetting {
    cryptoNetwork: string | null;
    databaseId: string | null;
    id: string | null;
    schemaId: string | null;
    signInRecordFailureFunctionId: string | null;
    signInRequestChallengeFunctionId: string | null;
    signInWithChallengeFunctionId: string | null;
    signUpWithKeyFunctionId: string | null;
    userField: string | null;
}
export interface RlsSetting {
    authenticateFunctionId: string | null;
    authenticateSchemaId: string | null;
    authenticateStrictFunctionId: string | null;
    currentIpAddressFunctionId: string | null;
    currentRoleFunctionId: string | null;
    currentRoleIdFunctionId: string | null;
    currentUserAgentFunctionId: string | null;
    databaseId: string | null;
    id: string | null;
    roleSchemaId: string | null;
}
export interface Schema {
    apiExposure: ApiExposureLevel | null;
    category: ObjectCategory | null;
    createdAt: string | null;
    databaseId: string | null;
    description: string | null;
    id: string | null;
    isPublic: boolean | null;
    label: string | null;
    name: string | null;
    schemaName: string | null;
    smartTags: unknown | null;
    tags: string[] | null;
    updatedAt: string | null;
}
export interface SchemaGrant {
    createdAt: string | null;
    databaseId: string | null;
    granteeName: string | null;
    id: string | null;
    schemaId: string | null;
    updatedAt: string | null;
}
export interface Site {
    annotations: unknown | null;
    appleTouchIcon: ConstructiveInternalTypeImage | null;
    databaseId: string | null;
    dbname: string | null;
    description: string | null;
    favicon: ConstructiveInternalTypeAttachment | null;
    id: string | null;
    labels: unknown | null;
    logo: ConstructiveInternalTypeImage | null;
    ogImage: ConstructiveInternalTypeImage | null;
    title: string | null;
}
export interface SiteMetadatum {
    databaseId: string | null;
    description: string | null;
    id: string | null;
    ogImage: ConstructiveInternalTypeImage | null;
    siteId: string | null;
    title: string | null;
}
export interface SiteModule {
    data: unknown | null;
    databaseId: string | null;
    id: string | null;
    name: string | null;
    siteId: string | null;
}
export interface SiteTheme {
    databaseId: string | null;
    id: string | null;
    siteId: string | null;
    theme: unknown | null;
}
export interface SpatialRelation {
    category: ObjectCategory | null;
    createdAt: string | null;
    databaseId: string | null;
    fieldId: string | null;
    id: string | null;
    name: string | null;
    operator: string | null;
    paramName: string | null;
    refFieldId: string | null;
    refTableId: string | null;
    tableId: string | null;
    tags: string[] | null;
    updatedAt: string | null;
}
export interface SqlAction {
    actionId: string | null;
    actionName: string | null;
    actorId: string | null;
    content: string | null;
    createdAt: string | null;
    databaseId: string | null;
    deploy: string | null;
    deps: string[] | null;
    id: number | null;
    name: string | null;
    payload: unknown | null;
    revert: string | null;
    verify: string | null;
}
export interface Table {
    category: ObjectCategory | null;
    createdAt: string | null;
    databaseId: string | null;
    description: string | null;
    id: string | null;
    inheritsId: string | null;
    label: string | null;
    name: string | null;
    partitionKeyNames: string[] | null;
    partitionKeyTypes: string[] | null;
    partitionStrategy: string | null;
    partitioned: boolean | null;
    peoplestamps: boolean | null;
    pluralName: string | null;
    schemaId: string | null;
    singularName: string | null;
    smartTags: unknown | null;
    stepUp: unknown | null;
    tags: string[] | null;
    timestamps: boolean | null;
    updatedAt: string | null;
    useRls: boolean | null;
}
export interface TableGrant {
    createdAt: string | null;
    databaseId: string | null;
    fieldIds: string[] | null;
    granteeName: string | null;
    id: string | null;
    isGrant: boolean | null;
    privilege: string | null;
    tableId: string | null;
    updatedAt: string | null;
}
export interface Trigger {
    category: ObjectCategory | null;
    createdAt: string | null;
    databaseId: string | null;
    event: string | null;
    functionName: string | null;
    id: string | null;
    name: string | null;
    smartTags: unknown | null;
    tableId: string | null;
    tags: string[] | null;
    updatedAt: string | null;
}
export interface TriggerFunction {
    code: string | null;
    createdAt: string | null;
    databaseId: string | null;
    id: string | null;
    name: string | null;
    updatedAt: string | null;
}
export interface UniqueConstraint {
    category: ObjectCategory | null;
    createdAt: string | null;
    databaseId: string | null;
    description: string | null;
    fieldIds: string[] | null;
    id: string | null;
    name: string | null;
    smartTags: unknown | null;
    tableId: string | null;
    tags: string[] | null;
    type: string | null;
    updatedAt: string | null;
}
export interface View {
    category: ObjectCategory | null;
    data: unknown | null;
    databaseId: string | null;
    filterData: unknown | null;
    filterType: string | null;
    id: string | null;
    isReadOnly: boolean | null;
    name: string | null;
    schemaId: string | null;
    securityInvoker: boolean | null;
    smartTags: unknown | null;
    tableId: string | null;
    tags: string[] | null;
    viewType: string | null;
}
export interface ViewGrant {
    databaseId: string | null;
    granteeName: string | null;
    id: string | null;
    isGrant: boolean | null;
    privilege: string | null;
    viewId: string | null;
    withGrantOption: boolean | null;
}
export interface ViewRule {
    action: string | null;
    databaseId: string | null;
    event: string | null;
    id: string | null;
    name: string | null;
    viewId: string | null;
}
export interface ViewTable {
    databaseId: string | null;
    id: string | null;
    joinOrder: number | null;
    tableId: string | null;
    viewId: string | null;
}
export interface WebauthnSetting {
    attestationType: string | null;
    challengeExpirySeconds: string | null;
    credentialsSchemaId: string | null;
    credentialsTableId: string | null;
    databaseId: string | null;
    id: string | null;
    originAllowlist: string[] | null;
    requireUserVerification: boolean | null;
    residentKey: string | null;
    rpId: string | null;
    rpName: string | null;
    schemaId: string | null;
    sessionCredentialsTableId: string | null;
    sessionSecretsSchemaId: string | null;
    sessionSecretsTableId: string | null;
    sessionsSchemaId: string | null;
    sessionsTableId: string | null;
    userFieldId: string | null;
}
export interface StringFilter {
    isNull?: boolean;
    equalTo?: string;
    notEqualTo?: string;
    distinctFrom?: string;
    notDistinctFrom?: string;
    in?: string[];
    notIn?: string[];
    lessThan?: string;
    lessThanOrEqualTo?: string;
    greaterThan?: string;
    greaterThanOrEqualTo?: string;
    includes?: string;
    notIncludes?: string;
    includesInsensitive?: string;
    notIncludesInsensitive?: string;
    startsWith?: string;
    notStartsWith?: string;
    startsWithInsensitive?: string;
    notStartsWithInsensitive?: string;
    endsWith?: string;
    notEndsWith?: string;
    endsWithInsensitive?: string;
    notEndsWithInsensitive?: string;
    like?: string;
    notLike?: string;
    likeInsensitive?: string;
    notLikeInsensitive?: string;
}
export interface IntFilter {
    isNull?: boolean;
    equalTo?: number;
    notEqualTo?: number;
    distinctFrom?: number;
    notDistinctFrom?: number;
    in?: number[];
    notIn?: number[];
    lessThan?: number;
    lessThanOrEqualTo?: number;
    greaterThan?: number;
    greaterThanOrEqualTo?: number;
}
export interface FloatFilter {
    isNull?: boolean;
    equalTo?: number;
    notEqualTo?: number;
    distinctFrom?: number;
    notDistinctFrom?: number;
    in?: number[];
    notIn?: number[];
    lessThan?: number;
    lessThanOrEqualTo?: number;
    greaterThan?: number;
    greaterThanOrEqualTo?: number;
}
export interface BooleanFilter {
    isNull?: boolean;
    equalTo?: boolean;
    notEqualTo?: boolean;
}
export interface UUIDFilter {
    isNull?: boolean;
    equalTo?: string;
    notEqualTo?: string;
    distinctFrom?: string;
    notDistinctFrom?: string;
    in?: string[];
    notIn?: string[];
}
export interface DatetimeFilter {
    isNull?: boolean;
    equalTo?: string;
    notEqualTo?: string;
    distinctFrom?: string;
    notDistinctFrom?: string;
    in?: string[];
    notIn?: string[];
    lessThan?: string;
    lessThanOrEqualTo?: string;
    greaterThan?: string;
    greaterThanOrEqualTo?: string;
}
export interface DateFilter {
    isNull?: boolean;
    equalTo?: string;
    notEqualTo?: string;
    distinctFrom?: string;
    notDistinctFrom?: string;
    in?: string[];
    notIn?: string[];
    lessThan?: string;
    lessThanOrEqualTo?: string;
    greaterThan?: string;
    greaterThanOrEqualTo?: string;
}
export interface JSONFilter {
    isNull?: boolean;
    equalTo?: Record<string, unknown>;
    notEqualTo?: Record<string, unknown>;
    distinctFrom?: Record<string, unknown>;
    notDistinctFrom?: Record<string, unknown>;
    contains?: unknown;
    containedBy?: unknown;
    containsKey?: string;
    containsAllKeys?: string[];
    containsAnyKeys?: string[];
}
export interface BigIntFilter {
    isNull?: boolean;
    equalTo?: string;
    notEqualTo?: string;
    distinctFrom?: string;
    notDistinctFrom?: string;
    in?: string[];
    notIn?: string[];
    lessThan?: string;
    lessThanOrEqualTo?: string;
    greaterThan?: string;
    greaterThanOrEqualTo?: string;
}
export interface BigFloatFilter {
    isNull?: boolean;
    equalTo?: string;
    notEqualTo?: string;
    distinctFrom?: string;
    notDistinctFrom?: string;
    in?: string[];
    notIn?: string[];
    lessThan?: string;
    lessThanOrEqualTo?: string;
    greaterThan?: string;
    greaterThanOrEqualTo?: string;
}
export interface BitStringFilter {
    isNull?: boolean;
    equalTo?: string;
    notEqualTo?: string;
}
export interface InternetAddressFilter {
    isNull?: boolean;
    equalTo?: string;
    notEqualTo?: string;
    distinctFrom?: string;
    notDistinctFrom?: string;
    in?: string[];
    notIn?: string[];
    lessThan?: string;
    lessThanOrEqualTo?: string;
    greaterThan?: string;
    greaterThanOrEqualTo?: string;
    contains?: string;
    containedBy?: string;
    containsOrContainedBy?: string;
}
export interface FullTextFilter {
    matches?: string;
}
export interface VectorFilter {
    isNull?: boolean;
    equalTo?: number[];
    notEqualTo?: number[];
    distinctFrom?: number[];
    notDistinctFrom?: number[];
}
export interface StringListFilter {
    isNull?: boolean;
    equalTo?: string[];
    notEqualTo?: string[];
    distinctFrom?: string[];
    notDistinctFrom?: string[];
    lessThan?: string[];
    lessThanOrEqualTo?: string[];
    greaterThan?: string[];
    greaterThanOrEqualTo?: string[];
    contains?: string[];
    containedBy?: string[];
    overlaps?: string[];
    anyEqualTo?: string;
    anyNotEqualTo?: string;
    anyLessThan?: string;
    anyLessThanOrEqualTo?: string;
    anyGreaterThan?: string;
    anyGreaterThanOrEqualTo?: string;
}
export interface IntListFilter {
    isNull?: boolean;
    equalTo?: number[];
    notEqualTo?: number[];
    distinctFrom?: number[];
    notDistinctFrom?: number[];
    lessThan?: number[];
    lessThanOrEqualTo?: number[];
    greaterThan?: number[];
    greaterThanOrEqualTo?: number[];
    contains?: number[];
    containedBy?: number[];
    overlaps?: number[];
    anyEqualTo?: number;
    anyNotEqualTo?: number;
    anyLessThan?: number;
    anyLessThanOrEqualTo?: number;
    anyGreaterThan?: number;
    anyGreaterThanOrEqualTo?: number;
}
export interface UUIDListFilter {
    isNull?: boolean;
    equalTo?: string[];
    notEqualTo?: string[];
    distinctFrom?: string[];
    notDistinctFrom?: string[];
    lessThan?: string[];
    lessThanOrEqualTo?: string[];
    greaterThan?: string[];
    greaterThanOrEqualTo?: string[];
    contains?: string[];
    containedBy?: string[];
    overlaps?: string[];
    anyEqualTo?: string;
    anyNotEqualTo?: string;
    anyLessThan?: string;
    anyLessThanOrEqualTo?: string;
    anyGreaterThan?: string;
    anyGreaterThanOrEqualTo?: string;
}
