From a2d883f180ec06786c80b01f833eed775268b8ec Mon Sep 17 00:00:00 2001 From: pbertsch Date: Wed, 9 Sep 2026 22:38:03 -0600 Subject: [PATCH] chore: vendor sdk-contract.json 1.0.13 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only change is the affiliate_program_create request example (ADR-026): now {name, commissionType, cpcRate, cookieDurationDays}, correcting a stale stub that previously showed {name, commissionRate}. No SDK code change needed — create_program() already sends this shape (confirmed by awsys-orch against functions/affiliate/index.js:135). Keeps contract-drift.yml quiet and exercises the corrected example. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_014BLo12Xi5cjtEA5HiNb3y8 --- tests/contracts/sdk-contract.json | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/contracts/sdk-contract.json b/tests/contracts/sdk-contract.json index 7db9b2e..681440b 100644 --- a/tests/contracts/sdk-contract.json +++ b/tests/contracts/sdk-contract.json @@ -1,6 +1,6 @@ { "$schema": "awsys-sdk-contract/1", - "version": "1.0.12", + "version": "1.0.13", "platformBaseline": "2026-09", "baseUrl": "https://awsys.co", "auth": { @@ -3278,8 +3278,10 @@ "path": "/api/affiliate/programs", "query": {}, "body": { - "name": "P", - "commissionRate": 10 + "name": "Launch Affiliate", + "commissionType": "cpc", + "cpcRate": 0.5, + "cookieDurationDays": 30 } }, "response": { @@ -3306,7 +3308,8 @@ "_nanoseconds": 0 } } - } + }, + "note": "create request: name(3-100 chars), commissionType in {cpc,cpa_return,both}; cpcRate(0.01-10) required if cpc/both; cpaRate(0.01-1000) required if cpa_return/both; cookieDurationDays optional (default, 1-365). Source: functions/affiliate/index.js:135. NOTE: request enum is cpc/cpa_return/both, but RESPONSES may carry legacy 'cpa' \u2014 read models should accept the wider set." }, { "id": "affiliate_programs_list",