workos 9.3.0 → 9.5.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 (100) hide show
  1. checksums.yaml +4 -4
  2. data/.last-synced-sha +1 -1
  3. data/.oagen-manifest.json +117 -1
  4. data/.release-please-manifest.json +1 -1
  5. data/CHANGELOG.md +139 -0
  6. data/Gemfile.lock +2 -2
  7. data/lib/workos/admin_portal/generate_link.rb +0 -3
  8. data/lib/workos/admin_portal.rb +0 -3
  9. data/lib/workos/authorization/user_role_assignment.rb +3 -0
  10. data/lib/workos/authorization/user_role_assignment_source.rb +22 -0
  11. data/lib/workos/pipes/connected_account_dto.rb +31 -0
  12. data/lib/workos/pipes/create_data_integration.rb +34 -0
  13. data/lib/workos/pipes/custom_provider_definition.rb +49 -0
  14. data/lib/workos/pipes/data_integration.rb +55 -0
  15. data/lib/workos/pipes/data_integration_credential.rb +25 -0
  16. data/lib/workos/pipes/data_integration_credentials_dto.rb +25 -0
  17. data/lib/workos/pipes/data_integration_credentials_response.rb +25 -0
  18. data/lib/workos/pipes/data_integration_credentials_response_credential.rb +34 -0
  19. data/lib/workos/pipes/data_integration_custom_provider.rb +49 -0
  20. data/lib/workos/pipes/data_integrations_upsert_api_key_request.rb +25 -0
  21. data/lib/workos/pipes/data_integrations_vend_credentials_request.rb +22 -0
  22. data/lib/workos/pipes/update_custom_provider_definition.rb +49 -0
  23. data/lib/workos/pipes/update_data_integration.rb +31 -0
  24. data/lib/workos/pipes.rb +304 -0
  25. data/lib/workos/radar/radar_standalone_assess_request.rb +5 -2
  26. data/lib/workos/radar.rb +5 -2
  27. data/lib/workos/shared/auth_method_mismatch_error.rb +22 -0
  28. data/lib/workos/types/audit_log_export_state.rb +2 -1
  29. data/lib/workos/types/connected_account_state.rb +1 -2
  30. data/lib/workos/types/create_webhook_endpoint_events.rb +8 -1
  31. data/lib/workos/types/custom_provider_definition_authenticate_via.rb +13 -0
  32. data/lib/workos/types/data_integration_credential_type.rb +13 -0
  33. data/lib/workos/types/data_integration_credentials_response_error.rb +9 -0
  34. data/lib/workos/types/data_integration_credentials_type.rb +9 -0
  35. data/lib/workos/types/data_integration_custom_provider_authenticate_via.rb +9 -0
  36. data/lib/workos/types/data_integration_state.rb +14 -0
  37. data/lib/workos/types/data_integrations_list_response_data_connected_account_state.rb +6 -1
  38. data/lib/workos/types/update_custom_provider_definition_authenticate_via.rb +9 -0
  39. data/lib/workos/types/user_role_assignment_source_type.rb +13 -0
  40. data/lib/workos/user_management/authorization_code_session_authenticate_request.rb +5 -2
  41. data/lib/workos/user_management/create_magic_code_and_return.rb +14 -2
  42. data/lib/workos/user_management/create_user.rb +9 -0
  43. data/lib/workos/user_management/magic_auth_code_session_authenticate_request.rb +5 -2
  44. data/lib/workos/user_management/magic_auth_send_magic_auth_code_and_return_response.rb +43 -0
  45. data/lib/workos/user_management/password_session_authenticate_request.rb +8 -2
  46. data/lib/workos/user_management/radar_email_challenge_code_session_authenticate_request.rb +43 -0
  47. data/lib/workos/user_management/radar_sms_challenge_code_session_authenticate_request.rb +46 -0
  48. data/lib/workos/user_management/send_radar_sms_challenge.rb +31 -0
  49. data/lib/workos/user_management/send_radar_sms_challenge_response.rb +22 -0
  50. data/lib/workos/user_management/user_create_response.rb +61 -0
  51. data/lib/workos/user_management.rb +261 -9
  52. data/lib/workos/version.rb +1 -1
  53. data/rbi/workos/admin_portal.rbi +1 -2
  54. data/rbi/workos/auth_method_mismatch_error.rbi +30 -0
  55. data/rbi/workos/authorization_code_session_authenticate_request.rbi +6 -0
  56. data/rbi/workos/connected_account_dto.rbi +48 -0
  57. data/rbi/workos/create_data_integration.rbi +54 -0
  58. data/rbi/workos/create_magic_code_and_return.rbi +24 -0
  59. data/rbi/workos/create_user.rbi +18 -0
  60. data/rbi/workos/custom_provider_definition.rbi +84 -0
  61. data/rbi/workos/data_integration.rbi +96 -0
  62. data/rbi/workos/data_integration_credential.rbi +36 -0
  63. data/rbi/workos/data_integration_credentials_dto.rbi +36 -0
  64. data/rbi/workos/data_integration_credentials_response.rbi +36 -0
  65. data/rbi/workos/data_integration_credentials_response_credential.rbi +54 -0
  66. data/rbi/workos/data_integration_custom_provider.rbi +84 -0
  67. data/rbi/workos/data_integrations_upsert_api_key_request.rbi +36 -0
  68. data/rbi/workos/data_integrations_vend_credentials_request.rbi +30 -0
  69. data/rbi/workos/generate_link.rbi +0 -6
  70. data/rbi/workos/magic_auth_code_session_authenticate_request.rbi +6 -0
  71. data/rbi/workos/magic_auth_send_magic_auth_code_and_return_response.rbi +72 -0
  72. data/rbi/workos/password_session_authenticate_request.rbi +12 -0
  73. data/rbi/workos/pipes.rbi +104 -0
  74. data/rbi/workos/radar.rbi +2 -1
  75. data/rbi/workos/radar_email_challenge_code_session_authenticate_request.rbi +72 -0
  76. data/rbi/workos/radar_sms_challenge_code_session_authenticate_request.rbi +78 -0
  77. data/rbi/workos/radar_standalone_assess_request.rbi +6 -0
  78. data/rbi/workos/send_radar_sms_challenge.rbi +48 -0
  79. data/rbi/workos/send_radar_sms_challenge_response.rbi +30 -0
  80. data/rbi/workos/update_custom_provider_definition.rbi +84 -0
  81. data/rbi/workos/update_data_integration.rbi +48 -0
  82. data/rbi/workos/user_create_response.rbi +108 -0
  83. data/rbi/workos/user_management.rbi +47 -5
  84. data/rbi/workos/user_role_assignment.rbi +6 -0
  85. data/rbi/workos/user_role_assignment_source.rbi +30 -0
  86. data/test/workos/test_admin_portal_model_round_trip.rb +33 -0
  87. data/test/workos/test_audit_logs_model_round_trip.rb +218 -0
  88. data/test/workos/test_authorization_model_round_trip.rb +456 -0
  89. data/test/workos/test_connect_model_round_trip.rb +30 -0
  90. data/test/workos/test_groups_model_round_trip.rb +33 -0
  91. data/test/workos/test_model_round_trip.rb +2 -7857
  92. data/test/workos/test_organizations_model_round_trip.rb +29 -0
  93. data/test/workos/test_pipes.rb +72 -0
  94. data/test/workos/test_pipes_model_round_trip.rb +389 -0
  95. data/test/workos/test_radar_model_round_trip.rb +85 -0
  96. data/test/workos/test_shared_model_round_trip.rb +92 -0
  97. data/test/workos/test_user_management.rb +54 -0
  98. data/test/workos/test_user_management_model_round_trip.rb +1087 -0
  99. data/test/workos/test_webhooks_model_round_trip.rb +53 -0
  100. metadata +62 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c7ff4e4cac3c0f96112977f6a735a849d7c263321cdf56b78c4b3f522cdb7c0
