workos 10.2.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 (216) hide show
  1. checksums.yaml +4 -4
  2. data/.last-synced-sha +1 -1
  3. data/.oagen-manifest.json +311 -0
  4. data/.release-please-manifest.json +1 -1
  5. data/CHANGELOG.md +154 -0
  6. data/Gemfile.lock +2 -2
  7. data/lib/workos/agents/agent_blueprint.rb +43 -0
  8. data/lib/workos/agents/agent_blueprint_invocable_by.rb +7 -0
  9. data/lib/workos/agents/agent_blueprint_session_setting.rb +25 -0
  10. data/lib/workos/agents/agent_blueprints_create_request.rb +31 -0
  11. data/lib/workos/agents/agent_blueprints_create_request_invocable_by.rb +22 -0
  12. data/lib/workos/agents/agent_blueprints_create_request_session_setting.rb +7 -0
  13. data/lib/workos/agents/agent_blueprints_token_mint_token_request.rb +34 -0
  14. data/lib/workos/agents/agent_blueprints_token_validate_token_request.rb +18 -0
  15. data/lib/workos/agents/agent_blueprints_update_request.rb +31 -0
  16. data/lib/workos/agents/agent_blueprints_update_request_invocable_by.rb +7 -0
  17. data/lib/workos/agents/agent_blueprints_update_request_session_setting.rb +25 -0
  18. data/lib/workos/agents/agent_instance.rb +40 -0
  19. data/lib/workos/agents/agent_instance_session.rb +40 -0
  20. data/lib/workos/agents/agent_token.rb +40 -0
  21. data/lib/workos/agents/agent_token_validation.rb +40 -0
  22. data/lib/workos/agents.rb +395 -0
  23. data/lib/workos/api_keys/validate_api_key.rb +1 -12
  24. data/lib/workos/audit_logs.rb +23 -5
  25. data/lib/workos/authorization.rb +3 -3
  26. data/lib/workos/client.rb +4 -0
  27. data/lib/workos/inflections.rb +15 -0
  28. data/lib/workos/organizations/create_it_contact.rb +18 -0
  29. data/lib/workos/organizations/invite_it_contact.rb +18 -0
  30. data/lib/workos/organizations/it_contact.rb +31 -0
  31. data/lib/workos/organizations/it_contact_list.rb +25 -0
  32. data/lib/workos/organizations/organization_input.rb +10 -1
  33. data/lib/workos/organizations/update_audit_logs_retention.rb +13 -1
  34. data/lib/workos/organizations.rb +110 -1
  35. data/lib/workos/platform_teams/create_team.rb +22 -0
  36. data/lib/workos/platform_teams/team.rb +37 -0
  37. data/lib/workos/platform_teams.rb +58 -0
  38. data/lib/workos/shared/agent_blueprint_created.rb +34 -0
  39. data/lib/workos/shared/agent_blueprint_created_data.rb +43 -0
  40. data/lib/workos/shared/agent_blueprint_created_data_invocable_by.rb +22 -0
  41. data/lib/workos/shared/agent_blueprint_created_data_session_setting.rb +25 -0
  42. data/lib/workos/shared/agent_blueprint_deleted.rb +34 -0
  43. data/lib/workos/shared/agent_blueprint_deleted_data.rb +31 -0
  44. data/lib/workos/shared/agent_blueprint_updated.rb +34 -0
  45. data/lib/workos/shared/agent_blueprint_updated_data.rb +7 -0
  46. data/lib/workos/shared/agent_blueprint_updated_data_invocable_by.rb +7 -0
  47. data/lib/workos/shared/agent_blueprint_updated_data_session_setting.rb +7 -0
  48. data/lib/workos/shared/agent_instance_created.rb +34 -0
  49. data/lib/workos/shared/agent_instance_created_data.rb +40 -0
  50. data/lib/workos/shared/agent_instance_deleted.rb +34 -0
  51. data/lib/workos/shared/agent_instance_deleted_data.rb +40 -0
  52. data/lib/workos/shared/agent_instance_session_created.rb +34 -0
  53. data/lib/workos/shared/agent_instance_session_created_data.rb +43 -0
  54. data/lib/workos/shared/agent_instance_session_revoked.rb +34 -0
  55. data/lib/workos/shared/agent_instance_session_revoked_data.rb +40 -0
  56. data/lib/workos/shared/resource_export_completed.rb +34 -0
  57. data/lib/workos/shared/resource_export_completed_data.rb +22 -0
  58. data/lib/workos/shared/resource_export_created.rb +34 -0
  59. data/lib/workos/shared/resource_export_created_data.rb +22 -0
  60. data/lib/workos/shared/resource_export_downloaded.rb +34 -0
  61. data/lib/workos/shared/resource_export_downloaded_data.rb +22 -0
  62. data/lib/workos/shared/resource_export_failed.rb +34 -0
  63. data/lib/workos/shared/resource_export_failed_data.rb +22 -0
  64. data/lib/workos/shared/waitlist_user.rb +8 -5
  65. data/lib/workos/sso/create_connection.rb +37 -0
  66. data/lib/workos/sso/create_connection_attribute_maps.rb +22 -0
  67. data/lib/workos/sso/create_connection_key_pair.rb +22 -0
  68. data/lib/workos/sso/create_connection_oidc_options.rb +43 -0
  69. data/lib/workos/sso/create_connection_saml_options.rb +40 -0
  70. data/lib/workos/sso/create_connection_standard_attributes.rb +34 -0
  71. data/lib/workos/sso/create_saml_idp_signing_certificate.rb +18 -0
  72. data/lib/workos/sso/patch_connection.rb +34 -0
  73. data/lib/workos/sso/patch_connection_attribute_maps.rb +22 -0
  74. data/lib/workos/sso/patch_connection_oidc_options.rb +40 -0
  75. data/lib/workos/sso/patch_connection_saml_options.rb +31 -0
  76. data/lib/workos/sso/patch_connection_standard_attributes.rb +7 -0
  77. data/lib/workos/sso/saml_idp_signing_certificate.rb +34 -0
  78. data/lib/workos/sso/saml_idp_signing_certificate_list.rb +22 -0
  79. data/lib/workos/sso/saml_sp_encryption_certificate.rb +34 -0
  80. data/lib/workos/sso/saml_sp_encryption_certificate_list.rb +22 -0
  81. data/lib/workos/sso/saml_sp_signing_certificate.rb +34 -0
  82. data/lib/workos/sso/token_query.rb +11 -2
  83. data/lib/workos/sso.rb +305 -4
  84. data/lib/workos/types/agent_blueprints_token_mint_token_request_type.rb +15 -0
  85. data/lib/workos/types/agent_instance_created_data_type.rb +13 -0
  86. data/lib/workos/types/agent_instance_deleted_data_type.rb +9 -0
  87. data/lib/workos/types/agent_instance_session_status.rb +14 -0
  88. data/lib/workos/types/agent_instance_type.rb +9 -0
  89. data/lib/workos/types/authenticate_response_authentication_method.rb +1 -4
  90. data/lib/workos/types/connection_activated_data_connection_type.rb +1 -4
  91. data/lib/workos/types/connection_type.rb +1 -4
  92. data/lib/workos/types/connections_connection_type.rb +1 -4
  93. data/lib/workos/types/create_connection_oidc_options_id_token_signature_algorithm.rb +24 -0
  94. data/lib/workos/types/create_connection_oidc_options_token_authentication_method.rb +14 -0
  95. data/lib/workos/types/create_webhook_endpoint_events.rb +8 -1
  96. data/lib/workos/types/invite_it_contact_intents.rb +16 -0
  97. data/lib/workos/types/patch_connection_oidc_options_id_token_signature_algorithm.rb +9 -0
  98. data/lib/workos/types/patch_connection_oidc_options_token_authentication_method.rb +9 -0
  99. data/lib/workos/types/resource_export_completed_data_resource_type.rb +16 -0
  100. data/lib/workos/types/resource_export_created_data_resource_type.rb +9 -0
  101. data/lib/workos/types/resource_export_downloaded_data_resource_type.rb +9 -0
  102. data/lib/workos/types/resource_export_failed_data_resource_type.rb +9 -0
  103. data/lib/workos/types/session_created_data_status.rb +1 -6
  104. data/lib/workos/types/session_revoked_data_status.rb +1 -1
  105. data/lib/workos/types/sso_grant_type.rb +13 -0
  106. data/lib/workos/types/team_production_state.rb +15 -0
  107. data/lib/workos/types/token_query_grant_type.rb +9 -0
  108. data/lib/workos/types/update_audit_logs_retention_retention_period.rb +32 -0
  109. data/lib/workos/types/user_identities_get_item_provider.rb +1 -4
  110. data/lib/workos/types/user_management_waitlists_state.rb +14 -0
  111. data/lib/workos/types/user_sessions_status.rb +1 -1
  112. data/lib/workos/types/waitlist_entry_state.rb +9 -0
  113. data/lib/workos/types/waitlist_user_state.rb +1 -6
  114. data/lib/workos/user_management/authentication_oauth_failed_data.rb +5 -2
  115. data/lib/workos/user_management/authentication_oauth_succeeded_data.rb +5 -2
  116. data/lib/workos/user_management/create_password_reset_token.rb +1 -12
  117. data/lib/workos/user_management/create_waitlist_entry.rb +25 -0
  118. data/lib/workos/user_management/email_completion_session_authenticate_request.rb +43 -0
  119. data/lib/workos/user_management/waitlist.rb +28 -0
  120. data/lib/workos/user_management/waitlist_entry.rb +43 -0
  121. data/lib/workos/user_management.rb +176 -0
  122. data/lib/workos/version.rb +1 -1
  123. data/lib/workos.rb +1 -0
  124. data/rbi/workos/agent_blueprint.rbi +72 -0
  125. data/rbi/workos/agent_blueprint_created.rbi +54 -0
  126. data/rbi/workos/agent_blueprint_created_data.rbi +72 -0
  127. data/rbi/workos/agent_blueprint_created_data_invocable_by.rbi +30 -0
  128. data/rbi/workos/agent_blueprint_created_data_session_setting.rbi +36 -0
  129. data/rbi/workos/agent_blueprint_deleted.rbi +54 -0
  130. data/rbi/workos/agent_blueprint_deleted_data.rbi +48 -0
  131. data/rbi/workos/agent_blueprint_invocable_by.rbi +30 -0
  132. data/rbi/workos/agent_blueprint_session_setting.rbi +36 -0
  133. data/rbi/workos/agent_blueprint_updated.rbi +54 -0
  134. data/rbi/workos/agent_blueprint_updated_data.rbi +72 -0
  135. data/rbi/workos/agent_blueprint_updated_data_invocable_by.rbi +30 -0
  136. data/rbi/workos/agent_blueprint_updated_data_session_setting.rbi +36 -0
  137. data/rbi/workos/agent_blueprints_create_request.rbi +48 -0
  138. data/rbi/workos/agent_blueprints_create_request_invocable_by.rbi +30 -0
  139. data/rbi/workos/agent_blueprints_create_request_session_setting.rbi +36 -0
  140. data/rbi/workos/agent_blueprints_token_mint_token_request.rbi +54 -0
  141. data/rbi/workos/agent_blueprints_token_validate_token_request.rbi +24 -0
  142. data/rbi/workos/agent_blueprints_update_request.rbi +48 -0
  143. data/rbi/workos/agent_blueprints_update_request_invocable_by.rbi +30 -0
  144. data/rbi/workos/agent_blueprints_update_request_session_setting.rbi +36 -0
  145. data/rbi/workos/agent_instance.rbi +66 -0
  146. data/rbi/workos/agent_instance_created.rbi +54 -0
  147. data/rbi/workos/agent_instance_created_data.rbi +66 -0
  148. data/rbi/workos/agent_instance_deleted.rbi +54 -0
  149. data/rbi/workos/agent_instance_deleted_data.rbi +66 -0
  150. data/rbi/workos/agent_instance_session.rbi +66 -0
  151. data/rbi/workos/agent_instance_session_created.rbi +54 -0
  152. data/rbi/workos/agent_instance_session_created_data.rbi +72 -0
  153. data/rbi/workos/agent_instance_session_revoked.rbi +54 -0
  154. data/rbi/workos/agent_instance_session_revoked_data.rbi +66 -0
  155. data/rbi/workos/agent_token.rbi +66 -0
  156. data/rbi/workos/agent_token_validation.rbi +66 -0
  157. data/rbi/workos/agents.rbi +133 -0
  158. data/rbi/workos/audit_logs.rbi +26 -2
  159. data/rbi/workos/authentication_oauth_failed_data.rbi +6 -0
  160. data/rbi/workos/authentication_oauth_succeeded_data.rbi +6 -0
  161. data/rbi/workos/client.rbi +3 -0
  162. data/rbi/workos/create_connection.rbi +60 -0
  163. data/rbi/workos/create_connection_attribute_maps.rbi +30 -0
  164. data/rbi/workos/create_connection_key_pair.rbi +30 -0
  165. data/rbi/workos/create_connection_oidc_options.rbi +72 -0
  166. data/rbi/workos/create_connection_saml_options.rbi +66 -0
  167. data/rbi/workos/create_connection_standard_attributes.rbi +54 -0
  168. data/rbi/workos/create_it_contact.rbi +24 -0
  169. data/rbi/workos/create_saml_idp_signing_certificate.rbi +24 -0
  170. data/rbi/workos/create_team.rbi +30 -0
  171. data/rbi/workos/create_waitlist_entry.rbi +36 -0
  172. data/rbi/workos/email_completion_session_authenticate_request.rbi +72 -0
  173. data/rbi/workos/invite_it_contact.rbi +24 -0
  174. data/rbi/workos/it_contact.rbi +48 -0
  175. data/rbi/workos/organizations.rbi +45 -0
  176. data/rbi/workos/patch_connection.rbi +54 -0
  177. data/rbi/workos/patch_connection_attribute_maps.rbi +30 -0
  178. data/rbi/workos/patch_connection_oidc_options.rbi +66 -0
  179. data/rbi/workos/patch_connection_saml_options.rbi +48 -0
  180. data/rbi/workos/patch_connection_standard_attributes.rbi +54 -0
  181. data/rbi/workos/platform_teams.rbi +30 -0
  182. data/rbi/workos/resource_export_completed.rbi +54 -0
  183. data/rbi/workos/resource_export_completed_data.rbi +30 -0
  184. data/rbi/workos/resource_export_created.rbi +54 -0
  185. data/rbi/workos/resource_export_created_data.rbi +30 -0
  186. data/rbi/workos/resource_export_downloaded.rbi +54 -0
  187. data/rbi/workos/resource_export_downloaded_data.rbi +30 -0
  188. data/rbi/workos/resource_export_failed.rbi +54 -0
  189. data/rbi/workos/resource_export_failed_data.rbi +30 -0
  190. data/rbi/workos/saml_idp_signing_certificate.rbi +54 -0
  191. data/rbi/workos/saml_idp_signing_certificate_list.rbi +30 -0
  192. data/rbi/workos/saml_sp_encryption_certificate.rbi +54 -0
  193. data/rbi/workos/saml_sp_encryption_certificate_list.rbi +30 -0
  194. data/rbi/workos/saml_sp_signing_certificate.rbi +54 -0
  195. data/rbi/workos/sso.rbi +155 -2
  196. data/rbi/workos/team.rbi +60 -0
  197. data/rbi/workos/token_query.rbi +20 -2
  198. data/rbi/workos/update_audit_logs_retention.rbi +8 -2
  199. data/rbi/workos/user_management.rbi +64 -0
  200. data/rbi/workos/waitlist.rbi +42 -0
  201. data/rbi/workos/waitlist_entry.rbi +72 -0
  202. data/rbi/workos/waitlist_user.rbi +12 -6
  203. data/test/workos/test_agents.rb +105 -1
  204. data/test/workos/test_agents_model_round_trip.rb +245 -0
  205. data/test/workos/test_audit_logs.rb +11 -2
  206. data/test/workos/test_authorization.rb +6 -6
  207. data/test/workos/test_organizations.rb +41 -1
  208. data/test/workos/test_organizations_model_round_trip.rb +40 -1
  209. data/test/workos/test_platform_teams.rb +41 -0
  210. data/test/workos/test_platform_teams_model_round_trip.rb +41 -0
  211. data/test/workos/test_shared_model_round_trip.rb +449 -2
  212. data/test/workos/test_sso.rb +108 -2
  213. data/test/workos/test_sso_model_round_trip.rb +262 -2
  214. data/test/workos/test_user_management.rb +56 -0
  215. data/test/workos/test_user_management_model_round_trip.rb +78 -2
  216. metadata +160 -1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,159 @@
