workos 9.5.1 → 10.3.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 (415) hide show
  1. checksums.yaml +4 -4
  2. data/.claude/CLAUDE.md +38 -0
  3. data/.github/workflows/block-generated-edits.yml +13 -0
  4. data/.github/workflows/ci.yml +2 -2
  5. data/.github/workflows/docs.yml +2 -2
  6. data/.github/workflows/lint.yml +2 -2
  7. data/.github/workflows/release-please.yml +11 -6
  8. data/.github/workflows/release.yml +2 -2
  9. data/.last-synced-sha +1 -1
  10. data/.oagen-manifest.json +502 -57
  11. data/.release-please-manifest.json +1 -1
  12. data/AGENTS.md +1 -0
  13. data/CHANGELOG.md +330 -2
  14. data/Gemfile.lock +2 -2
  15. data/README.md +15 -14
  16. data/lib/workos/agents/agent_admin_link_claim_attempt_to_external_user_request.rb +28 -0
  17. data/lib/workos/agents/agent_admin_link_claim_attempt_to_external_user_request_user.rb +22 -0
  18. data/lib/workos/agents/agent_admin_validate_credential_request.rb +25 -0
  19. data/lib/workos/agents/agent_blueprint.rb +43 -0
  20. data/lib/workos/agents/agent_blueprint_invocable_by.rb +7 -0
  21. data/lib/workos/agents/agent_blueprint_session_setting.rb +25 -0
  22. data/lib/workos/agents/agent_blueprints_create_request.rb +31 -0
  23. data/lib/workos/agents/agent_blueprints_create_request_invocable_by.rb +22 -0
  24. data/lib/workos/agents/agent_blueprints_create_request_session_setting.rb +7 -0
  25. data/lib/workos/agents/agent_blueprints_token_mint_token_request.rb +34 -0
  26. data/lib/workos/agents/agent_blueprints_token_validate_token_request.rb +18 -0
  27. data/lib/workos/agents/agent_blueprints_update_request.rb +31 -0
  28. data/lib/workos/agents/agent_blueprints_update_request_invocable_by.rb +7 -0
  29. data/lib/workos/agents/agent_blueprints_update_request_session_setting.rb +25 -0
  30. data/lib/workos/agents/agent_credential_validation.rb +25 -0
  31. data/lib/workos/{organization_domains/organization_domain_stand_alone.rb → agents/agent_instance.rb} +10 -16
  32. data/lib/workos/agents/agent_instance_session.rb +40 -0
  33. data/lib/workos/agents/agent_registration.rb +40 -0
  34. data/lib/workos/agents/agent_registration_agent_identity.rb +28 -0
  35. data/lib/workos/agents/agent_registration_claim.rb +31 -0
  36. data/lib/workos/agents/agent_registration_claim_claim_completion.rb +31 -0
  37. data/lib/workos/agents/agent_token.rb +40 -0
  38. data/lib/workos/agents/agent_token_validation.rb +40 -0
  39. data/lib/workos/agents/claim_view_response.rb +28 -0
  40. data/lib/workos/agents/claim_view_response_organization.rb +7 -0
  41. data/lib/workos/agents.rb +488 -0
  42. data/lib/workos/api_keys/api_key_validation_response.rb +6 -2
  43. data/lib/workos/api_keys/validate_api_key.rb +1 -12
  44. data/lib/workos/api_keys.rb +3 -4
  45. data/lib/workos/audit_logs.rb +23 -5
  46. data/lib/workos/authorization/permission_created_data.rb +1 -34
  47. data/lib/workos/authorization/permission_deleted_data.rb +1 -1
  48. data/lib/workos/authorization/permission_updated_data.rb +1 -1
  49. data/lib/workos/authorization.rb +27 -27
  50. data/lib/workos/base_client.rb +4 -4
  51. data/lib/workos/client.rb +8 -0
  52. data/lib/workos/connect.rb +25 -21
  53. data/lib/workos/directory_sync.rb +10 -2
  54. data/lib/workos/events.rb +2 -2
  55. data/lib/workos/groups.rb +13 -9
  56. data/lib/workos/inflections.rb +15 -1
  57. data/lib/workos/organization_domains.rb +4 -4
  58. data/lib/workos/{sso/connection_option.rb → organizations/create_it_contact.rb} +4 -4
  59. data/lib/workos/organizations/invite_it_contact.rb +18 -0
  60. data/lib/workos/organizations/it_contact.rb +31 -0
  61. data/lib/workos/organizations/it_contact_list.rb +25 -0
  62. data/lib/workos/organizations/organization_authorized_connect_application_list_data.rb +34 -0
  63. data/lib/workos/organizations/organization_input.rb +10 -1
  64. data/lib/workos/organizations/update_audit_logs_retention.rb +13 -1
  65. data/lib/workos/organizations.rb +167 -11
  66. data/lib/workos/pipes/api_key_installation.rb +25 -0
  67. data/lib/workos/pipes/connected_account.rb +9 -0
  68. data/lib/workos/pipes/{connected_account_dto.rb → connected_account_input.rb} +1 -1
  69. data/lib/workos/pipes/create_data_integration.rb +10 -1
  70. data/lib/workos/pipes/data_integration.rb +9 -0
  71. data/lib/workos/pipes/{data_integration_credentials_dto.rb → data_integration_credentials_input.rb} +1 -1
  72. data/lib/workos/pipes/data_integration_installation.rb +28 -0
  73. data/lib/workos/pipes/data_integrations_get_data_integration_authorize_url_request.rb +5 -2
  74. data/lib/workos/pipes/data_integrations_list_response_data_connected_account.rb +9 -0
  75. data/lib/workos/pipes/data_integrations_upsert_api_key_request.rb +1 -19
  76. data/lib/workos/pipes/data_integrations_upsert_client_credentials_request.rb +31 -0
  77. data/lib/workos/pipes/update_data_integration.rb +4 -1
  78. data/lib/workos/pipes.rb +69 -17
  79. data/lib/workos/pipes_provider/configure_data_integration_body.rb +5 -2
  80. data/lib/workos/pipes_provider/data_integration_configuration_response.rb +3 -0
  81. data/lib/workos/pipes_provider.rb +6 -3
  82. data/lib/workos/platform_teams/create_team.rb +22 -0
  83. data/lib/workos/platform_teams/team.rb +37 -0
  84. data/lib/workos/platform_teams.rb +58 -0
  85. data/lib/workos/shared/access_token_agent_registration_credential_issued_data_detail.rb +25 -0
  86. data/lib/workos/shared/agent_blueprint_created.rb +34 -0
  87. data/lib/workos/shared/agent_blueprint_created_data.rb +43 -0
  88. data/lib/workos/shared/agent_blueprint_created_data_invocable_by.rb +22 -0
  89. data/lib/workos/shared/agent_blueprint_created_data_session_setting.rb +25 -0
  90. data/lib/workos/shared/agent_blueprint_deleted.rb +34 -0
  91. data/lib/workos/shared/agent_blueprint_deleted_data.rb +31 -0
  92. data/lib/workos/shared/agent_blueprint_updated.rb +34 -0
  93. data/lib/workos/shared/agent_blueprint_updated_data.rb +7 -0
  94. data/lib/workos/shared/agent_blueprint_updated_data_invocable_by.rb +7 -0
  95. data/lib/workos/shared/agent_blueprint_updated_data_session_setting.rb +7 -0
  96. data/lib/workos/shared/agent_instance_created.rb +34 -0
  97. data/lib/workos/shared/agent_instance_created_data.rb +40 -0
  98. data/lib/workos/shared/agent_instance_deleted.rb +34 -0
  99. data/lib/workos/shared/agent_instance_deleted_data.rb +40 -0
  100. data/lib/workos/shared/agent_instance_session_created.rb +34 -0
  101. data/lib/workos/shared/agent_instance_session_created_data.rb +43 -0
  102. data/lib/workos/shared/agent_instance_session_revoked.rb +34 -0
  103. data/lib/workos/shared/agent_instance_session_revoked_data.rb +40 -0
  104. data/lib/workos/shared/agent_registration_claim_attempt_created.rb +34 -0
  105. data/lib/workos/shared/agent_registration_claim_attempt_created_data.rb +40 -0
  106. data/lib/workos/shared/agent_registration_claim_completed.rb +34 -0
  107. data/lib/workos/shared/agent_registration_claim_completed_data.rb +40 -0
  108. data/lib/workos/shared/agent_registration_claim_completed_data_claimed_by.rb +22 -0
  109. data/lib/workos/shared/agent_registration_created.rb +34 -0
  110. data/lib/workos/shared/agent_registration_created_data.rb +43 -0
  111. data/lib/workos/shared/agent_registration_created_data_agent_identity.rb +25 -0
  112. data/lib/workos/shared/agent_registration_credential_issued.rb +34 -0
  113. data/lib/workos/shared/agent_registration_credential_issued_data.rb +34 -0
  114. data/lib/workos/shared/agent_registration_credential_issued_data_detail.rb +22 -0
  115. data/lib/workos/shared/agent_registration_deleted.rb +34 -0
  116. data/lib/workos/shared/agent_registration_deleted_data.rb +18 -0
  117. data/lib/workos/shared/agent_registration_expired.rb +34 -0
  118. data/lib/workos/shared/agent_registration_expired_data.rb +7 -0
  119. data/lib/workos/shared/agent_registration_organization_switched.rb +34 -0
  120. data/lib/workos/shared/agent_registration_organization_switched_data.rb +25 -0
  121. data/lib/workos/shared/agent_registration_refreshed.rb +34 -0
  122. data/lib/workos/shared/agent_registration_refreshed_data.rb +7 -0
  123. data/lib/workos/shared/agent_registration_revoked.rb +34 -0
  124. data/lib/workos/shared/agent_registration_revoked_data.rb +7 -0
  125. data/lib/workos/shared/pipes_connected_account_connection_failed.rb +34 -0
  126. data/lib/workos/shared/pipes_connected_account_connection_failed_data.rb +46 -0
  127. data/lib/workos/shared/radar_challenge_created.rb +34 -0
  128. data/lib/workos/shared/radar_challenge_created_data.rb +28 -0
  129. data/lib/workos/shared/resource_export_completed.rb +34 -0
  130. data/lib/workos/shared/resource_export_completed_data.rb +22 -0
  131. data/lib/workos/shared/resource_export_created.rb +34 -0
  132. data/lib/workos/shared/resource_export_created_data.rb +22 -0
  133. data/lib/workos/shared/resource_export_downloaded.rb +34 -0
  134. data/lib/workos/shared/resource_export_downloaded_data.rb +22 -0
  135. data/lib/workos/shared/resource_export_failed.rb +34 -0
  136. data/lib/workos/shared/resource_export_failed_data.rb +22 -0
  137. data/lib/workos/shared/waitlist_user.rb +11 -5
  138. data/lib/workos/sso/connection.rb +0 -3
  139. data/lib/workos/sso/create_connection.rb +37 -0
  140. data/lib/workos/sso/create_connection_attribute_maps.rb +22 -0
  141. data/lib/workos/sso/create_connection_key_pair.rb +22 -0
  142. data/lib/workos/sso/create_connection_oidc_options.rb +43 -0
  143. data/lib/workos/sso/create_connection_saml_options.rb +40 -0
  144. data/lib/workos/sso/create_connection_standard_attributes.rb +34 -0
  145. data/lib/workos/{admin_portal/domain_verification_intent_options.rb → sso/create_saml_idp_signing_certificate.rb} +4 -4
  146. data/lib/workos/sso/patch_connection.rb +34 -0
  147. data/lib/workos/sso/patch_connection_attribute_maps.rb +22 -0
  148. data/lib/workos/sso/patch_connection_oidc_options.rb +40 -0
  149. data/lib/workos/sso/patch_connection_saml_options.rb +31 -0
  150. data/lib/workos/sso/patch_connection_standard_attributes.rb +7 -0
  151. data/lib/workos/sso/saml_idp_signing_certificate.rb +34 -0
  152. data/lib/workos/sso/saml_idp_signing_certificate_list.rb +22 -0
  153. data/lib/workos/sso/saml_sp_encryption_certificate.rb +34 -0
  154. data/lib/workos/sso/saml_sp_encryption_certificate_list.rb +22 -0
  155. data/lib/workos/sso/saml_sp_signing_certificate.rb +34 -0
  156. data/lib/workos/sso/token_query.rb +11 -2
  157. data/lib/workos/sso.rb +378 -30
  158. data/lib/workos/types/agent_admin_validate_credential_request_type.rb +13 -0
  159. data/lib/workos/types/agent_blueprints_token_mint_token_request_type.rb +15 -0
  160. data/lib/workos/types/agent_instance_created_data_type.rb +13 -0
  161. data/lib/workos/types/{data_integration_credentials_type.rb → agent_instance_deleted_data_type.rb} +1 -1
  162. data/lib/workos/types/agent_instance_session_status.rb +14 -0
  163. data/lib/workos/types/{organization_domain_stand_alone_state.rb → agent_instance_type.rb} +1 -1
  164. data/lib/workos/types/agent_registration_created_data_kind.rb +14 -0
  165. data/lib/workos/types/agent_registration_created_data_method.rb +14 -0
  166. data/lib/workos/types/agent_registration_created_data_status.rb +15 -0
  167. data/lib/workos/types/{organization_domain_stand_alone_verification_strategy.rb → agent_registration_kind.rb} +1 -1
  168. data/lib/workos/types/agent_registration_status.rb +9 -0
  169. data/lib/workos/types/applications_registration_types.rb +13 -0
  170. data/lib/workos/types/authenticate_response_authentication_method.rb +1 -2
  171. data/lib/workos/types/claim_view_response_status.rb +9 -0
  172. data/lib/workos/types/connected_account_auth_method.rb +2 -1
  173. data/lib/workos/types/connected_account_input_state.rb +13 -0
  174. data/lib/workos/types/connected_account_state.rb +2 -1
  175. data/lib/workos/types/connection_activated_data_connection_type.rb +1 -2
  176. data/lib/workos/types/connection_type.rb +1 -2
  177. data/lib/workos/types/connections_connection_type.rb +1 -2
  178. data/lib/workos/types/create_connection_oidc_options_id_token_signature_algorithm.rb +24 -0
  179. data/lib/workos/types/create_connection_oidc_options_token_authentication_method.rb +14 -0
  180. data/lib/workos/types/create_data_integration_auth_methods.rb +9 -0
  181. data/lib/workos/types/create_user_password_hash_type.rb +2 -1
  182. data/lib/workos/types/create_user_password_salt_position.rb +13 -0
  183. data/lib/workos/types/create_webhook_endpoint_events.rb +13 -1
  184. data/lib/workos/types/data_integration_auth_methods.rb +9 -0
  185. data/lib/workos/types/data_integration_credentials_input_type.rb +9 -0
  186. data/lib/workos/types/data_integrations_list_response_data_connected_account_state.rb +1 -6
  187. data/lib/workos/types/invite_it_contact_intents.rb +16 -0
  188. data/lib/workos/types/patch_connection_oidc_options_id_token_signature_algorithm.rb +9 -0
  189. data/lib/workos/types/patch_connection_oidc_options_token_authentication_method.rb +9 -0
  190. data/lib/workos/types/pipe_connected_account_state.rb +1 -5
  191. data/lib/workos/types/resource_export_completed_data_resource_type.rb +16 -0
  192. data/lib/workos/types/resource_export_created_data_resource_type.rb +9 -0
  193. data/lib/workos/types/resource_export_downloaded_data_resource_type.rb +9 -0
  194. data/lib/workos/types/resource_export_failed_data_resource_type.rb +9 -0
  195. data/lib/workos/types/session_created_data_status.rb +1 -6
  196. data/lib/workos/types/session_revoked_data_status.rb +1 -1
  197. data/lib/workos/types/sso_grant_type.rb +13 -0
  198. data/lib/workos/types/team_production_state.rb +15 -0
  199. data/lib/workos/types/token_query_grant_type.rb +9 -0
  200. data/lib/workos/types/update_audit_logs_retention_retention_period.rb +32 -0
  201. data/lib/workos/types/update_user_password_salt_position.rb +9 -0
  202. data/lib/workos/types/user_identities_get_item_provider.rb +1 -2
  203. data/lib/workos/types/user_management_waitlists_state.rb +14 -0
  204. data/lib/workos/types/user_sessions_status.rb +1 -1
  205. data/lib/workos/types/vault_kek_deleted_data_actor_source.rb +9 -0
  206. data/lib/workos/types/waitlist_entry_state.rb +9 -0
  207. data/lib/workos/types/waitlist_user_state.rb +1 -6
  208. data/lib/workos/user_management/authentication_oauth_failed_data.rb +5 -2
  209. data/lib/workos/user_management/authentication_oauth_succeeded_data.rb +5 -2
  210. data/lib/workos/user_management/authentication_reauthentication_succeeded.rb +34 -0
  211. data/lib/workos/user_management/authentication_reauthentication_succeeded_data.rb +34 -0
  212. data/lib/workos/user_management/create_password_reset_token.rb +1 -12
  213. data/lib/workos/user_management/create_user.rb +5 -2
  214. data/lib/workos/user_management/create_waitlist_entry.rb +25 -0
  215. data/lib/workos/user_management/email_completion_session_authenticate_request.rb +43 -0
  216. data/lib/workos/user_management/radar_challenge.rb +43 -0
  217. data/lib/workos/user_management/update_user.rb +5 -2
  218. data/lib/workos/user_management/waitlist.rb +28 -0
  219. data/lib/workos/user_management/waitlist_entry.rb +43 -0
  220. data/lib/workos/user_management.rb +340 -74
  221. data/lib/workos/vault/vault_kek_deleted.rb +34 -0
  222. data/lib/workos/vault/vault_kek_deleted_data.rb +31 -0
  223. data/lib/workos/vault.rb +4 -4
  224. data/lib/workos/version.rb +1 -1
  225. data/lib/workos/widgets.rb +2 -2
  226. data/lib/workos.rb +12 -0
  227. data/rbi/workos/access_token_agent_registration_credential_issued_data_detail.rbi +36 -0
  228. data/rbi/workos/agent_admin_link_claim_attempt_to_external_user_request.rbi +42 -0
  229. data/rbi/workos/agent_admin_link_claim_attempt_to_external_user_request_user.rbi +30 -0
  230. data/rbi/workos/agent_admin_validate_credential_request.rbi +36 -0
  231. data/rbi/workos/agent_blueprint.rbi +72 -0
  232. data/rbi/workos/agent_blueprint_created.rbi +54 -0
  233. data/rbi/workos/agent_blueprint_created_data.rbi +72 -0
  234. data/rbi/workos/agent_blueprint_created_data_invocable_by.rbi +30 -0
  235. data/rbi/workos/agent_blueprint_created_data_session_setting.rbi +36 -0
  236. data/rbi/workos/agent_blueprint_deleted.rbi +54 -0
  237. data/rbi/workos/agent_blueprint_deleted_data.rbi +48 -0
  238. data/rbi/workos/agent_blueprint_invocable_by.rbi +30 -0
  239. data/rbi/workos/agent_blueprint_session_setting.rbi +36 -0
  240. data/rbi/workos/agent_blueprint_updated.rbi +54 -0
  241. data/rbi/workos/agent_blueprint_updated_data.rbi +72 -0
  242. data/rbi/workos/agent_blueprint_updated_data_invocable_by.rbi +30 -0
  243. data/rbi/workos/agent_blueprint_updated_data_session_setting.rbi +36 -0
  244. data/rbi/workos/agent_blueprints_create_request.rbi +48 -0
  245. data/rbi/workos/agent_blueprints_create_request_invocable_by.rbi +30 -0
  246. data/rbi/workos/agent_blueprints_create_request_session_setting.rbi +36 -0
  247. data/rbi/workos/agent_blueprints_token_mint_token_request.rbi +54 -0
  248. data/rbi/workos/{domain_verification_intent_options.rbi → agent_blueprints_token_validate_token_request.rbi} +5 -5
  249. data/rbi/workos/agent_blueprints_update_request.rbi +48 -0
  250. data/rbi/workos/agent_blueprints_update_request_invocable_by.rbi +30 -0
  251. data/rbi/workos/agent_blueprints_update_request_session_setting.rbi +36 -0
  252. data/rbi/workos/{sso_intent_options.rbi → agent_credential_validation.rbi} +11 -5
  253. data/rbi/workos/agent_instance.rbi +66 -0
  254. data/rbi/workos/agent_instance_created.rbi +54 -0
  255. data/rbi/workos/agent_instance_created_data.rbi +66 -0
  256. data/rbi/workos/agent_instance_deleted.rbi +54 -0
  257. data/rbi/workos/agent_instance_deleted_data.rbi +66 -0
  258. data/rbi/workos/agent_instance_session.rbi +66 -0
  259. data/rbi/workos/agent_instance_session_created.rbi +54 -0
  260. data/rbi/workos/agent_instance_session_created_data.rbi +72 -0
  261. data/rbi/workos/agent_instance_session_revoked.rbi +54 -0
  262. data/rbi/workos/agent_instance_session_revoked_data.rbi +66 -0
  263. data/rbi/workos/agent_registration.rbi +66 -0
  264. data/rbi/workos/agent_registration_agent_identity.rbi +42 -0
  265. data/rbi/workos/agent_registration_claim.rbi +48 -0
  266. data/rbi/workos/agent_registration_claim_attempt_created.rbi +54 -0
  267. data/rbi/workos/agent_registration_claim_attempt_created_data.rbi +66 -0
  268. data/rbi/workos/agent_registration_claim_claim_completion.rbi +48 -0
  269. data/rbi/workos/agent_registration_claim_completed.rbi +54 -0
  270. data/rbi/workos/agent_registration_claim_completed_data.rbi +66 -0
  271. data/rbi/workos/agent_registration_claim_completed_data_claimed_by.rbi +30 -0
  272. data/rbi/workos/agent_registration_created.rbi +54 -0
  273. data/rbi/workos/agent_registration_created_data.rbi +72 -0
  274. data/rbi/workos/agent_registration_created_data_agent_identity.rbi +36 -0
  275. data/rbi/workos/agent_registration_credential_issued.rbi +54 -0
  276. data/rbi/workos/agent_registration_credential_issued_data.rbi +54 -0
  277. data/rbi/workos/agent_registration_credential_issued_data_detail.rbi +30 -0
  278. data/rbi/workos/agent_registration_deleted.rbi +54 -0
  279. data/rbi/workos/{connection_option.rbi → agent_registration_deleted_data.rbi} +5 -5
  280. data/rbi/workos/agent_registration_expired.rbi +54 -0
  281. data/rbi/workos/agent_registration_expired_data.rbi +24 -0
  282. data/rbi/workos/agent_registration_organization_switched.rbi +54 -0
  283. data/rbi/workos/agent_registration_organization_switched_data.rbi +36 -0
  284. data/rbi/workos/agent_registration_refreshed.rbi +54 -0
  285. data/rbi/workos/agent_registration_refreshed_data.rbi +24 -0
  286. data/rbi/workos/agent_registration_revoked.rbi +54 -0
  287. data/rbi/workos/agent_registration_revoked_data.rbi +24 -0
  288. data/rbi/workos/agent_token.rbi +66 -0
  289. data/rbi/workos/agent_token_validation.rbi +66 -0
  290. data/rbi/workos/agents.rbi +175 -0
  291. data/rbi/workos/api_key_installation.rbi +36 -0
  292. data/rbi/workos/api_key_validation_response.rbi +6 -0
  293. data/rbi/workos/audit_logs.rbi +26 -2
  294. data/rbi/workos/authentication_oauth_failed_data.rbi +6 -0
  295. data/rbi/workos/authentication_oauth_succeeded_data.rbi +6 -0
  296. data/rbi/workos/authentication_reauthentication_succeeded.rbi +54 -0
  297. data/rbi/workos/authentication_reauthentication_succeeded_data.rbi +54 -0
  298. data/rbi/workos/claim_view_response.rbi +42 -0
  299. data/rbi/workos/claim_view_response_organization.rbi +30 -0
  300. data/rbi/workos/client.rbi +6 -0
  301. data/rbi/workos/configure_data_integration_body.rbi +6 -0
  302. data/rbi/workos/connect.rbi +2 -1
  303. data/rbi/workos/connected_account.rbi +18 -0
  304. data/rbi/workos/{connected_account_dto.rbi → connected_account_input.rbi} +1 -1
  305. data/rbi/workos/connection.rbi +0 -6
  306. data/rbi/workos/create_connection.rbi +60 -0
  307. data/rbi/workos/create_connection_attribute_maps.rbi +30 -0
  308. data/rbi/workos/create_connection_key_pair.rbi +30 -0
  309. data/rbi/workos/create_connection_oidc_options.rbi +72 -0
  310. data/rbi/workos/create_connection_saml_options.rbi +66 -0
  311. data/rbi/workos/create_connection_standard_attributes.rbi +54 -0
  312. data/rbi/workos/create_data_integration.rbi +20 -2
  313. data/rbi/workos/create_it_contact.rbi +24 -0
  314. data/rbi/workos/create_saml_idp_signing_certificate.rbi +24 -0
  315. data/rbi/workos/create_team.rbi +30 -0
  316. data/rbi/workos/create_user.rbi +6 -0
  317. data/rbi/workos/create_waitlist_entry.rbi +36 -0
  318. data/rbi/workos/custom_provider_definition.rbi +4 -4
  319. data/rbi/workos/data_integration.rbi +20 -2
  320. data/rbi/workos/data_integration_configuration_response.rbi +6 -0
  321. data/rbi/workos/{data_integration_credentials_dto.rbi → data_integration_credentials_input.rbi} +1 -1
  322. data/rbi/workos/data_integration_installation.rbi +42 -0
  323. data/rbi/workos/data_integrations_get_data_integration_authorize_url_request.rbi +6 -0
  324. data/rbi/workos/data_integrations_list_response_data_connected_account.rbi +18 -0
  325. data/rbi/workos/data_integrations_upsert_client_credentials_request.rbi +48 -0
  326. data/rbi/workos/directory_sync.rbi +3 -1
  327. data/rbi/workos/email_completion_session_authenticate_request.rbi +72 -0
  328. data/rbi/workos/events.rbi +2 -2
  329. data/rbi/workos/groups.rbi +2 -1
  330. data/rbi/workos/invite_it_contact.rbi +24 -0
  331. data/rbi/workos/it_contact.rbi +48 -0
  332. data/rbi/workos/organization_authorized_connect_application_list_data.rbi +54 -0
  333. data/rbi/workos/organization_domains.rbi +2 -2
  334. data/rbi/workos/organizations.rbi +57 -0
  335. data/rbi/workos/patch_connection.rbi +54 -0
  336. data/rbi/workos/patch_connection_attribute_maps.rbi +30 -0
  337. data/rbi/workos/patch_connection_oidc_options.rbi +66 -0
  338. data/rbi/workos/patch_connection_saml_options.rbi +48 -0
  339. data/rbi/workos/patch_connection_standard_attributes.rbi +54 -0
  340. data/rbi/workos/permission_created_data.rbi +6 -0
  341. data/rbi/workos/permission_deleted_data.rbi +6 -0
  342. data/rbi/workos/permission_updated_data.rbi +6 -0
  343. data/rbi/workos/pipes.rbi +23 -5
  344. data/rbi/workos/pipes_connected_account_connection_failed.rbi +54 -0
  345. data/rbi/workos/{organization_domain_stand_alone.rbi → pipes_connected_account_connection_failed_data.rbi} +23 -23
  346. data/rbi/workos/pipes_provider.rbi +2 -1
  347. data/rbi/workos/platform_teams.rbi +30 -0
  348. data/rbi/workos/radar_challenge.rbi +72 -0
  349. data/rbi/workos/radar_challenge_created.rbi +54 -0
  350. data/rbi/workos/radar_challenge_created_data.rbi +42 -0
  351. data/rbi/workos/radar_sms_challenge_code_session_authenticate_request.rbi +4 -4
  352. data/rbi/workos/resource_export_completed.rbi +54 -0
  353. data/rbi/workos/resource_export_completed_data.rbi +30 -0
  354. data/rbi/workos/resource_export_created.rbi +54 -0
  355. data/rbi/workos/resource_export_created_data.rbi +30 -0
  356. data/rbi/workos/resource_export_downloaded.rbi +54 -0
  357. data/rbi/workos/resource_export_downloaded_data.rbi +30 -0
  358. data/rbi/workos/resource_export_failed.rbi +54 -0
  359. data/rbi/workos/resource_export_failed_data.rbi +30 -0
  360. data/rbi/workos/saml_idp_signing_certificate.rbi +54 -0
  361. data/rbi/workos/saml_idp_signing_certificate_list.rbi +30 -0
  362. data/rbi/workos/saml_sp_encryption_certificate.rbi +54 -0
  363. data/rbi/workos/saml_sp_encryption_certificate_list.rbi +30 -0
  364. data/rbi/workos/saml_sp_signing_certificate.rbi +54 -0
  365. data/rbi/workos/sso.rbi +181 -2
  366. data/rbi/workos/team.rbi +60 -0
  367. data/rbi/workos/token_query.rbi +20 -2
  368. data/rbi/workos/update_audit_logs_retention.rbi +8 -2
  369. data/rbi/workos/update_data_integration.rbi +8 -2
  370. data/rbi/workos/update_user.rbi +6 -0
  371. data/rbi/workos/user_management.rbi +116 -2
  372. data/rbi/workos/vault_kek_deleted.rbi +54 -0
  373. data/rbi/workos/vault_kek_deleted_data.rbi +48 -0
  374. data/rbi/workos/waitlist.rbi +42 -0
  375. data/rbi/workos/waitlist_entry.rbi +72 -0
  376. data/rbi/workos/waitlist_user.rbi +18 -6
  377. data/rbi/workos/widget_session_token.rbi +2 -2
  378. data/rbi/workos/widgets.rbi +1 -1
  379. data/test/workos/test_agents.rb +153 -0
  380. data/test/workos/test_agents_model_round_trip.rb +410 -0
  381. data/test/workos/test_api_keys_model_round_trip.rb +307 -0
  382. data/test/workos/test_audit_logs.rb +11 -2
  383. data/test/workos/test_authkit_helpers.rb +22 -10
  384. data/test/workos/test_authorization.rb +6 -6
  385. data/test/workos/test_authorization_model_round_trip.rb +237 -0
  386. data/test/workos/test_base_client.rb +27 -0
  387. data/test/workos/test_client_api_model_round_trip.rb +31 -0
  388. data/test/workos/test_connect_model_round_trip.rb +175 -0
  389. data/test/workos/test_directory_sync_model_round_trip.rb +579 -0
  390. data/test/workos/test_events.rb +2 -2
  391. data/test/workos/test_feature_flags_model_round_trip.rb +580 -0
  392. data/test/workos/test_groups_model_round_trip.rb +56 -0
  393. data/test/workos/test_multi_factor_auth_model_round_trip.rb +192 -0
  394. data/test/workos/test_organization_domains_model_round_trip.rb +260 -0
  395. data/test/workos/test_organization_membership_model_round_trip.rb +89 -0
  396. data/test/workos/test_organizations.rb +49 -1
  397. data/test/workos/test_organizations_model_round_trip.rb +642 -1
  398. data/test/workos/test_pipes.rb +8 -0
  399. data/test/workos/test_pipes_model_round_trip.rb +68 -8
  400. data/test/workos/test_pipes_provider_model_round_trip.rb +77 -0
  401. data/test/workos/test_platform_teams.rb +41 -0
  402. data/test/workos/test_platform_teams_model_round_trip.rb +41 -0
  403. data/test/workos/test_shared_model_round_trip.rb +1263 -0
  404. data/test/workos/test_sso.rb +108 -2
  405. data/test/workos/test_sso_model_round_trip.rb +681 -0
  406. data/test/workos/test_user_management.rb +78 -6
  407. data/test/workos/test_user_management_model_round_trip.rb +1604 -27
  408. data/test/workos/test_vault_model_round_trip.rb +571 -0
  409. data/test/workos/test_widgets.rb +2 -2
  410. data/test/workos/test_widgets_model_round_trip.rb +30 -0
  411. metadata +287 -19
  412. data/lib/workos/admin_portal/intent_options.rb +0 -22
  413. data/lib/workos/admin_portal/sso_intent_options.rb +0 -22
  414. data/rbi/workos/intent_options.rbi +0 -30
  415. data/test/workos/test_model_round_trip.rb +0 -6