4
- data.tar.gz: aa56fd99fde6418f823776e3ba0f9c22dd847c637dcd1f17dc7bf9945c0d8fff
3
+ metadata.gz: d298622f18f3a7fa937e4a37bb7e65ef37553a09ff6299fa32e5899f6ad62dfc
4
+ data.tar.gz: c8ae0ea79b8d4d9713edc1c22f5f55afc47dc7f5c5374430f7ac3c1eb7c4138a
5
5
  SHA512:
6
- metadata.gz: 9550d21ed7bdde7654e69afbc358db96fb4a614734386dd3bdd322179a450c676a8159764c527737bdd60e9ffa4c89789ece1df2c1dc79b400e2f88e4ef52944
7
- data.tar.gz: ac7ed9d7a2936b0faad47eb26d9d950fadf378e2c1a467c922a15b0e64847a54b9b182410f06f0a3df31587f74e0e2629d0da9fcfc404019b572ada50744e169
6
+ metadata.gz: e341612af96eb751ee97935c6560b80f647b7032bc37145fa953bf0ed3a72b432d947b8b93a95743ee6bad7bd8bb92336de4140dd202fc23e4ebc7c046dd53b4
7
+ data.tar.gz: 8df40fc5b71007946287b91b0fedf215b2cb19312f6180c9ec577aecfdfbbfd06482228ba7519aa23eb0be065c5d55088073abcdbbcce65b2b161eb970d089ed
data/.last-synced-sha CHANGED
@@ -1 +1 @@
1
- 1a2f47b20f63f2c8f0eb56bbd2adb3b5947d693a
1
+ 23faa38318d596e581656934ed72c4a18476d742
data/.oagen-manifest.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "version": 2,
3
3
  "language": "ruby",
