import type * as runtime from "@prisma/client/runtime/client";
import type * as Prisma from "../internal/prismaNamespace";
/**
 * Model integrations_spaces
 * 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 integrations_spacesModel = runtime.Types.Result.DefaultSelection<Prisma.$integrations_spacesPayload>;
export type AggregateIntegrations_spaces = {
    _count: Integrations_spacesCountAggregateOutputType | null;
    _avg: Integrations_spacesAvgAggregateOutputType | null;
    _sum: Integrations_spacesSumAggregateOutputType | null;
    _min: Integrations_spacesMinAggregateOutputType | null;
    _max: Integrations_spacesMaxAggregateOutputType | null;
};
export type Integrations_spacesAvgAggregateOutputType = {
    id: number | null;
    integrations_id: number | null;
    spaces_id: number | null;
};
export type Integrations_spacesSumAggregateOutputType = {
    id: number | null;
    integrations_id: number | null;
    spaces_id: number | null;
};
export type Integrations_spacesMinAggregateOutputType = {
    id: number | null;
    integrations_id: number | null;
    spaces_id: number | null;
};
export type Integrations_spacesMaxAggregateOutputType = {
    id: number | null;
    integrations_id: number | null;
    spaces_id: number | null;
};
export type Integrations_spacesCountAggregateOutputType = {
    id: number;
    integrations_id: number;
    spaces_id: number;
    _all: number;
};
export type Integrations_spacesAvgAggregateInputType = {
    id?: true;
    integrations_id?: true;
    spaces_id?: true;
};
export type Integrations_spacesSumAggregateInputType = {
    id?: true;
    integrations_id?: true;
    spaces_id?: true;
};
export type Integrations_spacesMinAggregateInputType = {
    id?: true;
    integrations_id?: true;
    spaces_id?: true;
};
export type Integrations_spacesMaxAggregateInputType = {
    id?: true;
    integrations_id?: true;
    spaces_id?: true;
};
export type Integrations_spacesCountAggregateInputType = {
    id?: true;
    integrations_id?: true;
    spaces_id?: true;
    _all?: true;
};
export type Integrations_spacesAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which integrations_spaces to aggregate.
     */
    where?: Prisma.integrations_spacesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of integrations_spaces to fetch.
     */
    orderBy?: Prisma.integrations_spacesOrderByWithRelationInput | Prisma.integrations_spacesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the start position
     */
    cursor?: Prisma.integrations_spacesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` integrations_spaces 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` integrations_spaces.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Count returned integrations_spaces
    **/
    _count?: true | Integrations_spacesCountAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to average
    **/
    _avg?: Integrations_spacesAvgAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to sum
    **/
    _sum?: Integrations_spacesSumAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the minimum value
    **/
    _min?: Integrations_spacesMinAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the maximum value
    **/
    _max?: Integrations_spacesMaxAggregateInputType;
};
export type GetIntegrations_spacesAggregateType<T extends Integrations_spacesAggregateArgs> = {
    [P in keyof T & keyof AggregateIntegrations_spaces]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateIntegrations_spaces[P]> : Prisma.GetScalarType<T[P], AggregateIntegrations_spaces[P]>;
};
export type integrations_spacesGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    where?: Prisma.integrations_spacesWhereInput;
    orderBy?: Prisma.integrations_spacesOrderByWithAggregationInput | Prisma.integrations_spacesOrderByWithAggregationInput[];
    by: Prisma.Integrations_spacesScalarFieldEnum[] | Prisma.Integrations_spacesScalarFieldEnum;
    having?: Prisma.integrations_spacesScalarWhereWithAggregatesInput;
    take?: number;
    skip?: number;
    _count?: Integrations_spacesCountAggregateInputType | true;
    _avg?: Integrations_spacesAvgAggregateInputType;
    _sum?: Integrations_spacesSumAggregateInputType;
    _min?: Integrations_spacesMinAggregateInputType;
    _max?: Integrations_spacesMaxAggregateInputType;
};
export type Integrations_spacesGroupByOutputType = {
    id: number;
    integrations_id: number | null;
    spaces_id: number | null;
    _count: Integrations_spacesCountAggregateOutputType | null;
    _avg: Integrations_spacesAvgAggregateOutputType | null;
    _sum: Integrations_spacesSumAggregateOutputType | null;
    _min: Integrations_spacesMinAggregateOutputType | null;
    _max: Integrations_spacesMaxAggregateOutputType | null;
};
type GetIntegrations_spacesGroupByPayload<T extends integrations_spacesGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<Integrations_spacesGroupByOutputType, T['by']> & {
    [P in ((keyof T) & (keyof Integrations_spacesGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], Integrations_spacesGroupByOutputType[P]> : Prisma.GetScalarType<T[P], Integrations_spacesGroupByOutputType[P]>;
}>>;
export type integrations_spacesWhereInput = {
    AND?: Prisma.integrations_spacesWhereInput | Prisma.integrations_spacesWhereInput[];
    OR?: Prisma.integrations_spacesWhereInput[];
    NOT?: Prisma.integrations_spacesWhereInput | Prisma.integrations_spacesWhereInput[];
    id?: Prisma.IntFilter<"integrations_spaces"> | number;
    integrations_id?: Prisma.IntNullableFilter<"integrations_spaces"> | number | null;
    spaces_id?: Prisma.IntNullableFilter<"integrations_spaces"> | number | null;
    integrations?: Prisma.XOR<Prisma.IntegrationsNullableScalarRelationFilter, Prisma.integrationsWhereInput> | null;
    spaces?: Prisma.XOR<Prisma.SpacesNullableScalarRelationFilter, Prisma.spacesWhereInput> | null;
};
export type integrations_spacesOrderByWithRelationInput = {
    id?: Prisma.SortOrder;
    integrations_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    spaces_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    integrations?: Prisma.integrationsOrderByWithRelationInput;
    spaces?: Prisma.spacesOrderByWithRelationInput;
};
export type integrations_spacesWhereUniqueInput = Prisma.AtLeast<{
    id?: number;
    AND?: Prisma.integrations_spacesWhereInput | Prisma.integrations_spacesWhereInput[];
    OR?: Prisma.integrations_spacesWhereInput[];
    NOT?: Prisma.integrations_spacesWhereInput | Prisma.integrations_spacesWhereInput[];
    integrations_id?: Prisma.IntNullableFilter<"integrations_spaces"> | number | null;
    spaces_id?: Prisma.IntNullableFilter<"integrations_spaces"> | number | null;
    integrations?: Prisma.XOR<Prisma.IntegrationsNullableScalarRelationFilter, Prisma.integrationsWhereInput> | null;
    spaces?: Prisma.XOR<Prisma.SpacesNullableScalarRelationFilter, Prisma.spacesWhereInput> | null;
}, "id">;
export type integrations_spacesOrderByWithAggregationInput = {
    id?: Prisma.SortOrder;
    integrations_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    spaces_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    _count?: Prisma.integrations_spacesCountOrderByAggregateInput;
    _avg?: Prisma.integrations_spacesAvgOrderByAggregateInput;
    _max?: Prisma.integrations_spacesMaxOrderByAggregateInput;
    _min?: Prisma.integrations_spacesMinOrderByAggregateInput;
    _sum?: Prisma.integrations_spacesSumOrderByAggregateInput;
};
export type integrations_spacesScalarWhereWithAggregatesInput = {
    AND?: Prisma.integrations_spacesScalarWhereWithAggregatesInput | Prisma.integrations_spacesScalarWhereWithAggregatesInput[];
    OR?: Prisma.integrations_spacesScalarWhereWithAggregatesInput[];
    NOT?: Prisma.integrations_spacesScalarWhereWithAggregatesInput | Prisma.integrations_spacesScalarWhereWithAggregatesInput[];
    id?: Prisma.IntWithAggregatesFilter<"integrations_spaces"> | number;
    integrations_id?: Prisma.IntNullableWithAggregatesFilter<"integrations_spaces"> | number | null;
    spaces_id?: Prisma.IntNullableWithAggregatesFilter<"integrations_spaces"> | number | null;
};
export type integrations_spacesCreateInput = {
    integrations?: Prisma.integrationsCreateNestedOneWithoutIntegrations_spacesInput;
    spaces?: Prisma.spacesCreateNestedOneWithoutIntegrations_spacesInput;
};
export type integrations_spacesUncheckedCreateInput = {
    id?: number;
    integrations_id?: number | null;
    spaces_id?: number | null;
};
export type integrations_spacesUpdateInput = {
    integrations?: Prisma.integrationsUpdateOneWithoutIntegrations_spacesNestedInput;
    spaces?: Prisma.spacesUpdateOneWithoutIntegrations_spacesNestedInput;
};
export type integrations_spacesUncheckedUpdateInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    integrations_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    spaces_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type integrations_spacesCreateManyInput = {
    id?: number;
    integrations_id?: number | null;
    spaces_id?: number | null;
};
export type integrations_spacesUpdateManyMutationInput = {};
export type integrations_spacesUncheckedUpdateManyInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    integrations_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    spaces_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type Integrations_spacesListRelationFilter = {
    every?: Prisma.integrations_spacesWhereInput;
    some?: Prisma.integrations_spacesWhereInput;
    none?: Prisma.integrations_spacesWhereInput;
};
export type integrations_spacesOrderByRelationAggregateInput = {
    _count?: Prisma.SortOrder;
};
export type integrations_spacesCountOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    integrations_id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
};
export type integrations_spacesAvgOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    integrations_id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
};
export type integrations_spacesMaxOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    integrations_id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
};
export type integrations_spacesMinOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    integrations_id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
};
export type integrations_spacesSumOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    integrations_id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
};
export type integrations_spacesCreateNestedManyWithoutIntegrationsInput = {
    create?: Prisma.XOR<Prisma.integrations_spacesCreateWithoutIntegrationsInput, Prisma.integrations_spacesUncheckedCreateWithoutIntegrationsInput> | Prisma.integrations_spacesCreateWithoutIntegrationsInput[] | Prisma.integrations_spacesUncheckedCreateWithoutIntegrationsInput[];
    connectOrCreate?: Prisma.integrations_spacesCreateOrConnectWithoutIntegrationsInput | Prisma.integrations_spacesCreateOrConnectWithoutIntegrationsInput[];
    createMany?: Prisma.integrations_spacesCreateManyIntegrationsInputEnvelope;
    connect?: Prisma.integrations_spacesWhereUniqueInput | Prisma.integrations_spacesWhereUniqueInput[];
};
export type integrations_spacesUncheckedCreateNestedManyWithoutIntegrationsInput = {
    create?: Prisma.XOR<Prisma.integrations_spacesCreateWithoutIntegrationsInput, Prisma.integrations_spacesUncheckedCreateWithoutIntegrationsInput> | Prisma.integrations_spacesCreateWithoutIntegrationsInput[] | Prisma.integrations_spacesUncheckedCreateWithoutIntegrationsInput[];
    connectOrCreate?: Prisma.integrations_spacesCreateOrConnectWithoutIntegrationsInput | Prisma.integrations_spacesCreateOrConnectWithoutIntegrationsInput[];
    createMany?: Prisma.integrations_spacesCreateManyIntegrationsInputEnvelope;
    connect?: Prisma.integrations_spacesWhereUniqueInput | Prisma.integrations_spacesWhereUniqueInput[];
};
export type integrations_spacesUpdateManyWithoutIntegrationsNestedInput = {
    create?: Prisma.XOR<Prisma.integrations_spacesCreateWithoutIntegrationsInput, Prisma.integrations_spacesUncheckedCreateWithoutIntegrationsInput> | Prisma.integrations_spacesCreateWithoutIntegrationsInput[] | Prisma.integrations_spacesUncheckedCreateWithoutIntegrationsInput[];
    connectOrCreate?: Prisma.integrations_spacesCreateOrConnectWithoutIntegrationsInput | Prisma.integrations_spacesCreateOrConnectWithoutIntegrationsInput[];
    upsert?: Prisma.integrations_spacesUpsertWithWhereUniqueWithoutIntegrationsInput | Prisma.integrations_spacesUpsertWithWhereUniqueWithoutIntegrationsInput[];
    createMany?: Prisma.integrations_spacesCreateManyIntegrationsInputEnvelope;
    set?: Prisma.integrations_spacesWhereUniqueInput | Prisma.integrations_spacesWhereUniqueInput[];
    disconnect?: Prisma.integrations_spacesWhereUniqueInput | Prisma.integrations_spacesWhereUniqueInput[];
    delete?: Prisma.integrations_spacesWhereUniqueInput | Prisma.integrations_spacesWhereUniqueInput[];
    connect?: Prisma.integrations_spacesWhereUniqueInput | Prisma.integrations_spacesWhereUniqueInput[];
    update?: Prisma.integrations_spacesUpdateWithWhereUniqueWithoutIntegrationsInput | Prisma.integrations_spacesUpdateWithWhereUniqueWithoutIntegrationsInput[];
    updateMany?: Prisma.integrations_spacesUpdateManyWithWhereWithoutIntegrationsInput | Prisma.integrations_spacesUpdateManyWithWhereWithoutIntegrationsInput[];
    deleteMany?: Prisma.integrations_spacesScalarWhereInput | Prisma.integrations_spacesScalarWhereInput[];
};
export type integrations_spacesUncheckedUpdateManyWithoutIntegrationsNestedInput = {
    create?: Prisma.XOR<Prisma.integrations_spacesCreateWithoutIntegrationsInput, Prisma.integrations_spacesUncheckedCreateWithoutIntegrationsInput> | Prisma.integrations_spacesCreateWithoutIntegrationsInput[] | Prisma.integrations_spacesUncheckedCreateWithoutIntegrationsInput[];
    connectOrCreate?: Prisma.integrations_spacesCreateOrConnectWithoutIntegrationsInput | Prisma.integrations_spacesCreateOrConnectWithoutIntegrationsInput[];
    upsert?: Prisma.integrations_spacesUpsertWithWhereUniqueWithoutIntegrationsInput | Prisma.integrations_spacesUpsertWithWhereUniqueWithoutIntegrationsInput[];
    createMany?: Prisma.integrations_spacesCreateManyIntegrationsInputEnvelope;
    set?: Prisma.integrations_spacesWhereUniqueInput | Prisma.integrations_spacesWhereUniqueInput[];
    disconnect?: Prisma.integrations_spacesWhereUniqueInput | Prisma.integrations_spacesWhereUniqueInput[];
    delete?: Prisma.integrations_spacesWhereUniqueInput | Prisma.integrations_spacesWhereUniqueInput[];
    connect?: Prisma.integrations_spacesWhereUniqueInput | Prisma.integrations_spacesWhereUniqueInput[];
    update?: Prisma.integrations_spacesUpdateWithWhereUniqueWithoutIntegrationsInput | Prisma.integrations_spacesUpdateWithWhereUniqueWithoutIntegrationsInput[];
    updateMany?: Prisma.integrations_spacesUpdateManyWithWhereWithoutIntegrationsInput | Prisma.integrations_spacesUpdateManyWithWhereWithoutIntegrationsInput[];
    deleteMany?: Prisma.integrations_spacesScalarWhereInput | Prisma.integrations_spacesScalarWhereInput[];
};
export type integrations_spacesCreateNestedManyWithoutSpacesInput = {
    create?: Prisma.XOR<Prisma.integrations_spacesCreateWithoutSpacesInput, Prisma.integrations_spacesUncheckedCreateWithoutSpacesInput> | Prisma.integrations_spacesCreateWithoutSpacesInput[] | Prisma.integrations_spacesUncheckedCreateWithoutSpacesInput[];
    connectOrCreate?: Prisma.integrations_spacesCreateOrConnectWithoutSpacesInput | Prisma.integrations_spacesCreateOrConnectWithoutSpacesInput[];
    createMany?: Prisma.integrations_spacesCreateManySpacesInputEnvelope;
    connect?: Prisma.integrations_spacesWhereUniqueInput | Prisma.integrations_spacesWhereUniqueInput[];
};
export type integrations_spacesUncheckedCreateNestedManyWithoutSpacesInput = {
    create?: Prisma.XOR<Prisma.integrations_spacesCreateWithoutSpacesInput, Prisma.integrations_spacesUncheckedCreateWithoutSpacesInput> | Prisma.integrations_spacesCreateWithoutSpacesInput[] | Prisma.integrations_spacesUncheckedCreateWithoutSpacesInput[];
    connectOrCreate?: Prisma.integrations_spacesCreateOrConnectWithoutSpacesInput | Prisma.integrations_spacesCreateOrConnectWithoutSpacesInput[];
    createMany?: Prisma.integrations_spacesCreateManySpacesInputEnvelope;
    connect?: Prisma.integrations_spacesWhereUniqueInput | Prisma.integrations_spacesWhereUniqueInput[];
};
export type integrations_spacesUpdateManyWithoutSpacesNestedInput = {
    create?: Prisma.XOR<Prisma.integrations_spacesCreateWithoutSpacesInput, Prisma.integrations_spacesUncheckedCreateWithoutSpacesInput> | Prisma.integrations_spacesCreateWithoutSpacesInput[] | Prisma.integrations_spacesUncheckedCreateWithoutSpacesInput[];
    connectOrCreate?: Prisma.integrations_spacesCreateOrConnectWithoutSpacesInput | Prisma.integrations_spacesCreateOrConnectWithoutSpacesInput[];
    upsert?: Prisma.integrations_spacesUpsertWithWhereUniqueWithoutSpacesInput | Prisma.integrations_spacesUpsertWithWhereUniqueWithoutSpacesInput[];
    createMany?: Prisma.integrations_spacesCreateManySpacesInputEnvelope;
    set?: Prisma.integrations_spacesWhereUniqueInput | Prisma.integrations_spacesWhereUniqueInput[];
    disconnect?: Prisma.integrations_spacesWhereUniqueInput | Prisma.integrations_spacesWhereUniqueInput[];
    delete?: Prisma.integrations_spacesWhereUniqueInput | Prisma.integrations_spacesWhereUniqueInput[];
    connect?: Prisma.integrations_spacesWhereUniqueInput | Prisma.integrations_spacesWhereUniqueInput[];
    update?: Prisma.integrations_spacesUpdateWithWhereUniqueWithoutSpacesInput | Prisma.integrations_spacesUpdateWithWhereUniqueWithoutSpacesInput[];
    updateMany?: Prisma.integrations_spacesUpdateManyWithWhereWithoutSpacesInput | Prisma.integrations_spacesUpdateManyWithWhereWithoutSpacesInput[];
    deleteMany?: Prisma.integrations_spacesScalarWhereInput | Prisma.integrations_spacesScalarWhereInput[];
};
export type integrations_spacesUncheckedUpdateManyWithoutSpacesNestedInput = {
    create?: Prisma.XOR<Prisma.integrations_spacesCreateWithoutSpacesInput, Prisma.integrations_spacesUncheckedCreateWithoutSpacesInput> | Prisma.integrations_spacesCreateWithoutSpacesInput[] | Prisma.integrations_spacesUncheckedCreateWithoutSpacesInput[];
    connectOrCreate?: Prisma.integrations_spacesCreateOrConnectWithoutSpacesInput | Prisma.integrations_spacesCreateOrConnectWithoutSpacesInput[];
    upsert?: Prisma.integrations_spacesUpsertWithWhereUniqueWithoutSpacesInput | Prisma.integrations_spacesUpsertWithWhereUniqueWithoutSpacesInput[];
    createMany?: Prisma.integrations_spacesCreateManySpacesInputEnvelope;
    set?: Prisma.integrations_spacesWhereUniqueInput | Prisma.integrations_spacesWhereUniqueInput[];
    disconnect?: Prisma.integrations_spacesWhereUniqueInput | Prisma.integrations_spacesWhereUniqueInput[];
    delete?: Prisma.integrations_spacesWhereUniqueInput | Prisma.integrations_spacesWhereUniqueInput[];
    connect?: Prisma.integrations_spacesWhereUniqueInput | Prisma.integrations_spacesWhereUniqueInput[];
    update?: Prisma.integrations_spacesUpdateWithWhereUniqueWithoutSpacesInput | Prisma.integrations_spacesUpdateWithWhereUniqueWithoutSpacesInput[];
    updateMany?: Prisma.integrations_spacesUpdateManyWithWhereWithoutSpacesInput | Prisma.integrations_spacesUpdateManyWithWhereWithoutSpacesInput[];
    deleteMany?: Prisma.integrations_spacesScalarWhereInput | Prisma.integrations_spacesScalarWhereInput[];
};
export type integrations_spacesCreateWithoutIntegrationsInput = {
    spaces?: Prisma.spacesCreateNestedOneWithoutIntegrations_spacesInput;
};
export type integrations_spacesUncheckedCreateWithoutIntegrationsInput = {
    id?: number;
    spaces_id?: number | null;
};
export type integrations_spacesCreateOrConnectWithoutIntegrationsInput = {
    where: Prisma.integrations_spacesWhereUniqueInput;
    create: Prisma.XOR<Prisma.integrations_spacesCreateWithoutIntegrationsInput, Prisma.integrations_spacesUncheckedCreateWithoutIntegrationsInput>;
};
export type integrations_spacesCreateManyIntegrationsInputEnvelope = {
    data: Prisma.integrations_spacesCreateManyIntegrationsInput | Prisma.integrations_spacesCreateManyIntegrationsInput[];
    skipDuplicates?: boolean;
};
export type integrations_spacesUpsertWithWhereUniqueWithoutIntegrationsInput = {
    where: Prisma.integrations_spacesWhereUniqueInput;
    update: Prisma.XOR<Prisma.integrations_spacesUpdateWithoutIntegrationsInput, Prisma.integrations_spacesUncheckedUpdateWithoutIntegrationsInput>;
    create: Prisma.XOR<Prisma.integrations_spacesCreateWithoutIntegrationsInput, Prisma.integrations_spacesUncheckedCreateWithoutIntegrationsInput>;
};
export type integrations_spacesUpdateWithWhereUniqueWithoutIntegrationsInput = {
    where: Prisma.integrations_spacesWhereUniqueInput;
    data: Prisma.XOR<Prisma.integrations_spacesUpdateWithoutIntegrationsInput, Prisma.integrations_spacesUncheckedUpdateWithoutIntegrationsInput>;
};
export type integrations_spacesUpdateManyWithWhereWithoutIntegrationsInput = {
    where: Prisma.integrations_spacesScalarWhereInput;
    data: Prisma.XOR<Prisma.integrations_spacesUpdateManyMutationInput, Prisma.integrations_spacesUncheckedUpdateManyWithoutIntegrationsInput>;
};
export type integrations_spacesScalarWhereInput = {
    AND?: Prisma.integrations_spacesScalarWhereInput | Prisma.integrations_spacesScalarWhereInput[];
    OR?: Prisma.integrations_spacesScalarWhereInput[];
    NOT?: Prisma.integrations_spacesScalarWhereInput | Prisma.integrations_spacesScalarWhereInput[];
    id?: Prisma.IntFilter<"integrations_spaces"> | number;
    integrations_id?: Prisma.IntNullableFilter<"integrations_spaces"> | number | null;
    spaces_id?: Prisma.IntNullableFilter<"integrations_spaces"> | number | null;
};
export type integrations_spacesCreateWithoutSpacesInput = {
    integrations?: Prisma.integrationsCreateNestedOneWithoutIntegrations_spacesInput;
};
export type integrations_spacesUncheckedCreateWithoutSpacesInput = {
    id?: number;
    integrations_id?: number | null;
};
export type integrations_spacesCreateOrConnectWithoutSpacesInput = {
    where: Prisma.integrations_spacesWhereUniqueInput;
    create: Prisma.XOR<Prisma.integrations_spacesCreateWithoutSpacesInput, Prisma.integrations_spacesUncheckedCreateWithoutSpacesInput>;
};
export type integrations_spacesCreateManySpacesInputEnvelope = {
    data: Prisma.integrations_spacesCreateManySpacesInput | Prisma.integrations_spacesCreateManySpacesInput[];
    skipDuplicates?: boolean;
};
export type integrations_spacesUpsertWithWhereUniqueWithoutSpacesInput = {
    where: Prisma.integrations_spacesWhereUniqueInput;
    update: Prisma.XOR<Prisma.integrations_spacesUpdateWithoutSpacesInput, Prisma.integrations_spacesUncheckedUpdateWithoutSpacesInput>;
    create: Prisma.XOR<Prisma.integrations_spacesCreateWithoutSpacesInput, Prisma.integrations_spacesUncheckedCreateWithoutSpacesInput>;
};
export type integrations_spacesUpdateWithWhereUniqueWithoutSpacesInput = {
    where: Prisma.integrations_spacesWhereUniqueInput;
    data: Prisma.XOR<Prisma.integrations_spacesUpdateWithoutSpacesInput, Prisma.integrations_spacesUncheckedUpdateWithoutSpacesInput>;
};
export type integrations_spacesUpdateManyWithWhereWithoutSpacesInput = {
    where: Prisma.integrations_spacesScalarWhereInput;
    data: Prisma.XOR<Prisma.integrations_spacesUpdateManyMutationInput, Prisma.integrations_spacesUncheckedUpdateManyWithoutSpacesInput>;
};
export type integrations_spacesCreateManyIntegrationsInput = {
    id?: number;
    spaces_id?: number | null;
};
export type integrations_spacesUpdateWithoutIntegrationsInput = {
    spaces?: Prisma.spacesUpdateOneWithoutIntegrations_spacesNestedInput;
};
export type integrations_spacesUncheckedUpdateWithoutIntegrationsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    spaces_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type integrations_spacesUncheckedUpdateManyWithoutIntegrationsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    spaces_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type integrations_spacesCreateManySpacesInput = {
    id?: number;
    integrations_id?: number | null;
};
export type integrations_spacesUpdateWithoutSpacesInput = {
    integrations?: Prisma.integrationsUpdateOneWithoutIntegrations_spacesNestedInput;
};
export type integrations_spacesUncheckedUpdateWithoutSpacesInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    integrations_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type integrations_spacesUncheckedUpdateManyWithoutSpacesInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    integrations_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type integrations_spacesSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    integrations_id?: boolean;
    spaces_id?: boolean;
    integrations?: boolean | Prisma.integrations_spaces$integrationsArgs<ExtArgs>;
    spaces?: boolean | Prisma.integrations_spaces$spacesArgs<ExtArgs>;
}, ExtArgs["result"]["integrations_spaces"]>;
export type integrations_spacesSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    integrations_id?: boolean;
    spaces_id?: boolean;
    integrations?: boolean | Prisma.integrations_spaces$integrationsArgs<ExtArgs>;
    spaces?: boolean | Prisma.integrations_spaces$spacesArgs<ExtArgs>;
}, ExtArgs["result"]["integrations_spaces"]>;
export type integrations_spacesSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    integrations_id?: boolean;
    spaces_id?: boolean;
    integrations?: boolean | Prisma.integrations_spaces$integrationsArgs<ExtArgs>;
    spaces?: boolean | Prisma.integrations_spaces$spacesArgs<ExtArgs>;
}, ExtArgs["result"]["integrations_spaces"]>;
export type integrations_spacesSelectScalar = {
    id?: boolean;
    integrations_id?: boolean;
    spaces_id?: boolean;
};
export type integrations_spacesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "integrations_id" | "spaces_id", ExtArgs["result"]["integrations_spaces"]>;
export type integrations_spacesInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    integrations?: boolean | Prisma.integrations_spaces$integrationsArgs<ExtArgs>;
    spaces?: boolean | Prisma.integrations_spaces$spacesArgs<ExtArgs>;
};
export type integrations_spacesIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    integrations?: boolean | Prisma.integrations_spaces$integrationsArgs<ExtArgs>;
    spaces?: boolean | Prisma.integrations_spaces$spacesArgs<ExtArgs>;
};
export type integrations_spacesIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    integrations?: boolean | Prisma.integrations_spaces$integrationsArgs<ExtArgs>;
    spaces?: boolean | Prisma.integrations_spaces$spacesArgs<ExtArgs>;
};
export type $integrations_spacesPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    name: "integrations_spaces";
    objects: {
        integrations: Prisma.$integrationsPayload<ExtArgs> | null;
        spaces: Prisma.$spacesPayload<ExtArgs> | null;
    };
    scalars: runtime.Types.Extensions.GetPayloadResult<{
        id: number;
        integrations_id: number | null;
        spaces_id: number | null;
    }, ExtArgs["result"]["integrations_spaces"]>;
    composites: {};
};
export type integrations_spacesGetPayload<S extends boolean | null | undefined | integrations_spacesDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$integrations_spacesPayload, S>;
export type integrations_spacesCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<integrations_spacesFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: Integrations_spacesCountAggregateInputType | true;
};
export interface integrations_spacesDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
    [K: symbol]: {
        types: Prisma.TypeMap<ExtArgs>['model']['integrations_spaces'];
        meta: {
            name: 'integrations_spaces';
        };
    };
    /**
     * Find zero or one Integrations_spaces that matches the filter.
     * @param {integrations_spacesFindUniqueArgs} args - Arguments to find a Integrations_spaces
     * @example
     * // Get one Integrations_spaces
     * const integrations_spaces = await prisma.integrations_spaces.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends integrations_spacesFindUniqueArgs>(args: Prisma.SelectSubset<T, integrations_spacesFindUniqueArgs<ExtArgs>>): Prisma.Prisma__integrations_spacesClient<runtime.Types.Result.GetResult<Prisma.$integrations_spacesPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find one Integrations_spaces that matches the filter or throw an error with `error.code='P2025'`
     * if no matches were found.
     * @param {integrations_spacesFindUniqueOrThrowArgs} args - Arguments to find a Integrations_spaces
     * @example
     * // Get one Integrations_spaces
     * const integrations_spaces = await prisma.integrations_spaces.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends integrations_spacesFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, integrations_spacesFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__integrations_spacesClient<runtime.Types.Result.GetResult<Prisma.$integrations_spacesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Integrations_spaces 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 {integrations_spacesFindFirstArgs} args - Arguments to find a Integrations_spaces
     * @example
     * // Get one Integrations_spaces
     * const integrations_spaces = await prisma.integrations_spaces.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends integrations_spacesFindFirstArgs>(args?: Prisma.SelectSubset<T, integrations_spacesFindFirstArgs<ExtArgs>>): Prisma.Prisma__integrations_spacesClient<runtime.Types.Result.GetResult<Prisma.$integrations_spacesPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Integrations_spaces 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 {integrations_spacesFindFirstOrThrowArgs} args - Arguments to find a Integrations_spaces
     * @example
     * // Get one Integrations_spaces
     * const integrations_spaces = await prisma.integrations_spaces.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends integrations_spacesFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, integrations_spacesFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__integrations_spacesClient<runtime.Types.Result.GetResult<Prisma.$integrations_spacesPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find zero or more Integrations_spaces 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 {integrations_spacesFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Integrations_spaces
     * const integrations_spaces = await prisma.integrations_spaces.findMany()
     *
     * // Get first 10 Integrations_spaces
     * const integrations_spaces = await prisma.integrations_spaces.findMany({ take: 10 })
     *
     * // Only select the `id`
     * const integrations_spacesWithIdOnly = await prisma.integrations_spaces.findMany({ select: { id: true } })
     *
     */
    findMany<T extends integrations_spacesFindManyArgs>(args?: Prisma.SelectSubset<T, integrations_spacesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$integrations_spacesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
    /**
     * Create a Integrations_spaces.
     * @param {integrations_spacesCreateArgs} args - Arguments to create a Integrations_spaces.
     * @example
     * // Create one Integrations_spaces
     * const Integrations_spaces = await prisma.integrations_spaces.create({
     *   data: {
     *     // ... data to create a Integrations_spaces
     *   }
     * })
     *
     */
    create<T extends integrations_spacesCreateArgs>(args: Prisma.SelectSubset<T, integrations_spacesCreateArgs<ExtArgs>>): Prisma.Prisma__integrations_spacesClient<runtime.Types.Result.GetResult<Prisma.$integrations_spacesPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Create many Integrations_spaces.
     * @param {integrations_spacesCreateManyArgs} args - Arguments to create many Integrations_spaces.
     * @example
     * // Create many Integrations_spaces
     * const integrations_spaces = await prisma.integrations_spaces.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     */
    createMany<T extends integrations_spacesCreateManyArgs>(args?: Prisma.SelectSubset<T, integrations_spacesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Create many Integrations_spaces and returns the data saved in the database.
     * @param {integrations_spacesCreateManyAndReturnArgs} args - Arguments to create many Integrations_spaces.
     * @example
     * // Create many Integrations_spaces
     * const integrations_spaces = await prisma.integrations_spaces.createManyAndReturn({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Create many Integrations_spaces and only return the `id`
     * const integrations_spacesWithIdOnly = await prisma.integrations_spaces.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 integrations_spacesCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, integrations_spacesCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$integrations_spacesPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
    /**
     * Delete a Integrations_spaces.
     * @param {integrations_spacesDeleteArgs} args - Arguments to delete one Integrations_spaces.
     * @example
     * // Delete one Integrations_spaces
     * const Integrations_spaces = await prisma.integrations_spaces.delete({
     *   where: {
     *     // ... filter to delete one Integrations_spaces
     *   }
     * })
     *
     */
    delete<T extends integrations_spacesDeleteArgs>(args: Prisma.SelectSubset<T, integrations_spacesDeleteArgs<ExtArgs>>): Prisma.Prisma__integrations_spacesClient<runtime.Types.Result.GetResult<Prisma.$integrations_spacesPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Update one Integrations_spaces.
     * @param {integrations_spacesUpdateArgs} args - Arguments to update one Integrations_spaces.
     * @example
     * // Update one Integrations_spaces
     * const integrations_spaces = await prisma.integrations_spaces.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    update<T extends integrations_spacesUpdateArgs>(args: Prisma.SelectSubset<T, integrations_spacesUpdateArgs<ExtArgs>>): Prisma.Prisma__integrations_spacesClient<runtime.Types.Result.GetResult<Prisma.$integrations_spacesPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Delete zero or more Integrations_spaces.
     * @param {integrations_spacesDeleteManyArgs} args - Arguments to filter Integrations_spaces to delete.
     * @example
     * // Delete a few Integrations_spaces
     * const { count } = await prisma.integrations_spaces.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     *
     */
    deleteMany<T extends integrations_spacesDeleteManyArgs>(args?: Prisma.SelectSubset<T, integrations_spacesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Integrations_spaces.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {integrations_spacesUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Integrations_spaces
     * const integrations_spaces = await prisma.integrations_spaces.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    updateMany<T extends integrations_spacesUpdateManyArgs>(args: Prisma.SelectSubset<T, integrations_spacesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Integrations_spaces and returns the data updated in the database.
     * @param {integrations_spacesUpdateManyAndReturnArgs} args - Arguments to update many Integrations_spaces.
     * @example
     * // Update many Integrations_spaces
     * const integrations_spaces = await prisma.integrations_spaces.updateManyAndReturn({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Update zero or more Integrations_spaces and only return the `id`
     * const integrations_spacesWithIdOnly = await prisma.integrations_spaces.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 integrations_spacesUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, integrations_spacesUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$integrations_spacesPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
    /**
     * Create or update one Integrations_spaces.
     * @param {integrations_spacesUpsertArgs} args - Arguments to update or create a Integrations_spaces.
     * @example
     * // Update or create a Integrations_spaces
     * const integrations_spaces = await prisma.integrations_spaces.upsert({
     *   create: {
     *     // ... data to create a Integrations_spaces
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Integrations_spaces we want to update
     *   }
     * })
     */
    upsert<T extends integrations_spacesUpsertArgs>(args: Prisma.SelectSubset<T, integrations_spacesUpsertArgs<ExtArgs>>): Prisma.Prisma__integrations_spacesClient<runtime.Types.Result.GetResult<Prisma.$integrations_spacesPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Count the number of Integrations_spaces.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {integrations_spacesCountArgs} args - Arguments to filter Integrations_spaces to count.
     * @example
     * // Count the number of Integrations_spaces
     * const count = await prisma.integrations_spaces.count({
     *   where: {
     *     // ... the filter for the Integrations_spaces we want to count
     *   }
     * })
    **/
    count<T extends integrations_spacesCountArgs>(args?: Prisma.Subset<T, integrations_spacesCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], Integrations_spacesCountAggregateOutputType> : number>;
    /**
     * Allows you to perform aggregations operations on a Integrations_spaces.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {Integrations_spacesAggregateArgs} 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 Integrations_spacesAggregateArgs>(args: Prisma.Subset<T, Integrations_spacesAggregateArgs>): Prisma.PrismaPromise<GetIntegrations_spacesAggregateType<T>>;
    /**
     * Group by Integrations_spaces.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {integrations_spacesGroupByArgs} 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 integrations_spacesGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
        orderBy: integrations_spacesGroupByArgs['orderBy'];
    } : {
        orderBy?: integrations_spacesGroupByArgs['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, integrations_spacesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetIntegrations_spacesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
    /**
     * Fields of the integrations_spaces model
     */
    readonly fields: integrations_spacesFieldRefs;
}
/**
 * The delegate class that acts as a "Promise-like" for integrations_spaces.
 * 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__integrations_spacesClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise";
    integrations<T extends Prisma.integrations_spaces$integrationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.integrations_spaces$integrationsArgs<ExtArgs>>): Prisma.Prisma__integrationsClient<runtime.Types.Result.GetResult<Prisma.$integrationsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    spaces<T extends Prisma.integrations_spaces$spacesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.integrations_spaces$spacesArgs<ExtArgs>>): Prisma.Prisma__spacesClient<runtime.Types.Result.GetResult<Prisma.$spacesPayload<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 integrations_spaces model
 */
export interface integrations_spacesFieldRefs {
    readonly id: Prisma.FieldRef<"integrations_spaces", 'Int'>;
    readonly integrations_id: Prisma.FieldRef<"integrations_spaces", 'Int'>;
    readonly spaces_id: Prisma.FieldRef<"integrations_spaces", 'Int'>;
}
/**
 * integrations_spaces findUnique
 */
export type integrations_spacesFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the integrations_spaces
     */
    select?: Prisma.integrations_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the integrations_spaces
     */
    omit?: Prisma.integrations_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.integrations_spacesInclude<ExtArgs> | null;
    /**
     * Filter, which integrations_spaces to fetch.
     */
    where: Prisma.integrations_spacesWhereUniqueInput;
};
/**
 * integrations_spaces findUniqueOrThrow
 */
export type integrations_spacesFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the integrations_spaces
     */
    select?: Prisma.integrations_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the integrations_spaces
     */
    omit?: Prisma.integrations_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.integrations_spacesInclude<ExtArgs> | null;
    /**
     * Filter, which integrations_spaces to fetch.
     */
    where: Prisma.integrations_spacesWhereUniqueInput;
};
/**
 * integrations_spaces findFirst
 */
export type integrations_spacesFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the integrations_spaces
     */
    select?: Prisma.integrations_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the integrations_spaces
     */
    omit?: Prisma.integrations_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.integrations_spacesInclude<ExtArgs> | null;
    /**
     * Filter, which integrations_spaces to fetch.
     */
    where?: Prisma.integrations_spacesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of integrations_spaces to fetch.
     */
    orderBy?: Prisma.integrations_spacesOrderByWithRelationInput | Prisma.integrations_spacesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for integrations_spaces.
     */
    cursor?: Prisma.integrations_spacesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` integrations_spaces 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` integrations_spaces.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of integrations_spaces.
     */
    distinct?: Prisma.Integrations_spacesScalarFieldEnum | Prisma.Integrations_spacesScalarFieldEnum[];
};
/**
 * integrations_spaces findFirstOrThrow
 */
export type integrations_spacesFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the integrations_spaces
     */
    select?: Prisma.integrations_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the integrations_spaces
     */
    omit?: Prisma.integrations_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.integrations_spacesInclude<ExtArgs> | null;
    /**
     * Filter, which integrations_spaces to fetch.
     */
    where?: Prisma.integrations_spacesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of integrations_spaces to fetch.
     */
    orderBy?: Prisma.integrations_spacesOrderByWithRelationInput | Prisma.integrations_spacesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for integrations_spaces.
     */
    cursor?: Prisma.integrations_spacesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` integrations_spaces 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` integrations_spaces.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of integrations_spaces.
     */
    distinct?: Prisma.Integrations_spacesScalarFieldEnum | Prisma.Integrations_spacesScalarFieldEnum[];
};
/**
 * integrations_spaces findMany
 */
export type integrations_spacesFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the integrations_spaces
     */
    select?: Prisma.integrations_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the integrations_spaces
     */
    omit?: Prisma.integrations_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.integrations_spacesInclude<ExtArgs> | null;
    /**
     * Filter, which integrations_spaces to fetch.
     */
    where?: Prisma.integrations_spacesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of integrations_spaces to fetch.
     */
    orderBy?: Prisma.integrations_spacesOrderByWithRelationInput | Prisma.integrations_spacesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for listing integrations_spaces.
     */
    cursor?: Prisma.integrations_spacesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` integrations_spaces 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` integrations_spaces.
     */
    skip?: number;
    distinct?: Prisma.Integrations_spacesScalarFieldEnum | Prisma.Integrations_spacesScalarFieldEnum[];
};
/**
 * integrations_spaces create
 */
export type integrations_spacesCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the integrations_spaces
     */
    select?: Prisma.integrations_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the integrations_spaces
     */
    omit?: Prisma.integrations_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.integrations_spacesInclude<ExtArgs> | null;
    /**
     * The data needed to create a integrations_spaces.
     */
    data?: Prisma.XOR<Prisma.integrations_spacesCreateInput, Prisma.integrations_spacesUncheckedCreateInput>;
};
/**
 * integrations_spaces createMany
 */
export type integrations_spacesCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to create many integrations_spaces.
     */
    data: Prisma.integrations_spacesCreateManyInput | Prisma.integrations_spacesCreateManyInput[];
    skipDuplicates?: boolean;
};
/**
 * integrations_spaces createManyAndReturn
 */
export type integrations_spacesCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the integrations_spaces
     */
    select?: Prisma.integrations_spacesSelectCreateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the integrations_spaces
     */
    omit?: Prisma.integrations_spacesOmit<ExtArgs> | null;
    /**
     * The data used to create many integrations_spaces.
     */
    data: Prisma.integrations_spacesCreateManyInput | Prisma.integrations_spacesCreateManyInput[];
    skipDuplicates?: boolean;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.integrations_spacesIncludeCreateManyAndReturn<ExtArgs> | null;
};
/**
 * integrations_spaces update
 */
