feat(oagen[1/2]): Add new endpoints to the SDK via autogeneration#1535
Open
gjtorikian wants to merge 8 commits intomainfrom
Open
feat(oagen[1/2]): Add new endpoints to the SDK via autogeneration#1535gjtorikian wants to merge 8 commits intomainfrom
gjtorikian wants to merge 8 commits intomainfrom
Conversation
Adds imports and readonly properties for AdminPortal, Permissions, Radar, WebhooksEndpoints, WorkOSConnect, Applications, and ApplicationClientSecrets. Adds createPaginatedList helper used by generated paginated list methods. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Adds the minimal set of auto-generated interfaces and serializers needed by the new service classes: - 12 common enum/type interfaces (referenced by radar, webhooks, admin-portal models) - 2 authorization model files (referenced by permissions serializer) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This was referenced Mar 26, 2026
Open
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.
Description
This PR adds new SDK support for five new WorkOS API surfaces:
portal, which is a terrible name. I@deprecated those files in favor of this one with a better naming system. The SDK autogenerated wants to call theseAdminPortal.authorization; that, too, has been marked as@deprecate, considering that the SDK generator and API docs treat them separately than the other/authorizationendpoints.ApplicationsandApplicationClientSecretssub-services for managing Connect Applications and their secretsIn the cases above where the SDK autogen is choosing a name (AdminPortal, Permissions), we can, of course, override these, but I happen to agree with it.
Note: this is the first of two PRs.
Why so many changed files?
Each change above was broken into its own commit. The final commit, 2b5ca3c, introduces a set of new changes across the SDK.
Each auto-generated service class imports typed interfaces for its request/response models and enum types. These types are split into separate files by the generator (one interface per schema). The 14 dependency files break down as:
src/common/interfaces/: shared enum/literal-union types (e.g.,RadarStandaloneResponseVerdict,WebhookEndpointJsonStatus,GenerateLinkIntent) referencedby Radar, WebhooksEndpoints, and AdminPortal model interfaces
src/authorization/:UpdateOrganizationRoleinterface and serializer, imported by the Permissions serializer because both share the same wire shape for role-permission updates