4
- "generatedAt": "2026-06-17T21:06:29.872Z",
5
4
  "files": [
6
5
  "lib/workos.rb",
7
6
  "lib/workos/admin_portal.rb",
@@ -89,6 +88,7 @@
89
88
  "lib/workos/authorization/update_role.rb",
90
89
  "lib/workos/authorization/user_role_assignment.rb",
91
90
  "lib/workos/authorization/user_role_assignment_resource.rb",
91
+ "lib/workos/authorization/user_role_assignment_source.rb",
92
92
  "lib/workos/client.rb",
93
93
  "lib/workos/client_api.rb",
94
94
  "lib/workos/client_api/client_api_token.rb",
@@ -251,14 +251,27 @@
251
251
  "lib/workos/organizations/update_organization.rb",
252
252
  "lib/workos/pipes.rb",
253
253
  "lib/workos/pipes/connected_account.rb",
254
+ "lib/workos/pipes/connected_account_dto.rb",
255
+ "lib/workos/pipes/create_data_integration.rb",
256
+ "lib/workos/pipes/custom_provider_definition.rb",
257
+ "lib/workos/pipes/data_integration.rb",
254
258
  "lib/workos/pipes/data_integration_access_token_response.rb",
255
259
  "lib/workos/pipes/data_integration_access_token_response_access_token.rb",
256
260
  "lib/workos/pipes/data_integration_authorize_url_response.rb",
261
+ "lib/workos/pipes/data_integration_credential.rb",
262
+ "lib/workos/pipes/data_integration_credentials_dto.rb",
263
+ "lib/workos/pipes/data_integration_credentials_response.rb",
264
+ "lib/workos/pipes/data_integration_credentials_response_credential.rb",
265
+ "lib/workos/pipes/data_integration_custom_provider.rb",
257
266
  "lib/workos/pipes/data_integrations_get_data_integration_authorize_url_request.rb",
258
267
  "lib/workos/pipes/data_integrations_get_user_token_request.rb",
259
268
  "lib/workos/pipes/data_integrations_list_response.rb",
260
269
  "lib/workos/pipes/data_integrations_list_response_data.rb",
261
270
  "lib/workos/pipes/data_integrations_list_response_data_connected_account.rb",
271
+ "lib/workos/pipes/data_integrations_upsert_api_key_request.rb",
272
+ "lib/workos/pipes/data_integrations_vend_credentials_request.rb",
273
+ "lib/workos/pipes/update_custom_provider_definition.rb",
274
+ "lib/workos/pipes/update_data_integration.rb",
262
275
  "lib/workos/pipes_provider.rb",
263
276
  "lib/workos/pipes_provider/configure_data_integration_body.rb",
264
277
  "lib/workos/pipes_provider/data_integration_configuration_list_response.rb",
@@ -271,6 +284,7 @@
271
284
  "lib/workos/radar/radar_standalone_response.rb",
272
285
  "lib/workos/radar/radar_standalone_update_radar_attempt_request.rb",
273
286
  "lib/workos/radar/radar_standalone_update_radar_list_request.rb",
287
+ "lib/workos/shared/auth_method_mismatch_error.rb",
274
288
  "lib/workos/shared/connect_application_m2m.rb",
275
289
  "lib/workos/shared/connect_application_oauth.rb",
276
290
  "lib/workos/shared/connect_application_oauth_redirect_uris.rb",
@@ -349,8 +363,14 @@
349
363
  "lib/workos/types/create_user_invite_options_locale.rb",
350
364
  "lib/workos/types/create_user_password_hash_type.rb",
351
365
  "lib/workos/types/create_webhook_endpoint_events.rb",
366
+ "lib/workos/types/custom_provider_definition_authenticate_via.rb",
352
367
  "lib/workos/types/data_integration_access_token_response_error.rb",
368
+ "lib/workos/types/data_integration_credential_type.rb",
353
369
  "lib/workos/types/data_integration_credentials_credentials_type.rb",
370
+ "lib/workos/types/data_integration_credentials_response_error.rb",
371
+ "lib/workos/types/data_integration_credentials_type.rb",
372
+ "lib/workos/types/data_integration_custom_provider_authenticate_via.rb",
373
+ "lib/workos/types/data_integration_state.rb",
354
374
  "lib/workos/types/data_integrations_list_response_data_auth_methods.rb",
355
375
  "lib/workos/types/data_integrations_list_response_data_connected_account_auth_method.rb",
356
376
  "lib/workos/types/data_integrations_list_response_data_connected_account_state.rb",
@@ -420,6 +440,7 @@
420
440
  "lib/workos/types/session_revoked_data_auth_method.rb",
421
441
  "lib/workos/types/session_revoked_data_status.rb",
422
442
  "lib/workos/types/sso_provider.rb",
443
+ "lib/workos/types/update_custom_provider_definition_authenticate_via.rb",
423
444
  "lib/workos/types/update_user_password_hash_type.rb",
424
445
  "lib/workos/types/update_webhook_endpoint_events.rb",
425
446
  "lib/workos/types/update_webhook_endpoint_status.rb",
@@ -430,6 +451,7 @@
430
451
  "lib/workos/types/user_management_organization_membership_statuses.rb",
431
452
  "lib/workos/types/user_organization_membership_base_list_data_status.rb",
432
453
  "lib/workos/types/user_organization_membership_status.rb",
454
+ "lib/workos/types/user_role_assignment_source_type.rb",
433
455
  "lib/workos/types/user_sessions_auth_method.rb",
434
456
  "lib/workos/types/user_sessions_status.rb",
435
457
  "lib/workos/types/vault_byok_key_provider.rb",
@@ -537,6 +559,7 @@
537
559
  "lib/workos/user_management/magic_auth_code_session_authenticate_request.rb",
538
560
  "lib/workos/user_management/magic_auth_created.rb",
539
561
  "lib/workos/user_management/magic_auth_created_data.rb",
562
+ "lib/workos/user_management/magic_auth_send_magic_auth_code_and_return_response.rb",
540
563
  "lib/workos/user_management/mfa_totp_session_authenticate_request.rb",
541
564
  "lib/workos/user_management/organization_selection_session_authenticate_request.rb",
542
565
  "lib/workos/user_management/password_reset.rb",
@@ -545,12 +568,16 @@
545
568
  "lib/workos/user_management/password_reset_succeeded.rb",
546
569
  "lib/workos/user_management/password_reset_succeeded_data.rb",
547
570
  "lib/workos/user_management/password_session_authenticate_request.rb",
571
+ "lib/workos/user_management/radar_email_challenge_code_session_authenticate_request.rb",
572
+ "lib/workos/user_management/radar_sms_challenge_code_session_authenticate_request.rb",
548
573
  "lib/workos/user_management/redirect_uri.rb",
549
574
  "lib/workos/user_management/refresh_token_session_authenticate_request.rb",
550
575
  "lib/workos/user_management/resend_user_invite_options.rb",
551
576
  "lib/workos/user_management/reset_password_response.rb",
552
577
  "lib/workos/user_management/revoke_session.rb",
553
578
  "lib/workos/user_management/send_email_change.rb",
579
+ "lib/workos/user_management/send_radar_sms_challenge.rb",
580
+ "lib/workos/user_management/send_radar_sms_challenge_response.rb",
554
581
  "lib/workos/user_management/send_verification_email_response.rb",
555
582
  "lib/workos/user_management/session_created.rb",
556
583
  "lib/workos/user_management/session_created_data.rb",
@@ -569,6 +596,7 @@
569
596
  "lib/workos/user_management/user_api_key_updated_data_owner.rb",
570
597
  "lib/workos/user_management/user_api_key_with_value.rb",
571
598
  "lib/workos/user_management/user_api_key_with_value_owner.rb",
599
+ "lib/workos/user_management/user_create_response.rb",
572
600
  "lib/workos/user_management/user_created.rb",
573
601
  "lib/workos/user_management/user_deleted.rb",
574
602
  "lib/workos/user_management/user_identities_get_item.rb",
@@ -665,6 +693,7 @@
665
693
  "rbi/workos/audit_log_schema_target_input.rbi",
666
694
  "rbi/workos/audit_logs.rbi",
667
695
  "rbi/workos/audit_logs_retention.rbi",
696
+ "rbi/workos/auth_method_mismatch_error.rbi",
668
697
  "rbi/workos/authenticate_response.rbi",
669
698
  "rbi/workos/authenticate_response_impersonator.rbi",
670
699
  "rbi/workos/authenticate_response_oauth_token.rbi",
@@ -744,6 +773,7 @@
744
773
  "rbi/workos/connect_application_oauth.rbi",
745
774
  "rbi/workos/connect_application_oauth_redirect_uris.rbi",
746
775
  "rbi/workos/connected_account.rbi",
776
+ "rbi/workos/connected_account_dto.rbi",
747
777
  "rbi/workos/connection.rbi",
748
778
  "rbi/workos/connection_activated.rbi",
749
779
  "rbi/workos/connection_activated_data.rbi",
@@ -768,6 +798,7 @@
768
798
  "rbi/workos/create_authorization_permission.rbi",
769
799
  "rbi/workos/create_authorization_resource.rbi",
770
800
  "rbi/workos/create_cors_origin.rbi",
801
+ "rbi/workos/create_data_integration.rbi",
771
802
  "rbi/workos/create_data_key_request.rbi",
772
803
  "rbi/workos/create_data_key_response.rbi",
773
804
  "rbi/workos/create_group.rbi",
@@ -789,17 +820,26 @@
789
820
  "rbi/workos/create_user_invite_options.rbi",
790
821
  "rbi/workos/create_user_organization_membership.rbi",
791
822
  "rbi/workos/create_webhook_endpoint.rbi",
823
+ "rbi/workos/custom_provider_definition.rbi",
824
+ "rbi/workos/data_integration.rbi",
792
825
  "rbi/workos/data_integration_access_token_response.rbi",
793
826
  "rbi/workos/data_integration_access_token_response_access_token.rbi",
794
827
  "rbi/workos/data_integration_authorize_url_response.rbi",
795
828
  "rbi/workos/data_integration_configuration_list_response.rbi",
796
829
  "rbi/workos/data_integration_configuration_response.rbi",
830
+ "rbi/workos/data_integration_credential.rbi",
797
831
  "rbi/workos/data_integration_credentials.rbi",
832
+ "rbi/workos/data_integration_credentials_dto.rbi",
833
+ "rbi/workos/data_integration_credentials_response.rbi",
834
+ "rbi/workos/data_integration_credentials_response_credential.rbi",
835
+ "rbi/workos/data_integration_custom_provider.rbi",
798
836
  "rbi/workos/data_integrations_get_data_integration_authorize_url_request.rbi",
799
837
  "rbi/workos/data_integrations_get_user_token_request.rbi",
800
838
  "rbi/workos/data_integrations_list_response.rbi",
801
839
  "rbi/workos/data_integrations_list_response_data.rbi",
802
840
  "rbi/workos/data_integrations_list_response_data_connected_account.rbi",
841
+ "rbi/workos/data_integrations_upsert_api_key_request.rbi",
842
+ "rbi/workos/data_integrations_vend_credentials_request.rbi",
803
843
  "rbi/workos/decrypt_request.rbi",
804
844
  "rbi/workos/decrypt_response.rbi",
805
845
  "rbi/workos/delete_group_role_assignments_by_criteria.rbi",
@@ -920,6 +960,7 @@
920
960
  "rbi/workos/magic_auth_code_session_authenticate_request.rbi",
921
961
  "rbi/workos/magic_auth_created.rbi",
922
962
  "rbi/workos/magic_auth_created_data.rbi",
963
+ "rbi/workos/magic_auth_send_magic_auth_code_and_return_response.rbi",
923
964
  "rbi/workos/mfa_totp_session_authenticate_request.rbi",
924
965
  "rbi/workos/multi_factor_auth.rbi",
925
966
  "rbi/workos/new_connect_application_secret.rbi",
@@ -995,7 +1036,9 @@
995
1036
  "rbi/workos/portal_link_response.rbi",
996
1037
  "rbi/workos/profile.rbi",
997
1038
  "rbi/workos/radar.rbi",
1039
+ "rbi/workos/radar_email_challenge_code_session_authenticate_request.rbi",
998
1040
  "rbi/workos/radar_list_entry_already_present_response.rbi",
1041
+ "rbi/workos/radar_sms_challenge_code_session_authenticate_request.rbi",
999
1042
  "rbi/workos/radar_standalone_assess_request.rbi",
1000
1043
  "rbi/workos/radar_standalone_delete_radar_list_entry_request.rbi",
1001
1044
  "rbi/workos/radar_standalone_response.rbi",
@@ -1020,6 +1063,8 @@
1020
1063
  "rbi/workos/role_updated.rbi",
1021
1064
  "rbi/workos/role_updated_data.rbi",
1022
1065
  "rbi/workos/send_email_change.rbi",
1066
+ "rbi/workos/send_radar_sms_challenge.rbi",
1067
+ "rbi/workos/send_radar_sms_challenge_response.rbi",
1023
1068
  "rbi/workos/send_verification_email_response.rbi",
1024
1069
  "rbi/workos/session_created.rbi",
1025
1070
  "rbi/workos/session_created_data.rbi",
@@ -1041,6 +1086,8 @@
1041
1086
  "rbi/workos/update_audit_logs_retention.rbi",
1042
1087
  "rbi/workos/update_authorization_permission.rbi",
1043
1088
  "rbi/workos/update_authorization_resource.rbi",
1089
+ "rbi/workos/update_custom_provider_definition.rbi",
1090
+ "rbi/workos/update_data_integration.rbi",
1044
1091
  "rbi/workos/update_group.rbi",
1045
1092
  "rbi/workos/update_jwt_template.rbi",
1046
1093
  "rbi/workos/update_oauth_application.rbi",
@@ -1062,6 +1109,7 @@
1062
1109
  "rbi/workos/user_authentication_factor_enroll_response.rbi",
1063
1110
  "rbi/workos/user_consent_option.rbi",
1064
1111
  "rbi/workos/user_consent_option_choice.rbi",
1112
+ "rbi/workos/user_create_response.rbi",
1065
1113
  "rbi/workos/user_created.rbi",
1066
1114
  "rbi/workos/user_deleted.rbi",
1067
1115
  "rbi/workos/user_identities_get_item.rbi",
@@ -1073,6 +1121,7 @@
1073
1121
  "rbi/workos/user_organization_membership_base_list_data.rbi",
1074
1122
  "rbi/workos/user_role_assignment.rbi",
1075
1123
  "rbi/workos/user_role_assignment_resource.rbi",
1124
+ "rbi/workos/user_role_assignment_source.rbi",
1076
1125
  "rbi/workos/user_sessions_impersonator.rbi",
1077
1126
  "rbi/workos/user_sessions_list_item.rbi",
1078
1127
  "rbi/workos/user_updated.rbi",
@@ -1113,27 +1162,38 @@
1113
1162
  "rbi/workos/widget_session_token_response.rbi",
1114
1163
  "rbi/workos/widgets.rbi",
1115
1164
  "test/workos/test_admin_portal.rb",
1165
+ "test/workos/test_admin_portal_model_round_trip.rb",
1116
1166
  "test/workos/test_api_keys.rb",
1117
1167
  "test/workos/test_audit_logs.rb",
1168
+ "test/workos/test_audit_logs_model_round_trip.rb",
1118
1169
  "test/workos/test_authorization.rb",
1170
+ "test/workos/test_authorization_model_round_trip.rb",
1119
1171
  "test/workos/test_client_api.rb",
1120
1172
  "test/workos/test_connect.rb",
1173
+ "test/workos/test_connect_model_round_trip.rb",
1121
1174
  "test/workos/test_directory_sync.rb",
1122
1175
  "test/workos/test_events.rb",
1123
1176
  "test/workos/test_feature_flags.rb",
1124
1177
  "test/workos/test_groups.rb",
1178
+ "test/workos/test_groups_model_round_trip.rb",
1125
1179
  "test/workos/test_model_round_trip.rb",
1126
1180
  "test/workos/test_multi_factor_auth.rb",
1127
1181
  "test/workos/test_organization_domains.rb",
1128
1182
  "test/workos/test_organization_membership_service.rb",
1129
1183
  "test/workos/test_organizations.rb",
1184
+ "test/workos/test_organizations_model_round_trip.rb",
1130
1185
  "test/workos/test_pipes.rb",
1186
+ "test/workos/test_pipes_model_round_trip.rb",
1131
1187
  "test/workos/test_pipes_provider.rb",
1132
1188
  "test/workos/test_radar.rb",
1189
+ "test/workos/test_radar_model_round_trip.rb",
1190
+ "test/workos/test_shared_model_round_trip.rb",
1133
1191
  "test/workos/test_sso.rb",
1134
1192
  "test/workos/test_user_management.rb",
1193
+ "test/workos/test_user_management_model_round_trip.rb",
1135
1194
  "test/workos/test_vault.rb",
1136
1195
  "test/workos/test_webhooks.rb",
1196
+ "test/workos/test_webhooks_model_round_trip.rb",
1137
1197
  "test/workos/test_widgets.rb"
1138
1198
  ],
