mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
fix(fireflies): correct types from live API validation (#3450)
* fix(fireflies): correct types from live API validation - speakers.id is number, not string (API returns 0, 1, 2...) - summary.action_items is a single string, not string[] - Update formatTranscriptContent to handle action_items as string Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix(fireflies): correct tool types from live API validation - FirefliesSpeaker.id: string -> number - FirefliesSentence.speaker_id: string -> number - FirefliesSpeakerAnalytics.speaker_id: string -> number - FirefliesSummary.action_items: string[] -> string - FirefliesSummary.outline: string[] -> string - FirefliesSummary.shorthand_bullet: string[] -> string - FirefliesSummary.bullet_gist: string[] -> string - FirefliesSummary.topics_discussed: string[] -> string Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -18,11 +18,11 @@ interface FirefliesTranscript {
|
||||
organizer_email?: string
|
||||
participants?: string[]
|
||||
transcript_url?: string
|
||||
speakers?: { id: string; name: string }[]
|
||||
speakers?: { id: number; name: string }[]
|
||||
sentences?: { index: number; speaker_name: string; text: string }[]
|
||||
summary?: {
|
||||
keywords?: string[]
|
||||
action_items?: string[]
|
||||
action_items?: string
|
||||
overview?: string
|
||||
short_summary?: string
|
||||
}
|
||||
@@ -97,12 +97,10 @@ function formatTranscriptContent(transcript: FirefliesTranscript): string {
|
||||
parts.push(transcript.summary.overview)
|
||||
}
|
||||
|
||||
if (transcript.summary?.action_items && transcript.summary.action_items.length > 0) {
|
||||
if (transcript.summary?.action_items) {
|
||||
parts.push('')
|
||||
parts.push('--- Action Items ---')
|
||||
for (const item of transcript.summary.action_items) {
|
||||
parts.push(`- ${item}`)
|
||||
}
|
||||
parts.push(transcript.summary.action_items)
|
||||
}
|
||||
|
||||
if (transcript.summary?.keywords && transcript.summary.keywords.length > 0) {
|
||||
|
||||
@@ -22,7 +22,7 @@ export interface FirefliesTranscript {
|
||||
}
|
||||
|
||||
export interface FirefliesSpeaker {
|
||||
id: string
|
||||
id: number
|
||||
name: string
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ export interface FirefliesAttendee {
|
||||
export interface FirefliesSentence {
|
||||
index: number
|
||||
speaker_name?: string
|
||||
speaker_id?: string
|
||||
speaker_id?: number
|
||||
text: string
|
||||
raw_text?: string
|
||||
start_time: number
|
||||
@@ -55,16 +55,16 @@ export interface FirefliesSentence {
|
||||
|
||||
export interface FirefliesSummary {
|
||||
keywords?: string[]
|
||||
action_items?: string[]
|
||||
outline?: string[]
|
||||
shorthand_bullet?: string[]
|
||||
action_items?: string
|
||||
outline?: string
|
||||
shorthand_bullet?: string
|
||||
overview?: string
|
||||
bullet_gist?: string[]
|
||||
bullet_gist?: string
|
||||
gist?: string
|
||||
short_summary?: string
|
||||
short_overview?: string
|
||||
meeting_type?: string
|
||||
topics_discussed?: string[]
|
||||
topics_discussed?: string
|
||||
transcript_chapters?: Array<{
|
||||
title?: string
|
||||
start_time?: number
|
||||
@@ -88,7 +88,7 @@ export interface FirefliesAnalytics {
|
||||
}
|
||||
|
||||
export interface FirefliesSpeakerAnalytics {
|
||||
speaker_id?: string
|
||||
speaker_id?: number
|
||||
name?: string
|
||||
duration?: number
|
||||
word_count?: number
|
||||
|
||||
Reference in New Issue
Block a user