import type * as runtime from "@prisma/client/runtime/client";
import type * as Prisma from "../internal/prismaNamespace";
/**
 * Model directus_permissions
 * This model contains row level security and requires additional setup for migrations. Visit https://pris.ly/d/row-level-security for more info.
 */
export type directus_permissionsModel = runtime.Types.Result.DefaultSelection<Prisma.$directus_permissionsPayload>;
export type AggregateDirectus_permissions = {
    _count: Directus_permissionsCountAggregateOutputType | null;
    _avg: Directus_permissionsAvgAggregateOutputType | null;
    _sum: Directus_permissionsSumAggregateOutputType | null;
    _min: Directus_permissionsMinAggregateOutputType | null;
    _max: Directus_permissionsMaxAggregateOutputType | null;
};
export type Directus_permissionsAvgAggregateOutputType = {
    id: number | null;
};
export type Directus_permissionsSumAggregateOutputType = {
    id: number | null;
};
export type Directus_permissionsMinAggregateOutputType = {
    id: number | null;
    collection: string | null;
    action: string | null;
    fields: string | null;
    policy: string | null;
};
export type Directus_permissionsMaxAggregateOutputType = {
    id: number | null;
    collection: string | null;
    action: string | null;
    fields: string | null;
    policy: string | null;
};
export type Directus_permissionsCountAggregateOutputType = {
    id: number;
    collection: number;
    action: number;
    permissions: number;
    validation: number;
    presets: number;
    fields: number;
    policy: number;
    _all: number;
};
export type Directus_permissionsAvgAggregateInputType = {
    id?: true;
};
export type Directus_permissionsSumAggregateInputType = {
    id?: true;
};
export type Directus_permissionsMinAggregateInputType = {
    id?: true;
    collection?: true;
    action?: true;
    fields?: true;
    policy?: true;
};
export type Directus_permissionsMaxAggregateInputType = {
    id?: true;
    collection?: true;
    action?: true;
    fields?: true;
    policy?: true;
};
export type Directus_permissionsCountAggregateInputType = {
    id?: true;
    collection?: true;
    action?: true;
    permissions?: true;
    validation?: true;
    presets?: true;
    fields?: true;
    policy?: true;
    _all?: true;
};
export type Directus_permissionsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which directus_permissions to aggregate.
     */
    where?: Prisma.directus_permissionsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of directus_permissions to fetch.
     */
    orderBy?: Prisma.directus_permissionsOrderByWithRelationInput | Prisma.directus_permissionsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the start position
     */
    cursor?: Prisma.directus_permissionsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` directus_permissions from the position of the cursor.
     */
    take?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Skip the first `n` directus_permissions.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Count returned directus_permissions
    **/
    _count?: true | Directus_permissionsCountAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to average
    **/
    _avg?: Directus_permissionsAvgAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to sum
    **/
    _sum?: Directus_permissionsSumAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the minimum value
    **/
    _min?: Directus_permissionsMinAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the maximum value
    **/
    _max?: Directus_permissionsMaxAggregateInputType;
};
export type GetDirectus_permissionsAggregateType<T extends Directus_permissionsAggregateArgs> = {
    [P in keyof T & keyof AggregateDirectus_permissions]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateDirectus_permissions[P]> : Prisma.GetScalarType<T[P], AggregateDirectus_permissions[P]>;
};
export type directus_permissionsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    where?: Prisma.directus_permissionsWhereInput;
    orderBy?: Prisma.directus_permissionsOrderByWithAggregationInput | Prisma.directus_permissionsOrderByWithAggregationInput[];
    by: Prisma.Directus_permissionsScalarFieldEnum[] | Prisma.Directus_permissionsScalarFieldEnum;
    having?: Prisma.directus_permissionsScalarWhereWithAggregatesInput;
    take?: number;
    skip?: number;
    _count?: Directus_permissionsCountAggregateInputType | true;
    _avg?: Directus_permissionsAvgAggregateInputType;
    _sum?: Directus_permissionsSumAggregateInputType;
    _min?: Directus_permissionsMinAggregateInputType;
    _max?: Directus_permissionsMaxAggregateInputType;
};
export type Directus_permissionsGroupByOutputType = {
    id: number;
    collection: string;
    action: string;
    permissions: runtime.JsonValue | null;
    validation: runtime.JsonValue | null;
    presets: runtime.JsonValue | null;
    fields: string | null;
    policy: string;
    _count: Directus_permissionsCountAggregateOutputType | null;
    _avg: Directus_permissionsAvgAggregateOutputType | null;
    _sum: Directus_permissionsSumAggregateOutputType | null;
    _min: Directus_permissionsMinAggregateOutputType | null;
    _max: Directus_permissionsMaxAggregateOutputType | null;
};
type GetDirectus_permissionsGroupByPayload<T extends directus_permissionsGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<Directus_permissionsGroupByOutputType, T['by']> & {
    [P in ((keyof T) & (keyof Directus_permissionsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], Directus_permissionsGroupByOutputType[P]> : Prisma.GetScalarType<T[P], Directus_permissionsGroupByOutputType[P]>;
}>>;
export type directus_permissionsWhereInput = {
    AND?: Prisma.directus_permissionsWhereInput | Prisma.directus_permissionsWhereInput[];
    OR?: Prisma.directus_permissionsWhereInput[];
    NOT?: Prisma.directus_permissionsWhereInput | Prisma.directus_permissionsWhereInput[];
    id?: Prisma.IntFilter<"directus_permissions"> | number;
    collection?: Prisma.StringFilter<"directus_permissions"> | string;
    action?: Prisma.StringFilter<"directus_permissions"> | string;
    permissions?: Prisma.JsonNullableFilter<"directus_permissions">;
    validation?: Prisma.JsonNullableFilter<"directus_permissions">;
    presets?: Prisma.JsonNullableFilter<"directus_permissions">;
    fields?: Prisma.StringNullableFilter<"directus_permissions"> | string | null;
    policy?: Prisma.UuidFilter<"directus_permissions"> | string;
    directus_policies?: Prisma.XOR<Prisma.Directus_policiesScalarRelationFilter, Prisma.directus_policiesWhereInput>;
};
export type directus_permissionsOrderByWithRelationInput = {
    id?: Prisma.SortOrder;
    collection?: Prisma.SortOrder;
    action?: Prisma.SortOrder;
    permissions?: Prisma.SortOrderInput | Prisma.SortOrder;
    validation?: Prisma.SortOrderInput | Prisma.SortOrder;
    presets?: Prisma.SortOrderInput | Prisma.SortOrder;
    fields?: Prisma.SortOrderInput | Prisma.SortOrder;
    policy?: Prisma.SortOrder;
    directus_policies?: Prisma.directus_policiesOrderByWithRelationInput;
};
export type directus_permissionsWhereUniqueInput = Prisma.AtLeast<{
    id?: number;
    AND?: Prisma.directus_permissionsWhereInput | Prisma.directus_permissionsWhereInput[];
    OR?: Prisma.directus_permissionsWhereInput[];
    NOT?: Prisma.directus_permissionsWhereInput | Prisma.directus_permissionsWhereInput[];
    collection?: Prisma.StringFilter<"directus_permissions"> | string;
    action?: Prisma.StringFilter<"directus_permissions"> | string;
    permissions?: Prisma.JsonNullableFilter<"directus_permissions">;
    validation?: Prisma.JsonNullableFilter<"directus_permissions">;
    presets?: Prisma.JsonNullableFilter<"directus_permissions">;
    fields?: Prisma.StringNullableFilter<"directus_permissions"> | string | null;
    policy?: Prisma.UuidFilter<"directus_permissions"> | string;
    directus_policies?: Prisma.XOR<Prisma.Directus_policiesScalarRelationFilter, Prisma.directus_policiesWhereInput>;
}, "id">;
export type directus_permissionsOrderByWithAggregationInput = {
    id?: Prisma.SortOrder;
    collection?: Prisma.SortOrder;
    action?: Prisma.SortOrder;
    permissions?: Prisma.SortOrderInput | Prisma.SortOrder;
    validation?: Prisma.SortOrderInput | Prisma.SortOrder;
    presets?: Prisma.SortOrderInput | Prisma.SortOrder;
    fields?: Prisma.SortOrderInput | Prisma.SortOrder;
    policy?: Prisma.SortOrder;
    _count?: Prisma.directus_permissionsCountOrderByAggregateInput;
    _avg?: Prisma.directus_permissionsAvgOrderByAggregateInput;
    _max?: Prisma.directus_permissionsMaxOrderByAggregateInput;
    _min?: Prisma.directus_permissionsMinOrderByAggregateInput;
    _sum?: Prisma.directus_permissionsSumOrderByAggregateInput;
};
export type directus_permissionsScalarWhereWithAggregatesInput = {
    AND?: Prisma.directus_permissionsScalarWhereWithAggregatesInput | Prisma.directus_permissionsScalarWhereWithAggregatesInput[];
    OR?: Prisma.directus_permissionsScalarWhereWithAggregatesInput[];
    NOT?: Prisma.directus_permissionsScalarWhereWithAggregatesInput | Prisma.directus_permissionsScalarWhereWithAggregatesInput[];
    id?: Prisma.IntWithAggregatesFilter<"directus_permissions"> | number;
    collection?: Prisma.StringWithAggregatesFilter<"directus_permissions"> | string;
    action?: Prisma.StringWithAggregatesFilter<"directus_permissions"> | string;
    permissions?: Prisma.JsonNullableWithAggregatesFilter<"directus_permissions">;
    validation?: Prisma.JsonNullableWithAggregatesFilter<"directus_permissions">;
    presets?: Prisma.JsonNullableWithAggregatesFilter<"directus_permissions">;
    fields?: Prisma.StringNullableWithAggregatesFilter<"directus_permissions"> | string | null;
    policy?: Prisma.UuidWithAggregatesFilter<"directus_permissions"> | string;
};
export type directus_permissionsCreateInput = {
    collection: string;
    action: string;
    permissions?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    validation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    presets?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    fields?: string | null;
    directus_policies: Prisma.directus_policiesCreateNestedOneWithoutDirectus_permissionsInput;
};
export type directus_permissionsUncheckedCreateInput = {
    id?: number;
    collection: string;
    action: string;
    permissions?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    validation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    presets?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    fields?: string | null;
    policy: string;
};
export type directus_permissionsUpdateInput = {
    collection?: Prisma.StringFieldUpdateOperationsInput | string;
    action?: Prisma.StringFieldUpdateOperationsInput | string;
    permissions?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    validation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    presets?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    fields?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    directus_policies?: Prisma.directus_policiesUpdateOneRequiredWithoutDirectus_permissionsNestedInput;
};
export type directus_permissionsUncheckedUpdateInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    collection?: Prisma.StringFieldUpdateOperationsInput | string;
    action?: Prisma.StringFieldUpdateOperationsInput | string;
    permissions?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    validation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    presets?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    fields?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    policy?: Prisma.StringFieldUpdateOperationsInput | string;
};
export type directus_permissionsCreateManyInput = {
    id?: number;
    collection: string;
    action: string;
    permissions?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    validation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    presets?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    fields?: string | null;
    policy: string;
};
export type directus_permissionsUpdateManyMutationInput = {
    collection?: Prisma.StringFieldUpdateOperationsInput | string;
    action?: Prisma.StringFieldUpdateOperationsInput | string;
    permissions?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    validation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    presets?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    fields?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
};
export type directus_permissionsUncheckedUpdateManyInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    collection?: Prisma.StringFieldUpdateOperationsInput | string;
    action?: Prisma.StringFieldUpdateOperationsInput | string;
    permissions?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    validation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    presets?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    fields?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    policy?: Prisma.StringFieldUpdateOperationsInput | string;
};
export type directus_permissionsCountOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    collection?: Prisma.SortOrder;
    action?: Prisma.SortOrder;
    permissions?: Prisma.SortOrder;
    validation?: Prisma.SortOrder;
    presets?: Prisma.SortOrder;
    fields?: Prisma.SortOrder;
    policy?: Prisma.SortOrder;
};
export type directus_permissionsAvgOrderByAggregateInput = {
    id?: Prisma.SortOrder;
};
export type directus_permissionsMaxOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    collection?: Prisma.SortOrder;
    action?: Prisma.SortOrder;
    fields?: Prisma.SortOrder;
    policy?: Prisma.SortOrder;
};
export type directus_permissionsMinOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    collection?: Prisma.SortOrder;
    action?: Prisma.SortOrder;
    fields?: Prisma.SortOrder;
    policy?: Prisma.SortOrder;
};
export type directus_permissionsSumOrderByAggregateInput = {
    id?: Prisma.SortOrder;
};
export type Directus_permissionsListRelationFilter = {
    every?: Prisma.directus_permissionsWhereInput;
    some?: Prisma.directus_permissionsWhereInput;
    none?: Prisma.directus_permissionsWhereInput;
};
export type directus_permissionsOrderByRelationAggregateInput = {
    _count?: Prisma.SortOrder;
};
export type directus_permissionsCreateNestedManyWithoutDirectus_policiesInput = {
    create?: Prisma.XOR<Prisma.directus_permissionsCreateWithoutDirectus_policiesInput, Prisma.directus_permissionsUncheckedCreateWithoutDirectus_policiesInput> | Prisma.directus_permissionsCreateWithoutDirectus_policiesInput[] | Prisma.directus_permissionsUncheckedCreateWithoutDirectus_policiesInput[];
    connectOrCreate?: Prisma.directus_permissionsCreateOrConnectWithoutDirectus_policiesInput | Prisma.directus_permissionsCreateOrConnectWithoutDirectus_policiesInput[];
    createMany?: Prisma.directus_permissionsCreateManyDirectus_policiesInputEnvelope;
    connect?: Prisma.directus_permissionsWhereUniqueInput | Prisma.directus_permissionsWhereUniqueInput[];
};
export type directus_permissionsUncheckedCreateNestedManyWithoutDirectus_policiesInput = {
    create?: Prisma.XOR<Prisma.directus_permissionsCreateWithoutDirectus_policiesInput, Prisma.directus_permissionsUncheckedCreateWithoutDirectus_policiesInput> | Prisma.directus_permissionsCreateWithoutDirectus_policiesInput[] | Prisma.directus_permissionsUncheckedCreateWithoutDirectus_policiesInput[];
    connectOrCreate?: Prisma.directus_permissionsCreateOrConnectWithoutDirectus_policiesInput | Prisma.directus_permissionsCreateOrConnectWithoutDirectus_policiesInput[];
    createMany?: Prisma.directus_permissionsCreateManyDirectus_policiesInputEnvelope;
    connect?: Prisma.directus_permissionsWhereUniqueInput | Prisma.directus_permissionsWhereUniqueInput[];
};
export type directus_permissionsUpdateManyWithoutDirectus_policiesNestedInput = {
    create?: Prisma.XOR<Prisma.directus_permissionsCreateWithoutDirectus_policiesInput, Prisma.directus_permissionsUncheckedCreateWithoutDirectus_policiesInput> | Prisma.directus_permissionsCreateWithoutDirectus_policiesInput[] | Prisma.directus_permissionsUncheckedCreateWithoutDirectus_policiesInput[];
    connectOrCreate?: Prisma.directus_permissionsCreateOrConnectWithoutDirectus_policiesInput | Prisma.directus_permissionsCreateOrConnectWithoutDirectus_policiesInput[];
    upsert?: Prisma.directus_permissionsUpsertWithWhereUniqueWithoutDirectus_policiesInput | Prisma.directus_permissionsUpsertWithWhereUniqueWithoutDirectus_policiesInput[];
    createMany?: Prisma.directus_permissionsCreateManyDirectus_policiesInputEnvelope;
    set?: Prisma.directus_permissionsWhereUniqueInput | Prisma.directus_permissionsWhereUniqueInput[];
    disconnect?: Prisma.directus_permissionsWhereUniqueInput | Prisma.directus_permissionsWhereUniqueInput[];
    delete?: Prisma.directus_permissionsWhereUniqueInput | Prisma.directus_permissionsWhereUniqueInput[];
    connect?: Prisma.directus_permissionsWhereUniqueInput | Prisma.directus_permissionsWhereUniqueInput[];
    update?: Prisma.directus_permissionsUpdateWithWhereUniqueWithoutDirectus_policiesInput | Prisma.directus_permissionsUpdateWithWhereUniqueWithoutDirectus_policiesInput[];
    updateMany?: Prisma.directus_permissionsUpdateManyWithWhereWithoutDirectus_policiesInput | Prisma.directus_permissionsUpdateManyWithWhereWithoutDirectus_policiesInput[];
    deleteMany?: Prisma.directus_permissionsScalarWhereInput | Prisma.directus_permissionsScalarWhereInput[];
};
export type directus_permissionsUncheckedUpdateManyWithoutDirectus_policiesNestedInput = {
    create?: Prisma.XOR<Prisma.directus_permissionsCreateWithoutDirectus_policiesInput, Prisma.directus_permissionsUncheckedCreateWithoutDirectus_policiesInput> | Prisma.directus_permissionsCreateWithoutDirectus_policiesInput[] | Prisma.directus_permissionsUncheckedCreateWithoutDirectus_policiesInput[];
    connectOrCreate?: Prisma.directus_permissionsCreateOrConnectWithoutDirectus_policiesInput | Prisma.directus_permissionsCreateOrConnectWithoutDirectus_policiesInput[];
    upsert?: Prisma.directus_permissionsUpsertWithWhereUniqueWithoutDirectus_policiesInput | Prisma.directus_permissionsUpsertWithWhereUniqueWithoutDirectus_policiesInput[];
    createMany?: Prisma.directus_permissionsCreateManyDirectus_policiesInputEnvelope;
    set?: Prisma.directus_permissionsWhereUniqueInput | Prisma.directus_permissionsWhereUniqueInput[];
    disconnect?: Prisma.directus_permissionsWhereUniqueInput | Prisma.directus_permissionsWhereUniqueInput[];
    delete?: Prisma.directus_permissionsWhereUniqueInput | Prisma.directus_permissionsWhereUniqueInput[];
    connect?: Prisma.directus_permissionsWhereUniqueInput | Prisma.directus_permissionsWhereUniqueInput[];
    update?: Prisma.directus_permissionsUpdateWithWhereUniqueWithoutDirectus_policiesInput | Prisma.directus_permissionsUpdateWithWhereUniqueWithoutDirectus_policiesInput[];
    updateMany?: Prisma.directus_permissionsUpdateManyWithWhereWithoutDirectus_policiesInput | Prisma.directus_permissionsUpdateManyWithWhereWithoutDirectus_policiesInput[];
    deleteMany?: Prisma.directus_permissionsScalarWhereInput | Prisma.directus_permissionsScalarWhereInput[];
};
export type directus_permissionsCreateWithoutDirectus_policiesInput = {
    collection: string;
    action: string;
    permissions?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    validation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    presets?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    fields?: string | null;
};
export type directus_permissionsUncheckedCreateWithoutDirectus_policiesInput = {
    id?: number;
    collection: string;
    action: string;
    permissions?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    validation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    presets?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    fields?: string | null;
};
export type directus_permissionsCreateOrConnectWithoutDirectus_policiesInput = {
    where: Prisma.directus_permissionsWhereUniqueInput;
    create: Prisma.XOR<Prisma.directus_permissionsCreateWithoutDirectus_policiesInput, Prisma.directus_permissionsUncheckedCreateWithoutDirectus_policiesInput>;
};
export type directus_permissionsCreateManyDirectus_policiesInputEnvelope = {
    data: Prisma.directus_permissionsCreateManyDirectus_policiesInput | Prisma.directus_permissionsCreateManyDirectus_policiesInput[];
    skipDuplicates?: boolean;
};
export type directus_permissionsUpsertWithWhereUniqueWithoutDirectus_policiesInput = {
    where: Prisma.directus_permissionsWhereUniqueInput;
    update: Prisma.XOR<Prisma.directus_permissionsUpdateWithoutDirectus_policiesInput, Prisma.directus_permissionsUncheckedUpdateWithoutDirectus_policiesInput>;
    create: Prisma.XOR<Prisma.directus_permissionsCreateWithoutDirectus_policiesInput, Prisma.directus_permissionsUncheckedCreateWithoutDirectus_policiesInput>;
};
export type directus_permissionsUpdateWithWhereUniqueWithoutDirectus_policiesInput = {
    where: Prisma.directus_permissionsWhereUniqueInput;
    data: Prisma.XOR<Prisma.directus_permissionsUpdateWithoutDirectus_policiesInput, Prisma.directus_permissionsUncheckedUpdateWithoutDirectus_policiesInput>;
};
export type directus_permissionsUpdateManyWithWhereWithoutDirectus_policiesInput = {
    where: Prisma.directus_permissionsScalarWhereInput;
    data: Prisma.XOR<Prisma.directus_permissionsUpdateManyMutationInput, Prisma.directus_permissionsUncheckedUpdateManyWithoutDirectus_policiesInput>;
};
export type directus_permissionsScalarWhereInput = {
    AND?: Prisma.directus_permissionsScalarWhereInput | Prisma.directus_permissionsScalarWhereInput[];
    OR?: Prisma.directus_permissionsScalarWhereInput[];
    NOT?: Prisma.directus_permissionsScalarWhereInput | Prisma.directus_permissionsScalarWhereInput[];
    id?: Prisma.IntFilter<"directus_permissions"> | number;
    collection?: Prisma.StringFilter<"directus_permissions"> | string;
    action?: Prisma.StringFilter<"directus_permissions"> | string;
    permissions?: Prisma.JsonNullableFilter<"directus_permissions">;
    validation?: Prisma.JsonNullableFilter<"directus_permissions">;
    presets?: Prisma.JsonNullableFilter<"directus_permissions">;
    fields?: Prisma.StringNullableFilter<"directus_permissions"> | string | null;
    policy?: Prisma.UuidFilter<"directus_permissions"> | string;
};
export type directus_permissionsCreateManyDirectus_policiesInput = {
    id?: number;
    collection: string;
    action: string;
    permissions?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    validation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    presets?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    fields?: string | null;
};
export type directus_permissionsUpdateWithoutDirectus_policiesInput = {
    collection?: Prisma.StringFieldUpdateOperationsInput | string;
    action?: Prisma.StringFieldUpdateOperationsInput | string;
    permissions?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    validation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    presets?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    fields?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
};
export type directus_permissionsUncheckedUpdateWithoutDirectus_policiesInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    collection?: Prisma.StringFieldUpdateOperationsInput | string;
    action?: Prisma.StringFieldUpdateOperationsInput | string;
    permissions?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    validation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    presets?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    fields?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
};
export type directus_permissionsUncheckedUpdateManyWithoutDirectus_policiesInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    collection?: Prisma.StringFieldUpdateOperationsInput | string;
    action?: Prisma.StringFieldUpdateOperationsInput | string;
    permissions?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    validation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    presets?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    fields?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
};
export type directus_permissionsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    collection?: boolean;
    action?: boolean;
    permissions?: boolean;
    validation?: boolean;
    presets?: boolean;
    fields?: boolean;
    policy?: boolean;
    directus_policies?: boolean | Prisma.directus_policiesDefaultArgs<ExtArgs>;
}, ExtArgs["result"]["directus_permissions"]>;
export type directus_permissionsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    collection?: boolean;
    action?: boolean;
    permissions?: boolean;
    validation?: boolean;
    presets?: boolean;
    fields?: boolean;
    policy?: boolean;
    directus_policies?: boolean | Prisma.directus_policiesDefaultArgs<ExtArgs>;
}, ExtArgs["result"]["directus_permissions"]>;
export type directus_permissionsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    collection?: boolean;
    action?: boolean;
    permissions?: boolean;
    validation?: boolean;
    presets?: boolean;
    fields?: boolean;
    policy?: boolean;
    directus_policies?: boolean | Prisma.directus_policiesDefaultArgs<ExtArgs>;
}, ExtArgs["result"]["directus_permissions"]>;
export type directus_permissionsSelectScalar = {
    id?: boolean;
    collection?: boolean;
    action?: boolean;
    permissions?: boolean;
    validation?: boolean;
    presets?: boolean;
    fields?: boolean;
    policy?: boolean;
};
export type directus_permissionsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "collection" | "action" | "permissions" | "validation" | "presets" | "fields" | "policy", ExtArgs["result"]["directus_permissions"]>;
export type directus_permissionsInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    directus_policies?: boolean | Prisma.directus_policiesDefaultArgs<ExtArgs>;
};
export type directus_permissionsIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    directus_policies?: boolean | Prisma.directus_policiesDefaultArgs<ExtArgs>;
};
export type directus_permissionsIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    directus_policies?: boolean | Prisma.directus_policiesDefaultArgs<ExtArgs>;
};
export type $directus_permissionsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    name: "directus_permissions";
    objects: {
        directus_policies: Prisma.$directus_policiesPayload<ExtArgs>;
    };
    scalars: runtime.Types.Extensions.GetPayloadResult<{
        id: number;
        collection: string;
        action: string;
        permissions: runtime.JsonValue | null;
        validation: runtime.JsonValue | null;
        presets: runtime.JsonValue | null;
        fields: string | null;
        policy: string;
    }, ExtArgs["result"]["directus_permissions"]>;
    composites: {};
};
export type directus_permissionsGetPayload<S extends boolean | null | undefined | directus_permissionsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$directus_permissionsPayload, S>;
export type directus_permissionsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<directus_permissionsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: Directus_permissionsCountAggregateInputType | true;
};
export interface directus_permissionsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
    [K: symbol]: {
        types: Prisma.TypeMap<ExtArgs>['model']['directus_permissions'];
        meta: {
            name: 'directus_permissions';
        };
    };
    /**
     * Find zero or one Directus_permissions that matches the filter.
     * @param {directus_permissionsFindUniqueArgs} args - Arguments to find a Directus_permissions
     * @example
     * // Get one Directus_permissions
     * const directus_permissions = await prisma.directus_permissions.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends directus_permissionsFindUniqueArgs>(args: Prisma.SelectSubset<T, directus_permissionsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__directus_permissionsClient<runtime.Types.Result.GetResult<Prisma.$directus_permissionsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find one Directus_permissions that matches the filter or throw an error with `error.code='P2025'`
     * if no matches were found.
     * @param {directus_permissionsFindUniqueOrThrowArgs} args - Arguments to find a Directus_permissions
     * @example
     * // Get one Directus_permissions
     * const directus_permissions = await prisma.directus_permissions.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends directus_permissionsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, directus_permissionsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__directus_permissionsClient<runtime.Types.Result.GetResult<Prisma.$directus_permissionsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Directus_permissions that matches the filter.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {directus_permissionsFindFirstArgs} args - Arguments to find a Directus_permissions
     * @example
     * // Get one Directus_permissions
     * const directus_permissions = await prisma.directus_permissions.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends directus_permissionsFindFirstArgs>(args?: Prisma.SelectSubset<T, directus_permissionsFindFirstArgs<ExtArgs>>): Prisma.Prisma__directus_permissionsClient<runtime.Types.Result.GetResult<Prisma.$directus_permissionsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Directus_permissions that matches the filter or
     * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {directus_permissionsFindFirstOrThrowArgs} args - Arguments to find a Directus_permissions
     * @example
     * // Get one Directus_permissions
     * const directus_permissions = await prisma.directus_permissions.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends directus_permissionsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, directus_permissionsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__directus_permissionsClient<runtime.Types.Result.GetResult<Prisma.$directus_permissionsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find zero or more Directus_permissions that matches the filter.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {directus_permissionsFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Directus_permissions
     * const directus_permissions = await prisma.directus_permissions.findMany()
     *
     * // Get first 10 Directus_permissions
     * const directus_permissions = await prisma.directus_permissions.findMany({ take: 10 })
     *
     * // Only select the `id`
     * const directus_permissionsWithIdOnly = await prisma.directus_permissions.findMany({ select: { id: true } })
     *
     */
    findMany<T extends directus_permissionsFindManyArgs>(args?: Prisma.SelectSubset<T, directus_permissionsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$directus_permissionsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
    /**
     * Create a Directus_permissions.
     * @param {directus_permissionsCreateArgs} args - Arguments to create a Directus_permissions.
     * @example
     * // Create one Directus_permissions
     * const Directus_permissions = await prisma.directus_permissions.create({
     *   data: {
     *     // ... data to create a Directus_permissions
     *   }
     * })
     *
     */
    create<T extends directus_permissionsCreateArgs>(args: Prisma.SelectSubset<T, directus_permissionsCreateArgs<ExtArgs>>): Prisma.Prisma__directus_permissionsClient<runtime.Types.Result.GetResult<Prisma.$directus_permissionsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Create many Directus_permissions.
     * @param {directus_permissionsCreateManyArgs} args - Arguments to create many Directus_permissions.
     * @example
     * // Create many Directus_permissions
     * const directus_permissions = await prisma.directus_permissions.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     */
    createMany<T extends directus_permissionsCreateManyArgs>(args?: Prisma.SelectSubset<T, directus_permissionsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Create many Directus_permissions and returns the data saved in the database.
     * @param {directus_permissionsCreateManyAndReturnArgs} args - Arguments to create many Directus_permissions.
     * @example
     * // Create many Directus_permissions
     * const directus_permissions = await prisma.directus_permissions.createManyAndReturn({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Create many Directus_permissions and only return the `id`
     * const directus_permissionsWithIdOnly = await prisma.directus_permissions.createManyAndReturn({
     *   select: { id: true },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     *
     */
    createManyAndReturn<T extends directus_permissionsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, directus_permissionsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$directus_permissionsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
    /**
     * Delete a Directus_permissions.
     * @param {directus_permissionsDeleteArgs} args - Arguments to delete one Directus_permissions.
     * @example
     * // Delete one Directus_permissions
     * const Directus_permissions = await prisma.directus_permissions.delete({
     *   where: {
     *     // ... filter to delete one Directus_permissions
     *   }
     * })
     *
     */
    delete<T extends directus_permissionsDeleteArgs>(args: Prisma.SelectSubset<T, directus_permissionsDeleteArgs<ExtArgs>>): Prisma.Prisma__directus_permissionsClient<runtime.Types.Result.GetResult<Prisma.$directus_permissionsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Update one Directus_permissions.
     * @param {directus_permissionsUpdateArgs} args - Arguments to update one Directus_permissions.
     * @example
     * // Update one Directus_permissions
     * const directus_permissions = await prisma.directus_permissions.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    update<T extends directus_permissionsUpdateArgs>(args: Prisma.SelectSubset<T, directus_permissionsUpdateArgs<ExtArgs>>): Prisma.Prisma__directus_permissionsClient<runtime.Types.Result.GetResult<Prisma.$directus_permissionsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Delete zero or more Directus_permissions.
     * @param {directus_permissionsDeleteManyArgs} args - Arguments to filter Directus_permissions to delete.
     * @example
     * // Delete a few Directus_permissions
     * const { count } = await prisma.directus_permissions.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     *
     */
    deleteMany<T extends directus_permissionsDeleteManyArgs>(args?: Prisma.SelectSubset<T, directus_permissionsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Directus_permissions.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {directus_permissionsUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Directus_permissions
     * const directus_permissions = await prisma.directus_permissions.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    updateMany<T extends directus_permissionsUpdateManyArgs>(args: Prisma.SelectSubset<T, directus_permissionsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Directus_permissions and returns the data updated in the database.
     * @param {directus_permissionsUpdateManyAndReturnArgs} args - Arguments to update many Directus_permissions.
     * @example
     * // Update many Directus_permissions
     * const directus_permissions = await prisma.directus_permissions.updateManyAndReturn({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Update zero or more Directus_permissions and only return the `id`
     * const directus_permissionsWithIdOnly = await prisma.directus_permissions.updateManyAndReturn({
     *   select: { id: true },
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     *
     */
    updateManyAndReturn<T extends directus_permissionsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, directus_permissionsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$directus_permissionsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
    /**
     * Create or update one Directus_permissions.
     * @param {directus_permissionsUpsertArgs} args - Arguments to update or create a Directus_permissions.
     * @example
     * // Update or create a Directus_permissions
     * const directus_permissions = await prisma.directus_permissions.upsert({
     *   create: {
     *     // ... data to create a Directus_permissions
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Directus_permissions we want to update
     *   }
     * })
     */
    upsert<T extends directus_permissionsUpsertArgs>(args: Prisma.SelectSubset<T, directus_permissionsUpsertArgs<ExtArgs>>): Prisma.Prisma__directus_permissionsClient<runtime.Types.Result.GetResult<Prisma.$directus_permissionsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Count the number of Directus_permissions.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {directus_permissionsCountArgs} args - Arguments to filter Directus_permissions to count.
     * @example
     * // Count the number of Directus_permissions
     * const count = await prisma.directus_permissions.count({
     *   where: {
     *     // ... the filter for the Directus_permissions we want to count
     *   }
     * })
    **/
    count<T extends directus_permissionsCountArgs>(args?: Prisma.Subset<T, directus_permissionsCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], Directus_permissionsCountAggregateOutputType> : number>;
    /**
     * Allows you to perform aggregations operations on a Directus_permissions.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {Directus_permissionsAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
     * @example
     * // Ordered by age ascending
     * // Where email contains prisma.io
     * // Limited to the 10 users
     * const aggregations = await prisma.user.aggregate({
     *   _avg: {
     *     age: true,
     *   },
     *   where: {
     *     email: {
     *       contains: "prisma.io",
     *     },
     *   },
     *   orderBy: {
     *     age: "asc",
     *   },
     *   take: 10,
     * })
    **/
    aggregate<T extends Directus_permissionsAggregateArgs>(args: Prisma.Subset<T, Directus_permissionsAggregateArgs>): Prisma.PrismaPromise<GetDirectus_permissionsAggregateType<T>>;
    /**
     * Group by Directus_permissions.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {directus_permissionsGroupByArgs} args - Group by arguments.
     * @example
     * // Group by city, order by createdAt, get count
     * const result = await prisma.user.groupBy({
     *   by: ['city', 'createdAt'],
     *   orderBy: {
     *     createdAt: true
     *   },
     *   _count: {
     *     _all: true
     *   },
     * })
     *
    **/
    groupBy<T extends directus_permissionsGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
        orderBy: directus_permissionsGroupByArgs['orderBy'];
    } : {
        orderBy?: directus_permissionsGroupByArgs['orderBy'];
    }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
        [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
            Error,
            'Field ',
            P,
            ` in "having" needs to be provided in "by"`
        ];
    }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
        [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
    }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
        [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
    }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
        [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
    }[OrderFields]>(args: Prisma.SubsetIntersection<T, directus_permissionsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDirectus_permissionsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
    /**
     * Fields of the directus_permissions model
     */
    readonly fields: directus_permissionsFieldRefs;
}
/**
 * The delegate class that acts as a "Promise-like" for directus_permissions.
 * Why is this prefixed with `Prisma__`?
 * Because we want to prevent naming conflicts as mentioned in
 * https://github.com/prisma/prisma-client-js/issues/707
 */
export interface Prisma__directus_permissionsClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise";
    directus_policies<T extends Prisma.directus_policiesDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.directus_policiesDefaultArgs<ExtArgs>>): Prisma.Prisma__directus_policiesClient<runtime.Types.Result.GetResult<Prisma.$directus_policiesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
    /**
     * Attaches a callback for only the rejection of the Promise.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of the callback.
     */
    catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
    /**
     * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
     * resolved value cannot be modified from the callback.
     * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
     * @returns A Promise for the completion of the callback.
     */
    finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
}
/**
 * Fields of the directus_permissions model
 */
export interface directus_permissionsFieldRefs {
    readonly id: Prisma.FieldRef<"directus_permissions", 'Int'>;
    readonly collection: Prisma.FieldRef<"directus_permissions", 'String'>;
    readonly action: Prisma.FieldRef<"directus_permissions", 'String'>;
    readonly permissions: Prisma.FieldRef<"directus_permissions", 'Json'>;
    readonly validation: Prisma.FieldRef<"directus_permissions", 'Json'>;
    readonly presets: Prisma.FieldRef<"directus_permissions", 'Json'>;
    readonly fields: Prisma.FieldRef<"directus_permissions", 'String'>;
    readonly policy: Prisma.FieldRef<"directus_permissions", 'String'>;
}
/**
 * directus_permissions findUnique
 */
export type directus_permissionsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the directus_permissions
     */
    select?: Prisma.directus_permissionsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the directus_permissions
     */
    omit?: Prisma.directus_permissionsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.directus_permissionsInclude<ExtArgs> | null;
    /**
     * Filter, which directus_permissions to fetch.
     */
    where: Prisma.directus_permissionsWhereUniqueInput;
};
/**
 * directus_permissions findUniqueOrThrow
 */
export type directus_permissionsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the directus_permissions
     */
    select?: Prisma.directus_permissionsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the directus_permissions
     */
    omit?: Prisma.directus_permissionsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.directus_permissionsInclude<ExtArgs> | null;
    /**
     * Filter, which directus_permissions to fetch.
     */
    where: Prisma.directus_permissionsWhereUniqueInput;
};
/**
 * directus_permissions findFirst
 */
export type directus_permissionsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the directus_permissions
     */
    select?: Prisma.directus_permissionsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the directus_permissions
     */
    omit?: Prisma.directus_permissionsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.directus_permissionsInclude<ExtArgs> | null;
    /**
     * Filter, which directus_permissions to fetch.
     */
    where?: Prisma.directus_permissionsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of directus_permissions to fetch.
     */
    orderBy?: Prisma.directus_permissionsOrderByWithRelationInput | Prisma.directus_permissionsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for directus_permissions.
     */
    cursor?: Prisma.directus_permissionsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` directus_permissions from the position of the cursor.
     */
    take?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Skip the first `n` directus_permissions.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of directus_permissions.
     */
    distinct?: Prisma.Directus_permissionsScalarFieldEnum | Prisma.Directus_permissionsScalarFieldEnum[];
};
/**
 * directus_permissions findFirstOrThrow
 */
export type directus_permissionsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the directus_permissions
     */
    select?: Prisma.directus_permissionsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the directus_permissions
     */
    omit?: Prisma.directus_permissionsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.directus_permissionsInclude<ExtArgs> | null;
    /**
     * Filter, which directus_permissions to fetch.
     */
    where?: Prisma.directus_permissionsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of directus_permissions to fetch.
     */
    orderBy?: Prisma.directus_permissionsOrderByWithRelationInput | Prisma.directus_permissionsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for directus_permissions.
     */
    cursor?: Prisma.directus_permissionsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` directus_permissions from the position of the cursor.
     */
    take?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Skip the first `n` directus_permissions.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of directus_permissions.
     */
    distinct?: Prisma.Directus_permissionsScalarFieldEnum | Prisma.Directus_permissionsScalarFieldEnum[];
};
/**
 * directus_permissions findMany
 */
export type directus_permissionsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the directus_permissions
     */
    select?: Prisma.directus_permissionsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the directus_permissions
     */
    omit?: Prisma.directus_permissionsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.directus_permissionsInclude<ExtArgs> | null;
    /**
     * Filter, which directus_permissions to fetch.
     */
    where?: Prisma.directus_permissionsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of directus_permissions to fetch.
     */
    orderBy?: Prisma.directus_permissionsOrderByWithRelationInput | Prisma.directus_permissionsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for listing directus_permissions.
     */
    cursor?: Prisma.directus_permissionsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` directus_permissions from the position of the cursor.
     */
    take?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Skip the first `n` directus_permissions.
     */
    skip?: number;
    distinct?: Prisma.Directus_permissionsScalarFieldEnum | Prisma.Directus_permissionsScalarFieldEnum[];
};
/**
 * directus_permissions create
 */
