workos 10.5.0 → 10.6.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 (502) 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 +387 -25
  5. data/.release-please-manifest.json +1 -1
  6. data/CHANGELOG.md +112 -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/authorization/patch_group_role_assignments.rb +22 -0
  12. data/lib/workos/authorization.rb +26 -0
  13. data/lib/workos/base_client.rb +3 -0
  14. data/lib/workos/connect/connect_application.rb +3 -0
  15. data/lib/workos/connect/create_oauth_application.rb +3 -0
  16. data/lib/workos/connect/update_oauth_application.rb +5 -2
  17. data/lib/workos/connect.rb +6 -0
  18. data/lib/workos/events.rb +3 -11
  19. data/lib/workos/feature_flags/flag_created_data.rb +1 -46
  20. data/lib/workos/feature_flags/flag_deleted_data.rb +1 -1
  21. data/lib/workos/feature_flags/flag_rule.rb +49 -0
  22. data/lib/workos/feature_flags/flag_rule_updated_data.rb +1 -1
  23. data/lib/workos/feature_flags/flag_target.rb +52 -0
  24. data/lib/workos/feature_flags/flag_target_with_rule_id.rb +46 -0
  25. data/lib/workos/feature_flags/flag_target_with_value_type.rb +49 -0
  26. data/lib/workos/feature_flags/flag_updated_context_previous_attribute.rb +1 -12
  27. data/lib/workos/feature_flags/flag_updated_context_previous_attribute_data.rb +1 -28
  28. data/lib/workos/feature_flags/flag_updated_data.rb +1 -1
  29. data/lib/workos/groups/patch_group_memberships.rb +22 -0
  30. data/lib/workos/groups.rb +28 -0
  31. data/lib/workos/inflections.rb +30 -0
  32. data/lib/workos/organizations/it_contact_list_list_metadata.rb +22 -0
  33. data/lib/workos/organizations/organization_authentication_methods_required_oauth_error_body.rb +22 -0
  34. data/lib/workos/organizations/organization_connected_account_import_error_body.rb +22 -0
  35. data/lib/workos/organizations/organization_membership_not_found_oauth_error_body.rb +22 -0
  36. data/lib/workos/organizations/organization_not_found_oauth_error_body.rb +22 -0
  37. data/lib/workos/organizations/organization_selection_required_error_body.rb +22 -0
  38. data/lib/workos/organizations/organization_selection_required_error_body_with_organization.rb +7 -0
  39. data/lib/workos/organizations/organization_selection_required_error_body_with_organizations.rb +25 -0
  40. data/lib/workos/pipes/connected_account.rb +5 -2
  41. data/lib/workos/pipes/{connected_account_write_response_warning.rb → connected_account_warning.rb} +1 -1
  42. data/lib/workos/pipes/data_integration_authorize_url_response.rb +9 -2
  43. data/lib/workos/pipes/data_integration_finish_connection_response.rb +18 -0
  44. data/lib/workos/pipes/data_integration_vended_credential.rb +5 -5
  45. data/lib/workos/pipes/data_integrations_finish_connection_request.rb +25 -0
  46. data/lib/workos/pipes/data_integrations_get_data_integration_authorize_url_request.rb +14 -2
  47. data/lib/workos/pipes/data_integrations_list_response_data_connected_account.rb +4 -1
  48. data/lib/workos/pipes/data_integrations_list_response_data_connected_account_warning.rb +7 -0
  49. data/lib/workos/pipes/data_integrations_upsert_api_key_request.rb +8 -2
  50. data/lib/workos/pipes/data_integrations_upsert_client_credentials_request.rb +8 -2
  51. data/lib/workos/pipes.rb +62 -27
  52. data/lib/workos/shared/access_denied_oauth_error_body.rb +22 -0
  53. data/lib/workos/shared/account_selection_required_error_body.rb +7 -0
  54. data/lib/workos/shared/already_claimed_error_body.rb +22 -0
  55. data/lib/workos/shared/application_consent_required_error_body.rb +22 -0
  56. data/lib/workos/shared/auth_method_mismatch_error_body.rb +7 -0
  57. data/lib/workos/shared/authorization_pending_oauth_error_body.rb +22 -0
  58. data/lib/workos/shared/authorization_url_not_found_error_body.rb +22 -0
  59. data/lib/workos/shared/authorization_url_request_error_body.rb +22 -0
  60. data/lib/workos/shared/client_credentials_data_integration_vended_credential.rb +40 -0
  61. data/lib/workos/shared/code_challenge_not_found_error_body.rb +22 -0
  62. data/lib/workos/shared/connect_application_oauth.rb +3 -0
  63. data/lib/workos/shared/connected_account_limit_reached_error_body.rb +22 -0
  64. data/lib/workos/shared/daily_quota_exceeded_error_body.rb +22 -0
  65. data/lib/workos/shared/data_integration_access_token_response_with_access_token.rb +22 -0
  66. data/lib/workos/shared/data_integration_access_token_response_with_access_token_access_token.rb +7 -0
  67. data/lib/workos/shared/data_integration_access_token_response_with_error.rb +22 -0
  68. data/lib/workos/shared/data_integration_credentials_response_with_credential.rb +22 -0
  69. data/lib/workos/shared/data_integration_credentials_response_with_error.rb +22 -0
  70. data/lib/workos/shared/entity_not_found_error_body.rb +22 -0
  71. data/lib/workos/shared/error_body.rb +7 -0
  72. data/lib/workos/shared/error_body_with_code.rb +7 -0
  73. data/lib/workos/shared/error_body_with_code_errors.rb +25 -0
  74. data/lib/workos/shared/error_body_with_code_field_error.rb +22 -0
  75. data/lib/workos/shared/error_body_with_code_field_errors.rb +22 -0
  76. data/lib/workos/shared/error_body_with_code_instance_path_error.rb +18 -0
  77. data/lib/workos/shared/error_body_with_code_instance_path_errors.rb +25 -0
  78. data/lib/workos/shared/error_body_with_code_status_code.rb +25 -0
  79. data/lib/workos/shared/error_body_with_constraints_property_error.rb +22 -0
  80. data/lib/workos/shared/error_body_with_constraints_property_errors.rb +22 -0
  81. data/lib/workos/shared/error_body_with_error.rb +22 -0
  82. data/lib/workos/shared/error_body_with_error_message_list.rb +22 -0
  83. data/lib/workos/shared/error_body_with_message_or_message_list.rb +18 -0
  84. data/lib/workos/shared/expired_token_oauth_error_body.rb +22 -0
  85. data/lib/workos/shared/external_auth_session_already_completed_error_body.rb +22 -0
  86. data/lib/workos/shared/external_id_already_used_error_body.rb +22 -0
  87. data/lib/workos/shared/extra_attributes_required_oauth_error_body.rb +22 -0
  88. data/lib/workos/shared/feature_flags_flag_created.rb +34 -0
  89. data/lib/workos/shared/feature_flags_flag_created_context.rb +22 -0
  90. data/lib/workos/shared/feature_flags_flag_created_context_actor.rb +25 -0
  91. data/lib/workos/shared/feature_flags_flag_created_data.rb +52 -0
  92. data/lib/workos/shared/feature_flags_flag_created_data_owner.rb +7 -0
  93. data/lib/workos/shared/feature_flags_flag_deleted.rb +34 -0
  94. data/lib/workos/shared/feature_flags_flag_deleted_context.rb +22 -0
  95. data/lib/workos/shared/feature_flags_flag_deleted_context_actor.rb +25 -0
  96. data/lib/workos/shared/feature_flags_flag_deleted_data.rb +7 -0
  97. data/lib/workos/shared/feature_flags_flag_deleted_data_owner.rb +7 -0
  98. data/lib/workos/shared/feature_flags_flag_rule_created.rb +34 -0
  99. data/lib/workos/shared/feature_flags_flag_rule_created_context.rb +22 -0
  100. data/lib/workos/shared/feature_flags_flag_rule_created_context_actor.rb +25 -0
  101. data/lib/workos/shared/feature_flags_flag_rule_deleted.rb +34 -0
  102. data/lib/workos/shared/feature_flags_flag_rule_deleted_context.rb +22 -0
  103. data/lib/workos/shared/feature_flags_flag_rule_deleted_context_actor.rb +25 -0
  104. data/lib/workos/shared/feature_flags_flag_rule_updated.rb +34 -0
  105. data/lib/workos/shared/feature_flags_flag_rule_updated_context.rb +25 -0
  106. data/lib/workos/shared/feature_flags_flag_rule_updated_context_actor.rb +25 -0
  107. data/lib/workos/shared/feature_flags_flag_rule_updated_context_previous_attribute.rb +18 -0
  108. data/lib/workos/shared/feature_flags_flag_rule_updated_context_previous_attribute_data.rb +18 -0
  109. data/lib/workos/shared/feature_flags_flag_target_created.rb +34 -0
  110. data/lib/workos/shared/feature_flags_flag_target_created_context.rb +22 -0
  111. data/lib/workos/shared/feature_flags_flag_target_created_context_actor.rb +25 -0
  112. data/lib/workos/shared/feature_flags_flag_target_deleted.rb +34 -0
  113. data/lib/workos/shared/feature_flags_flag_target_deleted_context.rb +22 -0
  114. data/lib/workos/shared/feature_flags_flag_target_deleted_context_actor.rb +25 -0
  115. data/lib/workos/shared/feature_flags_flag_updated.rb +34 -0
  116. data/lib/workos/shared/feature_flags_flag_updated_context.rb +25 -0
  117. data/lib/workos/shared/feature_flags_flag_updated_context_actor.rb +25 -0
  118. data/lib/workos/shared/feature_flags_flag_updated_context_previous_attribute.rb +18 -0
  119. data/lib/workos/shared/feature_flags_flag_updated_context_previous_attribute_data.rb +34 -0
  120. data/lib/workos/shared/feature_flags_flag_updated_context_previous_attribute_data_owner.rb +7 -0
  121. data/lib/workos/shared/feature_flags_flag_updated_data.rb +7 -0
  122. data/lib/workos/shared/feature_flags_flag_updated_data_owner.rb +7 -0
  123. data/lib/workos/shared/idp_metadata_fetch_failed_error_body.rb +22 -0
  124. data/lib/workos/shared/invalid_client_oauth_error_body.rb +22 -0
  125. data/lib/workos/shared/invalid_connection_oauth_error_body.rb +22 -0
  126. data/lib/workos/shared/invalid_credentials_error_body.rb +22 -0
  127. data/lib/workos/shared/invalid_email_error_body.rb +22 -0
  128. data/lib/workos/shared/invalid_grant_oauth_error_body.rb +22 -0
  129. data/lib/workos/shared/invalid_idp_sso_url_error_body.rb +22 -0
  130. data/lib/workos/shared/invalid_link_authorization_code_oauth_error_body.rb +22 -0
  131. data/lib/workos/shared/invalid_locale_error_body.rb +22 -0
  132. data/lib/workos/shared/invalid_metadata_error_body.rb +22 -0
  133. data/lib/workos/shared/invalid_one_time_code_error_body.rb +22 -0
  134. data/lib/workos/shared/invalid_organization_id_error_body.rb +22 -0
  135. data/lib/workos/shared/invalid_password_hash_error_body.rb +22 -0
  136. data/lib/workos/shared/invalid_pending_authentication_token_error_body.rb +22 -0
  137. data/lib/workos/shared/invalid_profile_oauth_error_body.rb +22 -0
  138. data/lib/workos/shared/invalid_refresh_token_error_body.rb +22 -0
  139. data/lib/workos/shared/invalid_request_oauth_error_body.rb +22 -0
  140. data/lib/workos/shared/invalid_request_parameters_error_body.rb +22 -0
  141. data/lib/workos/shared/invalid_request_parameters_error_body_with_errors.rb +25 -0
  142. data/lib/workos/shared/invalid_role_error_body.rb +22 -0
  143. data/lib/workos/shared/invalid_url_error_body.rb +22 -0
  144. data/lib/workos/shared/mfa_challenge_error_body.rb +22 -0
  145. data/lib/workos/shared/mfa_enrollment_error_body.rb +22 -0
  146. data/lib/workos/shared/mfa_enrollment_oauth_error_body.rb +22 -0
  147. data/lib/workos/shared/multiple_roles_not_enabled_error_body.rb +22 -0
  148. data/lib/workos/shared/must_use_sso_for_selected_organization_message_error_body.rb +18 -0
  149. data/lib/workos/shared/oauth_data_integration_vended_credential.rb +40 -0
  150. data/lib/workos/shared/oauth_error_body.rb +22 -0
  151. data/lib/workos/shared/one_time_code_expired_error_body.rb +22 -0
  152. data/lib/workos/shared/one_time_code_previously_used_error_body.rb +22 -0
  153. data/lib/workos/shared/one_time_code_too_many_attempts_error_body.rb +22 -0
  154. data/lib/workos/shared/passkey_progressive_enrollment_error_body.rb +22 -0
  155. data/lib/workos/shared/phone_number_required_error_body.rb +22 -0
  156. data/lib/workos/shared/pkce_not_supported_oauth_error_body.rb +22 -0
  157. data/lib/workos/shared/policy_denied_error_body.rb +22 -0
  158. data/lib/workos/shared/radar_challenge_error_body.rb +22 -0
  159. data/lib/workos/shared/radar_sign_up_challenge_error_body.rb +22 -0
  160. data/lib/workos/shared/radar_sms_sign_in_challenge_error_body.rb +22 -0
  161. data/lib/workos/shared/rate_limit_exceeded_error_body_with_retry_after.rb +25 -0
  162. data/lib/workos/shared/sign_up_not_allowed_oauth_error_body.rb +22 -0
  163. data/lib/workos/shared/slow_down_oauth_error_body.rb +22 -0
  164. data/lib/workos/shared/sms_challenge_quota_reached_error_body.rb +22 -0
  165. data/lib/workos/shared/sms_challenge_rate_limited_error_body.rb +22 -0
  166. data/lib/workos/shared/sso_required_oauth_error_body_with_connection_ids_list_email_pending_authentication_token.rb +31 -0
  167. data/lib/workos/shared/sub_resource_scoped_role_not_allowed_error_body_with_role_slug.rb +25 -0
  168. data/lib/workos/shared/token_too_big_oauth_error_body.rb +22 -0
  169. data/lib/workos/shared/too_many_failed_verification_attempts_error_body_with_retry_after.rb +25 -0
  170. data/lib/workos/shared/too_many_requests_oauth_error_body.rb +22 -0
  171. data/lib/workos/shared/unauthorized_client_oauth_error_body.rb +22 -0
  172. data/lib/workos/shared/unauthorized_error_body.rb +18 -0
  173. data/lib/workos/shared/update_audit_logs_retention_with_retention_period.rb +18 -0
  174. data/lib/workos/shared/update_audit_logs_retention_with_retention_period_in_days.rb +26 -0
  175. data/lib/workos/shared/update_user_organization_membership_with_role_slug.rb +18 -0
  176. data/lib/workos/shared/update_user_organization_membership_with_role_slugs.rb +18 -0
  177. data/lib/workos/shared/verification_id_required_error_body.rb +22 -0
  178. data/lib/workos/sso/connection_could_not_be_verified_error_body.rb +22 -0
  179. data/lib/workos/sso/connection_creation_conflict_error_body.rb +22 -0
  180. data/lib/workos/sso/connection_creation_not_found_error_body.rb +22 -0
  181. data/lib/workos/sso/connection_finish_error_body.rb +22 -0
  182. data/lib/workos/sso/connection_type_not_updatable_error_body.rb +22 -0
  183. data/lib/workos/types/authorization_url_not_found_error_body_code.rb +14 -0
  184. data/lib/workos/types/authorization_url_request_error_body_code.rb +14 -0
  185. data/lib/workos/types/connection_creation_conflict_error_body_code.rb +13 -0
  186. data/lib/workos/types/connection_creation_not_found_error_body_code.rb +13 -0
  187. data/lib/workos/types/connection_finish_error_body_code.rb +29 -0
  188. data/lib/workos/types/create_data_integration_ownership.rb +5 -1
  189. data/lib/workos/types/create_magic_code_and_return_locale.rb +101 -0
  190. data/lib/workos/types/{connected_account_write_response_auth_method.rb → create_password_reset_token_locale.rb} +1 -1
  191. data/lib/workos/types/create_user_invite_options_locale.rb +1 -93
  192. data/lib/workos/types/create_webhook_endpoint_events.rb +9 -1
  193. data/lib/workos/types/data_integration_access_token_response_with_error_error.rb +9 -0
  194. data/lib/workos/types/data_integration_credentials_response_with_error_error.rb +9 -0
  195. data/lib/workos/types/data_integration_ownership.rb +1 -1
  196. data/lib/workos/types/data_integrations_create_api_key_connection_request_connection_owner.rb +1 -1
  197. data/lib/workos/types/data_integrations_create_client_credentials_connection_request_connection_owner.rb +1 -1
  198. data/lib/workos/types/data_integrations_get_data_integration_authorize_url_request_connection_intent.rb +13 -0
  199. data/lib/workos/types/data_integrations_get_data_integration_authorize_url_request_connection_owner.rb +1 -1
  200. data/lib/workos/types/data_integrations_get_user_token_request_connection_owner.rb +1 -1
  201. data/lib/workos/types/data_integrations_list_response_data_connection_owner.rb +1 -1
  202. data/lib/workos/types/data_integrations_upsert_api_key_request_connection_owner.rb +1 -1
  203. data/lib/workos/types/data_integrations_upsert_client_credentials_request_connection_owner.rb +1 -1
  204. data/lib/workos/types/data_integrations_vend_credentials_request_connection_owner.rb +1 -1
  205. data/lib/workos/types/error_body_code.rb +183 -0
  206. data/lib/workos/types/{connected_account_write_response_connection_role.rb → feature_flags_flag_created_context_actor_source.rb} +1 -1
  207. data/lib/workos/types/feature_flags_flag_deleted_context_actor_source.rb +9 -0
  208. data/lib/workos/types/feature_flags_flag_rule_created_context_actor_source.rb +9 -0
  209. data/lib/workos/types/feature_flags_flag_rule_deleted_context_actor_source.rb +9 -0
  210. data/lib/workos/types/feature_flags_flag_rule_updated_context_actor_source.rb +9 -0
  211. data/lib/workos/types/feature_flags_flag_target_created_context_actor_source.rb +9 -0
  212. data/lib/workos/types/feature_flags_flag_target_deleted_context_actor_source.rb +9 -0
  213. data/lib/workos/types/feature_flags_flag_updated_context_actor_source.rb +9 -0
  214. data/lib/workos/types/organization_connected_account_import_error_body_code.rb +14 -0
  215. data/lib/workos/types/pipes_ownership.rb +1 -1
  216. data/lib/workos/types/resend_user_invite_options_locale.rb +1 -1
  217. data/lib/workos/types/resource_export_completed_data_resource_type.rb +3 -1
  218. data/lib/workos/types/{connected_account_write_response_state.rb → send_email_change_locale.rb} +1 -1
  219. data/lib/workos/types/send_verification_email_locale.rb +9 -0
  220. data/lib/workos/types/update_audit_logs_retention_with_retention_period_retention_period.rb +9 -0
  221. data/lib/workos/types/user_connected_account_import_error_body_code.rb +15 -0
  222. data/lib/workos/types/widget_session_token_scopes.rb +3 -1
  223. data/lib/workos/user_management/action_denied_error_body.rb +22 -0
  224. data/lib/workos/user_management/authentication_method_not_allowed_error_body.rb +22 -0
  225. data/lib/workos/user_management/authentication_method_not_allowed_oauth_error_body.rb +22 -0
  226. data/lib/workos/user_management/create_magic_code_and_return.rb +5 -2
  227. data/lib/workos/user_management/create_password_reset_token.rb +16 -1
  228. data/lib/workos/user_management/email_already_in_use_error_body.rb +22 -0
  229. data/lib/workos/user_management/email_already_verified_error_body.rb +22 -0
  230. data/lib/workos/user_management/email_change_not_allowed_error_body.rb +22 -0
  231. data/lib/workos/user_management/email_completion_required_error_body_with_email_completion_token.rb +25 -0
  232. data/lib/workos/user_management/email_domain_not_deliverable_error_body.rb +22 -0
  233. data/lib/workos/user_management/email_not_available_error_body.rb +22 -0
  234. data/lib/workos/user_management/email_password_auth_disabled_error_body.rb +22 -0
  235. data/lib/workos/user_management/email_verification_required_error_body.rb +22 -0
  236. data/lib/workos/user_management/invitation_cannot_be_used_for_email_oauth_error_body.rb +22 -0
  237. data/lib/workos/user_management/invitation_invalid_oauth_error_body.rb +22 -0
  238. data/lib/workos/user_management/password_and_password_hash_provided_error_body.rb +22 -0
  239. data/lib/workos/user_management/password_and_password_hash_type_provided_error_body.rb +22 -0
  240. data/lib/workos/user_management/password_salt_position_requires_password_hash_error_body.rb +22 -0
  241. data/lib/workos/user_management/password_strength_error_error_body_with_errors.rb +25 -0
  242. data/lib/workos/user_management/send_email_change.rb +6 -2
  243. data/lib/workos/user_management/send_verification_email.rb +18 -0
  244. data/lib/workos/user_management/user_connected_account_import_error_body.rb +22 -0
  245. data/lib/workos/user_management/user_consent_options_not_supported_error_body.rb +22 -0
  246. data/lib/workos/user_management/user_creation_error_error_body_with_errors.rb +25 -0
  247. data/lib/workos/user_management/user_mismatch_error_body.rb +22 -0
  248. data/lib/workos/user_management/waitlist_list_response.rb +25 -0
  249. data/lib/workos/user_management/waitlist_list_response_list_metadata.rb +7 -0
  250. data/lib/workos/user_management.rb +25 -10
  251. data/lib/workos/version.rb +1 -1
  252. data/rbi/workos/access_denied_oauth_error_body.rbi +30 -0
  253. data/rbi/workos/{connected_account_write_response_warning.rbi → account_selection_required_error_body.rbi} +1 -1
  254. data/rbi/workos/action_denied_error_body.rbi +30 -0
  255. data/rbi/workos/admin_portal.rbi +2 -2
  256. data/rbi/workos/agents.rbi +20 -20
  257. data/rbi/workos/already_claimed_error_body.rbi +30 -0
  258. data/rbi/workos/api_key_data_integration_vended_credential.rbi +42 -0
  259. data/rbi/workos/api_keys.rbi +5 -5
  260. data/rbi/workos/application_consent_required_error_body.rbi +30 -0
  261. data/rbi/workos/audit_logs.rbi +10 -10
  262. data/rbi/workos/auth_method_mismatch_error_body.rbi +30 -0
  263. data/rbi/workos/authentication_method_not_allowed_error_body.rbi +30 -0
  264. data/rbi/workos/authentication_method_not_allowed_oauth_error_body.rbi +30 -0
  265. data/rbi/workos/authorization.rbi +55 -45
  266. data/rbi/workos/authorization_pending_oauth_error_body.rbi +30 -0
  267. data/rbi/workos/authorization_url_not_found_error_body.rbi +30 -0
  268. data/rbi/workos/authorization_url_request_error_body.rbi +30 -0
  269. data/rbi/workos/client_api.rbi +1 -1
  270. data/rbi/workos/client_credentials_data_integration_vended_credential.rbi +66 -0
  271. data/rbi/workos/code_challenge_not_found_error_body.rbi +30 -0
  272. data/rbi/workos/connect.rbi +12 -10
  273. data/rbi/workos/connect_application_oauth.rbi +6 -0
  274. data/rbi/workos/connected_account.rbi +6 -0
  275. data/rbi/workos/connected_account_limit_reached_error_body.rbi +30 -0
  276. data/rbi/workos/connected_account_warning.rbi +30 -0
  277. data/rbi/workos/connection_could_not_be_verified_error_body.rbi +30 -0
  278. data/rbi/workos/connection_creation_conflict_error_body.rbi +30 -0
  279. data/rbi/workos/connection_creation_not_found_error_body.rbi +30 -0
  280. data/rbi/workos/connection_finish_error_body.rbi +30 -0
  281. data/rbi/workos/connection_type_not_updatable_error_body.rbi +30 -0
  282. data/rbi/workos/create_magic_code_and_return.rbi +6 -0
  283. data/rbi/workos/create_oauth_application.rbi +6 -0
  284. data/rbi/workos/create_password_reset_token.rbi +6 -0
  285. data/rbi/workos/daily_quota_exceeded_error_body.rbi +30 -0
  286. data/rbi/workos/data_integration_access_token_response_with_access_token.rbi +30 -0
  287. data/rbi/workos/data_integration_access_token_response_with_access_token_access_token.rbi +48 -0
  288. data/rbi/workos/data_integration_access_token_response_with_error.rbi +30 -0
  289. data/rbi/workos/data_integration_authorize_url_response.rbi +12 -0
  290. data/rbi/workos/data_integration_credentials_response_with_credential.rbi +30 -0
  291. data/rbi/workos/data_integration_credentials_response_with_error.rbi +30 -0
  292. data/rbi/workos/data_integration_finish_connection_response.rbi +24 -0
  293. data/rbi/workos/data_integration_vended_credential.rbi +6 -6
  294. data/rbi/workos/data_integrations_finish_connection_request.rbi +36 -0
  295. data/rbi/workos/data_integrations_get_data_integration_authorize_url_request.rbi +24 -0
  296. data/rbi/workos/data_integrations_list_response_data_connected_account.rbi +6 -0
  297. data/rbi/workos/data_integrations_list_response_data_connected_account_warning.rbi +30 -0
  298. data/rbi/workos/data_integrations_upsert_api_key_request.rbi +12 -0
  299. data/rbi/workos/data_integrations_upsert_client_credentials_request.rbi +12 -0
  300. data/rbi/workos/directory_sync.rbi +8 -8
  301. data/rbi/workos/email_already_in_use_error_body.rbi +30 -0
  302. data/rbi/workos/email_already_verified_error_body.rbi +30 -0
  303. data/rbi/workos/email_change_not_allowed_error_body.rbi +30 -0
  304. data/rbi/workos/email_completion_required_error_body_with_email_completion_token.rbi +36 -0
  305. data/rbi/workos/email_domain_not_deliverable_error_body.rbi +30 -0
  306. data/rbi/workos/email_not_available_error_body.rbi +30 -0
  307. data/rbi/workos/email_password_auth_disabled_error_body.rbi +30 -0
  308. data/rbi/workos/email_verification_required_error_body.rbi +30 -0
  309. data/rbi/workos/entity_not_found_error_body.rbi +30 -0
  310. data/rbi/workos/error_body.rbi +24 -0
  311. data/rbi/workos/error_body_with_code.rbi +30 -0
  312. data/rbi/workos/error_body_with_code_errors.rbi +36 -0
  313. data/rbi/workos/error_body_with_code_field_error.rbi +30 -0
  314. data/rbi/workos/error_body_with_code_field_errors.rbi +30 -0
  315. data/rbi/workos/error_body_with_code_instance_path_error.rbi +24 -0
  316. data/rbi/workos/error_body_with_code_instance_path_errors.rbi +36 -0
  317. data/rbi/workos/error_body_with_code_status_code.rbi +36 -0
  318. data/rbi/workos/error_body_with_constraints_property_error.rbi +30 -0
  319. data/rbi/workos/error_body_with_constraints_property_errors.rbi +30 -0
  320. data/rbi/workos/error_body_with_error.rbi +30 -0
  321. data/rbi/workos/error_body_with_error_message_list.rbi +30 -0
  322. data/rbi/workos/error_body_with_message_or_message_list.rbi +24 -0
  323. data/rbi/workos/events.rbi +1 -3
  324. data/rbi/workos/expired_token_oauth_error_body.rbi +30 -0
  325. data/rbi/workos/external_auth_session_already_completed_error_body.rbi +30 -0
  326. data/rbi/workos/external_id_already_used_error_body.rbi +30 -0
  327. data/rbi/workos/extra_attributes_required_oauth_error_body.rbi +30 -0
  328. data/rbi/workos/feature_flags.rbi +8 -8
  329. data/rbi/workos/feature_flags_flag_created.rbi +54 -0
  330. data/rbi/workos/feature_flags_flag_created_context.rbi +30 -0
  331. data/rbi/workos/feature_flags_flag_created_context_actor.rbi +36 -0
  332. data/rbi/workos/feature_flags_flag_created_data.rbi +90 -0
  333. data/rbi/workos/feature_flags_flag_created_data_owner.rbi +36 -0
  334. data/rbi/workos/feature_flags_flag_deleted.rbi +54 -0
  335. data/rbi/workos/feature_flags_flag_deleted_context.rbi +30 -0
  336. data/rbi/workos/feature_flags_flag_deleted_context_actor.rbi +36 -0
  337. data/rbi/workos/feature_flags_flag_deleted_data.rbi +90 -0
  338. data/rbi/workos/feature_flags_flag_deleted_data_owner.rbi +36 -0
  339. data/rbi/workos/feature_flags_flag_rule_created.rbi +54 -0
  340. data/rbi/workos/feature_flags_flag_rule_created_context.rbi +30 -0
  341. data/rbi/workos/feature_flags_flag_rule_created_context_actor.rbi +36 -0
  342. data/rbi/workos/feature_flags_flag_rule_deleted.rbi +54 -0
  343. data/rbi/workos/feature_flags_flag_rule_deleted_context.rbi +30 -0
  344. data/rbi/workos/feature_flags_flag_rule_deleted_context_actor.rbi +36 -0
  345. data/rbi/workos/feature_flags_flag_rule_updated.rbi +54 -0
  346. data/rbi/workos/feature_flags_flag_rule_updated_context.rbi +36 -0
  347. data/rbi/workos/feature_flags_flag_rule_updated_context_actor.rbi +36 -0
  348. data/rbi/workos/feature_flags_flag_rule_updated_context_previous_attribute.rbi +24 -0
  349. data/rbi/workos/feature_flags_flag_rule_updated_context_previous_attribute_data.rbi +24 -0
  350. data/rbi/workos/feature_flags_flag_target_created.rbi +54 -0
  351. data/rbi/workos/feature_flags_flag_target_created_context.rbi +30 -0
  352. data/rbi/workos/feature_flags_flag_target_created_context_actor.rbi +36 -0
  353. data/rbi/workos/feature_flags_flag_target_deleted.rbi +54 -0
  354. data/rbi/workos/feature_flags_flag_target_deleted_context.rbi +30 -0
  355. data/rbi/workos/feature_flags_flag_target_deleted_context_actor.rbi +36 -0
  356. data/rbi/workos/feature_flags_flag_updated.rbi +54 -0
  357. data/rbi/workos/feature_flags_flag_updated_context.rbi +36 -0
  358. data/rbi/workos/feature_flags_flag_updated_context_actor.rbi +36 -0
  359. data/rbi/workos/feature_flags_flag_updated_context_previous_attribute.rbi +24 -0
  360. data/rbi/workos/feature_flags_flag_updated_context_previous_attribute_data.rbi +54 -0
  361. data/rbi/workos/feature_flags_flag_updated_context_previous_attribute_data_owner.rbi +36 -0
  362. data/rbi/workos/feature_flags_flag_updated_data.rbi +90 -0
  363. data/rbi/workos/feature_flags_flag_updated_data_owner.rbi +36 -0
  364. data/rbi/workos/flag_rule.rbi +84 -0
  365. data/rbi/workos/flag_target.rbi +90 -0
  366. data/rbi/workos/flag_target_with_rule_id.rbi +78 -0
  367. data/rbi/workos/flag_target_with_value_type.rbi +84 -0
  368. data/rbi/workos/group_role_assignment_list.rbi +36 -0
  369. data/rbi/workos/groups.rbi +19 -8
  370. data/rbi/workos/idp_metadata_fetch_failed_error_body.rbi +30 -0
  371. data/rbi/workos/invalid_client_oauth_error_body.rbi +30 -0
  372. data/rbi/workos/invalid_connection_oauth_error_body.rbi +30 -0
  373. data/rbi/workos/invalid_credentials_error_body.rbi +30 -0
  374. data/rbi/workos/invalid_email_error_body.rbi +30 -0
  375. data/rbi/workos/invalid_grant_oauth_error_body.rbi +30 -0
  376. data/rbi/workos/invalid_idp_sso_url_error_body.rbi +30 -0
  377. data/rbi/workos/invalid_link_authorization_code_oauth_error_body.rbi +30 -0
  378. data/rbi/workos/invalid_locale_error_body.rbi +30 -0
  379. data/rbi/workos/invalid_metadata_error_body.rbi +30 -0
  380. data/rbi/workos/invalid_one_time_code_error_body.rbi +30 -0
  381. data/rbi/workos/invalid_organization_id_error_body.rbi +30 -0
  382. data/rbi/workos/invalid_password_hash_error_body.rbi +30 -0
  383. data/rbi/workos/invalid_pending_authentication_token_error_body.rbi +30 -0
  384. data/rbi/workos/invalid_profile_oauth_error_body.rbi +30 -0
  385. data/rbi/workos/invalid_refresh_token_error_body.rbi +30 -0
  386. data/rbi/workos/invalid_request_oauth_error_body.rbi +30 -0
  387. data/rbi/workos/invalid_request_parameters_error_body.rbi +30 -0
  388. data/rbi/workos/invalid_request_parameters_error_body_with_errors.rbi +36 -0
  389. data/rbi/workos/invalid_role_error_body.rbi +30 -0
  390. data/rbi/workos/invalid_url_error_body.rbi +30 -0
  391. data/rbi/workos/invitation_cannot_be_used_for_email_oauth_error_body.rbi +30 -0
  392. data/rbi/workos/invitation_invalid_oauth_error_body.rbi +30 -0
  393. data/rbi/workos/it_contact_list.rbi +36 -0
  394. data/rbi/workos/it_contact_list_list_metadata.rbi +30 -0
  395. data/rbi/workos/list_metadata.rbi +30 -0
  396. data/rbi/workos/mfa_challenge_error_body.rbi +30 -0
  397. data/rbi/workos/mfa_enrollment_error_body.rbi +30 -0
  398. data/rbi/workos/mfa_enrollment_oauth_error_body.rbi +30 -0
  399. data/rbi/workos/multi_factor_auth.rbi +7 -7
  400. data/rbi/workos/multiple_roles_not_enabled_error_body.rbi +30 -0
  401. data/rbi/workos/must_use_sso_for_selected_organization_message_error_body.rbi +24 -0
  402. data/rbi/workos/oauth_data_integration_vended_credential.rbi +66 -0
  403. data/rbi/workos/oauth_error_body.rbi +30 -0
  404. data/rbi/workos/one_time_code_expired_error_body.rbi +30 -0
  405. data/rbi/workos/one_time_code_previously_used_error_body.rbi +30 -0
  406. data/rbi/workos/one_time_code_too_many_attempts_error_body.rbi +30 -0
  407. data/rbi/workos/organization_authentication_methods_required_oauth_error_body.rbi +30 -0
  408. data/rbi/workos/organization_connected_account_import_error_body.rbi +30 -0
  409. data/rbi/workos/organization_domains.rbi +4 -4
  410. data/rbi/workos/organization_membership_not_found_oauth_error_body.rbi +30 -0
  411. data/rbi/workos/organization_membership_service.rbi +8 -8
  412. data/rbi/workos/organization_not_found_oauth_error_body.rbi +30 -0
  413. data/rbi/workos/organization_selection_required_error_body.rbi +30 -0
  414. data/rbi/workos/organization_selection_required_error_body_with_organization.rbi +30 -0
  415. data/rbi/workos/organization_selection_required_error_body_with_organizations.rbi +36 -0
  416. data/rbi/workos/organizations.rbi +13 -13
  417. data/rbi/workos/passkey_progressive_enrollment_error_body.rbi +30 -0
  418. data/rbi/workos/password_and_password_hash_provided_error_body.rbi +30 -0
  419. data/rbi/workos/password_and_password_hash_type_provided_error_body.rbi +30 -0
  420. data/rbi/workos/password_salt_position_requires_password_hash_error_body.rbi +30 -0
  421. data/rbi/workos/password_strength_error_error_body_with_errors.rbi +36 -0
  422. data/rbi/workos/patch_group_memberships.rbi +30 -0
  423. data/rbi/workos/patch_group_role_assignments.rbi +30 -0
  424. data/rbi/workos/phone_number_required_error_body.rbi +30 -0
  425. data/rbi/workos/pipes.rbi +51 -33
  426. data/rbi/workos/pipes_provider.rbi +2 -2
  427. data/rbi/workos/pkce_not_supported_oauth_error_body.rbi +30 -0
  428. data/rbi/workos/platform_teams.rbi +2 -2
  429. data/rbi/workos/policy_denied_error_body.rbi +30 -0
  430. data/rbi/workos/radar.rbi +4 -4
  431. data/rbi/workos/radar_challenge_error_body.rbi +30 -0
  432. data/rbi/workos/radar_sign_up_challenge_error_body.rbi +30 -0
  433. data/rbi/workos/radar_sms_sign_in_challenge_error_body.rbi +30 -0
  434. data/rbi/workos/rate_limit_exceeded_error_body_with_retry_after.rbi +36 -0
  435. data/rbi/workos/send_email_change.rbi +6 -0
  436. data/rbi/workos/send_verification_email.rbi +24 -0
  437. data/rbi/workos/sign_up_not_allowed_oauth_error_body.rbi +30 -0
  438. data/rbi/workos/slow_down_oauth_error_body.rbi +30 -0
  439. data/rbi/workos/sms_challenge_quota_reached_error_body.rbi +30 -0
  440. data/rbi/workos/sms_challenge_rate_limited_error_body.rbi +30 -0
  441. data/rbi/workos/sso.rbi +18 -18
  442. data/rbi/workos/sso_required_oauth_error_body_with_connection_ids_list_email_pending_authentication_token.rbi +48 -0
  443. data/rbi/workos/sub_resource_scoped_role_not_allowed_error_body_with_role_slug.rbi +36 -0
  444. data/rbi/workos/token_too_big_oauth_error_body.rbi +30 -0
  445. data/rbi/workos/too_many_failed_verification_attempts_error_body_with_retry_after.rbi +36 -0
  446. data/rbi/workos/too_many_requests_oauth_error_body.rbi +30 -0
  447. data/rbi/workos/unauthorized_client_oauth_error_body.rbi +30 -0
  448. data/rbi/workos/unauthorized_error_body.rbi +24 -0
  449. data/rbi/workos/update_audit_logs_retention_with_retention_period.rbi +24 -0
  450. data/rbi/workos/update_audit_logs_retention_with_retention_period_in_days.rbi +24 -0
  451. data/rbi/workos/update_oauth_application.rbi +6 -0
  452. data/rbi/workos/update_user_organization_membership_with_role_slug.rbi +24 -0
  453. data/rbi/workos/update_user_organization_membership_with_role_slugs.rbi +24 -0
  454. data/rbi/workos/user_connected_account_import_error_body.rbi +30 -0
  455. data/rbi/workos/user_consent_options_not_supported_error_body.rbi +30 -0
  456. data/rbi/workos/user_creation_error_error_body_with_errors.rbi +36 -0
  457. data/rbi/workos/user_management.rbi +77 -61
  458. data/rbi/workos/user_mismatch_error_body.rbi +30 -0
  459. data/rbi/workos/vault.rbi +11 -11
  460. data/rbi/workos/verification_id_required_error_body.rbi +30 -0
  461. data/rbi/workos/version_list_response.rbi +30 -0
  462. data/rbi/workos/waitlist_list_response.rbi +36 -0
  463. data/rbi/workos/waitlist_list_response_list_metadata.rbi +30 -0
  464. data/rbi/workos/webhooks.rbi +4 -4
  465. data/rbi/workos/widgets.rbi +1 -1
  466. data/test/workos/test_agents_model_round_trip.rb +11 -0
  467. data/test/workos/test_api_keys_model_round_trip.rb +14 -0
  468. data/test/workos/test_authorization.rb +8 -0
  469. data/test/workos/test_authorization_model_round_trip.rb +23 -0
  470. data/test/workos/test_base_client.rb +4 -3
  471. data/test/workos/test_connect_model_round_trip.rb +3 -1
  472. data/test/workos/test_feature_flags_model_round_trip.rb +107 -0
  473. data/test/workos/test_groups.rb +8 -0
  474. data/test/workos/test_groups_model_round_trip.rb +11 -0
  475. data/test/workos/test_organizations_model_round_trip.rb +111 -0
  476. data/test/workos/test_pipes.rb +8 -0
  477. data/test/workos/test_pipes_model_round_trip.rb +94 -200
  478. data/test/workos/test_shared_model_round_trip.rb +2051 -432
  479. data/test/workos/test_sso_model_round_trip.rb +60 -0
  480. data/test/workos/test_user_management_model_round_trip.rb +297 -3
  481. data/test/workos/test_vault_model_round_trip.rb +30 -0
  482. metadata +376 -26
  483. data/lib/workos/pipes/add_data_integrations_get_data_integration_authorize_url_request.rb +0 -37
  484. data/lib/workos/pipes/connected_account_write_response.rb +0 -73
  485. data/lib/workos/pipes/data_integrations_upsert_api_key_request_2.rb +0 -37
  486. data/lib/workos/pipes/data_integrations_upsert_client_credentials_request_2.rb +0 -43
  487. data/lib/workos/pipes/reauthorize_data_integrations_get_data_integration_authorize_url_request.rb +0 -40
  488. data/lib/workos/pipes/reauthorize_data_integrations_upsert_api_key_request.rb +0 -40
  489. data/lib/workos/pipes/reauthorize_data_integrations_upsert_client_credentials_request.rb +0 -46
  490. data/lib/workos/types/add_data_integrations_get_data_integration_authorize_url_request_connection_owner.rb +0 -13
  491. data/lib/workos/types/data_integrations_upsert_api_key_request_2_connection_owner.rb +0 -9
  492. data/lib/workos/types/data_integrations_upsert_client_credentials_request_2_connection_owner.rb +0 -9
  493. data/lib/workos/types/reauthorize_data_integrations_get_data_integration_authorize_url_request_connection_owner.rb +0 -9
  494. data/lib/workos/types/reauthorize_data_integrations_upsert_api_key_request_connection_owner.rb +0 -9
  495. data/lib/workos/types/reauthorize_data_integrations_upsert_client_credentials_request_connection_owner.rb +0 -9
  496. data/rbi/workos/add_data_integrations_get_data_integration_authorize_url_request.rbi +0 -60
  497. data/rbi/workos/connected_account_write_response.rbi +0 -132
  498. data/rbi/workos/data_integrations_upsert_api_key_request_2.rbi +0 -60
  499. data/rbi/workos/data_integrations_upsert_client_credentials_request_2.rbi +0 -72
  500. data/rbi/workos/reauthorize_data_integrations_get_data_integration_authorize_url_request.rbi +0 -66
  501. data/rbi/workos/reauthorize_data_integrations_upsert_api_key_request.rbi +0 -66
  502. data/rbi/workos/reauthorize_data_integrations_upsert_client_credentials_request.rbi +0 -78
