workos 10.5.0 → 10.7.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 (623) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/release-please.yml +3 -3
  3. data/.last-synced-sha +1 -1
  4. data/.oagen-manifest.json +415 -33
  5. data/.release-please-manifest.json +1 -1
  6. data/CHANGELOG.md +196 -0
  7. data/Gemfile.lock +2 -2
  8. data/README.md +2 -2
  9. data/lib/workos/agents/list_metadata.rb +22 -0
  10. data/lib/workos/api_keys/api_key_data_integration_vended_credential.rb +28 -0
  11. data/lib/workos/audit_logs.rb +2 -2
  12. data/lib/workos/authorization/patch_group_role_assignments.rb +22 -0
  13. data/lib/workos/authorization.rb +26 -0
  14. data/lib/workos/base_client.rb +3 -0
  15. data/lib/workos/client_api.rb +3 -3
  16. data/lib/workos/connect/connect_application.rb +3 -0
  17. data/lib/workos/connect/create_oauth_application.rb +3 -0
  18. data/lib/workos/connect/update_oauth_application.rb +5 -2
  19. data/lib/workos/connect.rb +6 -0
  20. data/lib/workos/directory_sync/directory_user_with_groups.rb +1 -1
  21. data/lib/workos/directory_sync.rb +160 -0
  22. data/lib/workos/events.rb +3 -11
  23. data/lib/workos/feature_flags/flag_created_data.rb +1 -46
  24. data/lib/workos/feature_flags/flag_deleted_data.rb +1 -1
  25. data/lib/workos/feature_flags/flag_rule.rb +49 -0
  26. data/lib/workos/feature_flags/flag_rule_updated_data.rb +1 -1
  27. data/lib/workos/feature_flags/flag_target.rb +52 -0
  28. data/lib/workos/feature_flags/flag_target_with_rule_id.rb +46 -0
  29. data/lib/workos/feature_flags/flag_target_with_value_type.rb +49 -0
  30. data/lib/workos/feature_flags/flag_updated_context_previous_attribute.rb +1 -12
  31. data/lib/workos/feature_flags/flag_updated_context_previous_attribute_data.rb +1 -28
  32. data/lib/workos/feature_flags/flag_updated_data.rb +1 -1
  33. data/lib/workos/groups/patch_group_memberships.rb +22 -0
  34. data/lib/workos/groups.rb +28 -0
  35. data/lib/workos/inflections.rb +30 -0
  36. data/lib/workos/organizations/it_contact_list_list_metadata.rb +22 -0
  37. data/lib/workos/organizations/organization_authentication_methods_required_oauth_error_body.rb +22 -0
  38. data/lib/workos/organizations/organization_connected_account_import_error_body.rb +22 -0
  39. data/lib/workos/organizations/organization_membership_not_found_oauth_error_body.rb +22 -0
  40. data/lib/workos/organizations/organization_not_found_oauth_error_body.rb +22 -0
  41. data/lib/workos/organizations/organization_selection_required_error_body.rb +22 -0
  42. data/lib/workos/organizations/organization_selection_required_error_body_with_organization.rb +7 -0
  43. data/lib/workos/organizations/organization_selection_required_error_body_with_organizations.rb +25 -0
  44. data/lib/workos/pipes/connected_account.rb +5 -2
  45. data/lib/workos/pipes/connected_account_input.rb +3 -0
  46. data/lib/workos/pipes/{connected_account_write_response_warning.rb → connected_account_warning.rb} +1 -1
  47. data/lib/workos/pipes/create_connected_account.rb +6 -0
  48. data/lib/workos/pipes/create_organization_connected_account.rb +6 -0
  49. data/lib/workos/pipes/data_integration_authorize_url_response.rb +9 -2
  50. data/lib/workos/pipes/data_integration_finish_connection_response.rb +18 -0
  51. data/lib/workos/pipes/data_integration_vended_credential.rb +5 -5
  52. data/lib/workos/pipes/data_integrations_finish_connection_request.rb +25 -0
  53. data/lib/workos/pipes/data_integrations_get_data_integration_authorize_url_request.rb +14 -2
  54. data/lib/workos/pipes/data_integrations_list_response_data_connected_account.rb +4 -1
  55. data/lib/workos/pipes/data_integrations_list_response_data_connected_account_warning.rb +7 -0
  56. data/lib/workos/pipes/data_integrations_upsert_api_key_request.rb +8 -2
  57. data/lib/workos/pipes/data_integrations_upsert_client_credentials_request.rb +8 -2
  58. data/lib/workos/pipes/organization_connected_account.rb +3 -0
  59. data/lib/workos/pipes.rb +80 -27
  60. data/lib/workos/pipes_provider.rb +12 -0
  61. data/lib/workos/session.rb +12 -0
  62. data/lib/workos/shared/access_denied_oauth_error_body.rb +22 -0
  63. data/lib/workos/shared/account_selection_required_error_body.rb +7 -0
  64. data/lib/workos/shared/agent_registration_claim_completed_data.rb +3 -0
  65. data/lib/workos/shared/already_claimed_error_body.rb +22 -0
  66. data/lib/workos/shared/application_consent_required_error_body.rb +22 -0
  67. data/lib/workos/shared/auth_method_mismatch_error_body.rb +7 -0
  68. data/lib/workos/shared/authorization_pending_oauth_error_body.rb +22 -0
  69. data/lib/workos/shared/authorization_url_not_found_error_body.rb +22 -0
  70. data/lib/workos/shared/authorization_url_request_error_body.rb +22 -0
  71. data/lib/workos/shared/client_credentials_data_integration_vended_credential.rb +40 -0
  72. data/lib/workos/shared/code_challenge_not_found_error_body.rb +22 -0
  73. data/lib/workos/shared/connect_application_oauth.rb +3 -0
  74. data/lib/workos/shared/connected_account_limit_reached_error_body.rb +22 -0
  75. data/lib/workos/shared/daily_quota_exceeded_error_body.rb +22 -0
  76. data/lib/workos/shared/data_integration_access_token_response_with_access_token.rb +22 -0
  77. data/lib/workos/shared/data_integration_access_token_response_with_access_token_access_token.rb +7 -0
  78. data/lib/workos/shared/data_integration_access_token_response_with_error.rb +22 -0
  79. data/lib/workos/shared/data_integration_credentials_response_with_credential.rb +22 -0
  80. data/lib/workos/shared/data_integration_credentials_response_with_error.rb +22 -0
  81. data/lib/workos/shared/entity_not_found_error_body.rb +22 -0
  82. data/lib/workos/shared/error_body.rb +7 -0
  83. data/lib/workos/shared/error_body_with_code.rb +22 -0
  84. data/lib/workos/shared/error_body_with_code_errors.rb +25 -0
  85. data/lib/workos/shared/error_body_with_code_field_error.rb +22 -0
  86. data/lib/workos/shared/error_body_with_code_field_errors.rb +22 -0
  87. data/lib/workos/shared/error_body_with_code_instance_path_error.rb +18 -0
  88. data/lib/workos/shared/error_body_with_code_instance_path_errors.rb +25 -0
  89. data/lib/workos/shared/error_body_with_code_status_code.rb +25 -0
  90. data/lib/workos/shared/error_body_with_constraints_property_error.rb +22 -0
  91. data/lib/workos/shared/error_body_with_constraints_property_errors.rb +22 -0
  92. data/lib/workos/shared/error_body_with_error.rb +22 -0
  93. data/lib/workos/shared/error_body_with_error_message_list.rb +22 -0
  94. data/lib/workos/shared/error_body_with_message_or_message_list.rb +18 -0
  95. data/lib/workos/shared/expired_token_oauth_error_body.rb +22 -0
  96. data/lib/workos/shared/external_auth_session_already_completed_error_body.rb +22 -0
  97. data/lib/workos/shared/external_id_already_used_error_body.rb +22 -0
  98. data/lib/workos/shared/extra_attributes_required_oauth_error_body.rb +22 -0
  99. data/lib/workos/shared/feature_flags_flag_created.rb +34 -0
  100. data/lib/workos/shared/feature_flags_flag_created_context.rb +22 -0
  101. data/lib/workos/shared/feature_flags_flag_created_context_actor.rb +25 -0
  102. data/lib/workos/shared/feature_flags_flag_created_data.rb +52 -0
  103. data/lib/workos/shared/feature_flags_flag_created_data_owner.rb +7 -0
  104. data/lib/workos/shared/feature_flags_flag_deleted.rb +34 -0
  105. data/lib/workos/shared/feature_flags_flag_deleted_context.rb +22 -0
  106. data/lib/workos/shared/feature_flags_flag_deleted_context_actor.rb +25 -0
  107. data/lib/workos/shared/feature_flags_flag_deleted_data.rb +7 -0
  108. data/lib/workos/shared/feature_flags_flag_deleted_data_owner.rb +7 -0
  109. data/lib/workos/shared/feature_flags_flag_rule_created.rb +34 -0
  110. data/lib/workos/shared/feature_flags_flag_rule_created_context.rb +22 -0
  111. data/lib/workos/shared/feature_flags_flag_rule_created_context_actor.rb +25 -0
  112. data/lib/workos/shared/feature_flags_flag_rule_deleted.rb +34 -0
  113. data/lib/workos/shared/feature_flags_flag_rule_deleted_context.rb +22 -0
  114. data/lib/workos/shared/feature_flags_flag_rule_deleted_context_actor.rb +25 -0
  115. data/lib/workos/shared/feature_flags_flag_rule_updated.rb +34 -0
  116. data/lib/workos/shared/feature_flags_flag_rule_updated_context.rb +25 -0
  117. data/lib/workos/shared/feature_flags_flag_rule_updated_context_actor.rb +25 -0
  118. data/lib/workos/shared/feature_flags_flag_rule_updated_context_previous_attribute.rb +18 -0
  119. data/lib/workos/shared/feature_flags_flag_rule_updated_context_previous_attribute_data.rb +18 -0
  120. data/lib/workos/shared/feature_flags_flag_target_created.rb +34 -0
  121. data/lib/workos/shared/feature_flags_flag_target_created_context.rb +22 -0
  122. data/lib/workos/shared/feature_flags_flag_target_created_context_actor.rb +25 -0
  123. data/lib/workos/shared/feature_flags_flag_target_deleted.rb +34 -0
  124. data/lib/workos/shared/feature_flags_flag_target_deleted_context.rb +22 -0
  125. data/lib/workos/shared/feature_flags_flag_target_deleted_context_actor.rb +25 -0
  126. data/lib/workos/shared/feature_flags_flag_updated.rb +34 -0
  127. data/lib/workos/shared/feature_flags_flag_updated_context.rb +25 -0
  128. data/lib/workos/shared/feature_flags_flag_updated_context_actor.rb +25 -0
  129. data/lib/workos/shared/feature_flags_flag_updated_context_previous_attribute.rb +18 -0
  130. data/lib/workos/shared/feature_flags_flag_updated_context_previous_attribute_data.rb +34 -0
  131. data/lib/workos/shared/feature_flags_flag_updated_context_previous_attribute_data_owner.rb +7 -0
  132. data/lib/workos/shared/feature_flags_flag_updated_data.rb +7 -0
  133. data/lib/workos/shared/feature_flags_flag_updated_data_owner.rb +7 -0
  134. data/lib/workos/shared/idp_metadata_fetch_failed_error_body.rb +22 -0
  135. data/lib/workos/shared/invalid_client_oauth_error_body.rb +22 -0
  136. data/lib/workos/shared/invalid_connection_oauth_error_body.rb +22 -0
  137. data/lib/workos/shared/invalid_credentials_error_body.rb +22 -0
  138. data/lib/workos/shared/invalid_email_error_body.rb +22 -0
  139. data/lib/workos/shared/invalid_grant_oauth_error_body.rb +22 -0
  140. data/lib/workos/shared/invalid_idp_sso_url_error_body.rb +22 -0
  141. data/lib/workos/shared/invalid_link_authorization_code_oauth_error_body.rb +22 -0
  142. data/lib/workos/shared/invalid_locale_error_body.rb +22 -0
  143. data/lib/workos/shared/invalid_metadata_error_body.rb +22 -0
  144. data/lib/workos/shared/invalid_one_time_code_error_body.rb +22 -0
  145. data/lib/workos/shared/invalid_organization_id_error_body.rb +22 -0
  146. data/lib/workos/shared/invalid_password_hash_error_body.rb +22 -0
  147. data/lib/workos/shared/invalid_pending_authentication_token_error_body.rb +22 -0
  148. data/lib/workos/shared/invalid_profile_oauth_error_body.rb +22 -0
  149. data/lib/workos/shared/invalid_refresh_token_error_body.rb +22 -0
  150. data/lib/workos/shared/invalid_request_oauth_error_body.rb +22 -0
  151. data/lib/workos/shared/invalid_request_parameters_error_body.rb +22 -0
  152. data/lib/workos/shared/invalid_request_parameters_error_body_with_errors.rb +25 -0
  153. data/lib/workos/shared/invalid_role_error_body.rb +22 -0
  154. data/lib/workos/shared/invalid_url_error_body.rb +22 -0
  155. data/lib/workos/shared/mfa_challenge_error_body.rb +22 -0
  156. data/lib/workos/shared/mfa_enrollment_error_body.rb +22 -0
  157. data/lib/workos/shared/mfa_enrollment_oauth_error_body.rb +22 -0
  158. data/lib/workos/shared/multiple_roles_not_enabled_error_body.rb +22 -0
  159. data/lib/workos/shared/must_use_sso_for_selected_organization_message_error_body.rb +18 -0
  160. data/lib/workos/shared/oauth_data_integration_vended_credential.rb +40 -0
  161. data/lib/workos/shared/oauth_error_body.rb +22 -0
  162. data/lib/workos/shared/one_time_code_expired_error_body.rb +22 -0
  163. data/lib/workos/shared/one_time_code_previously_used_error_body.rb +22 -0
  164. data/lib/workos/shared/one_time_code_too_many_attempts_error_body.rb +22 -0
  165. data/lib/workos/shared/passkey_progressive_enrollment_error_body.rb +22 -0
  166. data/lib/workos/shared/phone_number_required_error_body.rb +22 -0
  167. data/lib/workos/shared/pkce_not_supported_oauth_error_body.rb +22 -0
  168. data/lib/workos/shared/policy_denied_error_body.rb +25 -0
  169. data/lib/workos/shared/radar_challenge_error_body.rb +22 -0
  170. data/lib/workos/shared/radar_sign_up_challenge_error_body.rb +22 -0
  171. data/lib/workos/shared/radar_sms_sign_in_challenge_error_body.rb +22 -0
  172. data/lib/workos/shared/rate_limit_exceeded_error_body_with_retry_after.rb +25 -0
  173. data/lib/workos/shared/sign_up_not_allowed_oauth_error_body.rb +22 -0
  174. data/lib/workos/shared/slow_down_oauth_error_body.rb +22 -0
  175. data/lib/workos/shared/sms_challenge_quota_reached_error_body.rb +22 -0
  176. data/lib/workos/shared/sms_challenge_rate_limited_error_body.rb +22 -0
  177. data/lib/workos/shared/sso_required_oauth_error_body_with_connection_ids_list_email.rb +31 -0
  178. data/lib/workos/shared/sub_resource_scoped_role_not_allowed_error_body_with_role_slug.rb +25 -0
  179. data/lib/workos/shared/token_too_big_oauth_error_body.rb +22 -0
  180. data/lib/workos/shared/too_many_failed_verification_attempts_error_body_with_retry_after.rb +25 -0
  181. data/lib/workos/shared/too_many_requests_oauth_error_body.rb +22 -0
  182. data/lib/workos/shared/unauthorized_client_oauth_error_body.rb +22 -0
  183. data/lib/workos/shared/unauthorized_error_body.rb +18 -0
  184. data/lib/workos/shared/update_audit_logs_retention_with_retention_period.rb +18 -0
  185. data/lib/workos/shared/update_audit_logs_retention_with_retention_period_in_days.rb +26 -0
  186. data/lib/workos/shared/update_user_organization_membership_with_role_slug.rb +18 -0
  187. data/lib/workos/shared/update_user_organization_membership_with_role_slugs.rb +18 -0
  188. data/lib/workos/shared/verification_id_required_error_body.rb +22 -0
  189. data/lib/workos/sso/connection_could_not_be_verified_error_body.rb +22 -0
  190. data/lib/workos/sso/connection_creation_conflict_error_body.rb +22 -0
  191. data/lib/workos/sso/connection_creation_not_found_error_body.rb +22 -0
  192. data/lib/workos/sso/connection_finish_error_body.rb +22 -0
  193. data/lib/workos/sso/connection_type_not_updatable_error_body.rb +22 -0
  194. data/lib/workos/sso.rb +6 -2
  195. data/lib/workos/types/authorization_url_not_found_error_body_code.rb +14 -0
  196. data/lib/workos/types/authorization_url_request_error_body_code.rb +14 -0
  197. data/lib/workos/types/connection_creation_conflict_error_body_code.rb +13 -0
  198. data/lib/workos/types/connection_creation_not_found_error_body_code.rb +13 -0
  199. data/lib/workos/types/connection_finish_error_body_code.rb +29 -0
  200. data/lib/workos/types/connections_state.rb +14 -0
  201. data/lib/workos/types/create_data_integration_ownership.rb +5 -1
  202. data/lib/workos/types/create_magic_code_and_return_locale.rb +101 -0
  203. data/lib/workos/types/{connected_account_write_response_auth_method.rb → create_password_reset_token_locale.rb} +1 -1
  204. data/lib/workos/types/create_user_invite_options_locale.rb +1 -93
  205. data/lib/workos/types/create_webhook_endpoint_events.rb +9 -1
  206. data/lib/workos/types/data_integration_access_token_response_with_error_error.rb +9 -0
  207. data/lib/workos/types/data_integration_credentials_response_with_error_error.rb +9 -0
  208. data/lib/workos/types/data_integration_ownership.rb +1 -1
  209. data/lib/workos/types/{connected_account_write_response_connection_role.rb → data_integration_vended_credential_auth_method.rb} +1 -1
  210. data/lib/workos/types/data_integrations_create_api_key_connection_request_connection_owner.rb +1 -1
  211. data/lib/workos/types/data_integrations_create_client_credentials_connection_request_connection_owner.rb +1 -1
  212. data/lib/workos/types/data_integrations_get_data_integration_authorize_url_request_connection_intent.rb +13 -0
  213. data/lib/workos/types/data_integrations_get_data_integration_authorize_url_request_connection_owner.rb +1 -1
  214. data/lib/workos/types/data_integrations_get_user_token_request_connection_owner.rb +1 -1
  215. data/lib/workos/types/data_integrations_list_response_data_connection_owner.rb +1 -1
  216. data/lib/workos/types/data_integrations_upsert_api_key_request_connection_owner.rb +1 -1
  217. data/lib/workos/types/data_integrations_upsert_client_credentials_request_connection_owner.rb +1 -1
  218. data/lib/workos/types/data_integrations_vend_credentials_request_connection_owner.rb +1 -1
  219. data/lib/workos/types/error_body_code.rb +182 -0
  220. data/lib/workos/types/feature_flags_flag_created_context_actor_source.rb +9 -0
  221. data/lib/workos/types/feature_flags_flag_deleted_context_actor_source.rb +9 -0
  222. data/lib/workos/types/feature_flags_flag_rule_created_context_actor_source.rb +9 -0
  223. data/lib/workos/types/feature_flags_flag_rule_deleted_context_actor_source.rb +9 -0
  224. data/lib/workos/types/feature_flags_flag_rule_updated_context_actor_source.rb +9 -0
  225. data/lib/workos/types/feature_flags_flag_target_created_context_actor_source.rb +9 -0
  226. data/lib/workos/types/feature_flags_flag_target_deleted_context_actor_source.rb +9 -0
  227. data/lib/workos/types/feature_flags_flag_updated_context_actor_source.rb +9 -0
  228. data/lib/workos/types/organization_connected_account_import_error_body_code.rb +14 -0
  229. data/lib/workos/types/pipes_ownership.rb +1 -1
  230. data/lib/workos/types/{connected_account_write_response_state.rb → pipes_provider_ownership.rb} +1 -1
  231. data/lib/workos/types/resend_user_invite_options_locale.rb +1 -1
  232. data/lib/workos/types/resource_export_completed_data_resource_type.rb +3 -1
  233. data/lib/workos/types/send_email_change_locale.rb +9 -0
  234. data/lib/workos/types/send_verification_email_locale.rb +9 -0
  235. data/lib/workos/types/update_audit_logs_retention_with_retention_period_retention_period.rb +9 -0
  236. data/lib/workos/types/user_connected_account_import_error_body_code.rb +15 -0
  237. data/lib/workos/types/widget_session_token_scopes.rb +3 -1
  238. data/lib/workos/user_management/action_denied_error_body.rb +22 -0
  239. data/lib/workos/user_management/authentication_email_verification_failed_data_error.rb +5 -2
  240. data/lib/workos/user_management/authentication_method_not_allowed_error_body.rb +22 -0
  241. data/lib/workos/user_management/authentication_method_not_allowed_oauth_error_body.rb +22 -0
  242. data/lib/workos/user_management/authentication_radar_risk_detected_data.rb +5 -2
  243. data/lib/workos/user_management/create_magic_code_and_return.rb +5 -2
  244. data/lib/workos/user_management/create_password_reset_token.rb +16 -1
  245. data/lib/workos/user_management/email_already_in_use_error_body.rb +22 -0
  246. data/lib/workos/user_management/email_already_verified_error_body.rb +22 -0
  247. data/lib/workos/user_management/email_change_not_allowed_error_body.rb +22 -0
  248. data/lib/workos/user_management/email_completion_required_error_body_with_email_completion_token.rb +25 -0
  249. data/lib/workos/user_management/email_domain_not_deliverable_error_body.rb +22 -0
  250. data/lib/workos/user_management/email_not_available_error_body.rb +22 -0
  251. data/lib/workos/user_management/email_password_auth_disabled_error_body.rb +22 -0
  252. data/lib/workos/user_management/email_verification_required_error_body.rb +22 -0
  253. data/lib/workos/user_management/invitation_cannot_be_used_for_email_oauth_error_body.rb +22 -0
  254. data/lib/workos/user_management/invitation_invalid_oauth_error_body.rb +22 -0
  255. data/lib/workos/user_management/password_and_password_hash_provided_error_body.rb +22 -0
  256. data/lib/workos/user_management/password_and_password_hash_type_provided_error_body.rb +22 -0
  257. data/lib/workos/user_management/password_salt_position_requires_password_hash_error_body.rb +22 -0
  258. data/lib/workos/user_management/password_strength_error_error_body_with_errors.rb +25 -0
  259. data/lib/workos/user_management/send_email_change.rb +6 -2
  260. data/lib/workos/user_management/send_verification_email.rb +18 -0
  261. data/lib/workos/user_management/user_connected_account_import_error_body.rb +22 -0
  262. data/lib/workos/user_management/user_consent_options_not_supported_error_body.rb +22 -0
  263. data/lib/workos/user_management/user_creation_error_error_body_with_errors.rb +25 -0
  264. data/lib/workos/user_management/user_mismatch_error_body.rb +22 -0
  265. data/lib/workos/user_management/waitlist_list_response.rb +25 -0
  266. data/lib/workos/user_management/waitlist_list_response_list_metadata.rb +7 -0
  267. data/lib/workos/user_management.rb +25 -10
  268. data/lib/workos/version.rb +1 -1
  269. data/rbi/workos/access_denied_oauth_error_body.rbi +30 -0
  270. data/rbi/workos/account_selection_required_error_body.rbi +9 -0
  271. data/rbi/workos/{connected_account_write_response_warning.rbi → action_denied_error_body.rbi} +1 -1
  272. data/rbi/workos/admin_portal.rbi +2 -2
  273. data/rbi/workos/agent_blueprint_invocable_by.rbi +1 -22
  274. data/rbi/workos/agent_blueprint_updated_data_invocable_by.rbi +1 -22
  275. data/rbi/workos/agent_blueprint_updated_data_session_setting.rbi +1 -28
  276. data/rbi/workos/agent_blueprints_create_request_session_setting.rbi +1 -28
  277. data/rbi/workos/agent_blueprints_update_request_invocable_by.rbi +1 -22
  278. data/rbi/workos/agent_registration_claim_completed_data.rbi +6 -0
  279. data/rbi/workos/agent_registration_expired_data.rbi +1 -16
  280. data/rbi/workos/agent_registration_refreshed_data.rbi +1 -16
  281. data/rbi/workos/agent_registration_revoked_data.rbi +1 -16
  282. data/rbi/workos/agents.rbi +20 -20
  283. data/rbi/workos/already_claimed_error_body.rbi +30 -0
  284. data/rbi/workos/api_key_data_integration_vended_credential.rbi +42 -0
  285. data/rbi/workos/api_key_owner.rbi +1 -22
  286. data/rbi/workos/api_key_revoked_data.rbi +1 -70
  287. data/rbi/workos/api_key_revoked_data_owner.rbi +1 -22
  288. data/rbi/workos/api_key_updated_data_owner.rbi +1 -22
  289. data/rbi/workos/api_keys.rbi +5 -5
  290. data/rbi/workos/application_consent_required_error_body.rbi +30 -0
  291. data/rbi/workos/audit_log_event_target.rbi +1 -34
  292. data/rbi/workos/audit_log_schema_actor_input.rbi +1 -16
  293. data/rbi/workos/audit_log_schema_target_input.rbi +1 -22
  294. data/rbi/workos/audit_logs.rbi +10 -10
  295. data/rbi/workos/auth_method_mismatch_error_body.rbi +9 -0
  296. data/rbi/workos/authentication_email_verification_failed_data_error.rbi +6 -0
  297. data/rbi/workos/authentication_factor_sms.rbi +1 -16
  298. data/rbi/workos/authentication_magic_auth_failed_data_error.rbi +1 -22
  299. data/rbi/workos/authentication_method_not_allowed_error_body.rbi +30 -0
  300. data/rbi/workos/authentication_method_not_allowed_oauth_error_body.rbi +30 -0
  301. data/rbi/workos/authentication_mfa_failed_data_error.rbi +1 -22
  302. data/rbi/workos/authentication_oauth_failed_data_error.rbi +1 -22
  303. data/rbi/workos/authentication_passkey_failed_data_error.rbi +1 -22
  304. data/rbi/workos/authentication_password_failed_data_error.rbi +1 -22
  305. data/rbi/workos/authentication_radar_risk_detected_data.rbi +6 -0
  306. data/rbi/workos/authentication_sso_failed_data_error.rbi +1 -22
  307. data/rbi/workos/authentication_sso_started_data_sso.rbi +1 -28
  308. data/rbi/workos/authentication_sso_succeeded_data_sso.rbi +1 -28
  309. data/rbi/workos/authentication_sso_timed_out_data_error.rbi +1 -22
  310. data/rbi/workos/authentication_sso_timed_out_data_sso.rbi +1 -28
  311. data/rbi/workos/authorization.rbi +57 -45
  312. data/rbi/workos/authorization_pending_oauth_error_body.rbi +30 -0
  313. data/rbi/workos/authorization_url_not_found_error_body.rbi +30 -0
  314. data/rbi/workos/authorization_url_request_error_body.rbi +30 -0
  315. data/rbi/workos/claim_view_response_organization.rbi +1 -22
  316. data/rbi/workos/client_api.rbi +1 -1
  317. data/rbi/workos/client_credentials_data_integration_vended_credential.rbi +66 -0
  318. data/rbi/workos/code_challenge_not_found_error_body.rbi +30 -0
  319. data/rbi/workos/confirm_email_change.rbi +1 -16
  320. data/rbi/workos/connect.rbi +12 -10
  321. data/rbi/workos/connect_application.rbi +42 -0
  322. data/rbi/workos/connect_application_oauth.rbi +6 -0
  323. data/rbi/workos/connect_application_redirect_uri.rbi +30 -0
  324. data/rbi/workos/connected_account.rbi +6 -0
  325. data/rbi/workos/connected_account_input.rbi +6 -0
  326. data/rbi/workos/connected_account_limit_reached_error_body.rbi +30 -0
  327. data/rbi/workos/connected_account_warning.rbi +30 -0
  328. data/rbi/workos/connection_could_not_be_verified_error_body.rbi +30 -0
  329. data/rbi/workos/connection_creation_conflict_error_body.rbi +30 -0
  330. data/rbi/workos/connection_creation_not_found_error_body.rbi +30 -0
  331. data/rbi/workos/connection_deactivated_data_domain.rbi +1 -28
  332. data/rbi/workos/connection_domain.rbi +1 -28
  333. data/rbi/workos/connection_finish_error_body.rbi +30 -0
  334. data/rbi/workos/connection_saml_certificate_renewed_data_connection.rbi +1 -22
  335. data/rbi/workos/connection_type_not_updatable_error_body.rbi +30 -0
  336. data/rbi/workos/create_connected_account.rbi +12 -0
  337. data/rbi/workos/create_group_role_assignment.rbi +1 -34
  338. data/rbi/workos/create_magic_code_and_return.rbi +6 -0
  339. data/rbi/workos/create_oauth_application.rbi +6 -0
  340. data/rbi/workos/create_organization_connected_account.rbi +12 -0
  341. data/rbi/workos/create_password_reset_token.rbi +6 -0
  342. data/rbi/workos/create_role.rbi +1 -34
  343. data/rbi/workos/daily_quota_exceeded_error_body.rbi +30 -0
  344. data/rbi/workos/data_integration_access_token_response_with_access_token.rbi +30 -0
  345. data/rbi/workos/data_integration_access_token_response_with_access_token_access_token.rbi +9 -0
  346. data/rbi/workos/data_integration_access_token_response_with_error.rbi +30 -0
  347. data/rbi/workos/data_integration_authorize_url_response.rbi +12 -0
  348. data/rbi/workos/data_integration_credentials_response_with_credential.rbi +30 -0
  349. data/rbi/workos/data_integration_credentials_response_with_error.rbi +30 -0
  350. data/rbi/workos/data_integration_finish_connection_response.rbi +24 -0
  351. data/rbi/workos/data_integration_vended_credential.rbi +6 -6
  352. data/rbi/workos/data_integrations_finish_connection_request.rbi +36 -0
  353. data/rbi/workos/data_integrations_get_data_integration_authorize_url_request.rbi +24 -0
  354. data/rbi/workos/data_integrations_list_response_data_connected_account.rbi +6 -0
  355. data/rbi/workos/data_integrations_list_response_data_connected_account_warning.rbi +9 -0
  356. data/rbi/workos/data_integrations_upsert_api_key_request.rbi +12 -0
  357. data/rbi/workos/data_integrations_upsert_client_credentials_request.rbi +12 -0
  358. data/rbi/workos/delete_group_role_assignments_by_criteria.rbi +1 -34
  359. data/rbi/workos/directory_sync.rbi +54 -8
  360. data/rbi/workos/directory_user_with_groups_email.rbi +1 -28
  361. data/rbi/workos/dsync_group_user_removed_data.rbi +1 -28
  362. data/rbi/workos/dsync_token_revoked_data.rbi +1 -46
  363. data/rbi/workos/dsync_user_updated_data_email.rbi +1 -28
  364. data/rbi/workos/email_already_in_use_error_body.rbi +30 -0
  365. data/rbi/workos/email_already_verified_error_body.rbi +30 -0
  366. data/rbi/workos/email_change_not_allowed_error_body.rbi +30 -0
  367. data/rbi/workos/email_completion_required_error_body_with_email_completion_token.rbi +36 -0
  368. data/rbi/workos/email_domain_not_deliverable_error_body.rbi +30 -0
  369. data/rbi/workos/email_not_available_error_body.rbi +30 -0
  370. data/rbi/workos/email_password_auth_disabled_error_body.rbi +30 -0
  371. data/rbi/workos/email_verification_required_error_body.rbi +30 -0
  372. data/rbi/workos/entity_not_found_error_body.rbi +30 -0
  373. data/rbi/workos/error_body.rbi +9 -0
  374. data/rbi/workos/error_body_with_code.rbi +30 -0
  375. data/rbi/workos/error_body_with_code_errors.rbi +36 -0
  376. data/rbi/workos/error_body_with_code_field_error.rbi +30 -0
  377. data/rbi/workos/error_body_with_code_field_errors.rbi +30 -0
  378. data/rbi/workos/error_body_with_code_instance_path_error.rbi +24 -0
  379. data/rbi/workos/error_body_with_code_instance_path_errors.rbi +36 -0
  380. data/rbi/workos/error_body_with_code_status_code.rbi +36 -0
  381. data/rbi/workos/error_body_with_constraints_property_error.rbi +30 -0
  382. data/rbi/workos/error_body_with_constraints_property_errors.rbi +30 -0
  383. data/rbi/workos/error_body_with_error.rbi +30 -0
  384. data/rbi/workos/error_body_with_error_message_list.rbi +30 -0
  385. data/rbi/workos/error_body_with_message_or_message_list.rbi +24 -0
  386. data/rbi/workos/events.rbi +1 -3
  387. data/rbi/workos/expired_token_oauth_error_body.rbi +30 -0
  388. data/rbi/workos/external_auth_session_already_completed_error_body.rbi +30 -0
  389. data/rbi/workos/external_id_already_used_error_body.rbi +30 -0
  390. data/rbi/workos/extra_attributes_required_oauth_error_body.rbi +30 -0
  391. data/rbi/workos/feature_flags.rbi +8 -8
  392. data/rbi/workos/feature_flags_flag_created.rbi +54 -0
  393. data/rbi/workos/feature_flags_flag_created_context.rbi +30 -0
  394. data/rbi/workos/feature_flags_flag_created_context_actor.rbi +36 -0
  395. data/rbi/workos/feature_flags_flag_created_data.rbi +90 -0
  396. data/rbi/workos/feature_flags_flag_created_data_owner.rbi +9 -0
  397. data/rbi/workos/feature_flags_flag_deleted.rbi +54 -0
  398. data/rbi/workos/feature_flags_flag_deleted_context.rbi +30 -0
  399. data/rbi/workos/feature_flags_flag_deleted_context_actor.rbi +36 -0
  400. data/rbi/workos/feature_flags_flag_deleted_data.rbi +9 -0
  401. data/rbi/workos/feature_flags_flag_deleted_data_owner.rbi +9 -0
  402. data/rbi/workos/feature_flags_flag_rule_created.rbi +54 -0
  403. data/rbi/workos/feature_flags_flag_rule_created_context.rbi +30 -0
  404. data/rbi/workos/feature_flags_flag_rule_created_context_actor.rbi +36 -0
  405. data/rbi/workos/feature_flags_flag_rule_deleted.rbi +54 -0
  406. data/rbi/workos/feature_flags_flag_rule_deleted_context.rbi +30 -0
  407. data/rbi/workos/feature_flags_flag_rule_deleted_context_actor.rbi +36 -0
  408. data/rbi/workos/feature_flags_flag_rule_updated.rbi +54 -0
  409. data/rbi/workos/feature_flags_flag_rule_updated_context.rbi +36 -0
  410. data/rbi/workos/feature_flags_flag_rule_updated_context_actor.rbi +36 -0
  411. data/rbi/workos/feature_flags_flag_rule_updated_context_previous_attribute.rbi +24 -0
  412. data/rbi/workos/feature_flags_flag_rule_updated_context_previous_attribute_data.rbi +24 -0
  413. data/rbi/workos/feature_flags_flag_target_created.rbi +54 -0
  414. data/rbi/workos/feature_flags_flag_target_created_context.rbi +30 -0
  415. data/rbi/workos/feature_flags_flag_target_created_context_actor.rbi +36 -0
  416. data/rbi/workos/feature_flags_flag_target_deleted.rbi +54 -0
  417. data/rbi/workos/feature_flags_flag_target_deleted_context.rbi +30 -0
  418. data/rbi/workos/feature_flags_flag_target_deleted_context_actor.rbi +36 -0
  419. data/rbi/workos/feature_flags_flag_updated.rbi +54 -0
  420. data/rbi/workos/feature_flags_flag_updated_context.rbi +36 -0
  421. data/rbi/workos/feature_flags_flag_updated_context_actor.rbi +36 -0
  422. data/rbi/workos/feature_flags_flag_updated_context_previous_attribute.rbi +24 -0
  423. data/rbi/workos/feature_flags_flag_updated_context_previous_attribute_data.rbi +54 -0
  424. data/rbi/workos/feature_flags_flag_updated_context_previous_attribute_data_owner.rbi +9 -0
  425. data/rbi/workos/feature_flags_flag_updated_data.rbi +9 -0
  426. data/rbi/workos/feature_flags_flag_updated_data_owner.rbi +9 -0
  427. data/rbi/workos/flag.rbi +1 -76
  428. data/rbi/workos/flag_created_data.rbi +1 -82
  429. data/rbi/workos/flag_created_data_owner.rbi +1 -28
  430. data/rbi/workos/flag_deleted_data.rbi +1 -82
  431. data/rbi/workos/flag_deleted_data_owner.rbi +1 -28
  432. data/rbi/workos/flag_owner.rbi +1 -28
  433. data/rbi/workos/flag_rule.rbi +84 -0
  434. data/rbi/workos/flag_rule_updated_context_configured_target_organization.rbi +1 -22
  435. data/rbi/workos/flag_rule_updated_context_previous_attribute_context_configured_target.rbi +1 -22
  436. data/rbi/workos/flag_rule_updated_context_previous_attribute_context_configured_target_organization.rbi +1 -22
  437. data/rbi/workos/flag_rule_updated_context_previous_attribute_context_configured_target_user.rbi +1 -22
  438. data/rbi/workos/flag_rule_updated_data.rbi +1 -82
  439. data/rbi/workos/flag_rule_updated_data_owner.rbi +1 -28
  440. data/rbi/workos/flag_target.rbi +90 -0
  441. data/rbi/workos/flag_target_with_rule_id.rbi +78 -0
  442. data/rbi/workos/flag_target_with_value_type.rbi +84 -0
  443. data/rbi/workos/flag_updated_context_previous_attribute.rbi +1 -16
  444. data/rbi/workos/flag_updated_context_previous_attribute_data.rbi +1 -46
  445. data/rbi/workos/flag_updated_context_previous_attribute_data_owner.rbi +1 -28
  446. data/rbi/workos/flag_updated_data.rbi +1 -82
  447. data/rbi/workos/flag_updated_data_owner.rbi +1 -28
  448. data/rbi/workos/group_member_removed_data.rbi +1 -22
  449. data/rbi/workos/group_role_assignment_list.rbi +36 -0
  450. data/rbi/workos/groups.rbi +19 -8
  451. data/rbi/workos/idp_metadata_fetch_failed_error_body.rbi +30 -0
  452. data/rbi/workos/invalid_client_oauth_error_body.rbi +30 -0
  453. data/rbi/workos/invalid_connection_oauth_error_body.rbi +30 -0
  454. data/rbi/workos/invalid_credentials_error_body.rbi +30 -0
  455. data/rbi/workos/invalid_email_error_body.rbi +30 -0
  456. data/rbi/workos/invalid_grant_oauth_error_body.rbi +30 -0
  457. data/rbi/workos/invalid_idp_sso_url_error_body.rbi +30 -0
  458. data/rbi/workos/invalid_link_authorization_code_oauth_error_body.rbi +30 -0
  459. data/rbi/workos/invalid_locale_error_body.rbi +30 -0
  460. data/rbi/workos/invalid_metadata_error_body.rbi +30 -0
  461. data/rbi/workos/invalid_one_time_code_error_body.rbi +30 -0
  462. data/rbi/workos/invalid_organization_id_error_body.rbi +30 -0
  463. data/rbi/workos/invalid_password_hash_error_body.rbi +30 -0
  464. data/rbi/workos/invalid_pending_authentication_token_error_body.rbi +30 -0
  465. data/rbi/workos/invalid_profile_oauth_error_body.rbi +30 -0
  466. data/rbi/workos/invalid_refresh_token_error_body.rbi +30 -0
  467. data/rbi/workos/invalid_request_oauth_error_body.rbi +30 -0
  468. data/rbi/workos/invalid_request_parameters_error_body.rbi +30 -0
  469. data/rbi/workos/invalid_request_parameters_error_body_with_errors.rbi +36 -0
  470. data/rbi/workos/invalid_role_error_body.rbi +30 -0
  471. data/rbi/workos/invalid_url_error_body.rbi +30 -0
  472. data/rbi/workos/invitation_cannot_be_used_for_email_oauth_error_body.rbi +30 -0
  473. data/rbi/workos/invitation_invalid_oauth_error_body.rbi +30 -0
  474. data/rbi/workos/it_contact_list.rbi +36 -0
  475. data/rbi/workos/it_contact_list_list_metadata.rbi +30 -0
  476. data/rbi/workos/list_metadata.rbi +30 -0
  477. data/rbi/workos/mfa_challenge_error_body.rbi +30 -0
  478. data/rbi/workos/mfa_enrollment_error_body.rbi +30 -0
  479. data/rbi/workos/mfa_enrollment_oauth_error_body.rbi +30 -0
  480. data/rbi/workos/multi_factor_auth.rbi +7 -7
  481. data/rbi/workos/multiple_roles_not_enabled_error_body.rbi +30 -0
  482. data/rbi/workos/must_use_sso_for_selected_organization_message_error_body.rbi +24 -0
  483. data/rbi/workos/oauth_data_integration_vended_credential.rbi +66 -0
  484. data/rbi/workos/oauth_error_body.rbi +30 -0
  485. data/rbi/workos/one_time_code_expired_error_body.rbi +30 -0
  486. data/rbi/workos/one_time_code_previously_used_error_body.rbi +30 -0
  487. data/rbi/workos/one_time_code_too_many_attempts_error_body.rbi +30 -0
  488. data/rbi/workos/organization_api_key_owner.rbi +1 -22
  489. data/rbi/workos/organization_api_key_with_value_owner.rbi +1 -22
  490. data/rbi/workos/organization_authentication_methods_required_oauth_error_body.rbi +30 -0
  491. data/rbi/workos/organization_connected_account.rbi +6 -0
  492. data/rbi/workos/organization_connected_account_import_error_body.rbi +30 -0
  493. data/rbi/workos/organization_domains.rbi +4 -4
  494. data/rbi/workos/organization_membership_not_found_oauth_error_body.rbi +30 -0
  495. data/rbi/workos/organization_membership_service.rbi +8 -8
  496. data/rbi/workos/organization_not_found_oauth_error_body.rbi +30 -0
  497. data/rbi/workos/organization_role_deleted_data.rbi +1 -64
  498. data/rbi/workos/organization_role_updated_data.rbi +1 -64
  499. data/rbi/workos/organization_selection_required_error_body.rbi +30 -0
  500. data/rbi/workos/organization_selection_required_error_body_with_organization.rbi +9 -0
  501. data/rbi/workos/organization_selection_required_error_body_with_organizations.rbi +36 -0
  502. data/rbi/workos/organizations.rbi +13 -13
  503. data/rbi/workos/passkey_progressive_enrollment_error_body.rbi +30 -0
  504. data/rbi/workos/password_and_password_hash_provided_error_body.rbi +30 -0
  505. data/rbi/workos/password_and_password_hash_type_provided_error_body.rbi +30 -0
  506. data/rbi/workos/password_reset_succeeded_data.rbi +1 -46
  507. data/rbi/workos/password_salt_position_requires_password_hash_error_body.rbi +30 -0
  508. data/rbi/workos/password_strength_error_error_body_with_errors.rbi +36 -0
  509. data/rbi/workos/patch_connection_standard_attributes.rbi +1 -46
  510. data/rbi/workos/patch_group_memberships.rbi +30 -0
  511. data/rbi/workos/patch_group_role_assignments.rbi +30 -0
  512. data/rbi/workos/permission.rbi +1 -64
  513. data/rbi/workos/permission_created_data.rbi +1 -64
  514. data/rbi/workos/permission_deleted_data.rbi +1 -64
  515. data/rbi/workos/permission_updated_data.rbi +1 -64
  516. data/rbi/workos/phone_number_required_error_body.rbi +30 -0
  517. data/rbi/workos/pipes.rbi +57 -33
  518. data/rbi/workos/pipes_account_connection_connection_failed_data.rbi +1 -76
  519. data/rbi/workos/pipes_connected_account_connection_failed_data.rbi +1 -76
  520. data/rbi/workos/pipes_provider.rbi +4 -2
  521. data/rbi/workos/pkce_not_supported_oauth_error_body.rbi +30 -0
  522. data/rbi/workos/platform_teams.rbi +2 -2
  523. data/rbi/workos/policy_denied_error_body.rbi +36 -0
  524. data/rbi/workos/radar.rbi +4 -4
  525. data/rbi/workos/radar_challenge_error_body.rbi +30 -0
  526. data/rbi/workos/radar_sign_up_challenge_error_body.rbi +30 -0
  527. data/rbi/workos/radar_sms_sign_in_challenge_error_body.rbi +30 -0
  528. data/rbi/workos/radar_standalone_update_radar_list_request.rbi +1 -16
  529. data/rbi/workos/rate_limit_exceeded_error_body_with_retry_after.rbi +36 -0
  530. data/rbi/workos/remove_role.rbi +1 -34
  531. data/rbi/workos/replace_group_role_assignment_entry.rbi +1 -34
  532. data/rbi/workos/role_deleted_data.rbi +1 -46
  533. data/rbi/workos/role_updated_data.rbi +1 -46
  534. data/rbi/workos/send_email_change.rbi +6 -0
  535. data/rbi/workos/send_verification_email.rbi +24 -0
  536. data/rbi/workos/send_verification_email_response.rbi +1 -16
  537. data/rbi/workos/session_created_data_impersonator.rbi +1 -22
  538. data/rbi/workos/session_revoked_data_impersonator.rbi +1 -22
  539. data/rbi/workos/sign_up_not_allowed_oauth_error_body.rbi +30 -0
  540. data/rbi/workos/slim_role.rbi +1 -16
  541. data/rbi/workos/slow_down_oauth_error_body.rbi +30 -0
  542. data/rbi/workos/sms_challenge_quota_reached_error_body.rbi +30 -0
  543. data/rbi/workos/sms_challenge_rate_limited_error_body.rbi +30 -0
  544. data/rbi/workos/sso.rbi +19 -18
  545. data/rbi/workos/sso_required_oauth_error_body_with_connection_ids_list_email.rbi +48 -0
  546. data/rbi/workos/sso_token_response_oauth_token.rbi +1 -40
  547. data/rbi/workos/sub_resource_scoped_role_not_allowed_error_body_with_role_slug.rbi +36 -0
  548. data/rbi/workos/token_too_big_oauth_error_body.rbi +30 -0
  549. data/rbi/workos/too_many_failed_verification_attempts_error_body_with_retry_after.rbi +36 -0
  550. data/rbi/workos/too_many_requests_oauth_error_body.rbi +30 -0
  551. data/rbi/workos/unauthorized_client_oauth_error_body.rbi +30 -0
  552. data/rbi/workos/unauthorized_error_body.rbi +24 -0
  553. data/rbi/workos/update_audit_logs_retention_with_retention_period.rbi +24 -0
  554. data/rbi/workos/update_audit_logs_retention_with_retention_period_in_days.rbi +24 -0
  555. data/rbi/workos/update_group.rbi +1 -22
  556. data/rbi/workos/update_oauth_application.rbi +6 -0
  557. data/rbi/workos/update_organization_role.rbi +1 -22
  558. data/rbi/workos/update_role.rbi +1 -22
  559. data/rbi/workos/update_user_organization_membership_with_role_slug.rbi +24 -0
  560. data/rbi/workos/update_user_organization_membership_with_role_slugs.rbi +24 -0
  561. data/rbi/workos/user.rbi +1 -94
  562. data/rbi/workos/user_api_key_owner.rbi +1 -28
  563. data/rbi/workos/user_api_key_revoked_data_owner.rbi +1 -28
  564. data/rbi/workos/user_api_key_updated_data_owner.rbi +1 -28
  565. data/rbi/workos/user_api_key_with_value_owner.rbi +1 -28
  566. data/rbi/workos/user_connected_account_import_error_body.rbi +30 -0
  567. data/rbi/workos/user_consent_options_not_supported_error_body.rbi +30 -0
  568. data/rbi/workos/user_creation_error_error_body_with_errors.rbi +36 -0
  569. data/rbi/workos/user_management.rbi +77 -61
  570. data/rbi/workos/user_mismatch_error_body.rbi +30 -0
  571. data/rbi/workos/user_role_assignment_resource.rbi +1 -28
  572. data/rbi/workos/user_role_assignment_source_group.rbi +1 -22
  573. data/rbi/workos/user_sessions_impersonator.rbi +1 -22
  574. data/rbi/workos/vault.rbi +11 -11
  575. data/rbi/workos/verification_id_required_error_body.rbi +30 -0
  576. data/rbi/workos/verify_email_address.rbi +1 -16
  577. data/rbi/workos/verify_email_response.rbi +1 -16
  578. data/rbi/workos/version_list_response.rbi +30 -0
  579. data/rbi/workos/waitlist_list_response.rbi +36 -0
  580. data/rbi/workos/waitlist_list_response_list_metadata.rbi +9 -0
  581. data/rbi/workos/webhooks.rbi +4 -4
  582. data/rbi/workos/widget_session_token_response.rbi +1 -16
  583. data/rbi/workos/widgets.rbi +1 -1
  584. data/test/workos/test_agents_model_round_trip.rb +11 -0
  585. data/test/workos/test_api_keys_model_round_trip.rb +14 -0
  586. data/test/workos/test_authorization.rb +8 -0
  587. data/test/workos/test_authorization_model_round_trip.rb +23 -0
  588. data/test/workos/test_base_client.rb +4 -3
  589. data/test/workos/test_connect_model_round_trip.rb +3 -1
  590. data/test/workos/test_directory_sync.rb +32 -0
  591. data/test/workos/test_directory_sync_model_round_trip.rb +11 -11
  592. data/test/workos/test_feature_flags_model_round_trip.rb +107 -0
  593. data/test/workos/test_groups.rb +8 -0
  594. data/test/workos/test_groups_model_round_trip.rb +11 -0
  595. data/test/workos/test_organizations_model_round_trip.rb +111 -0
  596. data/test/workos/test_pipes.rb +8 -0
  597. data/test/workos/test_pipes_model_round_trip.rb +101 -201
  598. data/test/workos/test_session.rb +46 -1
  599. data/test/workos/test_shared_model_round_trip.rb +2046 -425
  600. data/test/workos/test_sso_model_round_trip.rb +60 -0
  601. data/test/workos/test_user_management_model_round_trip.rb +315 -12
  602. data/test/workos/test_vault_model_round_trip.rb +30 -0
  603. metadata +380 -26
  604. data/lib/workos/pipes/add_data_integrations_get_data_integration_authorize_url_request.rb +0 -37
  605. data/lib/workos/pipes/connected_account_write_response.rb +0 -73
  606. data/lib/workos/pipes/data_integrations_upsert_api_key_request_2.rb +0 -37
  607. data/lib/workos/pipes/data_integrations_upsert_client_credentials_request_2.rb +0 -43
  608. data/lib/workos/pipes/reauthorize_data_integrations_get_data_integration_authorize_url_request.rb +0 -40
  609. data/lib/workos/pipes/reauthorize_data_integrations_upsert_api_key_request.rb +0 -40
  610. data/lib/workos/pipes/reauthorize_data_integrations_upsert_client_credentials_request.rb +0 -46
  611. data/lib/workos/types/add_data_integrations_get_data_integration_authorize_url_request_connection_owner.rb +0 -13
  612. data/lib/workos/types/data_integrations_upsert_api_key_request_2_connection_owner.rb +0 -9
  613. data/lib/workos/types/data_integrations_upsert_client_credentials_request_2_connection_owner.rb +0 -9
  614. data/lib/workos/types/reauthorize_data_integrations_get_data_integration_authorize_url_request_connection_owner.rb +0 -9
  615. data/lib/workos/types/reauthorize_data_integrations_upsert_api_key_request_connection_owner.rb +0 -9
  616. data/lib/workos/types/reauthorize_data_integrations_upsert_client_credentials_request_connection_owner.rb +0 -9
  617. data/rbi/workos/add_data_integrations_get_data_integration_authorize_url_request.rbi +0 -60
  618. data/rbi/workos/connected_account_write_response.rbi +0 -132
  619. data/rbi/workos/data_integrations_upsert_api_key_request_2.rbi +0 -60
  620. data/rbi/workos/data_integrations_upsert_client_credentials_request_2.rbi +0 -72
  621. data/rbi/workos/reauthorize_data_integrations_get_data_integration_authorize_url_request.rbi +0 -66
  622. data/rbi/workos/reauthorize_data_integrations_upsert_api_key_request.rbi +0 -66
  623. data/rbi/workos/reauthorize_data_integrations_upsert_client_credentials_request.rbi +0 -78
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "10.5.0"
2
+ ".": "10.7.0"
3
3
  }
data/CHANGELOG.md CHANGED
@@ -1,5 +1,201 @@
1
1
  # Changelog
2
2
 
3
+ ## [10.7.0](https://github.com/workos/workos-ruby/compare/v10.6.0...v10.7.0) (2026-11-13)
4
+
5
+ ### Bug Fixes
6
+
7
+ * **session:** Reject non-user access tokens in session cookies ([#573](https://github.com/workos/workos-ruby/issues/573)) ([94be822](https://github.com/workos/workos-ruby/commit/94be82279e19a25d7e0fe4f1a6ce0aaad5c9dfaf))
8
+
9
+ * [#576](https://github.com/workos/workos-ruby/pull/576) feat(generated): regenerate from spec (1 change)
10
+
11
+ **⚠️ Breaking**
12
+ * **[directory_sync](https://workos.com/docs/reference/directory-sync)**:
13
+ * Added parameter `Directories.find.directoryId`
14
+ * Added parameter `Directories.find.groupId`
15
+ * Removed parameter `Directories.find.id`
16
+ * Changed path for endpoint `GET /directories/{directoryId}/groups/{groupId}`
17
+ * Changed server default for parameter `DirectoryGroups.list`
18
+ * Changed server default for parameter `DirectoryGroups.find`
19
+ * Changed server default for parameter `DirectoryUsers.list`
20
+ * Changed server default for parameter `DirectoryUsers.find`
21
+
22
+ **Features**
23
+ * **[directory_sync](https://workos.com/docs/reference/directory-sync)**:
24
+ * Added endpoint `GET /directories/{id}`
25
+ * Added endpoint `GET /directories/{directoryId}/groups`
26
+ * Added endpoint `GET /directories/{directoryId}/users`
27
+ * Added endpoint `GET /directories/{directoryId}/users/{userId}`
28
+ * **[multi_factor_auth](https://workos.com/docs/reference/authkit/mfa)**:
29
+ * Added model `TooManyFailedVerificationAttemptsErrorBodyWithRetryAfter`
30
+ * Changed errors for endpoint `POST /auth/challenges/{id}/verify`
31
+ * **[pipes](https://workos.com/docs/reference/pipes)**:
32
+ * Added `config` to `CreateOrganizationConnectedAccount`
33
+ * Added `metadata` to `CreateOrganizationConnectedAccount`
34
+ * Added `config` to `OrganizationConnectedAccount`
35
+ * Added `config` to `CreateConnectedAccount`
36
+ * Added `metadata` to `CreateConnectedAccount`
37
+ * Added `config` to `ConnectedAccountInput`
38
+ * Added `too_many_failed_verification_attempts` to `ErrorBodyCode`
39
+ * Added `ip_address_required` to `ErrorBodyCode`
40
+ * Added enum `PipesProviderOwnership`
41
+ * Added parameter `PipesProvider.listForOrganization.ownership`
42
+ * Changed errors for endpoint `GET /organizations/{organizationId}/data_integration_configurations`
43
+ * Added parameter `PipesProvider.configure.ownership`
44
+ * **[user_management](https://workos.com/docs/reference/authkit/user)**:
45
+ * Added `radar_detection_id` to `PolicyDeniedErrorBody`
46
+ * **[webhooks](https://workos.com/docs/reference/webhooks)**:
47
+ * Added `feature_flags.flag.created` to `CreateWebhookEndpointEvents`
48
+ * Added `feature_flags.flag.updated` to `CreateWebhookEndpointEvents`
49
+ * Added `feature_flags.flag.deleted` to `CreateWebhookEndpointEvents`
50
+ * Added `feature_flags.flag_rule.created` to `CreateWebhookEndpointEvents`
51
+ * Added `feature_flags.flag_rule.updated` to `CreateWebhookEndpointEvents`
52
+ * Added `feature_flags.flag_target.created` to `CreateWebhookEndpointEvents`
53
+ * Added `feature_flags.flag_rule.deleted` to `CreateWebhookEndpointEvents`
54
+ * Added `feature_flags.flag_target.deleted` to `CreateWebhookEndpointEvents`
55
+ * Added `feature_flags.flag.created` to `UpdateWebhookEndpointEvents`
56
+ * Added `feature_flags.flag.updated` to `UpdateWebhookEndpointEvents`
57
+ * Added `feature_flags.flag.deleted` to `UpdateWebhookEndpointEvents`
58
+ * Added `feature_flags.flag_rule.created` to `UpdateWebhookEndpointEvents`
59
+ * Added `feature_flags.flag_rule.updated` to `UpdateWebhookEndpointEvents`
60
+ * Added `feature_flags.flag_target.created` to `UpdateWebhookEndpointEvents`
61
+ * Added `feature_flags.flag_rule.deleted` to `UpdateWebhookEndpointEvents`
62
+ * Added `feature_flags.flag_target.deleted` to `UpdateWebhookEndpointEvents`
63
+
64
+ **Fixes**
65
+ * **[directory_sync](https://workos.com/docs/reference/directory-sync)**:
66
+ * Changed response of `Directories.find` from `Directory` to `DirectoryGroup`
67
+ * Updated endpoint `GET /directory_groups`
68
+ * Updated endpoint `GET /directory_groups/{id}`
69
+ * Updated endpoint `GET /directory_users`
70
+ * Updated endpoint `GET /directory_users/{id}`
71
+ * **[events](https://workos.com/docs/reference/events)**:
72
+ * Updated model `EventSchema`
73
+ * **[pipes](https://workos.com/docs/reference/pipes)**:
74
+ * Removed `policy_denied` from `ErrorBodyCode`
75
+ * **[user_management](https://workos.com/docs/reference/authkit/user)**:
76
+ * Changed errors for endpoint `POST /user_management/users`
77
+ * Changed errors for endpoint `POST /user_management/magic_auth`
78
+ * Changed errors for endpoint `POST /user_management/authenticate`
79
+
80
+ * [#577](https://github.com/workos/workos-ruby/pull/577) feat(generated): regenerate from spec (1 change)
81
+
82
+ **Features**
83
+ * **[sso](https://workos.com/docs/reference/sso)**:
84
+ * Added enum `ConnectionsState`
85
+ * Added parameter `Connections.list.state`
86
+
87
+ ## [10.6.0](https://github.com/workos/workos-ruby/compare/v10.5.0...v10.6.0) (2026-11-04)
88
+
89
+ ### Bug Fixes
90
+
91
+ * Send Idempotency-Key on the first POST attempt ([#567](https://github.com/workos/workos-ruby/issues/567)) ([fc5fb6c](https://github.com/workos/workos-ruby/commit/fc5fb6cfab255969203a7285d1308053cb72998e))
92
+
93
+ * [#572](https://github.com/workos/workos-ruby/pull/572) feat(generated)!: regenerate from spec (5 changes)
94
+
95
+ **⚠️ Breaking**
96
+ * **[groups](https://workos.com/docs/reference/groups)**:
97
+ * Removed model `ReplaceGroupMemberships`
98
+ * Removed endpoint `PUT /organizations/{organizationId}/groups/{groupId}/organization-memberships`
99
+ * **[pipes](https://workos.com/docs/reference/pipes)**:
100
+ * Removed model `ConnectedAccountWriteResponse`
101
+ * Removed model `ConnectedAccountWriteResponseWarning`
102
+ * Removed enum `ConnectedAccountWriteResponseConnectionRole`
103
+ * Removed enum `ConnectedAccountWriteResponseAuthMethod`
104
+ * Removed enum `ConnectedAccountWriteResponseState`
105
+ * Removed model `ReauthorizeDataIntegrationsUpsertApiKeyRequest`
106
+ * Removed model `DataIntegrationsUpsertApiKeyRequest2`
107
+ * Removed model `AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequest`
108
+ * Removed model `ReauthorizeDataIntegrationsGetDataIntegrationAuthorizeUrlRequest`
109
+ * Removed model `ReauthorizeDataIntegrationsUpsertClientCredentialsRequest`
110
+ * Removed model `DataIntegrationsUpsertClientCredentialsRequest2`
111
+ * Removed enum `ReauthorizeDataIntegrationsUpsertApiKeyRequestConnectionOwner`
112
+ * Removed enum `DataIntegrationsUpsertApiKeyRequest2ConnectionOwner`
113
+ * Removed enum `AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner`
114
+ * Removed enum `ReauthorizeDataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner`
115
+ * Removed enum `ReauthorizeDataIntegrationsUpsertClientCredentialsRequestConnectionOwner`
116
+ * Removed enum `DataIntegrationsUpsertClientCredentialsRequest2ConnectionOwner`
117
+
118
+ **Features**
119
+ * **[admin_portal](https://workos.com/docs/reference/admin-portal)**:
120
+ * Added `action_denied` to `ErrorBodyCode`
121
+ * Added `group_membership_update_overlap` to `ErrorBodyCode`
122
+ * **[connect](https://workos.com/docs/reference/workos-connect/standalone)**:
123
+ * Added `cors_origins` to Connect models
124
+ * **[events](https://workos.com/docs/reference/events)**:
125
+ * Changed parameter `Events.list.range_start`
126
+ * Changed parameter `Events.list.range_end`
127
+ * **[groups](https://workos.com/docs/reference/groups)**:
128
+ * Added model `PatchGroupMemberships`
129
+ * Added endpoint `PATCH /organizations/{organizationId}/groups/{groupId}/organization-memberships`
130
+ * Added model `ReplaceGroupMemberships`
131
+ * Added endpoint `PUT /organizations/{organizationId}/groups/{groupId}/organization-memberships`
132
+ * **[organizations](https://workos.com/docs/reference/organization)**:
133
+ * Changed errors for endpoint `POST /organizations/{organization_id}/it_contacts/{contact_id}/invite`
134
+ * **[pipes](https://workos.com/docs/reference/pipes)**:
135
+ * Added model `DataIntegrationFinishConnectionResponse`
136
+ * Added model `DataIntegrationsFinishConnectionRequest`
137
+ * Added model `DataIntegrationsFinishConnectionError400`
138
+ * Added model `DataIntegrationsFinishConnectionError4002`
139
+ * Added model `DataIntegrationsFinishConnectionError403`
140
+ * Added model `DataIntegrationsGetDataIntegrationAuthorizeUrlError4002`
141
+ * Added `completion` to `DataIntegrationAuthorizeUrlResponse`
142
+ * Added `code_challenge` to `DataIntegrationsGetDataIntegrationAuthorizeUrlRequest`
143
+ * Added `code_challenge_method` to `DataIntegrationsGetDataIntegrationAuthorizeUrlRequest`
144
+ * Added `code` to `DataIntegrationsGetDataIntegrationAuthorizeUrlError400`
145
+ * Added enum `DataIntegrationsFinishConnectionError400Code`
146
+ * Added enum `DataIntegrationsGetDataIntegrationAuthorizeUrlError400Code`
147
+ * Added endpoint `POST /data-integrations/finish`
148
+ * Added model `ConnectedAccountWarning`
149
+ * Added model `DataIntegrationsListResponseDataConnectedAccountWarning`
150
+ * Added `warnings` to `ConnectedAccount`
151
+ * Added `warnings` to `DataIntegrationsListResponseDataConnectedAccount`
152
+ * Added `connection_intent` to `DataIntegrationsUpsertApiKeyRequest`
153
+ * Added `connected_account_id` to `DataIntegrationsUpsertApiKeyRequest`
154
+ * Added `connection_intent` to `DataIntegrationsGetDataIntegrationAuthorizeUrlRequest`
155
+ * Added `connected_account_id` to `DataIntegrationsGetDataIntegrationAuthorizeUrlRequest`
156
+ * Added `connection_intent` to `DataIntegrationsUpsertClientCredentialsRequest`
157
+ * Added `connected_account_id` to `DataIntegrationsUpsertClientCredentialsRequest`
158
+ * Added enum `DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionIntent`
159
+ * **[user_management](https://workos.com/docs/reference/authkit/user)**:
160
+ * Added model `SendVerificationEmail`
161
+ * Added `locale` to `CreateMagicCodeAndReturn`
162
+ * Added `locale` to `CreatePasswordResetToken`
163
+ * Added `locale` to `SendEmailChange`
164
+ * Added enum `CreateMagicCodeAndReturnLocale`
165
+ * Added enum `SendVerificationEmailLocale`
166
+ * Added enum `CreatePasswordResetTokenLocale`
167
+ * Added enum `SendEmailChangeLocale`
168
+ * **[widgets](https://workos.com/docs/reference/widgets)**:
169
+ * Added `widgets:user-api-keys:manage-self` to `WidgetSessionTokenScopes`
170
+ * Added `widgets:user-api-keys:manage-all` to `WidgetSessionTokenScopes`
171
+
172
+ **Fixes**
173
+ * **[organizations](https://workos.com/docs/reference/organization)**:
174
+ * Changed errors for endpoint `POST /organizations/{organization_id}/it_contacts/{contact_id}/invite`
175
+ * **[pipes](https://workos.com/docs/reference/pipes)**:
176
+ * Changed the type of `DataIntegrationsGetDataIntegrationAuthorizeUrlError400.message`
177
+ * Changed errors for endpoint `POST /data-integrations/{slug}/authorize`
178
+ * Changed response of `Pipes.createApiKeyConnection` from `ConnectedAccountWriteResponse` to `ConnectedAccount`
179
+ * Changed response of `Pipes.upsertApiKey` from `ConnectedAccountWriteResponse` to `ConnectedAccount`
180
+ * Changed response of `Pipes.createClientCredentialsConnection` from `ConnectedAccountWriteResponse` to `ConnectedAccount`
181
+ * Changed response of `Pipes.upsertClientCredentials` from `ConnectedAccountWriteResponse` to `ConnectedAccount`
182
+ * Changed response of `OrganizationsDataProviders.createOrganizationDataInstallation` from `ConnectedAccountWriteResponse` to `ConnectedAccount`
183
+ * Changed response of `OrganizationsDataProviders.updateOrganizationDataInstallation` from `ConnectedAccountWriteResponse` to `ConnectedAccount`
184
+ * Changed response of `UserManagementDataProviders.createUserDataInstallation` from `ConnectedAccountWriteResponse` to `ConnectedAccount`
185
+ * Changed response of `UserManagementDataProviders.updateUserDataInstallation` from `ConnectedAccountWriteResponse` to `ConnectedAccount`
186
+ * Changed request body for `Pipes.upsertApiKey`
187
+ * Changed request body for `Pipes.getDataIntegrationAuthorizeUrl`
188
+ * Changed request body for `Pipes.upsertClientCredentials`
189
+ * **[sso](https://workos.com/docs/reference/sso)**:
190
+ * Changed errors for endpoint `POST /sso/logout/authorize`
191
+ * **[user_management](https://workos.com/docs/reference/authkit/user)**:
192
+ * Changed errors for endpoint `POST /user_management/authenticate`
193
+ * Changed request body for `UserManagementUsers.sendVerificationEmail`
194
+ * Changed errors for endpoint `POST /user_management/users/{id}/email_verification/send`
195
+ * Changed errors for endpoint `POST /user_management/invitations`
196
+ * Changed errors for endpoint `POST /user_management/invitations/{id}/resend`
197
+ * Changed errors for endpoint `POST /user_management/waitlist_entries/{id}/approve`
198
+
3
199
  ## [10.5.0](https://github.com/workos/workos-ruby/compare/v10.4.0...v10.5.0) (2026-10-19)
4
200
 
5
201
  * [#558](https://github.com/workos/workos-ruby/pull/558) feat(generated): regenerate from spec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- workos (10.5.0)
4
+ workos (10.7.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 (10.5.0)
156
+ workos (10.7.0)
157
157
  yard (0.9.45) sha256=52e211493f7cb8a3ebf7e104a25a1e73937a3103092545d34cb88fafebb3dc51
158
158
  yard-markdown (0.9.1) sha256=51adf55a814172f70ed81fbd1af4dc42c0e1a698915f7da33eff5a3bb527062d
159
159
  zeitwerk (2.7.5) sha256=d8da92128c09ea6ec62c949011b00ed4a20242b255293dd66bf41545398f73dd
data/README.md CHANGED
@@ -100,10 +100,10 @@ organization = WorkOS.client.organizations.get_organization(
100
100
  )
101
101
  ```
102
102
 
103
- `Idempotency-Key` is only sent on `POST`, `PUT`, and `PATCH` requests — either when you provide `request_options[:idempotency_key]`, or auto-generated when the SDK retries one of those requests after a transient failure. It is never attached to `GET` or `DELETE` requests.
103
+ `Idempotency-Key` is only sent on `POST`, `PUT`, and `PATCH` requests, and never on `GET` or `DELETE`. Every `POST` carries one: the key you provide in `request_options[:idempotency_key]`, or one the SDK generates before the first attempt and reuses on every retry. `PUT` and `PATCH` requests carry one when you provide it, or when the SDK retries them after a transient failure.
104
104
 
105
105
  > [!NOTE]
106
- > The WorkOS API currently honors `Idempotency-Key` only on the [Create Audit Log Event](https://workos.com/docs/reference/audit-logs/event) endpoint (`audit_logs.create_event`). Other endpoints accept the header but do not deduplicate requests, so a retried mutation elsewhere can still create a duplicate.
106
+ > The WorkOS API currently honors `Idempotency-Key` only on the [Create Audit Log Event](https://workos.com/docs/reference/audit-logs/event) endpoint (`audit_logs.create_event`) and on Pipes explicit adds (`pipes.create_data_integration_api_key`, `pipes.create_data_integration_client_credential`, and `pipes.create_user_connected_account` / `pipes.create_organization_connected_account` with `connection_intent: "add"`). Other endpoints accept the header but do not deduplicate requests, so a retried mutation elsewhere can still create a duplicate.
107
107
 
108
108
  ## Usage Examples
109
109
 
@@ -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 ListMetadata < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ after: :after,
9
+ before: :before
10
+ }.freeze
11
+
12
+ attr_accessor \
13
+ :after,
14
+ :before
15
+
16
+ def initialize(json)
17
+ hash = self.class.normalize(json)
18
+ @after = hash[:after]
19
+ @before = hash[:before]
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class ApiKeyDataIntegrationVendedCredential < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ object: :object,
9
+ auth_method: :auth_method,
10
+ value: :value,
11
+ config: :config
12
+ }.freeze
13
+
14
+ attr_accessor \
15
+ :object,
16
+ :auth_method,
17
+ :value,
18
+ :config
19
+
20
+ def initialize(json)
21
+ hash = self.class.normalize(json)
22
+ @object = hash[:object]
23
+ @auth_method = hash[:auth_method]
24
+ @value = hash[:value]
25
+ @config = hash[:config] || {}
26
+ end
27
+ end
28
+ end
@@ -222,8 +222,8 @@ module WorkOS
222
222
 
223
223
  # Create Export
224
224
  # @param organization_id [String] The unique ID of the Organization.
225
- # @param range_start [String] ISO-8601 value for start of the export range.
226
- # @param range_end [String] ISO-8601 value for end of the export range.
225
+ # @param range_start [String] ISO-8601 value for start of the export range. The range must span no more than 31 days.
226
+ # @param range_end [String] ISO-8601 value for end of the export range. Must be no more than 31 days after the start.
227
227
  # @param actions [Array<String>, nil] List of actions to filter against.
228
228
  # @param actors [Array<String>, nil] (deprecated) Deprecated. Use `actor_names` instead.
229
229
  # @param actor_names [Array<String>, nil] List of actor names to filter against.
@@ -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 PatchGroupRoleAssignments < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ add: :add,
9
+ remove: :remove
10
+ }.freeze
11
+
12
+ attr_accessor \
13
+ :add,
14
+ :remove
15
+
16
+ def initialize(json)
17
+ hash = self.class.normalize(json)
18
+ @add = (hash[:add] || []).map { |item| item ? WorkOS::ReplaceGroupRoleAssignmentEntry.new(item) : nil }
19
+ @remove = (hash[:remove] || []).map { |item| item ? WorkOS::ReplaceGroupRoleAssignmentEntry.new(item) : nil }
20
+ end
21
+ end
22
+ end
@@ -160,6 +160,32 @@ module WorkOS
160
160
  )
161
161
  end
162
162
 
163
+ # Update role assignments for a group
164
+ # @param group_id [String] The ID of the group.
165
+ # @param add [Array<WorkOS::ReplaceGroupRoleAssignmentEntry>, nil] Role assignments to add to the group. Assignments that already exist are skipped.
166
+ # @param remove [Array<WorkOS::ReplaceGroupRoleAssignmentEntry>, nil] Role assignments to remove from the group. Entries that match no assignment are skipped.
167
+ # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
168
+ # @return [void]
169
+ def patch_group_role_assignments(
170
+ group_id:,
171
+ add: nil,
172
+ remove: nil,
173
+ request_options: {}
174
+ )
175
+ body = {
176
+ "add" => add,
177
+ "remove" => remove
178
+ }.compact
179
+ @client.request(
180
+ method: :patch,
181
+ path: "/authorization/groups/#{WorkOS::Util.encode_path(group_id)}/role_assignments",
182
+ auth: true,
183
+ body: body,
184
+ request_options: request_options
185
+ )
186
+ nil
187
+ end
188
+
163
189
  # Remove group role assignments by criteria
164
190
  # @param group_id [String] The ID of the group.
165
191
  # @param role_slug [String] The slug of the role to remove assignments for.
@@ -73,6 +73,9 @@ module WorkOS
73
73
  req.body = body.nil? ? "" : body.to_json
74
74
  req["Content-Type"] = "application/json"
75
75
  inject_idempotency_key(req, request_options)
76
+ # Keyed before the first attempt, so a retry after a lost response
77
+ # carries the key the server already saw.
78
+ req["Idempotency-Key"] ||= SecureRandom.uuid
76
79
  req
77
80
  end
78
81
 
@@ -10,9 +10,9 @@ module WorkOS
10
10
  @client = client
11
11
  end
12
12
 
13
- # Generate a Client API token
14
- # @param organization_id [String] The ID of the organization to scope the Client API token to.
15
- # @param user_id [String] The ID of the user to issue the Client API token for.
13
+ # Generate a Widgets API token
14
+ # @param organization_id [String] The ID of the organization to scope the Widgets API token to.
15
+ # @param user_id [String] The ID of the user to issue the Widgets API token for.
16
16
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
17
17
  # @return [WorkOS::ClientApiTokenResponse]
18
18
  def create_token(
@@ -15,6 +15,7 @@ module WorkOS
15
15
  updated_at: :updated_at,
16
16
  application_type: :application_type,
17
17
  redirect_uris: :redirect_uris,
18
+ cors_origins: :cors_origins,
18
19
  uses_pkce: :uses_pkce,
19
20
  is_first_party: :is_first_party,
20
21
  was_dynamically_registered: :was_dynamically_registered,
@@ -32,6 +33,7 @@ module WorkOS
32
33
  :updated_at,
33
34
  :application_type,
34
35
  :redirect_uris,
36
+ :cors_origins,
35
37
  :uses_pkce,
36
38
  :is_first_party,
37
39
  :was_dynamically_registered,
@@ -49,6 +51,7 @@ module WorkOS
49
51
  @updated_at = hash[:updated_at]
50
52
  @application_type = hash[:application_type]
51
53
  @redirect_uris = (hash[:redirect_uris] || []).map { |item| item ? WorkOS::ConnectApplicationRedirectUri.new(item) : nil }
54
+ @cors_origins = hash[:cors_origins] || []
52
55
  @uses_pkce = hash[:uses_pkce]
53
56
  @is_first_party = hash[:is_first_party]
54
57
  @was_dynamically_registered = hash[:was_dynamically_registered]
@@ -10,6 +10,7 @@ module WorkOS
10
10
  description: :description,
11
11
  scopes: :scopes,
12
12
  redirect_uris: :redirect_uris,
13
+ cors_origins: :cors_origins,
13
14
  uses_pkce: :uses_pkce,
14
15
  is_first_party: :is_first_party,
15
16
  organization_id: :organization_id
@@ -21,6 +22,7 @@ module WorkOS
21
22
  :description,
22
23
  :scopes,
23
24
  :redirect_uris,
25
+ :cors_origins,
24
26
  :uses_pkce,
25
27
  :is_first_party,
26
28
  :organization_id
@@ -32,6 +34,7 @@ module WorkOS
32
34
  @description = hash[:description]
33
35
  @scopes = hash[:scopes] || []
34
36
  @redirect_uris = (hash[:redirect_uris] || []).map { |item| item ? WorkOS::RedirectUriInput.new(item) : nil }
37
+ @cors_origins = hash[:cors_origins] || []
35
38
  @uses_pkce = hash[:uses_pkce]
36
39
  @is_first_party = hash[:is_first_party]
37
40
  @organization_id = hash[:organization_id]
@@ -8,14 +8,16 @@ module WorkOS
8
8
  name: :name,
9
9
  description: :description,
10
10
  scopes: :scopes,
11
- redirect_uris: :redirect_uris
11
+ redirect_uris: :redirect_uris,
12
+ cors_origins: :cors_origins
12
13
  }.freeze
13
14
 
14
15
  attr_accessor \
15
16
  :name,
16
17
  :description,
17
18
  :scopes,
18
- :redirect_uris
19
+ :redirect_uris,
20
+ :cors_origins
19
21
 
20
22
  def initialize(json)
21
23
  hash = self.class.normalize(json)
@@ -23,6 +25,7 @@ module WorkOS
23
25
  @description = hash[:description]
24
26
  @scopes = hash[:scopes] || []
25
27
  @redirect_uris = (hash[:redirect_uris] || []).map { |item| item ? WorkOS::RedirectUriInput.new(item) : nil }
28
+ @cors_origins = hash[:cors_origins] || []
26
29
  end
27
30
  end
28
31
  end
@@ -97,6 +97,7 @@ module WorkOS
97
97
  # @param description [String, nil] A description for the application.
98
98
  # @param scopes [Array<String>, nil] The OAuth scopes granted to the application.
99
99
  # @param redirect_uris [Array<WorkOS::RedirectUriInput>, nil] Redirect URIs for the application.
100
+ # @param cors_origins [Array<String>, nil] Origins allowed to call the OAuth token endpoint for this application from a browser.
100
101
  # @param uses_pkce [Boolean, nil] Whether the application uses PKCE (Proof Key for Code Exchange).
101
102
  # @param is_first_party [Boolean, nil] Whether this is a first-party application. Third-party applications require an organization_id.
102
103
  # @param organization_id [String, nil] The organization ID this application belongs to. Required when is_first_party is false.
@@ -108,6 +109,7 @@ module WorkOS
108
109
  description: WorkOS::OMIT,
109
110
  scopes: WorkOS::OMIT,
110
111
  redirect_uris: WorkOS::OMIT,
112
+ cors_origins: WorkOS::OMIT,
111
113
  uses_pkce: WorkOS::OMIT,
112
114
  is_first_party: nil,
113
115
  organization_id: WorkOS::OMIT,
@@ -121,6 +123,7 @@ module WorkOS
121
123
  body["description"] = description unless description.equal?(WorkOS::OMIT)
122
124
  body["scopes"] = scopes unless scopes.equal?(WorkOS::OMIT)
123
125
  body["redirect_uris"] = redirect_uris unless redirect_uris.equal?(WorkOS::OMIT)
126
+ body["cors_origins"] = cors_origins unless cors_origins.equal?(WorkOS::OMIT)
124
127
  body["uses_pkce"] = uses_pkce unless uses_pkce.equal?(WorkOS::OMIT)
125
128
  body["organization_id"] = organization_id unless organization_id.equal?(WorkOS::OMIT)
126
129
  response = @client.request(
@@ -231,6 +234,7 @@ module WorkOS
231
234
  # @param description [String, nil] A description for the application.
232
235
  # @param scopes [Array<String>, nil] The OAuth scopes granted to the application.
233
236
  # @param redirect_uris [Array<WorkOS::RedirectUriInput>, nil] Updated redirect URIs for the application. OAuth applications only.
237
+ # @param cors_origins [Array<String>, nil] Updated origins allowed to call the OAuth token endpoint for this application from a browser. Replaces the existing list. OAuth applications only.
234
238
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
235
239
  # @return [WorkOS::ConnectApplication]
236
240
  def update_application(
@@ -239,6 +243,7 @@ module WorkOS
239
243
  description: WorkOS::OMIT,
240
244
  scopes: WorkOS::OMIT,
241
245
  redirect_uris: WorkOS::OMIT,
246
+ cors_origins: WorkOS::OMIT,
242
247
  request_options: {}
243
248
  )
244
249
  body = {
@@ -247,6 +252,7 @@ module WorkOS
247
252
  body["description"] = description unless description.equal?(WorkOS::OMIT)
248
253
  body["scopes"] = scopes unless scopes.equal?(WorkOS::OMIT)
249
254
  body["redirect_uris"] = redirect_uris unless redirect_uris.equal?(WorkOS::OMIT)
255
+ body["cors_origins"] = cors_origins unless cors_origins.equal?(WorkOS::OMIT)
250
256
  response = @client.request(
251
257
  method: :put,
252
258
  path: "/connect/applications/#{WorkOS::Util.encode_path(id)}",
@@ -36,7 +36,7 @@ module WorkOS
36
36
  # @!attribute raw_attributes
37
37
  # @deprecated The raw attributes received from the directory provider.
38
38
  # @!attribute groups
39
- # @deprecated The directory groups the user belongs to. Deprecated: starting May 1, 2026, this field returns an empty array by default for newly created teams. Existing teams currently depending on this field should migrate to the new access pattern for better throughput performance — the field is unbounded by user, so users with many group memberships produce large, slow response payloads. Use the List Directory Groups endpoint with a `user` filter to fetch a user's group memberships.
39
+ # @deprecated The directory groups the user belongs to. Deprecated: use `GET /directories/{directoryId}/groups?user={userId}` instead.
40
40
 
41
41
  attr_accessor \
42
42
  :object,