Generate SDK from OpenAPI specifications - #27
Merged
Merged
Conversation
- Add PlatformClient and PartnerClient for different user types - Create custom SDK generator that reads OpenAPI specs and generates MCP-compatible resource classes - Add automated schema updates from agentic-api repository - Remove manual resource files (now auto-generated) - Remove SimpleMediaAgent (not in use) - Update Scope3AgenticClient to extend PlatformClient for backwards compatibility - Add GitHub workflow for daily automated OpenAPI spec updates - Update tests to match new generated structure All 84 tests passing. Verified with real API calls to production. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Add support for dedicated AGENTIC_API_TOKEN secret for downloading OpenAPI specs from private agentic-api repository. Falls back to PAT_TOKEN if AGENTIC_API_TOKEN is not set. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Collaborator
Author
Updated: Separate Token SupportAdded support for a dedicated Setup Instructions:
Token Priorities:This keeps your broader |
- Delete src/sdk.ts containing legacy Scope3AgenticClient class - Update src/index.ts to only export PlatformClient and PartnerClient - Update all examples to use PlatformClient instead of Scope3AgenticClient - Update CLI to use PlatformClient - Update tests to use PlatformClient - Update README to remove legacy client documentation and clarify Platform/Partner client usage - Update test-media-agent.ts to use PlatformClient BREAKING CHANGE: Scope3AgenticClient has been removed. Users must migrate to PlatformClient or PartnerClient.
Collaborator
Author
Update: Legacy Client RemovedPer feedback, I've removed all backwards compatibility code: Changes in Latest Commits:
Breaking Change:
Testing:✅ All 84 tests passing This is now a clean, purpose-driven API with no legacy code. |
Collaborator
Author
✅ All CI Checks PassingAll workflows are now green:
Ready for review and merge! Summary of Final State:
|
EmmaLouise2018
approved these changes
Nov 12, 2025
bokelley
approved these changes
Nov 12, 2025
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements automatic SDK generation from OpenAPI specifications, eliminating manual code maintenance and ensuring the SDK stays in sync with the API.
What Changed
New Features:
PlatformClient(for brand advertisers/buyers) andPartnerClient(for DSPs/publishers/partners)scripts/generate-sdk.ts) that reads OpenAPI YAML and generates MCP-compatible TypeScript resource classesagentic-apirepository via GitHub ActionsBreaking Changes:
src/resources/*.ts) - now fully auto-generatedSimpleMediaAgent(confirmed not in use)Scope3AgenticClientnow extendsPlatformClientfor backwards compatibilityTechnical Details:
openapi-typescriptcallTool()Testing
✅ All 84 tests passing
✅ Verified with real API calls to production:
Commands
Migration Guide
For Platform/Buyer users:
For Partner/DSP users:
GitHub Actions Setup
The automated update workflow uses your existing
PAT_TOKENsecret - no additional configuration needed. It will:🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com