Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions .changeset/auto-generated-sdk.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/fix-npm-trusted-publisher.md

This file was deleted.

28 changes: 0 additions & 28 deletions .changeset/remove-legacy-client.md

This file was deleted.

50 changes: 50 additions & 0 deletions .changeset/sdk-v2-rebuild.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
"scope3": major
---

SDK v2.0.0: Persona-based API architecture

Complete rebuild of the Scope3 SDK with persona-based design for the Agentic Platform v2 API.

**New Features:**
- Unified `Scope3Client` with `persona` parameter: `buyer` or `partner`
- Full CLI with `scope3` command for all API operations
- REST and MCP adapter support
- Buyer resources: advertisers, campaigns (discovery/performance/audience), bundles, signals, reporting, sales agents
- Partner resources: partners, agents (with OAuth flows)

**CLI Highlights:**
- `scope3 config set apiKey <key>` - persistent configuration
- `scope3 commands` - list all available commands by persona
- Table, JSON, and YAML output formats
- Environment support: production and staging

**Breaking Changes:**
- Removed `Scope3AgenticClient` - use `Scope3Client` with `persona` parameter
- Removed `brand` persona - brands are now integrated into advertisers via `brandDomain`
- Campaign type `bundle` renamed to `discovery`
- Reporting moved from advertiser sub-resource to top-level `client.reporting`
- Removed auto-generated types from OpenAPI (now manually maintained)
- New API surface matches Agentic Platform v2

**Migration Guide:**

```typescript
// Before (v1):
import { Scope3AgenticClient } from 'scope3';
const client = new Scope3AgenticClient({ apiKey: '...' });

// After (v2):
import { Scope3Client } from 'scope3';

// For buyers (advertisers, campaigns, bundles):
const buyerClient = new Scope3Client({ apiKey: '...', persona: 'buyer' });

// For partners (agent registration, OAuth):
const partnerClient = new Scope3Client({ apiKey: '...', persona: 'partner' });
```

**Testing:**
- 211 tests passing
- Verified with real API calls to staging environment
- CLI tested for all major workflows
97 changes: 0 additions & 97 deletions .github/workflows/auto-update.yml

This file was deleted.

Loading