Documentation about the Nivo webhook events
export interface UploadCreatedWebhookEvent {
trigger: 'upload.created',
payload: {
id: string;
title: string;
description: string | null;
duration: number;
collectionId: string;
folderId?: string | null;
externalId?: string | null;
streamUrl?: string | null;
tags: string[];
metadata?: Record<string, string> | null;
}
}
export interface UploadUpdatedWebhookEvent {
trigger: 'upload.updated',
payload: {
id: string;
title: string;
description: string | null;
duration: number;
collectionId: string;
folderId?: string | null;
externalId?: string | null;
streamUrl?: string | null;
tags: string[];
metadata?: Record<string, string> | null;
}
}
export interface UploadDeletedWebhookEvent {
trigger: 'upload.deleted',
payload: {
id: string;
collectionId: string;
metadata?: Record<string, string> | null;
}
}
export interface UploadTranscriptionCreatedWebhookEvent {
trigger: 'upload.transcription.created',
payload: {
id: string;
uploadId: string;
collectionId: string;
metadata: Record<string, string> | null;
text: string;
segments: {
text: string;
timestamp: [number, number];
}[];
metadata?: Record<string, string> | null;
}
}
export interface TagCreatedWebhookEvent {
trigger: 'tag.created',
payload: {
slug: string;
}
}
export interface TagDeletedWebhookEvent {
trigger: 'tag.deleted',
payload: {
slug: string;
}
}