1139
1199
  "operations": {
@@ -1948,6 +2008,62 @@
1948
2008
  "GET /audit_logs/exports/{auditLogExportId}": {
1949
2009
  "sdkMethod": "get_export",
1950
2010
  "service": "audit_logs"
2011
+ },
2012
+ "PUT /data-integrations/{slug}/api-key": {
2013
+ "sdkMethod": "update_data_integration_api_key",
2014
+ "service": "pipes"
2015
+ },
2016
+ "POST /data-integrations/{slug}/credentials": {
2017
+ "sdkMethod": "create_data_integration_credential",
2018
+ "service": "pipes"
2019
+ },
2020
+ "GET /user_management/cors_origins": {
2021
+ "sdkMethod": "list_cors_origins",
2022
+ "service": "user_management"
2023
+ },
2024
+ "GET /user_management/redirect_uris": {
2025
+ "sdkMethod": "list_redirect_uris",
2026
+ "service": "user_management"
2027
+ },
2028
+ "GET /data-integrations": {
2029
+ "sdkMethod": "list_data_integrations",
2030
+ "service": "pipes"
2031
+ },
2032
+ "POST /data-integrations": {
2033
+ "sdkMethod": "create_data_integration",
2034
+ "service": "pipes"
2035
+ },
2036
+ "GET /data-integrations/{slug}": {
2037
+ "sdkMethod": "get_data_integration",
2038
+ "service": "pipes"
2039
+ },
2040
+ "PUT /data-integrations/{slug}": {
2041
+ "sdkMethod": "update_data_integration",
2042
+ "service": "pipes"
2043
+ },
2044
+ "DELETE /data-integrations/{slug}": {
2045
+ "sdkMethod": "delete_data_integration",
2046
+ "service": "pipes"
2047
+ },
2048
+ "POST /user_management/radar_challenges": {
2049
+ "sdkMethod": "create_radar_challenge",
2050
+ "service": "user_management"
2051
+ },
2052
+ "POST /user_management/users/{user_id}/connected_accounts/{slug}": {
2053
+ "sdkMethod": "create_user_connected_account",
2054
+ "service": "pipes"
2055
+ },
2056
+ "PUT /user_management/users/{user_id}/connected_accounts/{slug}": {
2057
+ "sdkMethod": "update_user_connected_account",
2058
+ "service": "pipes"
2059
+ },
2060
+ "POST /user_management/authenticate#RadarEmailChallengeCodeSessionAuthenticateRequest": {
2061
+ "sdkMethod": "authenticate_with_radar_email_challenge",
2062
+ "service": "user_management"
2063
+ },
2064
+ "POST /user_management/authenticate#RadarSmsChallengeCodeSessionAuthenticateRequest": {
2065
+ "sdkMethod": "authenticate_with_radar_sms_challenge",
2066
+ "service": "user_management"
1951
2067
  }
1952
2068
  }