@@ -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 EmailPasswordAuthDisabledErrorBody < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ code: :code,
9
+ message: :message
10
+ }.freeze
11
+
12
+ attr_accessor \
13
+ :code,
14
+ :message
15
+
16
+ def initialize(json)
17
+ hash = self.class.normalize(json)
18
+ @code = hash[:code]
19
+ @message = hash[:message]
20
+ end
21
+ end
22
+ 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 EmailVerificationRequiredErrorBody < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ code: :code,
9
+ message: :message
10
+ }.freeze
11
+
12
+ attr_accessor \
13
+ :code,
14
+ :message
15
+
16
+ def initialize(json)
17
+ hash = self.class.normalize(json)
18
+ @code = hash[:code]
19
+ @message = hash[:message]
20
+ end
21
+ end
22
+ 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 InvitationCannotBeUsedForEmailOAuthErrorBody < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ error: :error,
9
+ error_description: :error_description
10
+ }.freeze
11
+
12
+ attr_accessor \
13
+ :error,
14
+ :error_description
15
+
16
+ def initialize(json)
17
+ hash = self.class.normalize(json)
18
+ @error = hash[:error]
19
+ @error_description = hash[:error_description]
20
+ end
21
+ end
22
+ 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 InvitationInvalidOAuthErrorBody < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ error: :error,
9
+ error_description: :error_description
10
+ }.freeze
11
+
12
+ attr_accessor \
13
+ :error,
14
+ :error_description
15
+
16
+ def initialize(json)
17
+ hash = self.class.normalize(json)
18
+ @error = hash[:error]
19
+ @error_description = hash[:error_description]
20
+ end
21
+ end
22
+ 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 PasswordAndPasswordHashProvidedErrorBody < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ code: :code,
9
+ message: :message
10
+ }.freeze
11
+
12
+ attr_accessor \
13
+ :code,
14
+ :message
15
+
16
+ def initialize(json)
17
+ hash = self.class.normalize(json)
18
+ @code = hash[:code]
19
+ @message = hash[:message]
20
+ end
21
+ end
22
+ 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 PasswordAndPasswordHashTypeProvidedErrorBody < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ code: :code,
9
+ message: :message
10
+ }.freeze
11
+
12
+ attr_accessor \
13
+ :code,
14
+ :message
15
+
16
+ def initialize(json)
17
+ hash = self.class.normalize(json)
18
+ @code = hash[:code]
19
+ @message = hash[:message]
20
+ end
21
+ end
22
+ 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 PasswordSaltPositionRequiresPasswordHashErrorBody < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ code: :code,
9
+ message: :message
10
+ }.freeze
11
+
12
+ attr_accessor \
13
+ :code,
14
+ :message
15
+
16
+ def initialize(json)
17
+ hash = self.class.normalize(json)
18
+ @code = hash[:code]
19
+ @message = hash[:message]
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class PasswordStrengthErrorErrorBodyWithErrors < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ code: :code,
9
+ message: :message,
10
+ errors: :errors
11
+ }.freeze
12
+
13
+ attr_accessor \
14
+ :code,
15
+ :message,
16
+ :errors
17
+
18
+ def initialize(json)
19
+ hash = self.class.normalize(json)
20
+ @code = hash[:code]
21
+ @message = hash[:message]
22
+ @errors = (hash[:errors] || []).map { |item| item ? WorkOS::ErrorBodyWithCode.new(item) : nil }
23
+ end
24
+ end
25
+ end
@@ -5,14 +5,18 @@
5
5
  module WorkOS