@@ -615,16 +615,16 @@ module WorkOS
615
615
  organization_id:,
616
616
  name:,
617
617
  slug: nil,
618
- description: nil,
618
+ description: WorkOS::OMIT,
619
619
  resource_type_slug: nil,
620
620
  request_options: {}
621
621
  )
622
622
  body = {
623
623
  "slug" => slug,
624
624
  "name" => name,
625
- "description" => description,
626
625
  "resource_type_slug" => resource_type_slug
627
626
  }.compact
627
+ body["description"] = description unless description.equal?(WorkOS::OMIT)
628
628
  response = @client.request(
629
629
  method: :post,
630
630
  path: "/authorization/organizations/#{WorkOS::Util.encode_path(organization_id)}/roles",
@@ -669,13 +669,13 @@ module WorkOS
669
669
  organization_id:,
670
670
  slug:,
671
671
  name: nil,
672
- description: nil,
672
+ description: WorkOS::OMIT,
673
673
  request_options: {}
674
674
  )
675
675
  body = {
676
- "name" => name,
677
- "description" => description
676
+ "name" => name
678
677
  }.compact
678
+ body["description"] = description unless description.equal?(WorkOS::OMIT)
679
679
  response = @client.request(
680
680
  method: :patch,
681
681
  path: "/authorization/organizations/#{WorkOS::Util.encode_path(organization_id)}/roles/#{WorkOS::Util.encode_path(slug)}",
@@ -821,21 +821,21 @@ module WorkOS
821
821
  resource_type_slug:,
822
822
  external_id:,
823
823
  name: nil,
824
- description: nil,
824
+ description: WorkOS::OMIT,
825
825
  parent_resource: nil,
826
826
  request_options: {}
827
827
  )
