Skip to content

feat(CDPSDK-2384): add SendEndUserEvmAsset and SendEndUserSolAsset rule support#626

Open
sammccord wants to merge 1 commit intomainfrom
sammccord/cdpsdk-2384-add-sendenduserevmasset-and-sendendusersolasset-support-to
Open

feat(CDPSDK-2384): add SendEndUserEvmAsset and SendEndUserSolAsset rule support#626
sammccord wants to merge 1 commit intomainfrom
sammccord/cdpsdk-2384-add-sendenduserevmasset-and-sendendusersolasset-support-to

Conversation

@sammccord
Copy link
Copy Markdown
Contributor

Description

Adds SDK support for SendEndUserEvmAssetRule and SendEndUserSolAssetRule in both TypeScript and Python SDKs. These new policy rule types allow controlling end-user EVM and Solana asset operations, with support for the RateLimiting criterion unique to Asset rules.

Closes CDPSDK-2384.

Changes

  • openapi.yaml: Updated with latest generated spec including Asset rule schemas
  • TypeScript: Added Zod schemas (SendEndUserEvmAssetCriteriaSchema, SendEndUserEvmAssetRuleSchema, SendEndUserSolAssetCriteriaSchema, SendEndUserSolAssetRuleSchema, RateLimitingCriterionSchema), added to RuleSchema discriminated union, regenerated OpenAPI client
  • Python: Added Pydantic models (RateLimitingCriterion, SendEndUserEvmAssetRule, SendEndUserSolAssetRule), added to Rule union, updated request_transformer.py and response_transformer.py with full criterion mappings using correct CriteriaInner wrapper types, regenerated OpenAPI client

Tests

  • TypeScript: 6 new tests in policies.test.ts — EthValue/RateLimiting criteria for EVM Asset, SolAddress/RateLimiting criteria for SOL Asset, schema validation rejection tests. All 501 tests pass.
  • Python: 8 new tests in test_policies_client.py — 4 async create_policy tests (EthValue/RateLimiting for EVM, SolAddress/RateLimiting for SOL) + 4 transformer round-trip tests. All 722 tests pass.

Checklist

  • Updated the typescript README if relevant
  • Updated the python README if relevant
  • Added a changelog entry
  • Added e2e tests if introducing new functionality

…le support

Add SDK support for SendEndUserEvmAssetRule and SendEndUserSolAssetRule
in both TypeScript and Python, including RateLimiting criterion support
unique to Asset rules.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@linear
Copy link
Copy Markdown

linear bot commented Mar 23, 2026

@cb-heimdall
Copy link
Copy Markdown

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@github-actions
Copy link
Copy Markdown
Contributor

⚠️ Generated Client Files Have Been Modified

This pull request contains manual changes to generated client files. These files are automatically generated from the OpenAPI specification and should not be edited directly.

Please check the workflow logs for details on which files were modified.

To fix this issue:

  1. Revert any manual changes to files in:
    • typescript/src/openapi-client/generated/
    • python/cdp/openapi_client/
    • go/openapi/
    • java/src/main/java/com/coinbase/cdp/openapi/
  2. If you need to change the generated code, update the OpenAPI spec (openapi.yaml) instead
  3. Run the generation commands locally to update the generated files

This comment will be automatically removed once the issue is resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants