Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

1.5 KB
Raw Blame
import { createCustomApiCallAction } from '@activepieces/pieces-common';
import { createPiece } from '@activepieces/pieces-framework';
import { PieceCategory } from '@activepieces/pieces-framework';
import { raindropAuth } from './lib/auth';
import { raindropClient } from './lib/common/client';
import { createRaindropAction } from './lib/actions/create-raindrop';
import { getRaindropAction } from './lib/actions/get-raindrop';
import { updateRaindropAction } from './lib/actions/update-raindrop';
import { deleteRaindropAction } from './lib/actions/delete-raindrop';
import { findRaindropsAction } from './lib/actions/find-raindrops';
import { raindropAiActions } from './lib/actions/ai';
export { raindropAuth };

export const raindrop = createPiece({
  displayName: 'Raindrop',
  description:
    'Bookmark manager to save, search, and organize content from the web',
  minimumSupportedRelease: '0.88.2',
  logoUrl: 'https://cdn.activepieces.com/pieces/raindrop.png',
  categories: [PieceCategory.PRODUCTIVITY, PieceCategory.CONTENT_AND_FILES],
  auth: raindropAuth,
  authors: ['bs1tn'],
  actions: [
    createRaindropAction,
    getRaindropAction,
    updateRaindropAction,
    deleteRaindropAction,
    findRaindropsAction,
    ...raindropAiActions,
    createCustomApiCallAction({
      baseUrl: () => raindropClient.baseUrl(),
      auth: raindropAuth,
      authMapping: async (auth) => ({
        Authorization: `Bearer ${auth.access_token}`,
      }),
    }),
  ],
  triggers: [],
});