Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

3.0 KB
Raw Blame
/**
 * Generated by orval v7.21.0 🍺
 * Do not edit manually.
 * document_storage_service
 * OpenAPI spec version: 0.1.0
 */
import type { CreateDocumentRequestBranchedFromId } from './createDocumentRequestBranchedFromId';
import type { CreateDocumentRequestBranchedFromVersionId } from './createDocumentRequestBranchedFromVersionId';
import type { CreateDocumentRequestCreatedAt } from './createDocumentRequestCreatedAt';
import type { CreateDocumentRequestDocumentFamilyId } from './createDocumentRequestDocumentFamilyId';
import type { CreateDocumentRequestEmailAttachmentId } from './createDocumentRequestEmailAttachmentId';
import type { CreateDocumentRequestFileType } from './createDocumentRequestFileType';
import type { CreateDocumentRequestId } from './createDocumentRequestId';
import type { CreateDocumentRequestJobId } from './createDocumentRequestJobId';
import type { CreateDocumentRequestMimeType } from './createDocumentRequestMimeType';
import type { CreateDocumentRequestProjectId } from './createDocumentRequestProjectId';
import type { CreateDocumentRequestTeamId } from './createDocumentRequestTeamId';

export interface CreateDocumentRequest {
  /** The document id if the document is being branched. */
  branchedFromId?: CreateDocumentRequestBranchedFromId;
  /** The version id if the document is being branched. */
  branchedFromVersionId?: CreateDocumentRequestBranchedFromVersionId;
  /** Optional time to set the document's created_at to. Set when backfilling email attachments. */
  createdAt?: CreateDocumentRequestCreatedAt;
  /** The document family id if the document is being branched. */
  documentFamilyId?: CreateDocumentRequestDocumentFamilyId;
  /** The name of the document without extension. */
  documentName: string;
  /** Internal only field that links the document created to the specified email attachment by
creating a row in the document_email table. */
  emailAttachmentId?: CreateDocumentRequestEmailAttachmentId;
  /** Optional file type of the document. */
  fileType?: CreateDocumentRequestFileType;
  /** The id of the document in the database */
  id?: CreateDocumentRequestId;
  /** Whether the document is a task.
This is only applicable for md documents and the request will fail if the file type is not
md. */
  isTask?: boolean;
  /** Optional job id to be used to track an upload job for the newly created document.
Will need to have a corresponding job initiated for the file beforehand. */
  jobId?: CreateDocumentRequestJobId;
  /** The content type of the document (currently only used for logging matches against file type). */
  mimeType?: CreateDocumentRequestMimeType;
  projectId?: CreateDocumentRequestProjectId;
  /** The sha of the document. */
  sha: string;
  /** Whether to add a viewed_at record for this document upon creation. */
  skipHistory?: boolean;
  /** Team to assign the task number within when creating a task document. If omitted,
the service may infer it only when the creator belongs to exactly one team. */
  teamId?: CreateDocumentRequestTeamId;
}