workos 9.5.0 → 10.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (208) hide show
  1. checksums.yaml +4 -4
  2. data/.claude/CLAUDE.md +38 -0
  3. data/.github/workflows/block-generated-edits.yml +13 -0
  4. data/.github/workflows/ci.yml +1 -1
  5. data/.github/workflows/docs.yml +1 -1
  6. data/.github/workflows/lint.yml +1 -1
  7. data/.github/workflows/release-please.yml +7 -1
  8. data/.github/workflows/release.yml +1 -1
  9. data/.last-synced-sha +1 -1
  10. data/.oagen-manifest.json +197 -75
  11. data/.release-please-manifest.json +1 -1
  12. data/AGENTS.md +1 -0
  13. data/CHANGELOG.md +118 -0
  14. data/Gemfile.lock +2 -2
  15. data/README.md +15 -14
  16. data/lib/workos/agents/agent_admin_link_claim_attempt_to_external_user_request.rb +28 -0
  17. data/lib/workos/agents/agent_admin_link_claim_attempt_to_external_user_request_user.rb +22 -0
  18. data/lib/workos/agents/agent_admin_validate_credential_request.rb +25 -0
  19. data/lib/workos/agents/agent_credential_validation.rb +25 -0
  20. data/lib/workos/agents/agent_registration.rb +40 -0
  21. data/lib/workos/agents/agent_registration_agent_identity.rb +28 -0
  22. data/lib/workos/agents/agent_registration_claim.rb +31 -0
  23. data/lib/workos/agents/agent_registration_claim_claim_completion.rb +31 -0
  24. data/lib/workos/agents/claim_view_response.rb +28 -0
  25. data/lib/workos/agents/claim_view_response_organization.rb +7 -0
  26. data/lib/workos/agents.rb +93 -0
  27. data/lib/workos/api_keys/api_key_validation_response.rb +6 -2
  28. data/lib/workos/api_keys.rb +3 -4
  29. data/lib/workos/authorization/permission_created_data.rb +1 -34
  30. data/lib/workos/authorization/permission_deleted_data.rb +1 -1
  31. data/lib/workos/authorization/permission_updated_data.rb +1 -1
  32. data/lib/workos/authorization.rb +24 -24
  33. data/lib/workos/base_client.rb +4 -4
  34. data/lib/workos/client.rb +4 -0
  35. data/lib/workos/connect.rb +23 -19
  36. data/lib/workos/directory_sync.rb +10 -2
  37. data/lib/workos/groups.rb +7 -7
  38. data/lib/workos/inflections.rb +0 -1
  39. data/lib/workos/organization_domains.rb +4 -4
  40. data/lib/workos/organizations/organization_authorized_connect_application_list_data.rb +34 -0
  41. data/lib/workos/organizations.rb +57 -10
  42. data/lib/workos/pipes/api_key_installation.rb +25 -0
  43. data/lib/workos/pipes/{connected_account_dto.rb → connected_account_input.rb} +1 -1
  44. data/lib/workos/pipes/create_data_integration.rb +10 -1
  45. data/lib/workos/pipes/data_integration.rb +9 -0
  46. data/lib/workos/pipes/{data_integration_credentials_dto.rb → data_integration_credentials_input.rb} +1 -1
  47. data/lib/workos/pipes/data_integration_installation.rb +28 -0
  48. data/lib/workos/pipes/data_integrations_get_data_integration_authorize_url_request.rb +5 -2
  49. data/lib/workos/pipes/data_integrations_upsert_api_key_request.rb +1 -19
  50. data/lib/workos/pipes/update_data_integration.rb +4 -1
  51. data/lib/workos/pipes.rb +32 -17
  52. data/lib/workos/pipes_provider/configure_data_integration_body.rb +5 -2
  53. data/lib/workos/pipes_provider/data_integration_configuration_response.rb +3 -0
  54. data/lib/workos/pipes_provider.rb +6 -3
  55. data/lib/workos/shared/access_token_agent_registration_credential_issued_data_detail.rb +25 -0
  56. data/lib/workos/shared/agent_registration_claim_attempt_created.rb +34 -0
  57. data/lib/workos/shared/agent_registration_claim_attempt_created_data.rb +40 -0
  58. data/lib/workos/shared/agent_registration_claim_completed.rb +34 -0
  59. data/lib/workos/shared/agent_registration_claim_completed_data.rb +40 -0
  60. data/lib/workos/shared/agent_registration_claim_completed_data_claimed_by.rb +22 -0
  61. data/lib/workos/shared/agent_registration_created.rb +34 -0
  62. data/lib/workos/{organization_domains/organization_domain_stand_alone.rb → shared/agent_registration_created_data.rb} +13 -16
  63. data/lib/workos/shared/agent_registration_created_data_agent_identity.rb +25 -0
  64. data/lib/workos/shared/agent_registration_credential_issued.rb +34 -0
  65. data/lib/workos/shared/agent_registration_credential_issued_data.rb +34 -0
  66. data/lib/workos/shared/agent_registration_credential_issued_data_detail.rb +22 -0
  67. data/lib/workos/shared/agent_registration_deleted.rb +34 -0
  68. data/lib/workos/shared/agent_registration_deleted_data.rb +18 -0
  69. data/lib/workos/shared/agent_registration_expired.rb +34 -0
  70. data/lib/workos/shared/agent_registration_expired_data.rb +7 -0
  71. data/lib/workos/shared/agent_registration_organization_switched.rb +34 -0
  72. data/lib/workos/shared/agent_registration_organization_switched_data.rb +25 -0
  73. data/lib/workos/shared/agent_registration_revoked.rb +34 -0
  74. data/lib/workos/shared/agent_registration_revoked_data.rb +7 -0
  75. data/lib/workos/shared/pipes_connected_account_connection_failed.rb +34 -0
  76. data/lib/workos/shared/pipes_connected_account_connection_failed_data.rb +46 -0
  77. data/lib/workos/shared/radar_challenge_created.rb +34 -0
  78. data/lib/workos/shared/radar_challenge_created_data.rb +28 -0
  79. data/lib/workos/sso/connection.rb +0 -3
  80. data/lib/workos/sso.rb +73 -26
  81. data/lib/workos/types/agent_admin_validate_credential_request_type.rb +13 -0
  82. data/lib/workos/types/agent_registration_created_data_kind.rb +14 -0
  83. data/lib/workos/types/agent_registration_created_data_method.rb +14 -0
  84. data/lib/workos/types/agent_registration_created_data_status.rb +15 -0
  85. data/lib/workos/types/{data_integration_credentials_type.rb → agent_registration_kind.rb} +1 -1
  86. data/lib/workos/types/{organization_domain_stand_alone_state.rb → agent_registration_status.rb} +1 -1
  87. data/lib/workos/types/applications_registration_types.rb +13 -0
  88. data/lib/workos/types/{organization_domain_stand_alone_verification_strategy.rb → claim_view_response_status.rb} +1 -1
  89. data/lib/workos/types/connected_account_auth_method.rb +2 -1
  90. data/lib/workos/types/connected_account_input_state.rb +13 -0
  91. data/lib/workos/types/connected_account_state.rb +2 -1
  92. data/lib/workos/types/create_data_integration_auth_methods.rb +13 -0
  93. data/lib/workos/types/create_user_password_hash_type.rb +2 -1
  94. data/lib/workos/types/create_webhook_endpoint_events.rb +5 -1
  95. data/lib/workos/types/data_integration_auth_methods.rb +9 -0
  96. data/lib/workos/types/data_integration_credentials_input_type.rb +9 -0
  97. data/lib/workos/types/data_integrations_list_response_data_connected_account_state.rb +1 -6
  98. data/lib/workos/types/pipe_connected_account_state.rb +1 -5
  99. data/lib/workos/types/vault_kek_deleted_data_actor_source.rb +9 -0
  100. data/lib/workos/user_management/authentication_reauthentication_succeeded.rb +34 -0
  101. data/lib/workos/user_management/authentication_reauthentication_succeeded_data.rb +34 -0
  102. data/lib/workos/user_management/radar_challenge.rb +43 -0
  103. data/lib/workos/user_management.rb +149 -67
  104. data/lib/workos/vault/vault_kek_deleted.rb +34 -0
  105. data/lib/workos/vault/vault_kek_deleted_data.rb +31 -0
  106. data/lib/workos/vault.rb +4 -4
  107. data/lib/workos/version.rb +1 -1
  108. data/lib/workos/widgets.rb +2 -2
  109. data/lib/workos.rb +11 -0
  110. data/rbi/workos/access_token_agent_registration_credential_issued_data_detail.rbi +36 -0
  111. data/rbi/workos/agent_admin_link_claim_attempt_to_external_user_request.rbi +42 -0
  112. data/rbi/workos/agent_admin_link_claim_attempt_to_external_user_request_user.rbi +30 -0
  113. data/rbi/workos/agent_admin_validate_credential_request.rbi +36 -0
  114. data/rbi/workos/{sso_intent_options.rbi → agent_credential_validation.rbi} +11 -5
  115. data/rbi/workos/agent_registration.rbi +66 -0
  116. data/rbi/workos/agent_registration_agent_identity.rbi +42 -0
  117. data/rbi/workos/agent_registration_claim.rbi +48 -0
  118. data/rbi/workos/agent_registration_claim_attempt_created.rbi +54 -0
  119. data/rbi/workos/agent_registration_claim_attempt_created_data.rbi +66 -0
  120. data/rbi/workos/agent_registration_claim_claim_completion.rbi +48 -0
  121. data/rbi/workos/agent_registration_claim_completed.rbi +54 -0
  122. data/rbi/workos/agent_registration_claim_completed_data.rbi +66 -0
  123. data/rbi/workos/agent_registration_claim_completed_data_claimed_by.rbi +30 -0
  124. data/rbi/workos/agent_registration_created.rbi +54 -0
  125. data/rbi/workos/agent_registration_created_data.rbi +72 -0
  126. data/rbi/workos/agent_registration_created_data_agent_identity.rbi +36 -0
  127. data/rbi/workos/agent_registration_credential_issued.rbi +54 -0
  128. data/rbi/workos/agent_registration_credential_issued_data.rbi +54 -0
  129. data/rbi/workos/agent_registration_credential_issued_data_detail.rbi +30 -0
  130. data/rbi/workos/agent_registration_deleted.rbi +54 -0
  131. data/rbi/workos/{connection_option.rbi → agent_registration_deleted_data.rbi} +5 -5
  132. data/rbi/workos/agent_registration_expired.rbi +54 -0
  133. data/rbi/workos/{domain_verification_intent_options.rbi → agent_registration_expired_data.rbi} +5 -5
  134. data/rbi/workos/agent_registration_organization_switched.rbi +54 -0
  135. data/rbi/workos/agent_registration_organization_switched_data.rbi +36 -0
  136. data/rbi/workos/agent_registration_revoked.rbi +54 -0
  137. data/rbi/workos/agent_registration_revoked_data.rbi +24 -0
  138. data/rbi/workos/agents.rbi +42 -0
  139. data/rbi/workos/api_key_installation.rbi +36 -0
  140. data/rbi/workos/api_key_validation_response.rbi +6 -0
  141. data/rbi/workos/authentication_reauthentication_succeeded.rbi +54 -0
  142. data/rbi/workos/authentication_reauthentication_succeeded_data.rbi +54 -0
  143. data/rbi/workos/claim_view_response.rbi +42 -0
  144. data/rbi/workos/claim_view_response_organization.rbi +30 -0
  145. data/rbi/workos/client.rbi +3 -0
  146. data/rbi/workos/configure_data_integration_body.rbi +6 -0
  147. data/rbi/workos/connect.rbi +2 -1
  148. data/rbi/workos/{connected_account_dto.rbi → connected_account_input.rbi} +1 -1
  149. data/rbi/workos/connection.rbi +0 -6
  150. data/rbi/workos/create_data_integration.rbi +20 -2
  151. data/rbi/workos/data_integration.rbi +18 -0
  152. data/rbi/workos/data_integration_configuration_response.rbi +6 -0
  153. data/rbi/workos/{data_integration_credentials_dto.rbi → data_integration_credentials_input.rbi} +1 -1
  154. data/rbi/workos/data_integration_installation.rbi +42 -0
  155. data/rbi/workos/data_integrations_get_data_integration_authorize_url_request.rbi +6 -0
  156. data/rbi/workos/directory_sync.rbi +3 -1
  157. data/rbi/workos/organization_authorized_connect_application_list_data.rbi +54 -0
  158. data/rbi/workos/organization_domains.rbi +2 -2
  159. data/rbi/workos/organizations.rbi +12 -0
  160. data/rbi/workos/permission_created_data.rbi +6 -0
  161. data/rbi/workos/permission_deleted_data.rbi +6 -0
  162. data/rbi/workos/permission_updated_data.rbi +6 -0
  163. data/rbi/workos/pipes.rbi +10 -5
  164. data/rbi/workos/pipes_connected_account_connection_failed.rbi +54 -0
  165. data/rbi/workos/{organization_domain_stand_alone.rbi → pipes_connected_account_connection_failed_data.rbi} +23 -23
  166. data/rbi/workos/pipes_provider.rbi +2 -1
  167. data/rbi/workos/radar_challenge.rbi +72 -0
  168. data/rbi/workos/radar_challenge_created.rbi +54 -0
  169. data/rbi/workos/radar_challenge_created_data.rbi +42 -0
  170. data/rbi/workos/sso.rbi +26 -0
  171. data/rbi/workos/update_data_integration.rbi +8 -2
  172. data/rbi/workos/user_management.rbi +46 -0
  173. data/rbi/workos/vault_kek_deleted.rbi +54 -0
  174. data/rbi/workos/vault_kek_deleted_data.rbi +48 -0
  175. data/rbi/workos/widget_session_token.rbi +2 -2
  176. data/rbi/workos/widgets.rbi +1 -1
  177. data/test/workos/test_agents.rb +49 -0
  178. data/test/workos/test_agents_model_round_trip.rb +165 -0
  179. data/test/workos/test_api_keys_model_round_trip.rb +307 -0
  180. data/test/workos/test_authkit_helpers.rb +22 -10
  181. data/test/workos/test_authorization_model_round_trip.rb +237 -0
  182. data/test/workos/test_base_client.rb +27 -0
  183. data/test/workos/test_client_api_model_round_trip.rb +31 -0
  184. data/test/workos/test_connect_model_round_trip.rb +175 -0
  185. data/test/workos/test_directory_sync_model_round_trip.rb +579 -0
  186. data/test/workos/test_feature_flags_model_round_trip.rb +580 -0
  187. data/test/workos/test_groups_model_round_trip.rb +56 -0
  188. data/test/workos/test_multi_factor_auth_model_round_trip.rb +192 -0
  189. data/test/workos/test_organization_domains_model_round_trip.rb +260 -0
  190. data/test/workos/test_organization_membership_model_round_trip.rb +89 -0
  191. data/test/workos/test_organizations.rb +9 -1
  192. data/test/workos/test_organizations_model_round_trip.rb +602 -0
  193. data/test/workos/test_pipes_model_round_trip.rb +44 -5
  194. data/test/workos/test_pipes_provider_model_round_trip.rb +77 -0
  195. data/test/workos/test_shared_model_round_trip.rb +725 -0
  196. data/test/workos/test_sso_model_round_trip.rb +421 -0
  197. data/test/workos/test_user_management.rb +16 -0
  198. data/test/workos/test_user_management_model_round_trip.rb +1501 -0
  199. data/test/workos/test_vault_model_round_trip.rb +571 -0
  200. data/test/workos/test_widgets.rb +2 -2
  201. data/test/workos/test_widgets_model_round_trip.rb +30 -0
  202. metadata +120 -19
  203. data/lib/workos/admin_portal/domain_verification_intent_options.rb +0 -18
  204. data/lib/workos/admin_portal/intent_options.rb +0 -22
  205. data/lib/workos/admin_portal/sso_intent_options.rb +0 -22
  206. data/lib/workos/sso/connection_option.rb +0 -18
  207. data/rbi/workos/intent_options.rbi +0 -30
  208. data/test/workos/test_model_round_trip.rb +0 -6
