- Add Activepieces fork with SmoothSchedule custom piece - Create integrations app with Activepieces service layer - Add embed token endpoint for iframe integration - Create Automations page with embedded workflow builder - Add sidebar visibility fix for embed mode - Add list inactive customers endpoint to Public API - Include SmoothSchedule triggers: event created/updated/cancelled - Include SmoothSchedule actions: create/update/cancel events, list resources/services/customers 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
40 lines
1.3 KiB
TypeScript
40 lines
1.3 KiB
TypeScript
import { PieceAuth, createPiece } from '@activepieces/pieces-framework';
|
|
import { createCustomApiCallAction } from '@activepieces/pieces-common';
|
|
import { askClaude } from './lib/actions/send-prompt';
|
|
import { baseUrl } from './lib/common/common';
|
|
import { PieceCategory } from '@activepieces/shared';
|
|
import { extractStructuredDataAction } from './lib/actions/extract-structured-data';
|
|
|
|
export const claudeAuth = PieceAuth.SecretText({
|
|
displayName: 'API Key',
|
|
required: true,
|
|
description: `Follow these instructions to get your Claude API Key:
|
|
|
|
1. Visit the following website: https://console.anthropic.com/settings/keys.
|
|
2. Once on the website, locate and click on the option to obtain your Claude API Key.
|
|
`,
|
|
});
|
|
|
|
export const claude = createPiece({
|
|
displayName: 'Anthropic Claude',
|
|
auth: claudeAuth,
|
|
minimumSupportedRelease: '0.63.0',
|
|
logoUrl: 'https://cdn.activepieces.com/pieces/claude.png',
|
|
categories: [PieceCategory.ARTIFICIAL_INTELLIGENCE],
|
|
authors: ['dennisrongo','kishanprmr'],
|
|
actions: [
|
|
askClaude,
|
|
extractStructuredDataAction,
|
|
createCustomApiCallAction({
|
|
auth: claudeAuth,
|
|
baseUrl: () => baseUrl,
|
|
authMapping: async (auth) => {
|
|
return {
|
|
'x-api-key': `${auth.secret_text}`,
|
|
};
|
|
},
|
|
}),
|
|
],
|
|
triggers: [],
|
|
});
|