6
6
  class SendEmailChange < WorkOS::Types::BaseModel
7
7
  HASH_ATTRS = {
8
- new_email: :new_email
8
+ new_email: :new_email,
9
+ locale: :locale
9
10
  }.freeze
10
11
 
11
- attr_accessor :new_email
12
+ attr_accessor \
13
+ :new_email,
14
+ :locale
12
15
 
13
16
  def initialize(json)
14
17
  hash = self.class.normalize(json)
15
18
  @new_email = hash[:new_email]
19
+ @locale = hash[:locale]
16
20
  end
17
21
  end
18
22
  end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class SendVerificationEmail < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ locale: :locale
9
+ }.freeze
10
+
11
+ attr_accessor :locale
12
+
13
+ def initialize(json)
14
+ hash = self.class.normalize(json)
15
+ @locale = hash[:locale]
16
+ end
17
+ end
18
+ 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 UserConnectedAccountImportErrorBody < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ code: :code,
9
+ message: :message
10
+ }.freeze
11
+
12
+ attr_accessor \
13
+ :code,
14
+ :message
15
+
16
+ def initialize(json)
17
+ hash = self.class.normalize(json)
18
+ @code = hash[:code]
19
+ @message = hash[:message]
20
+ end
21
+ end
22
+ 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 UserConsentOptionsNotSupportedErrorBody < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ code: :code,
9
+ message: :message
10
+ }.freeze
11
+
12
+ attr_accessor \
13
+ :code,
14
+ :message
15
+
16
+ def initialize(json)
17
+ hash = self.class.normalize(json)
18
+ @code = hash[:code]
19
+ @message = hash[:message]
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class UserCreationErrorErrorBodyWithErrors < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ code: :code,
9
+ message: :message,
10
+ errors: :errors
11
+ }.freeze
12
+
13
+ attr_accessor \
14
+ :code,
15
+ :message,
16
+ :errors
17
+
18
+ def initialize(json)
19
+ hash = self.class.normalize(json)
20
+ @code = hash[:code]
21
+ @message = hash[:message]
22
+ @errors = (hash[:errors] || []).map { |item| item ? WorkOS::ErrorBodyWithCode.new(item) : nil }
23
+ end
24
+ end
25
+ 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 UserMismatchErrorBody < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ code: :code,
9
+ message: :message
10
+ }.freeze
11
+
12
+ attr_accessor \
13
+ :code,
14
+ :message
15
+
16
+ def initialize(json)
17
+ hash = self.class.normalize(json)
18
+ @code = hash[:code]
19
+ @message = hash[:message]
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class WaitlistListResponse < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ object: :object,
9
+ data: :data,
10
+ list_metadata: :list_metadata
11
+ }.freeze
12
+
13
+ attr_accessor \
14
+ :object,
15
+ :data,
16
+ :list_metadata
17
+
18
+ def initialize(json)
19
+ hash = self.class.normalize(json)
20
+ @object = hash[:object]
21
+ @data = (hash[:data] || []).map { |item| item ? WorkOS::Waitlist.new(item) : nil }
22
+ @list_metadata = hash[:list_metadata] ? WorkOS::WaitlistListResponseListMetadata.new(hash[:list_metadata]) : nil
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ WaitlistListResponseListMetadata = ItContactListListMetadata
7
+ end
@@ -57,7 +57,7 @@ module WorkOS
57
57
  # @param code [String, nil] The authorization code received from the redirect.