@@ -4,6 +4,6 @@
4
4
 
5
5
  module WorkOS
6
6
  module Types
7
- DataIntegrationCredentialsType = DataIntegrationCredentialType
7
+ AgentRegistrationKind = AgentRegistrationCreatedDataKind
8
8
  end
9
9
  end
@@ -4,6 +4,6 @@
4
4
 
5
5
  module WorkOS
6
6
  module Types
7
- OrganizationDomainStandAloneState = OrganizationCreatedDataDomainState
7
+ AgentRegistrationStatus = AgentRegistrationCreatedDataStatus
8
8
  end
9
9
  end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ module Types
7
+ class ApplicationsRegistrationTypes
8
+ DYNAMIC = "dynamic"
9
+ AUTHENTICATED = "authenticated"
10
+ ALL = [DYNAMIC, AUTHENTICATED].freeze
11
+ end
12
+ end
13
+ end
@@ -4,6 +4,6 @@
4
4
 
5
5
  module WorkOS
6
6
  module Types
7
- OrganizationDomainStandAloneVerificationStrategy = OrganizationCreatedDataDomainVerificationStrategy
7
+ ClaimViewResponseStatus = AgentRegistrationCreatedDataStatus
8
8
  end
9
9
  end
@@ -7,7 +7,8 @@ module WorkOS
7
7
  class ConnectedAccountAuthMethod
