/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `AgentSessionCommit` model and its related types. * * 🟢 You can import this file directly. */ import type * as PJTG from '../pjtg'; import type * as runtime from "@prisma/client/runtime/client" import type * as $Enums from "../enums.ts" import type * as Prisma from "../internal/prismaNamespace.ts" /** * Model AgentSessionCommit * */ export type AgentSessionCommitModel = runtime.Types.Result.DefaultSelection export type AggregateAgentSessionCommit = { _count: AgentSessionCommitCountAggregateOutputType | null _avg: AgentSessionCommitAvgAggregateOutputType | null _sum: AgentSessionCommitSumAggregateOutputType | null _min: AgentSessionCommitMinAggregateOutputType | null _max: AgentSessionCommitMaxAggregateOutputType | null } export type AgentSessionCommitAvgAggregateOutputType = { seq: number | null } export type AgentSessionCommitSumAggregateOutputType = { seq: bigint | null } export type AgentSessionCommitMinAggregateOutputType = { id: string | null sessionId: string | null seq: bigint | null } export type AgentSessionCommitMaxAggregateOutputType = { id: string | null sessionId: string | null seq: bigint | null } export type AgentSessionCommitCountAggregateOutputType = { id: number sessionId: number seq: number data: number _all: number } export type AgentSessionCommitAvgAggregateInputType = { seq?: true } export type AgentSessionCommitSumAggregateInputType = { seq?: true } export type AgentSessionCommitMinAggregateInputType = { id?: true sessionId?: true seq?: true } export type AgentSessionCommitMaxAggregateInputType = { id?: true sessionId?: true seq?: true } export type AgentSessionCommitCountAggregateInputType = { id?: true sessionId?: true seq?: true data?: true _all?: true } export type AgentSessionCommitAggregateArgs = { /** * Filter which AgentSessionCommit to aggregate. */ where?: Prisma.AgentSessionCommitWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AgentSessionCommits to fetch. */ orderBy?: Prisma.AgentSessionCommitOrderByWithRelationInput | Prisma.AgentSessionCommitOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.AgentSessionCommitWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AgentSessionCommits 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` AgentSessionCommits. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned AgentSessionCommits **/ _count?: true | AgentSessionCommitCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: AgentSessionCommitAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: AgentSessionCommitSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AgentSessionCommitMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AgentSessionCommitMaxAggregateInputType } export type GetAgentSessionCommitAggregateType = { [P in keyof T & keyof AggregateAgentSessionCommit]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type AgentSessionCommitGroupByArgs = { where?: Prisma.AgentSessionCommitWhereInput orderBy?: Prisma.AgentSessionCommitOrderByWithAggregationInput | Prisma.AgentSessionCommitOrderByWithAggregationInput[] by: Prisma.AgentSessionCommitScalarFieldEnum[] | Prisma.AgentSessionCommitScalarFieldEnum having?: Prisma.AgentSessionCommitScalarWhereWithAggregatesInput take?: number skip?: number _count?: AgentSessionCommitCountAggregateInputType | true _avg?: AgentSessionCommitAvgAggregateInputType _sum?: AgentSessionCommitSumAggregateInputType _min?: AgentSessionCommitMinAggregateInputType _max?: AgentSessionCommitMaxAggregateInputType } export type AgentSessionCommitGroupByOutputType = { id: string sessionId: string seq: bigint data:PrismaJson.AgentSessionCommitData _count: AgentSessionCommitCountAggregateOutputType | null _avg: AgentSessionCommitAvgAggregateOutputType | null _sum: AgentSessionCommitSumAggregateOutputType | null _min: AgentSessionCommitMinAggregateOutputType | null _max: AgentSessionCommitMaxAggregateOutputType | null } export type GetAgentSessionCommitGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof AgentSessionCommitGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type AgentSessionCommitWhereInput = { AND?: Prisma.AgentSessionCommitWhereInput | Prisma.AgentSessionCommitWhereInput[] OR?: Prisma.AgentSessionCommitWhereInput[] NOT?: Prisma.AgentSessionCommitWhereInput | Prisma.AgentSessionCommitWhereInput[] id?: Prisma.StringFilter<"AgentSessionCommit"> | string sessionId?: Prisma.StringFilter<"AgentSessionCommit"> | string seq?: Prisma.BigIntFilter<"AgentSessionCommit"> | bigint | number data?: Prisma.JsonFilter<"AgentSessionCommit"> session?: Prisma.XOR } export type AgentSessionCommitOrderByWithRelationInput = { id?: Prisma.SortOrder sessionId?: Prisma.SortOrder seq?: Prisma.SortOrder data?: Prisma.SortOrder session?: Prisma.AgentSessionOrderByWithRelationInput } export type AgentSessionCommitWhereUniqueInput = Prisma.AtLeast<{ id?: string sessionId_seq?: Prisma.AgentSessionCommitSessionIdSeqCompoundUniqueInput AND?: Prisma.AgentSessionCommitWhereInput | Prisma.AgentSessionCommitWhereInput[] OR?: Prisma.AgentSessionCommitWhereInput[] NOT?: Prisma.AgentSessionCommitWhereInput | Prisma.AgentSessionCommitWhereInput[] sessionId?: Prisma.StringFilter<"AgentSessionCommit"> | string seq?: Prisma.BigIntFilter<"AgentSessionCommit"> | bigint | number data?: Prisma.JsonFilter<"AgentSessionCommit"> session?: Prisma.XOR }, "id" | "sessionId_seq"> export type AgentSessionCommitOrderByWithAggregationInput = { id?: Prisma.SortOrder sessionId?: Prisma.SortOrder seq?: Prisma.SortOrder data?: Prisma.SortOrder _count?: Prisma.AgentSessionCommitCountOrderByAggregateInput _avg?: Prisma.AgentSessionCommitAvgOrderByAggregateInput _max?: Prisma.AgentSessionCommitMaxOrderByAggregateInput _min?: Prisma.AgentSessionCommitMinOrderByAggregateInput _sum?: Prisma.AgentSessionCommitSumOrderByAggregateInput } export type AgentSessionCommitScalarWhereWithAggregatesInput = { AND?: Prisma.AgentSessionCommitScalarWhereWithAggregatesInput | Prisma.AgentSessionCommitScalarWhereWithAggregatesInput[] OR?: Prisma.AgentSessionCommitScalarWhereWithAggregatesInput[] NOT?: Prisma.AgentSessionCommitScalarWhereWithAggregatesInput | Prisma.AgentSessionCommitScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"AgentSessionCommit"> | string sessionId?: Prisma.StringWithAggregatesFilter<"AgentSessionCommit"> | string seq?: Prisma.BigIntWithAggregatesFilter<"AgentSessionCommit"> | bigint | number data?: Prisma.JsonWithAggregatesFilter<"AgentSessionCommit"> } export type AgentSessionCommitCreateInput = { id?: string seq: bigint | number data:PrismaJson.AgentSessionCommitData session: Prisma.AgentSessionCreateNestedOneWithoutCommitsInput } export type AgentSessionCommitUncheckedCreateInput = { id?: string sessionId: string seq: bigint | number data:PrismaJson.AgentSessionCommitData } export type AgentSessionCommitUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string seq?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number data?:PrismaJson.AgentSessionCommitData session?: Prisma.AgentSessionUpdateOneRequiredWithoutCommitsNestedInput } export type AgentSessionCommitUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string sessionId?: Prisma.StringFieldUpdateOperationsInput | string seq?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number data?:PrismaJson.AgentSessionCommitData } export type AgentSessionCommitCreateManyInput = { id?: string sessionId: string seq: bigint | number data:PrismaJson.AgentSessionCommitData } export type AgentSessionCommitUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string seq?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number data?:PrismaJson.AgentSessionCommitData } export type AgentSessionCommitUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string sessionId?: Prisma.StringFieldUpdateOperationsInput | string seq?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number data?:PrismaJson.AgentSessionCommitData } export type AgentSessionCommitListRelationFilter = { every?: Prisma.AgentSessionCommitWhereInput some?: Prisma.AgentSessionCommitWhereInput none?: Prisma.AgentSessionCommitWhereInput } export type AgentSessionCommitOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type AgentSessionCommitSessionIdSeqCompoundUniqueInput = { sessionId: string seq: bigint | number } export type AgentSessionCommitCountOrderByAggregateInput = { id?: Prisma.SortOrder sessionId?: Prisma.SortOrder seq?: Prisma.SortOrder data?: Prisma.SortOrder } export type AgentSessionCommitAvgOrderByAggregateInput = { seq?: Prisma.SortOrder } export type AgentSessionCommitMaxOrderByAggregateInput = { id?: Prisma.SortOrder sessionId?: Prisma.SortOrder seq?: Prisma.SortOrder } export type AgentSessionCommitMinOrderByAggregateInput = { id?: Prisma.SortOrder sessionId?: Prisma.SortOrder seq?: Prisma.SortOrder } export type AgentSessionCommitSumOrderByAggregateInput = { seq?: Prisma.SortOrder } export type AgentSessionCommitCreateNestedManyWithoutSessionInput = { create?: Prisma.XOR | Prisma.AgentSessionCommitCreateWithoutSessionInput[] | Prisma.AgentSessionCommitUncheckedCreateWithoutSessionInput[] connectOrCreate?: Prisma.AgentSessionCommitCreateOrConnectWithoutSessionInput | Prisma.AgentSessionCommitCreateOrConnectWithoutSessionInput[] createMany?: Prisma.AgentSessionCommitCreateManySessionInputEnvelope connect?: Prisma.AgentSessionCommitWhereUniqueInput | Prisma.AgentSessionCommitWhereUniqueInput[] } export type AgentSessionCommitUncheckedCreateNestedManyWithoutSessionInput = { create?: Prisma.XOR | Prisma.AgentSessionCommitCreateWithoutSessionInput[] | Prisma.AgentSessionCommitUncheckedCreateWithoutSessionInput[] connectOrCreate?: Prisma.AgentSessionCommitCreateOrConnectWithoutSessionInput | Prisma.AgentSessionCommitCreateOrConnectWithoutSessionInput[] createMany?: Prisma.AgentSessionCommitCreateManySessionInputEnvelope connect?: Prisma.AgentSessionCommitWhereUniqueInput | Prisma.AgentSessionCommitWhereUniqueInput[] } export type AgentSessionCommitUpdateManyWithoutSessionNestedInput = { create?: Prisma.XOR | Prisma.AgentSessionCommitCreateWithoutSessionInput[] | Prisma.AgentSessionCommitUncheckedCreateWithoutSessionInput[] connectOrCreate?: Prisma.AgentSessionCommitCreateOrConnectWithoutSessionInput | Prisma.AgentSessionCommitCreateOrConnectWithoutSessionInput[] upsert?: Prisma.AgentSessionCommitUpsertWithWhereUniqueWithoutSessionInput | Prisma.AgentSessionCommitUpsertWithWhereUniqueWithoutSessionInput[] createMany?: Prisma.AgentSessionCommitCreateManySessionInputEnvelope set?: Prisma.AgentSessionCommitWhereUniqueInput | Prisma.AgentSessionCommitWhereUniqueInput[] disconnect?: Prisma.AgentSessionCommitWhereUniqueInput | Prisma.AgentSessionCommitWhereUniqueInput[] delete?: Prisma.AgentSessionCommitWhereUniqueInput | Prisma.AgentSessionCommitWhereUniqueInput[] connect?: Prisma.AgentSessionCommitWhereUniqueInput | Prisma.AgentSessionCommitWhereUniqueInput[] update?: Prisma.AgentSessionCommitUpdateWithWhereUniqueWithoutSessionInput | Prisma.AgentSessionCommitUpdateWithWhereUniqueWithoutSessionInput[] updateMany?: Prisma.AgentSessionCommitUpdateManyWithWhereWithoutSessionInput | Prisma.AgentSessionCommitUpdateManyWithWhereWithoutSessionInput[] deleteMany?: Prisma.AgentSessionCommitScalarWhereInput | Prisma.AgentSessionCommitScalarWhereInput[] } export type AgentSessionCommitUncheckedUpdateManyWithoutSessionNestedInput = { create?: Prisma.XOR | Prisma.AgentSessionCommitCreateWithoutSessionInput[] | Prisma.AgentSessionCommitUncheckedCreateWithoutSessionInput[] connectOrCreate?: Prisma.AgentSessionCommitCreateOrConnectWithoutSessionInput | Prisma.AgentSessionCommitCreateOrConnectWithoutSessionInput[] upsert?: Prisma.AgentSessionCommitUpsertWithWhereUniqueWithoutSessionInput | Prisma.AgentSessionCommitUpsertWithWhereUniqueWithoutSessionInput[] createMany?: Prisma.AgentSessionCommitCreateManySessionInputEnvelope set?: Prisma.AgentSessionCommitWhereUniqueInput | Prisma.AgentSessionCommitWhereUniqueInput[] disconnect?: Prisma.AgentSessionCommitWhereUniqueInput | Prisma.AgentSessionCommitWhereUniqueInput[] delete?: Prisma.AgentSessionCommitWhereUniqueInput | Prisma.AgentSessionCommitWhereUniqueInput[] connect?: Prisma.AgentSessionCommitWhereUniqueInput | Prisma.AgentSessionCommitWhereUniqueInput[] update?: Prisma.AgentSessionCommitUpdateWithWhereUniqueWithoutSessionInput | Prisma.AgentSessionCommitUpdateWithWhereUniqueWithoutSessionInput[] updateMany?: Prisma.AgentSessionCommitUpdateManyWithWhereWithoutSessionInput | Prisma.AgentSessionCommitUpdateManyWithWhereWithoutSessionInput[] deleteMany?: Prisma.AgentSessionCommitScalarWhereInput | Prisma.AgentSessionCommitScalarWhereInput[] } export type AgentSessionCommitCreateWithoutSessionInput = { id?: string seq: bigint | number data:PrismaJson.AgentSessionCommitData } export type AgentSessionCommitUncheckedCreateWithoutSessionInput = { id?: string seq: bigint | number data:PrismaJson.AgentSessionCommitData } export type AgentSessionCommitCreateOrConnectWithoutSessionInput = { where: Prisma.AgentSessionCommitWhereUniqueInput create: Prisma.XOR } export type AgentSessionCommitCreateManySessionInputEnvelope = { data: Prisma.AgentSessionCommitCreateManySessionInput | Prisma.AgentSessionCommitCreateManySessionInput[] skipDuplicates?: boolean } export type AgentSessionCommitUpsertWithWhereUniqueWithoutSessionInput = { where: Prisma.AgentSessionCommitWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type AgentSessionCommitUpdateWithWhereUniqueWithoutSessionInput = { where: Prisma.AgentSessionCommitWhereUniqueInput data: Prisma.XOR } export type AgentSessionCommitUpdateManyWithWhereWithoutSessionInput = { where: Prisma.AgentSessionCommitScalarWhereInput data: Prisma.XOR } export type AgentSessionCommitScalarWhereInput = { AND?: Prisma.AgentSessionCommitScalarWhereInput | Prisma.AgentSessionCommitScalarWhereInput[] OR?: Prisma.AgentSessionCommitScalarWhereInput[] NOT?: Prisma.AgentSessionCommitScalarWhereInput | Prisma.AgentSessionCommitScalarWhereInput[] id?: Prisma.StringFilter<"AgentSessionCommit"> | string sessionId?: Prisma.StringFilter<"AgentSessionCommit"> | string seq?: Prisma.BigIntFilter<"AgentSessionCommit"> | bigint | number data?: Prisma.JsonFilter<"AgentSessionCommit"> } export type AgentSessionCommitCreateManySessionInput = { id?: string seq: bigint | number data:PrismaJson.AgentSessionCommitData } export type AgentSessionCommitUpdateWithoutSessionInput = { id?: Prisma.StringFieldUpdateOperationsInput | string seq?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number data?:PrismaJson.AgentSessionCommitData } export type AgentSessionCommitUncheckedUpdateWithoutSessionInput = { id?: Prisma.StringFieldUpdateOperationsInput | string seq?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number data?:PrismaJson.AgentSessionCommitData } export type AgentSessionCommitUncheckedUpdateManyWithoutSessionInput = { id?: Prisma.StringFieldUpdateOperationsInput | string seq?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number data?:PrismaJson.AgentSessionCommitData } export type AgentSessionCommitSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean sessionId?: boolean seq?: boolean data?: boolean session?: boolean | Prisma.AgentSessionDefaultArgs }, ExtArgs["result"]["agentSessionCommit"]> export type AgentSessionCommitSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean sessionId?: boolean seq?: boolean data?: boolean session?: boolean | Prisma.AgentSessionDefaultArgs }, ExtArgs["result"]["agentSessionCommit"]> export type AgentSessionCommitSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean sessionId?: boolean seq?: boolean data?: boolean session?: boolean | Prisma.AgentSessionDefaultArgs }, ExtArgs["result"]["agentSessionCommit"]> export type AgentSessionCommitSelectScalar = { id?: boolean sessionId?: boolean seq?: boolean data?: boolean } export type AgentSessionCommitOmit = runtime.Types.Extensions.GetOmit<"id" | "sessionId" | "seq" | "data", ExtArgs["result"]["agentSessionCommit"]> export type AgentSessionCommitInclude = { session?: boolean | Prisma.AgentSessionDefaultArgs } export type AgentSessionCommitIncludeCreateManyAndReturn = { session?: boolean | Prisma.AgentSessionDefaultArgs } export type AgentSessionCommitIncludeUpdateManyAndReturn = { session?: boolean | Prisma.AgentSessionDefaultArgs } export type $AgentSessionCommitPayload = { name: "AgentSessionCommit" objects: { session: Prisma.$AgentSessionPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string sessionId: string seq: bigint /** * [AgentSessionCommitData] */ data:PrismaJson.AgentSessionCommitData }, ExtArgs["result"]["agentSessionCommit"]> composites: {} } export type AgentSessionCommitGetPayload = runtime.Types.Result.GetResult export type AgentSessionCommitCountArgs = Omit & { select?: AgentSessionCommitCountAggregateInputType | true } export interface AgentSessionCommitDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['AgentSessionCommit'], meta: { name: 'AgentSessionCommit' } } /** * Find zero or one AgentSessionCommit that matches the filter. * @param {AgentSessionCommitFindUniqueArgs} args - Arguments to find a AgentSessionCommit * @example * // Get one AgentSessionCommit * const agentSessionCommit = await prisma.agentSessionCommit.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AgentSessionCommitClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one AgentSessionCommit that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AgentSessionCommitFindUniqueOrThrowArgs} args - Arguments to find a AgentSessionCommit * @example * // Get one AgentSessionCommit * const agentSessionCommit = await prisma.agentSessionCommit.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AgentSessionCommitClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first AgentSessionCommit 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 {AgentSessionCommitFindFirstArgs} args - Arguments to find a AgentSessionCommit * @example * // Get one AgentSessionCommit * const agentSessionCommit = await prisma.agentSessionCommit.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AgentSessionCommitClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first AgentSessionCommit 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 {AgentSessionCommitFindFirstOrThrowArgs} args - Arguments to find a AgentSessionCommit * @example * // Get one AgentSessionCommit * const agentSessionCommit = await prisma.agentSessionCommit.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AgentSessionCommitClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more AgentSessionCommits 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 {AgentSessionCommitFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all AgentSessionCommits * const agentSessionCommits = await prisma.agentSessionCommit.findMany() * * // Get first 10 AgentSessionCommits * const agentSessionCommits = await prisma.agentSessionCommit.findMany({ take: 10 }) * * // Only select the `id` * const agentSessionCommitWithIdOnly = await prisma.agentSessionCommit.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a AgentSessionCommit. * @param {AgentSessionCommitCreateArgs} args - Arguments to create a AgentSessionCommit. * @example * // Create one AgentSessionCommit * const AgentSessionCommit = await prisma.agentSessionCommit.create({ * data: { * // ... data to create a AgentSessionCommit * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__AgentSessionCommitClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many AgentSessionCommits. * @param {AgentSessionCommitCreateManyArgs} args - Arguments to create many AgentSessionCommits. * @example * // Create many AgentSessionCommits * const agentSessionCommit = await prisma.agentSessionCommit.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many AgentSessionCommits and returns the data saved in the database. * @param {AgentSessionCommitCreateManyAndReturnArgs} args - Arguments to create many AgentSessionCommits. * @example * // Create many AgentSessionCommits * const agentSessionCommit = await prisma.agentSessionCommit.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many AgentSessionCommits and only return the `id` * const agentSessionCommitWithIdOnly = await prisma.agentSessionCommit.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a AgentSessionCommit. * @param {AgentSessionCommitDeleteArgs} args - Arguments to delete one AgentSessionCommit. * @example * // Delete one AgentSessionCommit * const AgentSessionCommit = await prisma.agentSessionCommit.delete({ * where: { * // ... filter to delete one AgentSessionCommit * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__AgentSessionCommitClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one AgentSessionCommit. * @param {AgentSessionCommitUpdateArgs} args - Arguments to update one AgentSessionCommit. * @example * // Update one AgentSessionCommit * const agentSessionCommit = await prisma.agentSessionCommit.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__AgentSessionCommitClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more AgentSessionCommits. * @param {AgentSessionCommitDeleteManyArgs} args - Arguments to filter AgentSessionCommits to delete. * @example * // Delete a few AgentSessionCommits * const { count } = await prisma.agentSessionCommit.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AgentSessionCommits. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AgentSessionCommitUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many AgentSessionCommits * const agentSessionCommit = await prisma.agentSessionCommit.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AgentSessionCommits and returns the data updated in the database. * @param {AgentSessionCommitUpdateManyAndReturnArgs} args - Arguments to update many AgentSessionCommits. * @example * // Update many AgentSessionCommits * const agentSessionCommit = await prisma.agentSessionCommit.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more AgentSessionCommits and only return the `id` * const agentSessionCommitWithIdOnly = await prisma.agentSessionCommit.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one AgentSessionCommit. * @param {AgentSessionCommitUpsertArgs} args - Arguments to update or create a AgentSessionCommit. * @example * // Update or create a AgentSessionCommit * const agentSessionCommit = await prisma.agentSessionCommit.upsert({ * create: { * // ... data to create a AgentSessionCommit * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the AgentSessionCommit we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AgentSessionCommitClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of AgentSessionCommits. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AgentSessionCommitCountArgs} args - Arguments to filter AgentSessionCommits to count. * @example * // Count the number of AgentSessionCommits * const count = await prisma.agentSessionCommit.count({ * where: { * // ... the filter for the AgentSessionCommits we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a AgentSessionCommit. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AgentSessionCommitAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by AgentSessionCommit. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AgentSessionCommitGroupByArgs} 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 AgentSessionCommitGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: AgentSessionCommitGroupByArgs['orderBy'] } : { orderBy?: AgentSessionCommitGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetAgentSessionCommitGroupByPayload : Prisma.PrismaPromise /** * Fields of the AgentSessionCommit model */ readonly fields: AgentSessionCommitFieldRefs; } /** * The delegate class that acts as a "Promise-like" for AgentSessionCommit. * 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__AgentSessionCommitClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" session = {}>(args?: Prisma.Subset>): Prisma.Prisma__AgentSessionClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * Fields of the AgentSessionCommit model */ export interface AgentSessionCommitFieldRefs { readonly id: Prisma.FieldRef<"AgentSessionCommit", 'String'> readonly sessionId: Prisma.FieldRef<"AgentSessionCommit", 'String'> readonly seq: Prisma.FieldRef<"AgentSessionCommit", 'BigInt'> readonly data: Prisma.FieldRef<"AgentSessionCommit", 'Json'> } // Custom InputTypes /** * AgentSessionCommit findUnique */ export type AgentSessionCommitFindUniqueArgs = { /** * Select specific fields to fetch from the AgentSessionCommit */ select?: Prisma.AgentSessionCommitSelect | null /** * Omit specific fields from the AgentSessionCommit */ omit?: Prisma.AgentSessionCommitOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentSessionCommitInclude | null /** * Filter, which AgentSessionCommit to fetch. */ where: Prisma.AgentSessionCommitWhereUniqueInput } /** * AgentSessionCommit findUniqueOrThrow */ export type AgentSessionCommitFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the AgentSessionCommit */ select?: Prisma.AgentSessionCommitSelect | null /** * Omit specific fields from the AgentSessionCommit */ omit?: Prisma.AgentSessionCommitOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentSessionCommitInclude | null /** * Filter, which AgentSessionCommit to fetch. */ where: Prisma.AgentSessionCommitWhereUniqueInput } /** * AgentSessionCommit findFirst */ export type AgentSessionCommitFindFirstArgs = { /** * Select specific fields to fetch from the AgentSessionCommit */ select?: Prisma.AgentSessionCommitSelect | null /** * Omit specific fields from the AgentSessionCommit */ omit?: Prisma.AgentSessionCommitOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentSessionCommitInclude | null /** * Filter, which AgentSessionCommit to fetch. */ where?: Prisma.AgentSessionCommitWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AgentSessionCommits to fetch. */ orderBy?: Prisma.AgentSessionCommitOrderByWithRelationInput | Prisma.AgentSessionCommitOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AgentSessionCommits. */ cursor?: Prisma.AgentSessionCommitWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AgentSessionCommits 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` AgentSessionCommits. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AgentSessionCommits. */ distinct?: Prisma.AgentSessionCommitScalarFieldEnum | Prisma.AgentSessionCommitScalarFieldEnum[] } /** * AgentSessionCommit findFirstOrThrow */ export type AgentSessionCommitFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the AgentSessionCommit */ select?: Prisma.AgentSessionCommitSelect | null /** * Omit specific fields from the AgentSessionCommit */ omit?: Prisma.AgentSessionCommitOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentSessionCommitInclude | null /** * Filter, which AgentSessionCommit to fetch. */ where?: Prisma.AgentSessionCommitWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AgentSessionCommits to fetch. */ orderBy?: Prisma.AgentSessionCommitOrderByWithRelationInput | Prisma.AgentSessionCommitOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AgentSessionCommits. */ cursor?: Prisma.AgentSessionCommitWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AgentSessionCommits 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` AgentSessionCommits. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AgentSessionCommits. */ distinct?: Prisma.AgentSessionCommitScalarFieldEnum | Prisma.AgentSessionCommitScalarFieldEnum[] } /** * AgentSessionCommit findMany */ export type AgentSessionCommitFindManyArgs = { /** * Select specific fields to fetch from the AgentSessionCommit */ select?: Prisma.AgentSessionCommitSelect | null /** * Omit specific fields from the AgentSessionCommit */ omit?: Prisma.AgentSessionCommitOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentSessionCommitInclude | null /** * Filter, which AgentSessionCommits to fetch. */ where?: Prisma.AgentSessionCommitWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AgentSessionCommits to fetch. */ orderBy?: Prisma.AgentSessionCommitOrderByWithRelationInput | Prisma.AgentSessionCommitOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing AgentSessionCommits. */ cursor?: Prisma.AgentSessionCommitWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AgentSessionCommits 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` AgentSessionCommits. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AgentSessionCommits. */ distinct?: Prisma.AgentSessionCommitScalarFieldEnum | Prisma.AgentSessionCommitScalarFieldEnum[] } /** * AgentSessionCommit create */ export type AgentSessionCommitCreateArgs = { /** * Select specific fields to fetch from the AgentSessionCommit */ select?: Prisma.AgentSessionCommitSelect | null /** * Omit specific fields from the AgentSessionCommit */ omit?: Prisma.AgentSessionCommitOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentSessionCommitInclude | null /** * The data needed to create a AgentSessionCommit. */ data: Prisma.XOR } /** * AgentSessionCommit createMany */ export type AgentSessionCommitCreateManyArgs = { /** * The data used to create many AgentSessionCommits. */ data: Prisma.AgentSessionCommitCreateManyInput | Prisma.AgentSessionCommitCreateManyInput[] skipDuplicates?: boolean } /** * AgentSessionCommit createManyAndReturn */ export type AgentSessionCommitCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the AgentSessionCommit */ select?: Prisma.AgentSessionCommitSelectCreateManyAndReturn | null /** * Omit specific fields from the AgentSessionCommit */ omit?: Prisma.AgentSessionCommitOmit | null /** * The data used to create many AgentSessionCommits. */ data: Prisma.AgentSessionCommitCreateManyInput | Prisma.AgentSessionCommitCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentSessionCommitIncludeCreateManyAndReturn | null } /** * AgentSessionCommit update */ export type AgentSessionCommitUpdateArgs = { /** * Select specific fields to fetch from the AgentSessionCommit */ select?: Prisma.AgentSessionCommitSelect | null /** * Omit specific fields from the AgentSessionCommit */ omit?: Prisma.AgentSessionCommitOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentSessionCommitInclude | null /** * The data needed to update a AgentSessionCommit. */ data: Prisma.XOR /** * Choose, which AgentSessionCommit to update. */ where: Prisma.AgentSessionCommitWhereUniqueInput } /** * AgentSessionCommit updateMany */ export type AgentSessionCommitUpdateManyArgs = { /** * The data used to update AgentSessionCommits. */ data: Prisma.XOR /** * Filter which AgentSessionCommits to update */ where?: Prisma.AgentSessionCommitWhereInput /** * Limit how many AgentSessionCommits to update. */ limit?: number } /** * AgentSessionCommit updateManyAndReturn */ export type AgentSessionCommitUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the AgentSessionCommit */ select?: Prisma.AgentSessionCommitSelectUpdateManyAndReturn | null /** * Omit specific fields from the AgentSessionCommit */ omit?: Prisma.AgentSessionCommitOmit | null /** * The data used to update AgentSessionCommits. */ data: Prisma.XOR /** * Filter which AgentSessionCommits to update */ where?: Prisma.AgentSessionCommitWhereInput /** * Limit how many AgentSessionCommits to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentSessionCommitIncludeUpdateManyAndReturn | null } /** * AgentSessionCommit upsert */ export type AgentSessionCommitUpsertArgs = { /** * Select specific fields to fetch from the AgentSessionCommit */ select?: Prisma.AgentSessionCommitSelect | null /** * Omit specific fields from the AgentSessionCommit */ omit?: Prisma.AgentSessionCommitOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentSessionCommitInclude | null /** * The filter to search for the AgentSessionCommit to update in case it exists. */ where: Prisma.AgentSessionCommitWhereUniqueInput /** * In case the AgentSessionCommit found by the `where` argument doesn't exist, create a new AgentSessionCommit with this data. */ create: Prisma.XOR /** * In case the AgentSessionCommit was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * AgentSessionCommit delete */ export type AgentSessionCommitDeleteArgs = { /** * Select specific fields to fetch from the AgentSessionCommit */ select?: Prisma.AgentSessionCommitSelect | null /** * Omit specific fields from the AgentSessionCommit */ omit?: Prisma.AgentSessionCommitOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentSessionCommitInclude | null /** * Filter which AgentSessionCommit to delete. */ where: Prisma.AgentSessionCommitWhereUniqueInput } /** * AgentSessionCommit deleteMany */ export type AgentSessionCommitDeleteManyArgs = { /** * Filter which AgentSessionCommits to delete */ where?: Prisma.AgentSessionCommitWhereInput /** * Limit how many AgentSessionCommits to delete. */ limit?: number } /** * AgentSessionCommit without action */ export type AgentSessionCommitDefaultArgs = { /** * Select specific fields to fetch from the AgentSessionCommit */ select?: Prisma.AgentSessionCommitSelect | null /** * Omit specific fields from the AgentSessionCommit */ omit?: Prisma.AgentSessionCommitOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentSessionCommitInclude | null }