Skip to content

feat(oagen[1/2]): Add new endpoints to the SDK via autogeneration#1535

Open
gjtorikian wants to merge 8 commits intomainfrom
oagen/1/new-apis
Open

feat(oagen[1/2]): Add new endpoints to the SDK via autogeneration#1535
gjtorikian wants to merge 8 commits intomainfrom
oagen/1/new-apis

Conversation

@gjtorikian
Copy link
Copy Markdown
Contributor

@gjtorikian gjtorikian commented Mar 26, 2026

Description

This PR adds new SDK support for five new WorkOS API surfaces:

  • AdminPortal: previously, this was under the folder 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 these AdminPortal.
  • Permissions: full CRUD for authorization permissions. Previously this was confusingly tucked under authorization; that, too, has been marked as @deprecate, considering that the SDK generator and API docs treat them separately than the other /authorization endpoints.
  • Radar was completely missing and has been introduced
  • Webhooks endpoints were missing and have been introduced
  • WorkOS Connect (missing, introduced) includes Applications and ApplicationClientSecrets sub-services for managing Connect Applications and their secrets

In 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) referenced
    by Radar, WebhooksEndpoints, and AdminPortal model interfaces
  • src/authorization/: UpdateOrganizationRole interface and serializer, imported by the Permissions serializer because both share the same wire shape for role-permission updates

gjtorikian and others added 8 commits March 26, 2026 11:46
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>
@gjtorikian gjtorikian requested review from a team as code owners March 26, 2026 20:08
@gjtorikian gjtorikian requested a review from cmatheson March 26, 2026 20:08
@gjtorikian gjtorikian changed the title feat(oagen[1/2]): Add new endpoints to the SDK via autogeneration feat(oagen[1/3]): Add new endpoints to the SDK via autogeneration Mar 26, 2026
@gjtorikian gjtorikian changed the title feat(oagen[1/3]): Add new endpoints to the SDK via autogeneration feat(oagen[1/2]): Add new endpoints to the SDK via autogeneration Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant