Skip to content

feat(generated): AdminPortal, Agents, ApiKeys, AuditLogs, Authorization, ClientApi, Connect, DirectorySync, Events, FeatureFlags, Groups, MultiFactorAuth, OrganizationDomains, OrganizationMembership, Organizations, Pipes, PipesProvider, PlatformTeams, Radar, SSO, UserManagement, Vault, Webhooks, Widgets (batch aeefef11) - #637

Merged
workos-sdk-automation[bot] merged 2 commits into
mainfrom
oagen/batch-aeefef11
Oct 19, 2026

Conversation

@workos-sdk-automation

Copy link
Copy Markdown
Contributor

Summary

Regenerated SDK from spec changes.

Triggered by workos/openapi-spec@26ae9d6

…iKeys, AuditLogs, Authorization, ClientApi, Connect, DirectorySync, Events, FeatureFlags, Groups, MultiFactorAuth, OrganizationDomains, OrganizationMembership, Organizations, Pipes, PipesProvider, PlatformTeams, Radar, SSO, UserManagement, Vault, Webhooks, Widgets
@workos-sdk-automation
workos-sdk-automation Bot requested review from a team as code owners October 19, 2026 13:23
@workos-sdk-automation workos-sdk-automation Bot added the autogenerated Autogenerated code or content label Oct 19, 2026
@greptile-apps

greptile-apps Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5 Tier: plus

[Medium impact] Adds agent registration revocation and flag owner tracking.

The PR appears safe to merge, with a non-blocking gap in the revoke test.

Findings

  1. P2 Revocation timestamp goes untested ▶
Fix with agent prompt
### Issue 1
agents_test.go:271
The new revoke test returns `"revoked_at": null` and only checks existing fields. It would still pass if `RevokedAt` were removed or its JSON tag were wrong. Return a non-null timestamp here and assert its exact value. Keep the null case in the `GetRegistration` test.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Summary

Adds agent registration revocation and more response fields.

  • Callers can revoke an agent registration and read when it was revoked.
  • Flag update events can show who owned the flag before a change.
  • The Admin Portal revoke comment names a single link.

Reviews (1) · Last reviewed commit: "chore(generated): add release notes frag..." · Reviewed by Greptile

Comment thread agents_test.go
require.Equal(t, "/agents/registrations/test_id/revoke", r.URL.Path)
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
fixture, err := os.ReadFile("testdata/agent_registration.json")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Revocation timestamp goes untested

The new revoke test returns "revoked_at": null and only checks existing fields. It would still pass if RevokedAt were removed or its JSON tag were wrong. Return a non-null timestamp here and assert its exact value. Keep the null case in the GetRegistration test.

Prompt To Fix With AI
This is a comment left during a code review.
Path: agents_test.go
Line: 271

Comment:
**Revocation timestamp goes untested**

The new revoke test returns `"revoked_at": null` and only checks existing fields. It would still pass if `RevokedAt` were removed or its JSON tag were wrong. Return a non-null timestamp here and assert its exact value. Keep the null case in the `GetRegistration` test.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@workos-sdk-automation
workos-sdk-automation Bot merged commit 97ff9b7 into main Oct 19, 2026
9 checks passed
@workos-sdk-automation
workos-sdk-automation Bot deleted the oagen/batch-aeefef11 branch October 19, 2026 13:52
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.

0 participants