diff --git a/connectors/src/connectors/intercom/temporal/sync_conversation.ts b/connectors/src/connectors/intercom/temporal/sync_conversation.ts index 56b00b70447a0..93c245ed4ae9d 100644 --- a/connectors/src/connectors/intercom/temporal/sync_conversation.ts +++ b/connectors/src/connectors/intercom/temporal/sync_conversation.ts @@ -1,4 +1,5 @@ import type { ModelId } from "@dust-tt/types"; +import { INTERCOM_MIME_TYPES } from "@dust-tt/types"; import TurndownService from "turndown"; import { getIntercomAccessToken } from "@connectors/connectors/intercom/lib/intercom_access_token"; @@ -331,7 +332,7 @@ export async function syncConversation({ sync_type: syncType, }, title: convoTitle, - mimeType: "application/vnd.dust.intercom.conversation", + mimeType: INTERCOM_MIME_TYPES.CONVERSATION, async: true, }); } diff --git a/types/src/shared/internal_mime_types.ts b/types/src/shared/internal_mime_types.ts index 042af7c85a4a8..6245bef4ddf3f 100644 --- a/types/src/shared/internal_mime_types.ts +++ b/types/src/shared/internal_mime_types.ts @@ -31,6 +31,7 @@ export type GoogleDriveMimeType = export const INTERCOM_MIME_TYPES = { COLLECTION: "application/vnd.dust.intercom.collection", CONVERSATIONS: "application/vnd.dust.intercom.teams-folder", + CONVERSATION: "application/vnd.dust.intercom.conversation", TEAM: "application/vnd.dust.intercom.team", HELP_CENTER: "application/vnd.dust.intercom.help-center", };