import * as actions from "./actions" import * as triggers from "./triggers" import { defineAccount } from "../../automation/integrations" /** Declares a named Notion account binding for an automation. */ export const notionAccount = defineAccount("notion") /** Notion callables. */ export const notion = { appendBlockChildren: actions.appendNotionBlockChildren, batchManageAgents: actions.batchManageNotionAgents, cancelSession: actions.cancelNotionSession, completeFileUpload: actions.completeNotionFileUpload, createComment: actions.createNotionComment, createDatabase: actions.createNotionDatabase, createDataSource: actions.createNotionDataSource, createFileUpload: actions.createNotionFileUpload, createMeetingNote: actions.createNotionMeetingNote, createOrUpdateSession: actions.createOrUpdateNotionSession, createPage: actions.createNotionPage, createView: actions.createNotionView, createViewQuery: actions.createNotionViewQuery, deleteAgent: actions.deleteNotionAgent, deleteBlock: actions.deleteNotionBlock, deleteComment: actions.deleteNotionComment, deleteView: actions.deleteNotionView, deleteViewQuery: actions.deleteNotionViewQuery, getAgent: actions.getNotionAgent, getAgentInsights: actions.getNotionAgentInsights, getAsyncTask: actions.getNotionAsyncTask, getBlock: actions.getNotionBlock, getComment: actions.getNotionComment, getCurrentUser: actions.getCurrentNotionUser, getDatabase: actions.getNotionDatabase, getDataSource: actions.getNotionDataSource, getFileUpload: actions.getNotionFileUpload, getPage: actions.getNotionPage, getPageMarkdown: actions.getNotionPageMarkdown, getPageProperty: actions.getNotionPageProperty, getSession: actions.getNotionSession, getUser: actions.getNotionUser, getView: actions.getNotionView, getViewQueryResults: actions.getNotionViewQueryResults, listBlockChildren: actions.listNotionBlockChildren, listComments: actions.listNotionComments, listCustomEmojis: actions.listNotionCustomEmojis, listDataSourceTemplates: actions.listNotionDataSourceTemplates, listFileUploads: actions.listNotionFileUploads, listUsers: actions.listNotionUsers, listViews: actions.listNotionViews, movePage: actions.moveNotionPage, onCommentCreated: triggers.onNotionCommentCreated, onCommentDeleted: triggers.onNotionCommentDeleted, onCommentUpdated: triggers.onNotionCommentUpdated, onDatabaseCreated: triggers.onNotionDatabaseCreated, onDatabaseDeleted: triggers.onNotionDatabaseDeleted, onDatabaseMoved: triggers.onNotionDatabaseMoved, onDatabaseUndeleted: triggers.onNotionDatabaseUndeleted, onDataSourceContentUpdated: triggers.onNotionDataSourceContentUpdated, onDataSourceCreated: triggers.onNotionDataSourceCreated, onDataSourceDeleted: triggers.onNotionDataSourceDeleted, onDataSourceMoved: triggers.onNotionDataSourceMoved, onDataSourceSchemaUpdated: triggers.onNotionDataSourceSchemaUpdated, onDataSourceUndeleted: triggers.onNotionDataSourceUndeleted, onEvent: triggers.onNotionEvent, onFileUploadCompleted: triggers.onNotionFileUploadCompleted, onFileUploadCreated: triggers.onNotionFileUploadCreated, onFileUploadExpired: triggers.onNotionFileUploadExpired, onFileUploadFailed: triggers.onNotionFileUploadFailed, onPageContentUpdated: triggers.onNotionPageContentUpdated, onPageCreated: triggers.onNotionPageCreated, onPageDeleted: triggers.onNotionPageDeleted, onPageLocked: triggers.onNotionPageLocked, onPageMoved: triggers.onNotionPageMoved, onPagePropertiesUpdated: triggers.onNotionPagePropertiesUpdated, onPageTranscriptDeleted: triggers.onNotionPageTranscriptDeleted, onPageUndeleted: triggers.onNotionPageUndeleted, onPageUnlocked: triggers.onNotionPageUnlocked, onViewCreated: triggers.onNotionViewCreated, onViewDeleted: triggers.onNotionViewDeleted, onViewUpdated: triggers.onNotionViewUpdated, queryAgents: actions.queryNotionAgents, queryDataSource: actions.queryNotionDataSource, queryMeetingNotes: actions.queryNotionMeetingNotes, querySessionEvents: actions.queryNotionSessionEvents, querySessions: actions.queryNotionSessions, search: actions.searchNotion, sendFileUpload: actions.sendNotionFileUpload, updateAgentCreditLimit: actions.updateNotionAgentCreditLimit, updateAgentStatus: actions.updateNotionAgentStatus, updateBlock: actions.updateNotionBlock, updateComment: actions.updateNotionComment, updateDatabase: actions.updateNotionDatabase, updateDataSource: actions.updateNotionDataSource, updatePage: actions.updateNotionPage, updatePageMarkdown: actions.updateNotionPageMarkdown, updateView: actions.updateNotionView, } export * from "./actions" export * from "./lib" export * from "./triggers" export type { NotionSemanticWebhookEvent, NotionWebhookEvent, NotionWebhookEventType, } from "@automate.ax/integration-contracts/notion" export { Client as NotionClient } from "@notionhq/client"