Files
outline/shared/types/attachments.ts
T
Tom Moor ba2d9888cc feat: Granola integration (#14906)
* wip

* fix: Address review feedback on Granola integration

- Limit the size of Granola API responses
- Load the team when authorizing notes into personal collections
- Add the user's connection from granola.list to the integrations store

* feat: Connect Granola from a dialog

* fix: Accept Granola webhook test events

* Copy pass

* Copy pass
2026-12-05 14:59:12 -05:00

35 lines
1.2 KiB
TypeScript

import type { AuthenticationType } from "./auth";
/** Upload presets that set the ACL, size limit, and expiry of an attachment. */
export enum AttachmentPreset {
DocumentAttachment = "documentAttachment",
WorkspaceImport = "workspaceImport",
Import = "import",
Avatar = "avatar",
Emoji = "emoji",
}
/** Metadata about the origin of a document, collection, or revision. */
export type SourceMetadata = {
/** The original source file name. */
fileName?: string;
/** The original source mime type. */
mimeType?: string;
/** The creator of the original external source. */
createdByName?: string;
/** An ID in the external source. */
externalId?: string;
/** Original name in the external source. */
externalName?: string;
/** A link to the item in the external source. */
externalUrl?: string;
/** Whether the item was created through a trial license. */
trial?: boolean;
/** The ID of the original document when this document was duplicated. */
originalDocumentId?: string;
/** The ID of the original collection when this collection was duplicated. */
originalCollectionId?: string;
/** The type of authentication used to make the change. */
authType?: AuthenticationType;
};