8
8
  OAUTH = "oauth"
9
9
  API_KEY = "api_key"
10
- ALL = [OAUTH, API_KEY].freeze
10
+ CLIENT_CREDENTIALS = "client_credentials"
11
+ ALL = [OAUTH, API_KEY, CLIENT_CREDENTIALS].freeze
11
12
  end
12
13
  end
13
14
  end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ module Types
7
+ class ConnectedAccountInputState
8
+ CONNECTED = "connected"
9
+ NEEDS_REAUTHORIZATION = "needs_reauthorization"
10
+ ALL = [CONNECTED, NEEDS_REAUTHORIZATION].freeze
11
+ end
12
+ end
13
+ end
@@ -7,7 +7,8 @@ module WorkOS
7
7
  class ConnectedAccountState
8
8
  CONNECTED = "connected"
9
9
  NEEDS_REAUTHORIZATION = "needs_reauthorization"
10
- ALL = [CONNECTED, NEEDS_REAUTHORIZATION].freeze
10
+ DISCONNECTED = "disconnected"
11
+ ALL = [CONNECTED, NEEDS_REAUTHORIZATION, DISCONNECTED].freeze
11
12
  end
12
13
  end
13
14
  end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ module Types
7
+ class CreateDataIntegrationAuthMethods
8
+ OAUTH = "oauth"
9
+ API_KEY = "api_key"
10
+ ALL = [OAUTH, API_KEY].freeze
11
+ end
12
+ end
13
+ end
@@ -8,10 +8,11 @@ module WorkOS
8
8
  BCRYPT = "bcrypt"
