workos 10.2.1 → 10.4.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 (292) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +2 -2
  3. data/.github/workflows/docs.yml +3 -3
  4. data/.github/workflows/lint.yml +2 -2
  5. data/.github/workflows/release-please.yml +3 -3
  6. data/.github/workflows/release.yml +2 -2
  7. data/.last-synced-sha +1 -1
  8. data/.oagen-manifest.json +393 -4
  9. data/.release-please-manifest.json +1 -1
  10. data/.ruby-version +1 -1
  11. data/CHANGELOG.md +328 -0
  12. data/Gemfile.lock +14 -14
  13. data/README.md +23 -0
  14. data/lib/workos/admin_portal.rb +2 -2
  15. data/lib/workos/agents/agent_blueprint.rb +43 -0
  16. data/lib/workos/agents/agent_blueprint_invocable_by.rb +7 -0
  17. data/lib/workos/agents/agent_blueprint_session_setting.rb +25 -0
  18. data/lib/workos/agents/agent_blueprints_create_request.rb +31 -0
  19. data/lib/workos/agents/agent_blueprints_create_request_invocable_by.rb +22 -0
  20. data/lib/workos/agents/agent_blueprints_create_request_session_setting.rb +7 -0
  21. data/lib/workos/agents/agent_blueprints_token_mint_token_request.rb +34 -0
  22. data/lib/workos/agents/agent_blueprints_token_validate_token_request.rb +18 -0
  23. data/lib/workos/agents/agent_blueprints_update_request.rb +31 -0
  24. data/lib/workos/agents/agent_blueprints_update_request_invocable_by.rb +7 -0
  25. data/lib/workos/agents/agent_blueprints_update_request_session_setting.rb +25 -0
  26. data/lib/workos/agents/agent_instance.rb +40 -0
  27. data/lib/workos/agents/agent_instance_session.rb +40 -0
  28. data/lib/workos/agents/agent_token.rb +40 -0
  29. data/lib/workos/agents/agent_token_validation.rb +40 -0
  30. data/lib/workos/agents.rb +399 -0
  31. data/lib/workos/audit_logs.rb +23 -5
  32. data/lib/workos/authorization.rb +3 -3
  33. data/lib/workos/base_client.rb +6 -2
  34. data/lib/workos/client.rb +4 -0
  35. data/lib/workos/configuration.rb +3 -2
  36. data/lib/workos/inflections.rb +17 -0
  37. data/lib/workos/multi_factor_auth.rb +1 -1
  38. data/lib/workos/organizations/create_it_contact.rb +18 -0
  39. data/lib/workos/organizations/invite_it_contact.rb +18 -0
  40. data/lib/workos/organizations/it_contact.rb +31 -0
  41. data/lib/workos/organizations/it_contact_list.rb +25 -0
  42. data/lib/workos/organizations/organization_input.rb +10 -1
  43. data/lib/workos/organizations/update_audit_logs_retention.rb +13 -1
  44. data/lib/workos/organizations.rb +110 -1
  45. data/lib/workos/pipes/connected_account.rb +9 -0
  46. data/lib/workos/pipes/create_data_integration.rb +3 -0
  47. data/lib/workos/pipes/data_integration.rb +3 -0
  48. data/lib/workos/pipes/data_integration_installation.rb +9 -0
  49. data/lib/workos/pipes/data_integrations_get_data_integration_authorize_url_request.rb +3 -0
  50. data/lib/workos/pipes/data_integrations_get_user_token_request.rb +11 -2
  51. data/lib/workos/pipes/data_integrations_list_response_data.rb +18 -3
  52. data/lib/workos/pipes/data_integrations_list_response_data_connected_account.rb +9 -0
  53. data/lib/workos/pipes/data_integrations_upsert_api_key_request.rb +25 -1
  54. data/lib/workos/pipes/data_integrations_upsert_client_credentials_request.rb +6 -0
  55. data/lib/workos/pipes/data_integrations_vend_credentials_request.rb +11 -2
  56. data/lib/workos/pipes.rb +324 -17
  57. data/lib/workos/platform_teams/create_team.rb +22 -0
  58. data/lib/workos/platform_teams/team.rb +37 -0
  59. data/lib/workos/platform_teams.rb +58 -0
  60. data/lib/workos/session_manager.rb +11 -6
  61. data/lib/workos/shared/account_selection_required_error.rb +22 -0
  62. data/lib/workos/shared/agent_blueprint_created.rb +34 -0
  63. data/lib/workos/shared/agent_blueprint_created_data.rb +43 -0
  64. data/lib/workos/shared/agent_blueprint_created_data_invocable_by.rb +22 -0
  65. data/lib/workos/shared/agent_blueprint_created_data_session_setting.rb +25 -0
  66. data/lib/workos/shared/agent_blueprint_deleted.rb +34 -0
  67. data/lib/workos/shared/agent_blueprint_deleted_data.rb +31 -0
  68. data/lib/workos/shared/agent_blueprint_updated.rb +34 -0
  69. data/lib/workos/shared/agent_blueprint_updated_data.rb +7 -0
  70. data/lib/workos/shared/agent_blueprint_updated_data_invocable_by.rb +7 -0
  71. data/lib/workos/shared/agent_blueprint_updated_data_session_setting.rb +7 -0
  72. data/lib/workos/shared/agent_instance_created.rb +34 -0
  73. data/lib/workos/shared/agent_instance_created_data.rb +40 -0
  74. data/lib/workos/shared/agent_instance_deleted.rb +34 -0
  75. data/lib/workos/shared/agent_instance_deleted_data.rb +40 -0
  76. data/lib/workos/shared/agent_instance_session_created.rb +34 -0
  77. data/lib/workos/shared/agent_instance_session_created_data.rb +43 -0
  78. data/lib/workos/shared/agent_instance_session_revoked.rb +34 -0
  79. data/lib/workos/shared/agent_instance_session_revoked_data.rb +40 -0
  80. data/lib/workos/shared/pipe_connected_account.rb +15 -0
  81. data/lib/workos/shared/pipes_account_connection_add_failed.rb +34 -0
  82. data/lib/workos/shared/pipes_account_connection_add_failed_data.rb +49 -0
  83. data/lib/workos/shared/pipes_account_connection_connected.rb +34 -0
  84. data/lib/workos/shared/pipes_account_connection_connection_failed.rb +34 -0
  85. data/lib/workos/shared/pipes_account_connection_connection_failed_data.rb +7 -0
  86. data/lib/workos/shared/pipes_account_connection_disconnected.rb +34 -0
  87. data/lib/workos/shared/pipes_account_connection_reauthorization_needed.rb +34 -0
  88. data/lib/workos/shared/pipes_connected_account_connection_failed_data.rb +1 -40
  89. data/lib/workos/shared/resource_export_completed.rb +34 -0
  90. data/lib/workos/shared/resource_export_completed_data.rb +22 -0
  91. data/lib/workos/shared/resource_export_created.rb +34 -0
  92. data/lib/workos/shared/resource_export_created_data.rb +22 -0
  93. data/lib/workos/shared/resource_export_downloaded.rb +34 -0
  94. data/lib/workos/shared/resource_export_downloaded_data.rb +22 -0
  95. data/lib/workos/shared/resource_export_failed.rb +34 -0
  96. data/lib/workos/shared/resource_export_failed_data.rb +22 -0
  97. data/lib/workos/shared/waitlist_user.rb +8 -5
  98. data/lib/workos/sso/create_connection.rb +37 -0
  99. data/lib/workos/sso/create_connection_attribute_maps.rb +22 -0
  100. data/lib/workos/sso/create_connection_key_pair.rb +22 -0
  101. data/lib/workos/sso/create_connection_oidc_options.rb +43 -0
  102. data/lib/workos/sso/create_connection_saml_options.rb +40 -0
  103. data/lib/workos/sso/create_connection_standard_attributes.rb +34 -0
  104. data/lib/workos/sso/create_saml_idp_signing_certificate.rb +18 -0
  105. data/lib/workos/sso/patch_connection.rb +34 -0
  106. data/lib/workos/sso/patch_connection_attribute_maps.rb +22 -0
  107. data/lib/workos/sso/patch_connection_oidc_options.rb +40 -0
  108. data/lib/workos/sso/patch_connection_saml_options.rb +31 -0
  109. data/lib/workos/sso/patch_connection_standard_attributes.rb +7 -0
  110. data/lib/workos/sso/saml_idp_signing_certificate.rb +34 -0
  111. data/lib/workos/sso/saml_idp_signing_certificate_list.rb +22 -0
  112. data/lib/workos/sso/saml_sp_encryption_certificate.rb +34 -0
  113. data/lib/workos/sso/saml_sp_encryption_certificate_list.rb +22 -0
  114. data/lib/workos/sso/saml_sp_signing_certificate.rb +34 -0
  115. data/lib/workos/sso/token_query.rb +11 -2
  116. data/lib/workos/sso.rb +305 -4
  117. data/lib/workos/types/agent_blueprints_token_mint_token_request_type.rb +15 -0
  118. data/lib/workos/types/agent_instance_created_data_type.rb +13 -0
  119. data/lib/workos/types/agent_instance_deleted_data_type.rb +9 -0
  120. data/lib/workos/types/agent_instance_session_status.rb +14 -0
  121. data/lib/workos/types/agent_instance_type.rb +9 -0
  122. data/lib/workos/types/authenticate_response_authentication_method.rb +1 -4
  123. data/lib/workos/types/connected_account_connection_role.rb +13 -0
  124. data/lib/workos/types/connection_activated_data_connection_type.rb +1 -4
  125. data/lib/workos/types/connection_type.rb +1 -4
  126. data/lib/workos/types/connections_connection_type.rb +1 -4
  127. data/lib/workos/types/create_connection_oidc_options_id_token_signature_algorithm.rb +24 -0
  128. data/lib/workos/types/create_connection_oidc_options_token_authentication_method.rb +14 -0
  129. data/lib/workos/types/create_data_integration_ownership.rb +13 -0
  130. data/lib/workos/types/create_webhook_endpoint_events.rb +13 -1
  131. data/lib/workos/types/data_integration_installation_connection_role.rb +9 -0
  132. data/lib/workos/types/data_integration_ownership.rb +9 -0
  133. data/lib/workos/types/data_integrations_get_data_integration_authorize_url_request_connection_owner.rb +9 -0
  134. data/lib/workos/types/data_integrations_get_user_token_request_connection_owner.rb +9 -0
  135. data/lib/workos/types/data_integrations_list_response_data_connected_account_connection_role.rb +9 -0
  136. data/lib/workos/types/data_integrations_list_response_data_connection_owner.rb +9 -0
  137. data/lib/workos/types/data_integrations_upsert_api_key_request_connection_owner.rb +9 -0
  138. data/lib/workos/types/data_integrations_upsert_client_credentials_request_connection_owner.rb +9 -0
  139. data/lib/workos/types/data_integrations_vend_credentials_request_connection_owner.rb +9 -0
  140. data/lib/workos/types/invite_it_contact_intents.rb +16 -0
  141. data/lib/workos/types/patch_connection_oidc_options_id_token_signature_algorithm.rb +9 -0
  142. data/lib/workos/types/patch_connection_oidc_options_token_authentication_method.rb +9 -0
  143. data/lib/workos/types/pipe_connected_account_auth_method.rb +9 -0
  144. data/lib/workos/types/pipe_connected_account_connection_role.rb +9 -0
  145. data/lib/workos/types/pipes_ownership.rb +9 -0
  146. data/lib/workos/types/resource_export_completed_data_resource_type.rb +18 -0
  147. data/lib/workos/types/resource_export_created_data_resource_type.rb +9 -0
  148. data/lib/workos/types/resource_export_downloaded_data_resource_type.rb +9 -0
  149. data/lib/workos/types/resource_export_failed_data_resource_type.rb +9 -0
  150. data/lib/workos/types/session_created_data_status.rb +1 -6
  151. data/lib/workos/types/session_revoked_data_status.rb +1 -1
  152. data/lib/workos/types/sso_grant_type.rb +13 -0
  153. data/lib/workos/types/team_production_state.rb +15 -0
  154. data/lib/workos/types/token_query_grant_type.rb +9 -0
  155. data/lib/workos/types/update_audit_logs_retention_retention_period.rb +32 -0
  156. data/lib/workos/types/user_identities_get_item_provider.rb +1 -4
  157. data/lib/workos/types/user_management_waitlists_state.rb +14 -0
  158. data/lib/workos/types/user_sessions_status.rb +1 -1
  159. data/lib/workos/types/waitlist_entry_state.rb +9 -0
  160. data/lib/workos/types/waitlist_user_state.rb +1 -6
  161. data/lib/workos/user_management/authentication_oauth_failed_data.rb +5 -2
  162. data/lib/workos/user_management/authentication_oauth_succeeded_data.rb +5 -2
  163. data/lib/workos/user_management/authkit_oauth_resource.rb +34 -0
  164. data/lib/workos/user_management/create_authkit_oauth_resource.rb +22 -0
  165. data/lib/workos/user_management/create_password_reset_token.rb +1 -12
  166. data/lib/workos/user_management/create_waitlist_entry.rb +25 -0
  167. data/lib/workos/user_management/email_completion_session_authenticate_request.rb +43 -0
  168. data/lib/workos/user_management/waitlist.rb +28 -0
  169. data/lib/workos/user_management/waitlist_entry.rb +43 -0
  170. data/lib/workos/user_management.rb +263 -0
  171. data/lib/workos/version.rb +1 -1
  172. data/lib/workos.rb +1 -0
  173. data/rbi/workos/account_selection_required_error.rbi +30 -0
  174. data/rbi/workos/agent_blueprint.rbi +72 -0
  175. data/rbi/workos/agent_blueprint_created.rbi +54 -0
  176. data/rbi/workos/agent_blueprint_created_data.rbi +72 -0
  177. data/rbi/workos/agent_blueprint_created_data_invocable_by.rbi +30 -0
  178. data/rbi/workos/agent_blueprint_created_data_session_setting.rbi +36 -0
  179. data/rbi/workos/agent_blueprint_deleted.rbi +54 -0
  180. data/rbi/workos/agent_blueprint_deleted_data.rbi +48 -0
  181. data/rbi/workos/agent_blueprint_invocable_by.rbi +30 -0
  182. data/rbi/workos/agent_blueprint_session_setting.rbi +36 -0
  183. data/rbi/workos/agent_blueprint_updated.rbi +54 -0
  184. data/rbi/workos/agent_blueprint_updated_data.rbi +72 -0
  185. data/rbi/workos/agent_blueprint_updated_data_invocable_by.rbi +30 -0
  186. data/rbi/workos/agent_blueprint_updated_data_session_setting.rbi +36 -0
  187. data/rbi/workos/agent_blueprints_create_request.rbi +48 -0
  188. data/rbi/workos/agent_blueprints_create_request_invocable_by.rbi +30 -0
  189. data/rbi/workos/agent_blueprints_create_request_session_setting.rbi +36 -0
  190. data/rbi/workos/agent_blueprints_token_mint_token_request.rbi +54 -0
  191. data/rbi/workos/agent_blueprints_token_validate_token_request.rbi +24 -0
  192. data/rbi/workos/agent_blueprints_update_request.rbi +48 -0
  193. data/rbi/workos/agent_blueprints_update_request_invocable_by.rbi +30 -0
  194. data/rbi/workos/agent_blueprints_update_request_session_setting.rbi +36 -0
  195. data/rbi/workos/agent_instance.rbi +66 -0
  196. data/rbi/workos/agent_instance_created.rbi +54 -0
  197. data/rbi/workos/agent_instance_created_data.rbi +66 -0
  198. data/rbi/workos/agent_instance_deleted.rbi +54 -0
  199. data/rbi/workos/agent_instance_deleted_data.rbi +66 -0
  200. data/rbi/workos/agent_instance_session.rbi +66 -0
  201. data/rbi/workos/agent_instance_session_created.rbi +54 -0
  202. data/rbi/workos/agent_instance_session_created_data.rbi +72 -0
  203. data/rbi/workos/agent_instance_session_revoked.rbi +54 -0
  204. data/rbi/workos/agent_instance_session_revoked_data.rbi +66 -0
  205. data/rbi/workos/agent_token.rbi +66 -0
  206. data/rbi/workos/agent_token_validation.rbi +66 -0
  207. data/rbi/workos/agents.rbi +134 -0
  208. data/rbi/workos/audit_logs.rbi +26 -2
  209. data/rbi/workos/authentication_oauth_failed_data.rbi +6 -0
  210. data/rbi/workos/authentication_oauth_succeeded_data.rbi +6 -0
  211. data/rbi/workos/authkit_oauth_resource.rbi +54 -0
  212. data/rbi/workos/client.rbi +3 -0
  213. data/rbi/workos/connected_account.rbi +18 -0
  214. data/rbi/workos/create_authkit_oauth_resource.rbi +30 -0
  215. data/rbi/workos/create_connection.rbi +60 -0
  216. data/rbi/workos/create_connection_attribute_maps.rbi +30 -0
  217. data/rbi/workos/create_connection_key_pair.rbi +30 -0
  218. data/rbi/workos/create_connection_oidc_options.rbi +72 -0
  219. data/rbi/workos/create_connection_saml_options.rbi +66 -0
  220. data/rbi/workos/create_connection_standard_attributes.rbi +54 -0
  221. data/rbi/workos/create_data_integration.rbi +6 -0
  222. data/rbi/workos/create_it_contact.rbi +24 -0
  223. data/rbi/workos/create_saml_idp_signing_certificate.rbi +24 -0
  224. data/rbi/workos/create_team.rbi +30 -0
  225. data/rbi/workos/create_waitlist_entry.rbi +36 -0
  226. data/rbi/workos/data_integration.rbi +6 -0
  227. data/rbi/workos/data_integration_installation.rbi +19 -1
  228. data/rbi/workos/data_integrations_get_data_integration_authorize_url_request.rbi +6 -0
  229. data/rbi/workos/data_integrations_get_user_token_request.rbi +18 -0
  230. data/rbi/workos/data_integrations_list_response_data.rbi +12 -0
  231. data/rbi/workos/data_integrations_list_response_data_connected_account.rbi +18 -0
  232. data/rbi/workos/data_integrations_upsert_api_key_request.rbi +12 -0
  233. data/rbi/workos/data_integrations_upsert_client_credentials_request.rbi +12 -0
  234. data/rbi/workos/data_integrations_vend_credentials_request.rbi +18 -0
  235. data/rbi/workos/email_completion_session_authenticate_request.rbi +72 -0
  236. data/rbi/workos/invite_it_contact.rbi +24 -0
  237. data/rbi/workos/it_contact.rbi +48 -0
  238. data/rbi/workos/organizations.rbi +45 -0
  239. data/rbi/workos/patch_connection.rbi +54 -0
  240. data/rbi/workos/patch_connection_attribute_maps.rbi +30 -0
  241. data/rbi/workos/patch_connection_oidc_options.rbi +66 -0
  242. data/rbi/workos/patch_connection_saml_options.rbi +48 -0
  243. data/rbi/workos/patch_connection_standard_attributes.rbi +54 -0
  244. data/rbi/workos/pipe_connected_account.rbi +30 -0
  245. data/rbi/workos/pipes.rbi +122 -11
  246. data/rbi/workos/pipes_account_connection_add_failed.rbi +54 -0
  247. data/rbi/workos/pipes_account_connection_add_failed_data.rbi +84 -0
  248. data/rbi/workos/pipes_account_connection_connected.rbi +54 -0
  249. data/rbi/workos/pipes_account_connection_connection_failed.rbi +54 -0
  250. data/rbi/workos/pipes_account_connection_connection_failed_data.rbi +84 -0
  251. data/rbi/workos/pipes_account_connection_disconnected.rbi +54 -0
  252. data/rbi/workos/pipes_account_connection_reauthorization_needed.rbi +54 -0
  253. data/rbi/workos/pipes_connected_account_connection_failed_data.rbi +6 -0
  254. data/rbi/workos/platform_teams.rbi +30 -0
  255. data/rbi/workos/resource_export_completed.rbi +54 -0
  256. data/rbi/workos/resource_export_completed_data.rbi +30 -0
  257. data/rbi/workos/resource_export_created.rbi +54 -0
  258. data/rbi/workos/resource_export_created_data.rbi +30 -0
  259. data/rbi/workos/resource_export_downloaded.rbi +54 -0
  260. data/rbi/workos/resource_export_downloaded_data.rbi +30 -0
  261. data/rbi/workos/resource_export_failed.rbi +54 -0
  262. data/rbi/workos/resource_export_failed_data.rbi +30 -0
  263. data/rbi/workos/saml_idp_signing_certificate.rbi +54 -0
  264. data/rbi/workos/saml_idp_signing_certificate_list.rbi +30 -0
  265. data/rbi/workos/saml_sp_encryption_certificate.rbi +54 -0
  266. data/rbi/workos/saml_sp_encryption_certificate_list.rbi +30 -0
  267. data/rbi/workos/saml_sp_signing_certificate.rbi +54 -0
  268. data/rbi/workos/sso.rbi +155 -2
  269. data/rbi/workos/team.rbi +60 -0
  270. data/rbi/workos/token_query.rbi +20 -2
  271. data/rbi/workos/update_audit_logs_retention.rbi +8 -2
  272. data/rbi/workos/user_management.rbi +92 -0
  273. data/rbi/workos/waitlist.rbi +42 -0
  274. data/rbi/workos/waitlist_entry.rbi +72 -0
  275. data/rbi/workos/waitlist_user.rbi +12 -6
  276. data/test/workos/test_agents.rb +105 -1
  277. data/test/workos/test_agents_model_round_trip.rb +245 -0
  278. data/test/workos/test_audit_logs.rb +11 -2
  279. data/test/workos/test_authorization.rb +6 -6
  280. data/test/workos/test_organizations.rb +41 -1
  281. data/test/workos/test_organizations_model_round_trip.rb +40 -1
  282. data/test/workos/test_pipes.rb +64 -0
  283. data/test/workos/test_pipes_model_round_trip.rb +35 -5
  284. data/test/workos/test_platform_teams.rb +41 -0
  285. data/test/workos/test_platform_teams_model_round_trip.rb +41 -0
  286. data/test/workos/test_session.rb +63 -0
  287. data/test/workos/test_shared_model_round_trip.rb +610 -2
  288. data/test/workos/test_sso.rb +108 -2
  289. data/test/workos/test_sso_model_round_trip.rb +262 -2
  290. data/test/workos/test_user_management.rb +80 -0
  291. data/test/workos/test_user_management_model_round_trip.rb +110 -2
  292. metadata +194 -1
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "10.2.1"
2
+ ".": "10.4.0"
3
3
  }
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.4.9
1
+ 3.4.10
data/CHANGELOG.md CHANGED
@@ -1,5 +1,333 @@
1
1
  # Changelog
2
2
 
3
+ ## [10.4.0](https://github.com/workos/workos-ruby/compare/v10.3.0...v10.4.0) (2026-09-18)
4
+
5
+ ### Features
6
+
7
+ * Add optional jwt_issuer option for session token validation ([#552](https://github.com/workos/workos-ruby/issues/552)) ([841bf57](https://github.com/workos/workos-ruby/commit/841bf57ed103bf8f1d1a079f7a0d70edb9e7a854))
8
+
9
+ * [#550](https://github.com/workos/workos-ruby/pull/550) fix(generated): regenerate from spec
10
+
11
+ **Features**
12
+ * **[pipes](https://workos.com/docs/reference/pipes)**:
13
+ * Added `connected_account_id` to `DataIntegrationsVendCredentialsRequest`
14
+ * Added `connected_account_id` to `DataIntegrationsGetUserTokenRequest`
15
+ * Added parameter `UserManagementDataProviders.getUserDataInstallation.connected_account_id`
16
+ * Changed errors for endpoint `GET /user_management/users/{user_id}/connected_accounts/{slug}`
17
+ * Added parameter `UserManagementDataProviders.updateUserDataInstallation.connected_account_id`
18
+ * Changed errors for endpoint `PUT /user_management/users/{user_id}/connected_accounts/{slug}`
19
+ * Added parameter `UserManagementDataProviders.deleteUserDataInstallation.connected_account_id`
20
+ * Changed errors for endpoint `DELETE /user_management/users/{user_id}/connected_accounts/{slug}`
21
+ * Added `connected_accounts` to `DataIntegrationsListResponseData`
22
+ * Changed errors for endpoint `PUT /data-integrations/{slug}`
23
+ * Changed errors for endpoint `PUT /data-integrations/{slug}/api-key`
24
+ * Changed errors for endpoint `PUT /data-integrations/{slug}/client-credentials`
25
+ * Changed errors for endpoint `POST /data-integrations/{slug}/credentials`
26
+ * Changed errors for endpoint `POST /data-integrations/{provider}/token`
27
+
28
+ * [#553](https://github.com/workos/workos-ruby/pull/553) feat(generated): regenerate from spec (4 changes)
29
+
30
+ **Features**
31
+ * **[admin_portal](https://workos.com/docs/reference/admin-portal)**:
32
+ * Changed the format of `PortalLinkResponse.link`
33
+ * **[agents](https://workos.com/docs/reference/agents)**:
34
+ * Added parameter `AgentsSessions.list.organization_id`
35
+ * Changed the format of `ClaimViewResponse.user_code`
36
+ * Changed the format of `AgentAdminValidateCredentialRequest.credential`
37
+ * **[api_keys](https://workos.com/docs/reference/authkit/api-keys)**:
38
+ * Changed the format of `ValidateApiKey.value`
39
+ * Changed the format of `OrganizationApiKeyWithValue.value`
40
+ * Changed the format of `UserApiKeyWithValue.value`
41
+ * **[multi_factor_auth](https://workos.com/docs/reference/authkit/mfa)**:
42
+ * Changed the format of `AuthenticationChallenge.code`
43
+ * Changed the format of `AuthenticationFactorEnrolledTotp.secret`
44
+ * Changed the format of `AuthenticationFactorEnrolledTotp.qr_code`
45
+ * Changed the format of `AuthenticationFactorEnrolledTotp.uri`
46
+ * Changed the format of `AuthenticationChallengesVerifyRequest.code`
47
+ * **[pipes](https://workos.com/docs/reference/pipes)**:
48
+ * Added `supports_multiple_connections` to `DataIntegrationsVendCredentialsRequest`
49
+ * Added `supports_multiple_connections` to `DataIntegrationsGetUserTokenRequest`
50
+ * Added parameter `UserManagementDataProviders.getUserDataInstallation.supports_multiple_connections`
51
+ * Added parameter `UserManagementDataProviders.updateUserDataInstallation.supports_multiple_connections`
52
+ * Added parameter `UserManagementDataProviders.deleteUserDataInstallation.supports_multiple_connections`
53
+ * Added parameter `UserManagementDataProviders.getUserDataIntegrations.supports_multiple_connections`
54
+ * Added enum `PipesOwnership`
55
+ * Added `user` to `CreateDataIntegrationOwnership`
56
+ * Added `user` to `DataIntegrationOwnership`
57
+ * Added endpoint `GET /data-integrations/{slug}/organization`
58
+ * Added endpoint `PUT /data-integrations/{slug}/organization`
59
+ * Added endpoint `DELETE /data-integrations/{slug}/organization`
60
+ * Added parameter `Pipes.listDataIntegrations.ownership`
61
+ * Changed errors for endpoint `GET /data-integrations`
62
+ * Changed errors for endpoint `PUT /user_management/users/{user_id}/connected_accounts/{slug}`
63
+ * Changed errors for endpoint `DELETE /user_management/users/{user_id}/connected_accounts/{slug}`
64
+ * Changed the format of `DataIntegrationCredentialsResponseCredential.value`
65
+ * Added `connection_owner` to `DataIntegrationsUpsertApiKeyRequest`
66
+ * Added `connection_owner` to `DataIntegrationsUpsertClientCredentialsRequest`
67
+ * Added enum `DataIntegrationsUpsertApiKeyRequestConnectionOwner`
68
+ * Added enum `DataIntegrationsUpsertClientCredentialsRequestConnectionOwner`
69
+ * Added model `AccountSelectionRequiredError`
70
+ * Added `connected_account_id` to `DataIntegrationsUpsertApiKeyRequest`
71
+ * Added `connected_account_id` to `DataIntegrationsUpsertClientCredentialsRequest`
72
+ * Added `ownership` to `CreateDataIntegration`
73
+ * Added `ownership` to `DataIntegration`
74
+ * Added `connection_owner` to `DataIntegrationsVendCredentialsRequest`
75
+ * Added `connection_owner` to `DataIntegrationsGetUserTokenRequest`
76
+ * Added enum `CreateDataIntegrationOwnership`
77
+ * Added enum `DataIntegrationOwnership`
78
+ * Added enum `DataIntegrationsVendCredentialsRequestConnectionOwner`
79
+ * Added enum `DataIntegrationsGetUserTokenRequestConnectionOwner`
80
+ * Changed errors for endpoint `POST /data-integrations/{slug}/credentials`
81
+ * Changed errors for endpoint `POST /data-integrations/{provider}/token`
82
+ * **[sso](https://workos.com/docs/reference/sso)**:
83
+ * Changed the format of `CreateConnectionKeyPair.key`
84
+ * Changed the format of `TokenQuery.code`
85
+ * Changed the format of `SSOLogoutAuthorizeResponse.logout_url`
86
+ * **[user_management](https://workos.com/docs/reference/authkit/user)**:
87
+ * Added model `CreateAuthkitOAuthResource`
88
+ * Added model `AuthkitOAuthResource`
89
+ * Added service `UserManagementAuthkitOAuthResources`
90
+ * Changed the format of `DeviceAuthorizationResponse.verification_uri_complete`
91
+ * Changed the format of `VerifyEmailAddress.code`
92
+ * Changed the format of `ConfirmEmailChange.code`
93
+ * Changed the format of `MagicAuth.code`
94
+ * Changed the format of `UserInvite.accept_invitation_url`
95
+ * Changed the format of `EmailVerification.code`
96
+ * Changed the format of `PasswordReset.password_reset_url`
97
+ * Changed the format of `AuthenticateResponse.authkit_authorization_code`
98
+ * Changed the format of `DeviceAuthorizationResponse.device_code`
99
+ * Changed the format of `DeviceAuthorizationResponse.user_code`
100
+ * Changed the format of `AuthorizationCodeSessionAuthenticateRequest.code`
101
+ * Changed the format of `AuthorizationCodeSessionAuthenticateRequest.code_verifier`
102
+ * Changed the format of `MagicAuthCodeSessionAuthenticateRequest.code`
103
+ * Changed the format of `EmailVerificationCodeSessionAuthenticateRequest.code`
104
+ * Changed the format of `MfaTotpSessionAuthenticateRequest.code`
105
+ * Changed the format of `RadarEmailChallengeCodeSessionAuthenticateRequest.code`
106
+ * Changed the format of `RadarSmsChallengeCodeSessionAuthenticateRequest.code`
107
+ * Changed the format of `DeviceCodeSessionAuthenticateRequest.device_code`
108
+ * Changed the format of `Invitation.accept_invitation_url`
109
+ * Changed the format of `MagicAuthSendMagicAuthCodeAndReturnResponse.code`
110
+ * **[radar](https://workos.com/docs/reference/radar)**:
111
+ * Changed the format of `RadarChallenge.code`
112
+ * **[vault](https://workos.com/docs/reference/vault)**:
113
+ * Changed the format of `CreateObjectRequest.value`
114
+ * Changed the format of `VaultObject.value`
115
+ * Changed the format of `UpdateObjectRequest.value`
116
+
117
+ **Fixes**
118
+ * **[pipes](https://workos.com/docs/reference/pipes)**:
119
+ * Removed `userland_user` from `CreateDataIntegrationOwnership`
120
+ * Removed `userland_user` from `DataIntegrationOwnership`
121
+ * Changed errors for endpoint `POST /user_management/users/{user_id}/connected_accounts/{slug}`
122
+ * Changed errors for endpoint `PUT /data-integrations/{slug}/api-key`
123
+ * Changed errors for endpoint `PUT /data-integrations/{slug}/client-credentials`
124
+ * Changed errors for endpoint `POST /data-integrations/{slug}/credentials`
125
+ * Changed errors for endpoint `POST /data-integrations/{provider}/token`
126
+ * Changed errors for endpoint `GET /user_management/users/{user_id}/connected_accounts/{slug}`
127
+ * Changed errors for endpoint `PUT /user_management/users/{user_id}/connected_accounts/{slug}`
128
+ * Changed errors for endpoint `DELETE /user_management/users/{user_id}/connected_accounts/{slug}`
129
+ * Changed the type of `DataIntegrationInstallation.user_id`
130
+
131
+ * [#556](https://github.com/workos/workos-ruby/pull/556) fix(generated): regenerate from spec (1 change)
132
+
133
+ **Features**
134
+ * **[multi_factor_auth](https://workos.com/docs/reference/authkit/mfa)**:
135
+ * Changed errors for endpoint `POST /auth/factors/{id}/challenge`
136
+ * **[pipes](https://workos.com/docs/reference/pipes)**:
137
+ * Added `connection_owner` to `DataIntegrationsListResponseData`
138
+ * Added enum `DataIntegrationsListResponseDataConnectionOwner`
139
+ * Added `connection_role` to `DataIntegrationsListResponseDataConnectedAccount`
140
+ * Added `account_identifier` to `DataIntegrationsListResponseDataConnectedAccount`
141
+ * Added `account_display_name` to `DataIntegrationsListResponseDataConnectedAccount`
142
+ * Added enum `DataIntegrationsListResponseDataConnectedAccountConnectionRole`
143
+ * Added `connection_role` to `DataIntegrationInstallation`
144
+ * Added `account_identifier` to `DataIntegrationInstallation`
145
+ * Added `account_display_name` to `DataIntegrationInstallation`
146
+ * Added enum `DataIntegrationInstallationConnectionRole`
147
+ * Added `connection_owner` to `DataIntegrationsGetDataIntegrationAuthorizeUrlRequest`
148
+ * Added enum `DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner`
149
+ * Added the organization connected-account operations on `Pipes`: `client.pipes.get_organization_connected_account`, `create_organization_connected_account`, `update_organization_connected_account`, `delete_organization_connected_account`, `list_organization_data_providers`
150
+ * **[connect](https://workos.com/docs/reference/workos-connect/standalone)**:
151
+ * Added `connection_role` to `ConnectedAccount`
152
+ * Added `account_identifier` to `ConnectedAccount`
153
+ * Added `account_display_name` to `ConnectedAccount`
154
+ * Added enum `ConnectedAccountConnectionRole`
155
+ * **[webhooks](https://workos.com/docs/reference/webhooks)**:
156
+ * Added `pipes.account_connection.add_failed` to `CreateWebhookEndpointEvents`
157
+ * Added `pipes.account_connection.connected` to `CreateWebhookEndpointEvents`
158
+ * Added `pipes.account_connection.connection_failed` to `CreateWebhookEndpointEvents`
159
+ * Added `pipes.account_connection.disconnected` to `CreateWebhookEndpointEvents`
160
+ * Added `pipes.account_connection.reauthorization_needed` to `CreateWebhookEndpointEvents`
161
+ * Added `pipes.account_connection.add_failed` to `UpdateWebhookEndpointEvents`
162
+ * Added `pipes.account_connection.connected` to `UpdateWebhookEndpointEvents`
163
+ * Added `pipes.account_connection.connection_failed` to `UpdateWebhookEndpointEvents`
164
+ * Added `pipes.account_connection.disconnected` to `UpdateWebhookEndpointEvents`
165
+ * Added `pipes.account_connection.reauthorization_needed` to `UpdateWebhookEndpointEvents`
166
+
167
+ **Fixes**
168
+ * **[multi_factor_auth](https://workos.com/docs/reference/authkit/mfa)**:
169
+ * Changed errors for endpoint `POST /auth/factors/{id}/challenge`
170
+
171
+ * [#557](https://github.com/workos/workos-ruby/pull/557) fix(generated): regenerate from spec (1 change)
172
+
173
+ **Fixes**
174
+ * **[multi_factor_auth](https://workos.com/docs/reference/authkit/mfa)**:
175
+ * Changed errors for endpoint `POST /auth/factors/{id}/challenge`
176
+
177
+ ## [10.3.0](https://github.com/workos/workos-ruby/compare/v10.2.1...v10.3.0) (2026-09-01)
178
+
179
+ * [#546](https://github.com/workos/workos-ruby/pull/546) feat(generated)!: regenerate from spec (5 changes)
180
+
181
+ **⚠️ Breaking**
182
+ * **[agents](https://workos.com/docs/reference/agents)**:
183
+ * Removed service `Agents`
184
+ * **[sso](https://workos.com/docs/reference/sso)**:
185
+ * Removed model `TokenBody`
186
+ * Removed enum `TokenBodyGrantType`
187
+ * Removed model `TokenQuery`
188
+ * Changed parameter `SSO.token.grant_type`
189
+
190
+ **Features**
191
+ * **[agents](https://workos.com/docs/reference/agents)**:
192
+ * Added model `AgentBlueprint`
193
+ * Added model `AgentInstance`
194
+ * Added model `AgentToken`
195
+ * Added model `AgentInstanceSession`
196
+ * Added model `AgentBlueprintInvocableBy`
197
+ * Added model `AgentBlueprintSessionSetting`
198
+ * Added model `AgentBlueprintsCreateRequest`
199
+ * Added model `AgentBlueprintsCreateRequestInvocableBy`
200
+ * Added model `AgentBlueprintsCreateRequestSessionSetting`
201
+ * Added model `AgentBlueprintsUpdateRequest`
202
+ * Added model `AgentBlueprintsUpdateRequestInvocableBy`
203
+ * Added model `AgentBlueprintsUpdateRequestSessionSetting`
204
+ * Added model `AgentBlueprintsTokenMintTokenRequest`
205
+ * Added enum `AgentInstanceType`
206
+ * Added enum `AgentInstanceSessionStatus`
207
+ * Added enum `AgentBlueprintsTokenMintTokenRequestType`
208
+ * **agents_blueprints**:
209
+ * Added service `AgentsBlueprints`
210
+ * **agents_blueprints_tokens**:
211
+ * Added service `AgentsBlueprintsTokens`
212
+ * **agents_instances**:
213
+ * Added service `AgentsInstances`
214
+ * **agents_registrations**:
215
+ * Added service `AgentsRegistrations`
216
+ * **agents_sessions**:
217
+ * Added service `AgentsSessions`
218
+ * **[organizations](https://workos.com/docs/reference/organization)**:
219
+ * Added `retention_period` to `UpdateAuditLogsRetention`
220
+ * Made `UpdateAuditLogsRetention.retention_period_in_days` optional
221
+ * Added enum `UpdateAuditLogsRetentionRetentionPeriod`
222
+ * Added model `CreateItContact`
223
+ * Added model `InviteItContact`
224
+ * Added model `ItContact`
225
+ * Added model `ItContactList`
226
+ * Added model `ItContactListListMetadata`
227
+ * Added enum `InviteItContactIntents`
228
+ * Added service `OrganizationsItContacts`
229
+ * **platform_teams**:
230
+ * Added model `CreateTeam`
231
+ * Added model `Team`
232
+ * Added enum `TeamProductionState`
233
+ * Added service `PlatformTeams`
234
+ * **[sso](https://workos.com/docs/reference/sso)**:
235
+ * Added model `TokenQuery`
236
+ * Added enum `TokenQueryGrantType`
237
+ * Added model `CreateConnectionKeyPair`
238
+ * Added model `CreateConnectionSAMLOptions`
239
+ * Added model `CreateConnectionOidcOptions`
240
+ * Added model `CreateConnectionStandardAttributes`
241
+ * Added model `CreateConnectionAttributeMaps`
242
+ * Added model `CreateConnection`
243
+ * Added model `PatchConnectionSAMLOptions`
244
+ * Added model `PatchConnectionOidcOptions`
245
+ * Added model `PatchConnectionStandardAttributes`
246
+ * Added model `PatchConnectionAttributeMaps`
247
+ * Added model `PatchConnection`
248
+ * Added model `CreateSAMLIdpSigningCertificate`
249
+ * Added model `SAMLIdpSigningCertificate`
250
+ * Added model `SAMLIdpSigningCertificateList`
251
+ * Added model `SAMLSpEncryptionCertificate`
252
+ * Added model `SAMLSpEncryptionCertificateList`
253
+ * Added model `SAMLSpSigningCertificate`
254
+ * Added enum `CreateConnectionOidcOptionsIdTokenSignatureAlgorithm`
255
+ * Added enum `PatchConnectionOidcOptionsIdTokenSignatureAlgorithm`
256
+ * Added endpoint `POST /connections`
257
+ * Added endpoint `GET /connections/{connectionId}/saml_idp_signing_certs`
258
+ * Added endpoint `POST /connections/{connectionId}/saml_idp_signing_certs`
259
+ * Added endpoint `DELETE /connections/{connectionId}/saml_idp_signing_certs/{certificateId}`
260
+ * Added endpoint `GET /connections/{connectionId}/saml_sp_encryption_certs`
261
+ * Added endpoint `POST /connections/{connectionId}/saml_sp_encryption_certs`
262
+ * Added endpoint `DELETE /connections/{connectionId}/saml_sp_encryption_certs/{certificateId}`
263
+ * Added endpoint `GET /connections/{connectionId}/saml_sp_signing_cert`
264
+ * Added endpoint `POST /connections/{connectionId}/saml_sp_signing_cert`
265
+ * Added endpoint `DELETE /connections/{connectionId}/saml_sp_signing_cert/{certificateId}`
266
+ * Added endpoint `PATCH /connections/{id}`
267
+ * Added model `TokenBody`
268
+ * Added enum `TokenBodyGrantType`
269
+ * Added enum `SSOGrantType`
270
+ * Changed required status for parameter `SSO.token.code`
271
+ * **[user_management](https://workos.com/docs/reference/authkit/user)**:
272
+ * Added enum `CreateConnectionOidcOptionsTokenAuthenticationMethod`
273
+ * Added enum `PatchConnectionOidcOptionsTokenAuthenticationMethod`
274
+ * Added model `EmailCompletionSessionAuthenticateRequest`
275
+ * Added model `CreateWaitlistEntry`
276
+ * Added model `Waitlist`
277
+ * Added model `WaitlistEntry`
278
+ * Added enum `WaitlistEntryState`
279
+ * Added enum `UserManagementWaitlistsState`
280
+ * Added service `UserManagementWaitlists`
281
+ * **[webhooks](https://workos.com/docs/reference/webhooks)**:
282
+ * Added `agent.instance.created` to `CreateWebhookEndpointEvents`
283
+ * Added `agent.instance.deleted` to `CreateWebhookEndpointEvents`
284
+ * Added `agent.instance.session.created` to `CreateWebhookEndpointEvents`
285
+ * Added `agent.instance.session.revoked` to `CreateWebhookEndpointEvents`
286
+ * Added `agent.instance.created` to `UpdateWebhookEndpointEvents`
287
+ * Added `agent.instance.deleted` to `UpdateWebhookEndpointEvents`
288
+ * Added `agent.instance.session.created` to `UpdateWebhookEndpointEvents`
289
+ * Added `agent.instance.session.revoked` to `UpdateWebhookEndpointEvents`
290
+ * Added `agent.blueprint.created` to `CreateWebhookEndpointEvents`
291
+ * Added `agent.blueprint.deleted` to `CreateWebhookEndpointEvents`
292
+ * Added `agent.blueprint.updated` to `CreateWebhookEndpointEvents`
293
+ * Added `agent.blueprint.created` to `UpdateWebhookEndpointEvents`
294
+ * Added `agent.blueprint.deleted` to `UpdateWebhookEndpointEvents`
295
+ * Added `agent.blueprint.updated` to `UpdateWebhookEndpointEvents`
296
+
297
+ **Fixes**
298
+ * **[sso](https://workos.com/docs/reference/sso)**:
299
+ * Changed request body of `SSO.token` from `TokenBody` to `TokenQuery`
300
+ * Removed `DiscordOAuth` from `ConnectionType`
301
+ * Removed `GrokOAuth` from `ConnectionType`
302
+ * Removed `XOAuth` from `ConnectionType`
303
+ * Removed `DiscordOAuth` from `ProfileConnectionType`
304
+ * Removed `GrokOAuth` from `ProfileConnectionType`
305
+ * Removed `XOAuth` from `ProfileConnectionType`
306
+ * Removed `DiscordOAuth` from `ConnectionsConnectionType`
307
+ * Removed `GrokOAuth` from `ConnectionsConnectionType`
308
+ * Removed `XOAuth` from `ConnectionsConnectionType`
309
+ * Changed request body of `SSO.token` from `TokenQuery` to `TokenBody`
310
+ * **[user_management](https://workos.com/docs/reference/authkit/user)**:
311
+ * Changed request body for `UserManagementAuthentication.authenticate`
312
+ * Changed errors for endpoint `POST /user_management/authenticate`
313
+ * Removed `DiscordOAuth` from `AuthenticateResponseAuthenticationMethod`
314
+ * Removed `GrokOAuth` from `AuthenticateResponseAuthenticationMethod`
315
+ * Removed `XOAuth` from `AuthenticateResponseAuthenticationMethod`
316
+ * Removed `DiscordOAuth` from `UserIdentitiesGetItemProvider`
317
+ * Removed `GrokOAuth` from `UserIdentitiesGetItemProvider`
318
+ * Removed `XOAuth` from `UserIdentitiesGetItemProvider`
319
+ * Changed errors for endpoint `DELETE /user_management/users/{id}`
320
+
321
+ * [#549](https://github.com/workos/workos-ruby/pull/549) fix(generated): regenerate from spec
322
+
323
+ **Features**
324
+ * **[agents](https://workos.com/docs/reference/agents)**:
325
+ * Made `AgentBlueprintsCreateRequest.session_settings` optional
326
+ * Added model `AgentTokenValidation`
327
+ * Added model `AgentBlueprintsTokenValidateTokenRequest`
328
+ * **agents_blueprints_tokens**:
329
+ * Added endpoint `POST /agents/blueprints/{agent_blueprint_id}/tokens/validate`
330
+
3
331
  ## [10.2.1](https://github.com/workos/workos-ruby/compare/v10.2.0...v10.2.1) (2026-08-20)
4
332
 
5
333
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- workos (10.2.1)
4
+ workos (10.4.0)
5
5
  jwt (~> 3.1)
6
6
  logger (~> 1.7)
7
7
  zeitwerk (~> 2.6)
@@ -17,12 +17,12 @@ GEM
17
17
  crack (1.0.1)
18
18
  bigdecimal
19
19
  rexml
20
- csv (3.3.5)
20
+ csv (3.3.6)
21
21
  date (3.5.1)
22
22
  drb (2.2.3)
23
- erb (6.0.4)
23
+ erb (6.0.7)
24
24
  hashdiff (1.2.1)
25
- json (2.19.4)
25
+ json (2.19.9)
26
26
  jwt (3.2.0)
27
27
  base64
28
28
  language_server-protocol (3.17.0.5)
@@ -36,7 +36,7 @@ GEM
36
36
  ast (~> 2.4.1)
37
37
  racc
38
38
  prism (1.9.0)
39
- psych (5.3.1)
39
+ psych (5.5.0)
40
40
  date
41
41
  stringio
42
42
  public_suffix (7.0.5)
@@ -90,8 +90,8 @@ GEM
90
90
  crack (>= 0.3.2)
91
91
  hashdiff (>= 0.4.0, < 2.0.0)
92
92
  webrick (1.9.2)
93
- yard (0.9.44)
94
- yard-markdown (0.7.1)
93
+ yard (0.9.45)
94
+ yard-markdown (0.9.1)
95
95
  csv
96
96
  rdoc
97
97
  yard
@@ -118,12 +118,12 @@ CHECKSUMS
118
118
  base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
119
119
  bigdecimal (4.1.2) sha256=53d217666027eab4280346fba98e7d5b66baaae1b9c3c1c0ffe89d48188a3fbd
120
120
  crack (1.0.1) sha256=ff4a10390cd31d66440b7524eb1841874db86201d5b70032028553130b6d4c7e
121
- csv (3.3.5) sha256=6e5134ac3383ef728b7f02725d9872934f523cb40b961479f69cf3afa6c8e73f
121
+ csv (3.3.6) sha256=aba61e7e507a66f03d45cb1f3c4b6359861c3504038b422962875dce099e4456
122
122
  date (3.5.1) sha256=750d06384d7b9c15d562c76291407d89e368dda4d4fff957eb94962d325a0dc0
123
123
  drb (2.2.3) sha256=0b00d6fdb50995fe4a45dea13663493c841112e4068656854646f418fda13373
124
- erb (6.0.4) sha256=38e3803694be357fe2bfe312487c74beaf9fb4e5beb3e22498952fe1645b95d9
124
+ erb (6.0.7) sha256=c5ca6dc25b0ef974a44dc8f59fe847577122483b1968a38dec305c60bf91ee92
125
125
  hashdiff (1.2.1) sha256=9c079dbc513dfc8833ab59c0c2d8f230fa28499cc5efb4b8dd276cf931457cd1
126
- json (2.19.4) sha256=670a7d333fb3b18ca5b29cb255eb7bef099e40d88c02c80bd42a3f30fe5239ac
126
+ json (2.19.9) sha256=9b9025b7cdddafa38d316eca0b2358488e42d417045c1b90d216a9fefe46b79a
127
127
  jwt (3.2.0) sha256=5419b1fe37b1da0982bd07051f573a8b8789ab724c2aa7e785e4784a3ed217d7
128
128
  language_server-protocol (3.17.0.5) sha256=fd1e39a51a28bf3eec959379985a72e296e9f9acfce46f6a79d31ca8760803cc
129
129
  lint_roller (1.1.0) sha256=2c0c845b632a7d172cb849cc90c1bce937a28c5c8ccccb50dfd46a485003cc87
@@ -132,7 +132,7 @@ CHECKSUMS
132
132
  parallel (1.28.0) sha256=33e6de1484baf2524792d178b0913fc8eb94c628d6cfe45599ad4458c638c970
133
133
  parser (3.3.11.1) sha256=d17ace7aabe3e72c3cc94043714be27cc6f852f104d81aa284c2281aecc65d54
134
134
  prism (1.9.0) sha256=7b530c6a9f92c24300014919c9dcbc055bf4cdf51ec30aed099b06cd6674ef85
135
- psych (5.3.1) sha256=eb7a57cef10c9d70173ff74e739d843ac3b2c019a003de48447b2963d81b1974
135
+ psych (5.5.0) sha256=4b245bbbd0f3238df8ccee766ebc1a6b062b10e4ee1d3284eb588739ba156a0a
136
136
  public_suffix (7.0.5) sha256=1a8bb08f1bbea19228d3bed6e5ed908d1cb4f7c2726d18bd9cadf60bc676f623
137
137
  racc (1.8.1) sha256=4a7f6929691dbec8b5209a0b373bc2614882b55fc5d2e447a21aaa691303d62f
138
138
  rainbow (3.1.1) sha256=039491aa3a89f42efa1d6dec2fc4e62ede96eb6acd95e52f1ad581182b79bc6a
@@ -153,9 +153,9 @@ CHECKSUMS
153
153
  unicode-emoji (4.2.0) sha256=519e69150f75652e40bf736106cfbc8f0f73aa3fb6a65afe62fefa7f80b0f80f
154
154
  webmock (3.26.2) sha256=774556f2ea6371846cca68c01769b2eac0d134492d21f6d0ab5dd643965a4c90
155
155
  webrick (1.9.2) sha256=beb4a15fc474defed24a3bda4ffd88a490d517c9e4e6118c3edce59e45864131
156
- workos (10.2.1)
157
- yard (0.9.44) sha256=eb087e9b631ccd887b049f303d489963945452d5e2a7eb49a5a74a7cf6887f28
158
- yard-markdown (0.7.1) sha256=06c378632dfe7ba053be9ba469eb4701aa0470e36bcf7e5546f353eb90c1bfd1
156
+ workos (10.4.0)
157
+ yard (0.9.45) sha256=52e211493f7cb8a3ebf7e104a25a1e73937a3103092545d34cb88fafebb3dc51
158
+ yard-markdown (0.9.1) sha256=51adf55a814172f70ed81fbd1af4dc42c0e1a698915f7da33eff5a3bb527062d
159
159
  zeitwerk (2.7.5) sha256=d8da92128c09ea6ec62c949011b00ed4a20242b255293dd66bf41545398f73dd
160
160
 
161
161
  BUNDLED WITH
data/README.md CHANGED
@@ -155,6 +155,29 @@ Anything shorter than 32 bytes (including `nil` or `""`) raises
155
155
  `ArgumentError` as soon as you load, seal, or unseal a session — sealing or
156
156
  unsealing will not silently proceed with a weakened key.
157
157
 
158
+ ### Validating the access token issuer
159
+
160
+ By default the SDK verifies the signature and expiry of session access tokens
161
+ but does not check the `iss` claim. To also require a specific issuer (or one
162
+ of several), set `jwt_issuer` on the client — either a single string or an
163
+ array of accepted issuers:
164
+
165
+ ```ruby
166
+ WorkOS.configure do |config|
167
+ config.jwt_issuer = "https://api.workos.com/user_management/#{ENV["WORKOS_CLIENT_ID"]}"
168
+ end
169
+
170
+ # or per client
171
+ client = WorkOS::Client.new(
172
+ api_key: ENV.fetch("WORKOS_API_KEY"),
173
+ client_id: ENV["WORKOS_CLIENT_ID"],
174
+ jwt_issuer: ["https://api.workos.com", "https://auth.example.com"]
175
+ )
176
+ ```
177
+
178
+ Tokens whose `iss` is not in the configured set fail authentication with
179
+ reason `WorkOS::SessionManager::INVALID_JWT`.
180
+
158
181
  ### Verify a webhook
159
182
 
160
183
  ```ruby
@@ -11,8 +11,8 @@ module WorkOS
11
11
  end
12
12
 
13
13
  # Generate a Portal Link
14
- # @param return_url [String, nil] The URL to go to when an admin clicks on your logo in the Admin Portal. If not specified, the return URL configured on the [Redirects](https://dashboard.workos.com/redirects) page will be used.
15
- # @param success_url [String, nil] The URL to redirect the admin to when they finish setup. If not specified, the success URL configured on the [Redirects](https://dashboard.workos.com/redirects) page will be used.
14
+ # @param return_url [String, nil] The URL to go to when an admin clicks on your logo in the Admin Portal. If not specified, the return URL configured on the [Admin Portal](https://dashboard.workos.com/admin-portal) page will be used.
15
+ # @param success_url [String, nil] The URL to redirect the admin to when they finish setup. If not specified, the success URL configured on the [Admin Portal](https://dashboard.workos.com/admin-portal) page will be used.
16
16
  # @param organization [String] An [Organization](https://workos.com/docs/reference/organization) identifier.
17
17
  # @param intent [WorkOS::Types::GenerateLinkIntent, nil] The intent of the Admin Portal. - `sso` - Launch Admin Portal for creating SSO connections - `dsync` - Launch Admin Portal for creating Directory Sync connections - `audit_logs` - Launch Admin Portal for viewing Audit Logs - `log_streams` - Launch Admin Portal for creating Log Streams - `domain_verification` - Launch Admin Portal for Domain Verification - `certificate_renewal` - Launch Admin Portal for renewing SAML Certificates - `bring_your_own_key` - Launch Admin Portal for configuring Bring Your Own Key
18
18
  # @param it_contact_emails [Array<String>, nil] The email addresses of the IT contacts to grant access to the Admin Portal for the given organization. Accepts up to 20 emails.
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class AgentBlueprint < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ object: :object,
9
+ id: :id,
10
+ name: :name,
11
+ description: :description,
12
+ permissions: :permissions,
13
+ invocable_by: :invocable_by,
14
+ session_settings: :session_settings,
15
+ created_at: :created_at,
16
+ updated_at: :updated_at
17
+ }.freeze
18
+
19
+ attr_accessor \
20
+ :object,
21
+ :id,
22
+ :name,
23
+ :description,
24
+ :permissions,
25
+ :invocable_by,
26
+ :session_settings,
27
+ :created_at,
28
+ :updated_at
29
+
30
+ def initialize(json)
31
+ hash = self.class.normalize(json)
32
+ @object = hash[:object]
33
+ @id = hash[:id]
34
+ @name = hash[:name]
35
+ @description = hash[:description]
36
+ @permissions = hash[:permissions] || []
37
+ @invocable_by = hash[:invocable_by] ? WorkOS::AgentBlueprintInvocableBy.new(hash[:invocable_by]) : nil
38
+ @session_settings = hash[:session_settings] ? WorkOS::AgentBlueprintSessionSetting.new(hash[:session_settings]) : nil
39
+ @created_at = hash[:created_at]
40
+ @updated_at = hash[:updated_at]
41
+ end
42
+ end
43
+ 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
+ AgentBlueprintInvocableBy = AgentBlueprintCreatedDataInvocableBy
7
+ 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 AgentBlueprintSessionSetting < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ max_age_seconds: :max_age_seconds,
9
+ access_token_ttl_seconds: :access_token_ttl_seconds,
10
+ refresh_token_ttl_seconds: :refresh_token_ttl_seconds
11
+ }.freeze
12
+
13
+ attr_accessor \
14
+ :max_age_seconds,
15
+ :access_token_ttl_seconds,
16
+ :refresh_token_ttl_seconds
17
+
18
+ def initialize(json)
19
+ hash = self.class.normalize(json)
20
+ @max_age_seconds = hash[:max_age_seconds]
21
+ @access_token_ttl_seconds = hash[:access_token_ttl_seconds]
22
+ @refresh_token_ttl_seconds = hash[:refresh_token_ttl_seconds]
23
+ end
24
+ end
25
+ 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 AgentBlueprintsCreateRequest < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ name: :name,
9
+ description: :description,
10
+ permissions: :permissions,
11
+ invocable_by: :invocable_by,
12
+ session_settings: :session_settings
13
+ }.freeze
14
+
15
+ attr_accessor \
16
+ :name,
17
+ :description,
18
+ :permissions,
19
+ :invocable_by,
20
+ :session_settings
21
+
22
+ def initialize(json)
23
+ hash = self.class.normalize(json)
24
+ @name = hash[:name]
25
+ @description = hash[:description]
26
+ @permissions = hash[:permissions] || []
27
+ @invocable_by = hash[:invocable_by] ? WorkOS::AgentBlueprintsCreateRequestInvocableBy.new(hash[:invocable_by]) : nil
28
+ @session_settings = hash[:session_settings] ? WorkOS::AgentBlueprintsCreateRequestSessionSetting.new(hash[:session_settings]) : nil
29
+ end
30
+ end
31
+ 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 AgentBlueprintsCreateRequestInvocableBy < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ role_slugs: :role_slugs,
9
+ organization_ids: :organization_ids
10
+ }.freeze
11
+
12
+ attr_accessor \
13
+ :role_slugs,
14
+ :organization_ids
15
+
16
+ def initialize(json)
17
+ hash = self.class.normalize(json)
18
+ @role_slugs = hash[:role_slugs] || []
19
+ @organization_ids = hash[:organization_ids] || []
20
+ end
21
+ end
22
+ 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
+ AgentBlueprintsCreateRequestSessionSetting = AgentBlueprintSessionSetting
7
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class AgentBlueprintsTokenMintTokenRequest < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ type: :type,
9
+ user_access_token: :user_access_token,
10
+ intent: :intent,
11
+ organization_id: :organization_id,
12
+ agent_access_token: :agent_access_token,
13
+ refresh_token: :refresh_token
14
+ }.freeze
15
+
16
+ attr_accessor \
17
+ :type,
18
+ :user_access_token,
19
+ :intent,
20
+ :organization_id,
21
+ :agent_access_token,
22
+ :refresh_token
23
+
24
+ def initialize(json)
25
+ hash = self.class.normalize(json)
26
+ @type = hash[:type]
27
+ @user_access_token = hash[:user_access_token]
28
+ @intent = hash[:intent]
29
+ @organization_id = hash[:organization_id]
30
+ @agent_access_token = hash[:agent_access_token]
31
+ @refresh_token = hash[:refresh_token]
32
+ end
33
+ end
34
+ end