/**
 * GraphQL schema types for custom operations
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { PlatformConfig, PlatformConfigDefinition, BooleanFilter, DatetimeFilter, JSONFilter, StringFilter, UUIDFilter } from './types';
/** Methods to use when ordering `PlatformConfigDefinition`. */
export type PlatformConfigDefinitionOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'DEFAULT_VALUE_ASC' | 'DEFAULT_VALUE_DESC' | 'IS_BUILT_IN_ASC' | 'IS_BUILT_IN_DESC' | 'LABELS_ASC' | 'LABELS_DESC' | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC';
/** Methods to use when ordering `PlatformConfig`. */
export type PlatformConfigOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAMESPACE_ID_ASC' | 'NAMESPACE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'VALUE_ASC' | 'VALUE_DESC' | 'LABELS_ASC' | 'LABELS_DESC' | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC';
/** A filter to be used against `PlatformConfigDefinition` object types. All fields are combined with a logical ‘and.’ */
export interface PlatformConfigDefinitionFilter {
    /** Filter by the object’s `id` field. */
    id?: UUIDFilter;
    /** Filter by the object’s `createdAt` field. */
    createdAt?: DatetimeFilter;
    /** Filter by the object’s `updatedAt` field. */
    updatedAt?: DatetimeFilter;
    /** Filter by the object’s `name` field. */
    name?: StringFilter;
    /** Filter by the object’s `description` field. */
    description?: StringFilter;
    /** Filter by the object’s `defaultValue` field. */
    defaultValue?: StringFilter;
    /** Filter by the object’s `isBuiltIn` field. */
    isBuiltIn?: BooleanFilter;
    /** Filter by the object’s `labels` field. */
    labels?: JSONFilter;
    /** Filter by the object’s `annotations` field. */
    annotations?: JSONFilter;
    /** Checks for all expressions in this list. */
    and?: PlatformConfigDefinitionFilter[];
    /** Checks for any expressions in this list. */
    or?: PlatformConfigDefinitionFilter[];
    /** Negates the expression. */
    not?: PlatformConfigDefinitionFilter;
}
/** A filter to be used against `PlatformConfig` object types. All fields are combined with a logical ‘and.’ */
export interface PlatformConfigFilter {
    /** Filter by the object’s `id` field. */
    id?: UUIDFilter;
    /** Filter by the object’s `namespaceId` field. */
    namespaceId?: UUIDFilter;
    /** Filter by the object’s `name` field. */
    name?: StringFilter;
    /** Filter by the object’s `value` field. */
    value?: StringFilter;
    /** Filter by the object’s `labels` field. */
    labels?: JSONFilter;
    /** Filter by the object’s `annotations` field. */
    annotations?: JSONFilter;
    /** Filter by the object’s `description` field. */
    description?: StringFilter;
    /** Filter by the object’s `createdAt` field. */
    createdAt?: DatetimeFilter;
    /** Filter by the object’s `updatedAt` field. */
    updatedAt?: DatetimeFilter;
    /** Filter by the object’s `expiresAt` field. */
    expiresAt?: DatetimeFilter;
    /** Checks for all expressions in this list. */
    and?: PlatformConfigFilter[];
    /** Checks for any expressions in this list. */
    or?: PlatformConfigFilter[];
    /** Negates the expression. */
    not?: PlatformConfigFilter;
}
export interface PlatformSecretsDelInput {
    clientMutationId?: string;
    secretName?: string;
    namespaceId?: string;
}
export interface OrgSecretsDelInput {
    clientMutationId?: string;
    ownerId?: string;
    secretName?: string;
    namespaceId?: string;
}
export interface PlatformSecretsRemoveArrayInput {
    clientMutationId?: string;
    secretNames?: string[];
    namespaceId?: string;
}
export interface OrgSecretsRemoveArrayInput {
    clientMutationId?: string;
    ownerId?: string;
    secretNames?: string[];
    namespaceId?: string;
}
export interface PlatformSecretsRotateInput {
    clientMutationId?: string;
    secretName?: string;
    secretValue?: string;
    namespaceId?: string;
    algo?: string;
}
export interface PlatformSecretsSetInput {
    clientMutationId?: string;
    secretName?: string;
    secretValue?: string;
    secretNamespaceId?: string;
    algo?: string;
}
export interface OrgSecretsRotateInput {
    clientMutationId?: string;
    ownerId?: string;
    secretName?: string;
    secretValue?: string;
    namespaceId?: string;
    algo?: string;
}
export interface OrgSecretsSetInput {
    clientMutationId?: string;
    scopeOwnerId?: string;
    secretName?: string;
    secretValue?: string;
    secretNamespaceId?: string;
    algo?: string;
}
export interface CreatePlatformConfigDefinitionInput {
    clientMutationId?: string;
    /** The `PlatformConfigDefinition` to be created by this mutation. */
    platformConfigDefinition: PlatformConfigDefinitionInput;
}
/** An input for mutations affecting `PlatformConfigDefinition` */
export interface PlatformConfigDefinitionInput {
    /** Unique identifier for this config definition */
    id?: string;
    createdAt?: string;
    updatedAt?: string;
    /** Config key name (must match config table name for resolution) */
    name: string;
    /** Human-readable description of what this config key controls */
    description?: string;
    /** Default value used when no config entry exists for a namespace */
    defaultValue?: string;
    /** Whether this row was seeded as a built-in config definition */
    isBuiltIn?: boolean;
    /** Key-value metadata for filtering and grouping config definitions */
    labels?: unknown;
    /** Freeform metadata annotations for config definitions */
    annotations?: unknown;
}
export interface CreatePlatformConfigInput {
    clientMutationId?: string;
    /** The `PlatformConfig` to be created by this mutation. */
    platformConfig: PlatformConfigInput;
}
/** An input for mutations affecting `PlatformConfig` */
export interface PlatformConfigInput {
    /** Unique identifier for this config entry */
    id?: string;
    /** FK to namespaces — logical grouping for config entries */
    namespaceId: string;
    /** Key name identifying the config entry */
    name: string;
    /** Plaintext config value */
    value?: string;
    /** Key/value pairs for selecting/filtering config entries */
    labels?: unknown;
    /** Freeform metadata for tooling and operational notes */
    annotations?: unknown;
    /** Human-readable note about this config entry */
    description?: string;
    createdAt?: string;
    updatedAt?: string;
    /** Optional expiration timestamp for time-limited config entries */
    expiresAt?: string;
}
export interface UpdatePlatformConfigDefinitionInput {
    clientMutationId?: string;
    /** Unique identifier for this config definition */
    id: string;
    /** An object where the defined keys will be set on the `PlatformConfigDefinition` being updated. */
    platformConfigDefinitionPatch: PlatformConfigDefinitionPatch;
}
/** Represents an update to a `PlatformConfigDefinition`. Fields that are set will be updated. */
export interface PlatformConfigDefinitionPatch {
    /** Unique identifier for this config definition */
    id?: string;
    createdAt?: string;
    updatedAt?: string;
    /** Config key name (must match config table name for resolution) */
    name?: string;
    /** Human-readable description of what this config key controls */
    description?: string;
    /** Default value used when no config entry exists for a namespace */
    defaultValue?: string;
    /** Whether this row was seeded as a built-in config definition */
    isBuiltIn?: boolean;
    /** Key-value metadata for filtering and grouping config definitions */
    labels?: unknown;
    /** Freeform metadata annotations for config definitions */
    annotations?: unknown;
}
export interface UpdatePlatformConfigInput {
    clientMutationId?: string;
    /** Unique identifier for this config entry */
    id: string;
    /** An object where the defined keys will be set on the `PlatformConfig` being updated. */
    platformConfigPatch: PlatformConfigPatch;
}
/** Represents an update to a `PlatformConfig`. Fields that are set will be updated. */
export interface PlatformConfigPatch {
    /** Unique identifier for this config entry */
    id?: string;
    /** FK to namespaces — logical grouping for config entries */
    namespaceId?: string;
    /** Key name identifying the config entry */
    name?: string;
    /** Plaintext config value */
    value?: string;
    /** Key/value pairs for selecting/filtering config entries */
    labels?: unknown;
    /** Freeform metadata for tooling and operational notes */
    annotations?: unknown;
    /** Human-readable note about this config entry */
    description?: string;
    createdAt?: string;
    updatedAt?: string;
    /** Optional expiration timestamp for time-limited config entries */
    expiresAt?: string;
}
export interface DeletePlatformConfigDefinitionInput {
    clientMutationId?: string;
    /** Unique identifier for this config definition */
    id: string;
}
export interface DeletePlatformConfigInput {
    clientMutationId?: string;
    /** Unique identifier for this config entry */
    id: string;
}
export interface ProvisionBucketInput {
    /** The logical bucket key (e.g., "public", "private") */
    bucketKey: string;
    /**
     * Owner entity ID for entity-scoped bucket provisioning.
     * Omit for app-level (database-wide) storage.
     */
    ownerId?: string;
}
/** A connection to a list of `PlatformConfigDefinition` values. */
export interface PlatformConfigDefinitionConnection {
    nodes: PlatformConfigDefinition[];
    edges: PlatformConfigDefinitionEdge[];
    pageInfo: PageInfo;
    totalCount: number;
}
/** A connection to a list of `PlatformConfig` values. */
export interface PlatformConfigConnection {
    nodes: PlatformConfig[];
    edges: PlatformConfigEdge[];
    pageInfo: PageInfo;
    totalCount: number;
}
/** Root meta schema type */
export interface MetaSchema {
    tables: MetaTable[];
}
export interface PlatformSecretsDelPayload {
    clientMutationId?: string | null;
}
export interface OrgSecretsDelPayload {
    clientMutationId?: string | null;
}
export interface PlatformSecretsRemoveArrayPayload {
    clientMutationId?: string | null;
}
export interface OrgSecretsRemoveArrayPayload {
    clientMutationId?: string | null;
}
export interface PlatformSecretsRotatePayload {
    clientMutationId?: string | null;
    result?: boolean | null;
}
export interface PlatformSecretsSetPayload {
    clientMutationId?: string | null;
    result?: boolean | null;
}
export interface OrgSecretsRotatePayload {
    clientMutationId?: string | null;
    result?: boolean | null;
}
export interface OrgSecretsSetPayload {
    clientMutationId?: string | null;
    result?: boolean | null;
}
export interface CreatePlatformConfigDefinitionPayload {
    clientMutationId?: string | null;
    /** The `PlatformConfigDefinition` that was created by this mutation. */
    platformConfigDefinition?: PlatformConfigDefinition | null;
    platformConfigDefinitionEdge?: PlatformConfigDefinitionEdge | null;
}
export interface CreatePlatformConfigPayload {
    clientMutationId?: string | null;
    /** The `PlatformConfig` that was created by this mutation. */
    platformConfig?: PlatformConfig | null;
    platformConfigEdge?: PlatformConfigEdge | null;
}
export interface UpdatePlatformConfigDefinitionPayload {
    clientMutationId?: string | null;
    /** The `PlatformConfigDefinition` that was updated by this mutation. */
    platformConfigDefinition?: PlatformConfigDefinition | null;
    platformConfigDefinitionEdge?: PlatformConfigDefinitionEdge | null;
}
export interface UpdatePlatformConfigPayload {
    clientMutationId?: string | null;
    /** The `PlatformConfig` that was updated by this mutation. */
    platformConfig?: PlatformConfig | null;
    platformConfigEdge?: PlatformConfigEdge | null;
}
export interface DeletePlatformConfigDefinitionPayload {
    clientMutationId?: string | null;
    /** The `PlatformConfigDefinition` that was deleted by this mutation. */
    platformConfigDefinition?: PlatformConfigDefinition | null;
    platformConfigDefinitionEdge?: PlatformConfigDefinitionEdge | null;
}
export interface DeletePlatformConfigPayload {
    clientMutationId?: string | null;
    /** The `PlatformConfig` that was deleted by this mutation. */
    platformConfig?: PlatformConfig | null;
    platformConfigEdge?: PlatformConfigEdge | null;
}
export interface ProvisionBucketPayload {
    /** Whether provisioning succeeded */
    success: boolean;
    /** The S3 bucket name that was provisioned */
    bucketName: string;
    /** The access type applied */
    accessType: string;
    /** The storage provider used */
    provider: string;
    /** The S3 endpoint (null for AWS S3 default) */
    endpoint?: string | null;
    /** Error message if provisioning failed */
    error?: string | null;
}
/** A `PlatformConfigDefinition` edge in the connection. */
export interface PlatformConfigDefinitionEdge {
    cursor?: string | null;
    /** The `PlatformConfigDefinition` at the end of the edge. */
    node?: PlatformConfigDefinition | null;
}
/** Information about pagination in a connection. */
export interface PageInfo {
    /** When paginating forwards, are there more items? */
    hasNextPage: boolean;
    /** When paginating backwards, are there more items? */
    hasPreviousPage: boolean;
    /** When paginating backwards, the cursor to continue. */
    startCursor?: string | null;
    /** When paginating forwards, the cursor to continue. */
    endCursor?: string | null;
}
/** A `PlatformConfig` edge in the connection. */
export interface PlatformConfigEdge {
    cursor?: string | null;
    /** The `PlatformConfig` at the end of the edge. */
    node?: PlatformConfig | null;
}
/** Information about a database table */
export interface MetaTable {
    name: string;
    schemaName: string;
    fields: MetaField[];
    indexes: MetaIndex[];
    constraints: MetaConstraints;
    foreignKeyConstraints: MetaForeignKeyConstraint[];
    primaryKeyConstraints: MetaPrimaryKeyConstraint[];
    uniqueConstraints: MetaUniqueConstraint[];
    relations: MetaRelations;
    inflection: MetaInflection;
    query: MetaQuery;
    /** Storage metadata (null if not a storage table) */
    storage?: MetaStorage | null;
    /** Search metadata (null if no search configured) */
    search?: MetaSearch | null;
    /** i18n metadata (null if no @i18n tag) */
    i18n?: MetaI18n | null;
    /** Realtime metadata (null if no @realtime tag) */
    realtime?: MetaRealtime | null;
}
/** Information about a table field/column */
export interface MetaField {
    name: string;
    type: MetaType;
    isNotNull: boolean;
    hasDefault: boolean;
    isPrimaryKey: boolean;
    isForeignKey: boolean;
    description?: string | null;
    /** Enum metadata if this field has an enum type */
    enumValues?: MetaEnum | null;
}
/** Information about a database index */
export interface MetaIndex {
    name: string;
    isUnique: boolean;
    isPrimary: boolean;
    columns: string[];
    fields?: MetaField[] | null;
}
/** Table constraints */
export interface MetaConstraints {
    primaryKey?: MetaPrimaryKeyConstraint | null;
    unique: MetaUniqueConstraint[];
    foreignKey: MetaForeignKeyConstraint[];
}
/** Information about a foreign key constraint */
export interface MetaForeignKeyConstraint {
    name: string;
    fields: MetaField[];
    referencedTable: string;
    referencedFields: string[];
    refFields?: MetaField[] | null;
    refTable?: MetaRefTable | null;
}
/** Information about a primary key constraint */
export interface MetaPrimaryKeyConstraint {
    name: string;
    fields: MetaField[];
}
/** Information about a unique constraint */
export interface MetaUniqueConstraint {
    name: string;
    fields: MetaField[];
}
/** Table relations */
export interface MetaRelations {
    belongsTo: MetaBelongsToRelation[];
    has: MetaHasRelation[];
    hasOne: MetaHasRelation[];
    hasMany: MetaHasRelation[];
    manyToMany: MetaManyToManyRelation[];
}
/** Table inflection names */
export interface MetaInflection {
    tableType: string;
    allRows: string;
    connection: string;
    edge: string;
    filterType?: string | null;
    orderByType: string;
    conditionType: string;
    patchType?: string | null;
    createInputType: string;
    createPayloadType: string;
    updatePayloadType?: string | null;
    deletePayloadType: string;
}
/** Table query/mutation names */
export interface MetaQuery {
    all: string;
    one?: string | null;
    create?: string | null;
    update?: string | null;
    delete?: string | null;
}
/** Storage metadata for a table */
export interface MetaStorage {
    /** Whether this table is a storage files table */
    isFilesTable: boolean;
    /** Whether this table is a storage buckets table */
    isBucketsTable: boolean;
}
/** Search metadata for a table */
export interface MetaSearch {
    /** Active search algorithms on this table */
    algorithms: string[];
    /** Searchable columns with their algorithm */
    columns: MetaSearchColumn[];
    /** Whether unifiedSearch composite filter is available */
    hasUnifiedSearch: boolean;
    /** Per-table search configuration */
    config?: MetaSearchConfig | null;
}
/** i18n metadata for a table with @i18n tag */
export interface MetaI18n {
    /** Name of the translation table */
    translationTable: string;
    /** Fields that are translatable */
    translatableFields: MetaI18nField[];
}
/** Realtime metadata for a table with @realtime tag */
export interface MetaRealtime {
    /** The generated subscription field name (e.g. onPostChanged) */
    subscriptionFieldName: string;
}
/** Information about a PostgreSQL type */
export interface MetaType {
    pgType: string;
    gqlType: string;
    isArray: boolean;
    isNotNull?: boolean | null;
    hasDefault?: boolean | null;
    subtype?: string | null;
}
/** Information about a PostgreSQL enum type */
export interface MetaEnum {
    /** The PostgreSQL enum type name */
    name: string;
    /** Allowed values for this enum */
    values: string[];
}
/** Reference to a related table */
export interface MetaRefTable {
    name: string;
}
/** A belongs-to (forward FK) relation */
export interface MetaBelongsToRelation {
    fieldName?: string | null;
    isUnique: boolean;
    type?: string | null;
    keys: MetaField[];
    references: MetaRefTable;
}
/** A has-one or has-many (reverse FK) relation */
export interface MetaHasRelation {
    fieldName?: string | null;
    isUnique: boolean;
    type?: string | null;
    keys: MetaField[];
    referencedBy: MetaRefTable;
}
/** A many-to-many relation via junction table */
export interface MetaManyToManyRelation {
    fieldName?: string | null;
    type?: string | null;
    junctionTable: MetaRefTable;
    junctionLeftConstraint: MetaForeignKeyConstraint;
    junctionLeftKeyAttributes: MetaField[];
    junctionRightConstraint: MetaForeignKeyConstraint;
    junctionRightKeyAttributes: MetaField[];
    leftKeyAttributes: MetaField[];
    rightKeyAttributes: MetaField[];
    rightTable: MetaRefTable;
}
/** A searchable column with its algorithm */
export interface MetaSearchColumn {
    /** Column name (camelCase) */
    name: string;
    /** Search algorithm: tsvector, bm25, trgm, or vector */
    algorithm: string;
}
/** Per-table search configuration from @searchConfig smart tag */
export interface MetaSearchConfig {
    /** JSON-encoded per-adapter score weights */
    weights?: string | null;
    /** Whether recency boosting is enabled */
    boostRecent: boolean;
    /** Field used for recency decay */
    boostRecencyField?: string | null;
    /** Exponential decay factor per day */
    boostRecencyDecay?: number | null;
}
/** A translatable field */
export interface MetaI18nField {
    /** GraphQL field name */
    name: string;
    /** PostgreSQL column type (text, citext) */
    type: string;
}
