Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(customer-analytics): google calendar integration kind, meeting models, settings (#78501)

Arthur Moreira de Deus9daf9d6e1861
diff --git a/.semgrep/rules/security/idor-team-scoped-models.yaml b/.semgrep/rules/security/idor-team-scoped-models.yaml
index e3c1f2359de8..76c0ab3bf2aa 100644
--- a/.semgrep/rules/security/idor-team-scoped-models.yaml
+++ b/.semgrep/rules/security/idor-team-scoped-models.yaml
@@ -219,6 +219,8 @@ rules:
|ManagedWarehouseBackfillPartition
|ManagedWarehouseSourceJob
|MarketingAnalyticsGoalMapping
+ |Meeting
+ |MeetingParticipant
|MessageCategory
|MessageRecipientPreference
|MessageSuppression
@@ -560,6 +562,8 @@ rules:
|ManagedWarehouseBackfillPartition
|ManagedWarehouseSourceJob
|MarketingAnalyticsGoalMapping
+ |Meeting
+ |MeetingParticipant
|MessageCategory
|MessageRecipientPreference
|MessageSuppression
diff --git a/frontend/src/lib/integrations/integrationsLogic.ts b/frontend/src/lib/integrations/integrationsLogic.ts
index 5b1dfe2b6ea2..6e7c73873588 100644
--- a/frontend/src/lib/integrations/integrationsLogic.ts
+++ b/frontend/src/lib/integrations/integrationsLogic.ts
@@ -65,6 +65,7 @@ export interface integrationsLogicValues {
| 'gitlab'
| 'google-ads'
| 'google-analytics'
+ | 'google-calendar'
| 'google-cloud-service-account'
| 'google-cloud-storage'
| 'google-pubsub'
@@ -143,6 +144,7 @@ export interface integrationsLogicActions {
| 'gitlab'
| 'google-ads'
| 'google-analytics'
+ | 'google-calendar'
| 'google-cloud-service-account'
| 'google-cloud-storage'
| 'google-pubsub'
@@ -254,6 +256,7 @@ export interface integrationsLogicActions {
| 'gitlab'
| 'google-ads'
| 'google-analytics'
+ | 'google-calendar'
| 'google-cloud-service-account'
| 'google-cloud-storage'
| 'google-pubsub'
@@ -305,6 +308,7 @@ export interface integrationsLogicActions {
| 'gitlab'
| 'google-ads'
| 'google-analytics'
+ | 'google-calendar'
| 'google-cloud-service-account'
| 'google-cloud-storage'
| 'google-pubsub'
@@ -373,6 +377,7 @@ export interface integrationsLogicActions {
| 'gitlab'
| 'google-ads'
| 'google-analytics'
+ | 'google-calendar'
| 'google-cloud-service-account'
| 'google-cloud-storage'
| 'google-pubsub'
@@ -428,6 +433,7 @@ export interface integrationsLogicActions {
| 'gitlab'
| 'google-ads'
| 'google-analytics'
+ | 'google-calendar'
| 'google-cloud-service-account'
| 'google-cloud-storage'
| 'google-pubsub'
@@ -476,6 +482,7 @@ export interface integrationsLogicActions {
| 'gitlab'
| 'google-ads'
| 'google-analytics'
+ | 'google-calendar'
| 'google-cloud-service-account'
| 'google-cloud-storage'
| 'google-pubsub'
@@ -535,6 +542,7 @@ export interface integrationsLogicActions {
| 'gitlab'
| 'google-ads'
| 'google-analytics'
+ | 'google-calendar'
| 'google-cloud-service-account'
| 'google-cloud-storage'
| 'google-pubsub'
@@ -579,6 +587,7 @@ export interface integrationsLogicActions {
| 'gitlab'
| 'google-ads'
| 'google-analytics'
+ | 'google-calendar'
| 'google-cloud-service-account'
| 'google-cloud-storage'
| 'google-pubsub'
@@ -636,6 +645,7 @@ export interface integrationsLogicMeta {
| 'gitlab'
| 'google-ads'
| 'google-analytics'
+ | 'google-calendar'
| 'google-cloud-service-account'
| 'google-cloud-storage'
| 'google-pubsub'
diff --git a/frontend/src/lib/integrations/utils.ts b/frontend/src/lib/integrations/utils.ts
index 18eb5e9d889f..50f62c986ef2 100644
--- a/frontend/src/lib/integrations/utils.ts
+++ b/frontend/src/lib/integrations/utils.ts
@@ -18,6 +18,7 @@ import IconGoogleCloud from 'public/services/google-cloud.png'
import IconGoogleSearchConsole from 'public/services/google-search-console.svg'
import IconGoogleSheets from 'public/services/google-sheets.svg'
import IconGoogleAnalytics from 'public/services/google_analytics.png'
+import IconGoogleCalendar from 'public/services/google_calendar.png'
import IconHubspot from 'public/services/hubspot.png'
import IconIntercom from 'public/services/intercom.png'
import IconJira from 'public/services/jira.svg'
@@ -48,6 +49,7 @@ export const ICONS: Record<IntegrationKind, any> = {
'google-cloud-service-account': IconGoogleCloud,
'google-ads': IconGoogleAds,
'google-analytics': IconGoogleAnalytics,
+ 'google-calendar': IconGoogleCalendar,
'google-search-console': IconGoogleSearchConsole,
'google-sheets': IconGoogleSheets,
snapchat: IconSnapchat,
@@ -95,6 +97,8 @@ export const getIntegrationNameFromKind = (kind: string): string => {
return 'Google Ads'
case 'google-analytics':
return 'Google Analytics'
+ case 'google-calendar':
+ return 'Google Calendar'
case 'google-search-console':
return 'Google Search Console'
case 'google-cloud-service-account':
diff --git a/frontend/src/queries/schema.json b/frontend/src/queries/schema.json
index b32dc3561b50..66f0c5d8c3a7 100644
--- a/frontend/src/queries/schema.json
+++ b/frontend/src/queries/schema.json
@@ -28429,6 +28429,7 @@
"google-cloud-storage",
"google-ads",
"google-analytics",
+ "google-calendar",
"google-search-console",
"google-sheets",
"linkedin-ads",
diff --git a/frontend/src/scenes/settings/SettingsMap.tsx b/frontend/src/scenes/settings/SettingsMap.tsx
index f5699dcc8906..a27a78b74b1f 100644
--- a/frontend/src/scenes/settings/SettingsMap.tsx
+++ b/frontend/src/scenes/settings/SettingsMap.tsx
@@ -53,6 +53,7 @@ import {
WarehouseGroupPropertiesSetting,
WarehousePersonPropertiesSetting,
} from 'products/customer_analytics/frontend/scenes/CustomerAnalyticsConfigurationScene/account/WarehousePersonPropertiesSetting'
+import { CalendarSyncConfig } from 'products/customer_analytics/frontend/scenes/CustomerAnalyticsConfigurationScene/calendar/CalendarSyncConfig'
import { CustomerAnalyticsDashboardEvents } from 'products/customer_analytics/frontend/scenes/CustomerAnalyticsConfigurationScene/events/CustomerAnalyticsDashboardEvents'
import { ExceptionAutocaptureToggle } from 'products/error_tracking/frontend/scenes/ErrorTrackingConfigurationScene/exception_autocapture/ExceptionAutocaptureSettings'
import { SuppressionRules } from 'products/error_tracking/frontend/scenes/ErrorTrackingConfigurationScene/suppression_rules/SuppressionRules'
@@ -453,6 +454,15 @@ export const SETTINGS_MAP: SettingSection[] = [
flag: ['CUSTOMER_ANALYTICS', 'CUSTOMER_ANALYTICS_CSP'],
keywords: ['accounts', 'group', 'b2b'],
},
+ {
+ id: 'customer-analytics-calendar-sync',
+ title: 'Calendar sync',
+ description:
+ 'Connect your Google Calendar to sync meetings with customers into their accounts. Each team member connects their own calendar.',
+ component: <CalendarSyncConfig />,
+ flag: ['CUSTOMER_ANALYTICS', 'CUSTOMER_ANALYTICS_CSP'],
+ keywords: ['calendar', 'meetings', 'google', 'sync', 'accounts'],
+ },
{
id: 'customer-analytics-event-stream',
title: 'Event stream',
diff --git a/frontend/src/scenes/settings/organization/organizationIntegrationsLogic.ts b/frontend/src/scenes/settings/organization/organizationIntegrationsLogic.ts
index 2f0927bec663..18cd2969522a 100644
--- a/frontend/src/scenes/settings/organization/organizationIntegrationsLogic.ts
+++ b/frontend/src/scenes/settings/organization/organizationIntegrationsLogic.ts
@@ -29,6 +29,7 @@ export interface organizationIntegrationsLogicValues {
| 'gitlab'
| 'google-ads'
| 'google-analytics'
+ | 'google-calendar'
| 'google-cloud-service-account'
| 'google-cloud-storage'
| 'google-pubsub'
@@ -98,6 +99,7 @@ export interface organizationIntegrationsLogicActions {
| 'gitlab'
| 'google-ads'
| 'google-analytics'
+ | 'google-calendar'
| 'google-cloud-service-account'
| 'google-cloud-storage'
| 'google-pubsub'
@@ -149,6 +151,7 @@ export interface organizationIntegrationsLogicActions {
| 'gitlab'
| 'google-ads'
| 'google-analytics'
+ | 'google-calendar'
| 'google-cloud-service-account'
| 'google-cloud-storage'
| 'google-pubsub'
@@ -201,6 +204,7 @@ export interface organizationIntegrationsLogicMeta {
| 'gitlab'
| 'google-ads'
| 'google-analytics'
+ | 'google-calendar'
| 'google-cloud-service-account'
| 'google-cloud-storage'
| 'google-pubsub'
diff --git a/frontend/src/scenes/settings/types.ts b/frontend/src/scenes/settings/types.ts
index cdf2360fb6ec..afa6330120b4 100644
--- a/frontend/src/scenes/settings/types.ts
+++ b/frontend/src/scenes/settings/types.ts
@@ -122,6 +122,7 @@ export type SettingId =
| 'correlation-analysis'
| 'csp-reporting'
| 'customer-analytics-accounts'
+ | 'customer-analytics-calendar-sync'
| 'customer-analytics-dashboard-events'
| 'customer-analytics-event-stream'
| 'customer-analytics-group-properties'
diff --git a/frontend/src/scenes/settings/user/personalIntegrationsLogic.ts b/frontend/src/scenes/settings/user/personalIntegrationsLogic.ts
index 0a60a21fe821..12fd14cff84c 100644
--- a/frontend/src/scenes/settings/user/personalIntegrationsLogic.ts
+++ b/frontend/src/scenes/settings/user/personalIntegrationsLogic.ts
@@ -135,6 +135,7 @@ export interface personalIntegrationsLogicActions {
| 'gitlab'
| 'google-ads'
| 'google-analytics'
+ | 'google-calendar'
| 'google-cloud-service-account'
| 'google-cloud-storage'
| 'google-pubsub'
@@ -186,6 +187,7 @@ export interface personalIntegrationsLogicActions {
| 'gitlab'
| 'google-ads'
| 'google-analytics'
+ | 'google-calendar'
| 'google-cloud-service-account'
| 'google-cloud-storage'
| 'google-pubsub'
diff --git a/frontend/src/types.ts b/frontend/src/types.ts
index 0a7b096be598..a06c06fc82a4 100644
--- a/frontend/src/types.ts
+++ b/frontend/src/types.ts
@@ -5459,6 +5459,7 @@ export const INTEGRATION_KINDS = [
'google-cloud-storage',
'google-ads',
'google-analytics',
+ 'google-calendar',
'google-search-console',
'google-sheets',
'linkedin-ads',
diff --git a/posthog/migrations/1294_add_google_calendar_integration_kind.py b/posthog/migrations/1294_add_google_calendar_integration_kind.py
new file mode 100644
index 000000000000..3f13210c39b0
--- /dev/null
+++ b/posthog/migrations/1294_add_google_calendar_integration_kind.py
@@ -0,0 +1,64 @@
+# Generated by Django 5.2.14 on 2026-08-04 17:54
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+ dependencies = [("posthog", "1293_commentslackthread_channel_name")]
+
+ operations = [
+ migrations.AlterField(
+ model_name="integration",
+ name="kind",
+ field=models.CharField(
+ choices=[
+ ("anthropic", "Anthropic"),
+ ("apns", "Apple Push"),
+ ("aws-redshift", "Aws Redshift"),
+ ("aws-s3", "Aws S3"),
+ ("azure-blob", "Azure Blob"),
+ ("bing-ads", "Bing Ads"),
+ ("clickup", "Clickup"),
+ ("customerio-app", "Customerio App"),
+ ("customerio-track", "Customerio Track"),
+ ("customerio-webhook", "Customerio Webhook"),
+ ("databricks", "Databricks"),
+ ("email", "Email"),
+ ("firebase", "Firebase"),
+ ("github", "Github"),
+ ("gitlab", "Gitlab"),
+ ("google-ads", "Google Ads"),
+ ("google-analytics", "Google Analytics"),
+ ("google-calendar", "Google Calendar"),
+ ("google-cloud-service-account", "Google Cloud Service Account"),
+ ("google-cloud-storage", "Google Cloud Storage"),
+ ("google-pubsub", "Google Pubsub"),
+ ("google-search-console", "Google Search Console"),
+ ("google-sheets", "Google Sheets"),
+ ("hubspot", "Hubspot"),
+ ("intercom", "Intercom"),
+ ("jira", "Jira"),
+ ("linear", "Linear"),
+ ("linkedin-ads", "Linkedin Ads"),
+ ("meta-ads", "Meta Ads"),
+ ("pardot", "Pardot"),
+ ("pinterest-ads", "Pinterest Ads"),
+ ("postgresql", "Postgresql"),
+ ("posthog", "Posthog"),
+ ("reddit-ads", "Reddit Ads"),
+ ("resend", "Resend"),
+ ("s3-compatible", "S3 Compatible"),
+ ("salesforce", "Salesforce"),
+ ("slack", "Slack"),
+ ("slack-posthog-code", "Slack Posthog Code"),
+ ("snapchat", "Snapchat"),
+ ("snowflake", "Snowflake"),
+ ("stripe", "Stripe"),
+ ("tiktok-ads", "Tiktok Ads"),
+ ("twilio", "Twilio"),
+ ("vercel", "Vercel"),
+ ],
+ max_length=32,
+ ),
+ ),
+ ]
diff --git a/posthog/migrations/max_migration.txt b/posthog/migrations/max_migration.txt
index 8a37914a1636..a5f696d09096 100644
--- a/posthog/migrations/max_migration.txt
+++ b/posthog/migrations/max_migration.txt
@@ -1 +1 @@
-1293_commentslackthread_channel_name
+1294_add_google_calendar_integration_kind
diff --git a/posthog/models/integration.py b/posthog/models/integration.py
index 4fed4e9246a3..69916a7cc196 100644
--- a/posthog/models/integration.py
+++ b/posthog/models/integration.py
@@ -555,6 +555,7 @@ class Integration(models.Model):
GITLAB = "gitlab"
GOOGLE_ADS = "google-ads"
GOOGLE_ANALYTICS = "google-analytics"
+ GOOGLE_CALENDAR = "google-calendar"
GOOGLE_CLOUD_SERVICE_ACCOUNT = "google-cloud-service-account"
GOOGLE_CLOUD_STORAGE = "google-cloud-storage"
GOOGLE_PUBSUB = "google-pubsub"
@@ -830,6 +831,7 @@ class OauthIntegration:
"hubspot",
"google-ads",
"google-analytics",
+ "google-calendar",
"google-search-console",
"google-sheets",
"snapchat",
@@ -1021,6 +1023,23 @@ class OauthIntegration:
id_path="sub",
name_path="email",
)
+ elif kind == "google-calendar":
+ if not settings.GOOGLE_CALENDAR_APP_CLIENT_ID or not settings.GOOGLE_CALENDAR_APP_CLIENT_SECRET:
+ raise NotImplementedError("Google Calendar app not configured")
+
+ return OauthConfig(
+ authorize_url="https://accounts.google.com/o/oauth2/v2/auth",
+ # forces the consent screen, otherwise we won't receive a refresh token
+ additional_authorize_params={"access_type": "offline", "prompt": "consent"},
+ token_info_url="https://openidconnect.googleapis.com/v1/userinfo",
+ token_info_config_fields=["sub", "email"],
+ token_url="https://oauth2.googleapis.com/token",
+ client_id=settings.GOOGLE_CALENDAR_APP_CLIENT_ID,
+ client_secret=settings.GOOGLE_CALENDAR_APP_CLIENT_SECRET,
+ scope="https://www.googleapis.com/auth/calendar.readonly https://www.googleapis.com/auth/userinfo.email",
+ id_path="sub",
+ name_path="email",
+ )
elif kind == "google-search-console":
if not settings.GOOGLE_SEARCH_CONSOLE_APP_CLIENT_ID or not settings.GOOGLE_SEARCH_CONSOLE_APP_CLIENT_SECRET:
raise NotImplementedError("Google Search Console app not configured")
diff --git a/posthog/models/test/test_integration_model.py b/posthog/models/test/test_integration_model.py
index 73595664337d..e98ab81c65e9 100644
--- a/posthog/models/test/test_integration_model.py
+++ b/posthog/models/test/test_integration_model.py
@@ -306,6 +306,8 @@ class TestOauthIntegrationModel(BaseTest):
"HUBSPOT_APP_CLIENT_SECRET": "hubspot-client-secret",
"GOOGLE_ADS_APP_CLIENT_ID": "google-client-id",
"GOOGLE_ADS_APP_CLIENT_SECRET": "google-client-secret",
+ "GOOGLE_CALENDAR_APP_CLIENT_ID": "google-calendar-client-id",
+ "GOOGLE_CALENDAR_APP_CLIENT_SECRET": "google-calendar-client-secret",
"LINKEDIN_APP_CLIENT_ID": "linkedin-client-id",
"LINKEDIN_APP_CLIENT_SECRET": "linkedin-client-secret",
}
@@ -380,6 +382,14 @@ class TestOauthIntegrationModel(BaseTest):
== "https://accounts.google.com/o/oauth2/v2/auth?client_id=google-client-id&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fadwords+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email&redirect_uri=https%3A%2F%2Flocalhost%3A8010%2Fintegrations%2Fgoogle-ads%2Fcallback&response_type=code&state=next%3D%252Fprojects%252Ftest%26token%3Dstate_token&access_type=offline&prompt=consent"
)
+ def test_authorize_url_google_calendar(self):
+ with self.settings(**self.mock_settings):
+ url = OauthIntegration.authorize_url("google-calendar", token="state_token", next="/projects/test")
+ assert (
+ url
+ == "https://accounts.google.com/o/oauth2/v2/auth?client_id=google-calendar-client-id&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcalendar.readonly+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email&redirect_uri=https%3A%2F%2Flocalhost%3A8010%2Fintegrations%2Fgoogle-calendar%2Fcallback&response_type=code&state=next%3D%252Fprojects%252Ftest%26token%3Dstate_token&access_type=offline&prompt=consent"
+ )
+
@patch("posthog.models.integration.requests.post")
def test_integration_from_oauth_response(self, mock_post):
with self.settings(**self.mock_settings):
diff --git a/posthog/schema_enums.py b/posthog/schema_enums.py
index d6c86ae31ebd..43e9204e4114 100644
--- a/posthog/schema_enums.py
+++ b/posthog/schema_enums.py
@@ -2848,6 +2848,7 @@ class IntegrationKind(StrEnum):
GOOGLE_CLOUD_STORAGE = "google-cloud-storage"
GOOGLE_ADS = "google-ads"
GOOGLE_ANALYTICS = "google-analytics"
+ GOOGLE_CALENDAR = "google-calendar"
GOOGLE_SEARCH_CONSOLE = "google-search-console"
GOOGLE_SHEETS = "google-sheets"
LINKEDIN_ADS = "linkedin-ads"
diff --git a/posthog/settings/integrations.py b/posthog/settings/integrations.py
index c9b63ed76aed..73a05cf3d467 100644
--- a/posthog/settings/integrations.py
+++ b/posthog/settings/integrations.py
@@ -31,6 +31,9 @@ GOOGLE_SEARCH_CONSOLE_APP_CLIENT_SECRET = get_from_env("GOOGLE_SEARCH_CONSOLE_AP
GOOGLE_ANALYTICS_APP_CLIENT_ID = get_from_env("GOOGLE_ANALYTICS_APP_CLIENT_ID", "")
GOOGLE_ANALYTICS_APP_CLIENT_SECRET = get_from_env("GOOGLE_ANALYTICS_APP_CLIENT_SECRET", "")
+GOOGLE_CALENDAR_APP_CLIENT_ID = get_from_env("GOOGLE_CALENDAR_APP_CLIENT_ID", "")
+GOOGLE_CALENDAR_APP_CLIENT_SECRET = get_from_env("GOOGLE_CALENDAR_APP_CLIENT_SECRET", "")
+
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = get_from_env("SOCIAL_AUTH_GOOGLE_OAUTH2_KEY", "")
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = get_from_env("SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET", "")
diff --git a/products/alerts/frontend/logic/alertNotificationLogic.ts b/products/alerts/frontend/logic/alertNotificationLogic.ts
index 6b4420e63095..5d9bd0d8fcdc 100644
--- a/products/alerts/frontend/logic/alertNotificationLogic.ts
+++ b/products/alerts/frontend/logic/alertNotificationLogic.ts
@@ -91,6 +91,7 @@ export interface alertNotificationLogicActions {
| 'gitlab'
| 'google-ads'
| 'google-analytics'
+ | 'google-calendar'
| 'google-cloud-service-account'
| 'google-cloud-storage'
| 'google-pubsub'
@@ -142,6 +143,7 @@ export interface alertNotificationLogicActions {
| 'gitlab'
| 'google-ads'
| 'google-analytics'
+ | 'google-calendar'
| 'google-cloud-service-account'
| 'google-cloud-storage'
| 'google-pubsub'
diff --git a/products/customer_analytics/backend/migrations/0030_meeting_models.py b/products/customer_analytics/backend/migrations/0030_meeting_models.py
new file mode 100644
index 000000000000..b65570d7726b
--- /dev/null
+++ b/products/customer_analytics/backend/migrations/0030_meeting_models.py
@@ -0,0 +1,148 @@
+# Generated by Django 5.2.14 on 2026-08-04 18:26
+
+import django.db.models.deletion
+from django.db import migrations, models
+
+import posthog.uuidt
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ("customer_analytics", "0029_alter_custompropertysyncrun_trigger"),
+ ("posthog", "1285_drop_desktop_file_system"),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name="Meeting",
+ fields=[
+ (
+ "id",
+ models.UUIDField(
+ default=posthog.uuidt.uuid7,
+ editable=False,
+ primary_key=True,
+ serialize=False,
+ ),
+ ),
+ ("ical_uid", models.CharField(max_length=1024)),
+ (
+ "recurrence_instance_id",
+ models.CharField(blank=True, default="", max_length=64),
+ ),
+ ("title", models.TextField(blank=True, default="")),
+ ("description", models.TextField(blank=True, default="")),
+ ("start_time", models.DateTimeField()),
+ ("end_time", models.DateTimeField(blank=True, null=True)),
+ (
+ "organizer_email",
+ models.CharField(blank=True, default="", max_length=400),
+ ),
+ ("meet_code", models.CharField(blank=True, default="", max_length=64)),
+ (
+ "status",
+ models.CharField(
+ choices=[
+ ("confirmed", "Confirmed"),
+ ("tentative", "Tentative"),
+ ("cancelled", "Cancelled"),
+ ],
+ default="confirmed",
+ max_length=16,
+ ),
+ ),
+ ("created_at", models.DateTimeField(auto_now_add=True)),
+ ("updated_at", models.DateTimeField(auto_now=True)),
+ (
+ "account",
+ models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name="meetings",
+ to="customer_analytics.account",
+ ),
+ ),
+ (
+ "team",
+ models.ForeignKey(
+ db_constraint=False,
+ on_delete=django.db.models.deletion.CASCADE,
+ to="posthog.team",
+ ),
+ ),
+ ],
+ ),
+ migrations.CreateModel(
+ name="MeetingParticipant",
+ fields=[
+ (
+ "id",
+ models.UUIDField(
+ default=posthog.uuidt.uuid7,
+ editable=False,
+ primary_key=True,
+ serialize=False,
+ ),
+ ),
+ ("email", models.CharField(max_length=400)),
+ (
+ "display_name",
+ models.CharField(blank=True, default="", max_length=400),
+ ),
+ ("person_id", models.UUIDField(blank=True, null=True)),
+ (
+ "response_status",
+ models.CharField(
+ choices=[
+ ("needs_action", "Needs Action"),
+ ("accepted", "Accepted"),
+ ("declined", "Declined"),
+ ("tentative", "Tentative"),
+ ],
+ default="needs_action",
+ max_length=16,
+ ),
+ ),
+ ("is_organizer", models.BooleanField(default=False)),
+ ("created_at", models.DateTimeField(auto_now_add=True)),
+ (
+ "meeting",
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name="participants",
+ to="customer_analytics.meeting",
+ ),
+ ),
+ (
+ "team",
+ models.ForeignKey(
+ db_constraint=False,
+ on_delete=django.db.models.deletion.CASCADE,
+ to="posthog.team",
+ ),
+ ),
+ ],
+ ),
+ migrations.AddIndex(
+ model_name="meeting",
+ index=models.Index(
+ fields=["team", "account", "-start_time"],
+ name="idx_meeting_account_time",
+ ),
+ ),
+ migrations.AddConstraint(
+ model_name="meeting",
+ constraint=models.UniqueConstraint(
+ fields=("team", "ical_uid", "recurrence_instance_id"),
+ name="unique_meeting_per_team",
+ ),
+ ),
+ migrations.AddConstraint(
+ model_name="meetingparticipant",
+ constraint=models.UniqueConstraint(
+ fields=("team", "meeting", "email"),
+ name="unique_participant_per_meeting",
+ ),
+ ),
+ ]
diff --git a/products/customer_analytics/backend/migrations/max_migration.txt b/products/customer_analytics/backend/migrations/max_migration.txt
index 7edcb6f1d46c..6d4ac5556492 100644
--- a/products/customer_analytics/backend/migrations/max_migration.txt
+++ b/products/customer_analytics/backend/migrations/max_migration.txt
@@ -1 +1 @@
-0029_alter_custompropertysyncrun_trigger
+0030_meeting_models
diff --git a/products/customer_analytics/backend/models/__init__.py b/products/customer_analytics/backend/models/__init__.py
index 2b68225c5dce..4c54c469c33a 100644
--- a/products/customer_analytics/backend/models/__init__.py
+++ b/products/customer_analytics/backend/models/__init__.py
@@ -17,6 +17,7 @@ from .custom_property_value import CustomPropertyValue
from .customer_journey import CustomerJourney
from .customer_profile_config import CustomerProfileConfig
from .event_stream import EventStream, EventStreamMember
+from .meeting import Meeting, MeetingParticipant, MeetingResponseStatus, MeetingStatus
from .relationship import AccountRelationship, AccountRelationshipDefinition
from .team_customer_analytics_config import TeamCustomerAnalyticsConfig
@@ -40,6 +41,10 @@ __all__ = [
"DisplayType",
"EventStream",
"EventStreamMember",
+ "Meeting",
+ "MeetingParticipant",
+ "MeetingResponseStatus",
+ "MeetingStatus",
"RelationshipDefinition",
"SlackSummaryCadence",
"SyncStatus",
diff --git a/products/customer_analytics/backend/models/account.py b/products/customer_analytics/backend/models/account.py
index 4ca03dcb1140..2b726402e8c8 100644
--- a/products/customer_analytics/backend/models/account.py
+++ b/products/customer_analytics/backend/models/account.py
@@ -20,6 +20,11 @@ RETIRED_ROLE_KEYS = ("csm", "account_executive", "account_owner")
class AccountProperties(BaseModel):
model_config = ConfigDict(extra="forbid")
+ # Email domains owned by this account's company, used to match inbound
+ # touchpoints (calendar attendees, email senders) that don't resolve to a
+ # known person. Personal/free domains don't belong here.
+ email_domains: list[str] = []
+
# External connections
stripe_customer_id: str | None = None
hubspot_deal_id: str | None = None
diff --git a/products/customer_analytics/backend/models/meeting.py b/products/customer_analytics/backend/models/meeting.py
new file mode 100644
index 000000000000..06513577402f
--- /dev/null
+++ b/products/customer_analytics/backend/models/meeting.py
@@ -0,0 +1,83 @@
+from django.db import models
+
+from posthog.models.scoping.root_mixin import TeamScopedRootMixin
+from posthog.models.utils import UUIDModel
+
+
+class MeetingStatus(models.TextChoices):
+ CONFIRMED = "confirmed"
+ TENTATIVE = "tentative"
+ CANCELLED = "cancelled"
+
+
+class MeetingResponseStatus(models.TextChoices):
+ NEEDS_ACTION = "needs_action"
+ ACCEPTED = "accepted"
+ DECLINED = "declined"
+ TENTATIVE = "tentative"
+
+
+class Meeting(TeamScopedRootMixin, UUIDModel):
+ """A calendar meeting synced from a connected employee calendar.
+
+ One row per real-world meeting: copies of the same event on several synced
+ calendars share an iCalUID (RFC 5545) and collapse into one row. Instances of
+ a recurring series also share the series iCalUID, so `recurrence_instance_id`
+ (the instance's original start slot) disambiguates them — it stays stable when
+ a single instance is rescheduled, unlike the start time itself.
+ """
+
+ team = models.ForeignKey("posthog.Team", on_delete=models.CASCADE, db_constraint=False)
+ account = models.ForeignKey(
+ "customer_analytics.Account", on_delete=models.SET_NULL, null=True, blank=True, related_name="meetings"
+ )
+
+ ical_uid = models.CharField(max_length=1024)
+ recurrence_instance_id = models.CharField(max_length=64, default="", blank=True)
+
+ title = models.TextField(default="", blank=True)
+ description = models.TextField(default="", blank=True)
+ start_time = models.DateTimeField()
+ end_time = models.DateTimeField(null=True, blank=True)
+ organizer_email = models.CharField(max_length=400, default="", blank=True)
+ # Google Meet meeting code — the join key to conference records (and later, transcripts).
+ meet_code = models.CharField(max_length=64, default="", blank=True)
+ status = models.CharField(max_length=16, choices=MeetingStatus.choices, default=MeetingStatus.CONFIRMED)
+
+ created_at = models.DateTimeField(auto_now_add=True)
+ updated_at = models.DateTimeField(auto_now=True)
+
+ class Meta:
+ constraints = [
+ models.UniqueConstraint(
+ fields=["team", "ical_uid", "recurrence_instance_id"],
+ name="unique_meeting_per_team",
+ ),
+ ]
+ indexes = [
+ models.Index(fields=["team", "account", "-start_time"], name="idx_meeting_account_time"),
+ ]
+
+
+class MeetingParticipant(TeamScopedRootMixin, UUIDModel):
+ team = models.ForeignKey("posthog.Team", on_delete=models.CASCADE, db_constraint=False)
+ meeting = models.ForeignKey("customer_analytics.Meeting", on_delete=models.CASCADE, related_name="participants")
+
+ email = models.CharField(max_length=400)
+ display_name = models.CharField(max_length=400, default="", blank=True)
+ # Resolved person UUID — no FK, person data lives behind the personhog client.
+ person_id = models.UUIDField(null=True, blank=True)
+ response_status = models.CharField(
+ max_length=16, choices=MeetingResponseStatus.choices, default=MeetingResponseStatus.NEEDS_ACTION
+ )
+ is_organizer = models.BooleanField(default=False)
+
+ created_at = models.DateTimeField(auto_now_add=True)
+
+ class Meta:
+ constraints = [
+ models.UniqueConstraint(
+ fields=["team", "meeting", "email"],
+ name="unique_participant_per_meeting",
+ ),
+ ]
diff --git a/products/customer_analytics/backend/presentation/views/serializers.py b/products/customer_analytics/backend/presentation/views/serializers.py
index 5202df8a6557..4ffab178fdd1 100644
--- a/products/customer_analytics/backend/presentation/views/serializers.py
+++ b/products/customer_analytics/backend/presentation/views/serializers.py
@@ -67,6 +67,11 @@ _ACCOUNT_PROPERTIES_SCHEMA = {
"type": "object",
"additionalProperties": False,
"properties": {
+ "email_domains": {
+ "type": "array",
+ "items": {"type": "string"},
+ "description": "Email domains owned by this account's company, used to match inbound touchpoints to the account.",
+ },
"stripe_customer_id": {"type": "string", "nullable": True},
"hubspot_deal_id": {"type": "string", "nullable": True},
"billing_id": {"type": "string", "nullable": True},
@@ -161,8 +166,9 @@ class AccountSerializer(DataclassSerializer):
help_text=(
"Typed account properties: external system identifiers (stripe_customer_id, "
"hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, "
- "usage_dashboard_link, metabase_link). Defaults to an empty object. Unknown keys "
- "are rejected. User assignments live on account relationships, not here."
+ "usage_dashboard_link, metabase_link) and email_domains (the company's email "
+ "domains, used to match inbound touchpoints). Defaults to an empty object. Unknown "
+ "keys are rejected. User assignments live on account relationships, not here."
),
)
tags = serializers.ListField(
diff --git a/products/customer_analytics/frontend/generated/api.schemas.ts b/products/customer_analytics/frontend/generated/api.schemas.ts
index 6e741b26ae0e..8adcf0870653 100644
--- a/products/customer_analytics/frontend/generated/api.schemas.ts
+++ b/products/customer_analytics/frontend/generated/api.schemas.ts
@@ -210,10 +210,12 @@ export const SlackSummaryCadenceEnumApi = {
} as const
/**
- * Typed account properties: external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link, metabase_link). Defaults to an empty object. Unknown keys are rejected. User assignments live on account relationships, not here.
+ * Typed account properties: external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link, metabase_link) and email_domains (the company's email domains, used to match inbound touchpoints). Defaults to an empty object. Unknown keys are rejected. User assignments live on account relationships, not here.
* @nullable
*/
export type AccountApiProperties = {
+ /** Email domains owned by this account's company, used to match inbound touchpoints to the account. */
+ email_domains?: string[]
/** @nullable */
stripe_customer_id?: string | null
/** @nullable */
@@ -230,7 +232,7 @@ export type AccountApiProperties = {
usage_dashboard_link?: string | null
/** @nullable */
metabase_link?: string | null
-} | null
+} | null | null
/**
* A Customer Analytics account — a logical grouping used to assign customer-success ownership.
@@ -249,7 +251,7 @@ export interface AccountApi {
*/
external_id?: string | null
/**
- * Typed account properties: external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link, metabase_link). Defaults to an empty object. Unknown keys are rejected. User assignments live on account relationships, not here.
+ * Typed account properties: external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link, metabase_link) and email_domains (the company's email domains, used to match inbound touchpoints). Defaults to an empty object. Unknown keys are rejected. User assignments live on account relationships, not here.
* @nullable
*/
properties?: AccountApiProperties
@@ -378,10 +380,12 @@ export interface AccountRelationshipWriteApi {
}
/**
- * Typed account properties: external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link, metabase_link). Defaults to an empty object. Unknown keys are rejected. User assignments live on account relationships, not here.
+ * Typed account properties: external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link, metabase_link) and email_domains (the company's email domains, used to match inbound touchpoints). Defaults to an empty object. Unknown keys are rejected. User assignments live on account relationships, not here.
* @nullable
*/
export type PatchedAccountApiProperties = {
+ /** Email domains owned by this account's company, used to match inbound touchpoints to the account. */
+ email_domains?: string[]
/** @nullable */
stripe_customer_id?: string | null
/** @nullable */
@@ -398,7 +402,7 @@ export type PatchedAccountApiProperties = {
usage_dashboard_link?: string | null
/** @nullable */
metabase_link?: string | null
-} | null
+} | null | null
/**
* A Customer Analytics account — a logical grouping used to assign customer-success ownership.
@@ -417,7 +421,7 @@ export interface PatchedAccountApi {
*/
external_id?: string | null
/**
- * Typed account properties: external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link, metabase_link). Defaults to an empty object. Unknown keys are rejected. User assignments live on account relationships, not here.
+ * Typed account properties: external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link, metabase_link) and email_domains (the company's email domains, used to match inbound touchpoints). Defaults to an empty object. Unknown keys are rejected. User assignments live on account relationships, not here.
* @nullable
*/
properties?: PatchedAccountApiProperties
diff --git a/products/customer_analytics/frontend/generated/api.zod.ts b/products/customer_analytics/frontend/generated/api.zod.ts
index b92bef286af7..1e35888fba19 100644
--- a/products/customer_analytics/frontend/generated/api.zod.ts
+++ b/products/customer_analytics/frontend/generated/api.zod.ts
@@ -101,6 +101,12 @@ export const AccountsCreateBody = /* @__PURE__ */ zod
),
properties: zod
.object({
+ email_domains: zod
+ .array(zod.string())
+ .optional()
+ .describe(
+ "Email domains owned by this account's company, used to match inbound touchpoints to the account."
+ ),
stripe_customer_id: zod.string().nullish(),
hubspot_deal_id: zod.string().nullish(),
billing_id: zod.string().nullish(),
@@ -112,7 +118,7 @@ export const AccountsCreateBody = /* @__PURE__ */ zod
})
.nullish()
.describe(
- 'Typed account properties: external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link, metabase_link). Defaults to an empty object. Unknown keys are rejected. User assignments live on account relationships, not here.'
+ "Typed account properties: external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link, metabase_link) and email_domains (the company's email domains, used to match inbound touchpoints). Defaults to an empty object. Unknown keys are rejected. User assignments live on account relationships, not here."
),
tags: zod
.array(zod.string())
@@ -176,6 +182,12 @@ export const AccountsUpdateBody = /* @__PURE__ */ zod
),
properties: zod
.object({
+ email_domains: zod
+ .array(zod.string())
+ .optional()
+ .describe(
+ "Email domains owned by this account's company, used to match inbound touchpoints to the account."
+ ),
stripe_customer_id: zod.string().nullish(),
hubspot_deal_id: zod.string().nullish(),
billing_id: zod.string().nullish(),
@@ -187,7 +199,7 @@ export const AccountsUpdateBody = /* @__PURE__ */ zod
})
.nullish()
.describe(
- 'Typed account properties: external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link, metabase_link). Defaults to an empty object. Unknown keys are rejected. User assignments live on account relationships, not here.'
+ "Typed account properties: external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link, metabase_link) and email_domains (the company's email domains, used to match inbound touchpoints). Defaults to an empty object. Unknown keys are rejected. User assignments live on account relationships, not here."
),
tags: zod
.array(zod.string())
@@ -227,6 +239,12 @@ export const AccountsPartialUpdateBody = /* @__PURE__ */ zod
),
properties: zod
.object({
+ email_domains: zod
+ .array(zod.string())
+ .optional()
+ .describe(
+ "Email domains owned by this account's company, used to match inbound touchpoints to the account."
+ ),
stripe_customer_id: zod.string().nullish(),
hubspot_deal_id: zod.string().nullish(),
billing_id: zod.string().nullish(),
@@ -238,7 +256,7 @@ export const AccountsPartialUpdateBody = /* @__PURE__ */ zod
})
.nullish()
.describe(
- 'Typed account properties: external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link, metabase_link). Defaults to an empty object. Unknown keys are rejected. User assignments live on account relationships, not here.'
+ "Typed account properties: external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link, metabase_link) and email_domains (the company's email domains, used to match inbound touchpoints). Defaults to an empty object. Unknown keys are rejected. User assignments live on account relationships, not here."
),
tags: zod
.array(zod.string())
diff --git a/products/customer_analytics/frontend/scenes/CustomerAnalyticsConfigurationScene/calendar/CalendarSyncConfig.tsx b/products/customer_analytics/frontend/scenes/CustomerAnalyticsConfigurationScene/calendar/CalendarSyncConfig.tsx
new file mode 100644
index 000000000000..512397558a16
--- /dev/null
+++ b/products/customer_analytics/frontend/scenes/CustomerAnalyticsConfigurationScene/calendar/CalendarSyncConfig.tsx
@@ -0,0 +1,38 @@
+import { useValues } from 'kea'
+
+import { LemonButton } from '@posthog/lemon-ui'
+
+import api from 'lib/api'
+import { integrationsLogic } from 'lib/integrations/integrationsLogic'
+import { IntegrationView } from 'lib/integrations/IntegrationView'
+import { ICONS } from 'lib/integrations/utils'
+import { urls } from 'scenes/urls'
+
+export function CalendarSyncConfig(): JSX.Element {
+ const { integrations, integrationsLoading } = useValues(integrationsLogic)
+
+ const calendarIntegrations = integrations?.filter((integration) => integration.kind === 'google-calendar') ?? []
+
+ return (
+ <div className="flex flex-col gap-4">
+ {calendarIntegrations.map((integration) => (
+ <IntegrationView key={integration.id} integration={integration} />
+ ))}
+ <div className="flex">
+ <LemonButton
+ type="primary"
+ size="small"
+ icon={<img src={ICONS['google-calendar']} className="h-4 w-4" alt="" />}
+ disableClientSideRouting
+ loading={integrationsLoading}
+ to={api.integrations.authorizeUrl({
+ kind: 'google-calendar',
+ next: urls.settings('environment-customer-analytics'),
+ })}
+ >
+ {calendarIntegrations.length ? 'Connect another calendar' : 'Connect Google Calendar'}
+ </LemonButton>
+ </div>
+ </div>
+ )
+}
diff --git a/products/dashboards/frontend/generated/api.schemas.ts b/products/dashboards/frontend/generated/api.schemas.ts
index 0dbfbfb6c158..d3775e767bea 100644
--- a/products/dashboards/frontend/generated/api.schemas.ts
+++ b/products/dashboards/frontend/generated/api.schemas.ts
@@ -4654,6 +4654,7 @@ export const IntegrationKindApi = {
GoogleCloudStorage: 'google-cloud-storage',
GoogleAds: 'google-ads',
GoogleAnalytics: 'google-analytics',
+ GoogleCalendar: 'google-calendar',
GoogleSearchConsole: 'google-search-console',
GoogleSheets: 'google-sheets',
LinkedinAds: 'linkedin-ads',
diff --git a/products/integrations/frontend/generated/api.schemas.ts b/products/integrations/frontend/generated/api.schemas.ts
index 060d876c9c41..fd3f1f3b7f0a 100644
--- a/products/integrations/frontend/generated/api.schemas.ts
+++ b/products/integrations/frontend/generated/api.schemas.ts
@@ -168,6 +168,7 @@ export interface RoleLookupResponseApi {
* * `gitlab` - Gitlab
* * `google-ads` - Google Ads
* * `google-analytics` - Google Analytics
+ * * `google-calendar` - Google Calendar
* * `google-cloud-service-account` - Google Cloud Service Account
* * `google-cloud-storage` - Google Cloud Storage
* * `google-pubsub` - Google Pubsub
@@ -216,6 +217,7 @@ export const IntegrationKindEnumApi = {
Gitlab: 'gitlab',
GoogleAds: 'google-ads',
GoogleAnalytics: 'google-analytics',
+ GoogleCalendar: 'google-calendar',
GoogleCloudServiceAccount: 'google-cloud-service-account',
GoogleCloudStorage: 'google-cloud-storage',
GooglePubsub: 'google-pubsub',
@@ -477,6 +479,7 @@ export interface IntegrationAccessRequestApi {
* * `gitlab` - Gitlab
* * `google-ads` - Google Ads
* * `google-analytics` - Google Analytics
+ * * `google-calendar` - Google Calendar
* * `google-cloud-service-account` - Google Cloud Service Account
* * `google-cloud-storage` - Google Cloud Storage
* * `google-pubsub` - Google Pubsub
@@ -617,6 +620,7 @@ export type IntegrationsListParams = {
* * `gitlab` - Gitlab
* * `google-ads` - Google Ads
* * `google-analytics` - Google Analytics
+ * * `google-calendar` - Google Calendar
* * `google-cloud-service-account` - Google Cloud Service Account
* * `google-cloud-storage` - Google Cloud Storage
* * `google-pubsub` - Google Pubsub
@@ -676,6 +680,7 @@ export const IntegrationsListKind = {
Gitlab: 'gitlab',
GoogleAds: 'google-ads',
GoogleAnalytics: 'google-analytics',
+ GoogleCalendar: 'google-calendar',
GoogleCloudServiceAccount: 'google-cloud-service-account',
GoogleCloudStorage: 'google-cloud-storage',
GooglePubsub: 'google-pubsub',
diff --git a/products/integrations/frontend/generated/api.zod.ts b/products/integrations/frontend/generated/api.zod.ts
index 5d9eff56a352..4423d92915fe 100644
--- a/products/integrations/frontend/generated/api.zod.ts
+++ b/products/integrations/frontend/generated/api.zod.ts
@@ -79,6 +79,7 @@ export const IntegrationsCreateBody = /* @__PURE__ */ zod
'gitlab',
'google-ads',
'google-analytics',
+ 'google-calendar',
'google-cloud-service-account',
'google-cloud-storage',
'google-pubsub',
@@ -108,7 +109,7 @@ export const IntegrationsCreateBody = /* @__PURE__ */ zod
'vercel',
])
.describe(
- '\* `anthropic` - Anthropic\n\* `apns` - Apple Push\n\* `aws-redshift` - Aws Redshift\n\* `aws-s3` - Aws S3\n\* `azure-blob` - Azure Blob\n\* `bing-ads` - Bing Ads\n\* `clickup` - Clickup\n\* `customerio-app` - Customerio App\n\* `customerio-track` - Customerio Track\n\* `customerio-webhook` - Customerio Webhook\n\* `databricks` - Databricks\n\* `email` - Email\n\* `firebase` - Firebase\n\* `github` - Github\n\* `gitlab` - Gitlab\n\* `google-ads` - Google Ads\n\* `google-analytics` - Google Analytics\n\* `google-cloud-service-account` - Google Cloud Service Account\n\* `google-cloud-storage` - Google Cloud Storage\n\* `google-pubsub` - Google Pubsub\n\* `google-search-console` - Google Search Console\n\* `google-sheets` - Google Sheets\n\* `hubspot` - Hubspot\n\* `intercom` - Intercom\n\* `jira` - Jira\n\* `linear` - Linear\n\* `linkedin-ads` - Linkedin Ads\n\* `meta-ads` - Meta Ads\n\* `pardot` - Pardot\n\* `pinterest-ads` - Pinterest Ads\n\* `postgresql` - Postgresql\n\* `posthog` - Posthog\n\* `reddit-ads` - Reddit Ads\n\* `resend` - Resend\n\* `s3-compatible` - S3 Compatible\n\* `salesforce` - Salesforce\n\* `slack` - Slack\n\* `slack-posthog-code` - Slack Posthog Code\n\* `snapchat` - Snapchat\n\* `snowflake` - Snowflake\n\* `stripe` - Stripe\n\* `tiktok-ads` - Tiktok Ads\n\* `twilio` - Twilio\n\* `vercel` - Vercel'
+ '\* `anthropic` - Anthropic\n\* `apns` - Apple Push\n\* `aws-redshift` - Aws Redshift\n\* `aws-s3` - Aws S3\n\* `azure-blob` - Azure Blob\n\* `bing-ads` - Bing Ads\n\* `clickup` - Clickup\n\* `customerio-app` - Customerio App\n\* `customerio-track` - Customerio Track\n\* `customerio-webhook` - Customerio Webhook\n\* `databricks` - Databricks\n\* `email` - Email\n\* `firebase` - Firebase\n\* `github` - Github\n\* `gitlab` - Gitlab\n\* `google-ads` - Google Ads\n\* `google-analytics` - Google Analytics\n\* `google-calendar` - Google Calendar\n\* `google-cloud-service-account` - Google Cloud Service Account\n\* `google-cloud-storage` - Google Cloud Storage\n\* `google-pubsub` - Google Pubsub\n\* `google-search-console` - Google Search Console\n\* `google-sheets` - Google Sheets\n\* `hubspot` - Hubspot\n\* `intercom` - Intercom\n\* `jira` - Jira\n\* `linear` - Linear\n\* `linkedin-ads` - Linkedin Ads\n\* `meta-ads` - Meta Ads\n\* `pardot` - Pardot\n\* `pinterest-ads` - Pinterest Ads\n\* `postgresql` - Postgresql\n\* `posthog` - Posthog\n\* `reddit-ads` - Reddit Ads\n\* `resend` - Resend\n\* `s3-compatible` - S3 Compatible\n\* `salesforce` - Salesforce\n\* `slack` - Slack\n\* `slack-posthog-code` - Slack Posthog Code\n\* `snapchat` - Snapchat\n\* `snowflake` - Snowflake\n\* `stripe` - Stripe\n\* `tiktok-ads` - Tiktok Ads\n\* `twilio` - Twilio\n\* `vercel` - Vercel'
),
config: zod.unknown().optional(),
})
@@ -135,6 +136,7 @@ export const IntegrationsEmailPartialUpdateBody = /* @__PURE__ */ zod
'gitlab',
'google-ads',
'google-analytics',
+ 'google-calendar',
'google-cloud-service-account',
'google-cloud-storage',
'google-pubsub',
@@ -165,7 +167,7 @@ export const IntegrationsEmailPartialUpdateBody = /* @__PURE__ */ zod
])
.optional()
.describe(
- '\* `anthropic` - Anthropic\n\* `apns` - Apple Push\n\* `aws-redshift` - Aws Redshift\n\* `aws-s3` - Aws S3\n\* `azure-blob` - Azure Blob\n\* `bing-ads` - Bing Ads\n\* `clickup` - Clickup\n\* `customerio-app` - Customerio App\n\* `customerio-track` - Customerio Track\n\* `customerio-webhook` - Customerio Webhook\n\* `databricks` - Databricks\n\* `email` - Email\n\* `firebase` - Firebase\n\* `github` - Github\n\* `gitlab` - Gitlab\n\* `google-ads` - Google Ads\n\* `google-analytics` - Google Analytics\n\* `google-cloud-service-account` - Google Cloud Service Account\n\* `google-cloud-storage` - Google Cloud Storage\n\* `google-pubsub` - Google Pubsub\n\* `google-search-console` - Google Search Console\n\* `google-sheets` - Google Sheets\n\* `hubspot` - Hubspot\n\* `intercom` - Intercom\n\* `jira` - Jira\n\* `linear` - Linear\n\* `linkedin-ads` - Linkedin Ads\n\* `meta-ads` - Meta Ads\n\* `pardot` - Pardot\n\* `pinterest-ads` - Pinterest Ads\n\* `postgresql` - Postgresql\n\* `posthog` - Posthog\n\* `reddit-ads` - Reddit Ads\n\* `resend` - Resend\n\* `s3-compatible` - S3 Compatible\n\* `salesforce` - Salesforce\n\* `slack` - Slack\n\* `slack-posthog-code` - Slack Posthog Code\n\* `snapchat` - Snapchat\n\* `snowflake` - Snowflake\n\* `stripe` - Stripe\n\* `tiktok-ads` - Tiktok Ads\n\* `twilio` - Twilio\n\* `vercel` - Vercel'
+ '\* `anthropic` - Anthropic\n\* `apns` - Apple Push\n\* `aws-redshift` - Aws Redshift\n\* `aws-s3` - Aws S3\n\* `azure-blob` - Azure Blob\n\* `bing-ads` - Bing Ads\n\* `clickup` - Clickup\n\* `customerio-app` - Customerio App\n\* `customerio-track` - Customerio Track\n\* `customerio-webhook` - Customerio Webhook\n\* `databricks` - Databricks\n\* `email` - Email\n\* `firebase` - Firebase\n\* `github` - Github\n\* `gitlab` - Gitlab\n\* `google-ads` - Google Ads\n\* `google-analytics` - Google Analytics\n\* `google-calendar` - Google Calendar\n\* `google-cloud-service-account` - Google Cloud Service Account\n\* `google-cloud-storage` - Google Cloud Storage\n\* `google-pubsub` - Google Pubsub\n\* `google-search-console` - Google Search Console\n\* `google-sheets` - Google Sheets\n\* `hubspot` - Hubspot\n\* `intercom` - Intercom\n\* `jira` - Jira\n\* `linear` - Linear\n\* `linkedin-ads` - Linkedin Ads\n\* `meta-ads` - Meta Ads\n\* `pardot` - Pardot\n\* `pinterest-ads` - Pinterest Ads\n\* `postgresql` - Postgresql\n\* `posthog` - Posthog\n\* `reddit-ads` - Reddit Ads\n\* `resend` - Resend\n\* `s3-compatible` - S3 Compatible\n\* `salesforce` - Salesforce\n\* `slack` - Slack\n\* `slack-posthog-code` - Slack Posthog Code\n\* `snapchat` - Snapchat\n\* `snowflake` - Snowflake\n\* `stripe` - Stripe\n\* `tiktok-ads` - Tiktok Ads\n\* `twilio` - Twilio\n\* `vercel` - Vercel'
),
config: zod.unknown().optional(),
})
@@ -192,6 +194,7 @@ export const IntegrationsEmailVerifyCreateBody = /* @__PURE__ */ zod
'gitlab',
'google-ads',
'google-analytics',
+ 'google-calendar',
'google-cloud-service-account',
'google-cloud-storage',
'google-pubsub',
@@ -221,7 +224,7 @@ export const IntegrationsEmailVerifyCreateBody = /* @__PURE__ */ zod
'vercel',
])
.describe(
- '\* `anthropic` - Anthropic\n\* `apns` - Apple Push\n\* `aws-redshift` - Aws Redshift\n\* `aws-s3` - Aws S3\n\* `azure-blob` - Azure Blob\n\* `bing-ads` - Bing Ads\n\* `clickup` - Clickup\n\* `customerio-app` - Customerio App\n\* `customerio-track` - Customerio Track\n\* `customerio-webhook` - Customerio Webhook\n\* `databricks` - Databricks\n\* `email` - Email\n\* `firebase` - Firebase\n\* `github` - Github\n\* `gitlab` - Gitlab\n\* `google-ads` - Google Ads\n\* `google-analytics` - Google Analytics\n\* `google-cloud-service-account` - Google Cloud Service Account\n\* `google-cloud-storage` - Google Cloud Storage\n\* `google-pubsub` - Google Pubsub\n\* `google-search-console` - Google Search Console\n\* `google-sheets` - Google Sheets\n\* `hubspot` - Hubspot\n\* `intercom` - Intercom\n\* `jira` - Jira\n\* `linear` - Linear\n\* `linkedin-ads` - Linkedin Ads\n\* `meta-ads` - Meta Ads\n\* `pardot` - Pardot\n\* `pinterest-ads` - Pinterest Ads\n\* `postgresql` - Postgresql\n\* `posthog` - Posthog\n\* `reddit-ads` - Reddit Ads\n\* `resend` - Resend\n\* `s3-compatible` - S3 Compatible\n\* `salesforce` - Salesforce\n\* `slack` - Slack\n\* `slack-posthog-code` - Slack Posthog Code\n\* `snapchat` - Snapchat\n\* `snowflake` - Snowflake\n\* `stripe` - Stripe\n\* `tiktok-ads` - Tiktok Ads\n\* `twilio` - Twilio\n\* `vercel` - Vercel'
+ '\* `anthropic` - Anthropic\n\* `apns` - Apple Push\n\* `aws-redshift` - Aws Redshift\n\* `aws-s3` - Aws S3\n\* `azure-blob` - Azure Blob\n\* `bing-ads` - Bing Ads\n\* `clickup` - Clickup\n\* `customerio-app` - Customerio App\n\* `customerio-track` - Customerio Track\n\* `customerio-webhook` - Customerio Webhook\n\* `databricks` - Databricks\n\* `email` - Email\n\* `firebase` - Firebase\n\* `github` - Github\n\* `gitlab` - Gitlab\n\* `google-ads` - Google Ads\n\* `google-analytics` - Google Analytics\n\* `google-calendar` - Google Calendar\n\* `google-cloud-service-account` - Google Cloud Service Account\n\* `google-cloud-storage` - Google Cloud Storage\n\* `google-pubsub` - Google Pubsub\n\* `google-search-console` - Google Search Console\n\* `google-sheets` - Google Sheets\n\* `hubspot` - Hubspot\n\* `intercom` - Intercom\n\* `jira` - Jira\n\* `linear` - Linear\n\* `linkedin-ads` - Linkedin Ads\n\* `meta-ads` - Meta Ads\n\* `pardot` - Pardot\n\* `pinterest-ads` - Pinterest Ads\n\* `postgresql` - Postgresql\n\* `posthog` - Posthog\n\* `reddit-ads` - Reddit Ads\n\* `resend` - Resend\n\* `s3-compatible` - S3 Compatible\n\* `salesforce` - Salesforce\n\* `slack` - Slack\n\* `slack-posthog-code` - Slack Posthog Code\n\* `snapchat` - Snapchat\n\* `snowflake` - Snowflake\n\* `stripe` - Stripe\n\* `tiktok-ads` - Tiktok Ads\n\* `twilio` - Twilio\n\* `vercel` - Vercel'
),
config: zod.unknown().optional(),
})
@@ -255,6 +258,7 @@ export const IntegrationsDomainConnectApplyUrlCreateBody = /* @__PURE__ */ zod
'gitlab',
'google-ads',
'google-analytics',
+ 'google-calendar',
'google-cloud-service-account',
'google-cloud-storage',
'google-pubsub',
@@ -284,7 +288,7 @@ export const IntegrationsDomainConnectApplyUrlCreateBody = /* @__PURE__ */ zod
'vercel',
])
.describe(
- '\* `anthropic` - Anthropic\n\* `apns` - Apple Push\n\* `aws-redshift` - Aws Redshift\n\* `aws-s3` - Aws S3\n\* `azure-blob` - Azure Blob\n\* `bing-ads` - Bing Ads\n\* `clickup` - Clickup\n\* `customerio-app` - Customerio App\n\* `customerio-track` - Customerio Track\n\* `customerio-webhook` - Customerio Webhook\n\* `databricks` - Databricks\n\* `email` - Email\n\* `firebase` - Firebase\n\* `github` - Github\n\* `gitlab` - Gitlab\n\* `google-ads` - Google Ads\n\* `google-analytics` - Google Analytics\n\* `google-cloud-service-account` - Google Cloud Service Account\n\* `google-cloud-storage` - Google Cloud Storage\n\* `google-pubsub` - Google Pubsub\n\* `google-search-console` - Google Search Console\n\* `google-sheets` - Google Sheets\n\* `hubspot` - Hubspot\n\* `intercom` - Intercom\n\* `jira` - Jira\n\* `linear` - Linear\n\* `linkedin-ads` - Linkedin Ads\n\* `meta-ads` - Meta Ads\n\* `pardot` - Pardot\n\* `pinterest-ads` - Pinterest Ads\n\* `postgresql` - Postgresql\n\* `posthog` - Posthog\n\* `reddit-ads` - Reddit Ads\n\* `resend` - Resend\n\* `s3-compatible` - S3 Compatible\n\* `salesforce` - Salesforce\n\* `slack` - Slack\n\* `slack-posthog-code` - Slack Posthog Code\n\* `snapchat` - Snapchat\n\* `snowflake` - Snowflake\n\* `stripe` - Stripe\n\* `tiktok-ads` - Tiktok Ads\n\* `twilio` - Twilio\n\* `vercel` - Vercel'
+ '\* `anthropic` - Anthropic\n\* `apns` - Apple Push\n\* `aws-redshift` - Aws Redshift\n\* `aws-s3` - Aws S3\n\* `azure-blob` - Azure Blob\n\* `bing-ads` - Bing Ads\n\* `clickup` - Clickup\n\* `customerio-app` - Customerio App\n\* `customerio-track` - Customerio Track\n\* `customerio-webhook` - Customerio Webhook\n\* `databricks` - Databricks\n\* `email` - Email\n\* `firebase` - Firebase\n\* `github` - Github\n\* `gitlab` - Gitlab\n\* `google-ads` - Google Ads\n\* `google-analytics` - Google Analytics\n\* `google-calendar` - Google Calendar\n\* `google-cloud-service-account` - Google Cloud Service Account\n\* `google-cloud-storage` - Google Cloud Storage\n\* `google-pubsub` - Google Pubsub\n\* `google-search-console` - Google Search Console\n\* `google-sheets` - Google Sheets\n\* `hubspot` - Hubspot\n\* `intercom` - Intercom\n\* `jira` - Jira\n\* `linear` - Linear\n\* `linkedin-ads` - Linkedin Ads\n\* `meta-ads` - Meta Ads\n\* `pardot` - Pardot\n\* `pinterest-ads` - Pinterest Ads\n\* `postgresql` - Postgresql\n\* `posthog` - Posthog\n\* `reddit-ads` - Reddit Ads\n\* `resend` - Resend\n\* `s3-compatible` - S3 Compatible\n\* `salesforce` - Salesforce\n\* `slack` - Slack\n\* `slack-posthog-code` - Slack Posthog Code\n\* `snapchat` - Snapchat\n\* `snowflake` - Snowflake\n\* `stripe` - Stripe\n\* `tiktok-ads` - Tiktok Ads\n\* `twilio` - Twilio\n\* `vercel` - Vercel'
),
config: zod.unknown().optional(),
})
@@ -365,6 +369,7 @@ export const IntegrationsRequestAccessCreateBody = /* @__PURE__ */ zod.object({
'gitlab',
'google-ads',
'google-analytics',
+ 'google-calendar',
'google-cloud-service-account',
'google-cloud-storage',
'google-pubsub',
@@ -394,10 +399,10 @@ export const IntegrationsRequestAccessCreateBody = /* @__PURE__ */ zod.object({
'vercel',
])
.describe(
- '\* `anthropic` - Anthropic\n\* `apns` - Apple Push\n\* `aws-redshift` - Aws Redshift\n\* `aws-s3` - Aws S3\n\* `azure-blob` - Azure Blob\n\* `bing-ads` - Bing Ads\n\* `clickup` - Clickup\n\* `customerio-app` - Customerio App\n\* `customerio-track` - Customerio Track\n\* `customerio-webhook` - Customerio Webhook\n\* `databricks` - Databricks\n\* `email` - Email\n\* `firebase` - Firebase\n\* `github` - Github\n\* `gitlab` - Gitlab\n\* `google-ads` - Google Ads\n\* `google-analytics` - Google Analytics\n\* `google-cloud-service-account` - Google Cloud Service Account\n\* `google-cloud-storage` - Google Cloud Storage\n\* `google-pubsub` - Google Pubsub\n\* `google-search-console` - Google Search Console\n\* `google-sheets` - Google Sheets\n\* `hubspot` - Hubspot\n\* `intercom` - Intercom\n\* `jira` - Jira\n\* `linear` - Linear\n\* `linkedin-ads` - Linkedin Ads\n\* `meta-ads` - Meta Ads\n\* `pardot` - Pardot\n\* `pinterest-ads` - Pinterest Ads\n\* `postgresql` - Postgresql\n\* `posthog` - Posthog\n\* `reddit-ads` - Reddit Ads\n\* `resend` - Resend\n\* `s3-compatible` - S3 Compatible\n\* `salesforce` - Salesforce\n\* `slack` - Slack\n\* `slack-posthog-code` - Slack Posthog Code\n\* `snapchat` - Snapchat\n\* `snowflake` - Snowflake\n\* `stripe` - Stripe\n\* `tiktok-ads` - Tiktok Ads\n\* `twilio` - Twilio\n\* `vercel` - Vercel'
+ '\* `anthropic` - Anthropic\n\* `apns` - Apple Push\n\* `aws-redshift` - Aws Redshift\n\* `aws-s3` - Aws S3\n\* `azure-blob` - Azure Blob\n\* `bing-ads` - Bing Ads\n\* `clickup` - Clickup\n\* `customerio-app` - Customerio App\n\* `customerio-track` - Customerio Track\n\* `customerio-webhook` - Customerio Webhook\n\* `databricks` - Databricks\n\* `email` - Email\n\* `firebase` - Firebase\n\* `github` - Github\n\* `gitlab` - Gitlab\n\* `google-ads` - Google Ads\n\* `google-analytics` - Google Analytics\n\* `google-calendar` - Google Calendar\n\* `google-cloud-service-account` - Google Cloud Service Account\n\* `google-cloud-storage` - Google Cloud Storage\n\* `google-pubsub` - Google Pubsub\n\* `google-search-console` - Google Search Console\n\* `google-sheets` - Google Sheets\n\* `hubspot` - Hubspot\n\* `intercom` - Intercom\n\* `jira` - Jira\n\* `linear` - Linear\n\* `linkedin-ads` - Linkedin Ads\n\* `meta-ads` - Meta Ads\n\* `pardot` - Pardot\n\* `pinterest-ads` - Pinterest Ads\n\* `postgresql` - Postgresql\n\* `posthog` - Posthog\n\* `reddit-ads` - Reddit Ads\n\* `resend` - Resend\n\* `s3-compatible` - S3 Compatible\n\* `salesforce` - Salesforce\n\* `slack` - Slack\n\* `slack-posthog-code` - Slack Posthog Code\n\* `snapchat` - Snapchat\n\* `snowflake` - Snowflake\n\* `stripe` - Stripe\n\* `tiktok-ads` - Tiktok Ads\n\* `twilio` - Twilio\n\* `vercel` - Vercel'
)
.describe(
- "The kind of integration the member is requesting be connected (e.g. 'slack', 'github').\n\n\* `anthropic` - Anthropic\n\* `apns` - Apple Push\n\* `aws-redshift` - Aws Redshift\n\* `aws-s3` - Aws S3\n\* `azure-blob` - Azure Blob\n\* `bing-ads` - Bing Ads\n\* `clickup` - Clickup\n\* `customerio-app` - Customerio App\n\* `customerio-track` - Customerio Track\n\* `customerio-webhook` - Customerio Webhook\n\* `databricks` - Databricks\n\* `email` - Email\n\* `firebase` - Firebase\n\* `github` - Github\n\* `gitlab` - Gitlab\n\* `google-ads` - Google Ads\n\* `google-analytics` - Google Analytics\n\* `google-cloud-service-account` - Google Cloud Service Account\n\* `google-cloud-storage` - Google Cloud Storage\n\* `google-pubsub` - Google Pubsub\n\* `google-search-console` - Google Search Console\n\* `google-sheets` - Google Sheets\n\* `hubspot` - Hubspot\n\* `intercom` - Intercom\n\* `jira` - Jira\n\* `linear` - Linear\n\* `linkedin-ads` - Linkedin Ads\n\* `meta-ads` - Meta Ads\n\* `pardot` - Pardot\n\* `pinterest-ads` - Pinterest Ads\n\* `postgresql` - Postgresql\n\* `posthog` - Posthog\n\* `reddit-ads` - Reddit Ads\n\* `resend` - Resend\n\* `s3-compatible` - S3 Compatible\n\* `salesforce` - Salesforce\n\* `slack` - Slack\n\* `slack-posthog-code` - Slack Posthog Code\n\* `snapchat` - Snapchat\n\* `snowflake` - Snowflake\n\* `stripe` - Stripe\n\* `tiktok-ads` - Tiktok Ads\n\* `twilio` - Twilio\n\* `vercel` - Vercel"
+ "The kind of integration the member is requesting be connected (e.g. 'slack', 'github').\n\n\* `anthropic` - Anthropic\n\* `apns` - Apple Push\n\* `aws-redshift` - Aws Redshift\n\* `aws-s3` - Aws S3\n\* `azure-blob` - Azure Blob\n\* `bing-ads` - Bing Ads\n\* `clickup` - Clickup\n\* `customerio-app` - Customerio App\n\* `customerio-track` - Customerio Track\n\* `customerio-webhook` - Customerio Webhook\n\* `databricks` - Databricks\n\* `email` - Email\n\* `firebase` - Firebase\n\* `github` - Github\n\* `gitlab` - Gitlab\n\* `google-ads` - Google Ads\n\* `google-analytics` - Google Analytics\n\* `google-calendar` - Google Calendar\n\* `google-cloud-service-account` - Google Cloud Service Account\n\* `google-cloud-storage` - Google Cloud Storage\n\* `google-pubsub` - Google Pubsub\n\* `google-search-console` - Google Search Console\n\* `google-sheets` - Google Sheets\n\* `hubspot` - Hubspot\n\* `intercom` - Intercom\n\* `jira` - Jira\n\* `linear` - Linear\n\* `linkedin-ads` - Linkedin Ads\n\* `meta-ads` - Meta Ads\n\* `pardot` - Pardot\n\* `pinterest-ads` - Pinterest Ads\n\* `postgresql` - Postgresql\n\* `posthog` - Posthog\n\* `reddit-ads` - Reddit Ads\n\* `resend` - Resend\n\* `s3-compatible` - S3 Compatible\n\* `salesforce` - Salesforce\n\* `slack` - Slack\n\* `slack-posthog-code` - Slack Posthog Code\n\* `snapchat` - Snapchat\n\* `snowflake` - Snowflake\n\* `stripe` - Stripe\n\* `tiktok-ads` - Tiktok Ads\n\* `twilio` - Twilio\n\* `vercel` - Vercel"
),
reason: zod
.string()
diff --git a/products/logs/frontend/components/LogsAlerting/logsAlertNotificationLogic.ts b/products/logs/frontend/components/LogsAlerting/logsAlertNotificationLogic.ts
index e29adcb81216..6cc52c4cf88a 100644
--- a/products/logs/frontend/components/LogsAlerting/logsAlertNotificationLogic.ts
+++ b/products/logs/frontend/components/LogsAlerting/logsAlertNotificationLogic.ts
@@ -86,6 +86,7 @@ export interface logsAlertNotificationLogicActions {
| 'gitlab'
| 'google-ads'
| 'google-analytics'
+ | 'google-calendar'
| 'google-cloud-service-account'
| 'google-cloud-storage'
| 'google-pubsub'
@@ -137,6 +138,7 @@ export interface logsAlertNotificationLogicActions {
| 'gitlab'
| 'google-ads'
| 'google-analytics'
+ | 'google-calendar'
| 'google-cloud-service-account'
| 'google-cloud-storage'
| 'google-pubsub'
diff --git a/products/posthog_ai/frontend/scenes/TaskTracker/taskTrackerSceneLogic.ts b/products/posthog_ai/frontend/scenes/TaskTracker/taskTrackerSceneLogic.ts
index b4a902c80131..9249c66edea0 100644
--- a/products/posthog_ai/frontend/scenes/TaskTracker/taskTrackerSceneLogic.ts
+++ b/products/posthog_ai/frontend/scenes/TaskTracker/taskTrackerSceneLogic.ts
@@ -129,6 +129,7 @@ export interface taskTrackerSceneLogicActions {
| 'gitlab'
| 'google-ads'
| 'google-analytics'
+ | 'google-calendar'
| 'google-cloud-service-account'
| 'google-cloud-storage'
| 'google-pubsub'
@@ -180,6 +181,7 @@ export interface taskTrackerSceneLogicActions {
| 'gitlab'
| 'google-ads'
| 'google-analytics'
+ | 'google-calendar'
| 'google-cloud-service-account'
| 'google-cloud-storage'
| 'google-pubsub'
diff --git a/products/product_analytics/frontend/generated/api.schemas.ts b/products/product_analytics/frontend/generated/api.schemas.ts
index 3bf8a8431560..4274e6b1bdd3 100644
--- a/products/product_analytics/frontend/generated/api.schemas.ts
+++ b/products/product_analytics/frontend/generated/api.schemas.ts
@@ -3984,6 +3984,7 @@ export const IntegrationKindApi = {
GoogleCloudStorage: 'google-cloud-storage',
GoogleAds: 'google-ads',
GoogleAnalytics: 'google-analytics',
+ GoogleCalendar: 'google-calendar',
GoogleSearchConsole: 'google-search-console',
GoogleSheets: 'google-sheets',
LinkedinAds: 'linkedin-ads',
diff --git a/products/visual_review/frontend/scenes/visualReviewSettingsSceneLogic.ts b/products/visual_review/frontend/scenes/visualReviewSettingsSceneLogic.ts
index 72995c144668..300eda18b3c9 100644
--- a/products/visual_review/frontend/scenes/visualReviewSettingsSceneLogic.ts
+++ b/products/visual_review/frontend/scenes/visualReviewSettingsSceneLogic.ts
@@ -75,6 +75,7 @@ export interface visualReviewSettingsSceneLogicActions {
| 'gitlab'
| 'google-ads'
| 'google-analytics'
+ | 'google-calendar'
| 'google-cloud-service-account'
| 'google-cloud-storage'
| 'google-pubsub'
@@ -126,6 +127,7 @@ export interface visualReviewSettingsSceneLogicActions {
| 'gitlab'
| 'google-ads'
| 'google-analytics'
+ | 'google-calendar'
| 'google-cloud-service-account'
| 'google-cloud-storage'
| 'google-pubsub'
@@ -196,7 +198,7 @@ export interface visualReviewSettingsSceneLogicMeta {
hasChanges: (formValues: RepoFormValues, editingRepo: RepoApi | null) => boolean
availableRepos: (
integrations: IntegrationType[] | null,
- getGitHubRepositoriesFull: (integrationId: number) => GitHubRepoApi[]
+ getGitHubRepositoriesFull: (integrationId: number) => GitHubRepoApi[] // integrationsLogic
) => GitHubRepoApi[]
existingRepoNames: (repos: RepoApi[]) => Set<string>
githubManageAccessUrl: (integrations: IntegrationType[] | null) => string | null
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index b5dd6664c5a9..97a09316f400 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -143,10 +143,12 @@ export namespace Schemas {
} as const;
/**
- * Typed account properties: external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link, metabase_link). Defaults to an empty object. Unknown keys are rejected. User assignments live on account relationships, not here.
+ * Typed account properties: external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link, metabase_link) and email_domains (the company's email domains, used to match inbound touchpoints). Defaults to an empty object. Unknown keys are rejected. User assignments live on account relationships, not here.
* @nullable
*/
export type AccountProperties = {
+ /** Email domains owned by this account's company, used to match inbound touchpoints to the account. */
+ email_domains?: string[];
/** @nullable */
stripe_customer_id?: string | null;
/** @nullable */
@@ -163,7 +165,7 @@ export namespace Schemas {
usage_dashboard_link?: string | null;
/** @nullable */
metabase_link?: string | null;
- } | null;
+ } | null | null;
/**
* * `daily` - daily
@@ -196,7 +198,7 @@ export namespace Schemas {
*/
external_id?: string | null;
/**
- * Typed account properties: external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link, metabase_link). Defaults to an empty object. Unknown keys are rejected. User assignments live on account relationships, not here.
+ * Typed account properties: external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link, metabase_link) and email_domains (the company's email domains, used to match inbound touchpoints). Defaults to an empty object. Unknown keys are rejected. User assignments live on account relationships, not here.
* @nullable
*/
properties?: AccountProperties;
@@ -5770,6 +5772,7 @@ export namespace Schemas {
GoogleCloudStorage: 'google-cloud-storage',
GoogleAds: 'google-ads',
GoogleAnalytics: 'google-analytics',
+ GoogleCalendar: 'google-calendar',
GoogleSearchConsole: 'google-search-console',
GoogleSheets: 'google-sheets',
LinkedinAds: 'linkedin-ads',
@@ -39548,6 +39551,7 @@ export namespace Schemas {
* * `gitlab` - Gitlab
* * `google-ads` - Google Ads
* * `google-analytics` - Google Analytics
+ * * `google-calendar` - Google Calendar
* * `google-cloud-service-account` - Google Cloud Service Account
* * `google-cloud-storage` - Google Cloud Storage
* * `google-pubsub` - Google Pubsub
@@ -39597,6 +39601,7 @@ export namespace Schemas {
Gitlab: 'gitlab',
GoogleAds: 'google-ads',
GoogleAnalytics: 'google-analytics',
+ GoogleCalendar: 'google-calendar',
GoogleCloudServiceAccount: 'google-cloud-service-account',
GoogleCloudStorage: 'google-cloud-storage',
GooglePubsub: 'google-pubsub',
@@ -39646,6 +39651,7 @@ export namespace Schemas {
* * `gitlab` - Gitlab
* * `google-ads` - Google Ads
* * `google-analytics` - Google Analytics
+ * * `google-calendar` - Google Calendar
* * `google-cloud-service-account` - Google Cloud Service Account
* * `google-cloud-storage` - Google Cloud Storage
* * `google-pubsub` - Google Pubsub
@@ -51588,10 +51594,12 @@ export namespace Schemas {
}
/**
- * Typed account properties: external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link, metabase_link). Defaults to an empty object. Unknown keys are rejected. User assignments live on account relationships, not here.
+ * Typed account properties: external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link, metabase_link) and email_domains (the company's email domains, used to match inbound touchpoints). Defaults to an empty object. Unknown keys are rejected. User assignments live on account relationships, not here.
* @nullable
*/
export type PatchedAccountProperties = {
+ /** Email domains owned by this account's company, used to match inbound touchpoints to the account. */
+ email_domains?: string[];
/** @nullable */
stripe_customer_id?: string | null;
/** @nullable */
@@ -51608,7 +51616,7 @@ export namespace Schemas {
usage_dashboard_link?: string | null;
/** @nullable */
metabase_link?: string | null;
- } | null;
+ } | null | null;
/**
* A Customer Analytics account — a logical grouping used to assign customer-success ownership.
@@ -51627,7 +51635,7 @@ export namespace Schemas {
*/
external_id?: string | null;
/**
- * Typed account properties: external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link, metabase_link). Defaults to an empty object. Unknown keys are rejected. User assignments live on account relationships, not here.
+ * Typed account properties: external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link, metabase_link) and email_domains (the company's email domains, used to match inbound touchpoints). Defaults to an empty object. Unknown keys are rejected. User assignments live on account relationships, not here.
* @nullable
*/
properties?: PatchedAccountProperties;
@@ -84027,6 +84035,7 @@ export namespace Schemas {
* * `gitlab` - Gitlab
* * `google-ads` - Google Ads
* * `google-analytics` - Google Analytics
+ * * `google-calendar` - Google Calendar
* * `google-cloud-service-account` - Google Cloud Service Account
* * `google-cloud-storage` - Google Cloud Storage
* * `google-pubsub` - Google Pubsub
@@ -84087,6 +84096,7 @@ export namespace Schemas {
Gitlab: 'gitlab',
GoogleAds: 'google-ads',
GoogleAnalytics: 'google-analytics',
+ GoogleCalendar: 'google-calendar',
GoogleCloudServiceAccount: 'google-cloud-service-account',
GoogleCloudStorage: 'google-cloud-storage',
GooglePubsub: 'google-pubsub',
diff --git a/services/mcp/src/generated/customer_analytics/api.ts b/services/mcp/src/generated/customer_analytics/api.ts
index c3b3a032895f..10474b0122c7 100644
--- a/services/mcp/src/generated/customer_analytics/api.ts
+++ b/services/mcp/src/generated/customer_analytics/api.ts
@@ -154,6 +154,12 @@ export const AccountsCreateBody = /* @__PURE__ */ zod
),
properties: zod
.object({
+ email_domains: zod
+ .array(zod.string())
+ .optional()
+ .describe(
+ "Email domains owned by this account's company, used to match inbound touchpoints to the account."
+ ),
stripe_customer_id: zod.string().nullish(),
hubspot_deal_id: zod.string().nullish(),
billing_id: zod.string().nullish(),
@@ -165,7 +171,7 @@ export const AccountsCreateBody = /* @__PURE__ */ zod
})
.nullish()
.describe(
- 'Typed account properties: external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link, metabase_link). Defaults to an empty object. Unknown keys are rejected. User assignments live on account relationships, not here.'
+ "Typed account properties: external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link, metabase_link) and email_domains (the company's email domains, used to match inbound touchpoints). Defaults to an empty object. Unknown keys are rejected. User assignments live on account relationships, not here."
),
tags: zod
.array(zod.string())
@@ -349,6 +355,12 @@ export const AccountsPartialUpdateBody = /* @__PURE__ */ zod
),
properties: zod
.object({
+ email_domains: zod
+ .array(zod.string())
+ .optional()
+ .describe(
+ "Email domains owned by this account's company, used to match inbound touchpoints to the account."
+ ),
stripe_customer_id: zod.string().nullish(),
hubspot_deal_id: zod.string().nullish(),
billing_id: zod.string().nullish(),
@@ -360,7 +372,7 @@ export const AccountsPartialUpdateBody = /* @__PURE__ */ zod
})
.nullish()
.describe(
- 'Typed account properties: external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link, metabase_link). Defaults to an empty object. Unknown keys are rejected. User assignments live on account relationships, not here.'
+ "Typed account properties: external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link, metabase_link) and email_domains (the company's email domains, used to match inbound touchpoints). Defaults to an empty object. Unknown keys are rejected. User assignments live on account relationships, not here."
),
tags: zod
.array(zod.string())
diff --git a/services/mcp/src/generated/integrations/api.ts b/services/mcp/src/generated/integrations/api.ts
index f43693f67dd1..bb07eead7a87 100644
--- a/services/mcp/src/generated/integrations/api.ts
+++ b/services/mcp/src/generated/integrations/api.ts
@@ -36,6 +36,7 @@ export const IntegrationsListQueryParams = /* @__PURE__ */ zod.object({
'gitlab',
'google-ads',
'google-analytics',
+ 'google-calendar',
'google-cloud-service-account',
'google-cloud-storage',
'google-pubsub',
@@ -66,7 +67,7 @@ export const IntegrationsListQueryParams = /* @__PURE__ */ zod.object({
])
.optional()
.describe(
- '\* `anthropic` - Anthropic\n\* `apns` - Apple Push\n\* `aws-redshift` - Aws Redshift\n\* `aws-s3` - Aws S3\n\* `azure-blob` - Azure Blob\n\* `bing-ads` - Bing Ads\n\* `clickup` - Clickup\n\* `customerio-app` - Customerio App\n\* `customerio-track` - Customerio Track\n\* `customerio-webhook` - Customerio Webhook\n\* `databricks` - Databricks\n\* `email` - Email\n\* `firebase` - Firebase\n\* `github` - Github\n\* `gitlab` - Gitlab\n\* `google-ads` - Google Ads\n\* `google-analytics` - Google Analytics\n\* `google-cloud-service-account` - Google Cloud Service Account\n\* `google-cloud-storage` - Google Cloud Storage\n\* `google-pubsub` - Google Pubsub\n\* `google-search-console` - Google Search Console\n\* `google-sheets` - Google Sheets\n\* `hubspot` - Hubspot\n\* `intercom` - Intercom\n\* `jira` - Jira\n\* `linear` - Linear\n\* `linkedin-ads` - Linkedin Ads\n\* `meta-ads` - Meta Ads\n\* `pardot` - Pardot\n\* `pinterest-ads` - Pinterest Ads\n\* `postgresql` - Postgresql\n\* `posthog` - Posthog\n\* `reddit-ads` - Reddit Ads\n\* `resend` - Resend\n\* `s3-compatible` - S3 Compatible\n\* `salesforce` - Salesforce\n\* `slack` - Slack\n\* `slack-posthog-code` - Slack Posthog Code\n\* `snapchat` - Snapchat\n\* `snowflake` - Snowflake\n\* `stripe` - Stripe\n\* `tiktok-ads` - Tiktok Ads\n\* `twilio` - Twilio\n\* `vercel` - Vercel'
+ '\* `anthropic` - Anthropic\n\* `apns` - Apple Push\n\* `aws-redshift` - Aws Redshift\n\* `aws-s3` - Aws S3\n\* `azure-blob` - Azure Blob\n\* `bing-ads` - Bing Ads\n\* `clickup` - Clickup\n\* `customerio-app` - Customerio App\n\* `customerio-track` - Customerio Track\n\* `customerio-webhook` - Customerio Webhook\n\* `databricks` - Databricks\n\* `email` - Email\n\* `firebase` - Firebase\n\* `github` - Github\n\* `gitlab` - Gitlab\n\* `google-ads` - Google Ads\n\* `google-analytics` - Google Analytics\n\* `google-calendar` - Google Calendar\n\* `google-cloud-service-account` - Google Cloud Service Account\n\* `google-cloud-storage` - Google Cloud Storage\n\* `google-pubsub` - Google Pubsub\n\* `google-search-console` - Google Search Console\n\* `google-sheets` - Google Sheets\n\* `hubspot` - Hubspot\n\* `intercom` - Intercom\n\* `jira` - Jira\n\* `linear` - Linear\n\* `linkedin-ads` - Linkedin Ads\n\* `meta-ads` - Meta Ads\n\* `pardot` - Pardot\n\* `pinterest-ads` - Pinterest Ads\n\* `postgresql` - Postgresql\n\* `posthog` - Posthog\n\* `reddit-ads` - Reddit Ads\n\* `resend` - Resend\n\* `s3-compatible` - S3 Compatible\n\* `salesforce` - Salesforce\n\* `slack` - Slack\n\* `slack-posthog-code` - Slack Posthog Code\n\* `snapchat` - Snapchat\n\* `snowflake` - Snowflake\n\* `stripe` - Stripe\n\* `tiktok-ads` - Tiktok Ads\n\* `twilio` - Twilio\n\* `vercel` - Vercel'
),
limit: zod.number().optional().describe('Number of results to return per page.'),
offset: zod.number().optional().describe('The initial index from which to return the results.'),
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/integrations-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/integrations-list.json
index 7259dc747866..cff7b622288f 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/integrations-list.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/integrations-list.json
@@ -2,7 +2,7 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"kind": {
- "description": "* `anthropic` - Anthropic\n* `apns` - Apple Push\n* `aws-redshift` - Aws Redshift\n* `aws-s3` - Aws S3\n* `azure-blob` - Azure Blob\n* `bing-ads` - Bing Ads\n* `clickup` - Clickup\n* `customerio-app` - Customerio App\n* `customerio-track` - Customerio Track\n* `customerio-webhook` - Customerio Webhook\n* `databricks` - Databricks\n* `email` - Email\n* `firebase` - Firebase\n* `github` - Github\n* `gitlab` - Gitlab\n* `google-ads` - Google Ads\n* `google-analytics` - Google Analytics\n* `google-cloud-service-account` - Google Cloud Service Account\n* `google-cloud-storage` - Google Cloud Storage\n* `google-pubsub` - Google Pubsub\n* `google-search-console` - Google Search Console\n* `google-sheets` - Google Sheets\n* `hubspot` - Hubspot\n* `intercom` - Intercom\n* `jira` - Jira\n* `linear` - Linear\n* `linkedin-ads` - Linkedin Ads\n* `meta-ads` - Meta Ads\n* `pardot` - Pardot\n* `pinterest-ads` - Pinterest Ads\n* `postgresql` - Postgresql\n* `posthog` - Posthog\n* `reddit-ads` - Reddit Ads\n* `resend` - Resend\n* `s3-compatible` - S3 Compatible\n* `salesforce` - Salesforce\n* `slack` - Slack\n* `slack-posthog-code` - Slack Posthog Code\n* `snapchat` - Snapchat\n* `snowflake` - Snowflake\n* `stripe` - Stripe\n* `tiktok-ads` - Tiktok Ads\n* `twilio` - Twilio\n* `vercel` - Vercel",
+ "description": "* `anthropic` - Anthropic\n* `apns` - Apple Push\n* `aws-redshift` - Aws Redshift\n* `aws-s3` - Aws S3\n* `azure-blob` - Azure Blob\n* `bing-ads` - Bing Ads\n* `clickup` - Clickup\n* `customerio-app` - Customerio App\n* `customerio-track` - Customerio Track\n* `customerio-webhook` - Customerio Webhook\n* `databricks` - Databricks\n* `email` - Email\n* `firebase` - Firebase\n* `github` - Github\n* `gitlab` - Gitlab\n* `google-ads` - Google Ads\n* `google-analytics` - Google Analytics\n* `google-calendar` - Google Calendar\n* `google-cloud-service-account` - Google Cloud Service Account\n* `google-cloud-storage` - Google Cloud Storage\n* `google-pubsub` - Google Pubsub\n* `google-search-console` - Google Search Console\n* `google-sheets` - Google Sheets\n* `hubspot` - Hubspot\n* `intercom` - Intercom\n* `jira` - Jira\n* `linear` - Linear\n* `linkedin-ads` - Linkedin Ads\n* `meta-ads` - Meta Ads\n* `pardot` - Pardot\n* `pinterest-ads` - Pinterest Ads\n* `postgresql` - Postgresql\n* `posthog` - Posthog\n* `reddit-ads` - Reddit Ads\n* `resend` - Resend\n* `s3-compatible` - S3 Compatible\n* `salesforce` - Salesforce\n* `slack` - Slack\n* `slack-posthog-code` - Slack Posthog Code\n* `snapchat` - Snapchat\n* `snowflake` - Snowflake\n* `stripe` - Stripe\n* `tiktok-ads` - Tiktok Ads\n* `twilio` - Twilio\n* `vercel` - Vercel",
"enum": [
"anthropic",
"apns",
@@ -21,6 +21,7 @@
"gitlab",
"google-ads",
"google-analytics",
+ "google-calendar",
"google-cloud-service-account",
"google-cloud-storage",
"google-pubsub",