Surface last_matched_at on all API surfaces

Add lastMatchedAt to the CookiePattern GraphQL type, MCP schema,
CLI view/list commands, and n8n get/getAll operations. Run
codegen to regenerate gqlgen models and MCP types.

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-05-04 16:05:42 +04:00
parent b89707d9d2
commit 54655c218b
8 changed files with 30 additions and 8 deletions

View File

@@ -205,6 +205,7 @@ type CookiePattern implements Node {
source: CookieSource!
excluded: Boolean!
cookieCount: Int! @goField(forceResolver: true)
lastMatchedAt: Datetime
createdAt: Datetime!
updatedAt: Datetime!

View File

@@ -76,6 +76,7 @@ func NewCookiePattern(cp *coredata.CookiePattern) *CookiePattern {
Description: cp.Description,
Source: cp.Source,
Excluded: cp.Excluded,
LastMatchedAt: cp.LastMatchedAt,
CreatedAt: cp.CreatedAt,
UpdatedAt: cp.UpdatedAt,
}

View File

@@ -9185,6 +9185,12 @@ components:
excluded:
type: boolean
description: Whether this pattern is excluded from the consent banner
last_matched_at:
type:
- string
- "null"
format: date-time
description: Timestamp when a cookie last matched this pattern
created_at:
type: string
format: date-time

View File

@@ -32,6 +32,7 @@ func NewCookiePattern(p *coredata.CookiePattern) *CookiePattern {
Description: p.Description,
Source: CookiePatternSource(p.Source),
Excluded: p.Excluded,
LastMatchedAt: p.LastMatchedAt,
CreatedAt: p.CreatedAt,
UpdatedAt: p.UpdatedAt,
}