9
9
  FIREBASE_SCRYPT = "firebase-scrypt"
10
10
  SSHA = "ssha"
11
+ SSHA_256 = "ssha256"
11
12
  SCRYPT = "scrypt"
12
13
  PBKDF_2 = "pbkdf2"
13
14
  ARGON_2 = "argon2"
14
- ALL = [BCRYPT, FIREBASE_SCRYPT, SSHA, SCRYPT, PBKDF_2, ARGON_2].freeze
15
+ ALL = [BCRYPT, FIREBASE_SCRYPT, SSHA, SSHA_256, SCRYPT, PBKDF_2, ARGON_2].freeze
15
16
  end
16
17
  end
17
18
  end
@@ -9,7 +9,10 @@ module WorkOS
9
9
  AGENT_REGISTRATION_CLAIM_ATTEMPT_CREATED = "agent.registration.claim.attempt.created"
10
10
  AGENT_REGISTRATION_CLAIM_COMPLETED = "agent.registration.claim.completed"
11
11
  AGENT_REGISTRATION_CREDENTIAL_ISSUED = "agent.registration.credential.issued"
12
+ AGENT_REGISTRATION_DELETED = "agent.registration.deleted"
13
+ AGENT_REGISTRATION_EXPIRED = "agent.registration.expired"
12
14
  AGENT_REGISTRATION_ORGANIZATION_SWITCHED = "agent.registration.organization.switched"
15
+ AGENT_REGISTRATION_REVOKED = "agent.registration.revoked"
13
16
  AUTHENTICATION_EMAIL_VERIFICATION_SUCCEEDED = "authentication.email_verification_succeeded"
14
17
  AUTHENTICATION_MAGIC_AUTH_FAILED = "authentication.magic_auth_failed"
15
18
  AUTHENTICATION_MAGIC_AUTH_SUCCEEDED = "authentication.magic_auth_succeeded"
@@ -24,6 +27,7 @@ module WorkOS
24
27
  AUTHENTICATION_SSO_STARTED = "authentication.sso_started"
25
28
  AUTHENTICATION_SSO_SUCCEEDED = "authentication.sso_succeeded"
26
29
  AUTHENTICATION_SSO_TIMED_OUT = "authentication.sso_timed_out"
30
+ RADAR_CHALLENGE_CREATED = "radar.challenge_created"
27
31
  AUTHENTICATION_RADAR_RISK_DETECTED = "authentication.radar_risk_detected"
28
32
  AUTHENTICATION_REAUTHENTICATION_SUCCEEDED = "authentication.reauthentication_succeeded"
29
33
  API_KEY_CREATED = "api_key.created"
@@ -93,7 +97,7 @@ module WorkOS
93
97
  WAITLIST_USER_APPROVED = "waitlist_user.approved"
94
98
  WAITLIST_USER_CREATED = "waitlist_user.created"
95
99
  WAITLIST_USER_DENIED = "waitlist_user.denied"
