Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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.

49 changes: 49 additions & 0 deletions .changeset/sdk-v2-rebuild.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
"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`, `brand`, or `partner`
- Full CLI with `scope3` command for all API operations
- REST and MCP adapter support
- Chained resource access: `client.advertisers.brand(id).link()`

**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 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 brand owners:
const brandClient = new Scope3Client({ apiKey: '...', persona: 'brand' });

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

**Testing:**
- 225 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