> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# On customer updated

> Run an automation when Linear reports customer updated.

`linear.onCustomerUpdated` handles customer updated in the connected Linear workspace.

```ts automations/watch-linear-customer.automation.ts theme={null}
import { automation } from "automate.ax"
import { linear } from "automate.ax/linear"

export default automation("On customer updated", () => {
  const event = linear.onCustomerUpdated()
  // Sync the Linear customer to the CRM.
})
```

Optional static `account` defaults to the project binding. Linear webhook triggers require an OAuth connection with read access. The workspace can't change at runtime.

## Trigger data

Returns a `Signal<LinearCustomerTrigger>`:

```ts theme={null}
type LinearCustomerTrigger = LinearCustomer & {
  event: LinearWebhookEvent<LinearCustomer, "update">
}

interface LinearCustomer {
  approximateNeedCount: number
  archivedAt?: string | null
  createdAt: string
  domains: string[]
  externalIds: string[]
  id: string
  logoUrl?: string | null
  name: string
  ownerId?: string | null
  revenue?: number | null
  size?: number | null
  slugId: string
  statusId?: string | null
  tierId?: string | null
  updatedAt: string
  url: string
}

interface LinearWebhookEvent<TData, TAction extends string> {
  action: TAction
  actor?: LinearActor | null
  createdAt: string
  data: TData
  organizationId: string
  type: "Customer"
  updatedFrom?: Record<string, JSONValue> | null
  url?: string | null
  webhookId: string
  webhookTimestamp: number
}

interface LinearActor {
  email?: string
  id?: string
  name?: string
  type?: string
  url?: string
}
```

Customer events include external identifiers and domains. Revenue, size, ownership, status, and tier can be absent. Resource objects and the webhook envelope retain extra Linear fields.