828
828
  body = {
829
- "name" => name,
830
- "description" => description
829
+ "name" => name
831
830
  }.compact
831
+ body["description"] = description unless description.equal?(WorkOS::OMIT)
832
832
  if parent_resource
833
833
  case parent_resource
834
834
  when WorkOS::Authorization::ParentResourceById
835
835
  body["parent_resource_id"] = parent_resource.parent_resource_id
836
836
  when WorkOS::Authorization::ParentResourceByExternalId
837
- body["parent_resource_external_id"] = parent_resource.parent_resource_external_id
838
837
  body["parent_resource_type_slug"] = parent_resource.parent_resource_type_slug
838
+ body["parent_resource_external_id"] = parent_resource.parent_resource_external_id
839
839
  else
840
840
  raise ArgumentError, "expected parent_resource to be one of: WorkOS::Authorization::ParentResourceById, WorkOS::Authorization::ParentResourceByExternalId, got #{parent_resource.class}"
841
841
  end
@@ -1081,24 +1081,24 @@ module WorkOS
1081
1081
  name:,
1082
1082
  resource_type_slug:,
1083
1083
  organization_id:,
1084
- description: nil,
1084
+ description: WorkOS::OMIT,
1085
1085
  parent_resource: nil,
1086
1086
  request_options: {}
