diff --git a/.changeset/auto-generated-sdk.md b/.changeset/auto-generated-sdk.md deleted file mode 100644 index a85a8ca..0000000 --- a/.changeset/auto-generated-sdk.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -"scope3": major ---- - -Generate SDK from OpenAPI specifications - -Major refactor to automatically generate TypeScript SDK from OpenAPI specs: - -**New Features:** -- Separate `PlatformClient` and `PartnerClient` for different user types -- Full code generation from OpenAPI YAML files (platform-api, partner-api, outcome-agent) -- Automated schema updates from agentic-api repository with GitHub Actions -- Custom SDK generator script that creates MCP-compatible resource classes - -**Breaking Changes:** -- Removed manual resource files (now auto-generated) -- Removed SimpleMediaAgent (not in use) -- `Scope3AgenticClient` now extends `PlatformClient` (backwards compatible) - -**Infrastructure:** -- Added `scripts/generate-sdk.ts` for SDK generation -- Added `scripts/update-schemas.sh` for automated OpenAPI spec updates -- GitHub workflow for daily automated type updates and PR creation -- Updated build process to use generated types - -**Testing:** -- All 84 tests passing -- Verified with real API calls to production environment -- Both PlatformClient and PartnerClient confirmed working diff --git a/.changeset/fix-npm-trusted-publisher.md b/.changeset/fix-npm-trusted-publisher.md deleted file mode 100644 index 7a4bbb8..0000000 --- a/.changeset/fix-npm-trusted-publisher.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"scope3": patch ---- - -Fix npm Trusted Publisher authentication by removing conflicting NPM_TOKEN - -The release workflow was failing because it had both OIDC Trusted Publishing configured (id-token: write) and the legacy NPM_TOKEN environment variable. This caused npm authentication to fail. Removed NPM_TOKEN to use only Trusted Publishing for secure, token-free npm publishing. diff --git a/.changeset/remove-legacy-client.md b/.changeset/remove-legacy-client.md deleted file mode 100644 index 24483e1..0000000 --- a/.changeset/remove-legacy-client.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -"scope3": major ---- - -BREAKING CHANGE: Remove legacy Scope3AgenticClient - -The legacy `Scope3AgenticClient` class has been completely removed. Users must now explicitly choose between: - -- `PlatformClient` - for brand advertisers/buyers managing campaigns and creatives -- `PartnerClient` - for DSPs/publishers/partners managing media buys and products - -**Migration Guide:** - -```typescript -// Before: -import { Scope3AgenticClient } from 'scope3'; -const client = new Scope3AgenticClient({ apiKey: '...' }); - -// After (for brand advertisers): -import { PlatformClient } from 'scope3'; -const client = new PlatformClient({ apiKey: '...' }); - -// After (for media partners): -import { PartnerClient } from 'scope3'; -const client = new PartnerClient({ apiKey: '...' }); -``` - -Both clients have the same configuration options and provide access to the appropriate API resources for their use case. diff --git a/CHANGELOG.md b/CHANGELOG.md index 06fa189..507cff1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,65 @@ # @scope3/agentic-client +## 2.0.0 + +### Major Changes + +- [#27](https://github.com/scope3data/agentic-client/pull/27) [`3ccaa7d`](https://github.com/scope3data/agentic-client/commit/3ccaa7d6799ff84034188851adb357ad3bb022ca) Thanks [@nastassiafulconis](https://github.com/nastassiafulconis)! - Generate SDK from OpenAPI specifications + + Major refactor to automatically generate TypeScript SDK from OpenAPI specs: + + **New Features:** + - Separate `PlatformClient` and `PartnerClient` for different user types + - Full code generation from OpenAPI YAML files (platform-api, partner-api, outcome-agent) + - Automated schema updates from agentic-api repository with GitHub Actions + - Custom SDK generator script that creates MCP-compatible resource classes + + **Breaking Changes:** + - Removed manual resource files (now auto-generated) + - Removed SimpleMediaAgent (not in use) + - `Scope3AgenticClient` now extends `PlatformClient` (backwards compatible) + + **Infrastructure:** + - Added `scripts/generate-sdk.ts` for SDK generation + - Added `scripts/update-schemas.sh` for automated OpenAPI spec updates + - GitHub workflow for daily automated type updates and PR creation + - Updated build process to use generated types + + **Testing:** + - All 84 tests passing + - Verified with real API calls to production environment + - Both PlatformClient and PartnerClient confirmed working + +- [#27](https://github.com/scope3data/agentic-client/pull/27) [`3ccaa7d`](https://github.com/scope3data/agentic-client/commit/3ccaa7d6799ff84034188851adb357ad3bb022ca) Thanks [@nastassiafulconis](https://github.com/nastassiafulconis)! - BREAKING CHANGE: Remove legacy Scope3AgenticClient + + The legacy `Scope3AgenticClient` class has been completely removed. Users must now explicitly choose between: + - `PlatformClient` - for brand advertisers/buyers managing campaigns and creatives + - `PartnerClient` - for DSPs/publishers/partners managing media buys and products + + **Migration Guide:** + + ```typescript + // Before: + import { Scope3AgenticClient } from 'scope3'; + const client = new Scope3AgenticClient({ apiKey: '...' }); + + // After (for brand advertisers): + import { PlatformClient } from 'scope3'; + const client = new PlatformClient({ apiKey: '...' }); + + // After (for media partners): + import { PartnerClient } from 'scope3'; + const client = new PartnerClient({ apiKey: '...' }); + ``` + + Both clients have the same configuration options and provide access to the appropriate API resources for their use case. + +### Patch Changes + +- [#25](https://github.com/scope3data/agentic-client/pull/25) [`976ca4a`](https://github.com/scope3data/agentic-client/commit/976ca4a16161fd037aa6c547fd8d36cd065b7630) Thanks [@nastassiafulconis](https://github.com/nastassiafulconis)! - Fix npm Trusted Publisher authentication by removing conflicting NPM_TOKEN + + The release workflow was failing because it had both OIDC Trusted Publishing configured (id-token: write) and the legacy NPM_TOKEN environment variable. This caused npm authentication to fail. Removed NPM_TOKEN to use only Trusted Publishing for secure, token-free npm publishing. + ## 1.1.0 ### Minor Changes diff --git a/package.json b/package.json index dfe801a..dcc1766 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "scope3", - "version": "1.1.0", + "version": "2.0.0", "description": "CLI and TypeScript client for the Scope3 Agentic API with AdCP webhook support", "main": "dist/index.js", "types": "dist/index.d.ts",