Add Activepieces integration for workflow automation

- 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>
This commit is contained in:
poduck
2025-12-18 22:59:37 -05:00
parent 9848268d34
commit 3aa7199503
16292 changed files with 1284892 additions and 4708 deletions

View File

@@ -0,0 +1,49 @@
import { createAction, Property } from '@activepieces/pieces-framework';
import { httpClient, HttpMethod } from '@activepieces/pieces-common';
import { devinAuth } from '../..';
export const createSession = createAction({
name: 'create_session',
displayName: 'Create Session',
description: 'Creates a new Devin session',
auth: devinAuth,
props: {
prompt: Property.ShortText({
displayName: 'Prompt',
required: true,
}),
snapshotId: Property.ShortText({
displayName: 'Snapshot ID',
required: false,
}),
playbookId: Property.ShortText({
displayName: 'Playbook ID',
required: false,
}),
unlisted: Property.Checkbox({
displayName: 'Unlisted',
required: false,
}),
idempotent: Property.Checkbox({
displayName: 'Idempotent',
required: false,
}),
},
async run({ auth, propsValue }) {
const response = await httpClient.sendRequest({
method: HttpMethod.POST,
url: 'https://api.devin.ai/v1/sessions',
headers: {
Authorization: `Bearer ${auth.secret_text}`,
},
body: {
prompt: propsValue.prompt,
snapshot_id: propsValue.snapshotId,
playbook_id: propsValue.playbookId,
unlisted: propsValue.unlisted,
idempotent: propsValue.idempotent,
},
});
return response.body;
},
});

View File

@@ -0,0 +1,27 @@
import { createAction, Property } from '@activepieces/pieces-framework';
import { httpClient, HttpMethod } from '@activepieces/pieces-common';
import { devinAuth } from '../..';
export const getSessionDetails = createAction({
name: 'get_session_details',
displayName: 'Get Session Details',
description: 'Retrieves details of a specific Devin session',
auth: devinAuth,
props: {
sessionId: Property.ShortText({
displayName: 'Session ID',
required: true,
description: 'The ID of the session to retrieve details for',
}),
},
async run({ auth, propsValue }) {
const response = await httpClient.sendRequest({
method: HttpMethod.GET,
url: `https://api.devin.ai/v1/session/${propsValue.sessionId}`,
headers: {
Authorization: `Bearer ${auth.secret_text}`,
},
});
return response.body;
},
});

View File

@@ -0,0 +1,35 @@
import { createAction, Property } from '@activepieces/pieces-framework';
import { httpClient, HttpMethod } from '@activepieces/pieces-common';
import { devinAuth } from '../..';
export const sendMessage = createAction({
name: 'send_message',
displayName: 'Send Message',
description: 'Sends a message to a Devin session',
auth: devinAuth,
props: {
sessionId: Property.ShortText({
displayName: 'Session ID',
required: true,
description: 'The ID of the session to send the message to',
}),
message: Property.LongText({
displayName: 'Message',
required: true,
description: 'The message to send to the session',
}),
},
async run({ auth, propsValue }) {
const response = await httpClient.sendRequest({
method: HttpMethod.POST,
url: `https://api.devin.ai/v1/session/${propsValue.sessionId}/messages`,
headers: {
Authorization: `Bearer ${auth.secret_text}`,
},
body: {
message: propsValue.message,
},
});
return response.body;
},
});