Files
shumai/packages/db/src/generated/prisma/models/AssetTranscriptSegment.ts
T
Yiling-J d3899d1257 feat(video): add video transcripts (#559)
* feat(video): generate transcripts with the local embedding server

* feat(video): show saved transcripts in the player

* fix(video): preserve transcript seek timestamps

* fix(video): refine transcript viewing and generation

* feat(video): resize transcripts and follow playback earlier

* fix(video): animate transcript playback scrolling

* fix(video): transcribe from the smallest full proxy

* fix(video): refine the sync to playback button

* feat(video): edit transcript segment text inline

* fix(video): keep transcript segment highlighted over edit button

* docs(video): note embedding server version for transcripts
2026-12-04 13:49:25 +08:00

1445 lines
59 KiB
TypeScript
Generated

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* This file exports the `AssetTranscriptSegment` 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 AssetTranscriptSegment
*
*/
export type AssetTranscriptSegmentModel = runtime.Types.Result.DefaultSelection<Prisma.$AssetTranscriptSegmentPayload>
export type AggregateAssetTranscriptSegment = {
_count: AssetTranscriptSegmentCountAggregateOutputType | null
_avg: AssetTranscriptSegmentAvgAggregateOutputType | null
_sum: AssetTranscriptSegmentSumAggregateOutputType | null
_min: AssetTranscriptSegmentMinAggregateOutputType | null
_max: AssetTranscriptSegmentMaxAggregateOutputType | null
}
export type AssetTranscriptSegmentAvgAggregateOutputType = {
position: number | null
startMs: number | null
endMs: number | null
}
export type AssetTranscriptSegmentSumAggregateOutputType = {
position: number | null
startMs: number | null
endMs: number | null
}
export type AssetTranscriptSegmentMinAggregateOutputType = {
id: string | null
transcriptId: string | null
position: number | null
startMs: number | null
endMs: number | null
text: string | null
}
export type AssetTranscriptSegmentMaxAggregateOutputType = {
id: string | null
transcriptId: string | null
position: number | null
startMs: number | null
endMs: number | null
text: string | null
}
export type AssetTranscriptSegmentCountAggregateOutputType = {
id: number
transcriptId: number
position: number
startMs: number
endMs: number
text: number
_all: number
}
export type AssetTranscriptSegmentAvgAggregateInputType = {
position?: true
startMs?: true
endMs?: true
}
export type AssetTranscriptSegmentSumAggregateInputType = {
position?: true
startMs?: true
endMs?: true
}
export type AssetTranscriptSegmentMinAggregateInputType = {
id?: true
transcriptId?: true
position?: true
startMs?: true
endMs?: true
text?: true
}
export type AssetTranscriptSegmentMaxAggregateInputType = {
id?: true
transcriptId?: true
position?: true
startMs?: true
endMs?: true
text?: true
}
export type AssetTranscriptSegmentCountAggregateInputType = {
id?: true
transcriptId?: true
position?: true
startMs?: true
endMs?: true
text?: true
_all?: true
}
export type AssetTranscriptSegmentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which AssetTranscriptSegment to aggregate.
*/
where?: Prisma.AssetTranscriptSegmentWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AssetTranscriptSegments to fetch.
*/
orderBy?: Prisma.AssetTranscriptSegmentOrderByWithRelationInput | Prisma.AssetTranscriptSegmentOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.AssetTranscriptSegmentWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AssetTranscriptSegments 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` AssetTranscriptSegments.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned AssetTranscriptSegments
**/
_count?: true | AssetTranscriptSegmentCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: AssetTranscriptSegmentAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: AssetTranscriptSegmentSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: AssetTranscriptSegmentMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: AssetTranscriptSegmentMaxAggregateInputType
}
export type GetAssetTranscriptSegmentAggregateType<T extends AssetTranscriptSegmentAggregateArgs> = {
[P in keyof T & keyof AggregateAssetTranscriptSegment]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateAssetTranscriptSegment[P]>
: Prisma.GetScalarType<T[P], AggregateAssetTranscriptSegment[P]>
}
export type AssetTranscriptSegmentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.AssetTranscriptSegmentWhereInput
orderBy?: Prisma.AssetTranscriptSegmentOrderByWithAggregationInput | Prisma.AssetTranscriptSegmentOrderByWithAggregationInput[]
by: Prisma.AssetTranscriptSegmentScalarFieldEnum[] | Prisma.AssetTranscriptSegmentScalarFieldEnum
having?: Prisma.AssetTranscriptSegmentScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: AssetTranscriptSegmentCountAggregateInputType | true
_avg?: AssetTranscriptSegmentAvgAggregateInputType
_sum?: AssetTranscriptSegmentSumAggregateInputType
_min?: AssetTranscriptSegmentMinAggregateInputType
_max?: AssetTranscriptSegmentMaxAggregateInputType
}
export type AssetTranscriptSegmentGroupByOutputType = {
id: string
transcriptId: string
position: number
startMs: number
endMs: number
text: string
_count: AssetTranscriptSegmentCountAggregateOutputType | null
_avg: AssetTranscriptSegmentAvgAggregateOutputType | null
_sum: AssetTranscriptSegmentSumAggregateOutputType | null
_min: AssetTranscriptSegmentMinAggregateOutputType | null
_max: AssetTranscriptSegmentMaxAggregateOutputType | null
}
export type GetAssetTranscriptSegmentGroupByPayload<T extends AssetTranscriptSegmentGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<AssetTranscriptSegmentGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof AssetTranscriptSegmentGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], AssetTranscriptSegmentGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], AssetTranscriptSegmentGroupByOutputType[P]>
}
>
>
export type AssetTranscriptSegmentWhereInput = {
AND?: Prisma.AssetTranscriptSegmentWhereInput | Prisma.AssetTranscriptSegmentWhereInput[]
OR?: Prisma.AssetTranscriptSegmentWhereInput[]
NOT?: Prisma.AssetTranscriptSegmentWhereInput | Prisma.AssetTranscriptSegmentWhereInput[]
id?: Prisma.StringFilter<"AssetTranscriptSegment"> | string
transcriptId?: Prisma.StringFilter<"AssetTranscriptSegment"> | string
position?: Prisma.IntFilter<"AssetTranscriptSegment"> | number
startMs?: Prisma.IntFilter<"AssetTranscriptSegment"> | number
endMs?: Prisma.IntFilter<"AssetTranscriptSegment"> | number
text?: Prisma.StringFilter<"AssetTranscriptSegment"> | string
transcript?: Prisma.XOR<Prisma.AssetTranscriptScalarRelationFilter, Prisma.AssetTranscriptWhereInput>
}
export type AssetTranscriptSegmentOrderByWithRelationInput = {
id?: Prisma.SortOrder
transcriptId?: Prisma.SortOrder
position?: Prisma.SortOrder
startMs?: Prisma.SortOrder
endMs?: Prisma.SortOrder
text?: Prisma.SortOrder
transcript?: Prisma.AssetTranscriptOrderByWithRelationInput
}
export type AssetTranscriptSegmentWhereUniqueInput = Prisma.AtLeast<{
id?: string
transcriptIdPosition?: Prisma.AssetTranscriptSegmentTranscriptIdPositionCompoundUniqueInput
AND?: Prisma.AssetTranscriptSegmentWhereInput | Prisma.AssetTranscriptSegmentWhereInput[]
OR?: Prisma.AssetTranscriptSegmentWhereInput[]
NOT?: Prisma.AssetTranscriptSegmentWhereInput | Prisma.AssetTranscriptSegmentWhereInput[]
transcriptId?: Prisma.StringFilter<"AssetTranscriptSegment"> | string
position?: Prisma.IntFilter<"AssetTranscriptSegment"> | number
startMs?: Prisma.IntFilter<"AssetTranscriptSegment"> | number
endMs?: Prisma.IntFilter<"AssetTranscriptSegment"> | number
text?: Prisma.StringFilter<"AssetTranscriptSegment"> | string
transcript?: Prisma.XOR<Prisma.AssetTranscriptScalarRelationFilter, Prisma.AssetTranscriptWhereInput>
}, "id" | "transcriptIdPosition">
export type AssetTranscriptSegmentOrderByWithAggregationInput = {
id?: Prisma.SortOrder
transcriptId?: Prisma.SortOrder
position?: Prisma.SortOrder
startMs?: Prisma.SortOrder
endMs?: Prisma.SortOrder
text?: Prisma.SortOrder
_count?: Prisma.AssetTranscriptSegmentCountOrderByAggregateInput
_avg?: Prisma.AssetTranscriptSegmentAvgOrderByAggregateInput
_max?: Prisma.AssetTranscriptSegmentMaxOrderByAggregateInput
_min?: Prisma.AssetTranscriptSegmentMinOrderByAggregateInput
_sum?: Prisma.AssetTranscriptSegmentSumOrderByAggregateInput
}
export type AssetTranscriptSegmentScalarWhereWithAggregatesInput = {
AND?: Prisma.AssetTranscriptSegmentScalarWhereWithAggregatesInput | Prisma.AssetTranscriptSegmentScalarWhereWithAggregatesInput[]
OR?: Prisma.AssetTranscriptSegmentScalarWhereWithAggregatesInput[]
NOT?: Prisma.AssetTranscriptSegmentScalarWhereWithAggregatesInput | Prisma.AssetTranscriptSegmentScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"AssetTranscriptSegment"> | string
transcriptId?: Prisma.StringWithAggregatesFilter<"AssetTranscriptSegment"> | string
position?: Prisma.IntWithAggregatesFilter<"AssetTranscriptSegment"> | number
startMs?: Prisma.IntWithAggregatesFilter<"AssetTranscriptSegment"> | number
endMs?: Prisma.IntWithAggregatesFilter<"AssetTranscriptSegment"> | number
text?: Prisma.StringWithAggregatesFilter<"AssetTranscriptSegment"> | string
}
export type AssetTranscriptSegmentCreateInput = {
id?: string
position: number
startMs: number
endMs: number
text: string
transcript: Prisma.AssetTranscriptCreateNestedOneWithoutSegmentsInput
}
export type AssetTranscriptSegmentUncheckedCreateInput = {
id?: string
transcriptId: string
position: number
startMs: number
endMs: number
text: string
}
export type AssetTranscriptSegmentUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
position?: Prisma.IntFieldUpdateOperationsInput | number
startMs?: Prisma.IntFieldUpdateOperationsInput | number
endMs?: Prisma.IntFieldUpdateOperationsInput | number
text?: Prisma.StringFieldUpdateOperationsInput | string
transcript?: Prisma.AssetTranscriptUpdateOneRequiredWithoutSegmentsNestedInput
}
export type AssetTranscriptSegmentUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
transcriptId?: Prisma.StringFieldUpdateOperationsInput | string
position?: Prisma.IntFieldUpdateOperationsInput | number
startMs?: Prisma.IntFieldUpdateOperationsInput | number
endMs?: Prisma.IntFieldUpdateOperationsInput | number
text?: Prisma.StringFieldUpdateOperationsInput | string
}
export type AssetTranscriptSegmentCreateManyInput = {
id?: string
transcriptId: string
position: number
startMs: number
endMs: number
text: string
}
export type AssetTranscriptSegmentUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
position?: Prisma.IntFieldUpdateOperationsInput | number
startMs?: Prisma.IntFieldUpdateOperationsInput | number
endMs?: Prisma.IntFieldUpdateOperationsInput | number
text?: Prisma.StringFieldUpdateOperationsInput | string
}
export type AssetTranscriptSegmentUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
transcriptId?: Prisma.StringFieldUpdateOperationsInput | string
position?: Prisma.IntFieldUpdateOperationsInput | number
startMs?: Prisma.IntFieldUpdateOperationsInput | number
endMs?: Prisma.IntFieldUpdateOperationsInput | number
text?: Prisma.StringFieldUpdateOperationsInput | string
}
export type AssetTranscriptSegmentListRelationFilter = {
every?: Prisma.AssetTranscriptSegmentWhereInput
some?: Prisma.AssetTranscriptSegmentWhereInput
none?: Prisma.AssetTranscriptSegmentWhereInput
}
export type AssetTranscriptSegmentOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type AssetTranscriptSegmentTranscriptIdPositionCompoundUniqueInput = {
transcriptId: string
position: number
}
export type AssetTranscriptSegmentCountOrderByAggregateInput = {
id?: Prisma.SortOrder
transcriptId?: Prisma.SortOrder
position?: Prisma.SortOrder
startMs?: Prisma.SortOrder
endMs?: Prisma.SortOrder
text?: Prisma.SortOrder
}
export type AssetTranscriptSegmentAvgOrderByAggregateInput = {
position?: Prisma.SortOrder
startMs?: Prisma.SortOrder
endMs?: Prisma.SortOrder
}
export type AssetTranscriptSegmentMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
transcriptId?: Prisma.SortOrder
position?: Prisma.SortOrder
startMs?: Prisma.SortOrder
endMs?: Prisma.SortOrder
text?: Prisma.SortOrder
}
export type AssetTranscriptSegmentMinOrderByAggregateInput = {
id?: Prisma.SortOrder
transcriptId?: Prisma.SortOrder
position?: Prisma.SortOrder
startMs?: Prisma.SortOrder
endMs?: Prisma.SortOrder
text?: Prisma.SortOrder
}
export type AssetTranscriptSegmentSumOrderByAggregateInput = {
position?: Prisma.SortOrder
startMs?: Prisma.SortOrder
endMs?: Prisma.SortOrder
}
export type AssetTranscriptSegmentCreateNestedManyWithoutTranscriptInput = {
create?: Prisma.XOR<Prisma.AssetTranscriptSegmentCreateWithoutTranscriptInput, Prisma.AssetTranscriptSegmentUncheckedCreateWithoutTranscriptInput> | Prisma.AssetTranscriptSegmentCreateWithoutTranscriptInput[] | Prisma.AssetTranscriptSegmentUncheckedCreateWithoutTranscriptInput[]
connectOrCreate?: Prisma.AssetTranscriptSegmentCreateOrConnectWithoutTranscriptInput | Prisma.AssetTranscriptSegmentCreateOrConnectWithoutTranscriptInput[]
createMany?: Prisma.AssetTranscriptSegmentCreateManyTranscriptInputEnvelope
connect?: Prisma.AssetTranscriptSegmentWhereUniqueInput | Prisma.AssetTranscriptSegmentWhereUniqueInput[]
}
export type AssetTranscriptSegmentUncheckedCreateNestedManyWithoutTranscriptInput = {
create?: Prisma.XOR<Prisma.AssetTranscriptSegmentCreateWithoutTranscriptInput, Prisma.AssetTranscriptSegmentUncheckedCreateWithoutTranscriptInput> | Prisma.AssetTranscriptSegmentCreateWithoutTranscriptInput[] | Prisma.AssetTranscriptSegmentUncheckedCreateWithoutTranscriptInput[]
connectOrCreate?: Prisma.AssetTranscriptSegmentCreateOrConnectWithoutTranscriptInput | Prisma.AssetTranscriptSegmentCreateOrConnectWithoutTranscriptInput[]
createMany?: Prisma.AssetTranscriptSegmentCreateManyTranscriptInputEnvelope
connect?: Prisma.AssetTranscriptSegmentWhereUniqueInput | Prisma.AssetTranscriptSegmentWhereUniqueInput[]
}
export type AssetTranscriptSegmentUpdateManyWithoutTranscriptNestedInput = {
create?: Prisma.XOR<Prisma.AssetTranscriptSegmentCreateWithoutTranscriptInput, Prisma.AssetTranscriptSegmentUncheckedCreateWithoutTranscriptInput> | Prisma.AssetTranscriptSegmentCreateWithoutTranscriptInput[] | Prisma.AssetTranscriptSegmentUncheckedCreateWithoutTranscriptInput[]
connectOrCreate?: Prisma.AssetTranscriptSegmentCreateOrConnectWithoutTranscriptInput | Prisma.AssetTranscriptSegmentCreateOrConnectWithoutTranscriptInput[]
upsert?: Prisma.AssetTranscriptSegmentUpsertWithWhereUniqueWithoutTranscriptInput | Prisma.AssetTranscriptSegmentUpsertWithWhereUniqueWithoutTranscriptInput[]
createMany?: Prisma.AssetTranscriptSegmentCreateManyTranscriptInputEnvelope
set?: Prisma.AssetTranscriptSegmentWhereUniqueInput | Prisma.AssetTranscriptSegmentWhereUniqueInput[]
disconnect?: Prisma.AssetTranscriptSegmentWhereUniqueInput | Prisma.AssetTranscriptSegmentWhereUniqueInput[]
delete?: Prisma.AssetTranscriptSegmentWhereUniqueInput | Prisma.AssetTranscriptSegmentWhereUniqueInput[]
connect?: Prisma.AssetTranscriptSegmentWhereUniqueInput | Prisma.AssetTranscriptSegmentWhereUniqueInput[]
update?: Prisma.AssetTranscriptSegmentUpdateWithWhereUniqueWithoutTranscriptInput | Prisma.AssetTranscriptSegmentUpdateWithWhereUniqueWithoutTranscriptInput[]
updateMany?: Prisma.AssetTranscriptSegmentUpdateManyWithWhereWithoutTranscriptInput | Prisma.AssetTranscriptSegmentUpdateManyWithWhereWithoutTranscriptInput[]
deleteMany?: Prisma.AssetTranscriptSegmentScalarWhereInput | Prisma.AssetTranscriptSegmentScalarWhereInput[]
}
export type AssetTranscriptSegmentUncheckedUpdateManyWithoutTranscriptNestedInput = {
create?: Prisma.XOR<Prisma.AssetTranscriptSegmentCreateWithoutTranscriptInput, Prisma.AssetTranscriptSegmentUncheckedCreateWithoutTranscriptInput> | Prisma.AssetTranscriptSegmentCreateWithoutTranscriptInput[] | Prisma.AssetTranscriptSegmentUncheckedCreateWithoutTranscriptInput[]
connectOrCreate?: Prisma.AssetTranscriptSegmentCreateOrConnectWithoutTranscriptInput | Prisma.AssetTranscriptSegmentCreateOrConnectWithoutTranscriptInput[]
upsert?: Prisma.AssetTranscriptSegmentUpsertWithWhereUniqueWithoutTranscriptInput | Prisma.AssetTranscriptSegmentUpsertWithWhereUniqueWithoutTranscriptInput[]
createMany?: Prisma.AssetTranscriptSegmentCreateManyTranscriptInputEnvelope
set?: Prisma.AssetTranscriptSegmentWhereUniqueInput | Prisma.AssetTranscriptSegmentWhereUniqueInput[]
disconnect?: Prisma.AssetTranscriptSegmentWhereUniqueInput | Prisma.AssetTranscriptSegmentWhereUniqueInput[]
delete?: Prisma.AssetTranscriptSegmentWhereUniqueInput | Prisma.AssetTranscriptSegmentWhereUniqueInput[]
connect?: Prisma.AssetTranscriptSegmentWhereUniqueInput | Prisma.AssetTranscriptSegmentWhereUniqueInput[]
update?: Prisma.AssetTranscriptSegmentUpdateWithWhereUniqueWithoutTranscriptInput | Prisma.AssetTranscriptSegmentUpdateWithWhereUniqueWithoutTranscriptInput[]
updateMany?: Prisma.AssetTranscriptSegmentUpdateManyWithWhereWithoutTranscriptInput | Prisma.AssetTranscriptSegmentUpdateManyWithWhereWithoutTranscriptInput[]
deleteMany?: Prisma.AssetTranscriptSegmentScalarWhereInput | Prisma.AssetTranscriptSegmentScalarWhereInput[]
}
export type AssetTranscriptSegmentCreateWithoutTranscriptInput = {
id?: string
position: number
startMs: number
endMs: number
text: string
}
export type AssetTranscriptSegmentUncheckedCreateWithoutTranscriptInput = {
id?: string
position: number
startMs: number
endMs: number
text: string
}
export type AssetTranscriptSegmentCreateOrConnectWithoutTranscriptInput = {
where: Prisma.AssetTranscriptSegmentWhereUniqueInput
create: Prisma.XOR<Prisma.AssetTranscriptSegmentCreateWithoutTranscriptInput, Prisma.AssetTranscriptSegmentUncheckedCreateWithoutTranscriptInput>
}
export type AssetTranscriptSegmentCreateManyTranscriptInputEnvelope = {
data: Prisma.AssetTranscriptSegmentCreateManyTranscriptInput | Prisma.AssetTranscriptSegmentCreateManyTranscriptInput[]
skipDuplicates?: boolean
}
export type AssetTranscriptSegmentUpsertWithWhereUniqueWithoutTranscriptInput = {
where: Prisma.AssetTranscriptSegmentWhereUniqueInput
update: Prisma.XOR<Prisma.AssetTranscriptSegmentUpdateWithoutTranscriptInput, Prisma.AssetTranscriptSegmentUncheckedUpdateWithoutTranscriptInput>
create: Prisma.XOR<Prisma.AssetTranscriptSegmentCreateWithoutTranscriptInput, Prisma.AssetTranscriptSegmentUncheckedCreateWithoutTranscriptInput>
}
export type AssetTranscriptSegmentUpdateWithWhereUniqueWithoutTranscriptInput = {
where: Prisma.AssetTranscriptSegmentWhereUniqueInput
data: Prisma.XOR<Prisma.AssetTranscriptSegmentUpdateWithoutTranscriptInput, Prisma.AssetTranscriptSegmentUncheckedUpdateWithoutTranscriptInput>
}
export type AssetTranscriptSegmentUpdateManyWithWhereWithoutTranscriptInput = {
where: Prisma.AssetTranscriptSegmentScalarWhereInput
data: Prisma.XOR<Prisma.AssetTranscriptSegmentUpdateManyMutationInput, Prisma.AssetTranscriptSegmentUncheckedUpdateManyWithoutTranscriptInput>
}
export type AssetTranscriptSegmentScalarWhereInput = {
AND?: Prisma.AssetTranscriptSegmentScalarWhereInput | Prisma.AssetTranscriptSegmentScalarWhereInput[]
OR?: Prisma.AssetTranscriptSegmentScalarWhereInput[]
NOT?: Prisma.AssetTranscriptSegmentScalarWhereInput | Prisma.AssetTranscriptSegmentScalarWhereInput[]
id?: Prisma.StringFilter<"AssetTranscriptSegment"> | string
transcriptId?: Prisma.StringFilter<"AssetTranscriptSegment"> | string
position?: Prisma.IntFilter<"AssetTranscriptSegment"> | number
startMs?: Prisma.IntFilter<"AssetTranscriptSegment"> | number
endMs?: Prisma.IntFilter<"AssetTranscriptSegment"> | number
text?: Prisma.StringFilter<"AssetTranscriptSegment"> | string
}
export type AssetTranscriptSegmentCreateManyTranscriptInput = {
id?: string
position: number
startMs: number
endMs: number
text: string
}
export type AssetTranscriptSegmentUpdateWithoutTranscriptInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
position?: Prisma.IntFieldUpdateOperationsInput | number
startMs?: Prisma.IntFieldUpdateOperationsInput | number
endMs?: Prisma.IntFieldUpdateOperationsInput | number
text?: Prisma.StringFieldUpdateOperationsInput | string
}
export type AssetTranscriptSegmentUncheckedUpdateWithoutTranscriptInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
position?: Prisma.IntFieldUpdateOperationsInput | number
startMs?: Prisma.IntFieldUpdateOperationsInput | number
endMs?: Prisma.IntFieldUpdateOperationsInput | number
text?: Prisma.StringFieldUpdateOperationsInput | string
}
export type AssetTranscriptSegmentUncheckedUpdateManyWithoutTranscriptInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
position?: Prisma.IntFieldUpdateOperationsInput | number
startMs?: Prisma.IntFieldUpdateOperationsInput | number
endMs?: Prisma.IntFieldUpdateOperationsInput | number
text?: Prisma.StringFieldUpdateOperationsInput | string
}
export type AssetTranscriptSegmentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
transcriptId?: boolean
position?: boolean
startMs?: boolean
endMs?: boolean
text?: boolean
transcript?: boolean | Prisma.AssetTranscriptDefaultArgs<ExtArgs>
}, ExtArgs["result"]["assetTranscriptSegment"]>
export type AssetTranscriptSegmentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
transcriptId?: boolean
position?: boolean
startMs?: boolean
endMs?: boolean
text?: boolean
transcript?: boolean | Prisma.AssetTranscriptDefaultArgs<ExtArgs>
}, ExtArgs["result"]["assetTranscriptSegment"]>
export type AssetTranscriptSegmentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
transcriptId?: boolean
position?: boolean
startMs?: boolean
endMs?: boolean
text?: boolean
transcript?: boolean | Prisma.AssetTranscriptDefaultArgs<ExtArgs>
}, ExtArgs["result"]["assetTranscriptSegment"]>
export type AssetTranscriptSegmentSelectScalar = {
id?: boolean
transcriptId?: boolean
position?: boolean
startMs?: boolean
endMs?: boolean
text?: boolean
}
export type AssetTranscriptSegmentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "transcriptId" | "position" | "startMs" | "endMs" | "text", ExtArgs["result"]["assetTranscriptSegment"]>
export type AssetTranscriptSegmentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
transcript?: boolean | Prisma.AssetTranscriptDefaultArgs<ExtArgs>
}
export type AssetTranscriptSegmentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
transcript?: boolean | Prisma.AssetTranscriptDefaultArgs<ExtArgs>
}
export type AssetTranscriptSegmentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
transcript?: boolean | Prisma.AssetTranscriptDefaultArgs<ExtArgs>
}
export type $AssetTranscriptSegmentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "AssetTranscriptSegment"
objects: {
transcript: Prisma.$AssetTranscriptPayload<ExtArgs>
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
transcriptId: string
position: number
startMs: number
endMs: number
text: string
}, ExtArgs["result"]["assetTranscriptSegment"]>
composites: {}
}
export type AssetTranscriptSegmentGetPayload<S extends boolean | null | undefined | AssetTranscriptSegmentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AssetTranscriptSegmentPayload, S>
export type AssetTranscriptSegmentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<AssetTranscriptSegmentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: AssetTranscriptSegmentCountAggregateInputType | true
}
export interface AssetTranscriptSegmentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AssetTranscriptSegment'], meta: { name: 'AssetTranscriptSegment' } }
/**
* Find zero or one AssetTranscriptSegment that matches the filter.
* @param {AssetTranscriptSegmentFindUniqueArgs} args - Arguments to find a AssetTranscriptSegment
* @example
* // Get one AssetTranscriptSegment
* const assetTranscriptSegment = await prisma.assetTranscriptSegment.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends AssetTranscriptSegmentFindUniqueArgs>(args: Prisma.SelectSubset<T, AssetTranscriptSegmentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AssetTranscriptSegmentClient<runtime.Types.Result.GetResult<Prisma.$AssetTranscriptSegmentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one AssetTranscriptSegment that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {AssetTranscriptSegmentFindUniqueOrThrowArgs} args - Arguments to find a AssetTranscriptSegment
* @example
* // Get one AssetTranscriptSegment
* const assetTranscriptSegment = await prisma.assetTranscriptSegment.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends AssetTranscriptSegmentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AssetTranscriptSegmentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AssetTranscriptSegmentClient<runtime.Types.Result.GetResult<Prisma.$AssetTranscriptSegmentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first AssetTranscriptSegment 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 {AssetTranscriptSegmentFindFirstArgs} args - Arguments to find a AssetTranscriptSegment
* @example
* // Get one AssetTranscriptSegment
* const assetTranscriptSegment = await prisma.assetTranscriptSegment.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends AssetTranscriptSegmentFindFirstArgs>(args?: Prisma.SelectSubset<T, AssetTranscriptSegmentFindFirstArgs<ExtArgs>>): Prisma.Prisma__AssetTranscriptSegmentClient<runtime.Types.Result.GetResult<Prisma.$AssetTranscriptSegmentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first AssetTranscriptSegment 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 {AssetTranscriptSegmentFindFirstOrThrowArgs} args - Arguments to find a AssetTranscriptSegment
* @example
* // Get one AssetTranscriptSegment
* const assetTranscriptSegment = await prisma.assetTranscriptSegment.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends AssetTranscriptSegmentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AssetTranscriptSegmentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AssetTranscriptSegmentClient<runtime.Types.Result.GetResult<Prisma.$AssetTranscriptSegmentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more AssetTranscriptSegments 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 {AssetTranscriptSegmentFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all AssetTranscriptSegments
* const assetTranscriptSegments = await prisma.assetTranscriptSegment.findMany()
*
* // Get first 10 AssetTranscriptSegments
* const assetTranscriptSegments = await prisma.assetTranscriptSegment.findMany({ take: 10 })
*
* // Only select the `id`
* const assetTranscriptSegmentWithIdOnly = await prisma.assetTranscriptSegment.findMany({ select: { id: true } })
*
*/
findMany<T extends AssetTranscriptSegmentFindManyArgs>(args?: Prisma.SelectSubset<T, AssetTranscriptSegmentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AssetTranscriptSegmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a AssetTranscriptSegment.
* @param {AssetTranscriptSegmentCreateArgs} args - Arguments to create a AssetTranscriptSegment.
* @example
* // Create one AssetTranscriptSegment
* const AssetTranscriptSegment = await prisma.assetTranscriptSegment.create({
* data: {
* // ... data to create a AssetTranscriptSegment
* }
* })
*
*/
create<T extends AssetTranscriptSegmentCreateArgs>(args: Prisma.SelectSubset<T, AssetTranscriptSegmentCreateArgs<ExtArgs>>): Prisma.Prisma__AssetTranscriptSegmentClient<runtime.Types.Result.GetResult<Prisma.$AssetTranscriptSegmentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many AssetTranscriptSegments.
* @param {AssetTranscriptSegmentCreateManyArgs} args - Arguments to create many AssetTranscriptSegments.
* @example
* // Create many AssetTranscriptSegments
* const assetTranscriptSegment = await prisma.assetTranscriptSegment.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends AssetTranscriptSegmentCreateManyArgs>(args?: Prisma.SelectSubset<T, AssetTranscriptSegmentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many AssetTranscriptSegments and returns the data saved in the database.
* @param {AssetTranscriptSegmentCreateManyAndReturnArgs} args - Arguments to create many AssetTranscriptSegments.
* @example
* // Create many AssetTranscriptSegments
* const assetTranscriptSegment = await prisma.assetTranscriptSegment.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many AssetTranscriptSegments and only return the `id`
* const assetTranscriptSegmentWithIdOnly = await prisma.assetTranscriptSegment.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends AssetTranscriptSegmentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AssetTranscriptSegmentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AssetTranscriptSegmentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a AssetTranscriptSegment.
* @param {AssetTranscriptSegmentDeleteArgs} args - Arguments to delete one AssetTranscriptSegment.
* @example
* // Delete one AssetTranscriptSegment
* const AssetTranscriptSegment = await prisma.assetTranscriptSegment.delete({
* where: {
* // ... filter to delete one AssetTranscriptSegment
* }
* })
*
*/
delete<T extends AssetTranscriptSegmentDeleteArgs>(args: Prisma.SelectSubset<T, AssetTranscriptSegmentDeleteArgs<ExtArgs>>): Prisma.Prisma__AssetTranscriptSegmentClient<runtime.Types.Result.GetResult<Prisma.$AssetTranscriptSegmentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one AssetTranscriptSegment.
* @param {AssetTranscriptSegmentUpdateArgs} args - Arguments to update one AssetTranscriptSegment.
* @example
* // Update one AssetTranscriptSegment
* const assetTranscriptSegment = await prisma.assetTranscriptSegment.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends AssetTranscriptSegmentUpdateArgs>(args: Prisma.SelectSubset<T, AssetTranscriptSegmentUpdateArgs<ExtArgs>>): Prisma.Prisma__AssetTranscriptSegmentClient<runtime.Types.Result.GetResult<Prisma.$AssetTranscriptSegmentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more AssetTranscriptSegments.
* @param {AssetTranscriptSegmentDeleteManyArgs} args - Arguments to filter AssetTranscriptSegments to delete.
* @example
* // Delete a few AssetTranscriptSegments
* const { count } = await prisma.assetTranscriptSegment.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends AssetTranscriptSegmentDeleteManyArgs>(args?: Prisma.SelectSubset<T, AssetTranscriptSegmentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more AssetTranscriptSegments.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AssetTranscriptSegmentUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many AssetTranscriptSegments
* const assetTranscriptSegment = await prisma.assetTranscriptSegment.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends AssetTranscriptSegmentUpdateManyArgs>(args: Prisma.SelectSubset<T, AssetTranscriptSegmentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more AssetTranscriptSegments and returns the data updated in the database.
* @param {AssetTranscriptSegmentUpdateManyAndReturnArgs} args - Arguments to update many AssetTranscriptSegments.
* @example
* // Update many AssetTranscriptSegments
* const assetTranscriptSegment = await prisma.assetTranscriptSegment.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more AssetTranscriptSegments and only return the `id`
* const assetTranscriptSegmentWithIdOnly = await prisma.assetTranscriptSegment.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends AssetTranscriptSegmentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AssetTranscriptSegmentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AssetTranscriptSegmentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one AssetTranscriptSegment.
* @param {AssetTranscriptSegmentUpsertArgs} args - Arguments to update or create a AssetTranscriptSegment.
* @example
* // Update or create a AssetTranscriptSegment
* const assetTranscriptSegment = await prisma.assetTranscriptSegment.upsert({
* create: {
* // ... data to create a AssetTranscriptSegment
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the AssetTranscriptSegment we want to update
* }
* })
*/
upsert<T extends AssetTranscriptSegmentUpsertArgs>(args: Prisma.SelectSubset<T, AssetTranscriptSegmentUpsertArgs<ExtArgs>>): Prisma.Prisma__AssetTranscriptSegmentClient<runtime.Types.Result.GetResult<Prisma.$AssetTranscriptSegmentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of AssetTranscriptSegments.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AssetTranscriptSegmentCountArgs} args - Arguments to filter AssetTranscriptSegments to count.
* @example
* // Count the number of AssetTranscriptSegments
* const count = await prisma.assetTranscriptSegment.count({
* where: {
* // ... the filter for the AssetTranscriptSegments we want to count
* }
* })
**/
count<T extends AssetTranscriptSegmentCountArgs>(
args?: Prisma.Subset<T, AssetTranscriptSegmentCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], AssetTranscriptSegmentCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a AssetTranscriptSegment.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AssetTranscriptSegmentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
* @example
* // Ordered by age ascending
* // Where email contains prisma.io
* // Limited to the 10 users
* const aggregations = await prisma.user.aggregate({
* _avg: {
* age: true,
* },
* where: {
* email: {
* contains: "prisma.io",
* },
* },
* orderBy: {
* age: "asc",
* },
* take: 10,
* })
**/
aggregate<T extends AssetTranscriptSegmentAggregateArgs>(args: Prisma.Subset<T, AssetTranscriptSegmentAggregateArgs>): Prisma.PrismaPromise<GetAssetTranscriptSegmentAggregateType<T>>
/**
* Group by AssetTranscriptSegment.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AssetTranscriptSegmentGroupByArgs} 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 AssetTranscriptSegmentGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: AssetTranscriptSegmentGroupByArgs['orderBy'] }
: { orderBy?: AssetTranscriptSegmentGroupByArgs['orderBy'] },
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
ByValid extends Prisma.Has<ByFields, OrderFields>,
HavingFields extends Prisma.GetHavingFields<T['having']>,
HavingValid extends Prisma.Has<ByFields, HavingFields>,
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
InputErrors extends ByEmpty extends Prisma.True
? `Error: "by" must not be empty.`
: HavingValid extends Prisma.False
? {
[P in HavingFields]: P extends ByFields
? never
: P extends string
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
: [
Error,
'Field ',
P,
` in "having" needs to be provided in "by"`,
]
}[HavingFields]
: 'take' extends Prisma.Keys<T>
? 'orderBy' extends Prisma.Keys<T>
? ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "take", you also need to provide "orderBy"'
: 'skip' extends Prisma.Keys<T>
? 'orderBy' extends Prisma.Keys<T>
? ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "skip", you also need to provide "orderBy"'
: ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
>(args: Prisma.SubsetIntersection<T, AssetTranscriptSegmentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAssetTranscriptSegmentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the AssetTranscriptSegment model
*/
readonly fields: AssetTranscriptSegmentFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for AssetTranscriptSegment.
* 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__AssetTranscriptSegmentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
transcript<T extends Prisma.AssetTranscriptDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AssetTranscriptDefaultArgs<ExtArgs>>): Prisma.Prisma__AssetTranscriptClient<runtime.Types.Result.GetResult<Prisma.$AssetTranscriptPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}
/**
* Fields of the AssetTranscriptSegment model
*/
export interface AssetTranscriptSegmentFieldRefs {
readonly id: Prisma.FieldRef<"AssetTranscriptSegment", 'String'>
readonly transcriptId: Prisma.FieldRef<"AssetTranscriptSegment", 'String'>
readonly position: Prisma.FieldRef<"AssetTranscriptSegment", 'Int'>
readonly startMs: Prisma.FieldRef<"AssetTranscriptSegment", 'Int'>
readonly endMs: Prisma.FieldRef<"AssetTranscriptSegment", 'Int'>
readonly text: Prisma.FieldRef<"AssetTranscriptSegment", 'String'>
}
// Custom InputTypes
/**
* AssetTranscriptSegment findUnique
*/
export type AssetTranscriptSegmentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AssetTranscriptSegment
*/
select?: Prisma.AssetTranscriptSegmentSelect<ExtArgs> | null
/**
* Omit specific fields from the AssetTranscriptSegment
*/
omit?: Prisma.AssetTranscriptSegmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AssetTranscriptSegmentInclude<ExtArgs> | null
/**
* Filter, which AssetTranscriptSegment to fetch.
*/
where: Prisma.AssetTranscriptSegmentWhereUniqueInput
}
/**
* AssetTranscriptSegment findUniqueOrThrow
*/
export type AssetTranscriptSegmentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AssetTranscriptSegment
*/
select?: Prisma.AssetTranscriptSegmentSelect<ExtArgs> | null
/**
* Omit specific fields from the AssetTranscriptSegment
*/
omit?: Prisma.AssetTranscriptSegmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AssetTranscriptSegmentInclude<ExtArgs> | null
/**
* Filter, which AssetTranscriptSegment to fetch.
*/
where: Prisma.AssetTranscriptSegmentWhereUniqueInput
}
/**
* AssetTranscriptSegment findFirst
*/
export type AssetTranscriptSegmentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AssetTranscriptSegment
*/
select?: Prisma.AssetTranscriptSegmentSelect<ExtArgs> | null
/**
* Omit specific fields from the AssetTranscriptSegment
*/
omit?: Prisma.AssetTranscriptSegmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AssetTranscriptSegmentInclude<ExtArgs> | null
/**
* Filter, which AssetTranscriptSegment to fetch.
*/
where?: Prisma.AssetTranscriptSegmentWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AssetTranscriptSegments to fetch.
*/
orderBy?: Prisma.AssetTranscriptSegmentOrderByWithRelationInput | Prisma.AssetTranscriptSegmentOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for AssetTranscriptSegments.
*/
cursor?: Prisma.AssetTranscriptSegmentWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AssetTranscriptSegments 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` AssetTranscriptSegments.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of AssetTranscriptSegments.
*/
distinct?: Prisma.AssetTranscriptSegmentScalarFieldEnum | Prisma.AssetTranscriptSegmentScalarFieldEnum[]
}
/**
* AssetTranscriptSegment findFirstOrThrow
*/
export type AssetTranscriptSegmentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AssetTranscriptSegment
*/
select?: Prisma.AssetTranscriptSegmentSelect<ExtArgs> | null
/**
* Omit specific fields from the AssetTranscriptSegment
*/
omit?: Prisma.AssetTranscriptSegmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AssetTranscriptSegmentInclude<ExtArgs> | null
/**
* Filter, which AssetTranscriptSegment to fetch.
*/
where?: Prisma.AssetTranscriptSegmentWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AssetTranscriptSegments to fetch.
*/
orderBy?: Prisma.AssetTranscriptSegmentOrderByWithRelationInput | Prisma.AssetTranscriptSegmentOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for AssetTranscriptSegments.
*/
cursor?: Prisma.AssetTranscriptSegmentWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AssetTranscriptSegments 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` AssetTranscriptSegments.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of AssetTranscriptSegments.
*/
distinct?: Prisma.AssetTranscriptSegmentScalarFieldEnum | Prisma.AssetTranscriptSegmentScalarFieldEnum[]
}
/**
* AssetTranscriptSegment findMany
*/
export type AssetTranscriptSegmentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AssetTranscriptSegment
*/
select?: Prisma.AssetTranscriptSegmentSelect<ExtArgs> | null
/**
* Omit specific fields from the AssetTranscriptSegment
*/
omit?: Prisma.AssetTranscriptSegmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AssetTranscriptSegmentInclude<ExtArgs> | null
/**
* Filter, which AssetTranscriptSegments to fetch.
*/
where?: Prisma.AssetTranscriptSegmentWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AssetTranscriptSegments to fetch.
*/
orderBy?: Prisma.AssetTranscriptSegmentOrderByWithRelationInput | Prisma.AssetTranscriptSegmentOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing AssetTranscriptSegments.
*/
cursor?: Prisma.AssetTranscriptSegmentWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AssetTranscriptSegments 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` AssetTranscriptSegments.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of AssetTranscriptSegments.
*/
distinct?: Prisma.AssetTranscriptSegmentScalarFieldEnum | Prisma.AssetTranscriptSegmentScalarFieldEnum[]
}
/**
* AssetTranscriptSegment create
*/
export type AssetTranscriptSegmentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AssetTranscriptSegment
*/
select?: Prisma.AssetTranscriptSegmentSelect<ExtArgs> | null
/**
* Omit specific fields from the AssetTranscriptSegment
*/
omit?: Prisma.AssetTranscriptSegmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AssetTranscriptSegmentInclude<ExtArgs> | null
/**
* The data needed to create a AssetTranscriptSegment.
*/
data: Prisma.XOR<Prisma.AssetTranscriptSegmentCreateInput, Prisma.AssetTranscriptSegmentUncheckedCreateInput>
}
/**
* AssetTranscriptSegment createMany
*/
export type AssetTranscriptSegmentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many AssetTranscriptSegments.
*/
data: Prisma.AssetTranscriptSegmentCreateManyInput | Prisma.AssetTranscriptSegmentCreateManyInput[]
skipDuplicates?: boolean
}
/**
* AssetTranscriptSegment createManyAndReturn
*/
export type AssetTranscriptSegmentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AssetTranscriptSegment
*/
select?: Prisma.AssetTranscriptSegmentSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the AssetTranscriptSegment
*/
omit?: Prisma.AssetTranscriptSegmentOmit<ExtArgs> | null
/**
* The data used to create many AssetTranscriptSegments.
*/
data: Prisma.AssetTranscriptSegmentCreateManyInput | Prisma.AssetTranscriptSegmentCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AssetTranscriptSegmentIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* AssetTranscriptSegment update
*/
export type AssetTranscriptSegmentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AssetTranscriptSegment
*/
select?: Prisma.AssetTranscriptSegmentSelect<ExtArgs> | null
/**
* Omit specific fields from the AssetTranscriptSegment
*/
omit?: Prisma.AssetTranscriptSegmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AssetTranscriptSegmentInclude<ExtArgs> | null
/**
* The data needed to update a AssetTranscriptSegment.
*/
data: Prisma.XOR<Prisma.AssetTranscriptSegmentUpdateInput, Prisma.AssetTranscriptSegmentUncheckedUpdateInput>
/**
* Choose, which AssetTranscriptSegment to update.
*/
where: Prisma.AssetTranscriptSegmentWhereUniqueInput
}
/**
* AssetTranscriptSegment updateMany
*/
export type AssetTranscriptSegmentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update AssetTranscriptSegments.
*/
data: Prisma.XOR<Prisma.AssetTranscriptSegmentUpdateManyMutationInput, Prisma.AssetTranscriptSegmentUncheckedUpdateManyInput>
/**
* Filter which AssetTranscriptSegments to update
*/
where?: Prisma.AssetTranscriptSegmentWhereInput
/**
* Limit how many AssetTranscriptSegments to update.
*/
limit?: number
}
/**
* AssetTranscriptSegment updateManyAndReturn
*/
export type AssetTranscriptSegmentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AssetTranscriptSegment
*/
select?: Prisma.AssetTranscriptSegmentSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the AssetTranscriptSegment
*/
omit?: Prisma.AssetTranscriptSegmentOmit<ExtArgs> | null
/**
* The data used to update AssetTranscriptSegments.
*/
data: Prisma.XOR<Prisma.AssetTranscriptSegmentUpdateManyMutationInput, Prisma.AssetTranscriptSegmentUncheckedUpdateManyInput>
/**
* Filter which AssetTranscriptSegments to update
*/
where?: Prisma.AssetTranscriptSegmentWhereInput
/**
* Limit how many AssetTranscriptSegments to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AssetTranscriptSegmentIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* AssetTranscriptSegment upsert
*/
export type AssetTranscriptSegmentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AssetTranscriptSegment
*/
select?: Prisma.AssetTranscriptSegmentSelect<ExtArgs> | null
/**
* Omit specific fields from the AssetTranscriptSegment
*/
omit?: Prisma.AssetTranscriptSegmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AssetTranscriptSegmentInclude<ExtArgs> | null
/**
* The filter to search for the AssetTranscriptSegment to update in case it exists.
*/
where: Prisma.AssetTranscriptSegmentWhereUniqueInput
/**
* In case the AssetTranscriptSegment found by the `where` argument doesn't exist, create a new AssetTranscriptSegment with this data.
*/
create: Prisma.XOR<Prisma.AssetTranscriptSegmentCreateInput, Prisma.AssetTranscriptSegmentUncheckedCreateInput>
/**
* In case the AssetTranscriptSegment was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.AssetTranscriptSegmentUpdateInput, Prisma.AssetTranscriptSegmentUncheckedUpdateInput>
}
/**
* AssetTranscriptSegment delete
*/
export type AssetTranscriptSegmentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AssetTranscriptSegment
*/
select?: Prisma.AssetTranscriptSegmentSelect<ExtArgs> | null
/**
* Omit specific fields from the AssetTranscriptSegment
*/
omit?: Prisma.AssetTranscriptSegmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AssetTranscriptSegmentInclude<ExtArgs> | null
/**
* Filter which AssetTranscriptSegment to delete.
*/
where: Prisma.AssetTranscriptSegmentWhereUniqueInput
}
/**
* AssetTranscriptSegment deleteMany
*/
export type AssetTranscriptSegmentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which AssetTranscriptSegments to delete
*/
where?: Prisma.AssetTranscriptSegmentWhereInput
/**
* Limit how many AssetTranscriptSegments to delete.
*/
limit?: number
}
/**
* AssetTranscriptSegment without action
*/
export type AssetTranscriptSegmentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AssetTranscriptSegment
*/
select?: Prisma.AssetTranscriptSegmentSelect<ExtArgs> | null
/**
* Omit specific fields from the AssetTranscriptSegment
*/
omit?: Prisma.AssetTranscriptSegmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AssetTranscriptSegmentInclude<ExtArgs> | null
}