feat(metadata): replace aiAutofill boolean with autofillSource enum (#302)

* feat(metadata): replace aiAutofill boolean with autofillSource enum

* fix(agent): validate creation-context metadata and make writes transactional

Address code review feedback on the autofillSource migration:

- Update the agent system prompt to reference the 'metadata' parameter of
  create_file/create_version instead of the removed 'context' parameter,
  which was being silently discarded by the activity
- Write metadata inside the caller's transaction via the new
  metadataService.updateAssetMetadataInTx, keeping metadata rows atomic
  with asset creation instead of opening a separate non-atomic transaction
- Reject metadata keys that are not defined CREATION_CONTEXT fields of the
  project with a non-retryable ApplicationFailure before creating the asset
- Remove dead agentContext handling from autofillAiActivity and its tests,
  and drop the unused ai_autofill i18n keys (paraglide recompiled)
- Derive the DTO autofillSource enum from the AutofillSource const instead
  of a hardcoded z.enum to prevent drift
This commit is contained in:
Yiling-J
2026-08-13 13:41:46 +08:00
committed by GitHub
parent 96493a5493
commit 41b73feeab
57 changed files with 1118 additions and 663 deletions
+62 -168
View File
@@ -9,7 +9,6 @@ import {
updateCommentActivity,
getAgentChatContextActivity,
getAgentAutofillContextActivity,
getAssetAutofillContextActivity,
getAssetActivity,
getCommentActivity,
getProjectAutofillFieldsActivity,
@@ -460,58 +459,7 @@ describe('Agent Activities', () => {
expect(res.usage.inputTokens).toBe(5)
})
it('should include agentContext in the autofill prompt when provided', async () => {
const mockHarness = {
subscribe: vi.fn(),
prompt: vi.fn().mockResolvedValue({
content: [{ type: 'text', text: 'Captured' }],
usage: { input: 5, output: 5 },
}),
}
const mockSession = {
getEntries: vi.fn().mockResolvedValue([]),
getStorage: vi.fn().mockReturnValue({ sessionId: 'mock-session-id' }),
}
vi.mocked(piAgent.createAgentSession).mockImplementation(async (config: unknown) => {
const params = config as {
customTools: Array<{
name: string
execute: (id: string, args: Record<string, unknown>) => Promise<unknown>
}>
}
const tool = params.customTools.find((t) => t.name === 'autofill_metadata')
if (tool) {
await tool.execute('1', { f1: 'val' })
}
return {
session: mockSession as unknown as Session<DatabaseSessionMetadata>,
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Mock AgentHarness instance for activity test
harness: mockHarness as unknown as AgentHarness<any, any, any, any>,
}
})
const context = {
agent: { id: 'b1', provider: { name: 'google' }, modelRef: { modelId: 'gemini' } },
dbProviders: [],
teamSkills: [],
allowedDomains: [],
} as unknown as AgentExecutionContext
await autofillAiActivity({
teamId: 't1',
images: [],
fields: [{ id: 'f1', config: { name: 'F1', type: 'text' } }],
context,
agentContext: 'Generated using gemini',
})
const capturedPrompt = mockHarness.prompt.mock.calls[0]?.[0] ?? ''
expect(capturedPrompt).toContain('Generated using gemini')
expect(capturedPrompt).toContain('<context>')
})
it('should not include agentContext in the autofill prompt when absent', async () => {
it('should use the base autofill prompt without any creation-context injection', async () => {
const mockHarness = {
subscribe: vi.fn(),
prompt: vi.fn().mockResolvedValue({
@@ -557,6 +505,7 @@ describe('Agent Activities', () => {
})
const capturedPrompt = mockHarness.prompt.mock.calls[0]?.[0] ?? ''
expect(capturedPrompt).toContain('Analyze the provided images and extract metadata.')
expect(capturedPrompt).not.toContain('<context>')
})
})
@@ -1342,8 +1291,7 @@ describe('Agent Database Activities Integration', () => {
key: 'field_key_1',
scope: 'TEAM',
teamId: team.id,
aiAutofill: true,
config: { name: 'Title Extractor', type: 'text' },
config: { name: 'Title Extractor', type: 'text', autofillSource: 'CONTENT' },
},
})
@@ -1363,37 +1311,6 @@ describe('Agent Database Activities Integration', () => {
})
})
describe('getAssetAutofillContextActivity', () => {
it('should return the stored autofill context for an asset', async () => {
const withContext = await prisma.asset.create({
data: {
name: 'ctx.png',
type: AssetType.file,
status: AssetStatus.uploaded,
projectId: project.id,
autofillContext: 'Generated using gemini',
},
})
const ctx = await getAssetAutofillContextActivity(withContext.id)
expect(ctx).toBe('Generated using gemini')
})
it('should return null when the asset has no autofill context', async () => {
const noContext = await prisma.asset.create({
data: {
name: 'plain.png',
type: AssetType.file,
status: AssetStatus.uploaded,
projectId: project.id,
},
})
const ctx = await getAssetAutofillContextActivity(noContext.id)
expect(ctx).toBeNull()
})
})
describe('executeAgentToolActivity', () => {
beforeEach(() => {
vi.spyOn(authzService, 'hasPermission').mockResolvedValue()
@@ -1553,7 +1470,17 @@ describe('Agent Database Activities Integration', () => {
expect(uploadService.triggerPostUploadWorkflows).toHaveBeenCalled()
})
it('should persist autofillContext on the created file when context is provided', async () => {
it('should persist metadata on the created file when metadata map is provided', async () => {
await prisma.metadataField.create({
data: {
key: 'prompt',
scope: 'PROJECT',
projectId: project.id,
teamId: team.id,
config: { name: 'Prompt', type: 'text', autofillSource: 'CREATION_CONTEXT' },
},
})
const folder = await prisma.asset.create({
data: {
name: 'WorkspaceFolder',
@@ -1574,16 +1501,18 @@ describe('Agent Database Activities Integration', () => {
name: 'ctx.txt',
size: 100,
contentType: 'text/plain',
context: 'Generated using gemini',
metadata: { prompt: 'Generated using gemini' },
},
userId: user.id,
})
const created = await prisma.asset.findUnique({ where: { id: res.id } })
expect(created?.autofillContext).toBe('Generated using gemini')
const val = await prisma.assetMetadataValue.findFirst({
where: { assetId: res.id, fieldKey: 'prompt' },
})
expect(val?.stringValue).toBe('Generated using gemini')
})
it('should not set autofillContext when context is not provided', async () => {
it('should reject metadata with keys that are not CREATION_CONTEXT fields', async () => {
const folder = await prisma.asset.create({
data: {
name: 'WorkspaceFolder',
@@ -1595,21 +1524,27 @@ describe('Agent Database Activities Integration', () => {
},
})
const res = await executeAgentToolActivity({
taskId: 'task-1',
toolName: 'create_file',
args: {
parent: folder.id,
s3Key: 'uploads/plain.txt',
name: 'plain.txt',
size: 100,
contentType: 'text/plain',
},
userId: user.id,
})
await expect(
executeAgentToolActivity({
taskId: 'task-1',
toolName: 'create_file',
args: {
parent: folder.id,
s3Key: 'uploads/ctx.txt',
name: 'ctx.txt',
size: 100,
contentType: 'text/plain',
metadata: { prompt: 'ok', unknownKey: 'not allowed' },
},
userId: user.id,
}),
).rejects.toThrow(/not CREATION_CONTEXT fields/)
const created = await prisma.asset.findUnique({ where: { id: res.id } })
expect(created?.autofillContext).toBeNull()
// No metadata value should have been written for the unknown key
const val = await prisma.assetMetadataValue.findFirst({
where: { fieldKey: 'unknownKey' },
})
expect(val).toBeNull()
})
})
@@ -1720,7 +1655,17 @@ describe('Agent Database Activities Integration', () => {
expect(Number(updatedStack?.sizeByte)).toBe(350)
})
it('should persist autofillContext when creating a new version stack', async () => {
it('should persist metadata on the created version when metadata map is provided', async () => {
await prisma.metadataField.create({
data: {
key: 'prompt',
scope: 'PROJECT',
projectId: project.id,
teamId: team.id,
config: { name: 'Prompt', type: 'text', autofillSource: 'CREATION_CONTEXT' },
},
})
const folder = await prisma.asset.create({
data: {
name: 'WorkspaceFolder',
@@ -1752,69 +1697,20 @@ describe('Agent Database Activities Integration', () => {
name: 'v2.txt',
size: 300,
contentType: 'text/plain',
context: 'Generated using seedance',
metadata: { prompt: 'Generated using seedance' },
},
userId: user.id,
})
const created = await prisma.asset.findUnique({ where: { id: res.id } })
expect(created?.autofillContext).toBe('Generated using seedance')
})
it('should persist autofillContext when adding to an existing version stack', async () => {
const folder = await prisma.asset.create({
data: {
name: 'WorkspaceFolder',
type: AssetType.folder,
status: AssetStatus.uploaded,
projectId: project.id,
},
const val = await prisma.assetMetadataValue.findFirst({
where: { assetId: res.id, fieldKey: 'prompt' },
})
const stack = await prisma.asset.create({
data: {
name: 'VersionStack',
type: AssetType.version_stack,
status: AssetStatus.uploaded,
projectId: project.id,
parentId: folder.id,
fileCount: 1,
sizeByte: 100,
},
})
const existingFileVersion = await prisma.asset.create({
data: {
name: 'v1.txt',
type: AssetType.file,
status: AssetStatus.uploaded,
projectId: project.id,
parentId: stack.id,
sizeByte: 100,
},
})
const res = await executeAgentToolActivity({
taskId: 'task-1',
toolName: 'create_version',
args: {
parent: existingFileVersion.id,
s3Key: 'uploads/v2.txt',
name: 'v2.txt',
size: 250,
contentType: 'text/plain',
context: 'Generated using sora2',
},
userId: user.id,
})
const created = await prisma.asset.findUnique({ where: { id: res.id } })
expect(created?.autofillContext).toBe('Generated using sora2')
expect(val?.stringValue).toBe('Generated using seedance')
})
})
describe('list_autofill_fields', () => {
it('should return only aiAutofill fields with their options', async () => {
it('should return only CREATION_CONTEXT fields with their options', async () => {
const folder = await prisma.asset.create({
data: {
name: 'WorkspaceFolder',
@@ -1830,10 +1726,10 @@ describe('Agent Database Activities Integration', () => {
scope: 'PROJECT',
projectId: project.id,
teamId: team.id,
aiAutofill: true,
config: {
name: 'Source',
type: 'select',
autofillSource: 'CREATION_CONTEXT',
select: {
options: [
{ id: 'gemini', displayName: 'Gemini', color: '#ffffff' },
@@ -1846,12 +1742,11 @@ describe('Agent Database Activities Integration', () => {
})
await prisma.metadataField.create({
data: {
key: 'title',
key: 'prompt',
scope: 'PROJECT',
projectId: project.id,
teamId: team.id,
aiAutofill: true,
config: { name: 'Title', type: 'text' },
config: { name: 'Prompt', type: 'text', autofillSource: 'CREATION_CONTEXT' },
},
})
await prisma.metadataField.create({
@@ -1860,8 +1755,7 @@ describe('Agent Database Activities Integration', () => {
scope: 'PROJECT',
projectId: project.id,
teamId: team.id,
aiAutofill: false,
config: { name: 'Manual Notes', type: 'text' },
config: { name: 'Manual Notes', type: 'text', autofillSource: 'NONE' },
},
})
@@ -1874,6 +1768,7 @@ describe('Agent Database Activities Integration', () => {
expect(res.fields).toHaveLength(2)
const source = res.fields.find((f: { name: string }) => f.name === 'Source')
expect(source?.key).toBe('source')
expect(source?.name).toBe('Source')
expect(source?.type).toBe('select')
expect(source?.description).toBe('Generation source')
@@ -1905,8 +1800,7 @@ describe('Agent Database Activities Integration', () => {
scope: 'PROJECT',
projectId: project.id,
teamId: team.id,
aiAutofill: true,
config: { name: 'Title 2', type: 'text' },
config: { name: 'Title 2', type: 'text', autofillSource: 'CREATION_CONTEXT' },
},
})
+67 -40
View File
@@ -104,7 +104,7 @@ shumai has its own cloud file system. If a user asks you to perform file system
If you need to create files in the local filesystem (for example, a temporary file for uploading), only the '.pi' folder in the current directory has write permissions. Do NOT attempt to create files in any other directories.
When creating a file or version, first use 'list_autofill_fields' to inspect the project's AI-autofillable metadata fields. If relevant metadata depends on information unavailable from the file content (for example, the AI model or prompt used to generate the asset), include a context in the 'context' field of 'create_file' or 'create_version'. Keep the context short and only include information relevant to those fields.`
When creating a file or version, first use 'list_autofill_fields' to inspect the project's CREATION_CONTEXT metadata fields. If relevant metadata depends on information unavailable from the file content (for example, the AI model or prompt used to generate the asset), pass those field keys and their values in the 'metadata' dictionary parameter of 'create_file' or 'create_version'. Only include keys returned by 'list_autofill_fields', and keep values short and relevant to those fields.`
if (agent.soul) {
systemPrompt = `${systemPrompt}\n\nAgent Personality and Core Instructions:\n${agent.soul}`
@@ -422,17 +422,10 @@ export interface AutofillAiParams {
images: string[]
fields: AutofillField[]
context: AgentExecutionContext
agentContext?: string
}
export async function autofillAiActivity(params: AutofillAiParams) {
let prompt = 'Analyze the provided images and extract metadata.'
if (params.agentContext && params.agentContext.trim()) {
prompt +=
'\n\nAdditional context about this file, provided during creation:\n' +
`<context>\n${params.agentContext.trim()}\n</context>\n` +
'Use this context to inform your answers, especially for fields that cannot be determined from the images alone (e.g. generation model/source).'
}
const prompt = 'Analyze the provided images and extract metadata.'
const toolSchema = fieldsToTypeBoxSchema(params.fields)
let capturedData: Record<string, unknown> | null = null
@@ -1043,15 +1036,7 @@ export async function getCommentActivity(commentId: string) {
export async function getProjectAutofillFieldsActivity(projectId: string) {
const fields = await metadataService.listProjectFields('', projectId)
return fields.filter((f) => f.field.aiAutofill).map((f) => f.field)
}
export async function getAssetAutofillContextActivity(assetId: string): Promise<string | null> {
const asset = await prisma.asset.findUnique({
where: { id: assetId },
select: { autofillContext: true },
})
return asset?.autofillContext ?? null
return fields.filter((f) => f.field.config?.autofillSource === 'CONTENT').map((f) => f.field)
}
export async function updateAssetMetadataActivity(params: {
@@ -1100,7 +1085,36 @@ export interface ExecuteAgentToolParams {
userId?: string
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
/**
* Validates that every metadata key provided by the agent is a defined
* CREATION_CONTEXT field of the project. Unknown keys are rejected with a
* non-retryable failure so Temporal does not retry expected validation errors.
*/
async function validateCreationContextMetadata(
userId: string,
projectId: string,
metadata: Record<string, unknown> | undefined,
): Promise<void> {
if (!metadata || Object.keys(metadata).length === 0) return
const fields = await metadataService.listProjectFields(userId, projectId)
const allowedKeys = new Set(
fields
.filter((f) => f.field.config?.autofillSource === 'CREATION_CONTEXT')
.map((f) => f.field.key),
)
const invalidKeys = Object.keys(metadata).filter((key) => !allowedKeys.has(key))
if (invalidKeys.length > 0) {
throw ApplicationFailure.create({
message:
`metadata contains keys that are not CREATION_CONTEXT fields of this project: ${invalidKeys.join(', ')}. ` +
'Use list_autofill_fields to see the available keys.',
nonRetryable: true,
})
}
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Activity return type is a union of tool result shapes
export async function executeAgentToolActivity(params: ExecuteAgentToolParams): Promise<any> {
const { toolName, args, userId } = params
if (!userId) {
@@ -1254,7 +1268,10 @@ export async function executeAgentToolActivity(params: ExecuteAgentToolParams):
const name = args.name as string
const fileSize = args.size as number
const mimeType = args.contentType as string
const context = typeof args.context === 'string' ? args.context : undefined
const metadata =
typeof args.metadata === 'object' && args.metadata !== null
? (args.metadata as Record<string, unknown>)
: undefined
if (!parent || !s3Key || !name || fileSize === undefined || !mimeType) {
throw ApplicationFailure.create({
message: 'parent, s3Key, name, size, and contentType parameters are required',
@@ -1288,6 +1305,9 @@ export async function executeAgentToolActivity(params: ExecuteAgentToolParams):
})
}
// Validate that any provided metadata keys are defined CREATION_CONTEXT fields
await validateCreationContextMetadata(userId, parentAsset.projectId, metadata)
// Create asset via assetService
const newFile = await assetService.createAsset({
name,
@@ -1304,12 +1324,12 @@ export async function executeAgentToolActivity(params: ExecuteAgentToolParams):
// eslint-disable-next-line @typescript-eslint/no-explicit-any
await assetService.updateAncestorsSize(tx as any, parent, fileSize)
// Persist autofill context provided by the agent (used by the autofill workflow)
if (context) {
await tx.asset.update({
where: { id: newFile.id },
data: { autofillContext: context },
})
// Persist creation context metadata provided by the agent
if (metadata) {
const metadataUpdates = Object.entries(metadata).map(([key, value]) => ({ key, value }))
if (metadataUpdates.length > 0) {
await metadataService.updateAssetMetadataInTx(tx, newFile.id, metadataUpdates)
}
}
// Trigger post-upload transcode and AI workflows
@@ -1335,7 +1355,10 @@ export async function executeAgentToolActivity(params: ExecuteAgentToolParams):
const name = args.name as string
const fileSize = args.size as number
const mimeType = args.contentType as string
const context = typeof args.context === 'string' ? args.context : undefined
const metadata =
typeof args.metadata === 'object' && args.metadata !== null
? (args.metadata as Record<string, unknown>)
: undefined
if (!parent || !s3Key || !name || fileSize === undefined || !mimeType) {
throw ApplicationFailure.create({
message: 'parent, s3Key, name, size, and contentType parameters are required',
@@ -1361,6 +1384,9 @@ export async function executeAgentToolActivity(params: ExecuteAgentToolParams):
})
}
// Validate that any provided metadata keys are defined CREATION_CONTEXT fields
await validateCreationContextMetadata(userId, parentFile.projectId, metadata)
// Authz check: verify Edit permission on the parent file (resource ID is parent file id)
await authzService.hasPermission({
user,
@@ -1400,12 +1426,12 @@ export async function executeAgentToolActivity(params: ExecuteAgentToolParams):
where: { id: newFile.id },
data: { sortIndex: newSortIndex },
})
// Persist autofill context provided by the agent (used by the autofill workflow)
if (context) {
await tx.asset.update({
where: { id: newFile.id },
data: { autofillContext: context },
})
// Persist creation context metadata provided by the agent
if (metadata) {
const metadataUpdates = Object.entries(metadata).map(([key, value]) => ({ key, value }))
if (metadataUpdates.length > 0) {
await metadataService.updateAssetMetadataInTx(tx, newFile.id, metadataUpdates)
}
}
// Increment stack's size (fileCount is incremented by createAsset already)
const updatedStack = await tx.asset.update({
@@ -1465,12 +1491,12 @@ export async function executeAgentToolActivity(params: ExecuteAgentToolParams):
projectId: parentFile.projectId!,
creatorId: userId,
})
// Persist autofill context provided by the agent (used by the autofill workflow)
if (context) {
await tx.asset.update({
where: { id: newFile.id },
data: { autofillContext: context },
})
// Persist creation context metadata provided by the agent
if (metadata) {
const metadataUpdates = Object.entries(metadata).map(([key, value]) => ({ key, value }))
if (metadataUpdates.length > 0) {
await metadataService.updateAssetMetadataInTx(tx, newFile.id, metadataUpdates)
}
}
// Update ancestors' size (add size of the new file version)
// eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -1522,8 +1548,9 @@ export async function executeAgentToolActivity(params: ExecuteAgentToolParams):
const fields = await metadataService.listProjectFields(userId, projectId)
const autofillFields = fields
.filter((f) => f.field.aiAutofill)
.filter((f) => f.field.config?.autofillSource === 'CREATION_CONTEXT')
.map((f) => ({
key: f.field.key,
name: f.field.config?.name,
type: f.field.config?.type,
description: f.field.description,
+7 -7
View File
@@ -70,31 +70,31 @@ describe('createCreateFileTool', () => {
expect(result.details).toEqual({ id: 'file-1', name: 'test', type: 'file' })
})
it('should forward the optional context to the agent tool workflow when provided', async () => {
const filePath = createTempFile('# Hello from disk', 'create-file-context.md')
it('should forward the optional metadata to the agent tool workflow when provided', async () => {
const filePath = createTempFile('# Hello from disk', 'create-file-metadata.md')
const tool = createCreateFileTool('user-1')
await tool.execute('call-1', {
parent: 'folder-1',
path: filePath,
context: 'Generated using gemini',
metadata: { prompt: 'Generated using gemini' },
})
expect(executeAgentToolWorkflow).toHaveBeenCalledWith(
expect.objectContaining({
args: expect.objectContaining({ context: 'Generated using gemini' }),
args: expect.objectContaining({ metadata: { prompt: 'Generated using gemini' } }),
}),
)
})
it('should not include context in args when not provided', async () => {
const filePath = createTempFile('# Hello from disk', 'create-file-no-context.md')
it('should not include metadata in args when not provided', async () => {
const filePath = createTempFile('# Hello from disk', 'create-file-no-metadata.md')
const tool = createCreateFileTool('user-1')
await tool.execute('call-1', { parent: 'folder-1', path: filePath })
const callArgs = vi.mocked(executeAgentToolWorkflow).mock.calls[0][0].args
expect(callArgs).not.toHaveProperty('context')
expect(callArgs).not.toHaveProperty('metadata')
})
it('should throw when the local file does not exist', async () => {
+5 -7
View File
@@ -30,13 +30,11 @@ const createFileSchema = Type.Object({
}),
}),
),
context: Type.Optional(
Type.String({
metadata: Type.Optional(
Type.Record(Type.String(), Type.Any(), {
description:
'Optional context passed to the AI metadata autofill workflow for fields that cannot be inferred from file content alone ' +
'(e.g. the model or prompt used to generate the asset). ' +
'Use list_autofill_fields first to check which fields can be autofilled. ' +
'Keep the context short and only include information relevant to those fields.',
'Key-value map of metadata field keys and their values. Use the "key" field from list_autofill_fields data as the map key.' +
'Use list_autofill_fields first to inspect available fields.',
}),
),
})
@@ -104,7 +102,7 @@ export function createCreateFileTool(userId: string): AgentTool<typeof createFil
name,
size,
contentType: mimeType,
...(params.context ? { context: params.context } : {}),
...(params.metadata ? { metadata: params.metadata } : {}),
},
userId,
assetId: params.parent,
@@ -67,31 +67,31 @@ describe('createCreateVersionTool', () => {
expect(result.details).toEqual({ id: 'file-1', name: 'v2', type: 'file' })
})
it('should forward the optional context to the agent tool workflow when provided', async () => {
const filePath = createTempFile('# Hello from disk', 'create-version-context.md')
it('should forward the optional metadata to the agent tool workflow when provided', async () => {
const filePath = createTempFile('# Hello from disk', 'create-version-metadata.md')
const tool = createCreateVersionTool('user-1')
await tool.execute('call-1', {
parent: 'file-1',
path: filePath,
context: 'Generated using gemini',
metadata: { prompt: 'Generated using gemini' },
})
expect(executeAgentToolWorkflow).toHaveBeenCalledWith(
expect.objectContaining({
args: expect.objectContaining({ context: 'Generated using gemini' }),
args: expect.objectContaining({ metadata: { prompt: 'Generated using gemini' } }),
}),
)
})
it('should not include context in args when not provided', async () => {
const filePath = createTempFile('# Hello from disk', 'create-version-no-context.md')
it('should not include metadata in args when not provided', async () => {
const filePath = createTempFile('# Hello from disk', 'create-version-no-metadata.md')
const tool = createCreateVersionTool('user-1')
await tool.execute('call-1', { parent: 'file-1', path: filePath })
const callArgs = vi.mocked(executeAgentToolWorkflow).mock.calls[0][0].args
expect(callArgs).not.toHaveProperty('context')
expect(callArgs).not.toHaveProperty('metadata')
})
it('should throw when the local file does not exist', async () => {
+5 -7
View File
@@ -17,13 +17,11 @@ const createVersionSchema = Type.Object({
description:
'The absolute or relative local path to the file on disk. This parameter is required.',
}),
context: Type.Optional(
Type.String({
metadata: Type.Optional(
Type.Record(Type.String(), Type.Any(), {
description:
'Optional context passed to the AI metadata autofill workflow for fields that cannot be inferred from file content alone ' +
'(e.g. the model or prompt used to generate the asset). ' +
'Use list_autofill_fields first to check which fields can be autofilled. ' +
'Keep the context short and only include information relevant to those fields.',
'Key-value map of CREATION_CONTEXT metadata field keys and their values (e.g. prompt, model, provider). ' +
'Use list_autofill_fields first to inspect available CREATION_CONTEXT fields.',
}),
),
})
@@ -55,7 +53,7 @@ export function createCreateVersionTool(userId: string): AgentTool<typeof create
name: path.basename(absolutePath),
size: fileSize,
contentType: mimeType,
...(params.context ? { context: params.context } : {}),
...(params.metadata ? { metadata: params.metadata } : {}),
},
userId,
assetId: params.parent,
@@ -16,8 +16,8 @@ export function createListAutofillFieldsTool(
name: 'list_autofill_fields',
label: 'List Autofill Fields',
description:
'List the AI-autofillable metadata fields defined for the project of a parent folder, including their types and available options. ' +
'Use this before creating a file or version so you can pass relevant context (e.g. the model or prompt used to generate the asset) to create_file/create_version.',
'List the CREATION_CONTEXT metadata fields defined for the project of a parent folder (e.g. model or prompt used to generate the asset). ' +
'Use this before calling create_file or create_version so you can populate their field keys and values in the "metadata" dictionary parameter.',
parameters: listAutofillFieldsSchema,
execute: async (_toolCallId, params) => {
const result = await executeAgentToolWorkflow({
@@ -78,7 +78,6 @@ describe('Agent Autofill Workflow', () => {
{ key: 'title', config: { name: 'Title', type: 'text' }, description: 'The title' },
])
mockActivities.getAgentAutofillContextActivity.mockResolvedValue({ agent: { id: 'b1' } })
mockActivities.getAssetAutofillContextActivity.mockResolvedValue('Generated using gemini')
mockActivities.autofillAiActivity.mockResolvedValue({
text: '{"title":"Extracted Title"}',
sessionId: 'session-123',
@@ -140,7 +139,6 @@ describe('Agent Autofill Workflow', () => {
expect(mockActivities.getAgentAutofillContextActivity).toHaveBeenCalledWith({
teamId: 't1',
})
expect(mockActivities.getAssetAutofillContextActivity).toHaveBeenCalledWith('a1')
// Verify AI autofill called with mapped fields
expect(mockActivities.autofillAiActivity).toHaveBeenCalledWith({
@@ -154,7 +152,6 @@ describe('Agent Autofill Workflow', () => {
},
],
context: { agent: { id: 'b1' } },
agentContext: 'Generated using gemini',
})
// Verify task usage update
@@ -195,42 +192,6 @@ describe('Agent Autofill Workflow', () => {
})
})
it('should run autofill without agentContext when the asset has no context', async () => {
mockActivities.getAssetAutofillContextActivity.mockResolvedValue(null)
const task = await prisma.workflowTask.create({
data: {
type: 'ai_metadata_autofill',
status: 'pending',
assetId: 'a1',
payload: {
projectId: 'p1',
agent: { sessionId: 's1', agentId: 'agent-1' },
},
},
})
await agentAutofillMedia(task)
expect(mockActivities.getAssetAutofillContextActivity).toHaveBeenCalledWith('a1')
expect(mockActivities.autofillAiActivity).toHaveBeenCalledWith(
expect.objectContaining({
teamId: 't1',
images: ['/tmp/test-dir/1.webp'],
fields: [
{
id: 'title',
config: { name: 'Title', type: 'text' },
description: 'The title',
},
],
context: { agent: { id: 'b1' } },
}),
)
const aiCallArgs = mockActivities.autofillAiActivity.mock.calls[0][0]
expect(aiCallArgs).not.toHaveProperty('agentContext')
})
it('should complete early if no image files could be extracted', async () => {
mockActivities.extractAiMetadataActivity.mockResolvedValue([])
@@ -15,7 +15,6 @@ export async function agentAutofillMedia(task: WorkflowTask): Promise<void> {
extractAiMetadataActivity,
getProjectAutofillFieldsActivity,
getAgentAutofillContextActivity,
getAssetAutofillContextActivity,
autofillAiActivity,
updateTaskUsageActivity,
updateAssetMetadataActivity,
@@ -132,13 +131,6 @@ export async function agentAutofillMedia(task: WorkflowTask): Promise<void> {
teamId,
})
// 3c. Fetch Agent-Provided Autofill Context (from create_file/create_version)
const agentContext = await executeActivity(
agentWorkerQueue,
getAssetAutofillContextActivity,
asset.id,
)
// 4. Call AI Service
const aiResult = await executeActivity(agentWorkerQueue, autofillAiActivity, {
teamId,
@@ -151,7 +143,6 @@ export async function agentAutofillMedia(task: WorkflowTask): Promise<void> {
}),
),
context,
...(agentContext ? { agentContext } : {}),
})
if (aiResult.usage) {
+7 -13
View File
@@ -46,10 +46,9 @@ describe('metadata api', () => {
const mockField = {
key: 'field1',
scope: 'TEAM',
config: { name: 'Test Field', type: 'text' },
config: { name: 'Test Field', type: 'text', autofillSource: 'CONTENT' },
readOnly: false,
description: 'desc',
aiAutofill: true,
}
// Using any here because mocking complex service return types or Hono context is overly verbose for this test.
@@ -62,7 +61,7 @@ describe('metadata api', () => {
expect(json).toHaveLength(1)
expect(json[0].id).toBe('field1')
expect(json[0].config.name).toBe('Test Field')
expect(json[0].aiAutofill).toBe(true)
expect(json[0].config.autofillSource).toBe('CONTENT')
expect(authzService.hasPermission).toHaveBeenCalledWith({
user: expect.anything(),
permission: Permission.Read,
@@ -75,10 +74,9 @@ describe('metadata api', () => {
const mockField = {
key: 'newfield',
scope: 'TEAM',
config: { name: 'New Field', type: 'text' },
config: { name: 'New Field', type: 'text', autofillSource: 'CONTENT' },
readOnly: false,
description: 'desc',
aiAutofill: true,
}
// Using any here because mocking complex service return types or Hono context is overly verbose for this test.
@@ -88,8 +86,7 @@ describe('metadata api', () => {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
config: { name: 'New Field', type: 'text' },
aiAutofill: true,
config: { name: 'New Field', type: 'text', autofillSource: 'CONTENT' },
description: 'desc',
}),
})
@@ -115,10 +112,9 @@ describe('metadata api', () => {
const mockField = {
key: 'field1',
scope: 'PROJECT',
config: { name: 'Project Field', type: 'text' },
config: { name: 'Project Field', type: 'text', autofillSource: 'NONE' },
readOnly: false,
description: 'desc',
aiAutofill: false,
}
vi.mocked(metadataService.listProjectFields).mockResolvedValue([
@@ -198,10 +194,9 @@ describe('metadata api', () => {
const mockField = {
key: 'f1',
scope: 'TEAM',
config: { name: 'Updated Field', type: 'text' },
config: { name: 'Updated Field', type: 'text', autofillSource: 'CONTENT' },
readOnly: false,
description: 'desc',
aiAutofill: true,
teamId: 't1',
}
@@ -214,8 +209,7 @@ describe('metadata api', () => {
method: 'PUT',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
config: { name: 'Updated Field', type: 'text' },
aiAutofill: true,
config: { name: 'Updated Field', type: 'text', autofillSource: 'CONTENT' },
description: 'desc',
}),
})
-1
View File
@@ -27,7 +27,6 @@ function toFieldInfo(
readOnly: f.readOnly,
visible: visible,
description: f.description,
aiAutofill: f.aiAutofill,
}
}
-1
View File
@@ -93,7 +93,6 @@ function toFieldInfo(
readOnly: f.readOnly,
visible: visible,
description: f.description,
aiAutofill: f.aiAutofill,
}
}
+5 -7
View File
@@ -87,7 +87,7 @@ describe('MetadataService', () => {
expect(projectFields[2].visible).toBe(false)
})
it('AIAutofillAndDescription', async () => {
it('AutofillSourceAndDescription', async () => {
const team = await prisma.team.create({
data: { name: 'test-team' },
})
@@ -103,24 +103,22 @@ describe('MetadataService', () => {
key: 'teamfield1',
scope: 'TEAM',
team: { connect: { id: team.id } },
config: { name: 'Test Team Field', type: 'text' },
aiAutofill: true,
config: { name: 'Test Team Field', type: 'text', autofillSource: 'CONTENT' },
description: desc,
},
})
const newDesc = 'Updated description'
const updatedTeamField = await metadataService.updateTeamField(team.id, teamField.key, {
config: { name: 'Test Team Field', type: 'text' },
aiAutofill: false,
config: { name: 'Test Team Field', type: 'text', autofillSource: 'NONE' },
description: newDesc,
})
expect(updatedTeamField.aiAutofill).toBe(false)
expect(updatedTeamField.config?.autofillSource).toBe('NONE')
expect(updatedTeamField.description).toBe(newDesc)
// IDOR test
await expect(
metadataService.updateTeamField('wrong-team-id', teamField.key, {
config: { name: 'Hack', type: 'text' },
config: { name: 'Hack', type: 'text', autofillSource: 'NONE' },
}),
).rejects.toThrow('Field does not belong to this team')
})
+93 -75
View File
@@ -43,7 +43,6 @@ export class MetadataService {
scope: 'TEAM',
teamId: teamId,
config: req.config,
aiAutofill: req.aiAutofill,
description: req.description,
},
})
@@ -89,7 +88,6 @@ export class MetadataService {
where: { id: field.id },
data: {
config: req.config,
aiAutofill: req.aiAutofill ?? field.aiAutofill,
description: req.description ?? field.description,
},
})
@@ -125,7 +123,6 @@ export class MetadataService {
projectId: projectId,
teamId: p.teamId,
config: req.config,
aiAutofill: req.aiAutofill,
description: req.description,
},
})
@@ -239,7 +236,6 @@ export class MetadataService {
where: { id: field.id },
data: {
config: req.config,
aiAutofill: req.aiAutofill ?? field.aiAutofill,
description: req.description ?? field.description,
},
})
@@ -262,84 +258,106 @@ export class MetadataService {
assetId: string,
reqs: UpdateAssetMetadataRequest[],
allowReadOnly = false,
): Promise<void> {
await this.client.$transaction(async (tx) => {
await this.updateAssetMetadataInternal(tx, assetId, reqs, allowReadOnly)
})
}
/**
* Same as {@link updateAssetMetadata} but runs inside the caller's transaction,
* keeping the metadata write atomic with the surrounding changes.
*/
async updateAssetMetadataInTx(
tx: Prisma.TransactionClient,
assetId: string,
reqs: UpdateAssetMetadataRequest[],
allowReadOnly = false,
): Promise<void> {
await this.updateAssetMetadataInternal(tx, assetId, reqs, allowReadOnly)
}
private async updateAssetMetadataInternal(
client: Prisma.TransactionClient | typeof prisma,
assetId: string,
reqs: UpdateAssetMetadataRequest[],
allowReadOnly: boolean,
): Promise<void> {
const resolvedAssetId = await assetService.resolveLatestVersionId(assetId)
await this.client.$transaction(async (tx) => {
for (const req of reqs) {
const field = await tx.metadataField.findUnique({
where: { key: req.key },
})
if (field?.readOnly && !allowReadOnly) {
throw new Error(`Field ${field.key} is read-only`)
}
const value = req.value
let stringValue: string | null = null
let numberValue: number | null = null
let booleanValue: boolean | null = null
// eslint-disable-next-line @typescript-eslint/no-explicit-any
let jsonValue: any = null
let dateValue: Date | null = null
if (typeof value === 'string') {
// Check if it's a valid ISO date string
const date = new Date(value)
if (!isNaN(date.getTime()) && value.includes('T') && value.includes('-')) {
dateValue = date
} else {
stringValue = value
}
} else if (typeof value === 'number') {
numberValue = value
} else if (typeof value === 'boolean') {
booleanValue = value
} else if (value instanceof Date) {
dateValue = value
} else if (Array.isArray(value)) {
jsonValue = value
} else if (value === null) {
// all null
} else if (typeof value === 'object') {
jsonValue = value
} else {
stringValue = String(value)
}
await tx.assetMetadataValue.upsert({
where: {
// eslint-disable-next-line @typescript-eslint/naming-convention
assetId_fieldKey: {
assetId: resolvedAssetId,
fieldKey: req.key,
},
},
create: {
assetId: resolvedAssetId,
fieldKey: req.key,
stringValue,
numberValue,
booleanValue,
jsonValue,
dateValue,
},
update: {
stringValue,
numberValue,
booleanValue,
jsonValue,
dateValue,
},
})
for (const req of reqs) {
const field = await client.metadataField.findUnique({
where: { key: req.key },
})
if (field?.readOnly && !allowReadOnly) {
throw new Error(`Field ${field.key} is read-only`)
}
// Touch asset
await tx.asset.update({
where: { id: resolvedAssetId },
data: {
updatedAt: new Date(),
const value = req.value
let stringValue: string | null = null
let numberValue: number | null = null
let booleanValue: boolean | null = null
// eslint-disable-next-line @typescript-eslint/no-explicit-any
let jsonValue: any = null
let dateValue: Date | null = null
if (typeof value === 'string') {
// Check if it's a valid ISO date string
const date = new Date(value)
if (!isNaN(date.getTime()) && value.includes('T') && value.includes('-')) {
dateValue = date
} else {
stringValue = value
}
} else if (typeof value === 'number') {
numberValue = value
} else if (typeof value === 'boolean') {
booleanValue = value
} else if (value instanceof Date) {
dateValue = value
} else if (Array.isArray(value)) {
jsonValue = value
} else if (value === null) {
// all null
} else if (typeof value === 'object') {
jsonValue = value
} else {
stringValue = String(value)
}
await client.assetMetadataValue.upsert({
where: {
// eslint-disable-next-line @typescript-eslint/naming-convention
assetId_fieldKey: {
assetId: resolvedAssetId,
fieldKey: req.key,
},
},
create: {
assetId: resolvedAssetId,
fieldKey: req.key,
stringValue,
numberValue,
booleanValue,
jsonValue,
dateValue,
},
update: {
stringValue,
numberValue,
booleanValue,
jsonValue,
dateValue,
},
})
}
// Touch asset
await client.asset.update({
where: { id: resolvedAssetId },
data: {
updatedAt: new Date(),
},
})
}
}
@@ -0,0 +1,8 @@
-- Backfill autofillSource in config JSON where ai_autofill is true
UPDATE "metadata_fields"
SET "config" = jsonb_set(COALESCE("config", '{}'::jsonb), '{autofillSource}', '"CONTENT"')
WHERE "ai_autofill" = true;
UPDATE "metadata_fields"
SET "config" = jsonb_set(COALESCE("config", '{}'::jsonb), '{autofillSource}', '"NONE"')
WHERE "ai_autofill" = false OR "ai_autofill" IS NULL;
@@ -0,0 +1,12 @@
/*
Warnings:
- You are about to drop the column `autofill_context` on the `assets` table. All the data in the column will be lost.
- You are about to drop the column `ai_autofill` on the `metadata_fields` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "assets" DROP COLUMN "autofill_context";
-- AlterTable
ALTER TABLE "metadata_fields" DROP COLUMN "ai_autofill";
+2 -4
View File
@@ -450,7 +450,6 @@ model Asset {
transcodeTaskId String? @map("transcode_task_id")
/// [MediaInfo]
media Json?
autofillContext String? @map("autofill_context")
isDeleted Boolean @default(false) @map("is_deleted")
deletedAt DateTime? @map("deleted_at")
sortIndex String? @map("sort_index")
@@ -622,9 +621,8 @@ model MetadataField {
scope MetadataFieldScope?
/// [FieldConfig]
config Json?
readOnly Boolean @default(false) @map("read_only")
aiAutofill Boolean @default(false) @map("ai_autofill")
description String @default("")
readOnly Boolean @default(false) @map("read_only")
description String @default("")
teamId String? @map("team_id")
team Team? @relation("TeamToMetadataField", fields: [teamId], references: [id])
File diff suppressed because one or more lines are too long
@@ -3738,7 +3738,6 @@ export const AssetScalarFieldEnum = {
status: 'status',
transcodeTaskId: 'transcodeTaskId',
media: 'media',
autofillContext: 'autofillContext',
isDeleted: 'isDeleted',
deletedAt: 'deletedAt',
sortIndex: 'sortIndex',
@@ -3842,7 +3841,6 @@ export const MetadataFieldScalarFieldEnum = {
scope: 'scope',
config: 'config',
readOnly: 'readOnly',
aiAutofill: 'aiAutofill',
description: 'description',
teamId: 'teamId',
projectId: 'projectId'
@@ -331,7 +331,6 @@ export const AssetScalarFieldEnum = {
status: 'status',
transcodeTaskId: 'transcodeTaskId',
media: 'media',
autofillContext: 'autofillContext',
isDeleted: 'isDeleted',
deletedAt: 'deletedAt',
sortIndex: 'sortIndex',
@@ -435,7 +434,6 @@ export const MetadataFieldScalarFieldEnum = {
scope: 'scope',
config: 'config',
readOnly: 'readOnly',
aiAutofill: 'aiAutofill',
description: 'description',
teamId: 'teamId',
projectId: 'projectId'
+1 -118
View File
@@ -47,7 +47,6 @@ export type AssetMinAggregateOutputType = {
sizeByte: bigint | null
status: $Enums.AssetStatus | null
transcodeTaskId: string | null
autofillContext: string | null
isDeleted: boolean | null
deletedAt: Date | null
sortIndex: string | null
@@ -70,7 +69,6 @@ export type AssetMaxAggregateOutputType = {
sizeByte: bigint | null
status: $Enums.AssetStatus | null
transcodeTaskId: string | null
autofillContext: string | null
isDeleted: boolean | null
deletedAt: Date | null
sortIndex: string | null
@@ -95,7 +93,6 @@ export type AssetCountAggregateOutputType = {
status: number
transcodeTaskId: number
media:PrismaJson.MediaInfo
autofillContext: number
isDeleted: number
deletedAt: number
sortIndex: number
@@ -130,7 +127,6 @@ export type AssetMinAggregateInputType = {
sizeByte?: true
status?: true
transcodeTaskId?: true
autofillContext?: true
isDeleted?: true
deletedAt?: true
sortIndex?: true
@@ -153,7 +149,6 @@ export type AssetMaxAggregateInputType = {
sizeByte?: true
status?: true
transcodeTaskId?: true
autofillContext?: true
isDeleted?: true
deletedAt?: true
sortIndex?: true
@@ -178,7 +173,6 @@ export type AssetCountAggregateInputType = {
status?: true
transcodeTaskId?: true
media?: true
autofillContext?: true
isDeleted?: true
deletedAt?: true
sortIndex?: true
@@ -290,7 +284,6 @@ export type AssetGroupByOutputType = {
status: $Enums.AssetStatus
transcodeTaskId: string | null
media:PrismaJson.MediaInfo | null
autofillContext: string | null
isDeleted: boolean
deletedAt: Date | null
sortIndex: string | null
@@ -338,7 +331,6 @@ export type AssetWhereInput = {
status?: Prisma.EnumAssetStatusFilter<"Asset"> | $Enums.AssetStatus
transcodeTaskId?: Prisma.StringNullableFilter<"Asset"> | string | null
media?: Prisma.JsonNullableFilter<"Asset">
autofillContext?: Prisma.StringNullableFilter<"Asset"> | string | null
isDeleted?: Prisma.BoolFilter<"Asset"> | boolean
deletedAt?: Prisma.DateTimeNullableFilter<"Asset"> | Date | string | null
sortIndex?: Prisma.StringNullableFilter<"Asset"> | string | null
@@ -382,7 +374,6 @@ export type AssetOrderByWithRelationInput = {
status?: Prisma.SortOrder
transcodeTaskId?: Prisma.SortOrderInput | Prisma.SortOrder
media?: Prisma.SortOrderInput | Prisma.SortOrder
autofillContext?: Prisma.SortOrderInput | Prisma.SortOrder
isDeleted?: Prisma.SortOrder
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
sortIndex?: Prisma.SortOrderInput | Prisma.SortOrder
@@ -430,7 +421,6 @@ export type AssetWhereUniqueInput = Prisma.AtLeast<{
status?: Prisma.EnumAssetStatusFilter<"Asset"> | $Enums.AssetStatus
transcodeTaskId?: Prisma.StringNullableFilter<"Asset"> | string | null
media?: Prisma.JsonNullableFilter<"Asset">
autofillContext?: Prisma.StringNullableFilter<"Asset"> | string | null
isDeleted?: Prisma.BoolFilter<"Asset"> | boolean
deletedAt?: Prisma.DateTimeNullableFilter<"Asset"> | Date | string | null
sortIndex?: Prisma.StringNullableFilter<"Asset"> | string | null
@@ -474,7 +464,6 @@ export type AssetOrderByWithAggregationInput = {
status?: Prisma.SortOrder
transcodeTaskId?: Prisma.SortOrderInput | Prisma.SortOrder
media?: Prisma.SortOrderInput | Prisma.SortOrder
autofillContext?: Prisma.SortOrderInput | Prisma.SortOrder
isDeleted?: Prisma.SortOrder
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
sortIndex?: Prisma.SortOrderInput | Prisma.SortOrder
@@ -507,7 +496,6 @@ export type AssetScalarWhereWithAggregatesInput = {
status?: Prisma.EnumAssetStatusWithAggregatesFilter<"Asset"> | $Enums.AssetStatus
transcodeTaskId?: Prisma.StringNullableWithAggregatesFilter<"Asset"> | string | null
media?: Prisma.JsonNullableWithAggregatesFilter<"Asset">
autofillContext?: Prisma.StringNullableWithAggregatesFilter<"Asset"> | string | null
isDeleted?: Prisma.BoolWithAggregatesFilter<"Asset"> | boolean
deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Asset"> | Date | string | null
sortIndex?: Prisma.StringNullableWithAggregatesFilter<"Asset"> | string | null
@@ -532,7 +520,6 @@ export type AssetCreateInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -570,7 +557,6 @@ export type AssetUncheckedCreateInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -608,7 +594,6 @@ export type AssetUpdateInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -646,7 +631,6 @@ export type AssetUncheckedUpdateInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -684,7 +668,6 @@ export type AssetCreateManyInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -709,7 +692,6 @@ export type AssetUpdateManyMutationInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -728,7 +710,6 @@ export type AssetUncheckedUpdateManyInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -778,7 +759,6 @@ export type AssetCountOrderByAggregateInput = {
status?: Prisma.SortOrder
transcodeTaskId?: Prisma.SortOrder
media?: Prisma.SortOrder
autofillContext?: Prisma.SortOrder
isDeleted?: Prisma.SortOrder
deletedAt?: Prisma.SortOrder
sortIndex?: Prisma.SortOrder
@@ -806,7 +786,6 @@ export type AssetMaxOrderByAggregateInput = {
sizeByte?: Prisma.SortOrder
status?: Prisma.SortOrder
transcodeTaskId?: Prisma.SortOrder
autofillContext?: Prisma.SortOrder
isDeleted?: Prisma.SortOrder
deletedAt?: Prisma.SortOrder
sortIndex?: Prisma.SortOrder
@@ -829,7 +808,6 @@ export type AssetMinOrderByAggregateInput = {
sizeByte?: Prisma.SortOrder
status?: Prisma.SortOrder
transcodeTaskId?: Prisma.SortOrder
autofillContext?: Prisma.SortOrder
isDeleted?: Prisma.SortOrder
deletedAt?: Prisma.SortOrder
sortIndex?: Prisma.SortOrder
@@ -1340,7 +1318,6 @@ export type AssetCreateWithoutCreatorInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -1377,7 +1354,6 @@ export type AssetUncheckedCreateWithoutCreatorInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -1443,7 +1419,6 @@ export type AssetScalarWhereInput = {
status?: Prisma.EnumAssetStatusFilter<"Asset"> | $Enums.AssetStatus
transcodeTaskId?: Prisma.StringNullableFilter<"Asset"> | string | null
media?: Prisma.JsonNullableFilter<"Asset">
autofillContext?: Prisma.StringNullableFilter<"Asset"> | string | null
isDeleted?: Prisma.BoolFilter<"Asset"> | boolean
deletedAt?: Prisma.DateTimeNullableFilter<"Asset"> | Date | string | null
sortIndex?: Prisma.StringNullableFilter<"Asset"> | string | null
@@ -1468,7 +1443,6 @@ export type AssetCreateWithoutTeamRootFolderInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -1505,7 +1479,6 @@ export type AssetUncheckedCreateWithoutTeamRootFolderInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -1558,7 +1531,6 @@ export type AssetUpdateWithoutTeamRootFolderInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -1595,7 +1567,6 @@ export type AssetUncheckedUpdateWithoutTeamRootFolderInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -1632,7 +1603,6 @@ export type AssetCreateWithoutProjectRootFolderInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -1669,7 +1639,6 @@ export type AssetUncheckedCreateWithoutProjectRootFolderInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -1711,7 +1680,6 @@ export type AssetCreateWithoutProjectShareRootInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -1748,7 +1716,6 @@ export type AssetUncheckedCreateWithoutProjectShareRootInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -1790,7 +1757,6 @@ export type AssetCreateWithoutProjectInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -1827,7 +1793,6 @@ export type AssetUncheckedCreateWithoutProjectInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -1885,7 +1850,6 @@ export type AssetUpdateWithoutProjectRootFolderInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -1922,7 +1886,6 @@ export type AssetUncheckedUpdateWithoutProjectRootFolderInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -1970,7 +1933,6 @@ export type AssetUpdateWithoutProjectShareRootInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -2007,7 +1969,6 @@ export type AssetUncheckedUpdateWithoutProjectShareRootInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -2060,7 +2021,6 @@ export type AssetCreateWithoutShareLinkRootFolderInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -2097,7 +2057,6 @@ export type AssetUncheckedCreateWithoutShareLinkRootFolderInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -2150,7 +2109,6 @@ export type AssetUpdateWithoutShareLinkRootFolderInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -2187,7 +2145,6 @@ export type AssetUncheckedUpdateWithoutShareLinkRootFolderInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -2224,7 +2181,6 @@ export type AssetCreateWithoutWatermarkFilesInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -2261,7 +2217,6 @@ export type AssetUncheckedCreateWithoutWatermarkFilesInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -2314,7 +2269,6 @@ export type AssetUpdateWithoutWatermarkFilesInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -2351,7 +2305,6 @@ export type AssetUncheckedUpdateWithoutWatermarkFilesInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -2388,7 +2341,6 @@ export type AssetCreateWithoutChildrenInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -2425,7 +2377,6 @@ export type AssetUncheckedCreateWithoutChildrenInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -2467,7 +2418,6 @@ export type AssetCreateWithoutParentInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -2504,7 +2454,6 @@ export type AssetUncheckedCreateWithoutParentInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -2551,7 +2500,6 @@ export type AssetCreateWithoutSymlinksInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -2588,7 +2536,6 @@ export type AssetUncheckedCreateWithoutSymlinksInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -2630,7 +2577,6 @@ export type AssetCreateWithoutTargetInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -2667,7 +2613,6 @@ export type AssetUncheckedCreateWithoutTargetInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -2725,7 +2670,6 @@ export type AssetUpdateWithoutChildrenInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -2762,7 +2706,6 @@ export type AssetUncheckedUpdateWithoutChildrenInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -2826,7 +2769,6 @@ export type AssetUpdateWithoutSymlinksInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -2863,7 +2805,6 @@ export type AssetUncheckedUpdateWithoutSymlinksInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -2916,7 +2857,6 @@ export type AssetCreateWithoutStorageKeyInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -2953,7 +2893,6 @@ export type AssetUncheckedCreateWithoutStorageKeyInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -3016,7 +2955,6 @@ export type AssetCreateWithoutMetadataValuesInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -3053,7 +2991,6 @@ export type AssetUncheckedCreateWithoutMetadataValuesInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -3106,7 +3043,6 @@ export type AssetUpdateWithoutMetadataValuesInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -3143,7 +3079,6 @@ export type AssetUncheckedUpdateWithoutMetadataValuesInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -3180,7 +3115,6 @@ export type AssetCreateWithoutCommentsInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -3217,7 +3151,6 @@ export type AssetUncheckedCreateWithoutCommentsInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -3270,7 +3203,6 @@ export type AssetUpdateWithoutCommentsInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -3307,7 +3239,6 @@ export type AssetUncheckedUpdateWithoutCommentsInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -3344,7 +3275,6 @@ export type AssetCreateWithoutCommentAttachmentsInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -3381,7 +3311,6 @@ export type AssetUncheckedCreateWithoutCommentAttachmentsInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -3434,7 +3363,6 @@ export type AssetUpdateWithoutCommentAttachmentsInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -3471,7 +3399,6 @@ export type AssetUncheckedUpdateWithoutCommentAttachmentsInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -3508,7 +3435,6 @@ export type AssetCreateWithoutEmbeddingsInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -3545,7 +3471,6 @@ export type AssetUncheckedCreateWithoutEmbeddingsInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -3598,7 +3523,6 @@ export type AssetUpdateWithoutEmbeddingsInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -3635,7 +3559,6 @@ export type AssetUncheckedUpdateWithoutEmbeddingsInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -3672,7 +3595,6 @@ export type AssetCreateWithoutNotificationsInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -3709,7 +3631,6 @@ export type AssetUncheckedCreateWithoutNotificationsInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -3762,7 +3683,6 @@ export type AssetUpdateWithoutNotificationsInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -3799,7 +3719,6 @@ export type AssetUncheckedUpdateWithoutNotificationsInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -3836,7 +3755,6 @@ export type AssetCreateWithoutTaskInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -3873,7 +3791,6 @@ export type AssetUncheckedCreateWithoutTaskInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -3936,7 +3853,6 @@ export type AssetCreateWithoutAgentSessionsInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -3973,7 +3889,6 @@ export type AssetUncheckedCreateWithoutAgentSessionsInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -4026,7 +3941,6 @@ export type AssetUpdateWithoutAgentSessionsInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -4063,7 +3977,6 @@ export type AssetUncheckedUpdateWithoutAgentSessionsInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -4100,7 +4013,6 @@ export type AssetCreateManyCreatorInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -4124,7 +4036,6 @@ export type AssetUpdateWithoutCreatorInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -4161,7 +4072,6 @@ export type AssetUncheckedUpdateWithoutCreatorInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -4198,7 +4108,6 @@ export type AssetUncheckedUpdateManyWithoutCreatorInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -4222,7 +4131,6 @@ export type AssetCreateManyProjectInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -4246,7 +4154,6 @@ export type AssetUpdateWithoutProjectInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -4283,7 +4190,6 @@ export type AssetUncheckedUpdateWithoutProjectInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -4320,7 +4226,6 @@ export type AssetUncheckedUpdateManyWithoutProjectInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -4344,7 +4249,6 @@ export type AssetCreateManyParentInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -4368,7 +4272,6 @@ export type AssetCreateManyTargetInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -4392,7 +4295,6 @@ export type AssetUpdateWithoutParentInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -4429,7 +4331,6 @@ export type AssetUncheckedUpdateWithoutParentInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -4466,7 +4367,6 @@ export type AssetUncheckedUpdateManyWithoutParentInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -4490,7 +4390,6 @@ export type AssetUpdateWithoutTargetInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -4527,7 +4426,6 @@ export type AssetUncheckedUpdateWithoutTargetInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -4564,7 +4462,6 @@ export type AssetUncheckedUpdateManyWithoutTargetInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -4588,7 +4485,6 @@ export type AssetCreateManyStorageKeyInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -4612,7 +4508,6 @@ export type AssetUpdateWithoutStorageKeyInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -4649,7 +4544,6 @@ export type AssetUncheckedUpdateWithoutStorageKeyInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -4686,7 +4580,6 @@ export type AssetUncheckedUpdateManyWithoutStorageKeyInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -4710,7 +4603,6 @@ export type AssetCreateManyTaskInput = {
status: $Enums.AssetStatus
transcodeTaskId?: string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: string | null
isDeleted?: boolean
deletedAt?: Date | string | null
sortIndex?: string | null
@@ -4734,7 +4626,6 @@ export type AssetUpdateWithoutTaskInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -4771,7 +4662,6 @@ export type AssetUncheckedUpdateWithoutTaskInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -4808,7 +4698,6 @@ export type AssetUncheckedUpdateManyWithoutTaskInput = {
status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
autofillContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -4935,7 +4824,6 @@ export type AssetSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
status?: boolean
transcodeTaskId?: boolean
media?: boolean
autofillContext?: boolean
isDeleted?: boolean
deletedAt?: boolean
sortIndex?: boolean
@@ -4980,7 +4868,6 @@ export type AssetSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensi
status?: boolean
transcodeTaskId?: boolean
media?: boolean
autofillContext?: boolean
isDeleted?: boolean
deletedAt?: boolean
sortIndex?: boolean
@@ -5011,7 +4898,6 @@ export type AssetSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensi
status?: boolean
transcodeTaskId?: boolean
media?: boolean
autofillContext?: boolean
isDeleted?: boolean
deletedAt?: boolean
sortIndex?: boolean
@@ -5042,7 +4928,6 @@ export type AssetSelectScalar = {
status?: boolean
transcodeTaskId?: boolean
media?: boolean
autofillContext?: boolean
isDeleted?: boolean
deletedAt?: boolean
sortIndex?: boolean
@@ -5056,7 +4941,7 @@ export type AssetSelectScalar = {
projectId?: boolean
}
export type AssetOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "nameNgram" | "type" | "mediaType" | "fileCount" | "sizeByte" | "status" | "transcodeTaskId" | "media" | "autofillContext" | "isDeleted" | "deletedAt" | "sortIndex" | "createdAt" | "updatedAt" | "parentId" | "targetId" | "storageKeyId" | "creatorId" | "taskId" | "projectId", ExtArgs["result"]["asset"]>
export type AssetOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "nameNgram" | "type" | "mediaType" | "fileCount" | "sizeByte" | "status" | "transcodeTaskId" | "media" | "isDeleted" | "deletedAt" | "sortIndex" | "createdAt" | "updatedAt" | "parentId" | "targetId" | "storageKeyId" | "creatorId" | "taskId" | "projectId", ExtArgs["result"]["asset"]>
export type AssetInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
parent?: boolean | Prisma.Asset$parentArgs<ExtArgs>
children?: boolean | Prisma.Asset$childrenArgs<ExtArgs>
@@ -5133,7 +5018,6 @@ export type $AssetPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs
* [MediaInfo]
*/
media:PrismaJson.MediaInfo | null
autofillContext: string | null
isDeleted: boolean
deletedAt: Date | null
sortIndex: string | null
@@ -5597,7 +5481,6 @@ export interface AssetFieldRefs {
readonly status: Prisma.FieldRef<"Asset", 'AssetStatus'>
readonly transcodeTaskId: Prisma.FieldRef<"Asset", 'String'>
readonly media: Prisma.FieldRef<"Asset", 'Json'>
readonly autofillContext: Prisma.FieldRef<"Asset", 'String'>
readonly isDeleted: Prisma.FieldRef<"Asset", 'Boolean'>
readonly deletedAt: Prisma.FieldRef<"Asset", 'DateTime'>
readonly sortIndex: Prisma.FieldRef<"Asset", 'String'>
+1 -42
View File
@@ -31,7 +31,6 @@ export type MetadataFieldMinAggregateOutputType = {
key: string | null
scope: $Enums.MetadataFieldScope | null
readOnly: boolean | null
aiAutofill: boolean | null
description: string | null
teamId: string | null
projectId: string | null
@@ -42,7 +41,6 @@ export type MetadataFieldMaxAggregateOutputType = {
key: string | null
scope: $Enums.MetadataFieldScope | null
readOnly: boolean | null
aiAutofill: boolean | null
description: string | null
teamId: string | null
projectId: string | null
@@ -54,7 +52,6 @@ export type MetadataFieldCountAggregateOutputType = {
scope: number
config:PrismaJson.FieldConfig
readOnly: number
aiAutofill: number
description: number
teamId: number
projectId: number
@@ -67,7 +64,6 @@ export type MetadataFieldMinAggregateInputType = {
key?: true
scope?: true
readOnly?: true
aiAutofill?: true
description?: true
teamId?: true
projectId?: true
@@ -78,7 +74,6 @@ export type MetadataFieldMaxAggregateInputType = {
key?: true
scope?: true
readOnly?: true
aiAutofill?: true
description?: true
teamId?: true
projectId?: true
@@ -90,7 +85,6 @@ export type MetadataFieldCountAggregateInputType = {
scope?: true
config?: true
readOnly?: true
aiAutofill?: true
description?: true
teamId?: true
projectId?: true
@@ -175,7 +169,6 @@ export type MetadataFieldGroupByOutputType = {
scope: $Enums.MetadataFieldScope | null
config:PrismaJson.FieldConfig | null
readOnly: boolean
aiAutofill: boolean
description: string
teamId: string | null
projectId: string | null
@@ -208,7 +201,6 @@ export type MetadataFieldWhereInput = {
scope?: Prisma.EnumMetadataFieldScopeNullableFilter<"MetadataField"> | $Enums.MetadataFieldScope | null
config?: Prisma.JsonNullableFilter<"MetadataField">
readOnly?: Prisma.BoolFilter<"MetadataField"> | boolean
aiAutofill?: Prisma.BoolFilter<"MetadataField"> | boolean
description?: Prisma.StringFilter<"MetadataField"> | string
teamId?: Prisma.StringNullableFilter<"MetadataField"> | string | null
projectId?: Prisma.StringNullableFilter<"MetadataField"> | string | null
@@ -222,7 +214,6 @@ export type MetadataFieldOrderByWithRelationInput = {
scope?: Prisma.SortOrderInput | Prisma.SortOrder
config?: Prisma.SortOrderInput | Prisma.SortOrder
readOnly?: Prisma.SortOrder
aiAutofill?: Prisma.SortOrder
description?: Prisma.SortOrder
teamId?: Prisma.SortOrderInput | Prisma.SortOrder
projectId?: Prisma.SortOrderInput | Prisma.SortOrder
@@ -239,7 +230,6 @@ export type MetadataFieldWhereUniqueInput = Prisma.AtLeast<{
scope?: Prisma.EnumMetadataFieldScopeNullableFilter<"MetadataField"> | $Enums.MetadataFieldScope | null
config?: Prisma.JsonNullableFilter<"MetadataField">
readOnly?: Prisma.BoolFilter<"MetadataField"> | boolean
aiAutofill?: Prisma.BoolFilter<"MetadataField"> | boolean
description?: Prisma.StringFilter<"MetadataField"> | string
teamId?: Prisma.StringNullableFilter<"MetadataField"> | string | null
projectId?: Prisma.StringNullableFilter<"MetadataField"> | string | null
@@ -253,7 +243,6 @@ export type MetadataFieldOrderByWithAggregationInput = {
scope?: Prisma.SortOrderInput | Prisma.SortOrder
config?: Prisma.SortOrderInput | Prisma.SortOrder
readOnly?: Prisma.SortOrder
aiAutofill?: Prisma.SortOrder
description?: Prisma.SortOrder
teamId?: Prisma.SortOrderInput | Prisma.SortOrder
projectId?: Prisma.SortOrderInput | Prisma.SortOrder
@@ -271,7 +260,6 @@ export type MetadataFieldScalarWhereWithAggregatesInput = {
scope?: Prisma.EnumMetadataFieldScopeNullableWithAggregatesFilter<"MetadataField"> | $Enums.MetadataFieldScope | null
config?: Prisma.JsonNullableWithAggregatesFilter<"MetadataField">
readOnly?: Prisma.BoolWithAggregatesFilter<"MetadataField"> | boolean
aiAutofill?: Prisma.BoolWithAggregatesFilter<"MetadataField"> | boolean
description?: Prisma.StringWithAggregatesFilter<"MetadataField"> | string
teamId?: Prisma.StringNullableWithAggregatesFilter<"MetadataField"> | string | null
projectId?: Prisma.StringNullableWithAggregatesFilter<"MetadataField"> | string | null
@@ -283,7 +271,6 @@ export type MetadataFieldCreateInput = {
scope?: $Enums.MetadataFieldScope | null
config?:PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput
readOnly?: boolean
aiAutofill?: boolean
description?: string
team?: Prisma.TeamCreateNestedOneWithoutMetadataFieldsInput
project?: Prisma.ProjectCreateNestedOneWithoutMetadataFieldsInput
@@ -295,7 +282,6 @@ export type MetadataFieldUncheckedCreateInput = {
scope?: $Enums.MetadataFieldScope | null
config?:PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput
readOnly?: boolean
aiAutofill?: boolean
description?: string
teamId?: string | null
projectId?: string | null
@@ -307,7 +293,6 @@ export type MetadataFieldUpdateInput = {
scope?: Prisma.NullableEnumMetadataFieldScopeFieldUpdateOperationsInput | $Enums.MetadataFieldScope | null
config?:PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput
readOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean
aiAutofill?: Prisma.BoolFieldUpdateOperationsInput | boolean
description?: Prisma.StringFieldUpdateOperationsInput | string
team?: Prisma.TeamUpdateOneWithoutMetadataFieldsNestedInput
project?: Prisma.ProjectUpdateOneWithoutMetadataFieldsNestedInput
@@ -319,7 +304,6 @@ export type MetadataFieldUncheckedUpdateInput = {
scope?: Prisma.NullableEnumMetadataFieldScopeFieldUpdateOperationsInput | $Enums.MetadataFieldScope | null
config?:PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput
readOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean
aiAutofill?: Prisma.BoolFieldUpdateOperationsInput | boolean
description?: Prisma.StringFieldUpdateOperationsInput | string
teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -331,7 +315,6 @@ export type MetadataFieldCreateManyInput = {
scope?: $Enums.MetadataFieldScope | null
config?:PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput
readOnly?: boolean
aiAutofill?: boolean
description?: string
teamId?: string | null
projectId?: string | null
@@ -343,7 +326,6 @@ export type MetadataFieldUpdateManyMutationInput = {
scope?: Prisma.NullableEnumMetadataFieldScopeFieldUpdateOperationsInput | $Enums.MetadataFieldScope | null
config?:PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput
readOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean
aiAutofill?: Prisma.BoolFieldUpdateOperationsInput | boolean
description?: Prisma.StringFieldUpdateOperationsInput | string
}
@@ -353,7 +335,6 @@ export type MetadataFieldUncheckedUpdateManyInput = {
scope?: Prisma.NullableEnumMetadataFieldScopeFieldUpdateOperationsInput | $Enums.MetadataFieldScope | null
config?:PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput
readOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean
aiAutofill?: Prisma.BoolFieldUpdateOperationsInput | boolean
description?: Prisma.StringFieldUpdateOperationsInput | string
teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -375,7 +356,6 @@ export type MetadataFieldCountOrderByAggregateInput = {
scope?: Prisma.SortOrder
config?: Prisma.SortOrder
readOnly?: Prisma.SortOrder
aiAutofill?: Prisma.SortOrder
description?: Prisma.SortOrder
teamId?: Prisma.SortOrder
projectId?: Prisma.SortOrder
@@ -386,7 +366,6 @@ export type MetadataFieldMaxOrderByAggregateInput = {
key?: Prisma.SortOrder
scope?: Prisma.SortOrder
readOnly?: Prisma.SortOrder
aiAutofill?: Prisma.SortOrder
description?: Prisma.SortOrder
teamId?: Prisma.SortOrder
projectId?: Prisma.SortOrder
@@ -397,7 +376,6 @@ export type MetadataFieldMinOrderByAggregateInput = {
key?: Prisma.SortOrder
scope?: Prisma.SortOrder
readOnly?: Prisma.SortOrder
aiAutofill?: Prisma.SortOrder
description?: Prisma.SortOrder
teamId?: Prisma.SortOrder
projectId?: Prisma.SortOrder
@@ -497,7 +475,6 @@ export type MetadataFieldCreateWithoutTeamInput = {
scope?: $Enums.MetadataFieldScope | null
config?:PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput
readOnly?: boolean
aiAutofill?: boolean
description?: string
project?: Prisma.ProjectCreateNestedOneWithoutMetadataFieldsInput
}
@@ -508,7 +485,6 @@ export type MetadataFieldUncheckedCreateWithoutTeamInput = {
scope?: $Enums.MetadataFieldScope | null
config?:PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput
readOnly?: boolean
aiAutofill?: boolean
description?: string
projectId?: string | null
}
@@ -548,7 +524,6 @@ export type MetadataFieldScalarWhereInput = {
scope?: Prisma.EnumMetadataFieldScopeNullableFilter<"MetadataField"> | $Enums.MetadataFieldScope | null
config?: Prisma.JsonNullableFilter<"MetadataField">
readOnly?: Prisma.BoolFilter<"MetadataField"> | boolean
aiAutofill?: Prisma.BoolFilter<"MetadataField"> | boolean
description?: Prisma.StringFilter<"MetadataField"> | string
teamId?: Prisma.StringNullableFilter<"MetadataField"> | string | null
projectId?: Prisma.StringNullableFilter<"MetadataField"> | string | null
@@ -560,7 +535,6 @@ export type MetadataFieldCreateWithoutProjectInput = {
scope?: $Enums.MetadataFieldScope | null
config?:PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput
readOnly?: boolean
aiAutofill?: boolean
description?: string
team?: Prisma.TeamCreateNestedOneWithoutMetadataFieldsInput
}
@@ -571,7 +545,6 @@ export type MetadataFieldUncheckedCreateWithoutProjectInput = {
scope?: $Enums.MetadataFieldScope | null
config?:PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput
readOnly?: boolean
aiAutofill?: boolean
description?: string
teamId?: string | null
}
@@ -608,7 +581,6 @@ export type MetadataFieldCreateManyTeamInput = {
scope?: $Enums.MetadataFieldScope | null
config?:PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput
readOnly?: boolean
aiAutofill?: boolean
description?: string
projectId?: string | null
}
@@ -619,7 +591,6 @@ export type MetadataFieldUpdateWithoutTeamInput = {
scope?: Prisma.NullableEnumMetadataFieldScopeFieldUpdateOperationsInput | $Enums.MetadataFieldScope | null
config?:PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput
readOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean
aiAutofill?: Prisma.BoolFieldUpdateOperationsInput | boolean
description?: Prisma.StringFieldUpdateOperationsInput | string
project?: Prisma.ProjectUpdateOneWithoutMetadataFieldsNestedInput
}
@@ -630,7 +601,6 @@ export type MetadataFieldUncheckedUpdateWithoutTeamInput = {
scope?: Prisma.NullableEnumMetadataFieldScopeFieldUpdateOperationsInput | $Enums.MetadataFieldScope | null
config?:PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput
readOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean
aiAutofill?: Prisma.BoolFieldUpdateOperationsInput | boolean
description?: Prisma.StringFieldUpdateOperationsInput | string
projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
@@ -641,7 +611,6 @@ export type MetadataFieldUncheckedUpdateManyWithoutTeamInput = {
scope?: Prisma.NullableEnumMetadataFieldScopeFieldUpdateOperationsInput | $Enums.MetadataFieldScope | null
config?:PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput
readOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean
aiAutofill?: Prisma.BoolFieldUpdateOperationsInput | boolean
description?: Prisma.StringFieldUpdateOperationsInput | string
projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
@@ -652,7 +621,6 @@ export type MetadataFieldCreateManyProjectInput = {
scope?: $Enums.MetadataFieldScope | null
config?:PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput
readOnly?: boolean
aiAutofill?: boolean
description?: string
teamId?: string | null
}
@@ -663,7 +631,6 @@ export type MetadataFieldUpdateWithoutProjectInput = {
scope?: Prisma.NullableEnumMetadataFieldScopeFieldUpdateOperationsInput | $Enums.MetadataFieldScope | null
config?:PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput
readOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean
aiAutofill?: Prisma.BoolFieldUpdateOperationsInput | boolean
description?: Prisma.StringFieldUpdateOperationsInput | string
team?: Prisma.TeamUpdateOneWithoutMetadataFieldsNestedInput
}
@@ -674,7 +641,6 @@ export type MetadataFieldUncheckedUpdateWithoutProjectInput = {
scope?: Prisma.NullableEnumMetadataFieldScopeFieldUpdateOperationsInput | $Enums.MetadataFieldScope | null
config?:PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput
readOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean
aiAutofill?: Prisma.BoolFieldUpdateOperationsInput | boolean
description?: Prisma.StringFieldUpdateOperationsInput | string
teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
@@ -685,7 +651,6 @@ export type MetadataFieldUncheckedUpdateManyWithoutProjectInput = {
scope?: Prisma.NullableEnumMetadataFieldScopeFieldUpdateOperationsInput | $Enums.MetadataFieldScope | null
config?:PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput
readOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean
aiAutofill?: Prisma.BoolFieldUpdateOperationsInput | boolean
description?: Prisma.StringFieldUpdateOperationsInput | string
teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
@@ -698,7 +663,6 @@ export type MetadataFieldSelect<ExtArgs extends runtime.Types.Extensions.Interna
scope?: boolean
config?: boolean
readOnly?: boolean
aiAutofill?: boolean
description?: boolean
teamId?: boolean
projectId?: boolean
@@ -712,7 +676,6 @@ export type MetadataFieldSelectCreateManyAndReturn<ExtArgs extends runtime.Types
scope?: boolean
config?: boolean
readOnly?: boolean
aiAutofill?: boolean
description?: boolean
teamId?: boolean
projectId?: boolean
@@ -726,7 +689,6 @@ export type MetadataFieldSelectUpdateManyAndReturn<ExtArgs extends runtime.Types
scope?: boolean
config?: boolean
readOnly?: boolean
aiAutofill?: boolean
description?: boolean
teamId?: boolean
projectId?: boolean
@@ -740,13 +702,12 @@ export type MetadataFieldSelectScalar = {
scope?: boolean
config?: boolean
readOnly?: boolean
aiAutofill?: boolean
description?: boolean
teamId?: boolean
projectId?: boolean
}
export type MetadataFieldOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "key" | "scope" | "config" | "readOnly" | "aiAutofill" | "description" | "teamId" | "projectId", ExtArgs["result"]["metadataField"]>
export type MetadataFieldOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "key" | "scope" | "config" | "readOnly" | "description" | "teamId" | "projectId", ExtArgs["result"]["metadataField"]>
export type MetadataFieldInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
team?: boolean | Prisma.MetadataField$teamArgs<ExtArgs>
project?: boolean | Prisma.MetadataField$projectArgs<ExtArgs>
@@ -775,7 +736,6 @@ export type $MetadataFieldPayload<ExtArgs extends runtime.Types.Extensions.Inter
*/
config:PrismaJson.FieldConfig | null
readOnly: boolean
aiAutofill: boolean
description: string
teamId: string | null
projectId: string | null
@@ -1209,7 +1169,6 @@ export interface MetadataFieldFieldRefs {
readonly scope: Prisma.FieldRef<"MetadataField", 'MetadataFieldScope'>
readonly config: Prisma.FieldRef<"MetadataField", 'Json'>
readonly readOnly: Prisma.FieldRef<"MetadataField", 'Boolean'>
readonly aiAutofill: Prisma.FieldRef<"MetadataField", 'Boolean'>
readonly description: Prisma.FieldRef<"MetadataField", 'String'>
readonly teamId: Prisma.FieldRef<"MetadataField", 'String'>
readonly projectId: Prisma.FieldRef<"MetadataField", 'String'>
+1
View File
@@ -220,6 +220,7 @@ declare global {
export interface FieldConfig {
name: string
type: FieldType
autofillSource?: 'NONE' | 'CONTENT' | 'CREATION_CONTEXT'
text?: TextConfig
longText?: LongTextConfig
select?: SelectConfig
+9 -3
View File
@@ -18,6 +18,14 @@ export const FieldType = {
export type FieldType = (typeof FieldType)[keyof typeof FieldType]
export const AutofillSource = {
NONE: 'NONE',
CONTENT: 'CONTENT',
CREATION_CONTEXT: 'CREATION_CONTEXT',
} as const
export type AutofillSource = (typeof AutofillSource)[keyof typeof AutofillSource]
export const selectOptionSchema = z.object({
id: z.string(),
displayName: z.string(),
@@ -39,6 +47,7 @@ export const fieldConfigSchema = z.object({
'user',
'userMulti',
]),
autofillSource: z.nativeEnum(AutofillSource).optional(),
text: z.any().optional(),
longText: z.any().optional(),
select: z.any().optional(),
@@ -56,7 +65,6 @@ export const createFieldRequestSchema = z.object({
label: z.string().optional(),
scope: z.string().optional(),
config: fieldConfigSchema,
aiAutofill: z.boolean().default(false),
description: z.string().default(''),
})
export type CreateFieldRequest = z.infer<typeof createFieldRequestSchema>
@@ -64,7 +72,6 @@ export type CreateFieldRequest = z.infer<typeof createFieldRequestSchema>
export const updateFieldRequestSchema = z.object({
label: z.string().optional(),
config: fieldConfigSchema,
aiAutofill: z.boolean().optional(),
description: z.string().optional(),
})
export type UpdateFieldRequest = z.infer<typeof updateFieldRequestSchema>
@@ -93,6 +100,5 @@ export const fieldInfoSchema = z.object({
readOnly: z.boolean(),
visible: z.boolean(),
description: z.string(),
aiAutofill: z.boolean(),
})
export type FieldInfo = z.infer<typeof fieldInfoSchema>
+8 -22
View File
@@ -20,7 +20,6 @@ describe.each(['local', 'temporal'] as const)(
let agentWorkerPromise: Promise<void> | null = null
let transcodeWorkerPromise: Promise<void> | null = null
let lastAutofillPrompt = ''
beforeAll(async () => {
// Set bucket environment
@@ -36,11 +35,7 @@ describe.each(['local', 'temporal'] as const)(
// Spy on the harness prompt method to intercept the LLM call while running real activities & tools
vi.spyOn(AgentHarness.prototype, 'prompt').mockImplementation(async function (
this: AgentHarness,
...args: unknown[]
) {
// Capture the prompt to verify agent-provided context is propagated
lastAutofillPrompt = typeof args[0] === 'string' ? args[0] : ''
// Find the real autofill_metadata tool configured on the harness
const tools = this.getTools()
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Tool execution mock for E2E harness test
@@ -119,54 +114,50 @@ describe.each(['local', 'temporal'] as const)(
data: { name: 'E2E Test Project', teamId: team.id },
})
// Create Metadata Field (aiAutofill = true, text)
// Create Metadata Field (autofillSource = CONTENT, text)
await prisma.metadataField.create({
data: {
key: 'title',
scope: 'PROJECT',
projectId: project.id,
teamId: team.id,
config: { name: 'Title', type: 'text' },
aiAutofill: true,
config: { name: 'Title', type: 'text', autofillSource: 'CONTENT' },
description: 'Auto-extracted title',
},
})
// Create Metadata Field (aiAutofill = true, number)
// Create Metadata Field (autofillSource = CONTENT, number)
await prisma.metadataField.create({
data: {
key: 'confidence',
scope: 'PROJECT',
projectId: project.id,
teamId: team.id,
config: { name: 'Confidence', type: 'number' },
aiAutofill: true,
config: { name: 'Confidence', type: 'number', autofillSource: 'CONTENT' },
description: 'AI extraction confidence',
},
})
// Create Metadata Field (aiAutofill = true, boolean)
// Create Metadata Field (autofillSource = CONTENT, boolean)
await prisma.metadataField.create({
data: {
key: 'completed',
scope: 'PROJECT',
projectId: project.id,
teamId: team.id,
config: { name: 'Completed', type: 'toggle' },
aiAutofill: true,
config: { name: 'Completed', type: 'toggle', autofillSource: 'CONTENT' },
description: 'Completed flag',
},
})
// Create Metadata Field (aiAutofill = false, text)
// Create Metadata Field (autofillSource = NONE, text)
await prisma.metadataField.create({
data: {
key: 'manual_notes',
scope: 'PROJECT',
projectId: project.id,
teamId: team.id,
config: { name: 'Manual Notes', type: 'text' },
aiAutofill: false,
config: { name: 'Manual Notes', type: 'text', autofillSource: 'NONE' },
description: 'Manual notes (should not be auto-filled)',
},
})
@@ -244,7 +235,6 @@ describe.each(['local', 'temporal'] as const)(
mediaType: 'image/png',
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- partial MediaInfo mock for testing
media: { proxyType: 'image' } as any,
autofillContext: 'Generated using gemini',
projectId: project.id,
storageKeyId: storageKey.id,
},
@@ -284,10 +274,6 @@ describe.each(['local', 'temporal'] as const)(
// 5. Verification
expect(completedTask.status).toBe('completed')
// Verify the agent-provided autofill context was included in the LLM prompt
expect(lastAutofillPrompt).toContain('Generated using gemini')
expect(lastAutofillPrompt).toContain('<context>')
// Verify placeholder comment is updated correctly
const comments = await prisma.assetComment.findMany({
where: { assetId: asset.id },
@@ -0,0 +1,85 @@
import { useState } from 'react'
import { CircleHelp, Sparkles, Bot, Ban } from 'lucide-react'
import { m } from '@/ui/paraglide/messages.js'
import { Button } from '@/ui/components/ui/button'
import {
Dialog,
DialogContent,
DialogDescription,
DialogHeader,
DialogTitle,
DialogTrigger,
} from '@/ui/components/ui/dialog'
export function AutofillSourceHelpTrigger() {
const [open, setOpen] = useState(false)
return (
<Dialog open={open} onOpenChange={setOpen}>
<DialogTrigger asChild>
<Button
type="button"
variant="ghost"
size="icon"
className="h-4 w-4 p-0 hover:bg-transparent text-muted-foreground hover:text-foreground inline-flex items-center justify-center shrink-0 ml-1"
title={m.autofill_source_help_title()}
>
<CircleHelp className="h-3.5 w-3.5" />
<span className="sr-only">{m.autofill_source_help_title()}</span>
</Button>
</DialogTrigger>
<DialogContent className="sm:max-w-[500px]">
<DialogHeader>
<DialogTitle className="flex items-center gap-2">
<CircleHelp className="h-5 w-5 text-muted-foreground" />
{m.autofill_source_help_title()}
</DialogTitle>
<DialogDescription>{m.autofill_source_help_desc()}</DialogDescription>
</DialogHeader>
<div className="space-y-4 py-2">
{/* Option 1: None */}
<div className="rounded-lg border p-3.5 space-y-1.5 bg-muted/30">
<div className="flex items-center gap-2 font-medium text-sm">
<Ban className="h-4 w-4 text-muted-foreground shrink-0" />
<span>{m.autofill_source_none()}</span>
</div>
<p className="text-xs text-muted-foreground leading-relaxed">
{m.autofill_source_none_desc()}
</p>
<p className="text-xs italic text-muted-foreground/80">
{m.autofill_source_none_example()}
</p>
</div>
{/* Option 2: Content */}
<div className="rounded-lg border p-3.5 space-y-1.5 bg-muted/30">
<div className="flex items-center gap-2 font-medium text-sm">
<Sparkles className="h-4 w-4 text-amber-500 shrink-0" />
<span>{m.autofill_source_content()}</span>
</div>
<p className="text-xs text-muted-foreground leading-relaxed">
{m.autofill_source_content_desc()}
</p>
<p className="text-xs italic text-muted-foreground/80">
{m.autofill_source_content_example()}
</p>
</div>
{/* Option 3: Creation Context */}
<div className="rounded-lg border p-3.5 space-y-1.5 bg-muted/30">
<div className="flex items-center gap-2 font-medium text-sm">
<Bot className="h-4 w-4 text-blue-500 shrink-0" />
<span>{m.autofill_source_creation_context()}</span>
</div>
<p className="text-xs text-muted-foreground leading-relaxed">
{m.autofill_source_creation_context_desc()}
</p>
<p className="text-xs italic text-muted-foreground/80">
{m.autofill_source_creation_context_example()}
</p>
</div>
</div>
</DialogContent>
</Dialog>
)
}
+66 -27
View File
@@ -1,5 +1,6 @@
import {
FieldType,
AutofillSource,
type FieldInfo,
type FieldInfo as MetadataFieldInfo,
type SelectOption,
@@ -24,8 +25,32 @@ import { Popover, PopoverContent, PopoverTrigger } from '@/ui/components/ui/popo
import { Input } from '@/ui/components/ui/input'
import { Label } from '@/ui/components/ui/label'
import { Switch } from '@/ui/components/ui/switch'
import { ToggleGroup, ToggleGroupItem } from '@/ui/components/ui/toggle-group'
import { reorderFieldSubset } from '@/ui/lib/dnd-utils'
import { PointerActivationConstraints } from '@dnd-kit/dom'
import {
AlignLeft,
Calendar,
ChevronDown,
GripVertical,
Hash,
List,
Plus,
Search,
Settings,
Sparkles,
Bot,
Star,
Tags,
ToggleLeft,
Type,
X,
User,
Users,
} from 'lucide-react'
import { useMemo, useState, useEffect } from 'react'
import { AutofillSourceHelpTrigger } from '@/ui/components/autofill-source-help-dialog'
export const PREDEFINED_COLORS = ['red', 'orange', 'yellow', 'green', 'blue', 'purple', 'gray']
@@ -80,26 +105,6 @@ export function getRandomUnusedColor(existingOptions: SelectOption[] = []): stri
}
return PREDEFINED_COLORS[Math.floor(Math.random() * PREDEFINED_COLORS.length)]
}
import {
AlignLeft,
Calendar,
ChevronDown,
GripVertical,
Hash,
List,
Plus,
Search,
Settings,
Sparkles,
Star,
Tags,
ToggleLeft,
Type,
X,
User,
Users,
} from 'lucide-react'
import { useMemo, useState, useEffect } from 'react'
export const FIELD_TYPE_ICONS: Record<FieldType, React.ComponentType<{ className?: string }>> = {
[FieldType.text]: Type,
@@ -135,7 +140,12 @@ function SortableFieldItem({ field, index, onVisibilityChange }: SortableFieldIt
<GripVertical className="h-4 w-4 text-muted-foreground" />
</div>
{Icon && <Icon className="h-4 w-4 text-muted-foreground shrink-0" />}
{field.aiAutofill && <Sparkles className="h-4 w-4 text-muted-foreground shrink-0" />}
{field.config?.autofillSource === AutofillSource.CONTENT && (
<Sparkles className="h-4 w-4 text-muted-foreground shrink-0" />
)}
{field.config?.autofillSource === AutofillSource.CREATION_CONTEXT && (
<Bot className="h-4 w-4 text-muted-foreground shrink-0" />
)}
<span className="text-sm truncate">{field.config?.name}</span>
</div>
<Switch
@@ -158,7 +168,7 @@ export function FieldsManager({ projectId, onManageFields, onSave }: FieldsManag
const [view, setView] = useState<'list' | 'create'>('list')
const [newFieldName, setNewFieldName] = useState('')
const [newFieldType, setNewFieldType] = useState<FieldType | ''>('')
const [newAiAutofill, setNewAiAutofill] = useState(false)
const [newAutofillSource, setNewAutofillSource] = useState<AutofillSource>(AutofillSource.NONE)
const [newDescription, setNewDescription] = useState('')
const [newOptions, setNewOptions] = useState<SelectOption[]>([])
@@ -265,10 +275,10 @@ export function FieldsManager({ projectId, onManageFields, onSave }: FieldsManag
config: {
name: newFieldName,
type: newFieldType,
autofillSource: newAutofillSource,
...typeConfig,
},
label: newFieldName,
aiAutofill: newAiAutofill,
description: newDescription,
},
})
@@ -333,9 +343,38 @@ export function FieldsManager({ projectId, onManageFields, onSave }: FieldsManag
/>
</div>
<div className="flex items-center space-x-2">
<Switch id="ai-autofill" checked={newAiAutofill} onCheckedChange={setNewAiAutofill} />
<Label htmlFor="ai-autofill">{m.ai_autofill()}</Label>
<div className="space-y-2">
<div className="flex items-center gap-1">
<Label>{m.autofill_source()}</Label>
<AutofillSourceHelpTrigger />
</div>
<ToggleGroup
type="single"
value={newAutofillSource}
onValueChange={(val: string) => {
if (val) setNewAutofillSource(val as AutofillSource)
}}
className="w-full grid grid-cols-3 border rounded-md p-1 gap-1"
>
<ToggleGroupItem
value={AutofillSource.NONE}
className="text-[11px] leading-tight py-1 px-1 h-auto min-h-[32px] w-full text-center justify-center whitespace-normal font-medium"
>
{m.autofill_source_none()}
</ToggleGroupItem>
<ToggleGroupItem
value={AutofillSource.CONTENT}
className="text-[11px] leading-tight py-1 px-1 h-auto min-h-[32px] w-full text-center justify-center whitespace-normal font-medium"
>
{m.autofill_source_content()}
</ToggleGroupItem>
<ToggleGroupItem
value={AutofillSource.CREATION_CONTEXT}
className="text-[11px] leading-tight py-1 px-1 h-auto min-h-[32px] w-full text-center justify-center whitespace-normal font-medium"
>
{m.autofill_source_creation_context()}
</ToggleGroupItem>
</ToggleGroup>
</div>
{(newFieldType === FieldType.select || newFieldType === FieldType.selectMulti) && (
@@ -424,7 +463,7 @@ export function FieldsManager({ projectId, onManageFields, onSave }: FieldsManag
setView('list')
setNewFieldName('')
setNewFieldType('')
setNewAiAutofill(false)
setNewAutofillSource(AutofillSource.NONE)
setNewDescription('')
setNewOptions([])
}}
@@ -8,6 +8,7 @@ import { DragDropProvider, KeyboardSensor, PointerSensor, type DragEndEvent } fr
import { isSortable, useSortable } from '@dnd-kit/react/sortable'
import {
FieldType,
AutofillSource,
type FieldInfo,
type FieldInfo as MetadataFieldInfo,
type SelectOption,
@@ -22,6 +23,7 @@ import {
Plus,
Settings,
Sparkles,
Bot,
X,
} from 'lucide-react'
import { useEffect, useMemo, useState } from 'react'
@@ -44,8 +46,9 @@ import {
} from '@/ui/components/ui/dropdown-menu'
import { Input } from '@/ui/components/ui/input'
import { Label } from '@/ui/components/ui/label'
import { Switch } from '@/ui/components/ui/switch'
import { ToggleGroup, ToggleGroupItem } from '@/ui/components/ui/toggle-group'
import { cn } from '@/ui/lib/utils'
import { AutofillSourceHelpTrigger } from '@/ui/components/autofill-source-help-dialog'
type ManageFieldsDialogProps = {
projectId: string
@@ -111,7 +114,12 @@ function SortableFieldRow({
)}
{!isSortable && <div className="w-4" />} {/* Spacer */}
{Icon && <Icon className="h-4 w-4 text-muted-foreground shrink-0" />}
{field.aiAutofill && <Sparkles className="h-4 w-4 text-muted-foreground shrink-0" />}
{field.config?.autofillSource === AutofillSource.CONTENT && (
<Sparkles className="h-4 w-4 text-muted-foreground shrink-0" />
)}
{field.config?.autofillSource === AutofillSource.CREATION_CONTEXT && (
<Bot className="h-4 w-4 text-muted-foreground shrink-0" />
)}
<div className="flex-1 text-sm font-medium truncate">{field.config?.name}</div>
</div>
)
@@ -134,13 +142,13 @@ export function ManageFieldsDialog({ projectId, open, onOpenChange }: ManageFiel
const [editLabel, setEditLabel] = useState('')
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const [editConfig, setEditConfig] = useState<any>({})
const [editAiAutofill, setEditAiAutofill] = useState(false)
const [editAutofillSource, setEditAutofillSource] = useState<AutofillSource>(AutofillSource.NONE)
const [editDescription, setEditDescription] = useState('')
// Creator State
const [newName, setNewName] = useState('')
const [newType, setNewType] = useState<FieldType | ''>('')
const [newAiAutofill, setNewAiAutofill] = useState(false)
const [newAutofillSource, setNewAutofillSource] = useState<AutofillSource>(AutofillSource.NONE)
const [newDescription, setNewDescription] = useState('')
const [newOptions, setNewOptions] = useState<SelectOption[]>([])
@@ -251,12 +259,12 @@ export function ManageFieldsDialog({ projectId, open, onOpenChange }: ManageFiel
if (field) {
setEditLabel(field.config?.name || '') // Using name as label for now if label missing
setEditConfig(field.config || {})
setEditAiAutofill(field.aiAutofill || false)
setEditAutofillSource(field.config?.autofillSource ?? AutofillSource.NONE)
setEditDescription(field.description || '')
} else {
setEditLabel('')
setEditConfig({})
setEditAiAutofill(false)
setEditAutofillSource(AutofillSource.NONE)
setEditDescription('')
}
}
@@ -272,7 +280,7 @@ export function ManageFieldsDialog({ projectId, open, onOpenChange }: ManageFiel
setSelectedFieldId(null)
setNewName('')
setNewType('')
setNewAiAutofill(false)
setNewAutofillSource(AutofillSource.NONE)
setNewDescription('')
setNewOptions([])
}
@@ -312,11 +320,11 @@ export function ManageFieldsDialog({ projectId, open, onOpenChange }: ManageFiel
config: {
name: newName,
type: newType,
autofillSource: newAutofillSource,
...typeConfig,
},
label: newName,
scope: selectedGroup === SCOPE_GROUPS.PROJECT ? undefined : selectedGroup,
aiAutofill: newAiAutofill,
description: newDescription,
},
})
@@ -331,8 +339,8 @@ export function ManageFieldsDialog({ projectId, open, onOpenChange }: ManageFiel
...selectedField.config,
...editConfig,
name: editLabel,
autofillSource: editAutofillSource,
},
aiAutofill: editAiAutofill,
description: editDescription,
},
})
@@ -396,9 +404,38 @@ export function ManageFieldsDialog({ projectId, open, onOpenChange }: ManageFiel
placeholder={m.description_optional_placeholder()}
/>
</div>
<div className="flex items-center space-x-2">
<Switch checked={newAiAutofill} onCheckedChange={setNewAiAutofill} />
<Label>{m.ai_autofill()}</Label>
<div className="space-y-2">
<div className="flex items-center gap-1">
<Label>{m.autofill_source()}</Label>
<AutofillSourceHelpTrigger />
</div>
<ToggleGroup
type="single"
value={newAutofillSource}
onValueChange={(val: string) => {
if (val) setNewAutofillSource(val as AutofillSource)
}}
className="w-full grid grid-cols-3 border rounded-md p-1 gap-1"
>
<ToggleGroupItem
value={AutofillSource.NONE}
className="text-[11px] leading-tight py-1 px-1 h-auto min-h-[32px] w-full text-center justify-center whitespace-normal font-medium"
>
{m.autofill_source_none()}
</ToggleGroupItem>
<ToggleGroupItem
value={AutofillSource.CONTENT}
className="text-[11px] leading-tight py-1 px-1 h-auto min-h-[32px] w-full text-center justify-center whitespace-normal font-medium"
>
{m.autofill_source_content()}
</ToggleGroupItem>
<ToggleGroupItem
value={AutofillSource.CREATION_CONTEXT}
className="text-[11px] leading-tight py-1 px-1 h-auto min-h-[32px] w-full text-center justify-center whitespace-normal font-medium"
>
{m.autofill_source_creation_context()}
</ToggleGroupItem>
</ToggleGroup>
</div>
{(newType === FieldType.select || newType === FieldType.selectMulti) && (
@@ -518,13 +555,42 @@ export function ManageFieldsDialog({ projectId, open, onOpenChange }: ManageFiel
/>
</div>
<div className="flex items-center space-x-2">
<Switch
checked={editAiAutofill}
onCheckedChange={setEditAiAutofill}
<div className="space-y-2">
<div className="flex items-center gap-1">
<Label>{m.autofill_source()}</Label>
<AutofillSourceHelpTrigger />
</div>
<ToggleGroup
type="single"
value={isCreating ? newAutofillSource : editAutofillSource}
onValueChange={(val) => {
if (val) {
if (isCreating) setNewAutofillSource(val as AutofillSource)
else setEditAutofillSource(val as AutofillSource)
}
}}
disabled={isReadOnly}
/>
<Label>{m.ai_autofill()}</Label>
className="w-full grid grid-cols-3 border rounded-md p-1 gap-1"
>
<ToggleGroupItem
value={AutofillSource.NONE}
className="text-[11px] leading-tight py-1 px-1 h-auto min-h-[32px] w-full text-center justify-center whitespace-normal font-medium"
>
{m.autofill_source_none()}
</ToggleGroupItem>
<ToggleGroupItem
value={AutofillSource.CONTENT}
className="text-[11px] leading-tight py-1 px-1 h-auto min-h-[32px] w-full text-center justify-center whitespace-normal font-medium"
>
{m.autofill_source_content()}
</ToggleGroupItem>
<ToggleGroupItem
value={AutofillSource.CREATION_CONTEXT}
className="text-[11px] leading-tight py-1 px-1 h-auto min-h-[32px] w-full text-center justify-center whitespace-normal font-medium"
>
{m.autofill_source_creation_context()}
</ToggleGroupItem>
</ToggleGroup>
</div>
{/* TODO: Add specific option editors here */}
+12 -1
View File
@@ -701,7 +701,18 @@
"field_type": "Field Type",
"select_field_type": "Select field type",
"description_optional_placeholder": "Optional, used for AI autofill",
"ai_autofill": "AI Autofill",
"autofill_source": "Autofill Source",
"autofill_source_none": "None",
"autofill_source_content": "Content",
"autofill_source_creation_context": "Creation Context",
"autofill_source_help_title": "Autofill Source Guide",
"autofill_source_help_desc": "Understand how each autofill source option works and when to use it.",
"autofill_source_none_desc": "Metadata fields marked as 'None' will not be automatically populated by AI. They are meant for manual user entry.",
"autofill_source_none_example": "Example: Internal tags, manual notes, status tracking flags.",
"autofill_source_content_desc": "Fields marked as 'Content' are automatically analyzed and extracted from the asset's visual or textual content after upload. Note: A team owner must first create and enable an Autofill Agent in team settings for content extraction to run.",
"autofill_source_content_example": "Example: Image subject category, visual color palette, document summary, auto-detected language.",
"autofill_source_creation_context_desc": "Fields marked as 'Creation Context' capture details available at creation time (such as generation prompt, model, or provider). If an asset is created by a Shumai AI Agent, the agent will automatically populate these fields upon creation (without needing an Autofill Agent enabled). If uploaded manually by a human user, the user must enter these values manually.",
"autofill_source_creation_context_example": "Example: Generation prompt, AI model name, LLM provider, sampler seed parameters.",
"select_field_to_edit": "Select a field to edit options",
"type_label": "Type:",
"options": "Options",
+12 -1
View File
@@ -701,7 +701,18 @@
"field_type": "字段类型",
"select_field_type": "选择字段类型",
"description_optional_placeholder": "可选,用于 AI 自动填充",
"ai_autofill": "AI 自动填充",
"autofill_source": "自动填充来源",
"autofill_source_none": "无",
"autofill_source_content": "文件内容",
"autofill_source_creation_context": "创建上下文",
"autofill_source_help_title": "自动填充来源说明",
"autofill_source_help_desc": "了解每种自动填充来源的工作方式及适用场景。",
"autofill_source_none_desc": "设置为“无”的字段不会由 AI 自动填充,需由用户手动填写。",
"autofill_source_none_example": "示例:内部标签、手动备注、状态标记。",
"autofill_source_content_desc": "设置为“文件内容”的字段将在文件上传后,由 AI 自动分析并从文件的视觉或文本内容中提取填写。注意:需要团队 Owner 先在设置中创建并启用“Autofill Agent”(自动填充 Agent),上传后才会触发内容提取。",
"autofill_source_content_example": "示例:图片类别、主色调、文档摘要、自动识别语言。",
"autofill_source_creation_context_desc": "设置为“创建上下文”的字段用于记录生成资产时的上下文信息(如 Prompt、模型或供应商)。若文件由 Shumai AI Agent 生成/创建,Agent 会在创建时刻自动填入这些字段(无需启用 Autofill Agent);若由真实用户手动上传,则需用户手动填写,不会自动提取。",
"autofill_source_creation_context_example": "示例:生成 Prompt、AI 模型名称、LLM 供应商、采样种子参数。",
"select_field_to_edit": "选择一个字段以编辑选项",
"type_label": "类型:",
"options": "选项",
+12 -1
View File
@@ -662,7 +662,18 @@ export * from "./field_name_placeholder.js";
export * from "./field_type.js";
export * from "./select_field_type.js";
export * from "./description_optional_placeholder.js";
export * from "./ai_autofill.js";
export * from "./autofill_source.js";
export * from "./autofill_source_none.js";
export * from "./autofill_source_content.js";
export * from "./autofill_source_creation_context.js";
export * from "./autofill_source_help_title.js";
export * from "./autofill_source_help_desc.js";
export * from "./autofill_source_none_desc.js";
export * from "./autofill_source_none_example.js";
export * from "./autofill_source_content_desc.js";
export * from "./autofill_source_content_example.js";
export * from "./autofill_source_creation_context_desc.js";
export * from "./autofill_source_creation_context_example.js";
export * from "./select_field_to_edit.js";
export * from "./type_label.js";
export * from "./options.js";
+12 -1
View File
@@ -664,7 +664,18 @@ export * from './field_name_placeholder.js'
export * from './field_type.js'
export * from './select_field_type.js'
export * from './description_optional_placeholder.js'
export * from './ai_autofill.js'
export * from './autofill_source.js'
export * from './autofill_source_none.js'
export * from './autofill_source_content.js'
export * from './autofill_source_creation_context.js'
export * from './autofill_source_help_title.js'
export * from './autofill_source_help_desc.js'
export * from './autofill_source_none_desc.js'
export * from './autofill_source_none_example.js'
export * from './autofill_source_content_desc.js'
export * from './autofill_source_content_example.js'
export * from './autofill_source_creation_context_desc.js'
export * from './autofill_source_creation_context_example.js'
export * from './select_field_to_edit.js'
export * from './type_label.js'
export * from './options.js'
-29
View File
@@ -1,29 +0,0 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Ai_AutofillInputs */
const en_ai_autofill = /** @type {(inputs: Ai_AutofillInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`AI Autofill`)
};
const zh_ai_autofill = /** @type {(inputs: Ai_AutofillInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`AI 自动填充`)
};
/**
* | output |
* | --- |
* | "AI Autofill" |
*
* @param {Ai_AutofillInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const ai_autofill = /** @type {((inputs?: Ai_AutofillInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Ai_AutofillInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_ai_autofill(inputs)
return zh_ai_autofill(inputs)
});
@@ -1,16 +1,16 @@
/**
* | output |
* | --- |
* | "AI Autofill" |
* | "Autofill Source" |
*
* @param {Ai_AutofillInputs} inputs
* @param {Autofill_SourceInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const ai_autofill: ((inputs?: Ai_AutofillInputs, options?: {
export const autofill_source: ((inputs?: Autofill_SourceInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Ai_AutofillInputs, {
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Autofill_SourceInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Ai_AutofillInputs = {};
export type Autofill_SourceInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Autofill_SourceInputs */
const en_autofill_source = /** @type {(inputs: Autofill_SourceInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Autofill Source`)
};
const zh_autofill_source = /** @type {(inputs: Autofill_SourceInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`自动填充来源`)
};
/**
* | output |
* | --- |
* | "Autofill Source" |
*
* @param {Autofill_SourceInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source = /** @type {((inputs?: Autofill_SourceInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Autofill_SourceInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_autofill_source(inputs)
return zh_autofill_source(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Content" |
*
* @param {Autofill_Source_ContentInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_content: ((inputs?: Autofill_Source_ContentInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Autofill_Source_ContentInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Autofill_Source_ContentInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Autofill_Source_ContentInputs */
const en_autofill_source_content = /** @type {(inputs: Autofill_Source_ContentInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Content`)
};
const zh_autofill_source_content = /** @type {(inputs: Autofill_Source_ContentInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`文件内容`)
};
/**
* | output |
* | --- |
* | "Content" |
*
* @param {Autofill_Source_ContentInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_content = /** @type {((inputs?: Autofill_Source_ContentInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Autofill_Source_ContentInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_autofill_source_content(inputs)
return zh_autofill_source_content(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Fields marked as 'Content' are automatically analyzed and extracted from the asset's visual or textual content after upload. Note: A team owner must first cr..." |
*
* @param {Autofill_Source_Content_DescInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_content_desc: ((inputs?: Autofill_Source_Content_DescInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Autofill_Source_Content_DescInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Autofill_Source_Content_DescInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Autofill_Source_Content_DescInputs */
const en_autofill_source_content_desc = /** @type {(inputs: Autofill_Source_Content_DescInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Fields marked as 'Content' are automatically analyzed and extracted from the asset's visual or textual content after upload. Note: A team owner must first create and enable an Autofill Agent in team settings for content extraction to run.`)
};
const zh_autofill_source_content_desc = /** @type {(inputs: Autofill_Source_Content_DescInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`设置为“文件内容”的字段将在文件上传后,由 AI 自动分析并从文件的视觉或文本内容中提取填写。注意:需要团队 Owner 先在设置中创建并启用“Autofill Agent”(自动填充 Agent),上传后才会触发内容提取。`)
};
/**
* | output |
* | --- |
* | "Fields marked as 'Content' are automatically analyzed and extracted from the asset's visual or textual content after upload. Note: A team owner must first cr..." |
*
* @param {Autofill_Source_Content_DescInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_content_desc = /** @type {((inputs?: Autofill_Source_Content_DescInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Autofill_Source_Content_DescInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_autofill_source_content_desc(inputs)
return zh_autofill_source_content_desc(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Example: Image subject category, visual color palette, document summary, auto-detected language." |
*
* @param {Autofill_Source_Content_ExampleInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_content_example: ((inputs?: Autofill_Source_Content_ExampleInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Autofill_Source_Content_ExampleInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Autofill_Source_Content_ExampleInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Autofill_Source_Content_ExampleInputs */
const en_autofill_source_content_example = /** @type {(inputs: Autofill_Source_Content_ExampleInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Example: Image subject category, visual color palette, document summary, auto-detected language.`)
};
const zh_autofill_source_content_example = /** @type {(inputs: Autofill_Source_Content_ExampleInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`示例:图片类别、主色调、文档摘要、自动识别语言。`)
};
/**
* | output |
* | --- |
* | "Example: Image subject category, visual color palette, document summary, auto-detected language." |
*
* @param {Autofill_Source_Content_ExampleInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_content_example = /** @type {((inputs?: Autofill_Source_Content_ExampleInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Autofill_Source_Content_ExampleInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_autofill_source_content_example(inputs)
return zh_autofill_source_content_example(inputs)
});
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Creation Context" |
*
* @param {Autofill_Source_Creation_ContextInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_creation_context: ((inputs?: Autofill_Source_Creation_ContextInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Autofill_Source_Creation_ContextInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Autofill_Source_Creation_ContextInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Autofill_Source_Creation_ContextInputs */
const en_autofill_source_creation_context = /** @type {(inputs: Autofill_Source_Creation_ContextInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Creation Context`)
};
const zh_autofill_source_creation_context = /** @type {(inputs: Autofill_Source_Creation_ContextInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`创建上下文`)
};
/**
* | output |
* | --- |
* | "Creation Context" |
*
* @param {Autofill_Source_Creation_ContextInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_creation_context = /** @type {((inputs?: Autofill_Source_Creation_ContextInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Autofill_Source_Creation_ContextInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_autofill_source_creation_context(inputs)
return zh_autofill_source_creation_context(inputs)
});
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Fields marked as 'Creation Context' capture details available at creation time (such as generation prompt, model, or provider). If an asset is created by a S..." |
*
* @param {Autofill_Source_Creation_Context_DescInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_creation_context_desc: ((inputs?: Autofill_Source_Creation_Context_DescInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Autofill_Source_Creation_Context_DescInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Autofill_Source_Creation_Context_DescInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Autofill_Source_Creation_Context_DescInputs */
const en_autofill_source_creation_context_desc = /** @type {(inputs: Autofill_Source_Creation_Context_DescInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Fields marked as 'Creation Context' capture details available at creation time (such as generation prompt, model, or provider). If an asset is created by a Shumai AI Agent, the agent will automatically populate these fields upon creation (without needing an Autofill Agent enabled). If uploaded manually by a human user, the user must enter these values manually.`)
};
const zh_autofill_source_creation_context_desc = /** @type {(inputs: Autofill_Source_Creation_Context_DescInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`设置为“创建上下文”的字段用于记录生成资产时的上下文信息(如 Prompt、模型或供应商)。若文件由 Shumai AI Agent 生成/创建,Agent 会在创建时刻自动填入这些字段(无需启用 Autofill Agent);若由真实用户手动上传,则需用户手动填写,不会自动提取。`)
};
/**
* | output |
* | --- |
* | "Fields marked as 'Creation Context' capture details available at creation time (such as generation prompt, model, or provider). If an asset is created by a S..." |
*
* @param {Autofill_Source_Creation_Context_DescInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_creation_context_desc = /** @type {((inputs?: Autofill_Source_Creation_Context_DescInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Autofill_Source_Creation_Context_DescInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_autofill_source_creation_context_desc(inputs)
return zh_autofill_source_creation_context_desc(inputs)
});
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Example: Generation prompt, AI model name, LLM provider, sampler seed parameters." |
*
* @param {Autofill_Source_Creation_Context_ExampleInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_creation_context_example: ((inputs?: Autofill_Source_Creation_Context_ExampleInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Autofill_Source_Creation_Context_ExampleInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Autofill_Source_Creation_Context_ExampleInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Autofill_Source_Creation_Context_ExampleInputs */
const en_autofill_source_creation_context_example = /** @type {(inputs: Autofill_Source_Creation_Context_ExampleInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Example: Generation prompt, AI model name, LLM provider, sampler seed parameters.`)
};
const zh_autofill_source_creation_context_example = /** @type {(inputs: Autofill_Source_Creation_Context_ExampleInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`示例:生成 Prompt、AI 模型名称、LLM 供应商、采样种子参数。`)
};
/**
* | output |
* | --- |
* | "Example: Generation prompt, AI model name, LLM provider, sampler seed parameters." |
*
* @param {Autofill_Source_Creation_Context_ExampleInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_creation_context_example = /** @type {((inputs?: Autofill_Source_Creation_Context_ExampleInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Autofill_Source_Creation_Context_ExampleInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_autofill_source_creation_context_example(inputs)
return zh_autofill_source_creation_context_example(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Understand how each autofill source option works and when to use it." |
*
* @param {Autofill_Source_Help_DescInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_help_desc: ((inputs?: Autofill_Source_Help_DescInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Autofill_Source_Help_DescInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Autofill_Source_Help_DescInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Autofill_Source_Help_DescInputs */
const en_autofill_source_help_desc = /** @type {(inputs: Autofill_Source_Help_DescInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Understand how each autofill source option works and when to use it.`)
};
const zh_autofill_source_help_desc = /** @type {(inputs: Autofill_Source_Help_DescInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`了解每种自动填充来源的工作方式及适用场景。`)
};
/**
* | output |
* | --- |
* | "Understand how each autofill source option works and when to use it." |
*
* @param {Autofill_Source_Help_DescInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_help_desc = /** @type {((inputs?: Autofill_Source_Help_DescInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Autofill_Source_Help_DescInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_autofill_source_help_desc(inputs)
return zh_autofill_source_help_desc(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Autofill Source Guide" |
*
* @param {Autofill_Source_Help_TitleInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_help_title: ((inputs?: Autofill_Source_Help_TitleInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Autofill_Source_Help_TitleInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Autofill_Source_Help_TitleInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Autofill_Source_Help_TitleInputs */
const en_autofill_source_help_title = /** @type {(inputs: Autofill_Source_Help_TitleInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Autofill Source Guide`)
};
const zh_autofill_source_help_title = /** @type {(inputs: Autofill_Source_Help_TitleInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`自动填充来源说明`)
};
/**
* | output |
* | --- |
* | "Autofill Source Guide" |
*
* @param {Autofill_Source_Help_TitleInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_help_title = /** @type {((inputs?: Autofill_Source_Help_TitleInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Autofill_Source_Help_TitleInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_autofill_source_help_title(inputs)
return zh_autofill_source_help_title(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "None" |
*
* @param {Autofill_Source_NoneInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_none: ((inputs?: Autofill_Source_NoneInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Autofill_Source_NoneInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Autofill_Source_NoneInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Autofill_Source_NoneInputs */
const en_autofill_source_none = /** @type {(inputs: Autofill_Source_NoneInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`None`)
};
const zh_autofill_source_none = /** @type {(inputs: Autofill_Source_NoneInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`无`)
};
/**
* | output |
* | --- |
* | "None" |
*
* @param {Autofill_Source_NoneInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_none = /** @type {((inputs?: Autofill_Source_NoneInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Autofill_Source_NoneInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_autofill_source_none(inputs)
return zh_autofill_source_none(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Metadata fields marked as 'None' will not be automatically populated by AI. They are meant for manual user entry." |
*
* @param {Autofill_Source_None_DescInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_none_desc: ((inputs?: Autofill_Source_None_DescInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Autofill_Source_None_DescInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Autofill_Source_None_DescInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Autofill_Source_None_DescInputs */
const en_autofill_source_none_desc = /** @type {(inputs: Autofill_Source_None_DescInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Metadata fields marked as 'None' will not be automatically populated by AI. They are meant for manual user entry.`)
};
const zh_autofill_source_none_desc = /** @type {(inputs: Autofill_Source_None_DescInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`设置为“无”的字段不会由 AI 自动填充,需由用户手动填写。`)
};
/**
* | output |
* | --- |
* | "Metadata fields marked as 'None' will not be automatically populated by AI. They are meant for manual user entry." |
*
* @param {Autofill_Source_None_DescInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_none_desc = /** @type {((inputs?: Autofill_Source_None_DescInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Autofill_Source_None_DescInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_autofill_source_none_desc(inputs)
return zh_autofill_source_none_desc(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Example: Internal tags, manual notes, status tracking flags." |
*
* @param {Autofill_Source_None_ExampleInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_none_example: ((inputs?: Autofill_Source_None_ExampleInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Autofill_Source_None_ExampleInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Autofill_Source_None_ExampleInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Autofill_Source_None_ExampleInputs */
const en_autofill_source_none_example = /** @type {(inputs: Autofill_Source_None_ExampleInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Example: Internal tags, manual notes, status tracking flags.`)
};
const zh_autofill_source_none_example = /** @type {(inputs: Autofill_Source_None_ExampleInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`示例:内部标签、手动备注、状态标记。`)
};
/**
* | output |
* | --- |
* | "Example: Internal tags, manual notes, status tracking flags." |
*
* @param {Autofill_Source_None_ExampleInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_none_example = /** @type {((inputs?: Autofill_Source_None_ExampleInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Autofill_Source_None_ExampleInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_autofill_source_none_example(inputs)
return zh_autofill_source_none_example(inputs)
});