1087
1087
  )
1088
1088
  body = {
1089
1089
  "external_id" => external_id,
1090
1090
  "name" => name,
1091
- "description" => description,
1092
1091
  "resource_type_slug" => resource_type_slug,
1093
1092
  "organization_id" => organization_id
1094
- }.compact
1093
+ }
1094
+ body["description"] = description unless description.equal?(WorkOS::OMIT)
1095
1095
  if parent_resource
1096
1096
  case parent_resource
1097
1097
  when WorkOS::Authorization::ParentResourceById
1098
1098
  body["parent_resource_id"] = parent_resource.parent_resource_id
1099
1099
  when WorkOS::Authorization::ParentResourceByExternalId
1100
- body["parent_resource_external_id"] = parent_resource.parent_resource_external_id
1101
1100
  body["parent_resource_type_slug"] = parent_resource.parent_resource_type_slug
1101
+ body["parent_resource_external_id"] = parent_resource.parent_resource_external_id
1102
1102
  else
1103
1103
  raise ArgumentError, "expected parent_resource to be one of: WorkOS::Authorization::ParentResourceById, WorkOS::Authorization::ParentResourceByExternalId, got #{parent_resource.class}"
1104
1104
  end
@@ -1144,21 +1144,21 @@ module WorkOS
1144
1144
  def update_resource(
1145
1145
  resource_id:,
1146
1146
  name: nil,
1147
- description: nil,
1147
+ description: WorkOS::OMIT,
1148
1148
  parent_resource: nil,
1149
1149
  request_options: {}
1150
1150
  )
