Use canonical filter envelopes in the CLI - #29
Merged
Conversation
yosriady
marked this pull request as ready for review
July 29, 2026 05:46
yosriady
added a commit
that referenced
this pull request
Aug 3, 2026
The `contains` operator is no longer social-only: the profiles surface supports it on routable string attributes (case-sensitive) and, since P-2387, on `labels.value` (case-insensitive). `startsWith`/`endsWith` were missing from the CLI's operator list entirely even though the validator already accepted them. Replace the one-line claim with the per-field support table the API actually enforces. Also document `page_scope` (new on kpis/top_*/revenue_*/volume_by_metric) and note that the retired per-family analytics params are rejected with a 400 if pushed through `--params`. Version 1.2.0 covers the five unreleased canonical-envelope commits (#29–#33) on top of v1.1.1. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
--conditionswith--filtersand send{ filters, logic }--filter-setsDSL strings with canonical filter objectsname/operatorenvelopesWhy
The public API is consolidating filter objects on
{ field, op, value }and segment/profile container names onfilters. Leaving the CLI on the legacy flags and payloads would make it incompatible with the new contract.Validation
pnpm test(160 passing; live tests skipped because the repository's configuredTEST_TOKENis rejected by production)pnpm typecheckpnpm lintpnpm buildNeed help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.