1
1
  # Changelog
2
2
 
3
+ ## [10.3.0](https://github.com/workos/workos-ruby/compare/v10.2.1...v10.3.0) (2026-09-01)
4
+
5
+ * [#546](https://github.com/workos/workos-ruby/pull/546) feat(generated)!: regenerate from spec (5 changes)
6
+
7
+ **⚠️ Breaking**
8
+ * **[agents](https://workos.com/docs/reference/agents)**:
9
+ * Removed service `Agents`
10
+ * **[sso](https://workos.com/docs/reference/sso)**:
11
+ * Removed model `TokenBody`
12
+ * Removed enum `TokenBodyGrantType`
13
+ * Removed model `TokenQuery`
14
+ * Changed parameter `SSO.token.grant_type`
15
+
16
+ **Features**
17
+ * **[agents](https://workos.com/docs/reference/agents)**:
18
+ * Added model `AgentBlueprint`
19
+ * Added model `AgentInstance`
20
+ * Added model `AgentToken`
21
+ * Added model `AgentInstanceSession`
22
+ * Added model `AgentBlueprintInvocableBy`
23
+ * Added model `AgentBlueprintSessionSetting`
24
+ * Added model `AgentBlueprintsCreateRequest`
25
+ * Added model `AgentBlueprintsCreateRequestInvocableBy`
26
+ * Added model `AgentBlueprintsCreateRequestSessionSetting`
27
+ * Added model `AgentBlueprintsUpdateRequest`
28
+ * Added model `AgentBlueprintsUpdateRequestInvocableBy`
29
+ * Added model `AgentBlueprintsUpdateRequestSessionSetting`
30
+ * Added model `AgentBlueprintsTokenMintTokenRequest`
31
+ * Added enum `AgentInstanceType`
32
+ * Added enum `AgentInstanceSessionStatus`
33
+ * Added enum `AgentBlueprintsTokenMintTokenRequestType`
34
+ * **agents_blueprints**:
35
+ * Added service `AgentsBlueprints`
36
+ * **agents_blueprints_tokens**:
37
+ * Added service `AgentsBlueprintsTokens`
38
+ * **agents_instances**:
39
+ * Added service `AgentsInstances`
40
+ * **agents_registrations**:
41
+ * Added service `AgentsRegistrations`
42
+ * **agents_sessions**:
43
+ * Added service `AgentsSessions`
44
+ * **[organizations](https://workos.com/docs/reference/organization)**:
45
+ * Added `retention_period` to `UpdateAuditLogsRetention`
46
+ * Made `UpdateAuditLogsRetention.retention_period_in_days` optional
47
+ * Added enum `UpdateAuditLogsRetentionRetentionPeriod`
48
+ * Added model `CreateItContact`
49
+ * Added model `InviteItContact`
50
+ * Added model `ItContact`
51
+ * Added model `ItContactList`
52
+ * Added model `ItContactListListMetadata`
53
+ * Added enum `InviteItContactIntents`
54
+ * Added service `OrganizationsItContacts`
55
+ * **platform_teams**:
56
+ * Added model `CreateTeam`
57
+ * Added model `Team`
58
+ * Added enum `TeamProductionState`
59
+ * Added service `PlatformTeams`
60
+ * **[sso](https://workos.com/docs/reference/sso)**:
61
+ * Added model `TokenQuery`
62
+ * Added enum `TokenQueryGrantType`
63
+ * Added model `CreateConnectionKeyPair`
64
+ * Added model `CreateConnectionSAMLOptions`
65
+ * Added model `CreateConnectionOidcOptions`
66
+ * Added model `CreateConnectionStandardAttributes`
67
+ * Added model `CreateConnectionAttributeMaps`
68
+ * Added model `CreateConnection`
69
+ * Added model `PatchConnectionSAMLOptions`
70
+ * Added model `PatchConnectionOidcOptions`
71
+ * Added model `PatchConnectionStandardAttributes`
72
+ * Added model `PatchConnectionAttributeMaps`
73
+ * Added model `PatchConnection`
74
+ * Added model `CreateSAMLIdpSigningCertificate`
75
+ * Added model `SAMLIdpSigningCertificate`
76
+ * Added model `SAMLIdpSigningCertificateList`
77
+ * Added model `SAMLSpEncryptionCertificate`
78
+ * Added model `SAMLSpEncryptionCertificateList`
79
+ * Added model `SAMLSpSigningCertificate`
80
+ * Added enum `CreateConnectionOidcOptionsIdTokenSignatureAlgorithm`
81
+ * Added enum `PatchConnectionOidcOptionsIdTokenSignatureAlgorithm`
82
+ * Added endpoint `POST /connections`
83
+ * Added endpoint `GET /connections/{connectionId}/saml_idp_signing_certs`
84
+ * Added endpoint `POST /connections/{connectionId}/saml_idp_signing_certs`
85
+ * Added endpoint `DELETE /connections/{connectionId}/saml_idp_signing_certs/{certificateId}`
86
+ * Added endpoint `GET /connections/{connectionId}/saml_sp_encryption_certs`
87
+ * Added endpoint `POST /connections/{connectionId}/saml_sp_encryption_certs`
88
+ * Added endpoint `DELETE /connections/{connectionId}/saml_sp_encryption_certs/{certificateId}`
89
+ * Added endpoint `GET /connections/{connectionId}/saml_sp_signing_cert`
90
+ * Added endpoint `POST /connections/{connectionId}/saml_sp_signing_cert`
91
+ * Added endpoint `DELETE /connections/{connectionId}/saml_sp_signing_cert/{certificateId}`
92
+ * Added endpoint `PATCH /connections/{id}`
93
+ * Added model `TokenBody`
94
+ * Added enum `TokenBodyGrantType`
95
+ * Added enum `SSOGrantType`
96
+ * Changed required status for parameter `SSO.token.code`
97
+ * **[user_management](https://workos.com/docs/reference/authkit/user)**:
98
+ * Added enum `CreateConnectionOidcOptionsTokenAuthenticationMethod`
99
+ * Added enum `PatchConnectionOidcOptionsTokenAuthenticationMethod`
100
+ * Added model `EmailCompletionSessionAuthenticateRequest`
101
+ * Added model `CreateWaitlistEntry`
102
+ * Added model `Waitlist`
103
+ * Added model `WaitlistEntry`
104
+ * Added enum `WaitlistEntryState`
105
+ * Added enum `UserManagementWaitlistsState`
106
+ * Added service `UserManagementWaitlists`
107
+ * **[webhooks](https://workos.com/docs/reference/webhooks)**:
108
+ * Added `agent.instance.created` to `CreateWebhookEndpointEvents`
109
+ * Added `agent.instance.deleted` to `CreateWebhookEndpointEvents`
110
+ * Added `agent.instance.session.created` to `CreateWebhookEndpointEvents`
111
+ * Added `agent.instance.session.revoked` to `CreateWebhookEndpointEvents`
112
+ * Added `agent.instance.created` to `UpdateWebhookEndpointEvents`
113
+ * Added `agent.instance.deleted` to `UpdateWebhookEndpointEvents`
114
+ * Added `agent.instance.session.created` to `UpdateWebhookEndpointEvents`
115
+ * Added `agent.instance.session.revoked` to `UpdateWebhookEndpointEvents`
116
+ * Added `agent.blueprint.created` to `CreateWebhookEndpointEvents`
117
+ * Added `agent.blueprint.deleted` to `CreateWebhookEndpointEvents`
118
+ * Added `agent.blueprint.updated` to `CreateWebhookEndpointEvents`
119
+ * Added `agent.blueprint.created` to `UpdateWebhookEndpointEvents`
120
+ * Added `agent.blueprint.deleted` to `UpdateWebhookEndpointEvents`
121
+ * Added `agent.blueprint.updated` to `UpdateWebhookEndpointEvents`
122
+
123
+ **Fixes**
124
+ * **[sso](https://workos.com/docs/reference/sso)**:
125
+ * Changed request body of `SSO.token` from `TokenBody` to `TokenQuery`
126
+ * Removed `DiscordOAuth` from `ConnectionType`
127
+ * Removed `GrokOAuth` from `ConnectionType`
128
+ * Removed `XOAuth` from `ConnectionType`
129
+ * Removed `DiscordOAuth` from `ProfileConnectionType`
130
+ * Removed `GrokOAuth` from `ProfileConnectionType`
131
+ * Removed `XOAuth` from `ProfileConnectionType`
132
+ * Removed `DiscordOAuth` from `ConnectionsConnectionType`
133
+ * Removed `GrokOAuth` from `ConnectionsConnectionType`
134
+ * Removed `XOAuth` from `ConnectionsConnectionType`
135
+ * Changed request body of `SSO.token` from `TokenQuery` to `TokenBody`
136
+ * **[user_management](https://workos.com/docs/reference/authkit/user)**:
137
+ * Changed request body for `UserManagementAuthentication.authenticate`
138
+ * Changed errors for endpoint `POST /user_management/authenticate`
139
+ * Removed `DiscordOAuth` from `AuthenticateResponseAuthenticationMethod`
140
+ * Removed `GrokOAuth` from `AuthenticateResponseAuthenticationMethod`
141
+ * Removed `XOAuth` from `AuthenticateResponseAuthenticationMethod`
142
+ * Removed `DiscordOAuth` from `UserIdentitiesGetItemProvider`
143
+ * Removed `GrokOAuth` from `UserIdentitiesGetItemProvider`
144
+ * Removed `XOAuth` from `UserIdentitiesGetItemProvider`
145
+ * Changed errors for endpoint `DELETE /user_management/users/{id}`
146
+
147
+ * [#549](https://github.com/workos/workos-ruby/pull/549) fix(generated): regenerate from spec
148
+
149
+ **Features**
150
+ * **[agents](https://workos.com/docs/reference/agents)**:
151
+ * Made `AgentBlueprintsCreateRequest.session_settings` optional
152
+ * Added model `AgentTokenValidation`
153
+ * Added model `AgentBlueprintsTokenValidateTokenRequest`
154
+ * **agents_blueprints_tokens**:
155
+ * Added endpoint `POST /agents/blueprints/{agent_blueprint_id}/tokens/validate`
156
+
3
157
  ## [10.2.1](https://github.com/workos/workos-ruby/compare/v10.2.0...v10.2.1) (2026-08-20)
4
158
 
5
159
 
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.3.0)
5
5
  jwt (~> 3.1)
6
6
  logger (~> 1.7)
7
7
  zeitwerk (~> 2.6)
@@ -153,7 +153,7 @@ CHECKSUMS
153
153
  unicode-emoji (4.2.0) sha256=519e69150f75652e40bf736106cfbc8f0f73aa3fb6a65afe62fefa7f80b0f80f
154
154
  webmock (3.26.2) sha256=774556f2ea6371846cca68c01769b2eac0d134492d21f6d0ab5dd643965a4c90
155
155
  webrick (1.9.2) sha256=beb4a15fc474defed24a3bda4ffd88a490d517c9e4e6118c3edce59e45864131
156
- workos (10.2.1)
156
+ workos (10.3.0)
157
157
  yard (0.9.44) sha256=eb087e9b631ccd887b049f303d489963945452d5e2a7eb49a5a74a7cf6887f28
158
158
  yard-markdown (0.7.1) sha256=06c378632dfe7ba053be9ba469eb4701aa0470e36bcf7e5546f353eb90c1bfd1
159
159
  zeitwerk (2.7.5) sha256=d8da92128c09ea6ec62c949011b00ed4a20242b255293dd66bf41545398f73dd
@@ -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
@@ -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 AgentBlueprintsTokenValidateTokenRequest < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ agent_access_token: :agent_access_token
9
+ }.freeze
10
+
11
+ attr_accessor :agent_access_token
12
+
13
+ def initialize(json)
14
+ hash = self.class.normalize(json)
15
+ @agent_access_token = hash[:agent_access_token]
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 AgentBlueprintsUpdateRequest < 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::AgentBlueprintsUpdateRequestInvocableBy.new(hash[:invocable_by]) : nil
28
+ @session_settings = hash[:session_settings] ? WorkOS::AgentBlueprintsUpdateRequestSessionSetting.new(hash[:session_settings]) : nil
29
+ end
30
+ end
31
+ 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
+ AgentBlueprintsUpdateRequestInvocableBy = AgentBlueprintsCreateRequestInvocableBy
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 AgentBlueprintsUpdateRequestSessionSetting < 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,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class AgentInstance < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ object: :object,
9
+ id: :id,
10
+ agent_blueprint_id: :agent_blueprint_id,
11
+ organization_id: :organization_id,
12
+ organization_membership_id: :organization_membership_id,
13
+ type: :type,
14
+ created_at: :created_at,
15
+ updated_at: :updated_at
16
+ }.freeze
17
+
18
+ attr_accessor \
19
+ :object,
20
+ :id,
21
+ :agent_blueprint_id,
22
+ :organization_id,
23
+ :organization_membership_id,
24
+ :type,
25
+ :created_at,
26
+ :updated_at
27
+
28
+ def initialize(json)
29
+ hash = self.class.normalize(json)
30
+ @object = hash[:object]
31
+ @id = hash[:id]
32
+ @agent_blueprint_id = hash[:agent_blueprint_id]
33
+ @organization_id = hash[:organization_id]
34
+ @organization_membership_id = hash[:organization_membership_id]
35
+ @type = hash[:type]
36
+ @created_at = hash[:created_at]
37
+ @updated_at = hash[:updated_at]
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class AgentInstanceSession < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ object: :object,
9
+ id: :id,
10
+ agent_instance_id: :agent_instance_id,
11
+ status: :status,
12
+ expires_at: :expires_at,
13
+ revoked_at: :revoked_at,
14
+ created_at: :created_at,
15
+ updated_at: :updated_at
16
+ }.freeze
17
+
18
+ attr_accessor \
19
+ :object,
20
+ :id,
21
+ :agent_instance_id,
22
+ :status,
23
+ :expires_at,
24
+ :revoked_at,
25
+ :created_at,
26
+ :updated_at
27
+
28
+ def initialize(json)
29
+ hash = self.class.normalize(json)
30
+ @object = hash[:object]
31
+ @id = hash[:id]
32
+ @agent_instance_id = hash[:agent_instance_id]
33
+ @status = hash[:status]
34
+ @expires_at = hash[:expires_at]
35
+ @revoked_at = hash[:revoked_at]
36
+ @created_at = hash[:created_at]
37
+ @updated_at = hash[:updated_at]
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class AgentToken < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ access_token: :access_token,
9
+ token_type: :token_type,
10
+ expires_in: :expires_in,
11
+ refresh_token: :refresh_token,
12
+ agent_instance_id: :agent_instance_id,
13
+ new_instance: :new_instance,
14
+ agent_instance_session_id: :agent_instance_session_id,
15
+ permissions: :permissions
16
+ }.freeze
17
+
18
+ attr_accessor \
19
+ :access_token,
20
+ :token_type,
21
+ :expires_in,
22
+ :refresh_token,
23
+ :agent_instance_id,
24
+ :new_instance,
25
+ :agent_instance_session_id,
26
+ :permissions
27
+
28
+ def initialize(json)
29
+ hash = self.class.normalize(json)
30
+ @access_token = hash[:access_token]
31
+ @token_type = hash[:token_type]
32
+ @expires_in = hash[:expires_in]
33
+ @refresh_token = hash[:refresh_token]
34
+ @agent_instance_id = hash[:agent_instance_id]
35
+ @new_instance = hash[:new_instance]
36
+ @agent_instance_session_id = hash[:agent_instance_session_id]
37
+ @permissions = hash[:permissions] || []
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class AgentTokenValidation < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ valid: :valid,
9
+ agent_instance_id: :agent_instance_id,
10
+ agent_instance_session_id: :agent_instance_session_id,
11
+ organization_id: :organization_id,
12
+ permissions: :permissions,
13
+ intent: :intent,
14
+ acting_user_id: :acting_user_id,
15
+ session_expires_at: :session_expires_at
16
+ }.freeze
17
+
18
+ attr_accessor \
19
+ :valid,
20
+ :agent_instance_id,
21
+ :agent_instance_session_id,
22
+ :organization_id,
23
+ :permissions,
24
+ :intent,
25
+ :acting_user_id,
26
+ :session_expires_at
27
+
28
+ def initialize(json)
29
+ hash = self.class.normalize(json)
30
+ @valid = hash[:valid]
31
+ @agent_instance_id = hash[:agent_instance_id]
32
+ @agent_instance_session_id = hash[:agent_instance_session_id]
33
+ @organization_id = hash[:organization_id]
34
+ @permissions = hash[:permissions] || []
35
+ @intent = hash[:intent]
36
+ @acting_user_id = hash[:acting_user_id]
37
+ @session_expires_at = hash[:session_expires_at]
38
+ end
39
+ end
40
+ end