1151
1151
  body = {
1152
- "name" => name,
1153
- "description" => description
1152
+ "name" => name
1154
1153
  }.compact
1154
+ body["description"] = description unless description.equal?(WorkOS::OMIT)
1155
1155
  if parent_resource
1156
1156
  case parent_resource
1157
1157
  when WorkOS::Authorization::ParentResourceById
1158
1158
  body["parent_resource_id"] = parent_resource.parent_resource_id
1159
1159
  when WorkOS::Authorization::ParentResourceByExternalId
1160
- body["parent_resource_external_id"] = parent_resource.parent_resource_external_id
1161
1160
  body["parent_resource_type_slug"] = parent_resource.parent_resource_type_slug
1161
+ body["parent_resource_external_id"] = parent_resource.parent_resource_external_id
1162
1162
  else
1163
1163
  raise ArgumentError, "expected parent_resource to be one of: WorkOS::Authorization::ParentResourceById, WorkOS::Authorization::ParentResourceByExternalId, got #{parent_resource.class}"
1164
1164
  end
@@ -1329,16 +1329,16 @@ module WorkOS
1329
1329
  def create_environment_role(
1330
1330
  slug:,
1331
1331
  name:,
1332
- description: nil,
1332
+ description: WorkOS::OMIT,
1333
1333
  resource_type_slug: nil,
1334
1334
  request_options: {}
1335
1335
  )