export type integrations_spacesUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the integrations_spaces
     */
    select?: Prisma.integrations_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the integrations_spaces
     */
    omit?: Prisma.integrations_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.integrations_spacesInclude<ExtArgs> | null;
    /**
     * The data needed to update a integrations_spaces.
     */
    data: Prisma.XOR<Prisma.integrations_spacesUpdateInput, Prisma.integrations_spacesUncheckedUpdateInput>;
    /**
     * Choose, which integrations_spaces to update.
     */
    where: Prisma.integrations_spacesWhereUniqueInput;
};
/**
 * integrations_spaces updateMany
 */
export type integrations_spacesUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to update integrations_spaces.
     */
    data: Prisma.XOR<Prisma.integrations_spacesUpdateManyMutationInput, Prisma.integrations_spacesUncheckedUpdateManyInput>;
    /**
     * Filter which integrations_spaces to update
     */
    where?: Prisma.integrations_spacesWhereInput;
    /**
     * Limit how many integrations_spaces to update.
     */
    limit?: number;
};
/**
 * integrations_spaces updateManyAndReturn
 */
export type integrations_spacesUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the integrations_spaces
     */
    select?: Prisma.integrations_spacesSelectUpdateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the integrations_spaces
     */
    omit?: Prisma.integrations_spacesOmit<ExtArgs> | null;
    /**
     * The data used to update integrations_spaces.
     */
    data: Prisma.XOR<Prisma.integrations_spacesUpdateManyMutationInput, Prisma.integrations_spacesUncheckedUpdateManyInput>;
    /**
     * Filter which integrations_spaces to update
     */
    where?: Prisma.integrations_spacesWhereInput;
    /**
     * Limit how many integrations_spaces to update.
     */
    limit?: number;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.integrations_spacesIncludeUpdateManyAndReturn<ExtArgs> | null;
};
/**
 * integrations_spaces upsert
 */
