mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-23 04:36:54 +00:00
Merge pull request #244 from shumaiOne/feat/asset-size-bigint
feat(db): update Asset.sizeByte and AiUsage token fields to BigInt
This commit is contained in:
@@ -139,7 +139,7 @@ async function run() {
|
||||
idleTimeout: 120,
|
||||
maxRequestBodySize: process.env.MAX_REQUEST_BODY_SIZE
|
||||
? parseInt(process.env.MAX_REQUEST_BODY_SIZE)
|
||||
: 1024 * 1024 * 1024 * 10, // Default 10GB
|
||||
: 1024 * 1024 * 1024 * 20, // Default 20GB
|
||||
development: !isProd,
|
||||
fetch: app.fetch,
|
||||
routes,
|
||||
|
||||
@@ -1263,7 +1263,7 @@ describe('Agent Database Activities Integration', () => {
|
||||
|
||||
const parentFolder = await prisma.asset.findUnique({ where: { id: folder.id } })
|
||||
expect(parentFolder?.fileCount).toBe(1)
|
||||
expect(parentFolder?.sizeByte).toBe(500)
|
||||
expect(Number(parentFolder?.sizeByte)).toBe(500)
|
||||
expect(uploadService.triggerPostUploadWorkflows).toHaveBeenCalled()
|
||||
})
|
||||
})
|
||||
@@ -1372,7 +1372,7 @@ describe('Agent Database Activities Integration', () => {
|
||||
})
|
||||
|
||||
expect(updatedStack?.fileCount).toBe(2)
|
||||
expect(updatedStack?.sizeByte).toBe(350)
|
||||
expect(Number(updatedStack?.sizeByte)).toBe(350)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@@ -1122,7 +1122,7 @@ export async function executeAgentToolActivity(params: ExecuteAgentToolParams):
|
||||
id: a.id,
|
||||
name: a.name,
|
||||
type: a.type,
|
||||
size: a.sizeByte,
|
||||
size: Number(a.sizeByte),
|
||||
}))
|
||||
|
||||
return {
|
||||
@@ -1160,7 +1160,7 @@ export async function executeAgentToolActivity(params: ExecuteAgentToolParams):
|
||||
id: newFolder.id,
|
||||
name: newFolder.name,
|
||||
type: newFolder.type,
|
||||
size: newFolder.sizeByte,
|
||||
size: Number(newFolder.sizeByte),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1232,7 +1232,7 @@ export async function executeAgentToolActivity(params: ExecuteAgentToolParams):
|
||||
id: newFile.id,
|
||||
name: newFile.name,
|
||||
type: newFile.type,
|
||||
size: newFile.sizeByte,
|
||||
size: Number(newFile.sizeByte),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1332,7 +1332,7 @@ export async function executeAgentToolActivity(params: ExecuteAgentToolParams):
|
||||
id: newFile.id,
|
||||
name: newFile.name,
|
||||
type: newFile.type,
|
||||
size: newFile.sizeByte,
|
||||
size: Number(newFile.sizeByte),
|
||||
}
|
||||
} else {
|
||||
// Parent is a regular file. We must create a new version stack.
|
||||
@@ -1381,7 +1381,7 @@ export async function executeAgentToolActivity(params: ExecuteAgentToolParams):
|
||||
id: newFile.id,
|
||||
name: newFile.name,
|
||||
type: newFile.type,
|
||||
size: newFile.sizeByte,
|
||||
size: Number(newFile.sizeByte),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,11 +94,19 @@ describe('S3 API', () => {
|
||||
|
||||
const res = await app.request('/files/b1/test.webp', {
|
||||
method: 'PUT',
|
||||
headers: {
|
||||
'content-length': body.byteLength.toString(),
|
||||
},
|
||||
body,
|
||||
})
|
||||
|
||||
expect(res.status).toBe(200)
|
||||
expect(await res.text()).toBe('OK')
|
||||
expect(mockPut).toHaveBeenCalledWith('b1', 'test.webp', expect.any(Buffer), body.byteLength)
|
||||
expect(mockPut).toHaveBeenCalledWith(
|
||||
'b1',
|
||||
'test.webp',
|
||||
expect.any(ReadableStream),
|
||||
body.byteLength,
|
||||
)
|
||||
})
|
||||
})
|
||||
|
||||
@@ -18,10 +18,11 @@ const route = new Hono()
|
||||
.put('/:bucket/:key{.+}', async (c) => {
|
||||
const bucket = c.req.param('bucket')
|
||||
const key = c.req.param('key')
|
||||
const body = await c.req.arrayBuffer()
|
||||
const contentLength = parseInt(c.req.header('content-length') || '0', 10)
|
||||
|
||||
try {
|
||||
await s3Service.putObject(bucket, key, Buffer.from(body), body.byteLength)
|
||||
const body = c.req.raw.body ?? (await c.req.arrayBuffer())
|
||||
await s3Service.putObject(bucket, key, body, contentLength)
|
||||
return c.text('OK')
|
||||
} catch (e: unknown) {
|
||||
const error = e as Error
|
||||
|
||||
@@ -26,9 +26,8 @@ export const localUploadRoute = new Hono().put(
|
||||
}
|
||||
|
||||
const contentType = c.req.header('Content-Type')
|
||||
let buffer: Buffer
|
||||
let size: number
|
||||
let finalContentType = contentType
|
||||
const contentLength = parseInt(c.req.header('Content-Length') || '0', 10)
|
||||
|
||||
if (contentType?.includes('multipart/form-data')) {
|
||||
const body = await c.req.parseBody()
|
||||
@@ -36,17 +35,15 @@ export const localUploadRoute = new Hono().put(
|
||||
if (!file) {
|
||||
return c.text('No file uploaded', 400)
|
||||
}
|
||||
buffer = Buffer.from(await file.arrayBuffer())
|
||||
size = file.size
|
||||
const buffer = Buffer.from(await file.arrayBuffer())
|
||||
const size = file.size
|
||||
finalContentType = file.type || 'application/octet-stream'
|
||||
await s3Service.putObject(bucket, key, buffer, size, finalContentType)
|
||||
} else {
|
||||
const arrayBuffer = await c.req.arrayBuffer()
|
||||
buffer = Buffer.from(arrayBuffer)
|
||||
size = arrayBuffer.byteLength
|
||||
const body = c.req.raw.body ?? (await c.req.arrayBuffer())
|
||||
await s3Service.putObject(bucket, key, body, contentLength, finalContentType)
|
||||
}
|
||||
|
||||
await s3Service.putObject(bucket, key, buffer, size, finalContentType)
|
||||
|
||||
return c.json({ success: true })
|
||||
},
|
||||
)
|
||||
|
||||
@@ -56,18 +56,18 @@ describe('AiUsageService', () => {
|
||||
|
||||
const teamRecord = records.find((r) => r.userId === null)
|
||||
expect(teamRecord).toBeDefined()
|
||||
expect(teamRecord?.inputTokens).toBe(100)
|
||||
expect(teamRecord?.outputTokens).toBe(50)
|
||||
expect(teamRecord?.cacheReadTokens).toBe(20)
|
||||
expect(teamRecord?.totalTokens).toBe(150)
|
||||
expect(Number(teamRecord?.inputTokens)).toBe(100)
|
||||
expect(Number(teamRecord?.outputTokens)).toBe(50)
|
||||
expect(Number(teamRecord?.cacheReadTokens)).toBe(20)
|
||||
expect(Number(teamRecord?.totalTokens)).toBe(150)
|
||||
expect(teamRecord?.cost).toBeCloseTo(0.001)
|
||||
|
||||
const memberRecord = records.find((r) => r.userId === user.id)
|
||||
expect(memberRecord).toBeDefined()
|
||||
expect(memberRecord?.inputTokens).toBe(100)
|
||||
expect(memberRecord?.outputTokens).toBe(50)
|
||||
expect(memberRecord?.cacheReadTokens).toBe(20)
|
||||
expect(memberRecord?.totalTokens).toBe(150)
|
||||
expect(Number(memberRecord?.inputTokens)).toBe(100)
|
||||
expect(Number(memberRecord?.outputTokens)).toBe(50)
|
||||
expect(Number(memberRecord?.cacheReadTokens)).toBe(20)
|
||||
expect(Number(memberRecord?.totalTokens)).toBe(150)
|
||||
expect(memberRecord?.cost).toBeCloseTo(0.001)
|
||||
})
|
||||
|
||||
@@ -143,7 +143,7 @@ describe('AiUsageService', () => {
|
||||
|
||||
expect(records).toHaveLength(1)
|
||||
expect(records[0].userId).toBeNull()
|
||||
expect(records[0].inputTokens).toBe(50)
|
||||
expect(Number(records[0].inputTokens)).toBe(50)
|
||||
})
|
||||
|
||||
it('filters statistics correctly by timeframe', async () => {
|
||||
|
||||
@@ -188,10 +188,10 @@ export class AiUsageService {
|
||||
let cost = 0
|
||||
|
||||
for (const r of teamRecords) {
|
||||
inputTokens += r.inputTokens
|
||||
outputTokens += r.outputTokens
|
||||
cacheReadTokens += r.cacheReadTokens
|
||||
totalTokens += r.totalTokens
|
||||
inputTokens += Number(r.inputTokens)
|
||||
outputTokens += Number(r.outputTokens)
|
||||
cacheReadTokens += Number(r.cacheReadTokens)
|
||||
totalTokens += Number(r.totalTokens)
|
||||
cost += r.cost
|
||||
}
|
||||
|
||||
@@ -234,10 +234,10 @@ export class AiUsageService {
|
||||
let cost = 0
|
||||
|
||||
for (const r of memberRecords) {
|
||||
inputTokens += r.inputTokens
|
||||
outputTokens += r.outputTokens
|
||||
cacheReadTokens += r.cacheReadTokens
|
||||
totalTokens += r.totalTokens
|
||||
inputTokens += Number(r.inputTokens)
|
||||
outputTokens += Number(r.outputTokens)
|
||||
cacheReadTokens += Number(r.cacheReadTokens)
|
||||
totalTokens += Number(r.totalTokens)
|
||||
cost += r.cost
|
||||
}
|
||||
|
||||
|
||||
@@ -227,7 +227,7 @@ describe('AssetService', () => {
|
||||
if (expected.name !== undefined) expect(a.name).toBe(expected.name)
|
||||
expect(a.type).toBe(expected.type)
|
||||
expect(a.fileCount).toBe(expected.fileCount)
|
||||
expect(a.sizeByte).toBe(expected.size)
|
||||
expect(Number(a.sizeByte)).toBe(expected.size)
|
||||
}
|
||||
|
||||
it('can create a folder and list children', async () => {
|
||||
@@ -2672,5 +2672,53 @@ describe('AssetService — natural sort by name', () => {
|
||||
expect(resolvedId).toBe(fileB.id)
|
||||
expect(resolvedId).not.toBe(fileA.id)
|
||||
})
|
||||
|
||||
it('supports file and folder sizes > 2.14 GB (BigInt int8)', async () => {
|
||||
const team = await prisma.team.create({ data: { name: 'Test Team BigInt' } })
|
||||
const project = await prisma.project.create({
|
||||
data: { name: 'Test Project BigInt', teamId: team.id },
|
||||
})
|
||||
const user = await prisma.user.create({
|
||||
data: { name: 'Test User BigInt', email: `test-bigint-${Date.now()}@example.com` },
|
||||
})
|
||||
|
||||
// 3.5 GB = 3,500,000,000 bytes (exceeds int4 max 2,147,483,647)
|
||||
const largeSize = 3_500_000_000
|
||||
|
||||
const largeFolder = await prisma.asset.create({
|
||||
data: {
|
||||
name: 'LargeStorageFolder',
|
||||
type: AssetType.folder,
|
||||
projectId: project.id,
|
||||
creatorId: user.id,
|
||||
status: AssetStatus.uploaded,
|
||||
sizeByte: 0,
|
||||
},
|
||||
})
|
||||
|
||||
const largeFile = await assetService.createAsset({
|
||||
name: 'huge_video_4k.mp4',
|
||||
type: 'file',
|
||||
projectId: project.id,
|
||||
parentId: largeFolder.id,
|
||||
sizeByte: largeSize,
|
||||
creatorId: user.id,
|
||||
})
|
||||
|
||||
expect(Number(largeFile.sizeByte)).toBe(largeSize)
|
||||
|
||||
// Test updating ancestor size with > 2.14 GB
|
||||
await assetService.updateAncestorsSize(prisma, largeFolder.id, largeSize)
|
||||
|
||||
const updatedFolder = await prisma.asset.findUnique({
|
||||
where: { id: largeFolder.id },
|
||||
})
|
||||
|
||||
expect(Number(updatedFolder?.sizeByte)).toBe(largeSize)
|
||||
|
||||
// Test getAsset returns number format correctly
|
||||
const info = await assetService.getAsset({ assetId: largeFile.id })
|
||||
expect(info.sizeByte).toBe(largeSize)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@@ -127,8 +127,12 @@ export class AssetService {
|
||||
return orderedInfos
|
||||
}
|
||||
|
||||
async updateAncestorsSize(tx: Prisma.TransactionClient, startNodeId: string, sizeDelta: number) {
|
||||
if (sizeDelta === 0) return
|
||||
async updateAncestorsSize(
|
||||
tx: Prisma.TransactionClient,
|
||||
startNodeId: string,
|
||||
sizeDelta: number | bigint,
|
||||
) {
|
||||
if (sizeDelta === 0 || sizeDelta === 0n) return
|
||||
|
||||
const rows = await tx.$queryRaw<{ id: string }[]>`
|
||||
WITH RECURSIVE ancestor AS (
|
||||
@@ -220,7 +224,7 @@ export class AssetService {
|
||||
if (a.parentId !== oldParentId) {
|
||||
throw new Error('All assets must be moved from the same parent folder')
|
||||
}
|
||||
totalSize += a.sizeByte
|
||||
totalSize += Number(a.sizeByte)
|
||||
}
|
||||
|
||||
const totalCount = assetsToMove.length
|
||||
@@ -347,7 +351,7 @@ export class AssetService {
|
||||
req.creatorId,
|
||||
req.withComments,
|
||||
)
|
||||
totalSize += copiedAsset.sizeByte
|
||||
totalSize += Number(copiedAsset.sizeByte)
|
||||
firstSortIndex = newSortIndex
|
||||
}
|
||||
|
||||
@@ -549,8 +553,8 @@ export class AssetService {
|
||||
where: { id: oldParentId },
|
||||
data: { fileCount: { decrement: 1 } },
|
||||
})
|
||||
await this.updateAncestorsSize(tx, oldParentId, -sourceAsset.sizeByte)
|
||||
await this.updateAncestorsSize(tx, stackParentId, sourceAsset.sizeByte)
|
||||
await this.updateAncestorsSize(tx, oldParentId, -Number(sourceAsset.sizeByte))
|
||||
await this.updateAncestorsSize(tx, stackParentId, Number(sourceAsset.sizeByte))
|
||||
}
|
||||
|
||||
const firstIndex = generateKeyBetween(null, null)
|
||||
@@ -1049,7 +1053,7 @@ export class AssetService {
|
||||
},
|
||||
})
|
||||
|
||||
await this.updateAncestorsSize(tx, a.parentId, -a.sizeByte)
|
||||
await this.updateAncestorsSize(tx, a.parentId, -Number(a.sizeByte))
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -1259,7 +1263,7 @@ export class AssetService {
|
||||
},
|
||||
})
|
||||
|
||||
await this.updateAncestorsSize(tx, a.parentId, a.sizeByte)
|
||||
await this.updateAncestorsSize(tx, a.parentId, Number(a.sizeByte))
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -1725,7 +1729,7 @@ export class AssetService {
|
||||
media.original = {
|
||||
key,
|
||||
downloadUrl: await s3Service.presign(process.env.S3_BUCKET || 'shumai', key, 'GET'),
|
||||
filesizeInBytes: latestVersion.sizeByte,
|
||||
filesizeInBytes: Number(latestVersion.sizeByte),
|
||||
codec: '',
|
||||
}
|
||||
}
|
||||
@@ -1738,7 +1742,7 @@ export class AssetService {
|
||||
a.type === AssetType.version_stack && (a.name === '' || !a.name)
|
||||
? latestVersion.name
|
||||
: a.name,
|
||||
sizeByte: latestVersion.sizeByte,
|
||||
sizeByte: Number(latestVersion.sizeByte),
|
||||
fileCount: latestVersion.fileCount,
|
||||
type: a.type,
|
||||
targetType: a.type === AssetType.symlink ? a.target?.type : null,
|
||||
|
||||
@@ -37,7 +37,7 @@ export interface S3Service {
|
||||
putObject(
|
||||
bucket: string,
|
||||
key: string,
|
||||
body: Buffer | Uint8Array | string,
|
||||
body: Buffer | Uint8Array | ArrayBuffer | string | ReadableStream,
|
||||
size: number,
|
||||
contentType?: string,
|
||||
): Promise<void>
|
||||
@@ -282,7 +282,7 @@ export class LocalStorageService implements S3Service {
|
||||
async putObject(
|
||||
bucket: string,
|
||||
key: string,
|
||||
body: Buffer | Uint8Array | string,
|
||||
body: Buffer | Uint8Array | ArrayBuffer | string | ReadableStream,
|
||||
_size: number, // eslint-disable-line @typescript-eslint/no-unused-vars
|
||||
_contentType?: string, // eslint-disable-line @typescript-eslint/no-unused-vars
|
||||
): Promise<void> {
|
||||
@@ -291,7 +291,22 @@ export class LocalStorageService implements S3Service {
|
||||
if (!fs.existsSync(dir)) {
|
||||
fs.mkdirSync(dir, { recursive: true })
|
||||
}
|
||||
await fs.promises.writeFile(filePath, body)
|
||||
|
||||
if (body && typeof body === 'object' && 'getReader' in body) {
|
||||
const file = Bun.file(filePath)
|
||||
const writer = file.writer()
|
||||
const reader = (body as ReadableStream<Uint8Array>).getReader()
|
||||
while (true) {
|
||||
const { done, value } = await reader.read()
|
||||
if (done) break
|
||||
if (value) {
|
||||
await writer.write(value)
|
||||
}
|
||||
}
|
||||
await writer.end()
|
||||
} else {
|
||||
await Bun.write(filePath, body)
|
||||
}
|
||||
}
|
||||
|
||||
async getObject(bucket: string, key: string): Promise<S3Object> {
|
||||
|
||||
@@ -364,7 +364,7 @@ describe('UploadService', () => {
|
||||
})
|
||||
expect(stack).toBeDefined()
|
||||
expect(stack?.fileCount).toBe(1) // Only fileA is "uploaded", the new one is still "uploading"
|
||||
expect(stack?.sizeByte).toBe(1000)
|
||||
expect(Number(stack?.sizeByte)).toBe(1000)
|
||||
|
||||
// The new asset should be inside the stack
|
||||
const newAsset = await prisma.asset.findFirst({
|
||||
@@ -431,11 +431,11 @@ describe('UploadService', () => {
|
||||
|
||||
const updatedStack = await prisma.asset.findUnique({ where: { id: stack.id } })
|
||||
expect(updatedStack?.fileCount).toBe(2)
|
||||
expect(updatedStack?.sizeByte).toBe(3000)
|
||||
expect(Number(updatedStack?.sizeByte)).toBe(3000)
|
||||
|
||||
// Verify parent folder size (initially 1000 from stack)
|
||||
const parentFolder = await prisma.asset.findUnique({ where: { id: parentId } })
|
||||
expect(parentFolder?.sizeByte).toBe(3000)
|
||||
expect(Number(parentFolder?.sizeByte)).toBe(3000)
|
||||
})
|
||||
|
||||
it('should list upload tasks', async () => {
|
||||
|
||||
@@ -84,7 +84,7 @@ describe('VersionStackService', () => {
|
||||
expect(stack.name).toBe('')
|
||||
expect(stack.type).toBe(AssetType.version_stack)
|
||||
expect(stack.fileCount).toBe(2)
|
||||
expect(stack.sizeByte).toBe(300)
|
||||
expect(Number(stack.sizeByte)).toBe(300)
|
||||
expect(stack.parentId).toBe(parent.id)
|
||||
expect(stack.sortIndex).toBe('abc')
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ export class VersionStackService {
|
||||
} else if (f.parentId !== parentId) {
|
||||
throw new Error('files do not have the same parent')
|
||||
}
|
||||
totalSize += f.sizeByte
|
||||
totalSize += Number(f.sizeByte)
|
||||
}
|
||||
|
||||
if (!parentId) {
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "assets" ALTER COLUMN "size_byte" SET DATA TYPE BIGINT;
|
||||
@@ -0,0 +1,5 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "ai_usages" ALTER COLUMN "input_tokens" SET DATA TYPE BIGINT,
|
||||
ALTER COLUMN "output_tokens" SET DATA TYPE BIGINT,
|
||||
ALTER COLUMN "cache_read_tokens" SET DATA TYPE BIGINT,
|
||||
ALTER COLUMN "total_tokens" SET DATA TYPE BIGINT;
|
||||
@@ -374,7 +374,7 @@ model Asset {
|
||||
type AssetType
|
||||
mediaType String? @map("media_type")
|
||||
fileCount Int @default(0) @map("file_count")
|
||||
sizeByte Int @default(0) @map("size_byte")
|
||||
sizeByte BigInt @default(0) @map("size_byte")
|
||||
status AssetStatus
|
||||
transcodeTaskId String? @map("transcode_task_id")
|
||||
/// [MediaInfo]
|
||||
@@ -828,10 +828,10 @@ model AiUsage {
|
||||
teamId String @map("team_id")
|
||||
userId String? @map("user_id")
|
||||
periodStart DateTime @map("period_start")
|
||||
inputTokens Int @default(0) @map("input_tokens")
|
||||
outputTokens Int @default(0) @map("output_tokens")
|
||||
cacheReadTokens Int @default(0) @map("cache_read_tokens")
|
||||
totalTokens Int @default(0) @map("total_tokens")
|
||||
inputTokens BigInt @default(0) @map("input_tokens")
|
||||
outputTokens BigInt @default(0) @map("output_tokens")
|
||||
cacheReadTokens BigInt @default(0) @map("cache_read_tokens")
|
||||
totalTokens BigInt @default(0) @map("total_tokens")
|
||||
cost Float @default(0) @map("cost")
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
updatedAt DateTime @updatedAt @map("updated_at")
|
||||
|
||||
@@ -285,6 +285,17 @@ export type IntFilter<$PrismaModel = never> = {
|
||||
not?: Prisma.NestedIntFilter<$PrismaModel> | number
|
||||
}
|
||||
|
||||
export type BigIntFilter<$PrismaModel = never> = {
|
||||
equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||
in?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel>
|
||||
notIn?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel>
|
||||
lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||
lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||
gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||
gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedBigIntFilter<$PrismaModel> | bigint | number
|
||||
}
|
||||
|
||||
export type EnumAssetStatusFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.AssetStatus | Prisma.EnumAssetStatusFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.AssetStatus[] | Prisma.ListEnumAssetStatusFieldRefInput<$PrismaModel>
|
||||
@@ -318,6 +329,22 @@ export type IntWithAggregatesFilter<$PrismaModel = never> = {
|
||||
_max?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type BigIntWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||
in?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel>
|
||||
notIn?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel>
|
||||
lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||
lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||
gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||
gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedBigIntWithAggregatesFilter<$PrismaModel> | bigint | number
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_avg?: Prisma.NestedFloatFilter<$PrismaModel>
|
||||
_sum?: Prisma.NestedBigIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedBigIntFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedBigIntFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type EnumAssetStatusWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.AssetStatus | Prisma.EnumAssetStatusFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.AssetStatus[] | Prisma.ListEnumAssetStatusFieldRefInput<$PrismaModel>
|
||||
@@ -916,6 +943,17 @@ export type NestedEnumAssetTypeFilter<$PrismaModel = never> = {
|
||||
not?: Prisma.NestedEnumAssetTypeFilter<$PrismaModel> | $Enums.AssetType
|
||||
}
|
||||
|
||||
export type NestedBigIntFilter<$PrismaModel = never> = {
|
||||
equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||
in?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel>
|
||||
notIn?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel>
|
||||
lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||
lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||
gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||
gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedBigIntFilter<$PrismaModel> | bigint | number
|
||||
}
|
||||
|
||||
export type NestedEnumAssetStatusFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.AssetStatus | Prisma.EnumAssetStatusFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.AssetStatus[] | Prisma.ListEnumAssetStatusFieldRefInput<$PrismaModel>
|
||||
@@ -960,6 +998,22 @@ export type NestedFloatFilter<$PrismaModel = never> = {
|
||||
not?: Prisma.NestedFloatFilter<$PrismaModel> | number
|
||||
}
|
||||
|
||||
export type NestedBigIntWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||
in?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel>
|
||||
notIn?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel>
|
||||
lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||
lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||
gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||
gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedBigIntWithAggregatesFilter<$PrismaModel> | bigint | number
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_avg?: Prisma.NestedFloatFilter<$PrismaModel>
|
||||
_sum?: Prisma.NestedBigIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedBigIntFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedBigIntFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedEnumAssetStatusWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.AssetStatus | Prisma.EnumAssetStatusFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.AssetStatus[] | Prisma.ListEnumAssetStatusFieldRefInput<$PrismaModel>
|
||||
|
||||
+3
-3
File diff suppressed because one or more lines are too long
@@ -3675,6 +3675,20 @@ export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel,
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'BigInt'
|
||||
*/
|
||||
export type BigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt'>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'BigInt[]'
|
||||
*/
|
||||
export type ListBigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt[]'>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'AssetStatus'
|
||||
*/
|
||||
|
||||
+116
-116
@@ -37,10 +37,10 @@ export type AiUsageAvgAggregateOutputType = {
|
||||
}
|
||||
|
||||
export type AiUsageSumAggregateOutputType = {
|
||||
inputTokens: number | null
|
||||
outputTokens: number | null
|
||||
cacheReadTokens: number | null
|
||||
totalTokens: number | null
|
||||
inputTokens: bigint | null
|
||||
outputTokens: bigint | null
|
||||
cacheReadTokens: bigint | null
|
||||
totalTokens: bigint | null
|
||||
cost: number | null
|
||||
}
|
||||
|
||||
@@ -49,10 +49,10 @@ export type AiUsageMinAggregateOutputType = {
|
||||
teamId: string | null
|
||||
userId: string | null
|
||||
periodStart: Date | null
|
||||
inputTokens: number | null
|
||||
outputTokens: number | null
|
||||
cacheReadTokens: number | null
|
||||
totalTokens: number | null
|
||||
inputTokens: bigint | null
|
||||
outputTokens: bigint | null
|
||||
cacheReadTokens: bigint | null
|
||||
totalTokens: bigint | null
|
||||
cost: number | null
|
||||
createdAt: Date | null
|
||||
updatedAt: Date | null
|
||||
@@ -63,10 +63,10 @@ export type AiUsageMaxAggregateOutputType = {
|
||||
teamId: string | null
|
||||
userId: string | null
|
||||
periodStart: Date | null
|
||||
inputTokens: number | null
|
||||
outputTokens: number | null
|
||||
cacheReadTokens: number | null
|
||||
totalTokens: number | null
|
||||
inputTokens: bigint | null
|
||||
outputTokens: bigint | null
|
||||
cacheReadTokens: bigint | null
|
||||
totalTokens: bigint | null
|
||||
cost: number | null
|
||||
createdAt: Date | null
|
||||
updatedAt: Date | null
|
||||
@@ -238,10 +238,10 @@ export type AiUsageGroupByOutputType = {
|
||||
teamId: string
|
||||
userId: string | null
|
||||
periodStart: Date
|
||||
inputTokens: number
|
||||
outputTokens: number
|
||||
cacheReadTokens: number
|
||||
totalTokens: number
|
||||
inputTokens: bigint
|
||||
outputTokens: bigint
|
||||
cacheReadTokens: bigint
|
||||
totalTokens: bigint
|
||||
cost: number
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
@@ -275,10 +275,10 @@ export type AiUsageWhereInput = {
|
||||
teamId?: Prisma.StringFilter<"AiUsage"> | string
|
||||
userId?: Prisma.StringNullableFilter<"AiUsage"> | string | null
|
||||
periodStart?: Prisma.DateTimeFilter<"AiUsage"> | Date | string
|
||||
inputTokens?: Prisma.IntFilter<"AiUsage"> | number
|
||||
outputTokens?: Prisma.IntFilter<"AiUsage"> | number
|
||||
cacheReadTokens?: Prisma.IntFilter<"AiUsage"> | number
|
||||
totalTokens?: Prisma.IntFilter<"AiUsage"> | number
|
||||
inputTokens?: Prisma.BigIntFilter<"AiUsage"> | bigint | number
|
||||
outputTokens?: Prisma.BigIntFilter<"AiUsage"> | bigint | number
|
||||
cacheReadTokens?: Prisma.BigIntFilter<"AiUsage"> | bigint | number
|
||||
totalTokens?: Prisma.BigIntFilter<"AiUsage"> | bigint | number
|
||||
cost?: Prisma.FloatFilter<"AiUsage"> | number
|
||||
createdAt?: Prisma.DateTimeFilter<"AiUsage"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"AiUsage"> | Date | string
|
||||
@@ -311,10 +311,10 @@ export type AiUsageWhereUniqueInput = Prisma.AtLeast<{
|
||||
teamId?: Prisma.StringFilter<"AiUsage"> | string
|
||||
userId?: Prisma.StringNullableFilter<"AiUsage"> | string | null
|
||||
periodStart?: Prisma.DateTimeFilter<"AiUsage"> | Date | string
|
||||
inputTokens?: Prisma.IntFilter<"AiUsage"> | number
|
||||
outputTokens?: Prisma.IntFilter<"AiUsage"> | number
|
||||
cacheReadTokens?: Prisma.IntFilter<"AiUsage"> | number
|
||||
totalTokens?: Prisma.IntFilter<"AiUsage"> | number
|
||||
inputTokens?: Prisma.BigIntFilter<"AiUsage"> | bigint | number
|
||||
outputTokens?: Prisma.BigIntFilter<"AiUsage"> | bigint | number
|
||||
cacheReadTokens?: Prisma.BigIntFilter<"AiUsage"> | bigint | number
|
||||
totalTokens?: Prisma.BigIntFilter<"AiUsage"> | bigint | number
|
||||
cost?: Prisma.FloatFilter<"AiUsage"> | number
|
||||
createdAt?: Prisma.DateTimeFilter<"AiUsage"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"AiUsage"> | Date | string
|
||||
@@ -349,10 +349,10 @@ export type AiUsageScalarWhereWithAggregatesInput = {
|
||||
teamId?: Prisma.StringWithAggregatesFilter<"AiUsage"> | string
|
||||
userId?: Prisma.StringNullableWithAggregatesFilter<"AiUsage"> | string | null
|
||||
periodStart?: Prisma.DateTimeWithAggregatesFilter<"AiUsage"> | Date | string
|
||||
inputTokens?: Prisma.IntWithAggregatesFilter<"AiUsage"> | number
|
||||
outputTokens?: Prisma.IntWithAggregatesFilter<"AiUsage"> | number
|
||||
cacheReadTokens?: Prisma.IntWithAggregatesFilter<"AiUsage"> | number
|
||||
totalTokens?: Prisma.IntWithAggregatesFilter<"AiUsage"> | number
|
||||
inputTokens?: Prisma.BigIntWithAggregatesFilter<"AiUsage"> | bigint | number
|
||||
outputTokens?: Prisma.BigIntWithAggregatesFilter<"AiUsage"> | bigint | number
|
||||
cacheReadTokens?: Prisma.BigIntWithAggregatesFilter<"AiUsage"> | bigint | number
|
||||
totalTokens?: Prisma.BigIntWithAggregatesFilter<"AiUsage"> | bigint | number
|
||||
cost?: Prisma.FloatWithAggregatesFilter<"AiUsage"> | number
|
||||
createdAt?: Prisma.DateTimeWithAggregatesFilter<"AiUsage"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"AiUsage"> | Date | string
|
||||
@@ -361,10 +361,10 @@ export type AiUsageScalarWhereWithAggregatesInput = {
|
||||
export type AiUsageCreateInput = {
|
||||
id?: string
|
||||
periodStart: Date | string
|
||||
inputTokens?: number
|
||||
outputTokens?: number
|
||||
cacheReadTokens?: number
|
||||
totalTokens?: number
|
||||
inputTokens?: bigint | number
|
||||
outputTokens?: bigint | number
|
||||
cacheReadTokens?: bigint | number
|
||||
totalTokens?: bigint | number
|
||||
cost?: number
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
@@ -377,10 +377,10 @@ export type AiUsageUncheckedCreateInput = {
|
||||
teamId: string
|
||||
userId?: string | null
|
||||
periodStart: Date | string
|
||||
inputTokens?: number
|
||||
outputTokens?: number
|
||||
cacheReadTokens?: number
|
||||
totalTokens?: number
|
||||
inputTokens?: bigint | number
|
||||
outputTokens?: bigint | number
|
||||
cacheReadTokens?: bigint | number
|
||||
totalTokens?: bigint | number
|
||||
cost?: number
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
@@ -389,10 +389,10 @@ export type AiUsageUncheckedCreateInput = {
|
||||
export type AiUsageUpdateInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
periodStart?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inputTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
outputTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
cacheReadTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
totalTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
outputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
cacheReadTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
totalTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
cost?: Prisma.FloatFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -405,10 +405,10 @@ export type AiUsageUncheckedUpdateInput = {
|
||||
teamId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
periodStart?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inputTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
outputTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
cacheReadTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
totalTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
outputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
cacheReadTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
totalTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
cost?: Prisma.FloatFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -419,10 +419,10 @@ export type AiUsageCreateManyInput = {
|
||||
teamId: string
|
||||
userId?: string | null
|
||||
periodStart: Date | string
|
||||
inputTokens?: number
|
||||
outputTokens?: number
|
||||
cacheReadTokens?: number
|
||||
totalTokens?: number
|
||||
inputTokens?: bigint | number
|
||||
outputTokens?: bigint | number
|
||||
cacheReadTokens?: bigint | number
|
||||
totalTokens?: bigint | number
|
||||
cost?: number
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
@@ -431,10 +431,10 @@ export type AiUsageCreateManyInput = {
|
||||
export type AiUsageUpdateManyMutationInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
periodStart?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inputTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
outputTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
cacheReadTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
totalTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
outputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
cacheReadTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
totalTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
cost?: Prisma.FloatFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -445,10 +445,10 @@ export type AiUsageUncheckedUpdateManyInput = {
|
||||
teamId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
periodStart?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inputTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
outputTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
cacheReadTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
totalTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
outputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
cacheReadTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
totalTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
cost?: Prisma.FloatFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -623,10 +623,10 @@ export type FloatFieldUpdateOperationsInput = {
|
||||
export type AiUsageCreateWithoutUserInput = {
|
||||
id?: string
|
||||
periodStart: Date | string
|
||||
inputTokens?: number
|
||||
outputTokens?: number
|
||||
cacheReadTokens?: number
|
||||
totalTokens?: number
|
||||
inputTokens?: bigint | number
|
||||
outputTokens?: bigint | number
|
||||
cacheReadTokens?: bigint | number
|
||||
totalTokens?: bigint | number
|
||||
cost?: number
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
@@ -637,10 +637,10 @@ export type AiUsageUncheckedCreateWithoutUserInput = {
|
||||
id?: string
|
||||
teamId: string
|
||||
periodStart: Date | string
|
||||
inputTokens?: number
|
||||
outputTokens?: number
|
||||
cacheReadTokens?: number
|
||||
totalTokens?: number
|
||||
inputTokens?: bigint | number
|
||||
outputTokens?: bigint | number
|
||||
cacheReadTokens?: bigint | number
|
||||
totalTokens?: bigint | number
|
||||
cost?: number
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
@@ -680,10 +680,10 @@ export type AiUsageScalarWhereInput = {
|
||||
teamId?: Prisma.StringFilter<"AiUsage"> | string
|
||||
userId?: Prisma.StringNullableFilter<"AiUsage"> | string | null
|
||||
periodStart?: Prisma.DateTimeFilter<"AiUsage"> | Date | string
|
||||
inputTokens?: Prisma.IntFilter<"AiUsage"> | number
|
||||
outputTokens?: Prisma.IntFilter<"AiUsage"> | number
|
||||
cacheReadTokens?: Prisma.IntFilter<"AiUsage"> | number
|
||||
totalTokens?: Prisma.IntFilter<"AiUsage"> | number
|
||||
inputTokens?: Prisma.BigIntFilter<"AiUsage"> | bigint | number
|
||||
outputTokens?: Prisma.BigIntFilter<"AiUsage"> | bigint | number
|
||||
cacheReadTokens?: Prisma.BigIntFilter<"AiUsage"> | bigint | number
|
||||
totalTokens?: Prisma.BigIntFilter<"AiUsage"> | bigint | number
|
||||
cost?: Prisma.FloatFilter<"AiUsage"> | number
|
||||
createdAt?: Prisma.DateTimeFilter<"AiUsage"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"AiUsage"> | Date | string
|
||||
@@ -692,10 +692,10 @@ export type AiUsageScalarWhereInput = {
|
||||
export type AiUsageCreateWithoutTeamInput = {
|
||||
id?: string
|
||||
periodStart: Date | string
|
||||
inputTokens?: number
|
||||
outputTokens?: number
|
||||
cacheReadTokens?: number
|
||||
totalTokens?: number
|
||||
inputTokens?: bigint | number
|
||||
outputTokens?: bigint | number
|
||||
cacheReadTokens?: bigint | number
|
||||
totalTokens?: bigint | number
|
||||
cost?: number
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
@@ -706,10 +706,10 @@ export type AiUsageUncheckedCreateWithoutTeamInput = {
|
||||
id?: string
|
||||
userId?: string | null
|
||||
periodStart: Date | string
|
||||
inputTokens?: number
|
||||
outputTokens?: number
|
||||
cacheReadTokens?: number
|
||||
totalTokens?: number
|
||||
inputTokens?: bigint | number
|
||||
outputTokens?: bigint | number
|
||||
cacheReadTokens?: bigint | number
|
||||
totalTokens?: bigint | number
|
||||
cost?: number
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
@@ -745,10 +745,10 @@ export type AiUsageCreateManyUserInput = {
|
||||
id?: string
|
||||
teamId: string
|
||||
periodStart: Date | string
|
||||
inputTokens?: number
|
||||
outputTokens?: number
|
||||
cacheReadTokens?: number
|
||||
totalTokens?: number
|
||||
inputTokens?: bigint | number
|
||||
outputTokens?: bigint | number
|
||||
cacheReadTokens?: bigint | number
|
||||
totalTokens?: bigint | number
|
||||
cost?: number
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
@@ -757,10 +757,10 @@ export type AiUsageCreateManyUserInput = {
|
||||
export type AiUsageUpdateWithoutUserInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
periodStart?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inputTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
outputTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
cacheReadTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
totalTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
outputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
cacheReadTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
totalTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
cost?: Prisma.FloatFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -771,10 +771,10 @@ export type AiUsageUncheckedUpdateWithoutUserInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
teamId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
periodStart?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inputTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
outputTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
cacheReadTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
totalTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
outputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
cacheReadTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
totalTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
cost?: Prisma.FloatFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -784,10 +784,10 @@ export type AiUsageUncheckedUpdateManyWithoutUserInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
teamId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
periodStart?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inputTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
outputTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
cacheReadTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
totalTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
outputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
cacheReadTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
totalTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
cost?: Prisma.FloatFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -797,10 +797,10 @@ export type AiUsageCreateManyTeamInput = {
|
||||
id?: string
|
||||
userId?: string | null
|
||||
periodStart: Date | string
|
||||
inputTokens?: number
|
||||
outputTokens?: number
|
||||
cacheReadTokens?: number
|
||||
totalTokens?: number
|
||||
inputTokens?: bigint | number
|
||||
outputTokens?: bigint | number
|
||||
cacheReadTokens?: bigint | number
|
||||
totalTokens?: bigint | number
|
||||
cost?: number
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
@@ -809,10 +809,10 @@ export type AiUsageCreateManyTeamInput = {
|
||||
export type AiUsageUpdateWithoutTeamInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
periodStart?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inputTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
outputTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
cacheReadTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
totalTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
outputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
cacheReadTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
totalTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
cost?: Prisma.FloatFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -823,10 +823,10 @@ export type AiUsageUncheckedUpdateWithoutTeamInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
periodStart?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inputTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
outputTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
cacheReadTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
totalTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
outputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
cacheReadTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
totalTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
cost?: Prisma.FloatFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -836,10 +836,10 @@ export type AiUsageUncheckedUpdateManyWithoutTeamInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
periodStart?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inputTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
outputTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
cacheReadTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
totalTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
outputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
cacheReadTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
totalTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
cost?: Prisma.FloatFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -934,10 +934,10 @@ export type $AiUsagePayload<ExtArgs extends runtime.Types.Extensions.InternalArg
|
||||
teamId: string
|
||||
userId: string | null
|
||||
periodStart: Date
|
||||
inputTokens: number
|
||||
outputTokens: number
|
||||
cacheReadTokens: number
|
||||
totalTokens: number
|
||||
inputTokens: bigint
|
||||
outputTokens: bigint
|
||||
cacheReadTokens: bigint
|
||||
totalTokens: bigint
|
||||
cost: number
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
@@ -1370,10 +1370,10 @@ export interface AiUsageFieldRefs {
|
||||
readonly teamId: Prisma.FieldRef<"AiUsage", 'String'>
|
||||
readonly userId: Prisma.FieldRef<"AiUsage", 'String'>
|
||||
readonly periodStart: Prisma.FieldRef<"AiUsage", 'DateTime'>
|
||||
readonly inputTokens: Prisma.FieldRef<"AiUsage", 'Int'>
|
||||
readonly outputTokens: Prisma.FieldRef<"AiUsage", 'Int'>
|
||||
readonly cacheReadTokens: Prisma.FieldRef<"AiUsage", 'Int'>
|
||||
readonly totalTokens: Prisma.FieldRef<"AiUsage", 'Int'>
|
||||
readonly inputTokens: Prisma.FieldRef<"AiUsage", 'BigInt'>
|
||||
readonly outputTokens: Prisma.FieldRef<"AiUsage", 'BigInt'>
|
||||
readonly cacheReadTokens: Prisma.FieldRef<"AiUsage", 'BigInt'>
|
||||
readonly totalTokens: Prisma.FieldRef<"AiUsage", 'BigInt'>
|
||||
readonly cost: Prisma.FieldRef<"AiUsage", 'Float'>
|
||||
readonly createdAt: Prisma.FieldRef<"AiUsage", 'DateTime'>
|
||||
readonly updatedAt: Prisma.FieldRef<"AiUsage", 'DateTime'>
|
||||
|
||||
+109
-101
@@ -35,7 +35,7 @@ export type AssetAvgAggregateOutputType = {
|
||||
|
||||
export type AssetSumAggregateOutputType = {
|
||||
fileCount: number | null
|
||||
sizeByte: number | null
|
||||
sizeByte: bigint | null
|
||||
}
|
||||
|
||||
export type AssetMinAggregateOutputType = {
|
||||
@@ -44,7 +44,7 @@ export type AssetMinAggregateOutputType = {
|
||||
type: $Enums.AssetType | null
|
||||
mediaType: string | null
|
||||
fileCount: number | null
|
||||
sizeByte: number | null
|
||||
sizeByte: bigint | null
|
||||
status: $Enums.AssetStatus | null
|
||||
transcodeTaskId: string | null
|
||||
isDeleted: boolean | null
|
||||
@@ -66,7 +66,7 @@ export type AssetMaxAggregateOutputType = {
|
||||
type: $Enums.AssetType | null
|
||||
mediaType: string | null
|
||||
fileCount: number | null
|
||||
sizeByte: number | null
|
||||
sizeByte: bigint | null
|
||||
status: $Enums.AssetStatus | null
|
||||
transcodeTaskId: string | null
|
||||
isDeleted: boolean | null
|
||||
@@ -280,7 +280,7 @@ export type AssetGroupByOutputType = {
|
||||
type: $Enums.AssetType
|
||||
mediaType: string | null
|
||||
fileCount: number
|
||||
sizeByte: number
|
||||
sizeByte: bigint
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId: string | null
|
||||
media:PrismaJson.MediaInfo | null
|
||||
@@ -327,7 +327,7 @@ export type AssetWhereInput = {
|
||||
type?: Prisma.EnumAssetTypeFilter<"Asset"> | $Enums.AssetType
|
||||
mediaType?: Prisma.StringNullableFilter<"Asset"> | string | null
|
||||
fileCount?: Prisma.IntFilter<"Asset"> | number
|
||||
sizeByte?: Prisma.IntFilter<"Asset"> | number
|
||||
sizeByte?: Prisma.BigIntFilter<"Asset"> | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFilter<"Asset"> | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.StringNullableFilter<"Asset"> | string | null
|
||||
media?: Prisma.JsonNullableFilter<"Asset">
|
||||
@@ -415,7 +415,7 @@ export type AssetWhereUniqueInput = Prisma.AtLeast<{
|
||||
type?: Prisma.EnumAssetTypeFilter<"Asset"> | $Enums.AssetType
|
||||
mediaType?: Prisma.StringNullableFilter<"Asset"> | string | null
|
||||
fileCount?: Prisma.IntFilter<"Asset"> | number
|
||||
sizeByte?: Prisma.IntFilter<"Asset"> | number
|
||||
sizeByte?: Prisma.BigIntFilter<"Asset"> | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFilter<"Asset"> | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.StringNullableFilter<"Asset"> | string | null
|
||||
media?: Prisma.JsonNullableFilter<"Asset">
|
||||
@@ -489,7 +489,7 @@ export type AssetScalarWhereWithAggregatesInput = {
|
||||
type?: Prisma.EnumAssetTypeWithAggregatesFilter<"Asset"> | $Enums.AssetType
|
||||
mediaType?: Prisma.StringNullableWithAggregatesFilter<"Asset"> | string | null
|
||||
fileCount?: Prisma.IntWithAggregatesFilter<"Asset"> | number
|
||||
sizeByte?: Prisma.IntWithAggregatesFilter<"Asset"> | number
|
||||
sizeByte?: Prisma.BigIntWithAggregatesFilter<"Asset"> | bigint | number
|
||||
status?: Prisma.EnumAssetStatusWithAggregatesFilter<"Asset"> | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.StringNullableWithAggregatesFilter<"Asset"> | string | null
|
||||
media?: Prisma.JsonNullableWithAggregatesFilter<"Asset">
|
||||
@@ -513,7 +513,7 @@ export type AssetCreateInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -549,7 +549,7 @@ export type AssetUncheckedCreateInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -585,7 +585,7 @@ export type AssetUpdateInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -621,7 +621,7 @@ export type AssetUncheckedUpdateInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -657,7 +657,7 @@ export type AssetCreateManyInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -681,7 +681,7 @@ export type AssetUpdateManyMutationInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -699,7 +699,7 @@ export type AssetUncheckedUpdateManyInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -1026,6 +1026,14 @@ export type IntFieldUpdateOperationsInput = {
|
||||
divide?: number
|
||||
}
|
||||
|
||||
export type BigIntFieldUpdateOperationsInput = {
|
||||
set?: bigint | number
|
||||
increment?: bigint | number
|
||||
decrement?: bigint | number
|
||||
multiply?: bigint | number
|
||||
divide?: bigint | number
|
||||
}
|
||||
|
||||
export type EnumAssetStatusFieldUpdateOperationsInput = {
|
||||
set?: $Enums.AssetStatus
|
||||
}
|
||||
@@ -1285,7 +1293,7 @@ export type AssetCreateWithoutCreatorInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -1320,7 +1328,7 @@ export type AssetUncheckedCreateWithoutCreatorInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -1384,7 +1392,7 @@ export type AssetScalarWhereInput = {
|
||||
type?: Prisma.EnumAssetTypeFilter<"Asset"> | $Enums.AssetType
|
||||
mediaType?: Prisma.StringNullableFilter<"Asset"> | string | null
|
||||
fileCount?: Prisma.IntFilter<"Asset"> | number
|
||||
sizeByte?: Prisma.IntFilter<"Asset"> | number
|
||||
sizeByte?: Prisma.BigIntFilter<"Asset"> | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFilter<"Asset"> | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.StringNullableFilter<"Asset"> | string | null
|
||||
media?: Prisma.JsonNullableFilter<"Asset">
|
||||
@@ -1408,7 +1416,7 @@ export type AssetCreateWithoutTeamRootFolderInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -1443,7 +1451,7 @@ export type AssetUncheckedCreateWithoutTeamRootFolderInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -1494,7 +1502,7 @@ export type AssetUpdateWithoutTeamRootFolderInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -1529,7 +1537,7 @@ export type AssetUncheckedUpdateWithoutTeamRootFolderInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -1564,7 +1572,7 @@ export type AssetCreateWithoutProjectRootFolderInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -1599,7 +1607,7 @@ export type AssetUncheckedCreateWithoutProjectRootFolderInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -1639,7 +1647,7 @@ export type AssetCreateWithoutProjectShareRootInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -1674,7 +1682,7 @@ export type AssetUncheckedCreateWithoutProjectShareRootInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -1714,7 +1722,7 @@ export type AssetCreateWithoutProjectInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -1749,7 +1757,7 @@ export type AssetUncheckedCreateWithoutProjectInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -1805,7 +1813,7 @@ export type AssetUpdateWithoutProjectRootFolderInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -1840,7 +1848,7 @@ export type AssetUncheckedUpdateWithoutProjectRootFolderInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -1886,7 +1894,7 @@ export type AssetUpdateWithoutProjectShareRootInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -1921,7 +1929,7 @@ export type AssetUncheckedUpdateWithoutProjectShareRootInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -1972,7 +1980,7 @@ export type AssetCreateWithoutShareLinkRootFolderInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -2007,7 +2015,7 @@ export type AssetUncheckedCreateWithoutShareLinkRootFolderInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -2058,7 +2066,7 @@ export type AssetUpdateWithoutShareLinkRootFolderInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -2093,7 +2101,7 @@ export type AssetUncheckedUpdateWithoutShareLinkRootFolderInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -2128,7 +2136,7 @@ export type AssetCreateWithoutChildrenInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -2163,7 +2171,7 @@ export type AssetUncheckedCreateWithoutChildrenInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -2203,7 +2211,7 @@ export type AssetCreateWithoutParentInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -2238,7 +2246,7 @@ export type AssetUncheckedCreateWithoutParentInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -2283,7 +2291,7 @@ export type AssetCreateWithoutSymlinksInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -2318,7 +2326,7 @@ export type AssetUncheckedCreateWithoutSymlinksInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -2358,7 +2366,7 @@ export type AssetCreateWithoutTargetInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -2393,7 +2401,7 @@ export type AssetUncheckedCreateWithoutTargetInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -2449,7 +2457,7 @@ export type AssetUpdateWithoutChildrenInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -2484,7 +2492,7 @@ export type AssetUncheckedUpdateWithoutChildrenInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -2546,7 +2554,7 @@ export type AssetUpdateWithoutSymlinksInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -2581,7 +2589,7 @@ export type AssetUncheckedUpdateWithoutSymlinksInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -2632,7 +2640,7 @@ export type AssetCreateWithoutStorageKeyInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -2667,7 +2675,7 @@ export type AssetUncheckedCreateWithoutStorageKeyInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -2728,7 +2736,7 @@ export type AssetCreateWithoutMetadataValuesInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -2763,7 +2771,7 @@ export type AssetUncheckedCreateWithoutMetadataValuesInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -2814,7 +2822,7 @@ export type AssetUpdateWithoutMetadataValuesInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -2849,7 +2857,7 @@ export type AssetUncheckedUpdateWithoutMetadataValuesInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -2884,7 +2892,7 @@ export type AssetCreateWithoutCommentsInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -2919,7 +2927,7 @@ export type AssetUncheckedCreateWithoutCommentsInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -2970,7 +2978,7 @@ export type AssetUpdateWithoutCommentsInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -3005,7 +3013,7 @@ export type AssetUncheckedUpdateWithoutCommentsInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -3040,7 +3048,7 @@ export type AssetCreateWithoutCommentAttachmentsInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -3075,7 +3083,7 @@ export type AssetUncheckedCreateWithoutCommentAttachmentsInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -3126,7 +3134,7 @@ export type AssetUpdateWithoutCommentAttachmentsInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -3161,7 +3169,7 @@ export type AssetUncheckedUpdateWithoutCommentAttachmentsInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -3196,7 +3204,7 @@ export type AssetCreateWithoutEmbeddingsInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -3231,7 +3239,7 @@ export type AssetUncheckedCreateWithoutEmbeddingsInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -3282,7 +3290,7 @@ export type AssetUpdateWithoutEmbeddingsInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -3317,7 +3325,7 @@ export type AssetUncheckedUpdateWithoutEmbeddingsInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -3352,7 +3360,7 @@ export type AssetCreateWithoutNotificationsInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -3387,7 +3395,7 @@ export type AssetUncheckedCreateWithoutNotificationsInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -3438,7 +3446,7 @@ export type AssetUpdateWithoutNotificationsInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -3473,7 +3481,7 @@ export type AssetUncheckedUpdateWithoutNotificationsInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -3508,7 +3516,7 @@ export type AssetCreateWithoutTaskInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -3543,7 +3551,7 @@ export type AssetUncheckedCreateWithoutTaskInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -3604,7 +3612,7 @@ export type AssetCreateWithoutAgentSessionsInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -3639,7 +3647,7 @@ export type AssetUncheckedCreateWithoutAgentSessionsInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -3690,7 +3698,7 @@ export type AssetUpdateWithoutAgentSessionsInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -3725,7 +3733,7 @@ export type AssetUncheckedUpdateWithoutAgentSessionsInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -3760,7 +3768,7 @@ export type AssetCreateManyCreatorInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -3783,7 +3791,7 @@ export type AssetUpdateWithoutCreatorInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -3818,7 +3826,7 @@ export type AssetUncheckedUpdateWithoutCreatorInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -3853,7 +3861,7 @@ export type AssetUncheckedUpdateManyWithoutCreatorInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -3876,7 +3884,7 @@ export type AssetCreateManyProjectInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -3899,7 +3907,7 @@ export type AssetUpdateWithoutProjectInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -3934,7 +3942,7 @@ export type AssetUncheckedUpdateWithoutProjectInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -3969,7 +3977,7 @@ export type AssetUncheckedUpdateManyWithoutProjectInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -3992,7 +4000,7 @@ export type AssetCreateManyParentInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -4015,7 +4023,7 @@ export type AssetCreateManyTargetInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -4038,7 +4046,7 @@ export type AssetUpdateWithoutParentInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -4073,7 +4081,7 @@ export type AssetUncheckedUpdateWithoutParentInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -4108,7 +4116,7 @@ export type AssetUncheckedUpdateManyWithoutParentInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -4131,7 +4139,7 @@ export type AssetUpdateWithoutTargetInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -4166,7 +4174,7 @@ export type AssetUncheckedUpdateWithoutTargetInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -4201,7 +4209,7 @@ export type AssetUncheckedUpdateManyWithoutTargetInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -4224,7 +4232,7 @@ export type AssetCreateManyStorageKeyInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -4247,7 +4255,7 @@ export type AssetUpdateWithoutStorageKeyInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -4282,7 +4290,7 @@ export type AssetUncheckedUpdateWithoutStorageKeyInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -4317,7 +4325,7 @@ export type AssetUncheckedUpdateManyWithoutStorageKeyInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -4340,7 +4348,7 @@ export type AssetCreateManyTaskInput = {
|
||||
type: $Enums.AssetType
|
||||
mediaType?: string | null
|
||||
fileCount?: number
|
||||
sizeByte?: number
|
||||
sizeByte?: bigint | number
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -4363,7 +4371,7 @@ export type AssetUpdateWithoutTaskInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -4398,7 +4406,7 @@ export type AssetUncheckedUpdateWithoutTaskInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -4433,7 +4441,7 @@ export type AssetUncheckedUpdateManyWithoutTaskInput = {
|
||||
type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
||||
mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fileCount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
sizeByte?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
@@ -4738,7 +4746,7 @@ export type $AssetPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||
type: $Enums.AssetType
|
||||
mediaType: string | null
|
||||
fileCount: number
|
||||
sizeByte: number
|
||||
sizeByte: bigint
|
||||
status: $Enums.AssetStatus
|
||||
transcodeTaskId: string | null
|
||||
/**
|
||||
@@ -5203,7 +5211,7 @@ export interface AssetFieldRefs {
|
||||
readonly type: Prisma.FieldRef<"Asset", 'AssetType'>
|
||||
readonly mediaType: Prisma.FieldRef<"Asset", 'String'>
|
||||
readonly fileCount: Prisma.FieldRef<"Asset", 'Int'>
|
||||
readonly sizeByte: Prisma.FieldRef<"Asset", 'Int'>
|
||||
readonly sizeByte: Prisma.FieldRef<"Asset", 'BigInt'>
|
||||
readonly status: Prisma.FieldRef<"Asset", 'AssetStatus'>
|
||||
readonly transcodeTaskId: Prisma.FieldRef<"Asset", 'String'>
|
||||
readonly media: Prisma.FieldRef<"Asset", 'Json'>
|
||||
|
||||
@@ -4,6 +4,12 @@ import { PrismaClient, WorkflowTask } from './generated/prisma/client'
|
||||
import { PrismaTestingHelper } from './prisma-testing-helper'
|
||||
import { generateNgrams } from './utils/ngram'
|
||||
|
||||
// Ensure BigInt serializes to JSON number gracefully for Temporal/HTTP payloads
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
;(BigInt.prototype as any).toJSON = function () {
|
||||
return Number(this)
|
||||
}
|
||||
|
||||
// Global callback for workflow task creation (decouples db package from workflow engine)
|
||||
type WorkflowTriggerCallback = (task: WorkflowTask) => Promise<void>
|
||||
let onWorkflowTaskCreated: WorkflowTriggerCallback | null = null
|
||||
|
||||
@@ -82,6 +82,7 @@ vi.mock('fs', async (importOriginal) => {
|
||||
return {
|
||||
...actual,
|
||||
readFileSync: vi.fn().mockReturnValue(Buffer.from('fake data')),
|
||||
statSync: vi.fn().mockReturnValue({ size: 9 }),
|
||||
existsSync: vi.fn().mockReturnValue(true),
|
||||
mkdirSync: vi.fn(),
|
||||
unlinkSync: vi.fn(),
|
||||
@@ -609,7 +610,7 @@ describe('Transcode Activities', () => {
|
||||
expect(s3Service.putObject).toHaveBeenCalledWith(
|
||||
'shumai',
|
||||
'files/proj-123/a-audio-proxy.mp4',
|
||||
expect.any(Buffer),
|
||||
expect.any(ReadableStream),
|
||||
expect.any(Number),
|
||||
'video/mp4',
|
||||
)
|
||||
|
||||
@@ -257,8 +257,9 @@ export async function transcodeVideoActivity(
|
||||
disableAudio,
|
||||
})
|
||||
|
||||
const buffer = fs.readFileSync(outputFile)
|
||||
await s3Service.putObject(bucket, key, buffer, buffer.length, 'video/mp4')
|
||||
const stat = fs.statSync(outputFile)
|
||||
const stream = Bun.file(outputFile).stream()
|
||||
await s3Service.putObject(bucket, key, stream, stat.size, 'video/mp4')
|
||||
|
||||
return { ...params.videoSpec, key }
|
||||
} catch (err) {
|
||||
@@ -315,8 +316,9 @@ export async function transcodeAudioActivity(
|
||||
bitrate: '128k',
|
||||
})
|
||||
|
||||
const buffer = fs.readFileSync(outputFile)
|
||||
await s3Service.putObject(bucket, key, buffer, buffer.length, 'video/mp4')
|
||||
const stat = fs.statSync(outputFile)
|
||||
const stream = Bun.file(outputFile).stream()
|
||||
await s3Service.putObject(bucket, key, stream, stat.size, 'video/mp4')
|
||||
|
||||
return { width: 0, height: 0, key }
|
||||
} catch (err) {
|
||||
@@ -531,8 +533,9 @@ export async function generatePdfProxyActivity(
|
||||
await transcodeService.generatePdfFromText(params.filePath, pdfFilePath)
|
||||
}
|
||||
|
||||
const buffer = fs.readFileSync(pdfFilePath)
|
||||
await s3Service.putObject(bucket, pdfProxyKey, buffer, buffer.length, 'application/pdf')
|
||||
const stat = fs.statSync(pdfFilePath)
|
||||
const stream = Bun.file(pdfFilePath).stream()
|
||||
await s3Service.putObject(bucket, pdfProxyKey, stream, stat.size, 'application/pdf')
|
||||
|
||||
return { pdfProxyKey, pdfFilePath }
|
||||
} catch (err) {
|
||||
|
||||
@@ -49,12 +49,18 @@ export async function getAssetActivity(assetId: string) {
|
||||
if (latestVersion) {
|
||||
return {
|
||||
...latestVersion,
|
||||
sizeByte: Number(latestVersion.sizeByte),
|
||||
project: latestVersion.project ?? asset.project,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return asset
|
||||
if (!asset) return null
|
||||
|
||||
return {
|
||||
...asset,
|
||||
sizeByte: Number(asset.sizeByte),
|
||||
}
|
||||
}
|
||||
|
||||
export interface UpdateTaskStatusParams {
|
||||
|
||||
Reference in New Issue
Block a user