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
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
feat(cal-com): add AI actions and output schemas (#15816)
Kishan Parmar5cd2fe5481e5
diff --git a/packages/pieces/community/cal-com/package.json b/packages/pieces/community/cal-com/package.jsonindex 2ec1c03009a..0bbc3ad9101 100644--- a/packages/pieces/community/cal-com/package.json+++ b/packages/pieces/community/cal-com/package.json@@ -1,6 +1,6 @@{"name": "@activepieces/piece-cal-com",- "version": "0.4.9",+ "version": "0.5.0","main": "./dist/src/index.js","types": "./dist/src/index.d.ts","scripts": {diff --git a/packages/pieces/community/cal-com/src/index.ts b/packages/pieces/community/cal-com/src/index.tsindex d885219d92a..cb7f901641a 100644--- a/packages/pieces/community/cal-com/src/index.ts+++ b/packages/pieces/community/cal-com/src/index.ts@@ -1,21 +1,19 @@-import { PieceAuth, createPiece } from '@activepieces/pieces-framework';+import { createPiece } from '@activepieces/pieces-framework';import { PieceCategory } from '@activepieces/pieces-framework';+import { calcomAuth } from './lib/auth';+import { actions } from './lib/actions';import { triggers } from './lib/triggers';-export const calcomAuth = PieceAuth.SecretText({- displayName: 'API Key',- description: 'API Key provided by cal.com',- required: true,-});+export { calcomAuth };export const calcom = createPiece({displayName: 'Cal.com',description: 'Open-source alternative to Calendly',- minimumSupportedRelease: '0.30.0',+ minimumSupportedRelease: '0.88.2',logoUrl: 'https://cdn.activepieces.com/pieces/cal.com.png',categories: [PieceCategory.PRODUCTIVITY],authors: ["kishanprmr","AbdulTheActivePiecer","khaledmashaly","abuaboud"],auth: calcomAuth,- actions: [],+ actions,triggers,});diff --git a/packages/pieces/community/cal-com/src/lib/actions/add-attendee.ts b/packages/pieces/community/cal-com/src/lib/actions/add-attendee.tsnew file mode 100644index 00000000000..70b1e332b63--- /dev/null+++ b/packages/pieces/community/cal-com/src/lib/actions/add-attendee.ts@@ -0,0 +1,60 @@+import { createAction, Property } from '@activepieces/pieces-framework';+import { HttpMethod } from '@activepieces/pieces-common';+import { calcomAuth } from '../auth';+import { calcomCommon } from '../common';+import { addAttendeeActionOutputSchema } from '../output-schemas';++export const calcomAddAttendee = createAction({+ auth: calcomAuth,+ name: 'calcom_add_attendee',+ classification: 'WRITE',+ displayName: 'Add Attendee to Booking',+ description: 'Add an additional attendee to an existing Cal.com booking.',+ audience: 'ai',+ outputSchema: addAttendeeActionOutputSchema,+ aiMetadata: {+ description:+ 'Adds one attendee to an existing booking. Get the booking uid from List Bookings or Get Booking. Not idempotent: each call adds another attendee, so retries duplicate.',+ idempotent: false,+ },+ props: {+ booking_uid: Property.ShortText({+ displayName: 'Booking UID',+ required: true,+ }),+ name: Property.ShortText({+ displayName: 'Attendee Name',+ required: true,+ }),+ email: Property.ShortText({+ displayName: 'Attendee Email',+ required: true,+ }),+ time_zone: Property.ShortText({+ displayName: 'Attendee Timezone',+ description: 'IANA timezone, e.g. Europe/Berlin. Get valid values from List Timezones.',+ required: true,+ }),+ phone_number: Property.ShortText({+ displayName: 'Attendee Phone Number',+ required: false,+ }),+ },+ async run(context) {+ const { auth, propsValue } = context;+ const { booking_uid, name, email, time_zone, phone_number } = propsValue;++ return await calcomCommon.calRequest({+ apiKey: auth.secret_text,+ method: HttpMethod.POST,+ path: `/bookings/${booking_uid}/attendees`,+ version: calcomCommon.versions.attendees,+ body: {+ name,+ email,+ timeZone: time_zone,+ ...(phone_number !== undefined ? { phoneNumber: phone_number } : {}),+ },+ });+ },+});diff --git a/packages/pieces/community/cal-com/src/lib/actions/cancel-booking.ts b/packages/pieces/community/cal-com/src/lib/actions/cancel-booking.tsnew file mode 100644index 00000000000..ee1a8ae465e--- /dev/null+++ b/packages/pieces/community/cal-com/src/lib/actions/cancel-booking.ts@@ -0,0 +1,44 @@+import { createAction, Property } from '@activepieces/pieces-framework';+import { HttpMethod } from '@activepieces/pieces-common';+import { calcomAuth } from '../auth';+import { calcomCommon } from '../common';+import { bookingActionOutputSchema } from '../output-schemas';++export const calcomCancelBooking = createAction({+ auth: calcomAuth,+ name: 'calcom_cancel_booking',+ classification: 'DESTRUCTIVE',+ displayName: 'Cancel Booking',+ description: 'Cancel an active Cal.com booking by its uid.',+ audience: 'ai',+ outputSchema: bookingActionOutputSchema,+ aiMetadata: {+ description:+ 'Cancels an active booking by uid, notifying the attendee. Get the uid from List Bookings or Get Booking. Not idempotent: a repeat call on an already-cancelled booking errors.',+ idempotent: false,+ },+ props: {+ booking_uid: Property.ShortText({+ displayName: 'Booking UID',+ required: true,+ }),+ cancellation_reason: Property.LongText({+ displayName: 'Cancellation Reason',+ required: false,+ }),+ },+ async run(context) {+ const { auth, propsValue } = context;+ const { booking_uid, cancellation_reason } = propsValue;++ return await calcomCommon.calRequest({+ apiKey: auth.secret_text,+ method: HttpMethod.POST,+ path: `/bookings/${booking_uid}/cancel`,+ version: calcomCommon.versions.bookingsItem,+ body: {+ ...(cancellation_reason !== undefined ? { cancellationReason: cancellation_reason } : {}),+ },+ });+ },+});diff --git a/packages/pieces/community/cal-com/src/lib/actions/confirm-booking.ts b/packages/pieces/community/cal-com/src/lib/actions/confirm-booking.tsnew file mode 100644index 00000000000..5bf3f1dd637--- /dev/null+++ b/packages/pieces/community/cal-com/src/lib/actions/confirm-booking.ts@@ -0,0 +1,38 @@+import { createAction, Property } from '@activepieces/pieces-framework';+import { HttpMethod } from '@activepieces/pieces-common';+import { calcomAuth } from '../auth';+import { calcomCommon } from '../common';+import { bookingActionOutputSchema } from '../output-schemas';++export const calcomConfirmBooking = createAction({+ auth: calcomAuth,+ name: 'calcom_confirm_booking',+ classification: 'WRITE',+ displayName: 'Confirm Booking',+ description: 'Confirm a Cal.com booking that is pending host confirmation.',+ audience: 'ai',+ outputSchema: bookingActionOutputSchema,+ aiMetadata: {+ description:+ 'Confirms a pending booking, finalizing it. Only applies to bookings whose event type requires manual confirmation. Idempotent: confirming an already-confirmed booking is a no-op.',+ idempotent: true,+ },+ props: {+ booking_uid: Property.ShortText({+ displayName: 'Booking UID',+ required: true,+ }),+ },+ async run(context) {+ const { auth, propsValue } = context;+ const { booking_uid } = propsValue;++ return await calcomCommon.calRequest({+ apiKey: auth.secret_text,+ method: HttpMethod.POST,+ path: `/bookings/${booking_uid}/confirm`,+ version: calcomCommon.versions.bookingsItem,+ body: {},+ });+ },+});diff --git a/packages/pieces/community/cal-com/src/lib/actions/create-booking.ts b/packages/pieces/community/cal-com/src/lib/actions/create-booking.tsnew file mode 100644index 00000000000..34f19709398--- /dev/null+++ b/packages/pieces/community/cal-com/src/lib/actions/create-booking.ts@@ -0,0 +1,93 @@+import { createAction, Property } from '@activepieces/pieces-framework';+import { HttpMethod } from '@activepieces/pieces-common';+import { calcomAuth } from '../auth';+import { calcomCommon } from '../common';+import { bookingActionOutputSchema } from '../output-schemas';++export const calcomCreateBooking = createAction({+ auth: calcomAuth,+ name: 'calcom_create_booking',+ classification: 'WRITE',+ displayName: 'Create Booking',+ description: 'Book a Cal.com event type at a specific start time for one attendee.',+ audience: 'ai',+ outputSchema: bookingActionOutputSchema,+ aiMetadata: {+ description:+ 'Creates a standard (non-recurring, non-instant) booking for an event type at an exact start time. Use Get Available Slots first to find a valid start time. The booking status is ACCEPTED, or PENDING if the event type requires host confirmation (use Confirm Booking / Decline Booking to resolve it). Not idempotent: each call creates a new booking, so retries duplicate.',+ idempotent: false,+ },+ props: {+ event_type_id: Property.Number({+ displayName: 'Event Type ID',+ description: 'Get this from List Event Types.',+ required: true,+ }),+ start: Property.ShortText({+ displayName: 'Start Time',+ description: 'ISO 8601 timestamp in UTC, e.g. 2026-03-05T15:00:00Z. Get a valid value from Get Available Slots.',+ required: true,+ }),+ attendee_name: Property.ShortText({+ displayName: 'Attendee Name',+ required: true,+ }),+ attendee_time_zone: Property.ShortText({+ displayName: 'Attendee Timezone',+ description: 'IANA timezone, e.g. Europe/Berlin. Get valid values from List Timezones.',+ required: true,+ }),+ attendee_email: Property.ShortText({+ displayName: 'Attendee Email',+ required: false,+ }),+ attendee_phone_number: Property.ShortText({+ displayName: 'Attendee Phone Number',+ description: 'International format, e.g. +14155552671.',+ required: false,+ }),+ guests: Property.Array({+ displayName: 'Guest Emails',+ required: false,+ }),+ length_in_minutes: Property.Number({+ displayName: 'Length (Minutes)',+ description: 'Only for event types offering multiple possible durations.',+ required: false,+ }),+ },+ async run(context) {+ const { auth, propsValue } = context;+ const {+ event_type_id,+ start,+ attendee_name,+ attendee_time_zone,+ attendee_email,+ attendee_phone_number,+ guests,+ length_in_minutes,+ } = propsValue;++ const body: Record<string, unknown> = {+ eventTypeId: event_type_id,+ start,+ attendee: {+ name: attendee_name,+ timeZone: attendee_time_zone,+ ...(attendee_email !== undefined ? { email: attendee_email } : {}),+ ...(attendee_phone_number !== undefined ? { phoneNumber: attendee_phone_number } : {}),+ },+ };+ if (guests !== undefined) body['guests'] = guests;+ if (length_in_minutes !== undefined) body['lengthInMinutes'] = length_in_minutes;++ return await calcomCommon.calRequest({+ apiKey: auth.secret_text,+ method: HttpMethod.POST,+ path: '/bookings',+ version: calcomCommon.versions.bookingsItem,+ body,+ });+ },+});diff --git a/packages/pieces/community/cal-com/src/lib/actions/create-event-type.ts b/packages/pieces/community/cal-com/src/lib/actions/create-event-type.tsnew file mode 100644index 00000000000..379b5ff903f--- /dev/null+++ b/packages/pieces/community/cal-com/src/lib/actions/create-event-type.ts@@ -0,0 +1,83 @@+import { createAction, Property } from '@activepieces/pieces-framework';+import { HttpMethod } from '@activepieces/pieces-common';+import { calcomAuth } from '../auth';+import { calcomCommon } from '../common';+import { eventTypeActionOutputSchema } from '../output-schemas';++export const calcomCreateEventType = createAction({+ auth: calcomAuth,+ name: 'calcom_create_event_type',+ classification: 'WRITE',+ displayName: 'Create Event Type',+ description: 'Create a new Cal.com event type.',+ audience: 'ai',+ outputSchema: eventTypeActionOutputSchema,+ aiMetadata: {+ description:+ 'Creates a new bookable event type with a title, slug and length. Use Additional Fields for any of the many advanced Cal.com event-type settings not exposed directly here (e.g. booking limits, recurrence, locations) — it is merged into the same request. Not idempotent: each call creates a new event type, so retries duplicate.',+ idempotent: false,+ },+ props: {+ title: Property.ShortText({+ displayName: 'Title',+ required: true,+ }),+ slug: Property.ShortText({+ displayName: 'Slug',+ description: 'URL-safe identifier for the event type, must be unique.',+ required: true,+ }),+ length_in_minutes: Property.Number({+ displayName: 'Length (Minutes)',+ required: true,+ }),+ description: Property.LongText({+ displayName: 'Description',+ required: false,+ }),+ schedule_id: Property.Number({+ displayName: 'Schedule ID',+ description: 'Assign a different availability schedule than the owner\'s default one. Get this from List Schedules.',+ required: false,+ }),+ hidden: Property.Checkbox({+ displayName: 'Hidden',+ required: false,+ }),+ additional_fields: Property.Json({+ displayName: 'Additional Fields',+ description: 'Advanced event-type fields not listed above, as a JSON object matching the Cal.com v2 Create Event Type request body (e.g. {"bookingLimitsCount": {...}}).',+ required: false,+ }),+ },+ async run(context) {+ const { auth, propsValue } = context;+ const {+ title,+ slug,+ length_in_minutes,+ description,+ schedule_id,+ hidden,+ additional_fields,+ } = propsValue;++ const body: Record<string, unknown> = {+ ...(additional_fields as Record<string, unknown> | undefined),+ title,+ slug,+ lengthInMinutes: length_in_minutes,+ };+ if (description !== undefined) body['description'] = description;+ if (schedule_id !== undefined) body['scheduleId'] = schedule_id;+ if (hidden !== undefined) body['hidden'] = hidden;++ return await calcomCommon.calRequest({+ apiKey: auth.secret_text,+ method: HttpMethod.POST,+ path: '/event-types',+ version: calcomCommon.versions.eventTypes,+ body,+ });+ },+});diff --git a/packages/pieces/community/cal-com/src/lib/actions/create-schedule.ts b/packages/pieces/community/cal-com/src/lib/actions/create-schedule.tsnew file mode 100644index 00000000000..2e3d10ac4e5--- /dev/null+++ b/packages/pieces/community/cal-com/src/lib/actions/create-schedule.ts@@ -0,0 +1,65 @@+import { createAction, Property } from '@activepieces/pieces-framework';+import { HttpMethod } from '@activepieces/pieces-common';+import { calcomAuth } from '../auth';+import { calcomCommon } from '../common';+import { scheduleActionOutputSchema } from '../output-schemas';++export const calcomCreateSchedule = createAction({+ auth: calcomAuth,+ name: 'calcom_create_schedule',+ classification: 'WRITE',+ displayName: 'Create Schedule',+ description: 'Create a new availability schedule.',+ audience: 'ai',+ outputSchema: scheduleActionOutputSchema,+ aiMetadata: {+ description:+ 'Creates a new availability schedule with a weekly recurring pattern and optional date overrides. Setting Is Default to Yes replaces the user\'s current default schedule. Not idempotent: each call creates a new schedule, so retries duplicate.',+ idempotent: false,+ },+ props: {+ name: Property.ShortText({+ displayName: 'Name',+ required: true,+ }),+ time_zone: Property.ShortText({+ displayName: 'Timezone',+ description: 'IANA timezone, e.g. Europe/Berlin. Get valid values from List Timezones.',+ required: true,+ }),+ is_default: Property.Checkbox({+ displayName: 'Is Default',+ description: 'Each user has exactly one default schedule; setting this replaces it.',+ required: true,+ }),+ availability: Property.Json({+ displayName: 'Availability',+ description:+ 'Array of weekly availability blocks, e.g. [{"days": ["Monday", "Tuesday"], "startTime": "09:00", "endTime": "17:00"}]. Leave empty for Cal.com\'s default Mon-Fri 9-17 pattern.',+ required: false,+ }),+ overrides: Property.Json({+ displayName: 'Date Overrides',+ description: 'Array of date-specific overrides, e.g. [{"date": "2026-05-20", "startTime": "12:00", "endTime": "13:00"}].',+ required: false,+ }),+ },+ async run(context) {+ const { auth, propsValue } = context;+ const { name, time_zone, is_default, availability, overrides } = propsValue;++ return await calcomCommon.calRequest({+ apiKey: auth.secret_text,+ method: HttpMethod.POST,+ path: '/schedules',+ version: calcomCommon.versions.schedules,+ body: {+ name,+ timeZone: time_zone,+ isDefault: is_default,+ ...(availability !== undefined ? { availability } : {}),+ ...(overrides !== undefined ? { overrides } : {}),+ },+ });+ },+});diff --git a/packages/pieces/community/cal-com/src/lib/actions/decline-booking.ts b/packages/pieces/community/cal-com/src/lib/actions/decline-booking.tsnew file mode 100644index 00000000000..82f6e7fa0f5--- /dev/null+++ b/packages/pieces/community/cal-com/src/lib/actions/decline-booking.ts@@ -0,0 +1,44 @@+import { createAction, Property } from '@activepieces/pieces-framework';+import { HttpMethod } from '@activepieces/pieces-common';+import { calcomAuth } from '../auth';+import { calcomCommon } from '../common';+import { bookingActionOutputSchema } from '../output-schemas';++export const calcomDeclineBooking = createAction({+ auth: calcomAuth,+ name: 'calcom_decline_booking',+ classification: 'DESTRUCTIVE',+ displayName: 'Decline Booking',+ description: 'Decline a Cal.com booking that is pending host confirmation.',+ audience: 'ai',+ outputSchema: bookingActionOutputSchema,+ aiMetadata: {+ description:+ 'Declines a pending booking, notifying the attendee it was not accepted. Only applies to bookings awaiting confirmation. Not idempotent: a repeat call on an already-declined booking errors.',+ idempotent: false,+ },+ props: {+ booking_uid: Property.ShortText({+ displayName: 'Booking UID',+ required: true,+ }),+ reason: Property.LongText({+ displayName: 'Reason',+ required: false,+ }),+ },+ async run(context) {+ const { auth, propsValue } = context;+ const { booking_uid, reason } = propsValue;++ return await calcomCommon.calRequest({+ apiKey: auth.secret_text,+ method: HttpMethod.POST,+ path: `/bookings/${booking_uid}/decline`,+ version: calcomCommon.versions.bookingsItem,+ body: {+ ...(reason !== undefined ? { reason } : {}),+ },+ });+ },+});diff --git a/packages/pieces/community/cal-com/src/lib/actions/delete-event-type.ts b/packages/pieces/community/cal-com/src/lib/actions/delete-event-type.tsnew file mode 100644index 00000000000..120e8601e0d--- /dev/null+++ b/packages/pieces/community/cal-com/src/lib/actions/delete-event-type.ts@@ -0,0 +1,38 @@+import { createAction, Property } from '@activepieces/pieces-framework';+import { HttpMethod } from '@activepieces/pieces-common';+import { calcomAuth } from '../auth';+import { calcomCommon } from '../common';+import { deleteEventTypeActionOutputSchema } from '../output-schemas';++export const calcomDeleteEventType = createAction({+ auth: calcomAuth,+ name: 'calcom_delete_event_type',+ classification: 'DESTRUCTIVE',+ displayName: 'Delete Event Type',+ description: 'Permanently delete a Cal.com event type by id.',+ audience: 'ai',+ outputSchema: deleteEventTypeActionOutputSchema,+ aiMetadata: {+ description:+ 'Permanently deletes an event type by id. Existing bookings for it are unaffected, but no new bookings can be made against it afterward. Not idempotent: a repeat call on the same id fails because it is already gone.',+ idempotent: false,+ },+ props: {+ event_type_id: Property.Number({+ displayName: 'Event Type ID',+ description: 'Get this from List Event Types.',+ required: true,+ }),+ },+ async run(context) {+ const { auth, propsValue } = context;+ const { event_type_id } = propsValue;++ return await calcomCommon.calRequest({+ apiKey: auth.secret_text,+ method: HttpMethod.DELETE,+ path: `/event-types/${event_type_id}`,+ version: calcomCommon.versions.eventTypes,+ });+ },+});diff --git a/packages/pieces/community/cal-com/src/lib/actions/delete-schedule.ts b/packages/pieces/community/cal-com/src/lib/actions/delete-schedule.tsnew file mode 100644index 00000000000..173474d3754--- /dev/null+++ b/packages/pieces/community/cal-com/src/lib/actions/delete-schedule.ts@@ -0,0 +1,35 @@+import { createAction, Property } from '@activepieces/pieces-framework';+import { HttpMethod } from '@activepieces/pieces-common';+import { calcomAuth } from '../auth';+import { calcomCommon } from '../common';++export const calcomDeleteSchedule = createAction({+ auth: calcomAuth,+ name: 'calcom_delete_schedule',+ classification: 'DESTRUCTIVE',+ displayName: 'Delete Schedule',+ description: 'Permanently delete an availability schedule by id.',+ audience: 'ai',+ aiMetadata: {+ description:+ 'Permanently deletes an availability schedule by id. Get the id from List Schedules. Not idempotent: a repeat call on the same id fails because it is already gone.',+ idempotent: false,+ },+ props: {+ schedule_id: Property.Number({+ displayName: 'Schedule ID',+ required: true,+ }),+ },+ async run(context) {+ const { auth, propsValue } = context;+ const { schedule_id } = propsValue;++ return await calcomCommon.calRequest({+ apiKey: auth.secret_text,+ method: HttpMethod.DELETE,+ path: `/schedules/${schedule_id}`,+ version: calcomCommon.versions.schedules,+ });+ },+});diff --git a/packages/pieces/community/cal-com/src/lib/actions/get-available-slots.ts b/packages/pieces/community/cal-com/src/lib/actions/get-available-slots.tsnew file mode 100644index 00000000000..7d8055c3442--- /dev/null+++ b/packages/pieces/community/cal-com/src/lib/actions/get-available-slots.ts@@ -0,0 +1,65 @@+import { createAction, Property } from '@activepieces/pieces-framework';+import { HttpMethod } from '@activepieces/pieces-common';+import { calcomAuth } from '../auth';+import { calcomCommon } from '../common';+import { availableSlotsActionOutputSchema } from '../output-schemas';++export const calcomGetAvailableSlots = createAction({+ auth: calcomAuth,+ name: 'calcom_get_available_slots',+ classification: 'SEARCH',+ displayName: 'Get Available Slots',+ description: 'Find bookable time slots for a Cal.com event type within a time range.',+ audience: 'ai',+ outputSchema: availableSlotsActionOutputSchema,+ aiMetadata: {+ description:+ 'Returns available start times for an event type between Start and End, accounting for existing bookings and availability. Use before Create Booking to pick a valid start time.',+ idempotent: true,+ },+ props: {+ event_type_id: Property.Number({+ displayName: 'Event Type ID',+ description: 'Get this from List Event Types.',+ required: true,+ }),+ start: Property.ShortText({+ displayName: 'Start',+ description: 'ISO 8601 timestamp for the beginning of the search range.',+ required: true,+ }),+ end: Property.ShortText({+ displayName: 'End',+ description: 'ISO 8601 timestamp for the end of the search range.',+ required: true,+ }),+ time_zone: Property.ShortText({+ displayName: 'Timezone',+ description: 'IANA timezone the returned slots are expressed in.',+ required: false,+ }),+ duration: Property.Number({+ displayName: 'Duration (Minutes)',+ description: 'Only for event types offering multiple possible durations.',+ required: false,+ }),+ },+ async run(context) {+ const { auth, propsValue } = context;+ const { event_type_id, start, end, time_zone, duration } = propsValue;++ return await calcomCommon.calRequest({+ apiKey: auth.secret_text,+ method: HttpMethod.GET,+ path: '/slots',+ version: calcomCommon.versions.slots,+ query: {+ eventTypeId: event_type_id,+ start,+ end,+ timeZone: time_zone,+ duration,+ },+ });+ },+});diff --git a/packages/pieces/community/cal-com/src/lib/actions/get-booking.ts b/packages/pieces/community/cal-com/src/lib/actions/get-booking.tsnew file mode 100644index 00000000000..3846cd2aebf--- /dev/null+++ b/packages/pieces/community/cal-com/src/lib/actions/get-booking.ts@@ -0,0 +1,38 @@+import { createAction, Property } from '@activepieces/pieces-framework';+import { HttpMethod } from '@activepieces/pieces-common';+import { calcomAuth } from '../auth';+import { calcomCommon } from '../common';+import { bookingActionOutputSchema } from '../output-schemas';++export const calcomGetBooking = createAction({+ auth: calcomAuth,+ name: 'calcom_get_booking',+ classification: 'READ',+ displayName: 'Get Booking',+ description: 'Get the full details of a single Cal.com booking by its uid, including its attendees.',+ audience: 'ai',+ outputSchema: bookingActionOutputSchema,+ aiMetadata: {+ description:+ 'Retrieves full details for one booking by uid, including its attendees. Get the uid from List Bookings or from a booking trigger payload.',+ idempotent: true,+ },+ props: {+ booking_uid: Property.ShortText({+ displayName: 'Booking UID',+ description: 'Get this from List Bookings.',+ required: true,+ }),+ },+ async run(context) {+ const { auth, propsValue } = context;+ const { booking_uid } = propsValue;++ return await calcomCommon.calRequest({+ apiKey: auth.secret_text,+ method: HttpMethod.GET,+ path: `/bookings/${booking_uid}`,+ version: calcomCommon.versions.bookingsItem,+ });+ },+});diff --git a/packages/pieces/community/cal-com/src/lib/actions/get-default-schedule.ts b/packages/pieces/community/cal-com/src/lib/actions/get-default-schedule.tsnew file mode 100644index 00000000000..423310a3fc1--- /dev/null+++ b/packages/pieces/community/cal-com/src/lib/actions/get-default-schedule.ts@@ -0,0 +1,31 @@+import { createAction } from '@activepieces/pieces-framework';+import { HttpMethod } from '@activepieces/pieces-common';+import { calcomAuth } from '../auth';+import { calcomCommon } from '../common';+import { scheduleActionOutputSchema } from '../output-schemas';++export const calcomGetDefaultSchedule = createAction({+ auth: calcomAuth,+ name: 'calcom_get_default_schedule',+ classification: 'READ',+ displayName: 'Get Default Schedule',+ description: 'Get the connected user\'s default availability schedule.',+ audience: 'ai',+ outputSchema: scheduleActionOutputSchema,+ aiMetadata: {+ description:+ 'Retrieves the authenticated user\'s own default availability schedule directly, without needing its id. Prefer List Schedules when you need every schedule, not just the default.',+ idempotent: true,+ },+ props: {},+ async run(context) {+ const { auth } = context;++ return await calcomCommon.calRequest({+ apiKey: auth.secret_text,+ method: HttpMethod.GET,+ path: '/schedules/default',+ version: calcomCommon.versions.schedules,+ });+ },+});diff --git a/packages/pieces/community/cal-com/src/lib/actions/get-event-type.ts b/packages/pieces/community/cal-com/src/lib/actions/get-event-type.tsnew file mode 100644index 00000000000..02ee67621ea--- /dev/null+++ b/packages/pieces/community/cal-com/src/lib/actions/get-event-type.ts@@ -0,0 +1,38 @@+import { createAction, Property } from '@activepieces/pieces-framework';+import { HttpMethod } from '@activepieces/pieces-common';+import { calcomAuth } from '../auth';+import { calcomCommon } from '../common';+import { eventTypeActionOutputSchema } from '../output-schemas';++export const calcomGetEventType = createAction({+ auth: calcomAuth,+ name: 'calcom_get_event_type',+ classification: 'READ',+ displayName: 'Get Event Type',+ description: 'Get the full configuration of a single Cal.com event type by id.',+ audience: 'ai',+ outputSchema: eventTypeActionOutputSchema,+ aiMetadata: {+ description:+ 'Retrieves full details for one event type by id, including duration, booking window and location settings. Get the id from List Event Types. Does not include the event type\'s bookings.',+ idempotent: true,+ },+ props: {+ event_type_id: Property.Number({+ displayName: 'Event Type ID',+ description: 'Get this from List Event Types.',+ required: true,+ }),+ },+ async run(context) {+ const { auth, propsValue } = context;+ const { event_type_id } = propsValue;++ return await calcomCommon.calRequest({+ apiKey: auth.secret_text,+ method: HttpMethod.GET,+ path: `/event-types/${event_type_id}`,+ version: calcomCommon.versions.eventTypes,+ });+ },+});diff --git a/packages/pieces/community/cal-com/src/lib/actions/get-my-profile.ts b/packages/pieces/community/cal-com/src/lib/actions/get-my-profile.tsnew file mode 100644index 00000000000..a4c446fe574--- /dev/null+++ b/packages/pieces/community/cal-com/src/lib/actions/get-my-profile.ts@@ -0,0 +1,30 @@+import { createAction } from '@activepieces/pieces-framework';+import { HttpMethod } from '@activepieces/pieces-common';+import { calcomAuth } from '../auth';+import { calcomCommon } from '../common';+import { profileActionOutputSchema } from '../output-schemas';++export const calcomGetMyProfile = createAction({+ auth: calcomAuth,+ name: 'calcom_get_my_profile',+ classification: 'READ',+ displayName: 'Get My Profile',+ description: 'Get the profile of the connected Cal.com user.',+ audience: 'ai',+ outputSchema: profileActionOutputSchema,+ aiMetadata: {+ description:+ 'Retrieves the authenticated user\'s own profile: id, name, email, username and default timezone. Common prerequisite for actions that need the current user\'s id or timezone.',+ idempotent: true,+ },+ props: {},+ async run(context) {+ const { auth } = context;++ return await calcomCommon.calRequest({+ apiKey: auth.secret_text,+ method: HttpMethod.GET,+ path: '/me',+ });+ },+});diff --git a/packages/pieces/community/cal-com/src/lib/actions/get-schedule.ts b/packages/pieces/community/cal-com/src/lib/actions/get-schedule.tsnew file mode 100644index 00000000000..51fded17b98--- /dev/null+++ b/packages/pieces/community/cal-com/src/lib/actions/get-schedule.ts@@ -0,0 +1,38 @@+import { createAction, Property } from '@activepieces/pieces-framework';+import { HttpMethod } from '@activepieces/pieces-common';+import { calcomAuth } from '../auth';+import { calcomCommon } from '../common';+import { scheduleActionOutputSchema } from '../output-schemas';++export const calcomGetSchedule = createAction({+ auth: calcomAuth,+ name: 'calcom_get_schedule',+ classification: 'READ',+ displayName: 'Get Schedule',+ description: 'Get the full details of one availability schedule by id.',+ audience: 'ai',+ outputSchema: scheduleActionOutputSchema,+ aiMetadata: {+ description:+ 'Retrieves full details for one availability schedule by id, including its weekly availability blocks and date overrides. Get the id from List Schedules.',+ idempotent: true,+ },+ props: {+ schedule_id: Property.Number({+ displayName: 'Schedule ID',+ description: 'Get this from List Schedules.',+ required: true,+ }),+ },+ async run(context) {+ const { auth, propsValue } = context;+ const { schedule_id } = propsValue;++ return await calcomCommon.calRequest({+ apiKey: auth.secret_text,+ method: HttpMethod.GET,+ path: `/schedules/${schedule_id}`,+ version: calcomCommon.versions.schedules,+ });+ },+});diff --git a/packages/pieces/community/cal-com/src/lib/actions/index.ts b/packages/pieces/community/cal-com/src/lib/actions/index.tsnew file mode 100644index 00000000000..5569fc05375--- /dev/null+++ b/packages/pieces/community/cal-com/src/lib/actions/index.ts@@ -0,0 +1,62 @@+import { createCustomApiCallAction } from '@activepieces/pieces-common';+import { calcomAuth } from '../auth';+import { calcomListEventTypes } from './list-event-types';+import { calcomGetEventType } from './get-event-type';+import { calcomCreateEventType } from './create-event-type';+import { calcomUpdateEventType } from './update-event-type';+import { calcomDeleteEventType } from './delete-event-type';+import { calcomListBookings } from './list-bookings';+import { calcomGetBooking } from './get-booking';+import { calcomCreateBooking } from './create-booking';+import { calcomCancelBooking } from './cancel-booking';+import { calcomRescheduleBooking } from './reschedule-booking';+import { calcomConfirmBooking } from './confirm-booking';+import { calcomDeclineBooking } from './decline-booking';+import { calcomMarkBookingNoShow } from './mark-booking-no-show';+import { calcomAddAttendee } from './add-attendee';+import { calcomGetAvailableSlots } from './get-available-slots';+import { calcomListSchedules } from './list-schedules';+import { calcomGetSchedule } from './get-schedule';+import { calcomCreateSchedule } from './create-schedule';+import { calcomUpdateSchedule } from './update-schedule';+import { calcomDeleteSchedule } from './delete-schedule';+import { calcomGetDefaultSchedule } from './get-default-schedule';+import { calcomListTimezones } from './list-timezones';+import { calcomGetMyProfile } from './get-my-profile';+import { calcomUpdateMyProfile } from './update-my-profile';+import { calcomListTeams } from './list-teams';++export const actions = [+ calcomListEventTypes,+ calcomGetEventType,+ calcomCreateEventType,+ calcomUpdateEventType,+ calcomDeleteEventType,+ calcomListBookings,+ calcomGetBooking,+ calcomCreateBooking,+ calcomCancelBooking,+ calcomRescheduleBooking,+ calcomConfirmBooking,+ calcomDeclineBooking,+ calcomMarkBookingNoShow,+ calcomAddAttendee,+ calcomGetAvailableSlots,+ calcomListSchedules,+ calcomGetSchedule,+ calcomCreateSchedule,+ calcomUpdateSchedule,+ calcomDeleteSchedule,+ calcomGetDefaultSchedule,+ calcomListTimezones,+ calcomGetMyProfile,+ calcomUpdateMyProfile,+ calcomListTeams,+ createCustomApiCallAction({+ baseUrl: () => 'https://api.cal.com/v2',+ auth: calcomAuth,+ authMapping: async (auth) => ({+ Authorization: `Bearer ${auth.secret_text}`,+ }),+ }),+];diff --git a/packages/pieces/community/cal-com/src/lib/actions/list-bookings.ts b/packages/pieces/community/cal-com/src/lib/actions/list-bookings.tsnew file mode 100644index 00000000000..4329f3ecc84--- /dev/null+++ b/packages/pieces/community/cal-com/src/lib/actions/list-bookings.ts@@ -0,0 +1,111 @@+import { createAction, Property } from '@activepieces/pieces-framework';+import { HttpMethod } from '@activepieces/pieces-common';+import { calcomAuth } from '../auth';+import { calcomCommon } from '../common';+import { listBookingsActionOutputSchema } from '../output-schemas';++const MAX_PAGE_SIZE = 100;++export const calcomListBookings = createAction({+ auth: calcomAuth,+ name: 'calcom_list_bookings',+ classification: 'SEARCH',+ displayName: 'List Bookings',+ description: 'Search Cal.com bookings by status, attendee, event type or date range.',+ audience: 'ai',+ outputSchema: listBookingsActionOutputSchema,+ aiMetadata: {+ description:+ 'Lists bookings with optional filters, including a team ID from List Teams. Returns { bookings, nextCursor, hasMore } — pass nextCursor as Cursor on the next call when hasMore is true. Use Get Booking for the full detail of a single result.',+ idempotent: true,+ },+ props: {+ status: Property.StaticDropdown({+ displayName: 'Status',+ required: false,+ options: {+ options: [+ { label: 'Upcoming', value: 'upcoming' },+ { label: 'Recurring', value: 'recurring' },+ { label: 'Past', value: 'past' },+ { label: 'Cancelled', value: 'cancelled' },+ { label: 'Unconfirmed', value: 'unconfirmed' },+ ],+ },+ }),+ attendee_email: Property.ShortText({+ displayName: 'Attendee Email',+ required: false,+ }),+ attendee_name: Property.ShortText({+ displayName: 'Attendee Name',+ required: false,+ }),+ event_type_id: Property.Number({+ displayName: 'Event Type ID',+ required: false,+ }),+ team_id: Property.Number({+ displayName: 'Team ID',+ description: 'Get this from List Teams.',+ required: false,+ }),+ after_start: Property.ShortText({+ displayName: 'Starting After',+ description: 'ISO 8601 timestamp. Only bookings starting after this time.',+ required: false,+ }),+ before_end: Property.ShortText({+ displayName: 'Ending Before',+ description: 'ISO 8601 timestamp. Only bookings ending before this time.',+ required: false,+ }),+ limit: Property.Number({+ displayName: 'Limit',+ description: `1-${MAX_PAGE_SIZE}, default 50.`,+ required: false,+ }),+ cursor: Property.ShortText({+ displayName: 'Cursor',+ description: 'Pass the cursor from a previous call to get the next page.',+ required: false,+ }),+ },+ async run(context) {+ const { auth, propsValue } = context;+ const {+ status,+ attendee_email,+ attendee_name,+ event_type_id,+ team_id,+ after_start,+ before_end,+ limit,+ cursor,+ } = propsValue;++ const clampedLimit =+ limit === undefined ? undefined : Math.min(Math.max(limit, 1), MAX_PAGE_SIZE);++ const { data, nextCursor, hasMore } = await calcomCommon.calRequestPaginated({+ apiKey: auth.secret_text,+ method: HttpMethod.GET,+ path: '/bookings',+ version: calcomCommon.versions.bookingsList,+ query: {+ status,+ attendeeEmail: attendee_email,+ attendeeName: attendee_name,+ eventTypeId: event_type_id,+ teamId: team_id,+ afterStart: after_start,+ beforeEnd: before_end,+ limit: clampedLimit,+ cursor,+ },+ });++ return { bookings: data, nextCursor, hasMore };+ },+});diff --git a/packages/pieces/community/cal-com/src/lib/actions/list-event-types.ts b/packages/pieces/community/cal-com/src/lib/actions/list-event-types.tsnew file mode 100644index 00000000000..e4aecbaab1b--- /dev/null+++ b/packages/pieces/community/cal-com/src/lib/actions/list-event-types.ts@@ -0,0 +1,53 @@+import { createAction, Property } from '@activepieces/pieces-framework';+import { HttpMethod } from '@activepieces/pieces-common';+import { calcomAuth } from '../auth';+import { calcomCommon } from '../common';+import { listEventTypesActionOutputSchema } from '../output-schemas';++export const calcomListEventTypes = createAction({+ auth: calcomAuth,+ name: 'calcom_list_event_types',+ classification: 'SEARCH',+ displayName: 'List Event Types',+ description: 'List Cal.com event types, optionally filtered by owner.',+ audience: 'ai',+ outputSchema: listEventTypesActionOutputSchema,+ aiMetadata: {+ description:+ 'Lists event types. With no filters, returns the event types owned by the connected API key. Use this to resolve an event type id before creating or updating a booking or event type.',+ idempotent: true,+ },+ props: {+ username: Property.ShortText({+ displayName: 'Username',+ description: 'Only event types owned by this Cal.com username. Leave empty to list your own.',+ required: false,+ }),+ event_slug: Property.ShortText({+ displayName: 'Event Slug',+ description: 'Filter to the event type with this exact slug. Requires Username to be set too.',+ required: false,+ }),+ org_slug: Property.ShortText({+ displayName: 'Organization Slug',+ description: 'Only used together with Username / Event Slug when booking through an organization.',+ required: false,+ }),+ },+ async run(context) {+ const { auth, propsValue } = context;+ const { username, event_slug, org_slug } = propsValue;++ return await calcomCommon.calRequest({+ apiKey: auth.secret_text,+ method: HttpMethod.GET,+ path: '/event-types',+ version: calcomCommon.versions.eventTypes,+ query: {+ username,+ eventSlug: event_slug,+ orgSlug: org_slug,+ },+ });+ },+});diff --git a/packages/pieces/community/cal-com/src/lib/actions/list-schedules.ts b/packages/pieces/community/cal-com/src/lib/actions/list-schedules.tsnew file mode 100644index 00000000000..8ef1926eaaf--- /dev/null+++ b/packages/pieces/community/cal-com/src/lib/actions/list-schedules.ts@@ -0,0 +1,31 @@+import { createAction } from '@activepieces/pieces-framework';+import { HttpMethod } from '@activepieces/pieces-common';+import { calcomAuth } from '../auth';+import { calcomCommon } from '../common';+import { listSchedulesActionOutputSchema } from '../output-schemas';++export const calcomListSchedules = createAction({+ auth: calcomAuth,+ name: 'calcom_list_schedules',+ classification: 'SEARCH',+ displayName: 'List Schedules',+ description: 'List all of the connected user\'s availability schedules.',+ audience: 'ai',+ outputSchema: listSchedulesActionOutputSchema,+ aiMetadata: {+ description:+ 'Lists the authenticated user\'s availability schedules, including which one is marked default. Use to resolve a schedule id before Get Schedule, Update Schedule or Delete Schedule.',+ idempotent: true,+ },+ props: {},+ async run(context) {+ const { auth } = context;++ return await calcomCommon.calRequest({+ apiKey: auth.secret_text,+ method: HttpMethod.GET,+ path: '/schedules',+ version: calcomCommon.versions.schedules,+ });+ },+});diff --git a/packages/pieces/community/cal-com/src/lib/actions/list-teams.ts b/packages/pieces/community/cal-com/src/lib/actions/list-teams.tsnew file mode 100644index 00000000000..c7e671de66b--- /dev/null+++ b/packages/pieces/community/cal-com/src/lib/actions/list-teams.ts@@ -0,0 +1,28 @@+import { createAction } from '@activepieces/pieces-framework';+import { HttpMethod } from '@activepieces/pieces-common';+import { calcomAuth } from '../auth';+import { calcomCommon } from '../common';++export const calcomListTeams = createAction({+ auth: calcomAuth,+ name: 'calcom_list_teams',+ classification: 'SEARCH',+ displayName: 'List Teams',+ description: 'List the teams the connected Cal.com user belongs to.',+ audience: 'ai',+ aiMetadata: {+ description:+ 'Lists the authenticated user\'s teams, with their ids. Use to resolve a team id for filtering List Bookings by team.',+ idempotent: true,+ },+ props: {},+ async run(context) {+ const { auth } = context;++ return await calcomCommon.calRequest({+ apiKey: auth.secret_text,+ method: HttpMethod.GET,+ path: '/teams',+ });+ },+});diff --git a/packages/pieces/community/cal-com/src/lib/actions/list-timezones.ts b/packages/pieces/community/cal-com/src/lib/actions/list-timezones.tsnew file mode 100644index 00000000000..21423da10cf--- /dev/null+++ b/packages/pieces/community/cal-com/src/lib/actions/list-timezones.ts@@ -0,0 +1,44 @@+import { createAction, Property } from '@activepieces/pieces-framework';+import { HttpMethod } from '@activepieces/pieces-common';+import { calcomAuth } from '../auth';+import { calcomCommon } from '../common';+import { listTimezonesActionOutputSchema } from '../output-schemas';++export const calcomListTimezones = createAction({+ auth: calcomAuth,+ name: 'calcom_list_timezones',+ classification: 'SEARCH',+ displayName: 'List Timezones',+ description: 'List valid IANA timezone strings Cal.com accepts.',+ audience: 'ai',+ outputSchema: listTimezonesActionOutputSchema,+ aiMetadata: {+ description:+ 'Lists valid IANA timezone identifiers (e.g. Europe/Berlin), optionally filtered by a search term. Use to find a valid value for actions that take a timezone, such as Create Booking or Create Schedule.',+ idempotent: true,+ },+ props: {+ search: Property.ShortText({+ displayName: 'Search',+ required: false,+ }),+ limit: Property.Number({+ displayName: 'Limit',+ required: false,+ }),+ },+ async run(context) {+ const { auth, propsValue } = context;+ const { search, limit } = propsValue;++ return await calcomCommon.calRequest({+ apiKey: auth.secret_text,+ method: HttpMethod.GET,+ path: '/timezones',+ query: {+ search,+ limit,+ },+ });+ },+});diff --git a/packages/pieces/community/cal-com/src/lib/actions/mark-booking-no-show.ts b/packages/pieces/community/cal-com/src/lib/actions/mark-booking-no-show.tsnew file mode 100644index 00000000000..0ffa4b3fa5c--- /dev/null+++ b/packages/pieces/community/cal-com/src/lib/actions/mark-booking-no-show.ts@@ -0,0 +1,81 @@+import { createAction, Property } from '@activepieces/pieces-framework';+import { HttpMethod } from '@activepieces/pieces-common';+import { calcomAuth } from '../auth';+import { calcomCommon } from '../common';+import { bookingActionOutputSchema } from '../output-schemas';++function toOptionalBoolean(value: string | undefined): boolean | undefined {+ return value === undefined ? undefined : value === 'true';+}++const YES_NO_OPTIONS = {+ options: [+ { label: 'Yes', value: 'true' },+ { label: 'No', value: 'false' },+ ],+};++export const calcomMarkBookingNoShow = createAction({+ auth: calcomAuth,+ name: 'calcom_mark_booking_no_show',+ classification: 'WRITE',+ displayName: 'Mark Booking No-Show',+ description: 'Mark the host and/or a specific attendee absent for a Cal.com booking.',+ audience: 'ai',+ outputSchema: bookingActionOutputSchema,+ aiMetadata: {+ description:+ 'Flags whether the host and/or one attendee (by email) were absent for a booking. At least one of Host Absent or Attendee Email must be set. Idempotent: re-applying the same absent flag is a no-op.',+ idempotent: true,+ },+ props: {+ booking_uid: Property.ShortText({+ displayName: 'Booking UID',+ required: true,+ }),+ host_absent: Property.StaticDropdown({+ displayName: 'Host Absent',+ required: false,+ options: YES_NO_OPTIONS,+ }),+ attendee_email: Property.ShortText({+ displayName: 'Attendee Email',+ description: 'Leave empty to only set Host Absent.',+ required: false,+ }),+ attendee_absent: Property.StaticDropdown({+ displayName: 'Attendee Absent',+ description: 'Only used together with Attendee Email. Defaults to Yes.',+ required: false,+ options: YES_NO_OPTIONS,+ }),+ },+ async run(context) {+ const { auth, propsValue } = context;+ const { booking_uid, host_absent, attendee_email, attendee_absent } = propsValue;++ const hostValue = toOptionalBoolean(host_absent);+ if (hostValue === undefined && attendee_email === undefined) {+ throw new Error('Set at least one of Host Absent or Attendee Email.');+ }++ const body: Record<string, unknown> = {};+ if (hostValue !== undefined) body['host'] = hostValue;+ if (attendee_email !== undefined) {+ body['attendees'] = [+ {+ email: attendee_email,+ absent: toOptionalBoolean(attendee_absent) ?? true,+ },+ ];+ }++ return await calcomCommon.calRequest({+ apiKey: auth.secret_text,+ method: HttpMethod.POST,+ path: `/bookings/${booking_uid}/mark-absent`,+ version: calcomCommon.versions.bookingsItem,+ body,+ });+ },+});diff --git a/packages/pieces/community/cal-com/src/lib/actions/reschedule-booking.ts b/packages/pieces/community/cal-com/src/lib/actions/reschedule-booking.tsnew file mode 100644index 00000000000..b0574952553--- /dev/null+++ b/packages/pieces/community/cal-com/src/lib/actions/reschedule-booking.ts@@ -0,0 +1,50 @@+import { createAction, Property } from '@activepieces/pieces-framework';+import { HttpMethod } from '@activepieces/pieces-common';+import { calcomAuth } from '../auth';+import { calcomCommon } from '../common';+import { bookingActionOutputSchema } from '../output-schemas';++export const calcomRescheduleBooking = createAction({+ auth: calcomAuth,+ name: 'calcom_reschedule_booking',+ classification: 'WRITE',+ displayName: 'Reschedule Booking',+ description: 'Move a Cal.com booking to a new start time.',+ audience: 'ai',+ outputSchema: bookingActionOutputSchema,+ aiMetadata: {+ description:+ 'Reschedules a booking to a new start time; the vendor issues a new booking uid for the moved booking, returned in the response. Use Get Available Slots to find a valid new time. Not idempotent: repeating the same call reschedules again.',+ idempotent: false,+ },+ props: {+ booking_uid: Property.ShortText({+ displayName: 'Booking UID',+ required: true,+ }),+ start: Property.ShortText({+ displayName: 'New Start Time',+ description: 'ISO 8601 timestamp.',+ required: true,+ }),+ rescheduling_reason: Property.LongText({+ displayName: 'Reason',+ required: false,+ }),+ },+ async run(context) {+ const { auth, propsValue } = context;+ const { booking_uid, start, rescheduling_reason } = propsValue;++ return await calcomCommon.calRequest({+ apiKey: auth.secret_text,+ method: HttpMethod.POST,+ path: `/bookings/${booking_uid}/reschedule`,+ version: calcomCommon.versions.bookingsItem,+ body: {+ start,+ ...(rescheduling_reason !== undefined ? { reschedulingReason: rescheduling_reason } : {}),+ },+ });+ },+});diff --git a/packages/pieces/community/cal-com/src/lib/actions/update-event-type.ts b/packages/pieces/community/cal-com/src/lib/actions/update-event-type.tsnew file mode 100644index 00000000000..4b5c16c743e--- /dev/null+++ b/packages/pieces/community/cal-com/src/lib/actions/update-event-type.ts@@ -0,0 +1,100 @@+import { createAction, Property } from '@activepieces/pieces-framework';+import { HttpMethod } from '@activepieces/pieces-common';+import { calcomAuth } from '../auth';+import { calcomCommon } from '../common';+import { eventTypeActionOutputSchema } from '../output-schemas';++function toOptionalBoolean(value: string | undefined): boolean | undefined {+ return value === undefined ? undefined : value === 'true';+}++export const calcomUpdateEventType = createAction({+ auth: calcomAuth,+ name: 'calcom_update_event_type',+ classification: 'WRITE',+ displayName: 'Update Event Type',+ description: 'Update an existing Cal.com event type. Only the fields you set are changed.',+ audience: 'ai',+ outputSchema: eventTypeActionOutputSchema,+ aiMetadata: {+ description:+ 'Partially updates an event type by id: an omitted field keeps its current value. Get the id from List Event Types. Use Additional Fields for any of the many advanced Cal.com event-type settings not exposed directly here (e.g. booking limits, recurrence, locations) — it is merged into the same request. To clear Title/Description, pass a single space; Cal.com silently ignores a true empty string. Idempotent: repeating with the same input yields the same final state.',+ idempotent: true,+ },+ props: {+ event_type_id: Property.Number({+ displayName: 'Event Type ID',+ description: 'Get this from List Event Types.',+ required: true,+ }),+ title: Property.ShortText({+ displayName: 'Title',+ required: false,+ }),+ slug: Property.ShortText({+ displayName: 'Slug',+ required: false,+ }),+ description: Property.LongText({+ displayName: 'Description',+ required: false,+ }),+ length_in_minutes: Property.Number({+ displayName: 'Length (Minutes)',+ required: false,+ }),+ schedule_id: Property.Number({+ displayName: 'Schedule ID',+ description: 'Assign a different availability schedule than the owner\'s default one. Get this from List Schedules.',+ required: false,+ }),+ hidden: Property.StaticDropdown({+ displayName: 'Hidden',+ description: 'Leave unset to keep the current visibility.',+ required: false,+ options: {+ options: [+ { label: 'Yes', value: 'true' },+ { label: 'No', value: 'false' },+ ],+ },+ }),+ additional_fields: Property.Json({+ displayName: 'Additional Fields',+ description: 'Advanced event-type fields not listed above, as a JSON object matching the Cal.com v2 Update Event Type request body (e.g. {"bookingLimitsCount": {...}}).',+ required: false,+ }),+ },+ async run(context) {+ const { auth, propsValue } = context;+ const {+ event_type_id,+ title,+ slug,+ description,+ length_in_minutes,+ schedule_id,+ hidden,+ additional_fields,+ } = propsValue;++ const body: Record<string, unknown> = {+ ...(additional_fields as Record<string, unknown> | undefined),+ };+ if (title !== undefined) body['title'] = title;+ if (slug !== undefined) body['slug'] = slug;+ if (description !== undefined) body['description'] = description;+ if (length_in_minutes !== undefined) body['lengthInMinutes'] = length_in_minutes;+ if (schedule_id !== undefined) body['scheduleId'] = schedule_id;+ const hiddenValue = toOptionalBoolean(hidden);+ if (hiddenValue !== undefined) body['hidden'] = hiddenValue;++ return await calcomCommon.calRequest({+ apiKey: auth.secret_text,+ method: HttpMethod.PATCH,+ path: `/event-types/${event_type_id}`,+ version: calcomCommon.versions.eventTypes,+ body,+ });+ },+});diff --git a/packages/pieces/community/cal-com/src/lib/actions/update-my-profile.ts b/packages/pieces/community/cal-com/src/lib/actions/update-my-profile.tsnew file mode 100644index 00000000000..d93a57c48b4--- /dev/null+++ b/packages/pieces/community/cal-com/src/lib/actions/update-my-profile.ts@@ -0,0 +1,93 @@+import { createAction, Property } from '@activepieces/pieces-framework';+import { HttpMethod } from '@activepieces/pieces-common';+import { calcomAuth } from '../auth';+import { calcomCommon } from '../common';+import { profileActionOutputSchema } from '../output-schemas';++export const calcomUpdateMyProfile = createAction({+ auth: calcomAuth,+ name: 'calcom_update_my_profile',+ classification: 'WRITE',+ displayName: 'Update My Profile',+ description: 'Update the connected Cal.com user\'s own profile. Only the fields you set are changed.',+ audience: 'ai',+ outputSchema: profileActionOutputSchema,+ aiMetadata: {+ description:+ 'Partially updates the authenticated user\'s own profile: an omitted field keeps its current value. To clear Bio, pass a single space; Cal.com silently ignores a true empty string. Idempotent: repeating with the same input yields the same final state.',+ idempotent: true,+ },+ props: {+ name: Property.ShortText({+ displayName: 'Name',+ required: false,+ }),+ email: Property.ShortText({+ displayName: 'Email',+ required: false,+ }),+ time_zone: Property.ShortText({+ displayName: 'Timezone',+ description: 'IANA timezone, e.g. Europe/Berlin. Get valid values from List Timezones.',+ required: false,+ }),+ default_schedule_id: Property.Number({+ displayName: 'Default Schedule ID',+ description: 'Get this from List Schedules.',+ required: false,+ }),+ week_start: Property.ShortText({+ displayName: 'Week Start',+ description: 'e.g. Monday.',+ required: false,+ }),+ time_format: Property.StaticDropdown({+ displayName: 'Time Format',+ required: false,+ options: {+ options: [+ { label: '12-hour', value: '12' },+ { label: '24-hour', value: '24' },+ ],+ },+ }),+ locale: Property.ShortText({+ displayName: 'Locale',+ required: false,+ }),+ bio: Property.LongText({+ displayName: 'Bio',+ required: false,+ }),+ },+ async run(context) {+ const { auth, propsValue } = context;+ const {+ name,+ email,+ time_zone,+ default_schedule_id,+ week_start,+ time_format,+ locale,+ bio,+ } = propsValue;++ const body: Record<string, unknown> = {};+ if (name !== undefined) body['name'] = name;+ if (email !== undefined) body['email'] = email;+ if (time_zone !== undefined) body['timeZone'] = time_zone;+ if (default_schedule_id !== undefined) body['defaultScheduleId'] = default_schedule_id;+ if (week_start !== undefined) body['weekStart'] = week_start;+ if (time_format !== undefined) body['timeFormat'] = Number(time_format);+ if (locale !== undefined) body['locale'] = locale;+ if (bio !== undefined) body['bio'] = bio;++ return await calcomCommon.calRequest({+ apiKey: auth.secret_text,+ method: HttpMethod.PATCH,+ path: '/me',+ body,+ });+ },+});diff --git a/packages/pieces/community/cal-com/src/lib/actions/update-schedule.ts b/packages/pieces/community/cal-com/src/lib/actions/update-schedule.tsnew file mode 100644index 00000000000..a2a777caa1b--- /dev/null+++ b/packages/pieces/community/cal-com/src/lib/actions/update-schedule.ts@@ -0,0 +1,80 @@+import { createAction, Property } from '@activepieces/pieces-framework';+import { HttpMethod } from '@activepieces/pieces-common';+import { calcomAuth } from '../auth';+import { calcomCommon } from '../common';+import { scheduleActionOutputSchema } from '../output-schemas';++function toOptionalBoolean(value: string | undefined): boolean | undefined {+ return value === undefined ? undefined : value === 'true';+}++export const calcomUpdateSchedule = createAction({+ auth: calcomAuth,+ name: 'calcom_update_schedule',+ classification: 'WRITE',+ displayName: 'Update Schedule',+ description: 'Update an existing availability schedule. Only the fields you set are changed.',+ audience: 'ai',+ outputSchema: scheduleActionOutputSchema,+ aiMetadata: {+ description:+ 'Partially updates a schedule by id: an omitted field keeps its current value, except Availability and Date Overrides, which are fully replaced (not merged) when supplied — read the current schedule with Get Schedule first if you need to change one block while keeping the rest. Idempotent: repeating with the same input yields the same final state.',+ idempotent: true,+ },+ props: {+ schedule_id: Property.Number({+ displayName: 'Schedule ID',+ description: 'Get this from List Schedules.',+ required: true,+ }),+ name: Property.ShortText({+ displayName: 'Name',+ required: false,+ }),+ time_zone: Property.ShortText({+ displayName: 'Timezone',+ required: false,+ }),+ is_default: Property.StaticDropdown({+ displayName: 'Is Default',+ description: 'Leave unset to keep the current default schedule unchanged.',+ required: false,+ options: {+ options: [+ { label: 'Yes', value: 'true' },+ { label: 'No', value: 'false' },+ ],+ },+ }),+ availability: Property.Json({+ displayName: 'Availability (full replacement)',+ description: 'If set, replaces the entire weekly availability array, e.g. [{"days": ["Monday"], "startTime": "09:00", "endTime": "17:00"}].',+ required: false,+ }),+ overrides: Property.Json({+ displayName: 'Date Overrides (full replacement)',+ description: 'If set, replaces the entire date-overrides array, e.g. [{"date": "2026-05-20", "startTime": "12:00", "endTime": "13:00"}].',+ required: false,+ }),+ },+ async run(context) {+ const { auth, propsValue } = context;+ const { schedule_id, name, time_zone, is_default, availability, overrides } = propsValue;++ const body: Record<string, unknown> = {};+ if (name !== undefined) body['name'] = name;+ if (time_zone !== undefined) body['timeZone'] = time_zone;+ const isDefaultValue = toOptionalBoolean(is_default);+ if (isDefaultValue !== undefined) body['isDefault'] = isDefaultValue;+ if (availability !== undefined) body['availability'] = availability;+ if (overrides !== undefined) body['overrides'] = overrides;++ return await calcomCommon.calRequest({+ apiKey: auth.secret_text,+ method: HttpMethod.PATCH,+ path: `/schedules/${schedule_id}`,+ version: calcomCommon.versions.schedules,+ body,+ });+ },+});diff --git a/packages/pieces/community/cal-com/src/lib/auth.ts b/packages/pieces/community/cal-com/src/lib/auth.tsnew file mode 100644index 00000000000..7998f10437e--- /dev/null+++ b/packages/pieces/community/cal-com/src/lib/auth.ts@@ -0,0 +1,7 @@+import { PieceAuth } from '@activepieces/pieces-framework';++export const calcomAuth = PieceAuth.SecretText({+ displayName: 'API Key',+ description: 'API Key provided by cal.com',+ required: true,+});diff --git a/packages/pieces/community/cal-com/src/lib/common/client.ts b/packages/pieces/community/cal-com/src/lib/common/client.tsnew file mode 100644index 00000000000..7cd3ebbbb81--- /dev/null+++ b/packages/pieces/community/cal-com/src/lib/common/client.ts@@ -0,0 +1,122 @@+import {+ AuthenticationType,+ HttpError,+ HttpMethod,+ HttpRequest,+ httpClient,+} from '@activepieces/pieces-common';++type QueryValue = string | number | boolean | undefined;++interface CalPagination {+ nextCursor: string | null;+ hasMore: boolean;+}++interface CalEnvelope<T> {+ status: 'success' | 'error';+ data: T;+ pagination?: CalPagination;+}++function toQueryParams(+ query?: Record<string, QueryValue>+): Record<string, string> {+ const params: Record<string, string> = {};+ for (const [key, value] of Object.entries(query ?? {})) {+ if (value !== undefined) {+ params[key] = String(value);+ }+ }+ return params;+}++function mapCalError(error: unknown): Error {+ if (!(error instanceof HttpError)) {+ return error instanceof Error ? error : new Error(String(error));+ }++ const status = error.response.status;+ const body = error.response.body as+ | { error?: { message?: string }; message?: string }+ | undefined;+ const message = body?.error?.message ?? body?.message ?? JSON.stringify(body);++ if (status === 403) {+ return new Error(`Cal.com API key is not authorized for this request: ${message}`);+ }+ if (status === 404) {+ return new Error(`Cal.com resource not found: ${message}`);+ }+ if (status === 429) {+ return new Error(`Cal.com API rate limit exceeded: ${message}`);+ }+ return new Error(`Cal.com API error (${status}): ${message}`);+}++interface CalRequestParams {+ apiKey: string;+ method: HttpMethod;+ path: string;+ version?: string;+ query?: Record<string, QueryValue>;+ body?: unknown;+}++async function sendCalRequest<T>(params: CalRequestParams): Promise<CalEnvelope<T> | undefined> {+ const { apiKey, method, path, version, query, body } = params;+ const request: HttpRequest = {+ method,+ url: `https://api.cal.com/v2${path}`,+ authentication: {+ type: AuthenticationType.BEARER_TOKEN,+ token: apiKey,+ },+ headers: version ? { 'cal-api-version': version } : undefined,+ queryParams: toQueryParams(query),+ body,+ };++ let response;+ try {+ response = await httpClient.sendRequest<CalEnvelope<T>>(request);+ } catch (error) {+ throw mapCalError(error);+ }+ if (!response.body) {+ return undefined;+ }+ if (response.body.status === 'error') {+ throw new Error(`Cal.com API returned an error: ${JSON.stringify(response.body)}`);+ }+ return response.body;+}++async function calRequest<T>(params: CalRequestParams): Promise<T> {+ const envelope = await sendCalRequest<T>(params);+ return envelope?.data as T;+}++async function calRequestPaginated<T>(+ params: CalRequestParams+): Promise<{ data: T; nextCursor: string | null; hasMore: boolean }> {+ const envelope = await sendCalRequest<T>(params);+ return {+ data: envelope?.data as T,+ nextCursor: envelope?.pagination?.nextCursor ?? null,+ hasMore: envelope?.pagination?.hasMore ?? false,+ };+}++export const calcomCommon = {+ calRequest,+ calRequestPaginated,+ versions: {+ eventTypes: '2026-06-12',+ bookingsList: '2026-05-01',+ bookingsItem: '2026-02-25',+ attendees: '2024-08-13',+ slots: '2024-09-04',+ schedules: '2024-06-11',+ },+};diff --git a/packages/pieces/community/cal-com/src/lib/common.ts b/packages/pieces/community/cal-com/src/lib/common/index.tssimilarity index 85%rename from packages/pieces/community/cal-com/src/lib/common.tsrename to packages/pieces/community/cal-com/src/lib/common/index.tsindex 5c93b6f3d03..0c159c17cf8 100644--- a/packages/pieces/community/cal-com/src/lib/common.ts+++ b/packages/pieces/community/cal-com/src/lib/common/index.ts@@ -1,3 +1,5 @@+export * from './client';+export const enum EventTrigger {BOOKING_CREATED = 'BOOKING_CREATED',BOOKING_RESCHEDULED = 'BOOKING_RESCHEDULED',diff --git a/packages/pieces/community/cal-com/src/lib/output-schemas.ts b/packages/pieces/community/cal-com/src/lib/output-schemas.tsnew file mode 100644index 00000000000..8ac461c240c--- /dev/null+++ b/packages/pieces/community/cal-com/src/lib/output-schemas.ts@@ -0,0 +1,233 @@+import { OutputSchema } from '@activepieces/pieces-framework';++const eventTypeFields: OutputSchema['fields'] = [+ { key: 'id', label: 'Event Type ID' },+ { key: 'title', label: 'Title' },+ { key: 'slug', label: 'Slug' },+ { key: 'description', label: 'Description' },+ { key: 'lengthInMinutes', label: 'Length (Minutes)', format: 'number' },+ { key: 'hidden', label: 'Hidden', format: 'boolean' },+ { key: 'scheduleId', label: 'Schedule ID', format: 'number' },+ { key: 'bookingUrl', label: 'Booking URL', format: 'url' },+ { key: 'price', label: 'Price', format: 'number' },+ { key: 'currency', label: 'Currency' },+];++const bookingFields: OutputSchema['fields'] = [+ { key: 'id', label: 'Booking ID' },+ { key: 'uid', label: 'Booking UID' },+ { key: 'title', label: 'Title' },+ { key: 'description', label: 'Description' },+ { key: 'status', label: 'Status' },+ { key: 'start', label: 'Start Time', format: 'datetime' },+ { key: 'end', label: 'End Time', format: 'datetime' },+ { key: 'duration', label: 'Duration (Minutes)', format: 'number' },+ { key: 'location', label: 'Location', format: 'url' },+ { key: 'meetingUrl', label: 'Meeting URL', format: 'url' },+ { key: 'cancellationReason', label: 'Cancellation Reason' },+ { key: 'eventTypeId', label: 'Event Type ID', format: 'number' },+ {+ key: 'eventType',+ label: 'Event Type',+ children: [+ { key: 'id', label: 'Event Type ID' },+ { key: 'slug', label: 'Slug' },+ ],+ },+ {+ key: 'hosts',+ label: 'Hosts',+ labelKey: 'name',+ listItems: [+ { key: 'id', label: 'Host ID' },+ { key: 'name', label: 'Name' },+ { key: 'email', label: 'Email', format: 'email' },+ { key: 'timeZone', label: 'Timezone' },+ ],+ },+ {+ key: 'attendees',+ label: 'Attendees',+ labelKey: 'name',+ listItems: [+ { key: 'name', label: 'Name' },+ { key: 'email', label: 'Email', format: 'email' },+ { key: 'timeZone', label: 'Timezone' },+ { key: 'absent', label: 'Absent', format: 'boolean' },+ ],+ },+];++const scheduleFields: OutputSchema['fields'] = [+ { key: 'id', label: 'Schedule ID' },+ { key: 'name', label: 'Name' },+ { key: 'timeZone', label: 'Timezone' },+ { key: 'isDefault', label: 'Is Default', format: 'boolean' },+ {+ key: 'availability',+ label: 'Availability',+ labelKey: 'startTime',+ listItems: [+ { key: 'days', label: 'Days' },+ { key: 'startTime', label: 'Start Time' },+ { key: 'endTime', label: 'End Time' },+ ],+ },+ {+ key: 'overrides',+ label: 'Date Overrides',+ labelKey: 'date',+ listItems: [+ { key: 'date', label: 'Date', format: 'date' },+ { key: 'startTime', label: 'Start Time' },+ { key: 'endTime', label: 'End Time' },+ ],+ },+];++const profileFields: OutputSchema['fields'] = [+ { key: 'id', label: 'User ID' },+ { key: 'username', label: 'Username' },+ { key: 'name', label: 'Name' },+ { key: 'email', label: 'Email', format: 'email' },+ { key: 'bio', label: 'Bio' },+ { key: 'timeZone', label: 'Timezone' },+ { key: 'weekStart', label: 'Week Start' },+ { key: 'timeFormat', label: 'Time Format', format: 'number' },+ { key: 'defaultScheduleId', label: 'Default Schedule ID', format: 'number' },+ { key: 'avatarUrl', label: 'Avatar URL', format: 'image' },+];++export const listEventTypesActionOutputSchema: OutputSchema = {+ itemLabel: '{title}',+ fields: [+ { key: 'eventTypes', label: 'Event Types', value: '', listItems: eventTypeFields },+ ],+};++export const eventTypeActionOutputSchema: OutputSchema = {+ fields: eventTypeFields,+};++export const deleteEventTypeActionOutputSchema: OutputSchema = {+ fields: [+ { key: 'id', label: 'Event Type ID' },+ { key: 'title', label: 'Title' },+ { key: 'slug', label: 'Slug' },+ { key: 'lengthInMinutes', label: 'Length (Minutes)', format: 'number' },+ ],+};++export const listBookingsActionOutputSchema: OutputSchema = {+ fields: [+ { key: 'bookings', label: 'Bookings', labelKey: 'title', listItems: bookingFields },+ { key: 'nextCursor', label: 'Next Cursor' },+ { key: 'hasMore', label: 'Has More', format: 'boolean' },+ ],+};++export const bookingActionOutputSchema: OutputSchema = {+ fields: bookingFields,+};++export const addAttendeeActionOutputSchema: OutputSchema = {+ fields: [+ { key: 'id', label: 'Attendee ID' },+ { key: 'bookingId', label: 'Booking ID' },+ { key: 'name', label: 'Name' },+ { key: 'email', label: 'Email', format: 'email' },+ { key: 'timeZone', label: 'Timezone' },+ { key: 'absent', label: 'Absent', format: 'boolean' },+ ],+};++export const availableSlotsActionOutputSchema: OutputSchema = {+ fields: [+ {+ key: 'slots',+ label: 'Available Slots by Date',+ value: '',+ dynamicKey: true,+ description: 'Each key is a date (YYYY-MM-DD); each value is an array of slot objects with a `start` ISO timestamp.',+ },+ ],+};++export const listSchedulesActionOutputSchema: OutputSchema = {+ itemLabel: '{name}',+ fields: [+ { key: 'schedules', label: 'Schedules', value: '', listItems: scheduleFields },+ ],+};++export const scheduleActionOutputSchema: OutputSchema = {+ fields: scheduleFields,+};++export const listTimezonesActionOutputSchema: OutputSchema = {+ itemLabel: '{city}, {country}',+ fields: [+ {+ key: 'timezones',+ label: 'Timezones',+ value: '',+ listItems: [+ { key: 'city', label: 'City' },+ { key: 'timezone', label: 'Timezone' },+ { key: 'country', label: 'Country' },+ { key: 'region', label: 'Region' },+ ],+ },+ ],+};++export const profileActionOutputSchema: OutputSchema = {+ fields: profileFields,+};++const bookingEventFields: OutputSchema['fields'] = [+ { key: 'triggerEvent', label: 'Trigger Event' },+ { key: 'createdAt', label: 'Created At', format: 'datetime' },+ {+ key: 'payload',+ label: 'Booking',+ children: [+ { key: 'uid', label: 'Booking UID' },+ { key: 'title', label: 'Title' },+ { key: 'type', label: 'Event Type Slug' },+ { key: 'description', label: 'Description' },+ { key: 'startTime', label: 'Start Time', format: 'datetime' },+ { key: 'endTime', label: 'End Time', format: 'datetime' },+ { key: 'status', label: 'Status' },+ { key: 'location', label: 'Location' },+ { key: 'eventTypeId', label: 'Event Type ID', format: 'number' },+ { key: 'cancellationReason', label: 'Cancellation Reason' },+ { key: 'rescheduleUid', label: 'Reschedule UID' },+ { key: 'rescheduleStartTime', label: 'Rescheduled Start Time', format: 'datetime' },+ { key: 'rescheduleEndTime', label: 'Rescheduled End Time', format: 'datetime' },+ {+ key: 'organizer',+ label: 'Organizer',+ children: [+ { key: 'name', label: 'Name' },+ { key: 'email', label: 'Email', format: 'email' },+ { key: 'timeZone', label: 'Timezone' },+ ],+ },+ {+ key: 'attendees',+ label: 'Attendees',+ labelKey: 'name',+ listItems: [+ { key: 'name', label: 'Name' },+ { key: 'email', label: 'Email', format: 'email' },+ { key: 'timeZone', label: 'Timezone' },+ ],+ },+ ],+ },+];++export const bookingEventTriggerOutputSchema: OutputSchema = {+ fields: bookingEventFields,+};diff --git a/packages/pieces/community/cal-com/src/lib/triggers/index.ts b/packages/pieces/community/cal-com/src/lib/triggers/index.tsindex 508187009bd..e93690550da 100644--- a/packages/pieces/community/cal-com/src/lib/triggers/index.ts+++ b/packages/pieces/community/cal-com/src/lib/triggers/index.ts@@ -1,4 +1,5 @@import { EventTrigger } from '../common';+import { bookingEventTriggerOutputSchema } from '../output-schemas';import { registerWebhooks } from './register-webhook';export const triggers = [@@ -194,5 +195,6 @@ export const triggers = [displayName: eventTrigger.displayName,sampleData: eventTrigger.sampleData,description: `Create a webhook to monitor when ${eventTrigger.displayName}`,+ outputSchema: bookingEventTriggerOutputSchema,}));diff --git a/packages/pieces/community/cal-com/src/lib/triggers/register-webhook.ts b/packages/pieces/community/cal-com/src/lib/triggers/register-webhook.tsindex 775b015008a..767cc2784fd 100644--- a/packages/pieces/community/cal-com/src/lib/triggers/register-webhook.ts+++ b/packages/pieces/community/cal-com/src/lib/triggers/register-webhook.ts@@ -1,5 +1,6 @@import {createTrigger,+ OutputSchema,Trigger,TriggerStrategy,Property,@@ -9,7 +10,7 @@ import {HttpRequest,HttpMethod,} from '@activepieces/pieces-common';-import { calcomAuth } from '../..';+import { calcomAuth } from '../auth';export const registerWebhooks = ({name,@@ -17,12 +18,14 @@ export const registerWebhooks = ({displayName,sampleData,aiMetadata,+ outputSchema,}: {name: string;description: string;displayName: string;sampleData: Record<string, unknown>;aiMetadata?: { description: string };+ outputSchema?: OutputSchema;}) =>createTrigger({auth: calcomAuth,@@ -31,6 +34,7 @@ export const registerWebhooks = ({description,displayName,aiMetadata,+ outputSchema,props: {},sampleData: sampleData,type: TriggerStrategy.WEBHOOK,