import { type IntegrationAccountReference } from "../../automation/integrations.js"; /** Options shared by Airtable base-wide and schema triggers. */ export interface AirtableBaseTriggerOptions { /** Airtable account binding that can access and manage webhooks for the base. */ account?: string | IntegrationAccountReference<"airtable">; /** Stable Airtable base ID. */ baseId: string; } /** Options shared by Airtable table record triggers. */ export interface AirtableTableTriggerOptions { /** Airtable account binding that can access and manage webhooks for the base. */ account?: string | IntegrationAccountReference<"airtable">; /** Stable Airtable base ID. */ baseId: string; /** Stable Airtable table ID. */ tableId: string; } /** Options shared by Airtable view membership triggers. */ export interface AirtableViewTriggerOptions { /** Airtable account binding that can access and manage webhooks for the base. */ account?: string | IntegrationAccountReference<"airtable">; /** Stable Airtable base ID. */ baseId: string; /** Stable Airtable view ID. */ viewId: string; } /** Starts an automation for every data, field, or table transaction in a base. */ export declare const onAirtableBaseEvent: (options: AirtableBaseTriggerOptions) => import("../..").Signal<{ baseId: string; event: { [x: string]: import("zod").JSONType; actionMetadata: { [x: string]: import("zod").JSONType; source: string; sourceMetadata?: Record | undefined; }; baseTransactionNumber: number; payloadFormat: string; timestamp: string; changedTablesById?: Record | undefined; changedMetadata?: { [x: string]: unknown; current: { description?: string | null | undefined; name?: string | undefined; }; previous: { description?: string | null | undefined; name?: string | undefined; }; } | undefined; changedRecordsById?: Record; }; previous?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; unchanged?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; }> | undefined; changedViewsById?: Record; }; previous?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; unchanged?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; }> | undefined; createdRecordsById?: Record; createdTime: string; }> | undefined; destroyedRecordIds?: string[] | undefined; }> | undefined; createdRecordsById?: Record; createdTime: string; }> | undefined; createdFieldsById?: Record | undefined; destroyedFieldIds?: string[] | undefined; destroyedRecordIds?: string[] | undefined; }> | undefined; createdTablesById?: Record | undefined; metadata?: { description: string | null; name: string; } | undefined; recordsById?: Record; createdTime: string; }> | undefined; }> | undefined; code?: string | undefined; error?: true | undefined; destroyedTableIds?: string[] | undefined; }; occurredAt: string; source: string; transactionNumber: number; sourceMetadata?: Record | undefined; }>; /** Starts an automation when Airtable creates a table in a base. */ export declare const onAirtableTableCreated: (options: AirtableBaseTriggerOptions) => import("../..").Signal<{ baseId: string; event: { [x: string]: import("zod").JSONType; actionMetadata: { [x: string]: import("zod").JSONType; source: string; sourceMetadata?: Record | undefined; }; baseTransactionNumber: number; payloadFormat: string; timestamp: string; changedTablesById?: Record | undefined; changedMetadata?: { [x: string]: unknown; current: { description?: string | null | undefined; name?: string | undefined; }; previous: { description?: string | null | undefined; name?: string | undefined; }; } | undefined; changedRecordsById?: Record; }; previous?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; unchanged?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; }> | undefined; changedViewsById?: Record; }; previous?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; unchanged?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; }> | undefined; createdRecordsById?: Record; createdTime: string; }> | undefined; destroyedRecordIds?: string[] | undefined; }> | undefined; createdRecordsById?: Record; createdTime: string; }> | undefined; createdFieldsById?: Record | undefined; destroyedFieldIds?: string[] | undefined; destroyedRecordIds?: string[] | undefined; }> | undefined; createdTablesById?: Record | undefined; metadata?: { description: string | null; name: string; } | undefined; recordsById?: Record; createdTime: string; }> | undefined; }> | undefined; code?: string | undefined; error?: true | undefined; destroyedTableIds?: string[] | undefined; }; occurredAt: string; source: string; transactionNumber: number; tableId: string; fields: Record; sourceMetadata?: Record | undefined; metadata?: { description: string | null; name: string; } | undefined; }>; /** Starts an automation when Airtable updates a table's metadata. */ export declare const onAirtableTableUpdated: (options: AirtableBaseTriggerOptions) => import("../..").Signal<{ baseId: string; event: { [x: string]: import("zod").JSONType; actionMetadata: { [x: string]: import("zod").JSONType; source: string; sourceMetadata?: Record | undefined; }; baseTransactionNumber: number; payloadFormat: string; timestamp: string; changedTablesById?: Record | undefined; changedMetadata?: { [x: string]: unknown; current: { description?: string | null | undefined; name?: string | undefined; }; previous: { description?: string | null | undefined; name?: string | undefined; }; } | undefined; changedRecordsById?: Record; }; previous?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; unchanged?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; }> | undefined; changedViewsById?: Record; }; previous?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; unchanged?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; }> | undefined; createdRecordsById?: Record; createdTime: string; }> | undefined; destroyedRecordIds?: string[] | undefined; }> | undefined; createdRecordsById?: Record; createdTime: string; }> | undefined; createdFieldsById?: Record | undefined; destroyedFieldIds?: string[] | undefined; destroyedRecordIds?: string[] | undefined; }> | undefined; createdTablesById?: Record | undefined; metadata?: { description: string | null; name: string; } | undefined; recordsById?: Record; createdTime: string; }> | undefined; }> | undefined; code?: string | undefined; error?: true | undefined; destroyedTableIds?: string[] | undefined; }; occurredAt: string; source: string; transactionNumber: number; tableId: string; current: { description?: string | null | undefined; name?: string | undefined; }; previous: { description?: string | null | undefined; name?: string | undefined; }; sourceMetadata?: Record | undefined; }>; /** Starts an automation when Airtable deletes a table from a base. */ export declare const onAirtableTableDeleted: (options: AirtableBaseTriggerOptions) => import("../..").Signal<{ baseId: string; event: { [x: string]: import("zod").JSONType; actionMetadata: { [x: string]: import("zod").JSONType; source: string; sourceMetadata?: Record | undefined; }; baseTransactionNumber: number; payloadFormat: string; timestamp: string; changedTablesById?: Record | undefined; changedMetadata?: { [x: string]: unknown; current: { description?: string | null | undefined; name?: string | undefined; }; previous: { description?: string | null | undefined; name?: string | undefined; }; } | undefined; changedRecordsById?: Record; }; previous?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; unchanged?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; }> | undefined; changedViewsById?: Record; }; previous?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; unchanged?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; }> | undefined; createdRecordsById?: Record; createdTime: string; }> | undefined; destroyedRecordIds?: string[] | undefined; }> | undefined; createdRecordsById?: Record; createdTime: string; }> | undefined; createdFieldsById?: Record | undefined; destroyedFieldIds?: string[] | undefined; destroyedRecordIds?: string[] | undefined; }> | undefined; createdTablesById?: Record | undefined; metadata?: { description: string | null; name: string; } | undefined; recordsById?: Record; createdTime: string; }> | undefined; }> | undefined; code?: string | undefined; error?: true | undefined; destroyedTableIds?: string[] | undefined; }; occurredAt: string; source: string; transactionNumber: number; tableId: string; sourceMetadata?: Record | undefined; }>; /** Starts an automation when Airtable creates a field in a base. */ export declare const onAirtableFieldCreated: (options: AirtableBaseTriggerOptions) => import("../..").Signal<{ baseId: string; event: { [x: string]: import("zod").JSONType; actionMetadata: { [x: string]: import("zod").JSONType; source: string; sourceMetadata?: Record | undefined; }; baseTransactionNumber: number; payloadFormat: string; timestamp: string; changedTablesById?: Record | undefined; changedMetadata?: { [x: string]: unknown; current: { description?: string | null | undefined; name?: string | undefined; }; previous: { description?: string | null | undefined; name?: string | undefined; }; } | undefined; changedRecordsById?: Record; }; previous?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; unchanged?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; }> | undefined; changedViewsById?: Record; }; previous?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; unchanged?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; }> | undefined; createdRecordsById?: Record; createdTime: string; }> | undefined; destroyedRecordIds?: string[] | undefined; }> | undefined; createdRecordsById?: Record; createdTime: string; }> | undefined; createdFieldsById?: Record | undefined; destroyedFieldIds?: string[] | undefined; destroyedRecordIds?: string[] | undefined; }> | undefined; createdTablesById?: Record | undefined; metadata?: { description: string | null; name: string; } | undefined; recordsById?: Record; createdTime: string; }> | undefined; }> | undefined; code?: string | undefined; error?: true | undefined; destroyedTableIds?: string[] | undefined; }; occurredAt: string; source: string; transactionNumber: number; tableId: string; fieldId: string; field: { name: string; type: string; }; sourceMetadata?: Record | undefined; }>; /** Starts an automation when Airtable updates a field definition. */ export declare const onAirtableFieldUpdated: (options: AirtableBaseTriggerOptions) => import("../..").Signal<{ baseId: string; event: { [x: string]: import("zod").JSONType; actionMetadata: { [x: string]: import("zod").JSONType; source: string; sourceMetadata?: Record | undefined; }; baseTransactionNumber: number; payloadFormat: string; timestamp: string; changedTablesById?: Record | undefined; changedMetadata?: { [x: string]: unknown; current: { description?: string | null | undefined; name?: string | undefined; }; previous: { description?: string | null | undefined; name?: string | undefined; }; } | undefined; changedRecordsById?: Record; }; previous?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; unchanged?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; }> | undefined; changedViewsById?: Record; }; previous?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; unchanged?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; }> | undefined; createdRecordsById?: Record; createdTime: string; }> | undefined; destroyedRecordIds?: string[] | undefined; }> | undefined; createdRecordsById?: Record; createdTime: string; }> | undefined; createdFieldsById?: Record | undefined; destroyedFieldIds?: string[] | undefined; destroyedRecordIds?: string[] | undefined; }> | undefined; createdTablesById?: Record | undefined; metadata?: { description: string | null; name: string; } | undefined; recordsById?: Record; createdTime: string; }> | undefined; }> | undefined; code?: string | undefined; error?: true | undefined; destroyedTableIds?: string[] | undefined; }; occurredAt: string; source: string; transactionNumber: number; tableId: string; fieldId: string; current: { name?: string | undefined; type?: string | undefined; }; sourceMetadata?: Record | undefined; previous?: { name?: string | undefined; type?: string | undefined; } | undefined; }>; /** Starts an automation when Airtable deletes a field from a base. */ export declare const onAirtableFieldDeleted: (options: AirtableBaseTriggerOptions) => import("../..").Signal<{ baseId: string; event: { [x: string]: import("zod").JSONType; actionMetadata: { [x: string]: import("zod").JSONType; source: string; sourceMetadata?: Record | undefined; }; baseTransactionNumber: number; payloadFormat: string; timestamp: string; changedTablesById?: Record | undefined; changedMetadata?: { [x: string]: unknown; current: { description?: string | null | undefined; name?: string | undefined; }; previous: { description?: string | null | undefined; name?: string | undefined; }; } | undefined; changedRecordsById?: Record; }; previous?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; unchanged?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; }> | undefined; changedViewsById?: Record; }; previous?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; unchanged?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; }> | undefined; createdRecordsById?: Record; createdTime: string; }> | undefined; destroyedRecordIds?: string[] | undefined; }> | undefined; createdRecordsById?: Record; createdTime: string; }> | undefined; createdFieldsById?: Record | undefined; destroyedFieldIds?: string[] | undefined; destroyedRecordIds?: string[] | undefined; }> | undefined; createdTablesById?: Record | undefined; metadata?: { description: string | null; name: string; } | undefined; recordsById?: Record; createdTime: string; }> | undefined; }> | undefined; code?: string | undefined; error?: true | undefined; destroyedTableIds?: string[] | undefined; }; occurredAt: string; source: string; transactionNumber: number; tableId: string; fieldId: string; sourceMetadata?: Record | undefined; }>; /** * Starts an automation when Airtable creates a record in one table. * * @param options - Static Airtable account, base, and table selection. */ export declare const onAirtableRecordCreated: (options: AirtableTableTriggerOptions) => import("../..").Signal<{ baseId: string; event: { [x: string]: import("zod").JSONType; actionMetadata: { [x: string]: import("zod").JSONType; source: string; sourceMetadata?: Record | undefined; }; baseTransactionNumber: number; payloadFormat: string; timestamp: string; changedTablesById?: Record | undefined; changedMetadata?: { [x: string]: unknown; current: { description?: string | null | undefined; name?: string | undefined; }; previous: { description?: string | null | undefined; name?: string | undefined; }; } | undefined; changedRecordsById?: Record; }; previous?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; unchanged?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; }> | undefined; changedViewsById?: Record; }; previous?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; unchanged?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; }> | undefined; createdRecordsById?: Record; createdTime: string; }> | undefined; destroyedRecordIds?: string[] | undefined; }> | undefined; createdRecordsById?: Record; createdTime: string; }> | undefined; createdFieldsById?: Record | undefined; destroyedFieldIds?: string[] | undefined; destroyedRecordIds?: string[] | undefined; }> | undefined; createdTablesById?: Record | undefined; metadata?: { description: string | null; name: string; } | undefined; recordsById?: Record; createdTime: string; }> | undefined; }> | undefined; code?: string | undefined; error?: true | undefined; destroyedTableIds?: string[] | undefined; }; occurredAt: string; recordId: string; source: string; tableId: string; transactionNumber: number; createdAt: string; fields: Record; sourceMetadata?: Record | undefined; }>; /** * Starts an automation when Airtable updates a record in one table. * * @param options - Static Airtable account, base, and table selection. */ export declare const onAirtableRecordUpdated: (options: AirtableTableTriggerOptions) => import("../..").Signal<{ baseId: string; event: { [x: string]: import("zod").JSONType; actionMetadata: { [x: string]: import("zod").JSONType; source: string; sourceMetadata?: Record | undefined; }; baseTransactionNumber: number; payloadFormat: string; timestamp: string; changedTablesById?: Record | undefined; changedMetadata?: { [x: string]: unknown; current: { description?: string | null | undefined; name?: string | undefined; }; previous: { description?: string | null | undefined; name?: string | undefined; }; } | undefined; changedRecordsById?: Record; }; previous?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; unchanged?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; }> | undefined; changedViewsById?: Record; }; previous?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; unchanged?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; }> | undefined; createdRecordsById?: Record; createdTime: string; }> | undefined; destroyedRecordIds?: string[] | undefined; }> | undefined; createdRecordsById?: Record; createdTime: string; }> | undefined; createdFieldsById?: Record | undefined; destroyedFieldIds?: string[] | undefined; destroyedRecordIds?: string[] | undefined; }> | undefined; createdTablesById?: Record | undefined; metadata?: { description: string | null; name: string; } | undefined; recordsById?: Record; createdTime: string; }> | undefined; }> | undefined; code?: string | undefined; error?: true | undefined; destroyedTableIds?: string[] | undefined; }; occurredAt: string; recordId: string; source: string; tableId: string; transactionNumber: number; changedFieldIds: string[]; fields: Record; previousFields: Record; sourceMetadata?: Record | undefined; }>; /** * Starts an automation when Airtable deletes a record from one table. * * @param options - Static Airtable account, base, and table selection. */ export declare const onAirtableRecordDeleted: (options: AirtableTableTriggerOptions) => import("../..").Signal<{ baseId: string; event: { [x: string]: import("zod").JSONType; actionMetadata: { [x: string]: import("zod").JSONType; source: string; sourceMetadata?: Record | undefined; }; baseTransactionNumber: number; payloadFormat: string; timestamp: string; changedTablesById?: Record | undefined; changedMetadata?: { [x: string]: unknown; current: { description?: string | null | undefined; name?: string | undefined; }; previous: { description?: string | null | undefined; name?: string | undefined; }; } | undefined; changedRecordsById?: Record; }; previous?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; unchanged?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; }> | undefined; changedViewsById?: Record; }; previous?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; unchanged?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; }> | undefined; createdRecordsById?: Record; createdTime: string; }> | undefined; destroyedRecordIds?: string[] | undefined; }> | undefined; createdRecordsById?: Record; createdTime: string; }> | undefined; createdFieldsById?: Record | undefined; destroyedFieldIds?: string[] | undefined; destroyedRecordIds?: string[] | undefined; }> | undefined; createdTablesById?: Record | undefined; metadata?: { description: string | null; name: string; } | undefined; recordsById?: Record; createdTime: string; }> | undefined; }> | undefined; code?: string | undefined; error?: true | undefined; destroyedTableIds?: string[] | undefined; }; occurredAt: string; recordId: string; source: string; tableId: string; transactionNumber: number; sourceMetadata?: Record | undefined; }>; /** * Starts an automation when a record becomes visible in one Airtable view. * * @param options - Static Airtable account, base, and view selection. */ export declare const onAirtableRecordMovedIntoView: (options: AirtableViewTriggerOptions) => import("../..").Signal<{ baseId: string; event: { [x: string]: import("zod").JSONType; actionMetadata: { [x: string]: import("zod").JSONType; source: string; sourceMetadata?: Record | undefined; }; baseTransactionNumber: number; payloadFormat: string; timestamp: string; changedTablesById?: Record | undefined; changedMetadata?: { [x: string]: unknown; current: { description?: string | null | undefined; name?: string | undefined; }; previous: { description?: string | null | undefined; name?: string | undefined; }; } | undefined; changedRecordsById?: Record; }; previous?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; unchanged?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; }> | undefined; changedViewsById?: Record; }; previous?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; unchanged?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; }> | undefined; createdRecordsById?: Record; createdTime: string; }> | undefined; destroyedRecordIds?: string[] | undefined; }> | undefined; createdRecordsById?: Record; createdTime: string; }> | undefined; createdFieldsById?: Record | undefined; destroyedFieldIds?: string[] | undefined; destroyedRecordIds?: string[] | undefined; }> | undefined; createdTablesById?: Record | undefined; metadata?: { description: string | null; name: string; } | undefined; recordsById?: Record; createdTime: string; }> | undefined; }> | undefined; code?: string | undefined; error?: true | undefined; destroyedTableIds?: string[] | undefined; }; occurredAt: string; recordId: string; source: string; tableId: string; transactionNumber: number; createdAt: string; fields: Record; viewId: string; sourceMetadata?: Record | undefined; }>; /** * Starts an automation when a record stops being visible in one Airtable view. * * @param options - Static Airtable account, base, and view selection. */ export declare const onAirtableRecordMovedOutOfView: (options: AirtableViewTriggerOptions) => import("../..").Signal<{ baseId: string; event: { [x: string]: import("zod").JSONType; actionMetadata: { [x: string]: import("zod").JSONType; source: string; sourceMetadata?: Record | undefined; }; baseTransactionNumber: number; payloadFormat: string; timestamp: string; changedTablesById?: Record | undefined; changedMetadata?: { [x: string]: unknown; current: { description?: string | null | undefined; name?: string | undefined; }; previous: { description?: string | null | undefined; name?: string | undefined; }; } | undefined; changedRecordsById?: Record; }; previous?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; unchanged?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; }> | undefined; changedViewsById?: Record; }; previous?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; unchanged?: { [x: string]: unknown; cellValuesByFieldId: Record; } | undefined; }> | undefined; createdRecordsById?: Record; createdTime: string; }> | undefined; destroyedRecordIds?: string[] | undefined; }> | undefined; createdRecordsById?: Record; createdTime: string; }> | undefined; createdFieldsById?: Record | undefined; destroyedFieldIds?: string[] | undefined; destroyedRecordIds?: string[] | undefined; }> | undefined; createdTablesById?: Record | undefined; metadata?: { description: string | null; name: string; } | undefined; recordsById?: Record; createdTime: string; }> | undefined; }> | undefined; code?: string | undefined; error?: true | undefined; destroyedTableIds?: string[] | undefined; }; occurredAt: string; recordId: string; source: string; tableId: string; transactionNumber: number; viewId: string; sourceMetadata?: Record | undefined; }>; //# sourceMappingURL=triggers.d.ts.map