96
- ALL = [AGENT_REGISTRATION_CREATED, AGENT_REGISTRATION_CLAIM_ATTEMPT_CREATED, AGENT_REGISTRATION_CLAIM_COMPLETED, AGENT_REGISTRATION_CREDENTIAL_ISSUED, AGENT_REGISTRATION_ORGANIZATION_SWITCHED, AUTHENTICATION_EMAIL_VERIFICATION_SUCCEEDED, AUTHENTICATION_MAGIC_AUTH_FAILED, AUTHENTICATION_MAGIC_AUTH_SUCCEEDED, AUTHENTICATION_MFA_SUCCEEDED, AUTHENTICATION_OAUTH_FAILED, AUTHENTICATION_OAUTH_SUCCEEDED, AUTHENTICATION_PASSWORD_FAILED, AUTHENTICATION_PASSWORD_SUCCEEDED, AUTHENTICATION_PASSKEY_FAILED, AUTHENTICATION_PASSKEY_SUCCEEDED, AUTHENTICATION_SSO_FAILED, AUTHENTICATION_SSO_STARTED, AUTHENTICATION_SSO_SUCCEEDED, AUTHENTICATION_SSO_TIMED_OUT, AUTHENTICATION_RADAR_RISK_DETECTED, AUTHENTICATION_REAUTHENTICATION_SUCCEEDED, API_KEY_CREATED, API_KEY_REVOKED, API_KEY_UPDATED, CONNECTION_ACTIVATED, CONNECTION_DEACTIVATED, CONNECTION_SAML_CERTIFICATE_RENEWAL_REQUIRED, CONNECTION_SAML_CERTIFICATE_RENEWED, CONNECTION_DELETED, DSYNC_ACTIVATED, DSYNC_DELETED, DSYNC_GROUP_CREATED, DSYNC_GROUP_DELETED, DSYNC_GROUP_UPDATED, DSYNC_GROUP_USER_ADDED, DSYNC_GROUP_USER_REMOVED, DSYNC_USER_CREATED, DSYNC_USER_DELETED, DSYNC_USER_UPDATED, EMAIL_VERIFICATION_CREATED, GROUP_CREATED, GROUP_DELETED, GROUP_MEMBER_ADDED, GROUP_MEMBER_REMOVED, GROUP_UPDATED, FLAG_CREATED, FLAG_DELETED, FLAG_UPDATED, FLAG_RULE_UPDATED, INVITATION_ACCEPTED, INVITATION_CREATED, INVITATION_RESENT, INVITATION_REVOKED, MAGIC_AUTH_CREATED, ORGANIZATION_CREATED, ORGANIZATION_DELETED, ORGANIZATION_UPDATED, ORGANIZATION_DOMAIN_CREATED, ORGANIZATION_DOMAIN_DELETED, ORGANIZATION_DOMAIN_UPDATED, ORGANIZATION_DOMAIN_VERIFIED, ORGANIZATION_DOMAIN_VERIFICATION_FAILED, PASSWORD_RESET_CREATED, PASSWORD_RESET_SUCCEEDED, USER_CREATED, USER_UPDATED, USER_DELETED, ORGANIZATION_MEMBERSHIP_CREATED, ORGANIZATION_MEMBERSHIP_DELETED, ORGANIZATION_MEMBERSHIP_UPDATED, ROLE_CREATED, ROLE_DELETED, ROLE_UPDATED, ORGANIZATION_ROLE_CREATED, ORGANIZATION_ROLE_DELETED, ORGANIZATION_ROLE_UPDATED, PERMISSION_CREATED, PERMISSION_DELETED, PERMISSION_UPDATED, PIPES_CONNECTED_ACCOUNT_CONNECTED, PIPES_CONNECTED_ACCOUNT_CONNECTION_FAILED, PIPES_CONNECTED_ACCOUNT_DISCONNECTED, PIPES_CONNECTED_ACCOUNT_REAUTHORIZATION_NEEDED, SESSION_CREATED, SESSION_REVOKED, WAITLIST_USER_APPROVED, WAITLIST_USER_CREATED, WAITLIST_USER_DENIED].freeze
100
+ ALL = [AGENT_REGISTRATION_CREATED, AGENT_REGISTRATION_CLAIM_ATTEMPT_CREATED, AGENT_REGISTRATION_CLAIM_COMPLETED, AGENT_REGISTRATION_CREDENTIAL_ISSUED, AGENT_REGISTRATION_DELETED, AGENT_REGISTRATION_EXPIRED, AGENT_REGISTRATION_ORGANIZATION_SWITCHED, AGENT_REGISTRATION_REVOKED, AUTHENTICATION_EMAIL_VERIFICATION_SUCCEEDED, AUTHENTICATION_MAGIC_AUTH_FAILED, AUTHENTICATION_MAGIC_AUTH_SUCCEEDED, AUTHENTICATION_MFA_SUCCEEDED, AUTHENTICATION_OAUTH_FAILED, AUTHENTICATION_OAUTH_SUCCEEDED, AUTHENTICATION_PASSWORD_FAILED, AUTHENTICATION_PASSWORD_SUCCEEDED, AUTHENTICATION_PASSKEY_FAILED, AUTHENTICATION_PASSKEY_SUCCEEDED, AUTHENTICATION_SSO_FAILED, AUTHENTICATION_SSO_STARTED, AUTHENTICATION_SSO_SUCCEEDED, AUTHENTICATION_SSO_TIMED_OUT, RADAR_CHALLENGE_CREATED, AUTHENTICATION_RADAR_RISK_DETECTED, AUTHENTICATION_REAUTHENTICATION_SUCCEEDED, API_KEY_CREATED, API_KEY_REVOKED, API_KEY_UPDATED, CONNECTION_ACTIVATED, CONNECTION_DEACTIVATED, CONNECTION_SAML_CERTIFICATE_RENEWAL_REQUIRED, CONNECTION_SAML_CERTIFICATE_RENEWED, CONNECTION_DELETED, DSYNC_ACTIVATED, DSYNC_DELETED, DSYNC_GROUP_CREATED, DSYNC_GROUP_DELETED, DSYNC_GROUP_UPDATED, DSYNC_GROUP_USER_ADDED, DSYNC_GROUP_USER_REMOVED, DSYNC_USER_CREATED, DSYNC_USER_DELETED, DSYNC_USER_UPDATED, EMAIL_VERIFICATION_CREATED, GROUP_CREATED, GROUP_DELETED, GROUP_MEMBER_ADDED, GROUP_MEMBER_REMOVED, GROUP_UPDATED, FLAG_CREATED, FLAG_DELETED, FLAG_UPDATED, FLAG_RULE_UPDATED, INVITATION_ACCEPTED, INVITATION_CREATED, INVITATION_RESENT, INVITATION_REVOKED, MAGIC_AUTH_CREATED, ORGANIZATION_CREATED, ORGANIZATION_DELETED, ORGANIZATION_UPDATED, ORGANIZATION_DOMAIN_CREATED, ORGANIZATION_DOMAIN_DELETED, ORGANIZATION_DOMAIN_UPDATED, ORGANIZATION_DOMAIN_VERIFIED, ORGANIZATION_DOMAIN_VERIFICATION_FAILED, PASSWORD_RESET_CREATED, PASSWORD_RESET_SUCCEEDED, USER_CREATED, USER_UPDATED, USER_DELETED, ORGANIZATION_MEMBERSHIP_CREATED, ORGANIZATION_MEMBERSHIP_DELETED, ORGANIZATION_MEMBERSHIP_UPDATED, ROLE_CREATED, ROLE_DELETED, ROLE_UPDATED, ORGANIZATION_ROLE_CREATED, ORGANIZATION_ROLE_DELETED, ORGANIZATION_ROLE_UPDATED, PERMISSION_CREATED, PERMISSION_DELETED, PERMISSION_UPDATED, PIPES_CONNECTED_ACCOUNT_CONNECTED, PIPES_CONNECTED_ACCOUNT_CONNECTION_FAILED, PIPES_CONNECTED_ACCOUNT_DISCONNECTED, PIPES_CONNECTED_ACCOUNT_REAUTHORIZATION_NEEDED, SESSION_CREATED, SESSION_REVOKED, WAITLIST_USER_APPROVED, WAITLIST_USER_CREATED, WAITLIST_USER_DENIED].freeze
97
101
  end
98
102
  end
99
103
  end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ module Types
7
+ DataIntegrationAuthMethods = ConnectedAccountAuthMethod
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ module Types
7
+ DataIntegrationCredentialsInputType = DataIntegrationCredentialType
8
+ end
9
+ end
@@ -4,11 +4,6 @@
4
4
 
5
5
  module WorkOS
6
6
  module Types
