Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: AlphaWaveSystems/awsysco-python-sdk
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: AlphaWaveSystems/awsysco-python-sdk
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fix/utm-templates
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 3 commits
  • 12 files changed
  • 2 contributors

Commits on Sep 9, 2026

  1. fix: utm_templates.list() now uses the real GET /api/user/utm-templat…

    …es route
    
    Follow-up to #7 / ADR-020: the platform never actually populated utmTemplates
    on GET /api/v1/me (ADR-003 was based on incorrect information — there was no
    dedicated list route at the time). #833 added a real GET
    /api/user/utm-templates route returning {templates:[...]}; list() now calls
    it instead of silently returning [] via a field that never existed.
    
    create() already sent the correct source/medium/campaign body fields, no
    change needed there — the 500 it used to get back (#831) was a server-side
    bug (undefined uuidv4), not a client-side wire-format mismatch.
    
    Vendors sdk-contract.json 1.0.10 (utm_list_via_me renamed to utm_list to
    match; utm_create's expected body corrected from utmSource/utmMedium/
    utmCampaign to plain source/medium/campaign, matching what the SDK already
    sends). Adds previously-missing async test coverage for this resource.
    
    Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_014BLo12Xi5cjtEA5HiNb3y8
    pbertsch and claude committed Sep 9, 2026
    Configuration menu
    Copy the full SHA
    a180ebd View commit details
    Browse the repository at this point in the history
  2. fix: correct model field mappings found in a platform re-audit (ADR-022)

    Fixes wrong/missing fields in 4 typed models, found by re-verifying the
    fixtures they were originally built from against live staging response
    bodies. extra="allow" meant a wrong alias silently yielded None rather than
    erroring, so none of this surfaced as a test failure until the re-audit.
    
    - TrustScoreResult: added source, created_at (raw epoch-ms int on this
      endpoint specifically — own field validator, not the shared Firestore-dict
      coercion). short was already correct.
    - NamespaceInfo: added can_claim_custom_domain, can_claim_subdomain,
      namespace_data (the real fields) — upgrade_required is never actually sent.
    - AggregateAnalytics: added bot_clicks_excluded (the only field that was
      actually missing; the rest — clicks_by_day, country_breakdown, etc. — was
      already correctly named).
    - Link: added geo_restriction, og_meta, is_custom, is_disabled,
      disabled_reason, trust_score, trust_status, threats.
    
    All additive (no field renamed or removed) — no breaking changes.
    
    affiliate.get_limits()/custom_domains.add()/webhooks.list_event_types()
    return raw dicts by design; confirmed no wrong-alias risk there and left them
    alone rather than change their return type to a typed model (which would be
    breaking).
    
    Vendors sdk-contract.json 1.0.11 (ADR-022 fixture corrections). Adds
    platform-verified-shape tests for all four models fixed.
    
    Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_014BLo12Xi5cjtEA5HiNb3y8
    pbertsch and claude committed Sep 9, 2026
    Configuration menu
    Copy the full SHA
    ce1bbda View commit details
    Browse the repository at this point in the history
  3. fix: AffiliateProgram field mapping (ADR-024 re-audit)

    cookie_days (kept as the field/kwarg name for backward compatibility) was
    reading and writing the wrong wire key: cookieDays instead of the platform's
    actual cookieDurationDays. Wrong on both sides — create_program()/
    update_program()'s request body, and the response model. Also adds
    merchant_id, max_partners, partner_count, is_public, created_at, updated_at
    (present on the owned-program endpoints; discover()'s public-summary
    response is a subset, tolerated since every field stays Optional).
    
    list_partners()/list_partnerships()/join()/get_partnership_stats() return
    raw dicts by design (confirmed against the fixture, same reasoning as
    get_limits()/custom_domains.add()/webhooks.list_event_types() from the
    prior audit) — no change needed there.
    
    Open question flagged to awsys-orch rather than guessed at: the platform's
    create_program request fixture shows a single `commissionRate` field where
    this SDK sends commissionType/cpcRate/cpaRate — left unchanged pending
    confirmation, since restructuring that guess-first risked breaking a
    currently-working (if unverified) code path in a different way.
    
    Vendors sdk-contract.json 1.0.12.
    
    Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_014BLo12Xi5cjtEA5HiNb3y8
    pbertsch and claude committed Sep 9, 2026
    Configuration menu
    Copy the full SHA
    497d188 View commit details
    Browse the repository at this point in the history
Loading