export type directus_permissionsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the directus_permissions
     */
    select?: Prisma.directus_permissionsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the directus_permissions
     */
    omit?: Prisma.directus_permissionsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.directus_permissionsInclude<ExtArgs> | null;
    /**
     * The data needed to create a directus_permissions.
     */
    data: Prisma.XOR<Prisma.directus_permissionsCreateInput, Prisma.directus_permissionsUncheckedCreateInput>;
};
/**
 * directus_permissions createMany
 */
export type directus_permissionsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to create many directus_permissions.
     */
    data: Prisma.directus_permissionsCreateManyInput | Prisma.directus_permissionsCreateManyInput[];
    skipDuplicates?: boolean;
};
/**
 * directus_permissions createManyAndReturn
 */
export type directus_permissionsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the directus_permissions
     */
    select?: Prisma.directus_permissionsSelectCreateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the directus_permissions
     */
    omit?: Prisma.directus_permissionsOmit<ExtArgs> | null;
    /**
     * The data used to create many directus_permissions.
     */
    data: Prisma.directus_permissionsCreateManyInput | Prisma.directus_permissionsCreateManyInput[];
    skipDuplicates?: boolean;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.directus_permissionsIncludeCreateManyAndReturn<ExtArgs> | null;
};
/**
 * directus_permissions update
 */