7
- class DataIntegrationsListResponseDataConnectedAccountState
8
- CONNECTED = "connected"
9
- NEEDS_REAUTHORIZATION = "needs_reauthorization"
10
- DISCONNECTED = "disconnected"
11
- ALL = [CONNECTED, NEEDS_REAUTHORIZATION, DISCONNECTED].freeze
12
- end
7
+ DataIntegrationsListResponseDataConnectedAccountState = ConnectedAccountState
13
8
  end
14
9
  end
@@ -4,10 +4,6 @@
4
4
 
5
5
  module WorkOS
6
6
  module Types
7
- class PipeConnectedAccountState
8
- CONNECTED = "connected"
9
- NEEDS_REAUTHORIZATION = "needs_reauthorization"
10
- ALL = [CONNECTED, NEEDS_REAUTHORIZATION].freeze
11
- end
7
+ PipeConnectedAccountState = ConnectedAccountInputState
12
8
  end
13
9
  end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ module Types
7
+ VaultKekDeletedDataActorSource = VaultDataCreatedDataActorSource
8
+ end
9
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class AuthenticationReauthenticationSucceeded < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ object: :object,
9
+ id: :id,
10
+ event: :event,
11
+ data: :data,
12
+ created_at: :created_at,
13
+ context: :context
14
+ }.freeze
15
+
16
+ attr_accessor \
17
+ :object,
18
+ :id,
19
+ :event,
20
+ :data,
21
+ :created_at,
22
+ :context
23
+
24
+ def initialize(json)
25
+ hash = self.class.normalize(json)
26
+ @object = hash[:object]
27
+ @id = hash[:id]
28
+ @event = hash[:event]
29
+ @data = hash[:data] ? WorkOS::AuthenticationReauthenticationSucceededData.new(hash[:data]) : nil
30
+ @created_at = hash[:created_at]
31
+ @context = hash[:context] ? WorkOS::EventContext.new(hash[:context]) : nil
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class AuthenticationReauthenticationSucceededData < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ type: :type,
9
+ status: :status,
10
+ ip_address: :ip_address,
11
+ user_agent: :user_agent,
12
+ user_id: :user_id,
13
+ email: :email
14
+ }.freeze
15
+
16
+ attr_accessor \
17
+ :type,
18
+ :status,
19
+ :ip_address,
20
+ :user_agent,
21
+ :user_id,
22
+ :email
23
+
24
+ def initialize(json)
25
+ hash = self.class.normalize(json)
26
+ @type = hash[:type]
27
+ @status = hash[:status]
28
+ @ip_address = hash[:ip_address]
29
+ @user_agent = hash[:user_agent]
30
+ @user_id = hash[:user_id]
31
+ @email = hash[:email]
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class RadarChallenge < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ object: :object,
9
+ id: :id,
10
+ type: :type,
11
+ user_id: :user_id,
12
+ email: :email,
13
+ expires_at: :expires_at,
14
+ created_at: :created_at,
15
+ updated_at: :updated_at,
16
+ code: :code
17
+ }.freeze
18
+
19
+ attr_accessor \
20
+ :object,
21
+ :id,
22
+ :type,
23
+ :user_id,
24
+ :email,
25
+ :expires_at,
26
+ :created_at,
27
+ :updated_at,
28
+ :code
29
+
30
+ def initialize(json)
31
+ hash = self.class.normalize(json)
32
+ @object = hash[:object]
33
+ @id = hash[:id]
34
+ @type = hash[:type]
35
+ @user_id = hash[:user_id]
36
+ @email = hash[:email]
37
+ @expires_at = hash[:expires_at]
38
+ @created_at = hash[:created_at]
39
+ @updated_at = hash[:updated_at]
40
+ @code = hash[:code]
41
+ end
42
+ end
43
+ end
@@ -3,6 +3,7 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  require "json"
6
+ require "uri"
6
7
 
7
8
  module WorkOS
8
9
  class UserManagement
@@ -515,6 +516,70 @@ module WorkOS
515
516
  WorkOS::AuthenticateResponse.new(response.body)
516
517
  end
517
518
 
519
+ # Get an authorization URL
520
+ # Builds the URL client-side; no HTTP request is made.
521
+ # @param code_challenge_method [String, nil] The only valid PKCE code challenge method is `"S256"`. Required when specifying a `code_challenge`.
522
+ # @param code_challenge [String, nil] Code challenge derived from the code verifier used for the PKCE flow.
523
+ # @param domain_hint [String, nil] A domain hint for SSO connection lookup.
524
+ # @param connection_id [String, nil] The ID of an SSO connection to use for authentication.
525
+ # @param provider_query_params [Hash{String => String}, nil] Key/value pairs of query parameters to pass to the OAuth provider.
526
+ # @param provider_scopes [Array<String>, nil] Additional OAuth scopes to request from the identity provider.
527
+ # @param invitation_token [String, nil] A token representing a user invitation to redeem during authentication.
528
+ # @param max_age [Integer, nil] Maximum allowable elapsed time, in seconds, since the user last actively authenticated. If the last authentication is older than this value, the user is prompted to re-authenticate; a value of `0` forces re-authentication. Only supported when the provider is `authkit`.
529
+ # @param screen_hint [WorkOS::Types::UserManagementAuthenticationScreenHint, nil] Used to specify which screen to display when the provider is `authkit`.
530
+ # @param login_hint [String, nil] A hint to the authorization server about the login identifier the user might use.
531
+ # @param provider [WorkOS::Types::UserManagementAuthenticationProvider, nil] The OAuth provider to authenticate with (e.g., GoogleOAuth, MicrosoftOAuth, GitHubOAuth).
532
+ # @param prompt [String, nil] Controls the authentication flow behavior for the user.
533
+ # @param state [String, nil] An opaque value used to maintain state between the request and the callback.
534
+ # @param organization_id [String, nil] The ID of the organization to authenticate the user against.
535
+ # @param redirect_uri [String] The callback URI where the authorization code will be sent after authentication.
536
+ # @param client_id [String, nil] The unique identifier of the WorkOS environment client. Defaults to the client's configured client_id.
537
+ # @return [String]
538
+ def get_authorization_url(
539
+ redirect_uri:,
540
+ code_challenge_method: nil,
541
+ code_challenge: nil,
542
+ domain_hint: nil,
543
+ connection_id: nil,
544
+ provider_query_params: nil,
545
+ provider_scopes: nil,
546
+ invitation_token: nil,
547
+ max_age: nil,
548
+ screen_hint: nil,
549
+ login_hint: nil,
550
+ provider: nil,
551
+ prompt: nil,
552
+ state: nil,
553
+ organization_id: nil,
554
+ client_id: nil
555
+ )
556
+ params = {
557
+ "code_challenge_method" => code_challenge_method,
558
+ "code_challenge" => code_challenge,
559
+ "domain_hint" => domain_hint,
560
+ "connection_id" => connection_id,
561
+ "provider_query_params" => provider_query_params,
562
+ "provider_scopes" => provider_scopes,
563
+ "invitation_token" => invitation_token,
564
+ "max_age" => max_age,
565
+ "screen_hint" => screen_hint,
566
+ "login_hint" => login_hint,
567
+ "provider" => provider,
568
+ "prompt" => prompt,
569
+ "state" => state,
570
+ "organization_id" => organization_id,
571
+ "redirect_uri" => redirect_uri,
572
+ "client_id" => client_id
573
+ }.compact
574
+ params["provider_query_params"] = JSON.generate(provider_query_params) unless provider_query_params.nil?
575
+ params["provider_scopes"] = provider_scopes.join(",") unless provider_scopes.nil?
576
+ params["response_type"] = "code"
577
+ params["client_id"] = @client.client_id if !params.key?("client_id") && !@client.client_id.nil?
578
+ uri = URI.join(@client.base_url, "/user_management/authorize")
579
+ uri.query = URI.encode_www_form(params) unless params.empty?
580
+ uri.to_s
581
+ end
582
+
518
583
  # Get device authorization URL
