/** * Help Scout Node - Version 1 * Discriminator: resource=thread, operation=create */ interface Credentials { helpScoutOAuth2Api: CredentialReference; } /** Create a new conversation */ export type HelpScoutV1ThreadCreateParams = { resource: 'thread'; operation: 'create'; /** * Conversation ID */ conversationId?: string | Expression | PlaceholderValue; /** * Type */ type?: 'chat' | 'customer' | 'note' | 'phone' | 'reply' | Expression; /** * The chat text */ text?: string | Expression | PlaceholderValue; /** * Additional Fields * @default {} */ additionalFields?: { /** Created At */ createdAt?: string | Expression; /** Customer Email */ customerEmail?: string | Expression | PlaceholderValue; /** Customer ID * @default 0 */ customerId?: number | Expression; /** Whether a draft reply is created * @displayOptions.show { /type: ["note"] } * @default false */ draft?: boolean | Expression; /** Whether no outgoing emails or notifications will be generated * @default false */ imported?: boolean | Expression; }; /** * Array of supported attachments to add to the message * @default {} */ attachmentsUi?: { /** Attachments Values */ attachmentsValues?: Array<{ /** Attachment’s file name */ fileName?: string | Expression | PlaceholderValue; /** Attachment’s mime type */ mimeType?: string | Expression | PlaceholderValue; /** Base64-encoded stream of data */ data?: string | Expression | PlaceholderValue; }>; /** Attachments Binary */ attachmentsBinary?: Array<{ /** Name of the binary properties which contain data which should be added to email as attachment * @default data */ property?: string | Expression | PlaceholderValue; }>; }; }; export type HelpScoutV1ThreadCreateNode = { type: 'n8n-nodes-base.helpScout'; version: 1; credentials?: Credentials; config: NodeConfig; };