/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Agent` 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 Agent * */ export type AgentModel = runtime.Types.Result.DefaultSelection export type AggregateAgent = { _count: AgentCountAggregateOutputType | null _min: AgentMinAggregateOutputType | null _max: AgentMaxAggregateOutputType | null } export type AgentMinAggregateOutputType = { id: string | null type: $Enums.AgentType | null enabled: boolean | null soul: string | null providerId: string | null modelId: string | null createdAt: Date | null updatedAt: Date | null } export type AgentMaxAggregateOutputType = { id: string | null type: $Enums.AgentType | null enabled: boolean | null soul: string | null providerId: string | null modelId: string | null createdAt: Date | null updatedAt: Date | null } export type AgentCountAggregateOutputType = { id: number type: number enabled: number soul: number providerId: number modelId: number config:PrismaJson.AgentConfig createdAt: number updatedAt: number _all: number } export type AgentMinAggregateInputType = { id?: true type?: true enabled?: true soul?: true providerId?: true modelId?: true createdAt?: true updatedAt?: true } export type AgentMaxAggregateInputType = { id?: true type?: true enabled?: true soul?: true providerId?: true modelId?: true createdAt?: true updatedAt?: true } export type AgentCountAggregateInputType = { id?: true type?: true enabled?: true soul?: true providerId?: true modelId?: true config?: true createdAt?: true updatedAt?: true _all?: true } export type AgentAggregateArgs = { /** * Filter which Agent to aggregate. */ where?: Prisma.AgentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Agents to fetch. */ orderBy?: Prisma.AgentOrderByWithRelationInput | Prisma.AgentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.AgentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Agents 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` Agents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Agents **/ _count?: true | AgentCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AgentMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AgentMaxAggregateInputType } export type GetAgentAggregateType = { [P in keyof T & keyof AggregateAgent]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type AgentGroupByArgs = { where?: Prisma.AgentWhereInput orderBy?: Prisma.AgentOrderByWithAggregationInput | Prisma.AgentOrderByWithAggregationInput[] by: Prisma.AgentScalarFieldEnum[] | Prisma.AgentScalarFieldEnum having?: Prisma.AgentScalarWhereWithAggregatesInput take?: number skip?: number _count?: AgentCountAggregateInputType | true _min?: AgentMinAggregateInputType _max?: AgentMaxAggregateInputType } export type AgentGroupByOutputType = { id: string type: $Enums.AgentType enabled: boolean soul: string | null providerId: string | null modelId: string | null config:PrismaJson.AgentConfig createdAt: Date updatedAt: Date _count: AgentCountAggregateOutputType | null _min: AgentMinAggregateOutputType | null _max: AgentMaxAggregateOutputType | null } export type GetAgentGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof AgentGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type AgentWhereInput = { AND?: Prisma.AgentWhereInput | Prisma.AgentWhereInput[] OR?: Prisma.AgentWhereInput[] NOT?: Prisma.AgentWhereInput | Prisma.AgentWhereInput[] id?: Prisma.StringFilter<"Agent"> | string type?: Prisma.EnumAgentTypeFilter<"Agent"> | $Enums.AgentType enabled?: Prisma.BoolFilter<"Agent"> | boolean soul?: Prisma.StringNullableFilter<"Agent"> | string | null providerId?: Prisma.StringNullableFilter<"Agent"> | string | null modelId?: Prisma.StringNullableFilter<"Agent"> | string | null config?: Prisma.JsonFilter<"Agent"> createdAt?: Prisma.DateTimeFilter<"Agent"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Agent"> | Date | string user?: Prisma.XOR provider?: Prisma.XOR | null modelRef?: Prisma.XOR | null agentSessions?: Prisma.AgentSessionListRelationFilter skills?: Prisma.AgentSkillListRelationFilter } export type AgentOrderByWithRelationInput = { id?: Prisma.SortOrder type?: Prisma.SortOrder enabled?: Prisma.SortOrder soul?: Prisma.SortOrderInput | Prisma.SortOrder providerId?: Prisma.SortOrderInput | Prisma.SortOrder modelId?: Prisma.SortOrderInput | Prisma.SortOrder config?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder user?: Prisma.UserOrderByWithRelationInput provider?: Prisma.ProviderOrderByWithRelationInput modelRef?: Prisma.ModelOrderByWithRelationInput agentSessions?: Prisma.AgentSessionOrderByRelationAggregateInput skills?: Prisma.AgentSkillOrderByRelationAggregateInput } export type AgentWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.AgentWhereInput | Prisma.AgentWhereInput[] OR?: Prisma.AgentWhereInput[] NOT?: Prisma.AgentWhereInput | Prisma.AgentWhereInput[] type?: Prisma.EnumAgentTypeFilter<"Agent"> | $Enums.AgentType enabled?: Prisma.BoolFilter<"Agent"> | boolean soul?: Prisma.StringNullableFilter<"Agent"> | string | null providerId?: Prisma.StringNullableFilter<"Agent"> | string | null modelId?: Prisma.StringNullableFilter<"Agent"> | string | null config?: Prisma.JsonFilter<"Agent"> createdAt?: Prisma.DateTimeFilter<"Agent"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Agent"> | Date | string user?: Prisma.XOR provider?: Prisma.XOR | null modelRef?: Prisma.XOR | null agentSessions?: Prisma.AgentSessionListRelationFilter skills?: Prisma.AgentSkillListRelationFilter }, "id"> export type AgentOrderByWithAggregationInput = { id?: Prisma.SortOrder type?: Prisma.SortOrder enabled?: Prisma.SortOrder soul?: Prisma.SortOrderInput | Prisma.SortOrder providerId?: Prisma.SortOrderInput | Prisma.SortOrder modelId?: Prisma.SortOrderInput | Prisma.SortOrder config?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder _count?: Prisma.AgentCountOrderByAggregateInput _max?: Prisma.AgentMaxOrderByAggregateInput _min?: Prisma.AgentMinOrderByAggregateInput } export type AgentScalarWhereWithAggregatesInput = { AND?: Prisma.AgentScalarWhereWithAggregatesInput | Prisma.AgentScalarWhereWithAggregatesInput[] OR?: Prisma.AgentScalarWhereWithAggregatesInput[] NOT?: Prisma.AgentScalarWhereWithAggregatesInput | Prisma.AgentScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Agent"> | string type?: Prisma.EnumAgentTypeWithAggregatesFilter<"Agent"> | $Enums.AgentType enabled?: Prisma.BoolWithAggregatesFilter<"Agent"> | boolean soul?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null providerId?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null modelId?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null config?: Prisma.JsonWithAggregatesFilter<"Agent"> createdAt?: Prisma.DateTimeWithAggregatesFilter<"Agent"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Agent"> | Date | string } export type AgentCreateInput = { type: $Enums.AgentType enabled?: boolean soul?: string | null config:PrismaJson.AgentConfig createdAt?: Date | string updatedAt?: Date | string user: Prisma.UserCreateNestedOneWithoutAgentInput provider?: Prisma.ProviderCreateNestedOneWithoutAgentsInput modelRef?: Prisma.ModelCreateNestedOneWithoutAgentsInput agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutAgentInput skills?: Prisma.AgentSkillCreateNestedManyWithoutAgentInput } export type AgentUncheckedCreateInput = { id: string type: $Enums.AgentType enabled?: boolean soul?: string | null providerId?: string | null modelId?: string | null config:PrismaJson.AgentConfig createdAt?: Date | string updatedAt?: Date | string agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutAgentInput skills?: Prisma.AgentSkillUncheckedCreateNestedManyWithoutAgentInput } export type AgentUpdateInput = { type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null config?:PrismaJson.AgentConfig createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string user?: Prisma.UserUpdateOneRequiredWithoutAgentNestedInput provider?: Prisma.ProviderUpdateOneWithoutAgentsNestedInput modelRef?: Prisma.ModelUpdateOneWithoutAgentsNestedInput agentSessions?: Prisma.AgentSessionUpdateManyWithoutAgentNestedInput skills?: Prisma.AgentSkillUpdateManyWithoutAgentNestedInput } export type AgentUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null modelId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null config?:PrismaJson.AgentConfig createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutAgentNestedInput skills?: Prisma.AgentSkillUncheckedUpdateManyWithoutAgentNestedInput } export type AgentCreateManyInput = { id: string type: $Enums.AgentType enabled?: boolean soul?: string | null providerId?: string | null modelId?: string | null config:PrismaJson.AgentConfig createdAt?: Date | string updatedAt?: Date | string } export type AgentUpdateManyMutationInput = { type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null config?:PrismaJson.AgentConfig createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type AgentUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null modelId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null config?:PrismaJson.AgentConfig createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type AgentNullableScalarRelationFilter = { is?: Prisma.AgentWhereInput | null isNot?: Prisma.AgentWhereInput | null } export type AgentCountOrderByAggregateInput = { id?: Prisma.SortOrder type?: Prisma.SortOrder enabled?: Prisma.SortOrder soul?: Prisma.SortOrder providerId?: Prisma.SortOrder modelId?: Prisma.SortOrder config?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type AgentMaxOrderByAggregateInput = { id?: Prisma.SortOrder type?: Prisma.SortOrder enabled?: Prisma.SortOrder soul?: Prisma.SortOrder providerId?: Prisma.SortOrder modelId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type AgentMinOrderByAggregateInput = { id?: Prisma.SortOrder type?: Prisma.SortOrder enabled?: Prisma.SortOrder soul?: Prisma.SortOrder providerId?: Prisma.SortOrder modelId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type AgentScalarRelationFilter = { is?: Prisma.AgentWhereInput isNot?: Prisma.AgentWhereInput } export type AgentListRelationFilter = { every?: Prisma.AgentWhereInput some?: Prisma.AgentWhereInput none?: Prisma.AgentWhereInput } export type AgentOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type AgentCreateNestedOneWithoutUserInput = { create?: Prisma.XOR connectOrCreate?: Prisma.AgentCreateOrConnectWithoutUserInput connect?: Prisma.AgentWhereUniqueInput } export type AgentUncheckedCreateNestedOneWithoutUserInput = { create?: Prisma.XOR connectOrCreate?: Prisma.AgentCreateOrConnectWithoutUserInput connect?: Prisma.AgentWhereUniqueInput } export type AgentUpdateOneWithoutUserNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.AgentCreateOrConnectWithoutUserInput upsert?: Prisma.AgentUpsertWithoutUserInput disconnect?: Prisma.AgentWhereInput | boolean delete?: Prisma.AgentWhereInput | boolean connect?: Prisma.AgentWhereUniqueInput update?: Prisma.XOR, Prisma.AgentUncheckedUpdateWithoutUserInput> } export type AgentUncheckedUpdateOneWithoutUserNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.AgentCreateOrConnectWithoutUserInput upsert?: Prisma.AgentUpsertWithoutUserInput disconnect?: Prisma.AgentWhereInput | boolean delete?: Prisma.AgentWhereInput | boolean connect?: Prisma.AgentWhereUniqueInput update?: Prisma.XOR, Prisma.AgentUncheckedUpdateWithoutUserInput> } export type EnumAgentTypeFieldUpdateOperationsInput = { set?: $Enums.AgentType } export type AgentCreateNestedOneWithoutSkillsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.AgentCreateOrConnectWithoutSkillsInput connect?: Prisma.AgentWhereUniqueInput } export type AgentUpdateOneRequiredWithoutSkillsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.AgentCreateOrConnectWithoutSkillsInput upsert?: Prisma.AgentUpsertWithoutSkillsInput connect?: Prisma.AgentWhereUniqueInput update?: Prisma.XOR, Prisma.AgentUncheckedUpdateWithoutSkillsInput> } export type AgentCreateNestedOneWithoutAgentSessionsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.AgentCreateOrConnectWithoutAgentSessionsInput connect?: Prisma.AgentWhereUniqueInput } export type AgentUpdateOneRequiredWithoutAgentSessionsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.AgentCreateOrConnectWithoutAgentSessionsInput upsert?: Prisma.AgentUpsertWithoutAgentSessionsInput connect?: Prisma.AgentWhereUniqueInput update?: Prisma.XOR, Prisma.AgentUncheckedUpdateWithoutAgentSessionsInput> } export type AgentCreateNestedManyWithoutModelRefInput = { create?: Prisma.XOR | Prisma.AgentCreateWithoutModelRefInput[] | Prisma.AgentUncheckedCreateWithoutModelRefInput[] connectOrCreate?: Prisma.AgentCreateOrConnectWithoutModelRefInput | Prisma.AgentCreateOrConnectWithoutModelRefInput[] createMany?: Prisma.AgentCreateManyModelRefInputEnvelope connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] } export type AgentUncheckedCreateNestedManyWithoutModelRefInput = { create?: Prisma.XOR | Prisma.AgentCreateWithoutModelRefInput[] | Prisma.AgentUncheckedCreateWithoutModelRefInput[] connectOrCreate?: Prisma.AgentCreateOrConnectWithoutModelRefInput | Prisma.AgentCreateOrConnectWithoutModelRefInput[] createMany?: Prisma.AgentCreateManyModelRefInputEnvelope connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] } export type AgentUpdateManyWithoutModelRefNestedInput = { create?: Prisma.XOR | Prisma.AgentCreateWithoutModelRefInput[] | Prisma.AgentUncheckedCreateWithoutModelRefInput[] connectOrCreate?: Prisma.AgentCreateOrConnectWithoutModelRefInput | Prisma.AgentCreateOrConnectWithoutModelRefInput[] upsert?: Prisma.AgentUpsertWithWhereUniqueWithoutModelRefInput | Prisma.AgentUpsertWithWhereUniqueWithoutModelRefInput[] createMany?: Prisma.AgentCreateManyModelRefInputEnvelope set?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] disconnect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] delete?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] update?: Prisma.AgentUpdateWithWhereUniqueWithoutModelRefInput | Prisma.AgentUpdateWithWhereUniqueWithoutModelRefInput[] updateMany?: Prisma.AgentUpdateManyWithWhereWithoutModelRefInput | Prisma.AgentUpdateManyWithWhereWithoutModelRefInput[] deleteMany?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[] } export type AgentUncheckedUpdateManyWithoutModelRefNestedInput = { create?: Prisma.XOR | Prisma.AgentCreateWithoutModelRefInput[] | Prisma.AgentUncheckedCreateWithoutModelRefInput[] connectOrCreate?: Prisma.AgentCreateOrConnectWithoutModelRefInput | Prisma.AgentCreateOrConnectWithoutModelRefInput[] upsert?: Prisma.AgentUpsertWithWhereUniqueWithoutModelRefInput | Prisma.AgentUpsertWithWhereUniqueWithoutModelRefInput[] createMany?: Prisma.AgentCreateManyModelRefInputEnvelope set?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] disconnect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] delete?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] update?: Prisma.AgentUpdateWithWhereUniqueWithoutModelRefInput | Prisma.AgentUpdateWithWhereUniqueWithoutModelRefInput[] updateMany?: Prisma.AgentUpdateManyWithWhereWithoutModelRefInput | Prisma.AgentUpdateManyWithWhereWithoutModelRefInput[] deleteMany?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[] } export type AgentCreateNestedManyWithoutProviderInput = { create?: Prisma.XOR | Prisma.AgentCreateWithoutProviderInput[] | Prisma.AgentUncheckedCreateWithoutProviderInput[] connectOrCreate?: Prisma.AgentCreateOrConnectWithoutProviderInput | Prisma.AgentCreateOrConnectWithoutProviderInput[] createMany?: Prisma.AgentCreateManyProviderInputEnvelope connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] } export type AgentUncheckedCreateNestedManyWithoutProviderInput = { create?: Prisma.XOR | Prisma.AgentCreateWithoutProviderInput[] | Prisma.AgentUncheckedCreateWithoutProviderInput[] connectOrCreate?: Prisma.AgentCreateOrConnectWithoutProviderInput | Prisma.AgentCreateOrConnectWithoutProviderInput[] createMany?: Prisma.AgentCreateManyProviderInputEnvelope connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] } export type AgentUpdateManyWithoutProviderNestedInput = { create?: Prisma.XOR | Prisma.AgentCreateWithoutProviderInput[] | Prisma.AgentUncheckedCreateWithoutProviderInput[] connectOrCreate?: Prisma.AgentCreateOrConnectWithoutProviderInput | Prisma.AgentCreateOrConnectWithoutProviderInput[] upsert?: Prisma.AgentUpsertWithWhereUniqueWithoutProviderInput | Prisma.AgentUpsertWithWhereUniqueWithoutProviderInput[] createMany?: Prisma.AgentCreateManyProviderInputEnvelope set?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] disconnect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] delete?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] update?: Prisma.AgentUpdateWithWhereUniqueWithoutProviderInput | Prisma.AgentUpdateWithWhereUniqueWithoutProviderInput[] updateMany?: Prisma.AgentUpdateManyWithWhereWithoutProviderInput | Prisma.AgentUpdateManyWithWhereWithoutProviderInput[] deleteMany?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[] } export type AgentUncheckedUpdateManyWithoutProviderNestedInput = { create?: Prisma.XOR | Prisma.AgentCreateWithoutProviderInput[] | Prisma.AgentUncheckedCreateWithoutProviderInput[] connectOrCreate?: Prisma.AgentCreateOrConnectWithoutProviderInput | Prisma.AgentCreateOrConnectWithoutProviderInput[] upsert?: Prisma.AgentUpsertWithWhereUniqueWithoutProviderInput | Prisma.AgentUpsertWithWhereUniqueWithoutProviderInput[] createMany?: Prisma.AgentCreateManyProviderInputEnvelope set?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] disconnect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] delete?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] update?: Prisma.AgentUpdateWithWhereUniqueWithoutProviderInput | Prisma.AgentUpdateWithWhereUniqueWithoutProviderInput[] updateMany?: Prisma.AgentUpdateManyWithWhereWithoutProviderInput | Prisma.AgentUpdateManyWithWhereWithoutProviderInput[] deleteMany?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[] } export type AgentCreateWithoutUserInput = { type: $Enums.AgentType enabled?: boolean soul?: string | null config:PrismaJson.AgentConfig createdAt?: Date | string updatedAt?: Date | string provider?: Prisma.ProviderCreateNestedOneWithoutAgentsInput modelRef?: Prisma.ModelCreateNestedOneWithoutAgentsInput agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutAgentInput skills?: Prisma.AgentSkillCreateNestedManyWithoutAgentInput } export type AgentUncheckedCreateWithoutUserInput = { type: $Enums.AgentType enabled?: boolean soul?: string | null providerId?: string | null modelId?: string | null config:PrismaJson.AgentConfig createdAt?: Date | string updatedAt?: Date | string agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutAgentInput skills?: Prisma.AgentSkillUncheckedCreateNestedManyWithoutAgentInput } export type AgentCreateOrConnectWithoutUserInput = { where: Prisma.AgentWhereUniqueInput create: Prisma.XOR } export type AgentUpsertWithoutUserInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.AgentWhereInput } export type AgentUpdateToOneWithWhereWithoutUserInput = { where?: Prisma.AgentWhereInput data: Prisma.XOR } export type AgentUpdateWithoutUserInput = { type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null config?:PrismaJson.AgentConfig createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string provider?: Prisma.ProviderUpdateOneWithoutAgentsNestedInput modelRef?: Prisma.ModelUpdateOneWithoutAgentsNestedInput agentSessions?: Prisma.AgentSessionUpdateManyWithoutAgentNestedInput skills?: Prisma.AgentSkillUpdateManyWithoutAgentNestedInput } export type AgentUncheckedUpdateWithoutUserInput = { type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null modelId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null config?:PrismaJson.AgentConfig createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutAgentNestedInput skills?: Prisma.AgentSkillUncheckedUpdateManyWithoutAgentNestedInput } export type AgentCreateWithoutSkillsInput = { type: $Enums.AgentType enabled?: boolean soul?: string | null config:PrismaJson.AgentConfig createdAt?: Date | string updatedAt?: Date | string user: Prisma.UserCreateNestedOneWithoutAgentInput provider?: Prisma.ProviderCreateNestedOneWithoutAgentsInput modelRef?: Prisma.ModelCreateNestedOneWithoutAgentsInput agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutAgentInput } export type AgentUncheckedCreateWithoutSkillsInput = { id: string type: $Enums.AgentType enabled?: boolean soul?: string | null providerId?: string | null modelId?: string | null config:PrismaJson.AgentConfig createdAt?: Date | string updatedAt?: Date | string agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutAgentInput } export type AgentCreateOrConnectWithoutSkillsInput = { where: Prisma.AgentWhereUniqueInput create: Prisma.XOR } export type AgentUpsertWithoutSkillsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.AgentWhereInput } export type AgentUpdateToOneWithWhereWithoutSkillsInput = { where?: Prisma.AgentWhereInput data: Prisma.XOR } export type AgentUpdateWithoutSkillsInput = { type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null config?:PrismaJson.AgentConfig createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string user?: Prisma.UserUpdateOneRequiredWithoutAgentNestedInput provider?: Prisma.ProviderUpdateOneWithoutAgentsNestedInput modelRef?: Prisma.ModelUpdateOneWithoutAgentsNestedInput agentSessions?: Prisma.AgentSessionUpdateManyWithoutAgentNestedInput } export type AgentUncheckedUpdateWithoutSkillsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null modelId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null config?:PrismaJson.AgentConfig createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutAgentNestedInput } export type AgentCreateWithoutAgentSessionsInput = { type: $Enums.AgentType enabled?: boolean soul?: string | null config:PrismaJson.AgentConfig createdAt?: Date | string updatedAt?: Date | string user: Prisma.UserCreateNestedOneWithoutAgentInput provider?: Prisma.ProviderCreateNestedOneWithoutAgentsInput modelRef?: Prisma.ModelCreateNestedOneWithoutAgentsInput skills?: Prisma.AgentSkillCreateNestedManyWithoutAgentInput } export type AgentUncheckedCreateWithoutAgentSessionsInput = { id: string type: $Enums.AgentType enabled?: boolean soul?: string | null providerId?: string | null modelId?: string | null config:PrismaJson.AgentConfig createdAt?: Date | string updatedAt?: Date | string skills?: Prisma.AgentSkillUncheckedCreateNestedManyWithoutAgentInput } export type AgentCreateOrConnectWithoutAgentSessionsInput = { where: Prisma.AgentWhereUniqueInput create: Prisma.XOR } export type AgentUpsertWithoutAgentSessionsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.AgentWhereInput } export type AgentUpdateToOneWithWhereWithoutAgentSessionsInput = { where?: Prisma.AgentWhereInput data: Prisma.XOR } export type AgentUpdateWithoutAgentSessionsInput = { type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null config?:PrismaJson.AgentConfig createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string user?: Prisma.UserUpdateOneRequiredWithoutAgentNestedInput provider?: Prisma.ProviderUpdateOneWithoutAgentsNestedInput modelRef?: Prisma.ModelUpdateOneWithoutAgentsNestedInput skills?: Prisma.AgentSkillUpdateManyWithoutAgentNestedInput } export type AgentUncheckedUpdateWithoutAgentSessionsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null modelId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null config?:PrismaJson.AgentConfig createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string skills?: Prisma.AgentSkillUncheckedUpdateManyWithoutAgentNestedInput } export type AgentCreateWithoutModelRefInput = { type: $Enums.AgentType enabled?: boolean soul?: string | null config:PrismaJson.AgentConfig createdAt?: Date | string updatedAt?: Date | string user: Prisma.UserCreateNestedOneWithoutAgentInput provider?: Prisma.ProviderCreateNestedOneWithoutAgentsInput agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutAgentInput skills?: Prisma.AgentSkillCreateNestedManyWithoutAgentInput } export type AgentUncheckedCreateWithoutModelRefInput = { id: string type: $Enums.AgentType enabled?: boolean soul?: string | null providerId?: string | null config:PrismaJson.AgentConfig createdAt?: Date | string updatedAt?: Date | string agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutAgentInput skills?: Prisma.AgentSkillUncheckedCreateNestedManyWithoutAgentInput } export type AgentCreateOrConnectWithoutModelRefInput = { where: Prisma.AgentWhereUniqueInput create: Prisma.XOR } export type AgentCreateManyModelRefInputEnvelope = { data: Prisma.AgentCreateManyModelRefInput | Prisma.AgentCreateManyModelRefInput[] skipDuplicates?: boolean } export type AgentUpsertWithWhereUniqueWithoutModelRefInput = { where: Prisma.AgentWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type AgentUpdateWithWhereUniqueWithoutModelRefInput = { where: Prisma.AgentWhereUniqueInput data: Prisma.XOR } export type AgentUpdateManyWithWhereWithoutModelRefInput = { where: Prisma.AgentScalarWhereInput data: Prisma.XOR } export type AgentScalarWhereInput = { AND?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[] OR?: Prisma.AgentScalarWhereInput[] NOT?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[] id?: Prisma.StringFilter<"Agent"> | string type?: Prisma.EnumAgentTypeFilter<"Agent"> | $Enums.AgentType enabled?: Prisma.BoolFilter<"Agent"> | boolean soul?: Prisma.StringNullableFilter<"Agent"> | string | null providerId?: Prisma.StringNullableFilter<"Agent"> | string | null modelId?: Prisma.StringNullableFilter<"Agent"> | string | null config?: Prisma.JsonFilter<"Agent"> createdAt?: Prisma.DateTimeFilter<"Agent"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Agent"> | Date | string } export type AgentCreateWithoutProviderInput = { type: $Enums.AgentType enabled?: boolean soul?: string | null config:PrismaJson.AgentConfig createdAt?: Date | string updatedAt?: Date | string user: Prisma.UserCreateNestedOneWithoutAgentInput modelRef?: Prisma.ModelCreateNestedOneWithoutAgentsInput agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutAgentInput skills?: Prisma.AgentSkillCreateNestedManyWithoutAgentInput } export type AgentUncheckedCreateWithoutProviderInput = { id: string type: $Enums.AgentType enabled?: boolean soul?: string | null modelId?: string | null config:PrismaJson.AgentConfig createdAt?: Date | string updatedAt?: Date | string agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutAgentInput skills?: Prisma.AgentSkillUncheckedCreateNestedManyWithoutAgentInput } export type AgentCreateOrConnectWithoutProviderInput = { where: Prisma.AgentWhereUniqueInput create: Prisma.XOR } export type AgentCreateManyProviderInputEnvelope = { data: Prisma.AgentCreateManyProviderInput | Prisma.AgentCreateManyProviderInput[] skipDuplicates?: boolean } export type AgentUpsertWithWhereUniqueWithoutProviderInput = { where: Prisma.AgentWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type AgentUpdateWithWhereUniqueWithoutProviderInput = { where: Prisma.AgentWhereUniqueInput data: Prisma.XOR } export type AgentUpdateManyWithWhereWithoutProviderInput = { where: Prisma.AgentScalarWhereInput data: Prisma.XOR } export type AgentCreateManyModelRefInput = { id: string type: $Enums.AgentType enabled?: boolean soul?: string | null providerId?: string | null config:PrismaJson.AgentConfig createdAt?: Date | string updatedAt?: Date | string } export type AgentUpdateWithoutModelRefInput = { type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null config?:PrismaJson.AgentConfig createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string user?: Prisma.UserUpdateOneRequiredWithoutAgentNestedInput provider?: Prisma.ProviderUpdateOneWithoutAgentsNestedInput agentSessions?: Prisma.AgentSessionUpdateManyWithoutAgentNestedInput skills?: Prisma.AgentSkillUpdateManyWithoutAgentNestedInput } export type AgentUncheckedUpdateWithoutModelRefInput = { id?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null config?:PrismaJson.AgentConfig createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutAgentNestedInput skills?: Prisma.AgentSkillUncheckedUpdateManyWithoutAgentNestedInput } export type AgentUncheckedUpdateManyWithoutModelRefInput = { id?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null config?:PrismaJson.AgentConfig createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type AgentCreateManyProviderInput = { id: string type: $Enums.AgentType enabled?: boolean soul?: string | null modelId?: string | null config:PrismaJson.AgentConfig createdAt?: Date | string updatedAt?: Date | string } export type AgentUpdateWithoutProviderInput = { type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null config?:PrismaJson.AgentConfig createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string user?: Prisma.UserUpdateOneRequiredWithoutAgentNestedInput modelRef?: Prisma.ModelUpdateOneWithoutAgentsNestedInput agentSessions?: Prisma.AgentSessionUpdateManyWithoutAgentNestedInput skills?: Prisma.AgentSkillUpdateManyWithoutAgentNestedInput } export type AgentUncheckedUpdateWithoutProviderInput = { id?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null modelId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null config?:PrismaJson.AgentConfig createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutAgentNestedInput skills?: Prisma.AgentSkillUncheckedUpdateManyWithoutAgentNestedInput } export type AgentUncheckedUpdateManyWithoutProviderInput = { id?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null modelId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null config?:PrismaJson.AgentConfig createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } /** * Count Type AgentCountOutputType */ export type AgentCountOutputType = { agentSessions: number skills: number } export type AgentCountOutputTypeSelect = { agentSessions?: boolean | AgentCountOutputTypeCountAgentSessionsArgs skills?: boolean | AgentCountOutputTypeCountSkillsArgs } /** * AgentCountOutputType without action */ export type AgentCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the AgentCountOutputType */ select?: Prisma.AgentCountOutputTypeSelect | null } /** * AgentCountOutputType without action */ export type AgentCountOutputTypeCountAgentSessionsArgs = { where?: Prisma.AgentSessionWhereInput } /** * AgentCountOutputType without action */ export type AgentCountOutputTypeCountSkillsArgs = { where?: Prisma.AgentSkillWhereInput } export type AgentSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean type?: boolean enabled?: boolean soul?: boolean providerId?: boolean modelId?: boolean config?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | Prisma.UserDefaultArgs provider?: boolean | Prisma.Agent$providerArgs modelRef?: boolean | Prisma.Agent$modelRefArgs agentSessions?: boolean | Prisma.Agent$agentSessionsArgs skills?: boolean | Prisma.Agent$skillsArgs _count?: boolean | Prisma.AgentCountOutputTypeDefaultArgs }, ExtArgs["result"]["agent"]> export type AgentSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean type?: boolean enabled?: boolean soul?: boolean providerId?: boolean modelId?: boolean config?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | Prisma.UserDefaultArgs provider?: boolean | Prisma.Agent$providerArgs modelRef?: boolean | Prisma.Agent$modelRefArgs }, ExtArgs["result"]["agent"]> export type AgentSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean type?: boolean enabled?: boolean soul?: boolean providerId?: boolean modelId?: boolean config?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | Prisma.UserDefaultArgs provider?: boolean | Prisma.Agent$providerArgs modelRef?: boolean | Prisma.Agent$modelRefArgs }, ExtArgs["result"]["agent"]> export type AgentSelectScalar = { id?: boolean type?: boolean enabled?: boolean soul?: boolean providerId?: boolean modelId?: boolean config?: boolean createdAt?: boolean updatedAt?: boolean } export type AgentOmit = runtime.Types.Extensions.GetOmit<"id" | "type" | "enabled" | "soul" | "providerId" | "modelId" | "config" | "createdAt" | "updatedAt", ExtArgs["result"]["agent"]> export type AgentInclude = { user?: boolean | Prisma.UserDefaultArgs provider?: boolean | Prisma.Agent$providerArgs modelRef?: boolean | Prisma.Agent$modelRefArgs agentSessions?: boolean | Prisma.Agent$agentSessionsArgs skills?: boolean | Prisma.Agent$skillsArgs _count?: boolean | Prisma.AgentCountOutputTypeDefaultArgs } export type AgentIncludeCreateManyAndReturn = { user?: boolean | Prisma.UserDefaultArgs provider?: boolean | Prisma.Agent$providerArgs modelRef?: boolean | Prisma.Agent$modelRefArgs } export type AgentIncludeUpdateManyAndReturn = { user?: boolean | Prisma.UserDefaultArgs provider?: boolean | Prisma.Agent$providerArgs modelRef?: boolean | Prisma.Agent$modelRefArgs } export type $AgentPayload = { name: "Agent" objects: { user: Prisma.$UserPayload provider: Prisma.$ProviderPayload | null modelRef: Prisma.$ModelPayload | null agentSessions: Prisma.$AgentSessionPayload[] skills: Prisma.$AgentSkillPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string type: $Enums.AgentType enabled: boolean soul: string | null providerId: string | null modelId: string | null /** * [AgentConfig] */ config:PrismaJson.AgentConfig createdAt: Date updatedAt: Date }, ExtArgs["result"]["agent"]> composites: {} } export type AgentGetPayload = runtime.Types.Result.GetResult export type AgentCountArgs = Omit & { select?: AgentCountAggregateInputType | true } export interface AgentDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Agent'], meta: { name: 'Agent' } } /** * Find zero or one Agent that matches the filter. * @param {AgentFindUniqueArgs} args - Arguments to find a Agent * @example * // Get one Agent * const agent = await prisma.agent.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AgentClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Agent that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AgentFindUniqueOrThrowArgs} args - Arguments to find a Agent * @example * // Get one Agent * const agent = await prisma.agent.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AgentClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Agent 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 {AgentFindFirstArgs} args - Arguments to find a Agent * @example * // Get one Agent * const agent = await prisma.agent.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AgentClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Agent 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 {AgentFindFirstOrThrowArgs} args - Arguments to find a Agent * @example * // Get one Agent * const agent = await prisma.agent.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AgentClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Agents 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 {AgentFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Agents * const agents = await prisma.agent.findMany() * * // Get first 10 Agents * const agents = await prisma.agent.findMany({ take: 10 }) * * // Only select the `id` * const agentWithIdOnly = await prisma.agent.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Agent. * @param {AgentCreateArgs} args - Arguments to create a Agent. * @example * // Create one Agent * const Agent = await prisma.agent.create({ * data: { * // ... data to create a Agent * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__AgentClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Agents. * @param {AgentCreateManyArgs} args - Arguments to create many Agents. * @example * // Create many Agents * const agent = await prisma.agent.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Agents and returns the data saved in the database. * @param {AgentCreateManyAndReturnArgs} args - Arguments to create many Agents. * @example * // Create many Agents * const agent = await prisma.agent.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Agents and only return the `id` * const agentWithIdOnly = await prisma.agent.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 Agent. * @param {AgentDeleteArgs} args - Arguments to delete one Agent. * @example * // Delete one Agent * const Agent = await prisma.agent.delete({ * where: { * // ... filter to delete one Agent * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__AgentClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Agent. * @param {AgentUpdateArgs} args - Arguments to update one Agent. * @example * // Update one Agent * const agent = await prisma.agent.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__AgentClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Agents. * @param {AgentDeleteManyArgs} args - Arguments to filter Agents to delete. * @example * // Delete a few Agents * const { count } = await prisma.agent.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Agents. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AgentUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Agents * const agent = await prisma.agent.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Agents and returns the data updated in the database. * @param {AgentUpdateManyAndReturnArgs} args - Arguments to update many Agents. * @example * // Update many Agents * const agent = await prisma.agent.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Agents and only return the `id` * const agentWithIdOnly = await prisma.agent.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 Agent. * @param {AgentUpsertArgs} args - Arguments to update or create a Agent. * @example * // Update or create a Agent * const agent = await prisma.agent.upsert({ * create: { * // ... data to create a Agent * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Agent we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AgentClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Agents. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AgentCountArgs} args - Arguments to filter Agents to count. * @example * // Count the number of Agents * const count = await prisma.agent.count({ * where: { * // ... the filter for the Agents 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 Agent. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AgentAggregateArgs} 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 Agent. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AgentGroupByArgs} 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 AgentGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: AgentGroupByArgs['orderBy'] } : { orderBy?: AgentGroupByArgs['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 ? GetAgentGroupByPayload : Prisma.PrismaPromise /** * Fields of the Agent model */ readonly fields: AgentFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Agent. * 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__AgentClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> provider = {}>(args?: Prisma.Subset>): Prisma.Prisma__ProviderClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> modelRef = {}>(args?: Prisma.Subset>): Prisma.Prisma__ModelClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> agentSessions = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> skills = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> /** * 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 Agent model */ export interface AgentFieldRefs { readonly id: Prisma.FieldRef<"Agent", 'String'> readonly type: Prisma.FieldRef<"Agent", 'AgentType'> readonly enabled: Prisma.FieldRef<"Agent", 'Boolean'> readonly soul: Prisma.FieldRef<"Agent", 'String'> readonly providerId: Prisma.FieldRef<"Agent", 'String'> readonly modelId: Prisma.FieldRef<"Agent", 'String'> readonly config: Prisma.FieldRef<"Agent", 'Json'> readonly createdAt: Prisma.FieldRef<"Agent", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"Agent", 'DateTime'> } // Custom InputTypes /** * Agent findUnique */ export type AgentFindUniqueArgs = { /** * Select specific fields to fetch from the Agent */ select?: Prisma.AgentSelect | null /** * Omit specific fields from the Agent */ omit?: Prisma.AgentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentInclude | null /** * Filter, which Agent to fetch. */ where: Prisma.AgentWhereUniqueInput } /** * Agent findUniqueOrThrow */ export type AgentFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Agent */ select?: Prisma.AgentSelect | null /** * Omit specific fields from the Agent */ omit?: Prisma.AgentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentInclude | null /** * Filter, which Agent to fetch. */ where: Prisma.AgentWhereUniqueInput } /** * Agent findFirst */ export type AgentFindFirstArgs = { /** * Select specific fields to fetch from the Agent */ select?: Prisma.AgentSelect | null /** * Omit specific fields from the Agent */ omit?: Prisma.AgentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentInclude | null /** * Filter, which Agent to fetch. */ where?: Prisma.AgentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Agents to fetch. */ orderBy?: Prisma.AgentOrderByWithRelationInput | Prisma.AgentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Agents. */ cursor?: Prisma.AgentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Agents 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` Agents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Agents. */ distinct?: Prisma.AgentScalarFieldEnum | Prisma.AgentScalarFieldEnum[] } /** * Agent findFirstOrThrow */ export type AgentFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Agent */ select?: Prisma.AgentSelect | null /** * Omit specific fields from the Agent */ omit?: Prisma.AgentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentInclude | null /** * Filter, which Agent to fetch. */ where?: Prisma.AgentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Agents to fetch. */ orderBy?: Prisma.AgentOrderByWithRelationInput | Prisma.AgentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Agents. */ cursor?: Prisma.AgentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Agents 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` Agents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Agents. */ distinct?: Prisma.AgentScalarFieldEnum | Prisma.AgentScalarFieldEnum[] } /** * Agent findMany */ export type AgentFindManyArgs = { /** * Select specific fields to fetch from the Agent */ select?: Prisma.AgentSelect | null /** * Omit specific fields from the Agent */ omit?: Prisma.AgentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentInclude | null /** * Filter, which Agents to fetch. */ where?: Prisma.AgentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Agents to fetch. */ orderBy?: Prisma.AgentOrderByWithRelationInput | Prisma.AgentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Agents. */ cursor?: Prisma.AgentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Agents 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` Agents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Agents. */ distinct?: Prisma.AgentScalarFieldEnum | Prisma.AgentScalarFieldEnum[] } /** * Agent create */ export type AgentCreateArgs = { /** * Select specific fields to fetch from the Agent */ select?: Prisma.AgentSelect | null /** * Omit specific fields from the Agent */ omit?: Prisma.AgentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentInclude | null /** * The data needed to create a Agent. */ data: Prisma.XOR } /** * Agent createMany */ export type AgentCreateManyArgs = { /** * The data used to create many Agents. */ data: Prisma.AgentCreateManyInput | Prisma.AgentCreateManyInput[] skipDuplicates?: boolean } /** * Agent createManyAndReturn */ export type AgentCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Agent */ select?: Prisma.AgentSelectCreateManyAndReturn | null /** * Omit specific fields from the Agent */ omit?: Prisma.AgentOmit | null /** * The data used to create many Agents. */ data: Prisma.AgentCreateManyInput | Prisma.AgentCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentIncludeCreateManyAndReturn | null } /** * Agent update */ export type AgentUpdateArgs = { /** * Select specific fields to fetch from the Agent */ select?: Prisma.AgentSelect | null /** * Omit specific fields from the Agent */ omit?: Prisma.AgentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentInclude | null /** * The data needed to update a Agent. */ data: Prisma.XOR /** * Choose, which Agent to update. */ where: Prisma.AgentWhereUniqueInput } /** * Agent updateMany */ export type AgentUpdateManyArgs = { /** * The data used to update Agents. */ data: Prisma.XOR /** * Filter which Agents to update */ where?: Prisma.AgentWhereInput /** * Limit how many Agents to update. */ limit?: number } /** * Agent updateManyAndReturn */ export type AgentUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Agent */ select?: Prisma.AgentSelectUpdateManyAndReturn | null /** * Omit specific fields from the Agent */ omit?: Prisma.AgentOmit | null /** * The data used to update Agents. */ data: Prisma.XOR /** * Filter which Agents to update */ where?: Prisma.AgentWhereInput /** * Limit how many Agents to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentIncludeUpdateManyAndReturn | null } /** * Agent upsert */ export type AgentUpsertArgs = { /** * Select specific fields to fetch from the Agent */ select?: Prisma.AgentSelect | null /** * Omit specific fields from the Agent */ omit?: Prisma.AgentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentInclude | null /** * The filter to search for the Agent to update in case it exists. */ where: Prisma.AgentWhereUniqueInput /** * In case the Agent found by the `where` argument doesn't exist, create a new Agent with this data. */ create: Prisma.XOR /** * In case the Agent was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Agent delete */ export type AgentDeleteArgs = { /** * Select specific fields to fetch from the Agent */ select?: Prisma.AgentSelect | null /** * Omit specific fields from the Agent */ omit?: Prisma.AgentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentInclude | null /** * Filter which Agent to delete. */ where: Prisma.AgentWhereUniqueInput } /** * Agent deleteMany */ export type AgentDeleteManyArgs = { /** * Filter which Agents to delete */ where?: Prisma.AgentWhereInput /** * Limit how many Agents to delete. */ limit?: number } /** * Agent.provider */ export type Agent$providerArgs = { /** * Select specific fields to fetch from the Provider */ select?: Prisma.ProviderSelect | null /** * Omit specific fields from the Provider */ omit?: Prisma.ProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProviderInclude | null where?: Prisma.ProviderWhereInput } /** * Agent.modelRef */ export type Agent$modelRefArgs = { /** * Select specific fields to fetch from the Model */ select?: Prisma.ModelSelect | null /** * Omit specific fields from the Model */ omit?: Prisma.ModelOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ModelInclude | null where?: Prisma.ModelWhereInput } /** * Agent.agentSessions */ export type Agent$agentSessionsArgs = { /** * Select specific fields to fetch from the AgentSession */ select?: Prisma.AgentSessionSelect | null /** * Omit specific fields from the AgentSession */ omit?: Prisma.AgentSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentSessionInclude | null where?: Prisma.AgentSessionWhereInput orderBy?: Prisma.AgentSessionOrderByWithRelationInput | Prisma.AgentSessionOrderByWithRelationInput[] cursor?: Prisma.AgentSessionWhereUniqueInput take?: number skip?: number distinct?: Prisma.AgentSessionScalarFieldEnum | Prisma.AgentSessionScalarFieldEnum[] } /** * Agent.skills */ export type Agent$skillsArgs = { /** * Select specific fields to fetch from the AgentSkill */ select?: Prisma.AgentSkillSelect | null /** * Omit specific fields from the AgentSkill */ omit?: Prisma.AgentSkillOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentSkillInclude | null where?: Prisma.AgentSkillWhereInput orderBy?: Prisma.AgentSkillOrderByWithRelationInput | Prisma.AgentSkillOrderByWithRelationInput[] cursor?: Prisma.AgentSkillWhereUniqueInput take?: number skip?: number distinct?: Prisma.AgentSkillScalarFieldEnum | Prisma.AgentSkillScalarFieldEnum[] } /** * Agent without action */ export type AgentDefaultArgs = { /** * Select specific fields to fetch from the Agent */ select?: Prisma.AgentSelect | null /** * Omit specific fields from the Agent */ omit?: Prisma.AgentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentInclude | null }