1336
1336
  body = {
1337
1337
  "slug" => slug,
1338
1338
  "name" => name,
1339
- "description" => description,
1340
1339
  "resource_type_slug" => resource_type_slug
1341
1340
  }.compact
1341
+ body["description"] = description unless description.equal?(WorkOS::OMIT)
1342
1342
  response = @client.request(
1343
1343
  method: :post,
1344
1344
  path: "/authorization/roles",
@@ -1379,13 +1379,13 @@ module WorkOS
1379
1379
  def update_environment_role(
1380
1380
  slug:,
1381
1381
  name: nil,
1382
- description: nil,
1382
+ description: WorkOS::OMIT,
1383
1383
  request_options: {}
1384
1384
  )
1385
1385
  body = {
1386
- "name" => name,
1387
- "description" => description
1386
+ "name" => name
1388
1387
  }.compact
1388
+ body["description"] = description unless description.equal?(WorkOS::OMIT)
1389
1389
  response = @client.request(
1390
1390
  method: :patch,
1391
1391
  path: "/authorization/roles/#{WorkOS::Util.encode_path(slug)}",
@@ -1502,16 +1502,16 @@ module WorkOS
1502
1502
  def create_permission(
1503
1503
  slug:,
1504
1504
  name:,
1505
- description: nil,
1505
+ description: WorkOS::OMIT,
1506
1506
  resource_type_slug: nil,
1507
1507
  request_options: {}
1508
1508
  )
1509
1509
  body = {
1510
1510
  "slug" => slug,
1511
1511
  "name" => name,
1512
- "description" => description,
1513
1512
  "resource_type_slug" => resource_type_slug
1514
1513
  }.compact
1514
+ body["description"] = description unless description.equal?(WorkOS::OMIT)
1515
1515
  response = @client.request(
1516
1516
  method: :post,
1517
1517
  path: "/authorization/permissions",
@@ -1552,13 +1552,13 @@ module WorkOS
1552
1552
  def update_permission(
1553
1553
  slug:,
1554
1554
  name: nil,
1555
- description: nil,
1555
+ description: WorkOS::OMIT,
1556
1556
  request_options: {}
1557
1557
  )
1558
1558
  body = {
1559
- "name" => name,
1560
- "description" => description
1559
+ "name" => name
1561
1560
  }.compact
1561
+ body["description"] = description unless description.equal?(WorkOS::OMIT)
1562
1562
  response = @client.request(
1563
1563
  method: :patch,
1564
1564
  path: "/authorization/permissions/#{WorkOS::Util.encode_path(slug)}",
@@ -66,7 +66,7 @@ module WorkOS
66
66
  def post_request(path:, auth: false, body: {}, params: {}, request_options: nil)
67
67
  req = build_request(Net::HTTP::Post, append_query(path, params),
68
68
  auth: auth, request_options: request_options)
69
- req.body = body.nil? ? "" : body.compact.to_json
69
+ req.body = body.nil? ? "" : body.to_json
70
70
  req["Content-Type"] = "application/json"
71
71
  inject_idempotency_key(req, request_options)
72
72
  req
@@ -75,7 +75,7 @@ module WorkOS
75
75
  def put_request(path:, auth: false, body: {}, params: {}, request_options: nil)
76
76
  req = build_request(Net::HTTP::Put, append_query(path, params),
77
77
  auth: auth, request_options: request_options)
78
- req.body = body.nil? ? "" : body.compact.to_json
78
+ req.body = body.nil? ? "" : body.to_json
79
79
  req["Content-Type"] = "application/json"
80
80
  inject_idempotency_key(req, request_options)
81
81
  req
@@ -84,7 +84,7 @@ module WorkOS
84
84
  def patch_request(path:, auth: false, body: {}, params: {}, request_options: nil)
85
85
  req = build_request(Net::HTTP::Patch, append_query(path, params),
86
86
  auth: auth, request_options: request_options)
87
- req.body = body.nil? ? "" : body.compact.to_json
87
+ req.body = body.nil? ? "" : body.to_json
88
88
  req["Content-Type"] = "application/json"
89
89
  inject_idempotency_key(req, request_options)
90
90
  req
@@ -94,7 +94,7 @@ module WorkOS
94
94
  req = build_request(Net::HTTP::Delete, append_query(path, params),
95
95
  auth: auth, request_options: request_options)
96
96
  if body
97
- req.body = body.compact.to_json
97
+ req.body = body.to_json
98
98
  req["Content-Type"] = "application/json"
99
99
  end
100
100
  req
data/lib/workos/client.rb CHANGED
@@ -4,6 +4,10 @@
4
4
 
5
5
  module WorkOS
6
6
  class Client < BaseClient
7
+ def agents
8
+ @agents ||= WorkOS::Agents.new(self)
9
+ end
10
+
7
11
  def multi_factor_auth
8
12
  @multi_factor_auth ||= WorkOS::MultiFactorAuth.new(self)
9
13
  end
@@ -60,6 +64,10 @@ module WorkOS
60
64
  @groups ||= WorkOS::Groups.new(self)
61
65
  end
62
66
 
67
+ def platform_teams
68
+ @platform_teams ||= WorkOS::PlatformTeams.new(self)
69
+ end
70
+
63
71
  def admin_portal
64
72
  @admin_portal ||= WorkOS::AdminPortal.new(self)
65
73
  end
@@ -44,6 +44,7 @@ module WorkOS
44
44
  # @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
45
45
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
46
46
  # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
47
+ # @param registration_types [Array<WorkOS::Types::ApplicationsRegistrationTypes>, nil] Filter Connect Applications by registration type. Specify multiple as a comma-separated list (e.g. `registration_types=dynamic,authenticated`). Defaults to `authenticated` only when not specified.
47
48
  # @param organization_id [String, nil] Filter Connect Applications by organization ID.
48
49
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
49
50
  # @return [WorkOS::Types::ListStruct<WorkOS::ConnectApplication>]
@@ -52,6 +53,7 @@ module WorkOS
52
53
  after: nil,
53
54
  limit: 10,
54
55
  order: "desc",
56
+ registration_types: nil,
55
57
  organization_id: nil,
56
58
  request_options: {}
57
59
  )
@@ -60,6 +62,7 @@ module WorkOS
60
62
  "after" => after,
61
63
  "limit" => limit,
62
64
  "order" => order,
65
+ "registration_types" => registration_types,
63
66
  "organization_id" => organization_id
64
67
  }.compact
65
68
  response = @client.request(
@@ -75,6 +78,7 @@ module WorkOS
75
78
  after: cursor,
76
79
  limit: limit,
77
80
  order: order,
81
+ registration_types: registration_types,
78
82
  organization_id: organization_id,
79
83
  request_options: request_options
80
84
  )
@@ -82,7 +86,7 @@ module WorkOS
82
86
  WorkOS::Types::ListStruct.from_response(
83
87
  response,
84
88
  model: WorkOS::ConnectApplication,
85
- filters: {before: before, limit: limit, order: order, organization_id: organization_id},
89
+ filters: {before: before, limit: limit, order: order, registration_types: registration_types, organization_id: organization_id},
86
90
  fetch_next: fetch_next
87
91
  )
88
92
  end
@@ -101,24 +105,24 @@ module WorkOS
101
105
  def create_application(
102
106
  name:,
103
107
  application_type:,
104
- description: nil,
105
- scopes: nil,
106
- redirect_uris: nil,
107
- uses_pkce: nil,
108
+ description: WorkOS::OMIT,
109
+ scopes: WorkOS::OMIT,
110
+ redirect_uris: WorkOS::OMIT,
111
+ uses_pkce: WorkOS::OMIT,
108
112
  is_first_party: nil,
109
- organization_id: nil,
113
+ organization_id: WorkOS::OMIT,
110
114
  request_options: {}
111
115
  )
112
116
  body = {
113
117
  "name" => name,
114
118
  "application_type" => application_type,
115
- "description" => description,
116
- "scopes" => scopes,
117
- "redirect_uris" => redirect_uris,
118
- "uses_pkce" => uses_pkce,
119
- "is_first_party" => is_first_party,
120
- "organization_id" => organization_id
119
+ "is_first_party" => is_first_party
121
120
  }.compact
121
+ body["description"] = description unless description.equal?(WorkOS::OMIT)
122
+ body["scopes"] = scopes unless scopes.equal?(WorkOS::OMIT)
123
+ body["redirect_uris"] = redirect_uris unless redirect_uris.equal?(WorkOS::OMIT)
124
+ body["uses_pkce"] = uses_pkce unless uses_pkce.equal?(WorkOS::OMIT)
125
+ body["organization_id"] = organization_id unless organization_id.equal?(WorkOS::OMIT)
122
126
  response = @client.request(
123
127
  method: :post,
124
128
  path: "/connect/applications",
@@ -131,7 +135,7 @@ module WorkOS
131
135
  result
132
136
  end
133
137
 
134
- # Create oauth application.
138
+ # Create OAuth application.
135
139
  # @param name [String]
136
140
  # @param is_first_party [Boolean]
137
141
  # @param description [String, nil]
@@ -171,7 +175,7 @@ module WorkOS
171
175
  WorkOS::ConnectApplication.new(response.body)
172
176
  end
173
177
 
174
- # Create m2m application.
178
+ # Create M2M application.
175
179
  # @param name [String]
176
180
  # @param organization_id [String]
177
181
  # @param description [String, nil]
@@ -232,17 +236,17 @@ module WorkOS
232
236
  def update_application(
233
237
  id:,
234
238
  name: nil,
235
- description: nil,
236
- scopes: nil,
237
- redirect_uris: nil,
239
+ description: WorkOS::OMIT,
240
+ scopes: WorkOS::OMIT,
241
+ redirect_uris: WorkOS::OMIT,
238
242
  request_options: {}
239
243
  )
240
244
  body = {
241
- "name" => name,
242
- "description" => description,
243
- "scopes" => scopes,
244
- "redirect_uris" => redirect_uris
245
+ "name" => name
245
246
  }.compact
247
+ body["description"] = description unless description.equal?(WorkOS::OMIT)
248
+ body["scopes"] = scopes unless scopes.equal?(WorkOS::OMIT)
249
+ body["redirect_uris"] = redirect_uris unless redirect_uris.equal?(WorkOS::OMIT)
246
250
  response = @client.request(
247
251
  method: :put,
248
252
  path: "/connect/applications/#{WorkOS::Util.encode_path(id)}",
@@ -180,6 +180,8 @@ module WorkOS
180
180
  # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
181
181
  # @param directory [String, nil] Unique identifier of the WorkOS Directory. This value can be obtained from the WorkOS dashboard or from the WorkOS API.
182
182
  # @param group [String, nil] Unique identifier of the WorkOS Directory Group. This value can be obtained from the WorkOS API.
183
+ # @param idp_id [String, nil] Filter Directory Users by the identity provider's unique identifier (`idp_id`). Requires the `directory` parameter to also be provided.
184
+ # @param email [String, nil] Filter Directory Users by their primary email address. Requires the `directory` parameter to also be provided.
183
185
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
184
186
  # @return [WorkOS::Types::ListStruct<WorkOS::DirectoryUserWithGroups>]
185
187
  def list_users(
@@ -189,6 +191,8 @@ module WorkOS
189
191
  order: "desc",
190
192
  directory: nil,
191
193
  group: nil,
194
+ idp_id: nil,
195
+ email: nil,
192
196
  request_options: {}
193
197
  )
194
198
  params = {
@@ -197,7 +201,9 @@ module WorkOS
197
201
  "limit" => limit,
198
202
  "order" => order,
199
203
  "directory" => directory,
200
- "group" => group
204
+ "group" => group,
205
+ "idp_id" => idp_id,
206
+ "email" => email
201
207
  }.compact
202
208
  response = @client.request(
203
209
  method: :get,
@@ -214,13 +220,15 @@ module WorkOS
214
220
  order: order,
215
221
  directory: directory,
216
222
  group: group,
223
+ idp_id: idp_id,
224
+ email: email,
217
225
  request_options: request_options
218
226
  )
219
227
  }
220
228
  WorkOS::Types::ListStruct.from_response(
221
229
  response,
222
230
  model: WorkOS::DirectoryUserWithGroups,
223
- filters: {before: before, limit: limit, order: order, directory: directory, group: group},
231
+ filters: {before: before, limit: limit, order: order, directory: directory, group: group, idp_id: idp_id, email: email},
224
232
  fetch_next: fetch_next
225
233
  )
226
234
  end
data/lib/workos/events.rb CHANGED
@@ -15,18 +15,18 @@ module WorkOS
15
15
  # @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
16
16
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
17
17
  # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
18
- # @param events [Array<String>, nil] Filter events by one or more event types (e.g. `dsync.user.created`).
18
+ # @param events [Array<String>] Filter events by one or more event types (e.g. `dsync.user.created`).
19
19
  # @param range_start [String, nil] ISO-8601 date string to filter events created after this date.
20
20
  # @param range_end [String, nil] ISO-8601 date string to filter events created before this date.
21
21
  # @param organization_id [String, nil] Filter events by the [Organization](https://workos.com/docs/reference/organization) that the event is associated with.
22
22
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
23
23
  # @return [WorkOS::Types::ListStruct<WorkOS::EventSchema>]
24
24
  def list_events(
25
+ events:,
25
26
  before: nil,
26
27
  after: nil,
27
28
  limit: 10,
28
29
  order: "desc",
29
- events: nil,
30
30
  range_start: nil,
31
31
  range_end: nil,
32
32
  organization_id: nil,
data/lib/workos/groups.rb CHANGED
@@ -16,6 +16,7 @@ module WorkOS
16
16
  # @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
17
17
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
18
18
  # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
19
+ # @param search [String, nil] Search groups by name or by group ID.
19
20
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
20
21
  # @return [WorkOS::Types::ListStruct<WorkOS::Group>]
21
22
  def list_organization_groups(
@@ -24,13 +25,15 @@ module WorkOS
24
25
  after: nil,
25
26
  limit: 10,
26
27
  order: "desc",
28
+ search: nil,
27
29
  request_options: {}
28
30
  )
29
31
  params = {
30
32
  "before" => before,
31
33
  "after" => after,
32
34
  "limit" => limit,
33
- "order" => order
35
+ "order" => order,
36
+ "search" => search
34
37
  }.compact
35
38
  response = @client.request(
36
39
  method: :get,
@@ -46,13 +49,14 @@ module WorkOS
46
49
  after: cursor,
47
50
  limit: limit,
48
51
  order: order,
52
+ search: search,
49
53
  request_options: request_options
50
54
  )
51
55
  }
52
56
  WorkOS::Types::ListStruct.from_response(
53
57
  response,
54
58
  model: WorkOS::Group,
55
- filters: {organization_id: organization_id, before: before, limit: limit, order: order},
59
+ filters: {organization_id: organization_id, before: before, limit: limit, order: order, search: search},
56
60
  fetch_next: fetch_next
57
61
  )
58
62
  end
@@ -66,13 +70,13 @@ module WorkOS
66
70
  def create_organization_group(
67
71
  organization_id:,
68
72
  name:,
69
- description: nil,
73
+ description: WorkOS::OMIT,
70
74
  request_options: {}
71
75
  )
72
76
  body = {
73
- "name" => name,
74
- "description" => description
75
- }.compact
77
+ "name" => name
78
+ }
79
+ body["description"] = description unless description.equal?(WorkOS::OMIT)
76
80
  response = @client.request(
77
81
  method: :post,
78
82
  path: "/organizations/#{WorkOS::Util.encode_path(organization_id)}/groups",
@@ -117,13 +121,13 @@ module WorkOS
117
121
  organization_id:,
118
122
  group_id:,
119
123
  name: nil,
120
- description: nil,
124
+ description: WorkOS::OMIT,
121
125
  request_options: {}
122
126
  )
123
127
  body = {
124
- "name" => name,
125
- "description" => description
128
+ "name" => name
126
129
  }.compact
130
+ body["description"] = description unless description.equal?(WorkOS::OMIT)
127
131
  response = @client.request(
128
132
  method: :patch,
129
133
  path: "/organizations/#{WorkOS::Util.encode_path(organization_id)}/groups/#{WorkOS::Util.encode_path(group_id)}",
@@ -45,16 +45,30 @@ WORKOS_INFLECTIONS = {
45
45
  "connection_saml_certificate_renewed_data_certificate_certificate_type" => "ConnectionSAMLCertificateRenewedDataCertificateCertificateType",
46
46
  "connection_saml_certificate_renewed_data_connection" => "ConnectionSAMLCertificateRenewedDataConnection",
47
47
  "cors_origin_response" => "CORSOriginResponse",
48
+ "create_connection_oidc_options" => "CreateConnectionOIDCOptions",
49
+ "create_connection_oidc_options_id_token_signature_algorithm" => "CreateConnectionOIDCOptionsIdTokenSignatureAlgorithm",
50
+ "create_connection_oidc_options_token_authentication_method" => "CreateConnectionOIDCOptionsTokenAuthenticationMethod",
51
+ "create_connection_saml_options" => "CreateConnectionSAMLOptions",
48
52
  "create_cors_origin" => "CreateCORSOrigin",
49
53
  "create_m2m_application" => "CreateM2MApplication",
50
54
  "create_oauth_application" => "CreateOAuthApplication",
55
+ "create_saml_idp_signing_certificate" => "CreateSAMLIdpSigningCertificate",
51
56
  "jwt_template_response" => "JWTTemplateResponse",
52
57
  "mfa_totp_session_authenticate_request" => "MFATotpSessionAuthenticateRequest",
58
+ "patch_connection_oidc_options" => "PatchConnectionOIDCOptions",
59
+ "patch_connection_oidc_options_id_token_signature_algorithm" => "PatchConnectionOIDCOptionsIdTokenSignatureAlgorithm",
60
+ "patch_connection_oidc_options_token_authentication_method" => "PatchConnectionOIDCOptionsTokenAuthenticationMethod",
61
+ "patch_connection_saml_options" => "PatchConnectionSAMLOptions",
53
62
  "pkce" => "PKCE",
63
+ "saml_idp_signing_certificate" => "SAMLIdpSigningCertificate",
64
+ "saml_idp_signing_certificate_list" => "SAMLIdpSigningCertificateList",
65
+ "saml_sp_encryption_certificate" => "SAMLSpEncryptionCertificate",
66
+ "saml_sp_encryption_certificate_list" => "SAMLSpEncryptionCertificateList",
67
+ "saml_sp_signing_certificate" => "SAMLSpSigningCertificate",
54
68
  "sso" => "SSO",
55
69
  "sso_authorize_url_response" => "SSOAuthorizeUrlResponse",
56
70
  "sso_device_authorization_request" => "SSODeviceAuthorizationRequest",
57
- "sso_intent_options" => "SSOIntentOptions",
71
+ "sso_grant_type" => "SSOGrantType",
58
72
  "sso_logout_authorize_request" => "SSOLogoutAuthorizeRequest",
59
73
  "sso_logout_authorize_response" => "SSOLogoutAuthorizeResponse",
60
74
  "sso_provider" => "SSOProvider",
@@ -39,7 +39,7 @@ module WorkOS
39
39
  # Get an Organization Domain
40
40
  # @param id [String] Unique identifier of the organization domain.
41
41
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
42
- # @return [WorkOS::OrganizationDomainStandAlone]
42
+ # @return [WorkOS::OrganizationDomain]
43
43
  def get_organization_domain(
44
44
  id:,
45
45
  request_options: {}
@@ -50,7 +50,7 @@ module WorkOS
50
50
  auth: true,
51
51
  request_options: request_options
52
52
  )
53
- result = WorkOS::OrganizationDomainStandAlone.new(response.body)
53
+ result = WorkOS::OrganizationDomain.new(response.body)
54
54
  result.last_response = WorkOS::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"])
55
55
  result
56
56
  end
@@ -75,7 +75,7 @@ module WorkOS
75
75
  # Verify an Organization Domain
76
76
  # @param id [String] Unique identifier of the organization domain.
77
77
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
78
- # @return [WorkOS::OrganizationDomainStandAlone]
78
+ # @return [WorkOS::OrganizationDomain]
79
79
  def verify_organization_domain(
80
80
  id:,
81
81
  request_options: {}
@@ -86,7 +86,7 @@ module WorkOS
86
86
  auth: true,
87
87
  request_options: request_options
88
88
  )
89
- result = WorkOS::OrganizationDomainStandAlone.new(response.body)
89
+ result = WorkOS::OrganizationDomain.new(response.body)
90
90
  result.last_response = WorkOS::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"])
91
91
  result
92
92
  end
@@ -3,16 +3,16 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module WorkOS
6
- class ConnectionOption < WorkOS::Types::BaseModel
6
+ class CreateItContact < WorkOS::Types::BaseModel
7
7
  HASH_ATTRS = {
8
- signing_cert: :signing_cert
8
+ email: :email
9
9
  }.freeze
10
10
 
11
- attr_accessor :signing_cert
11
+ attr_accessor :email
12
12
 
13
13
  def initialize(json)
14
14
  hash = self.class.normalize(json)
15
- @signing_cert = hash[:signing_cert]
15
+ @email = hash[:email]
16
16
  end
17
17
  end
18
18
  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 InviteItContact < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ intents: :intents
9
+ }.freeze
10
+
11
+ attr_accessor :intents
12
+
13
+ def initialize(json)
14
+ hash = self.class.normalize(json)
15
+ @intents = hash[:intents] || []
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class ItContact < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ object: :object,
9
+ id: :id,
10
+ email: :email,
11
+ created_at: :created_at,
12
+ updated_at: :updated_at
13
+ }.freeze
14
+
15
+ attr_accessor \
16
+ :object,
17
+ :id,
18
+ :email,
19
+ :created_at,
20
+ :updated_at
21
+
22
+ def initialize(json)
23
+ hash = self.class.normalize(json)
24
+ @object = hash[:object]
25
+ @id = hash[:id]
26
+ @email = hash[:email]
27
+ @created_at = hash[:created_at]
28
+ @updated_at = hash[:updated_at]
29
+ end
30
+ end
31
+ end