: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(customer-analytics): add useful links to accounts row expansion (#61446)
Arthur Moreira de Deuse8026ec83af7
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex 16b4bbb4b124..efeb13980fc1 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -4286,6 +4286,10 @@ snapshots:hash: v1.k794b7964.b13cbe3831d8061ef40152025cdd3d6760f914417355679d0f22581de83de586.W8vrcREpOiVfHeVafSDXEU3Iyom5qvydZLiA0lgnvaUscenes-app-customer-analytics-accounts--row-expanded-empty--light:hash: v1.k794b7964.904bd5b939f99d43408ae3a8a814a3c299bd57bf13a0fd1d98ff6033fd66e343.K1Z16ICEF6-O9kIej8kGnYyarloq2oZH5rdtmx-8Hu0+ scenes-app-customer-analytics-accounts--row-expanded-links-disabled--dark:+ hash: v1.k794b7964.92be80889ae455a05c5e79357b0b86fadeb9cb7f93761089d48b1315cc1b8448.A3_TCemtV73Ig2IEi-D8h9T4buy_xGLaVH1EYQ7B7II+ scenes-app-customer-analytics-accounts--row-expanded-links-disabled--light:+ hash: v1.k794b7964.507c607813892eeabec48171f50ab7220f2a5b2a6bd1bdb77cb64c89f0bc88b1.bQIl5-n8IuVD1CTj6b2fpXagCUDsoTOKycNebvdBBbUscenes-app-customer-analytics-accounts--row-expanded-with-note--dark:hash: v1.k794b7964.3c9ce002ecb9931c56ef82618cc1625ee847a7f8df2a35c490006e4b356e6fb5.bK3yVZfb-U4TUMJHKvLemkMdqx6YNKdkFC2lnrWBgYgscenes-app-customer-analytics-accounts--row-expanded-with-note--light:diff --git a/posthog/session_recordings/queries/test/listing_recordings/__snapshots__/test_session_recording_list_from_query.ambr b/posthog/session_recordings/queries/test/listing_recordings/__snapshots__/test_session_recording_list_from_query.ambrindex 800a3fff4b5e..4d81dc6a2021 100644--- a/posthog/session_recordings/queries/test/listing_recordings/__snapshots__/test_session_recording_list_from_query.ambr+++ b/posthog/session_recordings/queries/test/listing_recordings/__snapshots__/test_session_recording_list_from_query.ambr@@ -1122,7 +1122,7 @@WHERE and(equals(s.team_id, 99999), greaterOrEquals(s.min_first_timestamp, toDateTime64('2020-12-29 00:00:00.000000', 6, 'UTC')), lessOrEquals(s.min_first_timestamp, toDateTime64('today', 6, 'UTC')), globalIn(s.session_id,(SELECT nullIf(nullIf(events.`$session_id`, ''), 'null') AS session_idFROM events- WHERE and(equals(events.team_id, 99999), notEmpty(nullIf(nullIf(events.`$session_id`, ''), 'null')), lessOrEquals(events.timestamp, now64(6, 'UTC')), ifNull(equals(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.person_properties, 'email'), ''), 'null'), '^"|"$', ''), 'bla'), 0), greaterOrEquals(events.timestamp, toDateTime64('2020-12-28 00:00:00.000000', 6, 'UTC')))+ WHERE and(equals(events.team_id, 99999), notEmpty(nullIf(nullIf(events.`$session_id`, ''), 'null')), lessOrEquals(events.timestamp, now64(6, 'UTC')), equals(events.mat_pp_email, 'bla'), greaterOrEquals(events.timestamp, toDateTime64('2020-12-28 00:00:00.000000', 6, 'UTC')))GROUP BY nullIf(nullIf(events.`$session_id`, ''), 'null')HAVING 1ORDER BY min(toTimeZone(events.timestamp, 'UTC')) DESCdiff --git a/products/customer_analytics/backend/api/serializers.py b/products/customer_analytics/backend/api/serializers.pyindex e57460cbecaa..68b21e6c6c90 100644--- a/products/customer_analytics/backend/api/serializers.py+++ b/products/customer_analytics/backend/api/serializers.py@@ -33,6 +33,8 @@ _ACCOUNT_PROPERTIES_SCHEMA = {"billing_id": {"type": "string", "nullable": True},"sfdc_id": {"type": "string", "nullable": True},"zendesk_id": {"type": "string", "nullable": True},+ "slack_channel_id": {"type": "string", "nullable": True},+ "usage_dashboard_link": {"type": "string", "nullable": True},},}@@ -144,7 +146,8 @@ class AccountSerializer(TaggedItemSerializerMixin, serializers.ModelSerializer):help_text=("Typed account properties: assignment fields (csm, account_executive, account_owner) ""and external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, "- "sfdc_id, zendesk_id). Defaults to an empty object. Unknown keys are rejected."+ "sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link). Defaults to an empty "+ "object. Unknown keys are rejected."),)tags = serializers.ListField(diff --git a/products/customer_analytics/backend/api/test_views.py b/products/customer_analytics/backend/api/test_views.pyindex 3233ef55b000..eb83a9410be2 100644--- a/products/customer_analytics/backend/api/test_views.py+++ b/products/customer_analytics/backend/api/test_views.py@@ -498,6 +498,8 @@ class TestAccountViewSet(APIBaseTest):"billing_id": "bill_789","sfdc_id": "001A000000DUMMY","zendesk_id": "zd_42",+ "slack_channel_id": "C0123456789",+ "usage_dashboard_link": "https://us.posthog.com/project/2/dashboard/12345",}def _assert_external_identifiers(self, properties_payload):diff --git a/products/customer_analytics/backend/models/account.py b/products/customer_analytics/backend/models/account.pyindex 8f40acddc858..a672a2269d99 100644--- a/products/customer_analytics/backend/models/account.py+++ b/products/customer_analytics/backend/models/account.py@@ -33,6 +33,8 @@ class AccountProperties(BaseModel):billing_id: str | None = Nonesfdc_id: str | None = Nonezendesk_id: str | None = None+ slack_channel_id: str | None = None+ usage_dashboard_link: str | None = Noneclass AccountManager(TeamScopedManager["Account"]):diff --git a/products/customer_analytics/frontend/components/Accounts/AccountNotebooksExpansion.tsx b/products/customer_analytics/frontend/components/Accounts/AccountNotebooksExpansion.tsxindex 363cdc45f604..59c56c9712de 100644--- a/products/customer_analytics/frontend/components/Accounts/AccountNotebooksExpansion.tsx+++ b/products/customer_analytics/frontend/components/Accounts/AccountNotebooksExpansion.tsx@@ -1,13 +1,16 @@import { useValues } from 'kea'-import { LemonTable, LemonTableColumns, Link, ProfilePicture } from '@posthog/lemon-ui'+import { IconGraph, IconPeople, IconPiggyBank, IconReceipt } from '@posthog/icons'+import { LemonButton, LemonSkeleton, LemonTable, LemonTableColumns, Link, ProfilePicture } from '@posthog/lemon-ui'import { TZLabel } from 'lib/components/TZLabel'+import { IconSlack } from 'lib/lemon-ui/icons'import { fullName } from 'lib/utils'import { urls } from 'scenes/urls'import type { AccountNotebookApi } from 'products/customer_analytics/frontend/generated/api.schemas'+import { accountLinksLogic } from './accountLinksLogic'import { accountNotebooksLogic } from './accountNotebooksLogic'const PREVIEW_MAX_CHARS = 200@@ -21,6 +24,45 @@ function getPreview(notebook: AccountNotebookApi): string {return collapsed.length > PREVIEW_MAX_CHARS ? `${collapsed.slice(0, PREVIEW_MAX_CHARS).trimEnd()}…` : collapsed}+const LINK_ICONS: Record<string, JSX.Element> = {+ organization: <IconPeople />,+ revenue: <IconPiggyBank />,+ 'usage-dashboard': <IconGraph />,+ slack: <IconSlack />,+ 'billing-admin': <IconReceipt />,+}++function UsefulLinks({ accountId }: { accountId: string }): JSX.Element {+ const { links, accountLoading } = useValues(accountLinksLogic({ accountId }))+ return (+ <div className="flex flex-col gap-1">+ <h4 className="secondary uppercase text-secondary mb-1">Useful links</h4>+ {accountLoading ? (+ <>+ <LemonSkeleton className="h-7 w-32" />+ <LemonSkeleton className="h-7 w-32" />+ <LemonSkeleton className="h-7 w-32" />+ </>+ ) : (+ links.map((link) => (+ <LemonButton+ key={link.key}+ type="tertiary"+ size="small"+ fullWidth+ icon={LINK_ICONS[link.key]}+ to={link.to ?? undefined}+ targetBlank={link.targetBlank}+ disabledReason={link.disabledReason ?? undefined}+ >+ {link.label}+ </LemonButton>+ ))+ )}+ </div>+ )+}+export function AccountNotebooksExpansion({ accountId }: { accountId: string }): JSX.Element {const logic = accountNotebooksLogic({ accountId })const { notebooks, notebooksLoading } = useValues(logic)@@ -75,18 +117,27 @@ export function AccountNotebooksExpansion({ accountId }: { accountId: string }):]return (- <div className="p-3 bg-bg-light">- <LemonTable<AccountNotebookApi>- size="small"- embedded- dataSource={notebooks ?? []}- rowKey="short_id"- loading={notebooksLoading}- columns={columns}- emptyState={- notebooks === null ? 'Failed to load account notes.' : 'No notes linked to this account yet.'- }- />+ <div className="sticky left-0 w-[100cqw] p-3 bg-bg-light">+ <div className="flex gap-8">+ <div className="w-fit shrink-0">+ <UsefulLinks accountId={accountId} />+ </div>+ <div className="flex-1 min-w-0">+ <LemonTable<AccountNotebookApi>+ size="small"+ embedded+ dataSource={notebooks ?? []}+ rowKey="short_id"+ loading={notebooksLoading}+ columns={columns}+ emptyState={+ notebooks === null+ ? 'Failed to load account notes.'+ : 'No notes linked to this account yet.'+ }+ />+ </div>+ </div></div>)}diff --git a/products/customer_analytics/frontend/components/Accounts/AccountsHogQLTable.tsx b/products/customer_analytics/frontend/components/Accounts/AccountsHogQLTable.tsxindex a491cd6f3300..e68f8539745b 100644--- a/products/customer_analytics/frontend/components/Accounts/AccountsHogQLTable.tsx+++ b/products/customer_analytics/frontend/components/Accounts/AccountsHogQLTable.tsx@@ -245,6 +245,7 @@ function useExpandable(): QueryContext<DataTableNode>['expandable'] {return useMemo(() => ({noIndent: true,+ expandedRowClassName: '[&>td]:overflow-visible!',expandedRowRender: ({ result }) => {const accountId = getNameCell(result, visibleColumnNames)?.idreturn accountId ? <AccountNotebooksExpansion accountId={accountId} /> : null@@ -319,20 +320,22 @@ export function AccountsHogQLTable(): JSX.Element {return <AccountsHogQLSkeleton />}return (- <DataTable- uniqueKey="customer-analytics-accounts-hogql"- query={hogqlQuery}- setQuery={() => {- // Filters are owned by accountsLogic; column/sort changes from the DataTable are ignored on purpose.- }}- context={{- columns: contextColumns,- expandable,- dataNodeLogicKey: ACCOUNTS_HOGQL_DATA_NODE_KEY,- emptyStateHeading: 'There are no matching accounts for this query',- emptyStateDetail: 'Try adjusting the filters or refreshing',- }}- readOnly- />+ <div className="@container">+ <DataTable+ uniqueKey="customer-analytics-accounts-hogql"+ query={hogqlQuery}+ setQuery={() => {+ // Filters are owned by accountsLogic; column/sort changes from the DataTable are ignored on purpose.+ }}+ context={{+ columns: contextColumns,+ expandable,+ dataNodeLogicKey: ACCOUNTS_HOGQL_DATA_NODE_KEY,+ emptyStateHeading: 'There are no matching accounts for this query',+ emptyStateDetail: 'Try adjusting the filters or refreshing',+ }}+ readOnly+ />+ </div>)}diff --git a/products/customer_analytics/frontend/components/Accounts/AccountsTab.stories.tsx b/products/customer_analytics/frontend/components/Accounts/AccountsTab.stories.tsxindex 0e0378c08235..0242fff8f440 100644--- a/products/customer_analytics/frontend/components/Accounts/AccountsTab.stories.tsx+++ b/products/customer_analytics/frontend/components/Accounts/AccountsTab.stories.tsx@@ -9,6 +9,7 @@ import { urls } from 'scenes/urls'import { mswDecorator } from '~/mocks/browser'const QUERY_ENDPOINT = '/api/environments/:team_id/query/:kind/'+const ACCOUNT_RETRIEVE_ENDPOINT = 'api/projects/:team_id/accounts/:account_id/'const ACCOUNT_NOTEBOOKS_ENDPOINT = 'api/projects/:team_id/accounts/:account_id/notebooks/'const WAREHOUSE_VIEW_LINK_ENDPOINT = 'api/environments/:team_id/warehouse_view_link/'@@ -62,6 +63,34 @@ const SINGLE_ROW: AccountRow[] = [],]+const ACCOUNT_WITH_LINKS = {+ id: 'acc-1',+ name: 'Acme Inc',+ external_id: 'cust_acme_001',+ properties: {+ billing_id: 'cus_acme_123',+ slack_channel_id: 'C0123456789',+ usage_dashboard_link: 'https://us.posthog.com/project/2/dashboard/12345',+ },+ tags: [],+ notebooks: [],+ created_at: '2026-05-15T10:30:00Z',+ created_by: null,+ updated_at: '2026-05-15T10:30:00Z',+}++const ACCOUNT_WITHOUT_LINKS = {+ id: 'acc-1',+ name: 'Acme Inc',+ external_id: null,+ properties: {},+ tags: [],+ notebooks: [],+ created_at: '2026-05-15T10:30:00Z',+ created_by: null,+ updated_at: '2026-05-15T10:30:00Z',+}+async function expandFirstRow(canvasElement: HTMLElement): Promise<void> {const canvas = within(canvasElement)const expandBtn = await canvas.findByTitle('Show more')@@ -138,6 +167,7 @@ export const RowExpandedEmpty: Story = {decorators: [mswDecorator({get: {+ [ACCOUNT_RETRIEVE_ENDPOINT]: ACCOUNT_WITH_LINKS,[ACCOUNT_NOTEBOOKS_ENDPOINT]: { count: 0, next: null, previous: null, results: [] },},post: {@@ -155,6 +185,7 @@ export const RowExpandedWithNote: Story = {decorators: [mswDecorator({get: {+ [ACCOUNT_RETRIEVE_ENDPOINT]: ACCOUNT_WITH_LINKS,[ACCOUNT_NOTEBOOKS_ENDPOINT]: {count: 1,next: null,@@ -198,3 +229,21 @@ export const RowExpandedWithNote: Story = {await expandFirstRow(canvasElement)},}++export const RowExpandedLinksDisabled: Story = {+ render: () => <App />,+ decorators: [+ mswDecorator({+ get: {+ [ACCOUNT_RETRIEVE_ENDPOINT]: ACCOUNT_WITHOUT_LINKS,+ [ACCOUNT_NOTEBOOKS_ENDPOINT]: { count: 0, next: null, previous: null, results: [] },+ },+ post: {+ [QUERY_ENDPOINT]: mockAccountsQuery(SINGLE_ROW),+ },+ }),+ ],+ play: async ({ canvasElement }) => {+ await expandFirstRow(canvasElement)+ },+}diff --git a/products/customer_analytics/frontend/components/Accounts/accountLinksLogic.ts b/products/customer_analytics/frontend/components/Accounts/accountLinksLogic.tsnew file mode 100644index 000000000000..0b0f3918bd87--- /dev/null+++ b/products/customer_analytics/frontend/components/Accounts/accountLinksLogic.ts@@ -0,0 +1,108 @@+import { afterMount, connect, kea, key, path, props, selectors } from 'kea'+import { loaders } from 'kea-loaders'+import posthog from 'posthog-js'++import { teamLogic } from 'scenes/teamLogic'+import { urls } from 'scenes/urls'++import { accountsRetrieve } from 'products/customer_analytics/frontend/generated/api'+import type { AccountApi } from 'products/customer_analytics/frontend/generated/api.schemas'++import type { accountLinksLogicType } from './accountLinksLogicType'++const ORGANIZATION_GROUP_TYPE_INDEX = 0+const REVENUE_DASHBOARD_ID = 259114+const BILLING_ADMIN_ORIGIN = 'https://billing.posthog.com'+const SLACK_ARCHIVES_ORIGIN = 'https://posthog.slack.com/archives'++export interface AccountLinksLogicProps {+ accountId: string+}++export interface AccountLink {+ key: string+ label: string+ to: string | null+ targetBlank: boolean+ disabledReason: string | null+}++function revenueDashboardUrl(externalId: string, billingId: string | null): string {+ const queryVariables = JSON.stringify({ customer_id: billingId, organization_id: externalId })+ return `${urls.dashboard(REVENUE_DASHBOARD_ID)}?query_variables=${encodeURIComponent(queryVariables)}`+}++export const accountLinksLogic = kea<accountLinksLogicType>([+ path((key) => ['scenes', 'customerAnalytics', 'accounts', 'accountLinksLogic', key]),+ props({} as AccountLinksLogicProps),+ key((props) => props.accountId),+ connect(() => ({+ values: [teamLogic, ['currentTeamId']],+ })),+ loaders(({ props, values }) => ({+ account: [+ null as AccountApi | null,+ {+ loadAccount: async (): Promise<AccountApi | null> => {+ try {+ return await accountsRetrieve(String(values.currentTeamId), props.accountId)+ } catch (error) {+ posthog.captureException(error as Error, { scope: 'accountLinksLogic.loadAccount' })+ return null+ }+ },+ },+ ],+ })),+ selectors({+ links: [+ (s) => [s.account],+ (account: AccountApi | null): AccountLink[] => {+ const externalId = account?.external_id ?? null+ const billingId = account?.properties?.billing_id ?? null+ const slackChannelId = account?.properties?.slack_channel_id ?? null+ const usageDashboardLink = account?.properties?.usage_dashboard_link ?? null+ return [+ {+ key: 'organization',+ label: 'Organization',+ to: externalId ? urls.group(ORGANIZATION_GROUP_TYPE_INDEX, externalId) : null,+ targetBlank: false,+ disabledReason: externalId ? null : 'No external ID set',+ },+ {+ key: 'revenue',+ label: 'Revenue',+ to: externalId ? revenueDashboardUrl(externalId, billingId) : null,+ targetBlank: false,+ disabledReason: externalId ? null : 'No external ID set',+ },+ {+ key: 'usage-dashboard',+ label: 'Usage dashboard',+ to: usageDashboardLink,+ targetBlank: true,+ disabledReason: usageDashboardLink ? null : 'No usage dashboard link set',+ },+ {+ key: 'slack',+ label: 'Slack channel',+ to: slackChannelId ? `${SLACK_ARCHIVES_ORIGIN}/${slackChannelId}` : null,+ targetBlank: true,+ disabledReason: slackChannelId ? null : 'No Slack channel set',+ },+ {+ key: 'billing-admin',+ label: 'Billing admin',+ to: billingId ? `${BILLING_ADMIN_ORIGIN}/admin/billing/customer/${billingId}/change/` : null,+ targetBlank: true,+ disabledReason: billingId ? null : 'No billing ID set',+ },+ ]+ },+ ],+ }),+ afterMount(({ actions }) => {+ actions.loadAccount()+ }),+])diff --git a/products/customer_analytics/frontend/generated/api.schemas.ts b/products/customer_analytics/frontend/generated/api.schemas.tsindex b6781a680e40..f4fcc75dd188 100644--- a/products/customer_analytics/frontend/generated/api.schemas.ts+++ b/products/customer_analytics/frontend/generated/api.schemas.ts@@ -8,7 +8,7 @@* OpenAPI spec version: 1.0.0*//**- * Typed account properties: assignment fields (csm, account_executive, account_owner) and external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id). Defaults to an empty object. Unknown keys are rejected.+ * Typed account properties: assignment fields (csm, account_executive, account_owner) and external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link). Defaults to an empty object. Unknown keys are rejected.* @nullable*/export type AccountApiProperties = {@@ -37,6 +37,10 @@ export type AccountApiProperties = {sfdc_id?: string | null/** @nullable */zendesk_id?: string | null+ /** @nullable */+ slack_channel_id?: string | null+ /** @nullable */+ usage_dashboard_link?: string | null} | null/**@@ -56,7 +60,7 @@ export interface AccountApi {*/external_id?: string | null/**- * Typed account properties: assignment fields (csm, account_executive, account_owner) and external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id). Defaults to an empty object. Unknown keys are rejected.+ * Typed account properties: assignment fields (csm, account_executive, account_owner) and external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link). Defaults to an empty object. Unknown keys are rejected.* @nullable*/properties?: AccountApiProperties@@ -167,7 +171,7 @@ export interface PaginatedAccountNotebookListApi {}/**- * Typed account properties: assignment fields (csm, account_executive, account_owner) and external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id). Defaults to an empty object. Unknown keys are rejected.+ * Typed account properties: assignment fields (csm, account_executive, account_owner) and external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link). Defaults to an empty object. Unknown keys are rejected.* @nullable*/export type PatchedAccountApiProperties = {@@ -196,6 +200,10 @@ export type PatchedAccountApiProperties = {sfdc_id?: string | null/** @nullable */zendesk_id?: string | null+ /** @nullable */+ slack_channel_id?: string | null+ /** @nullable */+ usage_dashboard_link?: string | null} | null/**@@ -215,7 +223,7 @@ export interface PatchedAccountApi {*/external_id?: string | null/**- * Typed account properties: assignment fields (csm, account_executive, account_owner) and external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id). Defaults to an empty object. Unknown keys are rejected.+ * Typed account properties: assignment fields (csm, account_executive, account_owner) and external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link). Defaults to an empty object. Unknown keys are rejected.* @nullable*/properties?: PatchedAccountApiPropertiesdiff --git a/products/customer_analytics/frontend/generated/api.zod.ts b/products/customer_analytics/frontend/generated/api.zod.tsindex 3865ec584588..80fc154fccac 100644--- a/products/customer_analytics/frontend/generated/api.zod.ts+++ b/products/customer_analytics/frontend/generated/api.zod.ts@@ -46,10 +46,12 @@ export const AccountsCreateBody = /* @__PURE__ */ zodbilling_id: zod.string().nullish(),sfdc_id: zod.string().nullish(),zendesk_id: zod.string().nullish(),+ slack_channel_id: zod.string().nullish(),+ usage_dashboard_link: zod.string().nullish(),}).nullish().describe(- 'Typed account properties: assignment fields (csm, account_executive, account_owner) and external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id). Defaults to an empty object. Unknown keys are rejected.'+ 'Typed account properties: assignment fields (csm, account_executive, account_owner) and external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link). Defaults to an empty object. Unknown keys are rejected.'),tags: zod.array(zod.string())@@ -107,10 +109,12 @@ export const AccountsUpdateBody = /* @__PURE__ */ zodbilling_id: zod.string().nullish(),sfdc_id: zod.string().nullish(),zendesk_id: zod.string().nullish(),+ slack_channel_id: zod.string().nullish(),+ usage_dashboard_link: zod.string().nullish(),}).nullish().describe(- 'Typed account properties: assignment fields (csm, account_executive, account_owner) and external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id). Defaults to an empty object. Unknown keys are rejected.'+ 'Typed account properties: assignment fields (csm, account_executive, account_owner) and external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link). Defaults to an empty object. Unknown keys are rejected.'),tags: zod.array(zod.string())@@ -160,10 +164,12 @@ export const AccountsPartialUpdateBody = /* @__PURE__ */ zodbilling_id: zod.string().nullish(),sfdc_id: zod.string().nullish(),zendesk_id: zod.string().nullish(),+ slack_channel_id: zod.string().nullish(),+ usage_dashboard_link: zod.string().nullish(),}).nullish().describe(- 'Typed account properties: assignment fields (csm, account_executive, account_owner) and external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id). Defaults to an empty object. Unknown keys are rejected.'+ 'Typed account properties: assignment fields (csm, account_executive, account_owner) and external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link). Defaults to an empty object. Unknown keys are rejected.'),tags: zod.array(zod.string())diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex 59a25fdd7d55..0e8b4f9ffa7f 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -58,7 +58,7 @@ export namespace Schemas {} as const;/**- * Typed account properties: assignment fields (csm, account_executive, account_owner) and external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id). Defaults to an empty object. Unknown keys are rejected.+ * Typed account properties: assignment fields (csm, account_executive, account_owner) and external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link). Defaults to an empty object. Unknown keys are rejected.* @nullable*/export type AccountProperties = {@@ -87,6 +87,10 @@ export namespace Schemas {sfdc_id?: string | null;/** @nullable */zendesk_id?: string | null;+ /** @nullable */+ slack_channel_id?: string | null;+ /** @nullable */+ usage_dashboard_link?: string | null;} | null;/**@@ -106,7 +110,7 @@ export namespace Schemas {*/external_id?: string | null;/**- * Typed account properties: assignment fields (csm, account_executive, account_owner) and external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id). Defaults to an empty object. Unknown keys are rejected.+ * Typed account properties: assignment fields (csm, account_executive, account_owner) and external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link). Defaults to an empty object. Unknown keys are rejected.* @nullable*/properties?: AccountProperties;@@ -26653,7 +26657,7 @@ export namespace Schemas {}/**- * Typed account properties: assignment fields (csm, account_executive, account_owner) and external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id). Defaults to an empty object. Unknown keys are rejected.+ * Typed account properties: assignment fields (csm, account_executive, account_owner) and external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link). Defaults to an empty object. Unknown keys are rejected.* @nullable*/export type PatchedAccountProperties = {@@ -26682,6 +26686,10 @@ export namespace Schemas {sfdc_id?: string | null;/** @nullable */zendesk_id?: string | null;+ /** @nullable */+ slack_channel_id?: string | null;+ /** @nullable */+ usage_dashboard_link?: string | null;} | null;/**@@ -26701,7 +26709,7 @@ export namespace Schemas {*/external_id?: string | null;/**- * Typed account properties: assignment fields (csm, account_executive, account_owner) and external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id). Defaults to an empty object. Unknown keys are rejected.+ * Typed account properties: assignment fields (csm, account_executive, account_owner) and external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link). Defaults to an empty object. Unknown keys are rejected.* @nullable*/properties?: PatchedAccountProperties;diff --git a/services/mcp/src/generated/customer_analytics/api.ts b/services/mcp/src/generated/customer_analytics/api.tsindex 2816dd3a8327..1b57b72dc54b 100644--- a/services/mcp/src/generated/customer_analytics/api.ts+++ b/services/mcp/src/generated/customer_analytics/api.ts@@ -87,10 +87,12 @@ export const AccountsCreateBody = /* @__PURE__ */ zodbilling_id: zod.string().nullish(),sfdc_id: zod.string().nullish(),zendesk_id: zod.string().nullish(),+ slack_channel_id: zod.string().nullish(),+ usage_dashboard_link: zod.string().nullish(),}).nullish().describe(- 'Typed account properties: assignment fields (csm, account_executive, account_owner) and external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id). Defaults to an empty object. Unknown keys are rejected.'+ 'Typed account properties: assignment fields (csm, account_executive, account_owner) and external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link). Defaults to an empty object. Unknown keys are rejected.'),tags: zod.array(zod.string())@@ -213,10 +215,12 @@ export const AccountsPartialUpdateBody = /* @__PURE__ */ zodbilling_id: zod.string().nullish(),sfdc_id: zod.string().nullish(),zendesk_id: zod.string().nullish(),+ slack_channel_id: zod.string().nullish(),+ usage_dashboard_link: zod.string().nullish(),}).nullish().describe(- 'Typed account properties: assignment fields (csm, account_executive, account_owner) and external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id). Defaults to an empty object. Unknown keys are rejected.'+ 'Typed account properties: assignment fields (csm, account_executive, account_owner) and external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link). Defaults to an empty object. Unknown keys are rejected.'),tags: zod.array(zod.string())