Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
* [#545](https://github.com/workos/workos-ruby/pull/545) feat(generated)!: regenerate from spec (3 changes)

**Features**
* **[user_management](https://workos.com/docs/reference/authkit/user)**:
* Added model `EmailCompletionSessionAuthenticateRequest`
* Added model `CreateWaitlistEntry`
* Added model `Waitlist`
* Added model `WaitlistEntry`
* Added enum `WaitlistEntryState`
* Added enum `UserManagementWaitlistsState`
* Added service `UserManagementWaitlists`

**Fixes**
* **[user_management](https://workos.com/docs/reference/authkit/user)**:
* Changed request body for `UserManagementAuthentication.authenticate`
* Changed errors for endpoint `POST /user_management/authenticate`
* Removed `DiscordOAuth` from `AuthenticateResponseAuthenticationMethod`
* Removed `GrokOAuth` from `AuthenticateResponseAuthenticationMethod`
* Removed `XOAuth` from `AuthenticateResponseAuthenticationMethod`
* Removed `DiscordOAuth` from `UserIdentitiesGetItemProvider`
* Removed `GrokOAuth` from `UserIdentitiesGetItemProvider`
* Removed `XOAuth` from `UserIdentitiesGetItemProvider`
* Changed errors for endpoint `DELETE /user_management/users/{id}`
2 changes: 1 addition & 1 deletion .last-synced-sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a07d8e7988d035c2d727787f18f64d71b4b89a84
d61348070f219d16b6285f205986c2d332bf6e9c
150 changes: 150 additions & 0 deletions .oagen-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,7 @@
"lib/workos/types/user_management_authentication_provider.rb",
"lib/workos/types/user_management_authentication_screen_hint.rb",
"lib/workos/types/user_management_organization_membership_statuses.rb",
"lib/workos/types/user_management_waitlists_state.rb",
"lib/workos/types/user_organization_membership_base_list_data_status.rb",
"lib/workos/types/user_organization_membership_status.rb",
"lib/workos/types/user_role_assignment_source_type.rb",
Expand All @@ -513,6 +514,7 @@
"lib/workos/types/vault_metadata_read_data_actor_source.rb",
"lib/workos/types/vault_names_listed_data_actor_source.rb",
"lib/workos/types/vault_order.rb",
"lib/workos/types/waitlist_entry_state.rb",
"lib/workos/types/waitlist_user_state.rb",
"lib/workos/types/webhook_endpoint_status.rb",
"lib/workos/types/widget_session_token_scopes.rb",
Expand Down Expand Up @@ -584,11 +586,13 @@
"lib/workos/user_management/create_user.rb",
"lib/workos/user_management/create_user_api_key.rb",
"lib/workos/user_management/create_user_invite_options.rb",
"lib/workos/user_management/create_waitlist_entry.rb",
"lib/workos/user_management/device_authorization_response.rb",
"lib/workos/user_management/device_code_session_authenticate_request.rb",
"lib/workos/user_management/email_change.rb",
"lib/workos/user_management/email_change_confirmation.rb",
"lib/workos/user_management/email_change_confirmation_user.rb",
"lib/workos/user_management/email_completion_session_authenticate_request.rb",
"lib/workos/user_management/email_verification.rb",
"lib/workos/user_management/email_verification_code_session_authenticate_request.rb",
"lib/workos/user_management/email_verification_created.rb",
Expand Down Expand Up @@ -657,6 +661,8 @@
"lib/workos/user_management/user_updated.rb",
"lib/workos/user_management/verify_email_address.rb",
"lib/workos/user_management/verify_email_response.rb",
"lib/workos/user_management/waitlist.rb",
"lib/workos/user_management/waitlist_entry.rb",
"lib/workos/vault.rb",
"lib/workos/vault/actor.rb",
"lib/workos/vault/create_data_key_request.rb",
Expand Down Expand Up @@ -907,6 +913,7 @@
"rbi/workos/create_user_api_key.rbi",
"rbi/workos/create_user_invite_options.rbi",
"rbi/workos/create_user_organization_membership.rbi",
"rbi/workos/create_waitlist_entry.rbi",
"rbi/workos/create_webhook_endpoint.rbi",
"rbi/workos/custom_provider_definition.rbi",
"rbi/workos/data_integration.rbi",
Expand Down Expand Up @@ -970,6 +977,7 @@
"rbi/workos/email_change.rbi",
"rbi/workos/email_change_confirmation.rbi",
"rbi/workos/email_change_confirmation_user.rbi",
"rbi/workos/email_completion_session_authenticate_request.rbi",
"rbi/workos/email_verification.rbi",
"rbi/workos/email_verification_code_session_authenticate_request.rbi",
"rbi/workos/email_verification_created.rbi",
Expand Down Expand Up @@ -1246,6 +1254,8 @@
"rbi/workos/vault_object.rbi",
"rbi/workos/verify_email_address.rbi",
"rbi/workos/verify_email_response.rbi",
"rbi/workos/waitlist.rbi",
"rbi/workos/waitlist_entry.rbi",
"rbi/workos/waitlist_user.rbi",
"rbi/workos/waitlist_user_approved.rbi",
"rbi/workos/waitlist_user_created.rbi",
Expand Down Expand Up @@ -2198,6 +2208,146 @@
"PUT /data-integrations/{slug}/client-credentials": {
"sdkMethod": "update_data_integration_client_credentials",
"service": "pipes"
},
"GET /agents/blueprints": {
"sdkMethod": "list_blueprints",
"service": "agents"
},
"POST /agents/blueprints": {
"sdkMethod": "create_blueprint",
"service": "agents"
},
"GET /agents/blueprints/{agent_blueprint_id}": {
"sdkMethod": "get_blueprint",
"service": "agents"
},
"PATCH /agents/blueprints/{agent_blueprint_id}": {
"sdkMethod": "update_blueprint",
"service": "agents"
},
"DELETE /agents/blueprints/{agent_blueprint_id}": {
"sdkMethod": "delete_blueprint",
"service": "agents"
},
"POST /agents/blueprints/{agent_blueprint_id}/tokens": {
"sdkMethod": "create_blueprint_token",
"service": "agents"
},
"GET /agents/instances": {
"sdkMethod": "list_instances",
"service": "agents"
},
"GET /agents/instances/{agent_instance_id}": {
"sdkMethod": "get_instance",
"service": "agents"
},
"DELETE /agents/instances/{agent_instance_id}": {
"sdkMethod": "delete_instance",
"service": "agents"
},
"GET /agents/sessions": {
"sdkMethod": "list_sessions",
"service": "agents"
},
"GET /agents/sessions/{agent_instance_session_id}": {
"sdkMethod": "get_session",
"service": "agents"
},
"POST /agents/sessions/{agent_instance_session_id}/revoke": {
"sdkMethod": "revoke_session",
"service": "agents"
},
"POST /connections": {
"sdkMethod": "create_connection",
"service": "sso"
},
"GET /connections/{connectionId}/saml_idp_signing_certs": {
"sdkMethod": "list_connection_saml_idp_signing_certs",
"service": "sso"
},
"POST /connections/{connectionId}/saml_idp_signing_certs": {
"sdkMethod": "create_connection_saml_idp_signing_cert",
"service": "sso"
},
"DELETE /connections/{connectionId}/saml_idp_signing_certs/{certificateId}": {
"sdkMethod": "delete_connection_saml_idp_signing_cert",
"service": "sso"
},
"GET /connections/{connectionId}/saml_sp_encryption_certs": {
"sdkMethod": "list_connection_saml_sp_encryption_certs",
"service": "sso"
},
"POST /connections/{connectionId}/saml_sp_encryption_certs": {
"sdkMethod": "create_connection_saml_sp_encryption_cert",
"service": "sso"
},
"DELETE /connections/{connectionId}/saml_sp_encryption_certs/{certificateId}": {
"sdkMethod": "delete_connection_saml_sp_encryption_cert",
"service": "sso"
},
"GET /connections/{connectionId}/saml_sp_signing_cert": {
"sdkMethod": "list_connection_saml_sp_signing_cert",
"service": "sso"
},
"POST /connections/{connectionId}/saml_sp_signing_cert": {
"sdkMethod": "create_connection_saml_sp_signing_cert",
"service": "sso"
},
"DELETE /connections/{connectionId}/saml_sp_signing_cert/{certificateId}": {
"sdkMethod": "delete_connection_saml_sp_signing_cert",
"service": "sso"
},
"PATCH /connections/{id}": {
"sdkMethod": "update_connection",
"service": "sso"
},
"GET /organizations/{organization_id}/it_contacts": {
"sdkMethod": "list_it_contacts",
"service": "organizations"
},
"POST /organizations/{organization_id}/it_contacts": {
"sdkMethod": "create_it_contact",
"service": "organizations"
},
"DELETE /organizations/{organization_id}/it_contacts/{contact_id}": {
"sdkMethod": "delete_it_contact",
"service": "organizations"
},
"POST /organizations/{organization_id}/it_contacts/{contact_id}/invite": {
"sdkMethod": "invite_it_contact",
"service": "organizations"
},
"POST /organizations/{organization_id}/it_contacts/{contact_id}/revoke": {
"sdkMethod": "revoke_it_contact",
"service": "organizations"
},
"DELETE /user_management/waitlist_entries/{id}": {
"sdkMethod": "delete_waitlist_entry",
"service": "user_management"
},
"POST /user_management/waitlist_entries/{id}/approve": {
"sdkMethod": "create_waitlist_entry_approve",
"service": "user_management"
},
"POST /user_management/waitlist_entries/{id}/deny": {
"sdkMethod": "create_waitlist_entry_deny",
"service": "user_management"
},
"GET /user_management/waitlists": {
"sdkMethod": "list_waitlists",
"service": "user_management"
},
"GET /user_management/waitlists/{id}": {
"sdkMethod": "get_waitlist",
"service": "user_management"
},
"GET /user_management/waitlists/{id}/entries": {
"sdkMethod": "list_waitlist_entries",
"service": "user_management"
},
"POST /user_management/waitlists/{id}/entries": {
"sdkMethod": "create_waitlist_entry",
"service": "user_management"
}
}
}
15 changes: 15 additions & 0 deletions lib/workos/inflections.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,30 @@
"connection_saml_certificate_renewed_data_certificate_certificate_type" => "ConnectionSAMLCertificateRenewedDataCertificateCertificateType",
"connection_saml_certificate_renewed_data_connection" => "ConnectionSAMLCertificateRenewedDataConnection",
"cors_origin_response" => "CORSOriginResponse",
"create_connection_oidc_options" => "CreateConnectionOIDCOptions",
"create_connection_oidc_options_id_token_signature_algorithm" => "CreateConnectionOIDCOptionsIdTokenSignatureAlgorithm",
"create_connection_oidc_options_token_authentication_method" => "CreateConnectionOIDCOptionsTokenAuthenticationMethod",
"create_connection_saml_options" => "CreateConnectionSAMLOptions",
"create_cors_origin" => "CreateCORSOrigin",
"create_m2m_application" => "CreateM2MApplication",
"create_oauth_application" => "CreateOAuthApplication",
"create_saml_idp_signing_certificate" => "CreateSAMLIdpSigningCertificate",
"jwt_template_response" => "JWTTemplateResponse",
"mfa_totp_session_authenticate_request" => "MFATotpSessionAuthenticateRequest",
"patch_connection_oidc_options" => "PatchConnectionOIDCOptions",
"patch_connection_oidc_options_id_token_signature_algorithm" => "PatchConnectionOIDCOptionsIdTokenSignatureAlgorithm",
"patch_connection_oidc_options_token_authentication_method" => "PatchConnectionOIDCOptionsTokenAuthenticationMethod",
"patch_connection_saml_options" => "PatchConnectionSAMLOptions",
"pkce" => "PKCE",
"saml_idp_signing_certificate" => "SAMLIdpSigningCertificate",
"saml_idp_signing_certificate_list" => "SAMLIdpSigningCertificateList",
"saml_sp_encryption_certificate" => "SAMLSpEncryptionCertificate",
"saml_sp_encryption_certificate_list" => "SAMLSpEncryptionCertificateList",
"saml_sp_signing_certificate" => "SAMLSpSigningCertificate",
"sso" => "SSO",
"sso_authorize_url_response" => "SSOAuthorizeUrlResponse",
"sso_device_authorization_request" => "SSODeviceAuthorizationRequest",
"sso_grant_type" => "SSOGrantType",
"sso_logout_authorize_request" => "SSOLogoutAuthorizeRequest",
"sso_logout_authorize_response" => "SSOLogoutAuthorizeResponse",
"sso_provider" => "SSOProvider",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,10 @@ class AuthenticateResponseAuthenticationMethod
APPLE_OAUTH = "AppleOAuth"
BITBUCKET_OAUTH = "BitbucketOAuth"
CROSS_APP_AUTH = "CrossAppAuth"
DISCORD_OAUTH = "DiscordOAuth"
EXTERNAL_AUTH = "ExternalAuth"
GIT_HUB_OAUTH = "GitHubOAuth"
GIT_LAB_OAUTH = "GitLabOAuth"
GOOGLE_OAUTH = "GoogleOAuth"
GROK_OAUTH = "GrokOAuth"
XO_AUTH = "XOAuth"
INTUIT_OAUTH = "IntuitOAuth"
LINKED_IN_OAUTH = "LinkedInOAuth"
MICROSOFT_OAUTH = "MicrosoftOAuth"
Expand All @@ -29,7 +26,7 @@ class AuthenticateResponseAuthenticationMethod
MAGIC_AUTH = "MagicAuth"
IMPERSONATION = "Impersonation"
MIGRATED_SESSION = "MigratedSession"
ALL = [SSO, PASSWORD, PASSKEY, APPLE_OAUTH, BITBUCKET_OAUTH, CROSS_APP_AUTH, DISCORD_OAUTH, EXTERNAL_AUTH, GIT_HUB_OAUTH, GIT_LAB_OAUTH, GOOGLE_OAUTH, GROK_OAUTH, XO_AUTH, INTUIT_OAUTH, LINKED_IN_OAUTH, MICROSOFT_OAUTH, SALESFORCE_OAUTH, SLACK_OAUTH, VERCEL_MARKETPLACE_OAUTH, VERCEL_OAUTH, XERO_OAUTH, MAGIC_AUTH, IMPERSONATION, MIGRATED_SESSION].freeze
ALL = [SSO, PASSWORD, PASSKEY, APPLE_OAUTH, BITBUCKET_OAUTH, CROSS_APP_AUTH, EXTERNAL_AUTH, GIT_HUB_OAUTH, GIT_LAB_OAUTH, GOOGLE_OAUTH, INTUIT_OAUTH, LINKED_IN_OAUTH, MICROSOFT_OAUTH, SALESFORCE_OAUTH, SLACK_OAUTH, VERCEL_MARKETPLACE_OAUTH, VERCEL_OAUTH, XERO_OAUTH, MAGIC_AUTH, IMPERSONATION, MIGRATED_SESSION].freeze
end
end
end
5 changes: 1 addition & 4 deletions lib/workos/types/user_identities_get_item_provider.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@ module Types
class UserIdentitiesGetItemProvider
APPLE_OAUTH = "AppleOAuth"
BITBUCKET_OAUTH = "BitbucketOAuth"
DISCORD_OAUTH = "DiscordOAuth"
GITHUB_OAUTH = "GithubOAuth"
GIT_LAB_OAUTH = "GitLabOAuth"
GOOGLE_OAUTH = "GoogleOAuth"
GROK_OAUTH = "GrokOAuth"
XO_AUTH = "XOAuth"
INTUIT_OAUTH = "IntuitOAuth"
LINKED_IN_OAUTH = "LinkedInOAuth"
MICROSOFT_OAUTH = "MicrosoftOAuth"
Expand All @@ -21,7 +18,7 @@ class UserIdentitiesGetItemProvider
VERCEL_MARKETPLACE_OAUTH = "VercelMarketplaceOAuth"
VERCEL_OAUTH = "VercelOAuth"
XERO_OAUTH = "XeroOAuth"
ALL = [APPLE_OAUTH, BITBUCKET_OAUTH, DISCORD_OAUTH, GITHUB_OAUTH, GIT_LAB_OAUTH, GOOGLE_OAUTH, GROK_OAUTH, XO_AUTH, INTUIT_OAUTH, LINKED_IN_OAUTH, MICROSOFT_OAUTH, SALESFORCE_OAUTH, SLACK_OAUTH, VERCEL_MARKETPLACE_OAUTH, VERCEL_OAUTH, XERO_OAUTH].freeze
ALL = [APPLE_OAUTH, BITBUCKET_OAUTH, GITHUB_OAUTH, GIT_LAB_OAUTH, GOOGLE_OAUTH, INTUIT_OAUTH, LINKED_IN_OAUTH, MICROSOFT_OAUTH, SALESFORCE_OAUTH, SLACK_OAUTH, VERCEL_MARKETPLACE_OAUTH, VERCEL_OAUTH, XERO_OAUTH].freeze
end
end
end
14 changes: 14 additions & 0 deletions lib/workos/types/user_management_waitlists_state.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# frozen_string_literal: true

# This file is auto-generated by oagen. Do not edit.

module WorkOS
module Types
class UserManagementWaitlistsState
PENDING = "pending"
APPROVED = "approved"
DENIED = "denied"
ALL = [PENDING, APPROVED, DENIED].freeze
end
end
end
2 changes: 1 addition & 1 deletion lib/workos/types/user_sessions_status.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

module WorkOS
module Types
UserSessionsStatus = SessionCreatedDataStatus
UserSessionsStatus = AgentInstanceSessionStatus

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.

P1 Session status alias is undefined

When an application references WorkOS::Types::UserSessionsStatus, this alias resolves AgentInstanceSessionStatus, which has no runtime definition, causing a NameError instead of exposing the session-status constants.

Knowledge Base Used:

Prompt To Fix With AI
This is a comment left during a code review.
Path: lib/workos/types/user_sessions_status.rb
Line: 7

Comment:
**Session status alias is undefined**

When an application references `WorkOS::Types::UserSessionsStatus`, this alias resolves `AgentInstanceSessionStatus`, which has no runtime definition, causing a `NameError` instead of exposing the session-status constants.

**Knowledge Base Used:**
- [Shared models and utilities](https://app.greptile.com/workos/-/custom-context/knowledge-base/workos/workos-ruby/-/docs/shared-models-and-utilities.md)
- [User management and sessions](https://app.greptile.com/workos/-/custom-context/knowledge-base/workos/workos-ruby/-/docs/user-management-and-sessions.md)

---

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

end
end
9 changes: 9 additions & 0 deletions lib/workos/types/waitlist_entry_state.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true

# This file is auto-generated by oagen. Do not edit.

module WorkOS
module Types
WaitlistEntryState = UserManagementWaitlistsState
end
end
Loading
Loading