Skip to content

v9.0.0

Choose a tag to compare

@workos-sdk-automation workos-sdk-automation released this 26 May 20:00
8b7063e

Bug Fixes

  • ci: extract version from PR title in changelog inline step (93768a1)

  • #491 feat(generated)!: regenerate from spec (9 changes)

    ⚠️ Breaking

    • organization_membership: Migrate organization membership to dedicated service
      • Moved organization membership methods from UserManagement to new OrganizationMembershipService class
      • Methods create_organization_membership, get_organization_membership, update_organization_membership, delete_organization_membership, deactivate_organization_membership, reactivate_organization_membership, list_organization_memberships, and list_organization_membership_groups now accessed via client.organization_membership instead of client.user_management
      • Removed UserManagement::RoleSingle and UserManagement::RoleMultiple data classes (moved to OrganizationMembershipService)
    • api_keys: Add expires_at field to API key models
      • Added expires_at optional field to ApiKey, OrganizationApiKey, OrganizationApiKeyWithValue, UserApiKey, and UserApiKeyWithValue models
      • Added expires_at field to CreateOrganizationApiKey and CreateUserApiKey request models
      • Updated create_organization_api_key and create_user_api_key methods to accept expires_at parameter
    • radar: Remove device_fingerprint and bot_score fields from Radar
      • Removed device_fingerprint and bot_score parameters from Radar.create_attempt method
      • Removed device_fingerprint and bot_score fields from RadarStandaloneAssessRequest model
      • Updated enum values in RadarStandaloneAssessRequestAction: removed LOGIN, SIGNUP, SIGN_UP_2, SIGN_IN_2, SIGN_IN_3, SIGN_UP_3; standardized to SIGN_UP and SIGN_IN
      • Removed CREDENTIAL_STUFFING and IP_SIGN_UP_RATE_LIMIT from RadarStandaloneResponseControl enum
    • audit_logs: Refactor audit logs models and type names
      • Merged AuditLogSchemaJson fields into AuditLogSchema; removed AuditLogSchemaJson class
      • Added new AuditLogSchemaInput class (write-side schema without read-only fields)
      • Renamed AuditLogSchemaJsonActor to AuditLogSchemaActorInput
      • Renamed AuditLogSchemaJsonTarget to AuditLogSchemaTargetInput
      • Removed AuditLogActionJson; AuditLogAction now extends BaseModel
      • Renamed AuditLogExportJson to AuditLogExport (now extends BaseModel)
      • Renamed AuditLogsRetentionJson to AuditLogsRetention (now extends BaseModel)
      • Removed AuditLogExportJsonState type; replaced with AuditLogExportState
      • Updated list_actions method return type from AuditLogActionJson to AuditLogAction
      • Updated create_export and get_export method return types from AuditLogExportJson to AuditLogExport
    • webhooks: Rename WebhookEndpointJson to WebhookEndpoint
      • Renamed WebhookEndpointJson to WebhookEndpoint
      • Updated list_webhook_endpoints, create_webhook_endpoint, and update_webhook_endpoint method return types
      • WebhookEndpointStatus is now an alias for UpdateWebhookEndpointStatus (no longer a standalone class); removed WebhookEndpointJsonStatus alias
      • Updated WebhookEndpoint to extend BaseModel for consistency
    • authorization: Add filtering parameters to authorization list methods
      • Added resource_id, resource_external_id, resource_type_slug filter parameters to list_role_assignments method
      • Added role_slug filter parameter to list_role_assignments_for_resource_by_external_id and list_role_assignments_for_resource methods
      • Removed search parameter from list_resources method

    Features

    • vault: Add new Vault service with key-value operations
      • Added new Vault service class with methods: create_data_key, create_decrypt, create_rekey, list_kv, create_kv, get_name, get_kv, update_kv, delete_kv, list_kv_metadata, list_kv_versions
      • Added vault model classes: Actor, CreateDataKeyRequest, CreateDataKeyResponse, CreateObjectRequest, DecryptRequest, DecryptResponse, DeleteObjectResponse, ObjectModel, ObjectMetadata, ObjectSummary, ObjectVersion, ObjectWithoutValue, RekeyRequest, UpdateObjectRequest
      • Added VaultOrder enum for sorting operations
      • Added client.vault accessor to access the new service
    • pipes: Add Pipes connected account event models
      • Added PipeConnectedAccount model for representing connected accounts
      • Added three new event models: PipesConnectedAccountConnected, PipesConnectedAccountDisconnected, PipesConnectedAccountReauthorizationNeeded
      • Added PipeConnectedAccountState enum with CONNECTED and NEEDS_REAUTHORIZATION values
      • Added new webhook event types to CreateWebhookEndpointEvents and UpdateWebhookEndpointEvents
    • generated: Add Error and Actor shared models
      • Added Error model in shared module for error responses
      • Added Actor model in vault module representing user/actor information
      • Updated inflections to map 'object' to 'ObjectModel' to avoid conflicts