Skip to content

feat(admin-portal)!: add revokeLink and generate the service from the OpenAPI spec - #1726

Closed
ajworkos wants to merge 1 commit into
mainfrom
adam/admin-portal-oagen
Closed

ajworkos wants to merge 1 commit into
mainfrom
adam/admin-portal-oagen

Conversation

@ajworkos

@ajworkos ajworkos commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Description

Generates AdminPortal from the OpenAPI spec (supersedes #1629). Adds adminPortal.revokeLink({ organization, externalUserId }) for POST /portal/revoke_link (workos/workos#74530) and externalUserId on generateLink so links can later be revoked.

Breaking:

  • adminEmails is now itContactEmails. The API renamed the field in April (workos/workos#56674), so adminEmails has been a silent no-op since then.
  • intentOptions is removed. The API hides intent_options from the spec on purpose (workos/workos#63998); it is internal-only.
  • generateLink returns PortalLinkResponse, the same { link } shape.

Depends on workos/openapi-spec#215 for the revokeLink name; regenerating before it merges yields createRevokeLink.

Verified: jest full suite green, tsc --noEmit, eslint, prettier --check clean.

Documentation

Does this require changes to the WorkOS Docs? E.g. the API Reference or code snippets need updates.

[ ] Yes

The revoke section already exists in the API reference; its Node snippet follows this SDK surface.

🤖 Generated with Claude Code

@ajworkos
ajworkos force-pushed the adam/admin-portal-oagen branch from aa19dfc to 714f20f Compare October 15, 2026 12:11
@ajworkos ajworkos changed the title feat(admin-portal): add revokeLink and generate the service from the OpenAPI spec feat(admin-portal)!: add revokeLink and generate the service from the OpenAPI spec Oct 15, 2026
… OpenAPI spec

Generated with oagen (--services AdminPortal) against the policy in
workos/openapi-spec#215. generateLink now takes externalUserId and
itContactEmails; adminEmails and intentOptions are gone because the API
dropped admin_emails in April and hides intent_options from the spec.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@ajworkos
ajworkos force-pushed the adam/admin-portal-oagen branch from 714f20f to 57e3024 Compare October 15, 2026 12:12
@ajworkos ajworkos closed this Oct 15, 2026
@gjtorikian gjtorikian added the autogenerated Autogenerated code or content label Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autogenerated Autogenerated code or content

Development

Successfully merging this pull request may close these issues.

2 participants