export type directus_permissionsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the directus_permissions
     */
    select?: Prisma.directus_permissionsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the directus_permissions
     */
    omit?: Prisma.directus_permissionsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.directus_permissionsInclude<ExtArgs> | null;
    /**
     * The data needed to update a directus_permissions.
     */
    data: Prisma.XOR<Prisma.directus_permissionsUpdateInput, Prisma.directus_permissionsUncheckedUpdateInput>;
    /**
     * Choose, which directus_permissions to update.
     */
    where: Prisma.directus_permissionsWhereUniqueInput;
};
/**
 * directus_permissions updateMany
 */
export type directus_permissionsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to update directus_permissions.
     */
    data: Prisma.XOR<Prisma.directus_permissionsUpdateManyMutationInput, Prisma.directus_permissionsUncheckedUpdateManyInput>;
    /**
     * Filter which directus_permissions to update
     */
    where?: Prisma.directus_permissionsWhereInput;
    /**
     * Limit how many directus_permissions to update.
     */
    limit?: number;
};
/**
 * directus_permissions updateManyAndReturn
 */
export type directus_permissionsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the directus_permissions
     */
    select?: Prisma.directus_permissionsSelectUpdateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the directus_permissions
     */
    omit?: Prisma.directus_permissionsOmit<ExtArgs> | null;
    /**
     * The data used to update directus_permissions.
     */
    data: Prisma.XOR<Prisma.directus_permissionsUpdateManyMutationInput, Prisma.directus_permissionsUncheckedUpdateManyInput>;
    /**
     * Filter which directus_permissions to update
     */
    where?: Prisma.directus_permissionsWhereInput;
    /**
     * Limit how many directus_permissions to update.
     */
    limit?: number;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.directus_permissionsIncludeUpdateManyAndReturn<ExtArgs> | null;
};
/**
 * directus_permissions upsert
 */
