feat(cli): add consent-workflow-triggers pull and push#281
Open
michaelfarrell76 wants to merge 11 commits into
Open
feat(cli): add consent-workflow-triggers pull and push#281michaelfarrell76 wants to merge 11 commits into
michaelfarrell76 wants to merge 11 commits into
Conversation
6 tasks
@transcend-io/airgap.js-types
@transcend-io/cli
@transcend-io/internationalization
@transcend-io/privacy-types
@transcend-io/sdk
@transcend-io/type-utils
@transcend-io/utils
@transcend-io/mcp
@transcend-io/mcp-server-admin
@transcend-io/mcp-server-assessment
@transcend-io/mcp-server-base
@transcend-io/mcp-server-consent
@transcend-io/mcp-server-discovery
@transcend-io/mcp-server-docs
@transcend-io/mcp-server-dsr
@transcend-io/mcp-server-inventory
@transcend-io/mcp-server-preferences
@transcend-io/mcp-server-workflows
commit: |
Add consent-workflow-triggers top-level field with SDK fetch/sync, tr-pull resource, and tr-push sync for consent automation triggers. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
5b3c96e to
019e353
Compare
giacaglia
previously approved these changes
Jul 8, 2026
Resolve conflicts by keeping both consent-workflow-triggers and preference-options pull/push support.
Derive triggerCondition from purposes (admin UI shape), drop YAML trigger-condition, fix pull round-trip, and use View/Manage Preference Store Settings scopes.
michaelfarrell76
commented
Jul 9, 2026
michaelfarrell76
commented
Jul 9, 2026
michaelfarrell76
commented
Jul 9, 2026
Use CONTACT_OPT_OUT/IN in the example, rename nav to Workflows → Preference Workflows, and restore the integrations dashboard link.
michaelfarrell76
commented
Jul 9, 2026
michaelfarrell76
commented
Jul 9, 2026
michaelfarrell76
commented
Jul 9, 2026
michaelfarrell76
commented
Jul 9, 2026
Restore the integrations Manage-at URL, type action-type as RequestAction in the codec and SDK, and expand unit coverage for triggerCondition parsing.
Allow consent-workflow-triggers to link a DSR workflow via workflow-title while keeping legacy action-type / data-silo-titles mode mutually exclusive.
michaelfarrell76
commented
Jul 9, 2026
Docgen was run with TRANSCEND_API_KEY exported, which leaked the key into generated --auth [default = ...] help text. Regenerate without that env.
request approve export checks can exceed the default 5s under load; bump the leaf-export suite timeout so pre-push is not flaky.
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.
Summary
Adds top-level
consent-workflow-triggersfor consent automation triggers that fire DSR actions when consent state matches (Preferences → Consent Workflows).fetchAllConsentWorkflowTriggers,syncConsentWorkflowTriggersConsentWorkflowTriggerInputcodec, pull resource, push syncpackages/cli/examples/consent-workflow-triggers.ymltriggerConditionis derived on push as{ And: [{ [tracking-type]: matching-state }, ...] }(same as admin UI). YAML does not accept/emittrigger-condition.Base branch:
mainRequired scopes
ViewPreferenceStoreSettingsManagePreferenceStoreSettings,ViewDataSubjectRequestSettings,ViewConsentManager,ViewDataMapPush related fetches: actions/subjects (
ViewDataSubjectRequestSettings), purposes (ViewConsentManager), data silos whendata-silo-titlespresent (ViewDataMap).Admin UI: https://app.transcend.io/preference-store/consent-workflows
Test plan
Manual — pull existing triggers
Expected YAML shape:
Manual — push from example
Expected: success; re-pull shows purposes preserved (no
trigger-conditionkey).Negative — missing purposes / create fields
Expected: push fails with clear error requiring non-empty
purposes.Expected: push fails requiring
action-typeanddata-subject-typeon create.Made with Cursor