519
584
  # @param client_id [String] The WorkOS client ID for your application.
520
585
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
@@ -573,6 +638,43 @@ module WorkOS
573
638
  result
574
639
  end
575
640
 
641
+ # Get Radar Challenge details
642
+ # @param id [String] The unique ID of the Radar Challenge.
643
+ # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
644
+ # @return [WorkOS::RadarChallenge]
645
+ def get_radar_challenge(
646
+ id:,
647
+ request_options: {}
648
+ )
649
+ response = @client.request(
650
+ method: :get,
651
+ path: "/user_management/radar_challenges/#{WorkOS::Util.encode_path(id)}",
652
+ auth: true,
653
+ request_options: request_options
654
+ )
655
+ result = WorkOS::RadarChallenge.new(response.body)
656
+ result.last_response = WorkOS::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"])
657
+ result
658
+ end
659
+
660
+ # Logout
661
+ # Builds the URL client-side; no HTTP request is made.
662
+ # @param session_id [String] The ID of the session. This can be extracted from the `sid` claim of the access token.
663
+ # @param return_to [String, nil] The URL to redirect the user to after logout.
664
+ # @return [String]
665
+ def get_logout_url(
666
+ session_id:,
667
+ return_to: nil
668
+ )
669
+ params = {
670
+ "session_id" => session_id,
671
+ "return_to" => return_to
672
+ }.compact
673
+ uri = URI.join(@client.base_url, "/user_management/sessions/logout")
674
+ uri.query = URI.encode_www_form(params) unless params.empty?
675
+ uri.to_s
676
+ end
677
+
576
678
  # Revoke Session
577
679
  # @param session_id [String] The ID of the session to revoke. This can be extracted from the `sid` claim of the access token.
578
680
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
@@ -820,30 +922,30 @@ module WorkOS
820
922
  # @return [WorkOS::UserCreateResponse]
821
923
  def create_user(
822
924
  email:,
823
- first_name: nil,
824
- last_name: nil,
825
- name: nil,
826
- email_verified: nil,
827
- metadata: nil,
828
- external_id: nil,
829
- ip_address: nil,
830
- user_agent: nil,
925
+ first_name: WorkOS::OMIT,
926
+ last_name: WorkOS::OMIT,
927
+ name: WorkOS::OMIT,
928
+ email_verified: WorkOS::OMIT,
929
+ metadata: WorkOS::OMIT,
930
+ external_id: WorkOS::OMIT,
931
+ ip_address: WorkOS::OMIT,
932
+ user_agent: WorkOS::OMIT,
831
933
  signals_id: nil,
832
934
  password: nil,
833
935
  request_options: {}
834
936
  )
835
937
  body = {
836
938
  "email" => email,
837
- "first_name" => first_name,
838
- "last_name" => last_name,
839
- "name" => name,
840
- "email_verified" => email_verified,
841
- "metadata" => metadata,
842
- "external_id" => external_id,
843
- "ip_address" => ip_address,
844
- "user_agent" => user_agent,
845
939
  "signals_id" => signals_id
846
940
  }.compact
941
+ body["first_name"] = first_name unless first_name.equal?(WorkOS::OMIT)
942
+ body["last_name"] = last_name unless last_name.equal?(WorkOS::OMIT)
943
+ body["name"] = name unless name.equal?(WorkOS::OMIT)
944
+ body["email_verified"] = email_verified unless email_verified.equal?(WorkOS::OMIT)
945
+ body["metadata"] = metadata unless metadata.equal?(WorkOS::OMIT)
946
+ body["external_id"] = external_id unless external_id.equal?(WorkOS::OMIT)
947
+ body["ip_address"] = ip_address unless ip_address.equal?(WorkOS::OMIT)
948
+ body["user_agent"] = user_agent unless user_agent.equal?(WorkOS::OMIT)
847
949
  if password
848
950
  case password
849
951
  when WorkOS::UserManagement::PasswordPlaintext
@@ -925,9 +1027,9 @@ module WorkOS
925
1027
  last_name: nil,
926
1028
  name: nil,
927
1029
  email_verified: nil,
928
- metadata: nil,
929
- external_id: nil,
930
- locale: nil,
1030
+ metadata: WorkOS::OMIT,
1031
+ external_id: WorkOS::OMIT,
1032
+ locale: WorkOS::OMIT,
931
1033
  password: nil,
932
1034
  request_options: {}
933
1035
  )
@@ -936,11 +1038,11 @@ module WorkOS
936
1038
  "first_name" => first_name,
937
1039
  "last_name" => last_name,
938
1040
  "name" => name,
