index.ts•611 B
import { createPiece, PieceAuth } from '@activepieces/pieces-framework';
import { removeBackground } from './lib/actions/remove-background';
export const photoroomAuth = PieceAuth.CustomAuth({
required: true,
props: {
apiKey: PieceAuth.SecretText({
displayName: 'API key',
required: true,
}),
},
});
export const photoroom = createPiece({
displayName: 'Photoroom',
auth: photoroomAuth,
minimumSupportedRelease: '0.30.0',
logoUrl: 'https://cdn.activepieces.com/pieces/photoroom.png',
authors: ['AdamSelene', 'Charles-Go'],
actions: [removeBackground],
triggers: [],
});