-
Notifications
You must be signed in to change notification settings - Fork 0
Generate SDK from OpenAPI specifications #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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>
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.
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. |
✅ All CI Checks PassingAll workflows are now green:
Ready for review and merge! Summary of Final State:
|
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