export type directus_permissionsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the directus_permissions
     */
    select?: Prisma.directus_permissionsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the directus_permissions
     */
    omit?: Prisma.directus_permissionsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.directus_permissionsInclude<ExtArgs> | null;
    /**
     * The filter to search for the directus_permissions to update in case it exists.
     */
    where: Prisma.directus_permissionsWhereUniqueInput;
    /**
     * In case the directus_permissions found by the `where` argument doesn't exist, create a new directus_permissions with this data.
     */
    create: Prisma.XOR<Prisma.directus_permissionsCreateInput, Prisma.directus_permissionsUncheckedCreateInput>;
    /**
     * In case the directus_permissions was found with the provided `where` argument, update it with this data.
     */
    update: Prisma.XOR<Prisma.directus_permissionsUpdateInput, Prisma.directus_permissionsUncheckedUpdateInput>;
};
/**
 * directus_permissions delete
 */
export type directus_permissionsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the directus_permissions
     */
    select?: Prisma.directus_permissionsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the directus_permissions
     */
    omit?: Prisma.directus_permissionsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.directus_permissionsInclude<ExtArgs> | null;
    /**
     * Filter which directus_permissions to delete.
     */
    where: Prisma.directus_permissionsWhereUniqueInput;
};
/**
 * directus_permissions deleteMany
 */
export type directus_permissionsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which directus_permissions to delete
     */
    where?: Prisma.directus_permissionsWhereInput;
    /**
     * Limit how many directus_permissions to delete.
     */
    limit?: number;
};
/**
 * directus_permissions without action
 */
export type directus_permissionsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the directus_permissions
     */
    select?: Prisma.directus_permissionsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the directus_permissions
     */
    omit?: Prisma.directus_permissionsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.directus_permissionsInclude<ExtArgs> | null;
};
export {};