939
- "email_verified" => email_verified,
940
- "metadata" => metadata,
941
- "external_id" => external_id,
942
- "locale" => locale
1041
+ "email_verified" => email_verified
943
1042
  }.compact
1043
+ body["metadata"] = metadata unless metadata.equal?(WorkOS::OMIT)
1044
+ body["external_id"] = external_id unless external_id.equal?(WorkOS::OMIT)
1045
+ body["locale"] = locale unless locale.equal?(WorkOS::OMIT)
944
1046
  if password
945
1047
  case password
946
1048
  when WorkOS::UserManagement::PasswordPlaintext
@@ -1493,6 +1595,23 @@ module WorkOS
1493
1595
  result
1494
1596
  end
1495
1597
 
1598
+ # Delete a redirect URI
1599
+ # @param id [String] The ID of the redirect URI to delete.
1600
+ # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
1601
+ # @return [void]
1602
+ def delete_redirect_uris(
1603
+ id:,
1604
+ request_options: {}
1605
+ )
1606
+ @client.request(
1607
+ method: :delete,
1608
+ path: "/user_management/redirect_uris/#{WorkOS::Util.encode_path(id)}",
1609
+ auth: true,
1610
+ request_options: request_options
1611
+ )
1612
+ nil
1613
+ end
1614
+
1496
1615
  # List authorized applications
1497
1616
  # @param user_id [String] The ID of the user.
1498
1617
  # @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
@@ -1654,32 +1773,10 @@ module WorkOS
1654
1773
  URI.join(base, "/sso/jwks/#{WorkOS::Util.encode_path(cid)}").to_s
1655
1774
  end
1656
1775
 
1657
- # H09 Build an AuthKit authorization URL (client-side, no HTTP call).
1658
- # Overrides the generated get_authorization_url which hits the API.
1659
- def get_authorization_url(redirect_uri:, client_id: nil, provider: nil, connection_id: nil,
1660
- organization_id: nil, domain_hint: nil, login_hint: nil,
1661
- state: nil, screen_hint: nil, code_challenge: nil,
1662
- code_challenge_method: nil, prompt: nil, **)
1663
- cid = client_id || @client.client_id
1664
- raise ArgumentError, "client_id is required (set on Client or pass explicitly)" if cid.nil? || cid.empty?
1665
- raise ArgumentError, "provider, connection_id, or organization_id required" if provider.nil? && connection_id.nil? && organization_id.nil?
1666
- params = {
1667
- "client_id" => cid,
1668
- "redirect_uri" => redirect_uri,
1669
- "response_type" => "code",
1670
- "provider" => provider,
1671
- "connection_id" => connection_id,
1672
- "organization_id" => organization_id,
1673
- "domain_hint" => domain_hint,
1674
- "login_hint" => login_hint,
1675
- "state" => state,
1676
- "screen_hint" => screen_hint,
1677
- "code_challenge" => code_challenge,
1678
- "code_challenge_method" => code_challenge_method,
1679
- "prompt" => prompt
1680
- }.compact
1681
- build_url("/user_management/authorize", params)
1682
- end
1776
+ # H09 (authkit_authorization_url) is provided by the generated
1777
+ # `get_authorization_url` url-builder method, which accepts an optional
1778
+ # per-call `client_id` override falling back to the client's configured
1779
+ # value; no hand-maintained override is needed here.
1683
1780
 
1684
1781
  # H10 — AuthKit authorization URL with auto-generated PKCE + state.
1685
1782
  # Returns [url, code_verifier, state].
@@ -1737,24 +1834,9 @@ module WorkOS
1737
1834
  # `authenticate_with_device_code` method (wraps /user_management/authenticate);
1738
1835
  # no hand-maintained override is needed here.
1739
1836
 
1740
- # Build the AuthKit logout redirect URL (client-side, no HTTP call).
1741
- # @param session_id [String] The session ID (from the `sid` claim of the access token).
1742
- # @param return_to [String, nil] URL to redirect the user to after session revocation.
1743
- # @return [String]
1744
- def get_logout_url(session_id:, return_to: nil)
1745
- params = {"session_id" => session_id}
1746
- params["return_to"] = return_to if return_to
1747
- build_url("/user_management/sessions/logout", params)
1748
- end
1749
-
1750
- private
1751
-
1752
- def build_url(path, params)
1753
- base = @client.base_url
1754
- uri = URI.join(base, path)
1755
- uri.query = URI.encode_www_form(params)
1756
- uri.to_s
1757
- end
1837
+ # The AuthKit logout redirect URL is provided by the generated
1838
+ # `get_logout_url` url-builder method; no hand-maintained override is
1839
+ # needed here.
1758
1840
  # @oagen-ignore-end
1759
1841
  end
1760
1842
  end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class VaultKekDeleted < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ object: :object,
9
+ id: :id,
10
+ event: :event,
11
+ data: :data,
12
+ created_at: :created_at,
13
+ context: :context
14
+ }.freeze
15
+
16
+ attr_accessor \
17
+ :object,
18
+ :id,
19
+ :event,
20
+ :data,
21
+ :created_at,
22
+ :context
23
+
24
+ def initialize(json)
25
+ hash = self.class.normalize(json)
26
+ @object = hash[:object]
27
+ @id = hash[:id]
28
+ @event = hash[:event]
29
+ @data = hash[:data] ? WorkOS::VaultKekDeletedData.new(hash[:data]) : nil
30
+ @created_at = hash[:created_at]
31
+ @context = hash[:context] ? WorkOS::EventContext.new(hash[:context]) : nil
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class VaultKekDeletedData < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ actor_id: :actor_id,
9
+ actor_source: :actor_source,
10
+ actor_name: :actor_name,
11
+ key_name: :key_name,
12
+ key_id: :key_id
13
+ }.freeze
14
+
15
+ attr_accessor \
16
+ :actor_id,
17
+ :actor_source,
18
+ :actor_name,
19
+ :key_name,
20
+ :key_id
21
+
22
+ def initialize(json)
23
+ hash = self.class.normalize(json)
24
+ @actor_id = hash[:actor_id]
25
+ @actor_source = hash[:actor_source]
26
+ @actor_name = hash[:actor_name]
27
+ @key_name = hash[:key_name]
28
+ @key_id = hash[:key_id]
29
+ end
30
+ end
31
+ end