Skip to content

Conversation

@nastassiafulconis
Copy link
Collaborator

@nastassiafulconis nastassiafulconis commented Nov 10, 2025

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

scope3@2.0.0

Major Changes

  • #27 3ccaa7d Thanks @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 3ccaa7d Thanks @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:

    // 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 976ca4a Thanks @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.

@nastassiafulconis nastassiafulconis requested a review from a team November 10, 2025 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants