Skip to content

Commit

Permalink
add intercom conversation type
Browse files Browse the repository at this point in the history
  • Loading branch information
aubin-tchoi committed Jan 7, 2025
1 parent 15ac778 commit 5a5e194
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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,
});
}
1 change: 1 addition & 0 deletions types/src/shared/internal_mime_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
};
Expand Down

0 comments on commit 5a5e194

Please sign in to comment.