export type integrations_spacesUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the integrations_spaces
     */
    select?: Prisma.integrations_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the integrations_spaces
     */
    omit?: Prisma.integrations_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.integrations_spacesInclude<ExtArgs> | null;
    /**
     * The filter to search for the integrations_spaces to update in case it exists.
     */
    where: Prisma.integrations_spacesWhereUniqueInput;
    /**
     * In case the integrations_spaces found by the `where` argument doesn't exist, create a new integrations_spaces with this data.
     */
    create: Prisma.XOR<Prisma.integrations_spacesCreateInput, Prisma.integrations_spacesUncheckedCreateInput>;
    /**
     * In case the integrations_spaces was found with the provided `where` argument, update it with this data.
     */
    update: Prisma.XOR<Prisma.integrations_spacesUpdateInput, Prisma.integrations_spacesUncheckedUpdateInput>;
};
/**
 * integrations_spaces delete
 */
export type integrations_spacesDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the integrations_spaces
     */
    select?: Prisma.integrations_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the integrations_spaces
     */
    omit?: Prisma.integrations_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.integrations_spacesInclude<ExtArgs> | null;
    /**
     * Filter which integrations_spaces to delete.
     */
    where: Prisma.integrations_spacesWhereUniqueInput;
};
/**
 * integrations_spaces deleteMany
 */
export type integrations_spacesDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which integrations_spaces to delete
     */
    where?: Prisma.integrations_spacesWhereInput;
    /**
     * Limit how many integrations_spaces to delete.
     */
    limit?: number;
};
/**
 * integrations_spaces.integrations
 */
export type integrations_spaces$integrationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the integrations
     */
    select?: Prisma.integrationsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the integrations
     */
    omit?: Prisma.integrationsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.integrationsInclude<ExtArgs> | null;
    where?: Prisma.integrationsWhereInput;
};
/**
 * integrations_spaces.spaces
 */
export type integrations_spaces$spacesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces
     */
    select?: Prisma.spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces
     */
    omit?: Prisma.spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spacesInclude<ExtArgs> | null;
    where?: Prisma.spacesWhereInput;
};
/**
 * integrations_spaces without action
 */
export type integrations_spacesDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the integrations_spaces
     */
    select?: Prisma.integrations_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the integrations_spaces
     */
    omit?: Prisma.integrations_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.integrations_spacesInclude<ExtArgs> | null;
};
export {};
