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.4 KB
Raw Blame
import { createPiece } from '@activepieces/pieces-framework';
import { cryptolensAuth } from './lib/common/auth';
import { addCustomer } from './lib/actions/add-customer';
import { blockKey } from './lib/actions/block-key';
import { createKey } from './lib/actions/create-key';
import { extendLicense } from './lib/actions/extend-license';
import { newApiEvent } from './lib/triggers/new-api-event';
import { createCustomApiCallAction } from '@activepieces/pieces-common';
import { PieceCategory } from '@activepieces/pieces-framework';

export const cryptolens = createPiece({
  displayName: 'Cryptolens',
  auth: cryptolensAuth,
  minimumSupportedRelease: '0.36.1',
  logoUrl: 'https://cdn.activepieces.com/pieces/cryptolens.png',
  authors: ['sanket-a11y'],
  categories: [PieceCategory.DEVELOPER_TOOLS],
  description:
    'Cryptolens is a Software Licensing as a Service (SLaaS) platform that provides developers with tools to manage software licenses, protect against piracy, and analyze usage data.',
  actions: [
    addCustomer,
    blockKey,
    createKey,
    extendLicense,
    createCustomApiCallAction({
      auth: cryptolensAuth,
      baseUrl: () => 'https://api.cryptolens.io/api',
      authLocation: 'queryParams',
      authMapping: async (auth) => {
        return {
          token: `${auth.secret_text}`,
        };
      },
    }),
  ],
  triggers: [newApiEvent],
});