1953
2069
  }
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "9.3.0"
2
+ ".": "9.5.0"
3
3
  }
data/CHANGELOG.md CHANGED
@@ -1,5 +1,144 @@
1
1
  # Changelog
2
2
 
3
+ ## [9.5.0](https://github.com/workos/workos-ruby/compare/v9.4.0...v9.5.0) (2026-07-06)
4
+
5
+ * [#514](https://github.com/workos/workos-ruby/pull/514) fix(generated): regenerate from spec
6
+
7
+ **Features**
8
+ * **[user_management](https://workos.com/docs/reference/authkit/user)**:
9
+ * Added model `UserRoleAssignmentSource`
10
+ * Added `source` to `UserRoleAssignment`
11
+ * Added enum `UserRoleAssignmentSourceType`
12
+ * Added parameter `UserManagementAuthentication.authorize.max_age`
13
+ * Added endpoint `GET /user_management/cors_origins`
14
+ * Added endpoint `GET /user_management/redirect_uris`
15
+
16
+ **Fixes**
17
+ * Restore mistakenly removed CreateMagicAuth logic from previous release
18
+
19
+ ## [9.4.0](https://github.com/workos/workos-ruby/compare/v9.3.0...v9.4.0) (2026-07-02)
20
+
21
+ * [#508](https://github.com/workos/workos-ruby/pull/508) fix(generated): regenerate from spec
22
+
23
+ **Features**
24
+ * **[pipes](https://workos.com/docs/reference/pipes)**:
25
+ * Added model `DataIntegrationCredentialsResponse`
26
+ * Added model `DataIntegrationCredentialsResponseCredential`
27
+ * Added model `DataIntegrationsUpsertApiKeyRequest`
28
+ * Added model `DataIntegrationsVendCredentialsRequest`
29
+ * Added enum `DataIntegrationCredentialsResponseError`
30
+ * Added endpoint `PUT /data-integrations/{slug}/api-key`
31
+ * Added endpoint `POST /data-integrations/{slug}/credentials`
32
+
33
+ * [#510](https://github.com/workos/workos-ruby/pull/510) fix(generated): regenerate from spec
34
+
35
+ **⚠️ Breaking**
36
+ * **[user_management](https://workos.com/docs/reference/authkit/user)**:
37
+ * Removed model `SessionReauthenticated`
38
+ * Removed model `SessionReauthenticatedData`
39
+ * Removed model `SessionReauthenticatedDataImpersonator`
40
+ * Removed enum `SessionReauthenticatedDataAuthMethod`
41
+ * Removed enum `SessionReauthenticatedDataStatus`
42
+
43
+ **Features**
44
+ * **[webhooks](https://workos.com/docs/reference/webhooks)**:
45
+ * Added `agent.registration.created` to `CreateWebhookEndpointEvents`
46
+ * Added `agent.registration.claim.attempt.created` to `CreateWebhookEndpointEvents`
47
+ * Added `agent.registration.claim.completed` to `CreateWebhookEndpointEvents`
48
+ * Added `agent.registration.credential.issued` to `CreateWebhookEndpointEvents`
49
+ * Added `agent.registration.organization.switched` to `CreateWebhookEndpointEvents`
50
+ * Added `authentication.reauthentication_succeeded` to `CreateWebhookEndpointEvents`
51
+ * Added `agent.registration.created` to `UpdateWebhookEndpointEvents`
52
+ * Added `agent.registration.claim.attempt.created` to `UpdateWebhookEndpointEvents`
53
+ * Added `agent.registration.claim.completed` to `UpdateWebhookEndpointEvents`
54
+ * Added `agent.registration.credential.issued` to `UpdateWebhookEndpointEvents`
55
+ * Added `agent.registration.organization.switched` to `UpdateWebhookEndpointEvents`
56
+ * Added `authentication.reauthentication_succeeded` to `UpdateWebhookEndpointEvents`
57
+ * **[webhooks](https://workos.com/docs/reference/webhooks)**:
58
+ * Added `session.reauthenticated` to `CreateWebhookEndpointEvents`
59
+ * Added `session.reauthenticated` to `UpdateWebhookEndpointEvents`
60
+ * **[webhooks](https://workos.com/docs/reference/webhooks)**:
61
+ * Added `pipes.connected_account.connection_failed` to `CreateWebhookEndpointEvents`
62
+ * Added `pipes.connected_account.connection_failed` to `UpdateWebhookEndpointEvents`
63
+ * **[user_management](https://workos.com/docs/reference/authkit/user)**:
64
+ * Added model `UserRoleAssignmentSource`
65
+ * Added `source` to `UserRoleAssignment`
66
+ * Added enum `UserRoleAssignmentSourceType`
67
+ * Added parameter `UserManagementAuthentication.authorize.max_age`
68
+ * Added endpoint `GET /user_management/cors_origins`
69
+ * Added endpoint `GET /user_management/redirect_uris`
70
+ * **[audit_logs](https://workos.com/docs/reference/audit-logs)**:
71
+ * Changed the format of `AuditLogExportCreation.range_start`
72
+ * Changed the format of `AuditLogExportCreation.range_end`
73
+ * **[audit_logs](https://workos.com/docs/reference/audit-logs)**:
74
+ * Added `expired` to `AuditLogExportState`
75
+
76
+ **Fixes**
77
+ * **[admin_portal](https://workos.com/docs/reference/admin-portal)**:
78
+ * Removed `intent_options` from `GenerateLink`
79
+ * **[webhooks](https://workos.com/docs/reference/webhooks)**:
80
+ * Removed `session.reauthenticated` from `CreateWebhookEndpointEvents`
81
+ * Removed `session.reauthenticated` from `UpdateWebhookEndpointEvents`
82
+
83
+ * [#512](https://github.com/workos/workos-ruby/pull/512) feat(generated): regenerate from spec (1 change)
84
+
85
+ **Features**
86
+ * **[pipes](https://workos.com/docs/reference/pipes)**:
87
+ * Added model `DataIntegrationCredentialsDto`
88
+ * Added model `CustomProviderDefinition`
89
+ * Added model `CreateDataIntegration`
90
+ * Added model `UpdateCustomProviderDefinition`
91
+ * Added model `UpdateDataIntegration`
92
+ * Added model `DataIntegration`
93
+ * Added model `DataIntegrationList`
94
+ * Added model `DataIntegrationListListMetadata`
95
+ * Added model `DataIntegrationCredential`
96
+ * Added model `DataIntegrationCustomProvider`
97
+ * Added enum `DataIntegrationCredentialsType`
98
+ * Added enum `CustomProviderDefinitionAuthenticateVia`
99
+ * Added enum `UpdateCustomProviderDefinitionAuthenticateVia`
100
+ * Added enum `DataIntegrationState`
101
+ * Added enum `DataIntegrationCredentialType`
102
+ * Added enum `DataIntegrationCustomProviderAuthenticateVia`
103
+ * Added endpoint `GET /data-integrations`
104
+ * Added endpoint `POST /data-integrations`
105
+ * Added endpoint `GET /data-integrations/{slug}`
106
+ * Added endpoint `PUT /data-integrations/{slug}`
107
+ * Added endpoint `DELETE /data-integrations/{slug}`
108
+ * Added endpoint `POST /user_management/users/{user_id}/connected_accounts/{slug}`
109
+ * Added endpoint `PUT /user_management/users/{user_id}/connected_accounts/{slug}`
110
+
111
+ * [#513](https://github.com/workos/workos-ruby/pull/513) feat(generated): regenerate from spec (2 changes)
112
+
113
+ **Features**
114
+ * **[user_management](https://workos.com/docs/reference/authkit/user)**:
115
+ * Added model `SendRadarSmsChallenge`
116
+ * Added model `SendRadarSmsChallengeResponse`
117
+ * Added model `UrnWorkosOAuthGrantTypeRadarEmailChallengeCodeSessionAuthenticateRequest`
118
+ * Added model `UrnWorkosOAuthGrantTypeRadarSmsChallengeCodeSessionAuthenticateRequest`
119
+ * Added model `MagicAuthSendMagicAuthCodeAndReturnResponse`
120
+ * Added model `UserCreateResponse`
121
+ * Added `ip_address` to `CreateMagicCodeAndReturn`
122
+ * Added `user_agent` to `CreateMagicCodeAndReturn`
123
+ * Added `radar_auth_attempt_id` to `CreateMagicCodeAndReturn`
124
+ * Added `signals_id` to `CreateMagicCodeAndReturn`
125
+ * Added `ip_address` to `CreateUser`
126
+ * Added `user_agent` to `CreateUser`
127
+ * Added `signals_id` to `CreateUser`
128
+ * Added `signals_id` to `AuthorizationCodeSessionAuthenticateRequest`
129
+ * Added `signals_id` to `PasswordSessionAuthenticateRequest`
130
+ * Added `radar_auth_attempt_id` to `PasswordSessionAuthenticateRequest`
131
+ * Added `radar_auth_attempt_id` to `UrnWorkosOAuthGrantTypeMagicAuthCodeSessionAuthenticateRequest`
132
+ * Added endpoint `POST /user_management/radar_challenges`
133
+ * **[radar](https://workos.com/docs/reference/radar)**:
134
+ * Added `signals_id` to `RadarStandaloneAssessRequest`
135
+
136
+ **Fixes**
137
+ * **[user_management](https://workos.com/docs/reference/authkit/user)**:
138
+ * Changed request body for `UserManagementAuthentication.authenticate`
139
+ * Changed response of `UserManagementUsers.create` from `User` to `UserCreateResponse`
140
+ * Changed response of `UserManagementMagicAuth.sendMagicAuthCodeAndReturn` from `MagicAuth` to `MagicAuthSendMagicAuthCodeAndReturnResponse`
141
+
3
142
  ## [9.3.0](https://github.com/workos/workos-ruby/compare/v9.2.0...v9.3.0) (2026-06-30)
4
143
 
5
144
  * [#504](https://github.com/workos/workos-ruby/pull/504) fix(generated): regenerate from spec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- workos (9.3.0)
4
+ workos (9.5.0)
5
5
  jwt (~> 3.1)
6
6
  logger (~> 1.7)
7
7
  zeitwerk (~> 2.6)
@@ -153,7 +153,7 @@ CHECKSUMS
153
153
  unicode-emoji (4.2.0) sha256=519e69150f75652e40bf736106cfbc8f0f73aa3fb6a65afe62fefa7f80b0f80f
154
154
  webmock (3.26.2) sha256=774556f2ea6371846cca68c01769b2eac0d134492d21f6d0ab5dd643965a4c90
155
155
  webrick (1.9.2) sha256=beb4a15fc474defed24a3bda4ffd88a490d517c9e4e6118c3edce59e45864131
156
- workos (9.3.0)
156
+ workos (9.5.0)
157
157
  yard (0.9.44) sha256=eb087e9b631ccd887b049f303d489963945452d5e2a7eb49a5a74a7cf6887f28
158
158
  yard-markdown (0.7.1) sha256=06c378632dfe7ba053be9ba469eb4701aa0470e36bcf7e5546f353eb90c1bfd1
159
159
  zeitwerk (2.7.5) sha256=d8da92128c09ea6ec62c949011b00ed4a20242b255293dd66bf41545398f73dd
@@ -9,7 +9,6 @@ module WorkOS
9
9
  success_url: :success_url,
10
10
  organization: :organization,
11
11
  intent: :intent,
12
- intent_options: :intent_options,
13
12
  it_contact_emails: :it_contact_emails
14
13
  }.freeze
15
14
 
@@ -18,7 +17,6 @@ module WorkOS
18
17
  :success_url,
19
18
  :organization,
20
19
  :intent,
21
- :intent_options,
22
20
  :it_contact_emails
23
21
 
24
22
  def initialize(json)
@@ -27,7 +25,6 @@ module WorkOS
27
25
  @success_url = hash[:success_url]
28
26
  @organization = hash[:organization]
29
27
  @intent = hash[:intent]
30
- @intent_options = hash[:intent_options] ? WorkOS::IntentOptions.new(hash[:intent_options]) : nil
31
28
  @it_contact_emails = hash[:it_contact_emails] || []
32
29
  end
33
30
  end
@@ -15,7 +15,6 @@ module WorkOS
15
15
  # @param success_url [String, nil] The URL to redirect the admin to when they finish setup. If not specified, the success URL configured on the [Redirects](https://dashboard.workos.com/redirects) page will be used.
16
16
  # @param organization [String] An [Organization](https://workos.com/docs/reference/organization) identifier.
17
17
  # @param intent [WorkOS::Types::GenerateLinkIntent, nil] The intent of the Admin Portal. - `sso` - Launch Admin Portal for creating SSO connections - `dsync` - Launch Admin Portal for creating Directory Sync connections - `audit_logs` - Launch Admin Portal for viewing Audit Logs - `log_streams` - Launch Admin Portal for creating Log Streams - `domain_verification` - Launch Admin Portal for Domain Verification - `certificate_renewal` - Launch Admin Portal for renewing SAML Certificates - `bring_your_own_key` - Launch Admin Portal for configuring Bring Your Own Key
18
- # @param intent_options [WorkOS::IntentOptions, nil] Options to configure the Admin Portal based on the intent.
19
18
  # @param it_contact_emails [Array<String>, nil] The email addresses of the IT contacts to grant access to the Admin Portal for the given organization. Accepts up to 20 emails.
20
19
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
21
20
  # @return [WorkOS::PortalLinkResponse]
@@ -24,7 +23,6 @@ module WorkOS
24
23
  return_url: nil,
25
24
  success_url: nil,
26
25
  intent: nil,
27
- intent_options: nil,
28
26
  it_contact_emails: nil,
29
27
  request_options: {}
30
28
  )
@@ -33,7 +31,6 @@ module WorkOS
33
31
  "success_url" => success_url,
34
32
  "organization" => organization,
35
33
  "intent" => intent,
36
- "intent_options" => intent_options,
37
34
  "it_contact_emails" => it_contact_emails
38
35
  }.compact
39
36
  response = @client.request(
@@ -10,6 +10,7 @@ module WorkOS
10
10
  organization_membership_id: :organization_membership_id,
11
11
  role: :role,
12
12
  resource: :resource,
13
+ source: :source,
13
14
  created_at: :created_at,
14
15
  updated_at: :updated_at
15
16
  }.freeze
@@ -20,6 +21,7 @@ module WorkOS
20
21
  :organization_membership_id,
21
22
  :role,
22
23
  :resource,
24
+ :source,
23
25
  :created_at,
24
26
  :updated_at
25
27
 
@@ -30,6 +32,7 @@ module WorkOS
30
32
  @organization_membership_id = hash[:organization_membership_id]
31
33
  @role = hash[:role] ? WorkOS::SlimRole.new(hash[:role]) : nil
32
34
  @resource = hash[:resource] ? WorkOS::UserRoleAssignmentResource.new(hash[:resource]) : nil
35
+ @source = hash[:source] ? WorkOS::UserRoleAssignmentSource.new(hash[:source]) : nil
33
36
  @created_at = hash[:created_at]
34
37
  @updated_at = hash[:updated_at]
35
38
  end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class UserRoleAssignmentSource < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ type: :type,
9
+ group_role_assignment_id: :group_role_assignment_id
10
+ }.freeze
11
+
12
+ attr_accessor \
13
+ :type,
14
+ :group_role_assignment_id
15
+
16
+ def initialize(json)
17
+ hash = self.class.normalize(json)
18
+ @type = hash[:type]
19
+ @group_role_assignment_id = hash[:group_role_assignment_id]
20
+ end
21
+ end
22
+ 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 ConnectedAccountDto < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ access_token: :access_token,
9
+ refresh_token: :refresh_token,
10
+ expires_at: :expires_at,
11
+ scopes: :scopes,
12
+ state: :state
13
+ }.freeze
14
+
15
+ attr_accessor \
16
+ :access_token,
17
+ :refresh_token,
18
+ :expires_at,
19
+ :scopes,
20
+ :state
21
+
22
+ def initialize(json)
23
+ hash = self.class.normalize(json)
24
+ @access_token = hash[:access_token]
25
+ @refresh_token = hash[:refresh_token]
26
+ @expires_at = hash[:expires_at]
27
+ @scopes = hash[:scopes] || []
28
+ @state = hash[:state]
29
+ end
30
+ end
31
+ end