feat(generated)!: regenerate from spec (11 changes)#554
Conversation
Greptile SummaryThis is a large spec-driven regeneration that introduces 11 grouped changes: new services (
Confidence Score: 4/5Safe to merge with one follow-up: the changelog omits two public breaking changes in the Radar service. All previously flagged compilation issues (vault field duplicate, missing version_list_response.json fixture) are resolved. AddListEntry and RemoveListEntry now take RadarListType/RadarListAction instead of the old RadarType/RadarAction, and the RadarType alias is removed entirely — none of which appear in the changelog or PR description. Users upgrading will hit compile errors on these call sites without any migration guidance. enums.go and radar.go — the RadarType removal and RadarAction→RadarListAction rename are missing from the documented breaking changes list. Important Files Changed
|
| if err != nil { | ||
| t.Fatalf("failed to read fixture: %v", err) | ||
| } | ||
| w.Write(fixture) | ||
| })) | ||
| defer server.Close() | ||
|
|
||
| client := workos.NewClient("sk_test", workos.WithBaseURL(server.URL)) | ||
| result, err := client.Vault().ListKvVersions(context.Background(), "test_id") | ||
| require.NoError(t, err) | ||
| require.NotNil(t, result) | ||
| } | ||
|
|
||
| func TestVault_Error401(t *testing.T) { | ||
| server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { | ||
| w.Header().Set("Content-Type", "application/json") | ||
| w.WriteHeader(http.StatusUnauthorized) | ||
| w.Write([]byte(`{"code":"unauthorized","message":"Unauthorized"}`)) | ||
| })) | ||
| defer server.Close() | ||
|
|
||
| client := workos.NewClient("sk_test", workos.WithBaseURL(server.URL)) | ||
| _, err := client.Vault().CreateDataKey(context.Background(), &workos.VaultCreateDataKeyParams{}) | ||
| require.IsType(t, &workos.AuthenticationError{}, err) |
There was a problem hiding this comment.
Missing fixture file causes
TestVault_ListKvVersions to fail
TestVault_ListKvVersions loads testdata/version_list_response.json via os.ReadFile, but this file is not present in the repository and was not added by this PR. The test calls t.Fatalf on a read error, so the test will fail immediately when run.
Add vault API rewrite, authorization Search removal, and UserManagementOrganizationMembershipGroups accessor removal to the breaking changes section. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
feat(api_keys): Add expires_at field to API key models
expires_atfield toAPIKeysCreateOrganizationAPIKeyParamsexpires_atfield toUserManagementCreateAPIKeyParamsexpires_atfield toAPIKey,APIKeyCreatedData,APIKeyRevokedData,OrganizationAPIKey,OrganizationAPIKeyWithValue,UserAPIKey, andUserAPIKeyWithValuemodelsfeat(audit_logs)!: Rename audit log model types (breaking)
AuditLogExportJSONtoAuditLogExportAuditLogsRetentionJSONtoAuditLogsRetentionAuditLogActionJSONtoAuditLogActionAuditLogExportJSONStatetoAuditLogExportStatefeat(authorization): Add filter parameters to role/resource assignment list
ResourceID,ResourceExternalID,ResourceTypeSlugparameters toAuthorizationListRoleAssignmentsParamsRoleSlugparameter toAuthorizationListRoleAssignmentsForResourceByExternalIDParamsandAuthorizationListRoleAssignmentsForResourceParamsSearchparameter fromAuthorizationListResourcesParamsfeat(radar)!: Remove device_fingerprint and bot_score parameters
DeviceFingerprintfield fromRadarCreateAttemptParamsBotScorefield fromRadarCreateAttemptParamsCREDENTIAL_STUFFINGandIP_SIGN_UP_RATE_LIMITfromRadarStandaloneResponseControlRadarStandaloneAssessRequestAction(keep onlySignUpandSignInwith updated values)feat(user_management)!: Refactor organization membership to dedicated service
UserManagementServiceto newOrganizationMembershipServiceListOrganizationMemberships,CreateOrganizationMembership,GetOrganizationMembership,UpdateOrganizationMembership,DeleteOrganizationMembership,DeactivateOrganizationMembership,ReactivateOrganizationMembershipmethods from user managementUserManagementRole,UserManagementRoleSingle,UserManagementRoleMultiple) from user management (now in organization_membership)ExpiresAtfield toUserManagementCreateAPIKeyParamsfeat(organization_membership): Add new organization membership service
OrganizationMembershipServicewith methods:List,Create,Get,Update,Delete,Deactivate,Reactivate,ListGroupsOrganizationMembershipRoleinterface with single and multiple variants for flexible role assignmentfeat(vault): Add new vault service for encryption key management
VaultServicewith methods for key operations:CreateDataKey,CreateDecrypt,CreateRekeyCreateKv,GetKv,GetName,UpdateKv,DeleteKv,ListKvListKvMetadata,ListKvVersionsVaultCreateDataKeyParamsand key-value operationsfeat(webhooks): Rename webhook endpoint model type
WebhookEndpointJSONtoWebhookEndpointWebhookEndpointJSONStatustoWebhookEndpointStatusfeat(pipes): Add pipes connected account event models
PipeConnectedAccountmodel with state trackingPipesConnectedAccountConnected,PipesConnectedAccountDisconnected,PipesConnectedAccountReauthorizationNeededevent modelsPipeConnectedAccountStateenum withconnectedandneeds_reauthorizationvaluesfeat(generated): Add new vault-related model types
Actormodel for audit log actor representationCreateDataKeyResponse,DecryptResponse,DeleteObjectResponseObject,ObjectMetadata,ObjectSummary,ObjectVersion,ObjectWithoutValueCreateDataKeyRequest,DecryptRequest,RekeyRequest,CreateObjectRequest,UpdateObjectRequestError,ListMetadata,VersionListResponsechore(generated): Update type aliases and enum standardization
PaginationParams.Orderfrom*PaginationOrderto*stringfor flexibilityUserManagementAuthenticationScreenHintnow aliasesRadarStandaloneAssessRequestActionWebhookEndpointStatusas alias forUpdateWebhookEndpointStatusTriggered by workos/openapi-spec@b0eb6fb
BEGIN_COMMIT_OVERRIDE
feat(api_keys): Add expires_at field to API key models (#554)
feat(audit_logs)!: Rename audit log model types (breaking) (#554)
feat(authorization): Add filter parameters to role/resource assignment list (#554)
feat(radar)!: Remove device_fingerprint and bot_score parameters (#554)
feat(user_management)!: Refactor organization membership to dedicated service (#554)
feat(organization_membership): Add new organization membership service (#554)
feat(vault): Add new vault service for encryption key management (#554)
feat(webhooks): Rename webhook endpoint model type (#554)
feat(pipes): Add pipes connected account event models (#554)
feat(generated): Add new vault-related model types (#554)
chore(generated): Update type aliases and enum standardization (#554)
END_COMMIT_OVERRIDE