58
58
  # @param code_verifier [String, nil] The PKCE code verifier used to derive the code challenge passed to the authorization URL.
59
59
  # @param invitation_token [String, nil] An invitation token to accept during authentication.
60
- # @param ip_address [String, nil] The IP address of the user's request.
60
+ # @param ip_address [String, nil] The IP address of the user's request. Required when Radar is in Decision mode.
61
61
  # @param device_id [String, nil] A unique identifier for the device.
62
62
  # @param user_agent [String, nil] The user agent string from the user's browser.
63
63
  # @param signals_id [String, nil] An optional Radar signals ID to correlate client-side signals with this authentication attempt.
@@ -880,15 +880,18 @@ module WorkOS
880
880
 
881
881
  # Create a password reset token
882
882
  # @param email [String] The email address of the user requesting a password reset.
883
+ # @param locale [WorkOS::Types::CreatePasswordResetTokenLocale, nil] The locale to use when rendering the password reset email. Defaults to the environment's default locale. See [supported locales](https://workos.com/docs/authkit/hosted-ui#localization).
883
884
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
884
885
  # @return [WorkOS::PasswordReset]
885
886
  def reset_password(
886
887
  email:,
888
+ locale: nil,
887
889
  request_options: {}
888
890
  )
889
891
  body = {
890
- "email" => email
891
- }
892
+ "email" => email,
893
+ "locale" => locale
894
+ }.compact
892
895
  response = @client.request(
893
896
  method: :post,
894
897
  path: "/user_management/password_reset",
@@ -1010,7 +1013,7 @@ module WorkOS
1010
1013
  # @param email_verified [Boolean, nil] Whether the user's email has been verified.
1011
1014
  # @param metadata [Hash{String => String}, nil] Object containing metadata key/value pairs associated with the user.
1012
1015
  # @param external_id [String, nil] The external ID of the user.
1013
- # @param ip_address [String, nil] The IP address of the user's request.
1016
+ # @param ip_address [String, nil] The IP address of the user's request. Required when Radar is in Decision mode.
1014
1017
  # @param user_agent [String, nil] The user agent string from the user's request.
1015
1018
  # @param signals_id [String, nil] An optional Radar signals ID to correlate client-side signals with this request.
1016
1019
  # @param password [WorkOS::UserManagement::PasswordPlaintext, WorkOS::UserManagement::PasswordHashed, nil] Identifies the password.
@@ -1209,16 +1212,19 @@ module WorkOS
1209
1212
  # Send email change code
1210
1213
  # @param id [String] The unique ID of the user.
1211
1214
  # @param new_email [String] The new email address to change to.
1215
+ # @param locale [WorkOS::Types::SendEmailChangeLocale, nil] The locale to use when rendering the email change email. Defaults to the environment's default locale. See [supported locales](https://workos.com/docs/authkit/hosted-ui#localization).
1212
1216
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
1213
1217
  # @return [WorkOS::EmailChange]
1214
1218
  def send_email_change(
1215
1219
  id:,
1216
1220
  new_email:,
1221
+ locale: nil,
1217
1222
  request_options: {}
1218
1223
  )
1219
1224
  body = {
1220
- "new_email" => new_email
1221
- }
1225
+ "new_email" => new_email,
1226
+ "locale" => locale
1227
+ }.compact
1222
1228
  response = @client.request(
1223
1229
  method: :post,
1224
1230
  path: "/user_management/users/#{WorkOS::Util.encode_path(id)}/email_change/send",
@@ -1258,16 +1264,22 @@ module WorkOS
1258
1264
 
1259
1265
  # Send verification email
1260
1266
  # @param id [String] The ID of the user.
1267
+ # @param locale [WorkOS::Types::SendVerificationEmailLocale, nil] The locale to use when rendering the verification email. Defaults to the environment's default locale. See [supported locales](https://workos.com/docs/authkit/hosted-ui#localization).
1261
1268
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
1262
1269
  # @return [WorkOS::SendVerificationEmailResponse]
1263
1270
  def send_verification_email(
1264
1271
  id:,
1272
+ locale: nil,
1265
1273
  request_options: {}
1266
1274
  )
1275
+ body = {
1276
+ "locale" => locale
1277
+ }.compact
1267
1278
  response = @client.request(
1268
1279
  method: :post,
1269
1280
  path: "/user_management/users/#{WorkOS::Util.encode_path(id)}/email_verification/send",
1270
1281
  auth: true,
1282
+ body: body,
1271
1283
  request_options: request_options
1272
1284
  )
1273
1285
  result = WorkOS::SendVerificationEmailResponse.new(response.body)
@@ -1398,7 +1410,7 @@ module WorkOS
1398
1410
  # @param role_slug [String, nil] The [role](https://workos.com/docs/authkit/roles) that the recipient will receive when they join the organization in the invitation.
1399
1411
  # @param expires_in_days [Integer, nil] How many days the invitations will be valid for. Must be between 1 and 30 days. Defaults to 7 days if not specified.
1400
1412
  # @param inviter_user_id [String, nil] The ID of the [user](https://workos.com/docs/reference/authkit/user) who invites the recipient. The invitation email will mention the name of this user.
1401
- # @param locale [WorkOS::Types::CreateUserInviteOptionsLocale, nil] The locale to use when rendering the invitation email. See [supported locales](https://workos.com/docs/authkit/hosted-ui/localization).
1413
+ # @param locale [WorkOS::Types::CreateUserInviteOptionsLocale, nil] The locale to use when rendering the invitation email. Defaults to the environment's default locale. See [supported locales](https://workos.com/docs/authkit/hosted-ui#localization).
1402
1414
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
1403
1415
  # @return [WorkOS::UserInvite]
1404
1416
  def send_invitation(
@@ -1489,7 +1501,7 @@ module WorkOS
1489
1501
 
1490
1502
  # Resend an invitation
1491
1503
  # @param id [String] The unique ID of the invitation.
1492
- # @param locale [WorkOS::Types::ResendUserInviteOptionsLocale, nil] The locale to use when rendering the invitation email. See [supported locales](https://workos.com/docs/authkit/hosted-ui/localization).
1504
+ # @param locale [WorkOS::Types::ResendUserInviteOptionsLocale, nil] The locale to use when rendering the invitation email. Defaults to the environment's default locale. See [supported locales](https://workos.com/docs/authkit/hosted-ui#localization).
1493
1505
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
1494
1506
  # @return [WorkOS::UserInvite]
1495
1507
  def resend_invitation(
@@ -1572,10 +1584,11 @@ module WorkOS
1572
1584
  # Create a Magic Auth code
1573
1585
  # @param email [String] The email address to send the magic code to.
1574
1586
  # @param invitation_token [String, nil] The invitation token to associate with this magic code.
1575
- # @param ip_address [String, nil] The IP address of the user's request.
1587
+ # @param ip_address [String, nil] The IP address of the user's request. Required when Radar is in Decision mode.
1576
1588
  # @param user_agent [String, nil] The user agent string from the user's request.
1577
1589
  # @param radar_auth_attempt_id [String, nil] The ID of an existing Radar authentication attempt to associate with this request.
1578
1590
  # @param signals_id [String, nil] An optional Radar signals ID to correlate client-side signals with this request.
1591
+ # @param locale [WorkOS::Types::CreateMagicCodeAndReturnLocale, nil] The locale to use when rendering the Magic Auth email. Defaults to the environment's default locale. See [supported locales](https://workos.com/docs/authkit/hosted-ui#localization).
1579
1592
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
1580
1593
  # @return [WorkOS::MagicAuthSendMagicAuthCodeAndReturnResponse]
1581
1594
  def create_magic_auth(
@@ -1585,6 +1598,7 @@ module WorkOS
1585
1598
  user_agent: nil,
1586
1599
  radar_auth_attempt_id: nil,
1587
1600
  signals_id: nil,
1601
+ locale: nil,
1588
1602
  request_options: {}
1589
1603
  )
1590
1604
  body = {
@@ -1593,7 +1607,8 @@ module WorkOS
1593
1607
  "ip_address" => ip_address,
1594
1608
  "user_agent" => user_agent,
1595
1609
  "radar_auth_attempt_id" => radar_auth_attempt_id,
1596
- "signals_id" => signals_id
1610
+ "signals_id" => signals_id,
1611
+ "locale" => locale
1597
1612
  }.compact
1598
1613
  response = @client.request(
1599
1614
  method: :post,
@@ -2,5 +2,5 @@
2
2
 
3
3
  # @oagen-ignore-file
4
4
  module WorkOS
5
- VERSION = "10.5.0"
5
+ VERSION = "10.6.0"
6
6
  end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ # typed: strong
6
+
7
+ module WorkOS
8
+ class AccessDeniedOAuthErrorBody
9
+ sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
10
+ def initialize(json); end
11
+
12
+ sig { returns(String) }
13
+ def error; end
14
+
15
+ sig { params(value: String).returns(String) }
16
+ def error=(value); end
17
+
18
+ sig { returns(String) }
19
+ def error_description; end
20
+
21
+ sig { params(value: String).returns(String) }
22
+ def error_description=(value); end
23
+
24
+ sig { returns(T::Hash[Symbol, T.untyped]) }
25
+ def to_h; end
26
+
27
+ sig { params(args: T.untyped).returns(String) }
28
+ def to_json(*args); end
29
+ end
30
+ end
@@ -5,7 +5,7 @@
5
5
  # typed: strong
6
6
 
7
7
  module WorkOS
8
- class ConnectedAccountWriteResponseWarning
8
+ class AccountSelectionRequiredErrorBody
9
9
  sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
10
10
  def initialize(json); end
11
11
 
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ # typed: strong
6
+
7
+ module WorkOS
8
+ class ActionDeniedErrorBody
9
+ sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
10
+ def initialize(json); end
11
+
12
+ sig { returns(String) }
13
+ def code; end
14
+
15
+ sig { params(value: String).returns(String) }
16
+ def code=(value); end
17
+
18
+ sig { returns(String) }
19
+ def message; end
20
+
21
+ sig { params(value: String).returns(String) }
22
+ def message=(value); end
23
+
24
+ sig { returns(T::Hash[Symbol, T.untyped]) }
25
+ def to_h; end
26
+
27
+ sig { params(args: T.untyped).returns(String) }
28
+ def to_json(*args); end
29
+ end
30
+ end
@@ -20,7 +20,7 @@ module WorkOS
20
20
  request_options: T::Hash[Symbol, T.untyped]
21
21
  ).returns(WorkOS::PortalLinkResponse)
22
22
  end
23
- def generate_link(organization:, return_url:, success_url:, external_user_id:, intent:, it_contact_emails:, request_options:); end
23
+ def generate_link(organization:, return_url: nil, success_url: nil, external_user_id: nil, intent: nil, it_contact_emails: nil, request_options: {}); end
24
24
 
25
25
  sig do
26
26
  params(
@@ -29,7 +29,7 @@ module WorkOS
29
29
  request_options: T::Hash[Symbol, T.untyped]
30
30
  ).returns(NilClass)
31
31
  end
32
- def revoke_link(organization:, external_user_id:, request_options:); end
32
+ def revoke_link(organization:, external_user_id:, request_options: {}); end
33
33
 
34
34
  end
35
35
  end