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
@@ -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 ItContactList < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ object: :object,
9
+ data: :data,
10
+ list_metadata: :list_metadata
11
+ }.freeze
12
+
13
+ attr_accessor \
14
+ :object,
15
+ :data,
16
+ :list_metadata
17
+
18
+ def initialize(json)
19
+ hash = self.class.normalize(json)
20
+ @object = hash[:object]
21
+ @data = (hash[:data] || []).map { |item| item ? WorkOS::ItContact.new(item) : nil }
22
+ @list_metadata = hash[:list_metadata] ? WorkOS::ItContactListListMetadata.new(hash[:list_metadata]) : nil
23
+ end
24
+ end
25
+ 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 OrganizationAuthorizedConnectApplicationListData < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ object: :object,
9
+ id: :id,
10
+ granted_scopes: :granted_scopes,
11
+ oauth_resource: :oauth_resource,
12
+ application: :application,
13
+ user_id: :user_id
14
+ }.freeze
15
+
16
+ attr_accessor \
17
+ :object,
18
+ :id,
19
+ :granted_scopes,
20
+ :oauth_resource,
21
+ :application,
22
+ :user_id
23
+
24
+ def initialize(json)
25
+ hash = self.class.normalize(json)
26
+ @object = hash[:object]
27
+ @id = hash[:id]
28
+ @granted_scopes = hash[:granted_scopes] || []
29
+ @oauth_resource = hash[:oauth_resource]
30
+ @application = hash[:application] ? WorkOS::ConnectApplication.new(hash[:application]) : nil
31
+ @user_id = hash[:user_id]
32
+ end
33
+ end
34
+ end
@@ -13,14 +13,23 @@ module WorkOS
13
13
  external_id: :external_id
14
14
  }.freeze
15
15
 
16
+ # @!attribute domains
17
+ # @deprecated The domains associated with the organization. Deprecated in favor of `domain_data`.
18
+
16
19
  attr_accessor \
17
20
  :name,
18
21
  :allow_profiles_outside_organization,
19
- :domains,
20
22
  :domain_data,
21
23
  :metadata,
22
24
  :external_id
23
25
 
26
+ def domains
27
+ warn "[DEPRECATION] `domains` is deprecated and will be removed in a future version.", uplevel: 1
28
+ @domains
29
+ end
30
+
31
+ attr_writer :domains
32
+
24
33
  def initialize(json)
25
34
  hash = self.class.normalize(json)
26
35
  @name = hash[:name]
@@ -5,13 +5,25 @@
5
5
  module WorkOS
6
6
  class UpdateAuditLogsRetention < WorkOS::Types::BaseModel
7
7
  HASH_ATTRS = {
8
+ retention_period: :retention_period,
8
9
  retention_period_in_days: :retention_period_in_days
9
10
  }.freeze
10
11
 
11
- attr_accessor :retention_period_in_days
12
+ # @!attribute retention_period_in_days
13
+ # @deprecated The number of days Audit Log events will be retained. Valid values are `30` through `330` in 30-day increments and `365` through `3650` in 365-day increments. Deprecated: use `retention_period` instead. Mutually exclusive with `retention_period`.
14
+
15
+ attr_accessor :retention_period
16
+
17
+ def retention_period_in_days
18
+ warn "[DEPRECATION] `retention_period_in_days` is deprecated and will be removed in a future version.", uplevel: 1
19
+ @retention_period_in_days
20
+ end
21
+
22
+ attr_writer :retention_period_in_days
12
23
 
13
24
  def initialize(json)
14
25
  hash = self.class.normalize(json)
26
+ @retention_period = hash[:retention_period]
15
27
  @retention_period_in_days = hash[:retention_period_in_days]
16
28
  end
17
29
  end
@@ -65,7 +65,7 @@ module WorkOS
65
65
  # Create an Organization
66
66
  # @param name [String] The name of the organization.
67
67
  # @param allow_profiles_outside_organization [Boolean, nil] Whether the organization allows profiles from outside the organization to sign in.
68
- # @param domains [Array<String>, nil] The domains associated with the organization. Deprecated in favor of `domain_data`.
68
+ # @param domains [Array<String>, nil] (deprecated) The domains associated with the organization. Deprecated in favor of `domain_data`.
69
69
  # @param domain_data [Array<WorkOS::OrganizationDomainData>, nil] The domains associated with the organization, including verification state.
70
70
  # @param metadata [Hash{String => String}, nil] Object containing [metadata](https://workos.com/docs/authkit/metadata) key/value pairs associated with the Organization.
71
71
  # @param external_id [String, nil] An external identifier for the Organization.
@@ -76,18 +76,18 @@ module WorkOS
76
76
  allow_profiles_outside_organization: nil,
77
77
  domains: nil,
78
78
  domain_data: nil,
79
- metadata: nil,
80
- external_id: nil,
79
+ metadata: WorkOS::OMIT,
80
+ external_id: WorkOS::OMIT,
81
81
  request_options: {}
82
82
  )
83
83
  body = {
84
84
  "name" => name,
85
85
  "allow_profiles_outside_organization" => allow_profiles_outside_organization,
86
86
  "domains" => domains,
87
- "domain_data" => domain_data,
88
- "metadata" => metadata,
89
- "external_id" => external_id
87
+ "domain_data" => domain_data
90
88
  }.compact
89
+ body["metadata"] = metadata unless metadata.equal?(WorkOS::OMIT)
90
+ body["external_id"] = external_id unless external_id.equal?(WorkOS::OMIT)
91
91
  response = @client.request(
92
92
  method: :post,
93
93
  path: "/organizations",
@@ -156,8 +156,8 @@ module WorkOS
156
156
  domains: nil,
157
157
  domain_data: nil,
158
158
  stripe_customer_id: nil,
159
- metadata: nil,
160
- external_id: nil,
159
+ metadata: WorkOS::OMIT,
160
+ external_id: WorkOS::OMIT,
161
161
  request_options: {}
162
162
  )
163
163
  body = {
@@ -165,10 +165,10 @@ module WorkOS
165
165
  "allow_profiles_outside_organization" => allow_profiles_outside_organization,
166
166
  "domains" => domains,
167
167
  "domain_data" => domain_data,
168
- "stripe_customer_id" => stripe_customer_id,
169
- "metadata" => metadata,
170
- "external_id" => external_id
168
+ "stripe_customer_id" => stripe_customer_id
171
169
  }.compact
170
+ body["metadata"] = metadata unless metadata.equal?(WorkOS::OMIT)
171
+ body["external_id"] = external_id unless external_id.equal?(WorkOS::OMIT)
172
172
  response = @client.request(
173
173
  method: :put,
174
174
  path: "/organizations/#{WorkOS::Util.encode_path(id)}",
@@ -216,5 +216,161 @@ module WorkOS
216
216
  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"])
217
217
  result
218
218
  end
219
+
220
+ # List authorized applications
221
+ # @param organization_id [String] The ID of the organization.
222
+ # @param before [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 `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
223
+ # @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"`.
224
+ # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
225
+ # @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).
226
+ # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
227
+ # @return [WorkOS::Types::ListStruct<WorkOS::OrganizationAuthorizedConnectApplicationListData>]
228
+ def list_authorized_applications(
229
+ organization_id:,
230
+ before: nil,
231
+ after: nil,
232
+ limit: 10,
233
+ order: "desc",
234
+ request_options: {}
235
+ )
236
+ params = {
237
+ "before" => before,
238
+ "after" => after,
239
+ "limit" => limit,
240
+ "order" => order
241
+ }.compact
242
+ response = @client.request(
243
+ method: :get,
244
+ path: "/organizations/#{WorkOS::Util.encode_path(organization_id)}/authorized_applications",
245
+ auth: true,
246
+ params: params,
247
+ request_options: request_options
248
+ )
249
+ fetch_next = ->(cursor) {
250
+ list_authorized_applications(
251
+ organization_id: organization_id,
252
+ before: before,
253
+ after: cursor,
254
+ limit: limit,
255
+ order: order,
256
+ request_options: request_options
257
+ )
258
+ }
259
+ WorkOS::Types::ListStruct.from_response(
260
+ response,
261
+ model: WorkOS::OrganizationAuthorizedConnectApplicationListData,
262
+ filters: {organization_id: organization_id, before: before, limit: limit, order: order},
263
+ fetch_next: fetch_next
264
+ )
265
+ end
266
+
267
+ # List IT contacts
268
+ # @param organization_id [String] The ID of the organization.
269
+ # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
270
+ # @return [WorkOS::Types::ListStruct<WorkOS::ItContact>]
271
+ def list_it_contacts(
272
+ organization_id:,
273
+ request_options: {}
274
+ )
275
+ response = @client.request(
276
+ method: :get,
277
+ path: "/organizations/#{WorkOS::Util.encode_path(organization_id)}/it_contacts",
278
+ auth: true,
279
+ request_options: request_options
280
+ )
281
+ WorkOS::Types::ListStruct.from_response(
282
+ response,
283
+ model: WorkOS::ItContact,
284
+ filters: {organization_id: organization_id}
285
+ )
286
+ end
287
+
288
+ # Create an IT contact
289
+ # @param organization_id [String] The ID of the organization.
290
+ # @param email [String] The email address of the IT contact.
291
+ # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
292
+ # @return [WorkOS::ItContact]
293
+ def create_it_contact(
294
+ organization_id:,
295
+ email:,
296
+ request_options: {}
297
+ )
298
+ body = {
299
+ "email" => email
300
+ }
301
+ response = @client.request(
302
+ method: :post,
303
+ path: "/organizations/#{WorkOS::Util.encode_path(organization_id)}/it_contacts",
304
+ auth: true,
305
+ body: body,
306
+ request_options: request_options
307
+ )
308
+ result = WorkOS::ItContact.new(response.body)
309
+ 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"])
310
+ result
311
+ end
312
+
313
+ # Delete an IT contact
314
+ # @param organization_id [String] The ID of the organization.
315
+ # @param contact_id [String] The ID of the IT contact.
316
+ # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
317
+ # @return [void]
318
+ def delete_it_contact(
319
+ organization_id:,
320
+ contact_id:,
321
+ request_options: {}
322
+ )
323
+ @client.request(
324
+ method: :delete,
325
+ path: "/organizations/#{WorkOS::Util.encode_path(organization_id)}/it_contacts/#{WorkOS::Util.encode_path(contact_id)}",
326
+ auth: true,
327
+ request_options: request_options
328
+ )
329
+ nil
330
+ end
331
+
332
+ # Invite an IT contact
333
+ # @param organization_id [String] The ID of the organization.
334
+ # @param contact_id [String] The ID of the IT contact.
335
+ # @param intents [Array<WorkOS::Types::InviteItContactIntents>] The Admin Portal features that the IT contact can configure.
336
+ # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
337
+ # @return [void]
338
+ def invite_it_contact(
339
+ organization_id:,
340
+ contact_id:,
341
+ intents:,
342
+ request_options: {}
343
+ )
344
+ body = {
345
+ "intents" => intents
346
+ }
347
+ @client.request(
348
+ method: :post,
349
+ path: "/organizations/#{WorkOS::Util.encode_path(organization_id)}/it_contacts/#{WorkOS::Util.encode_path(contact_id)}/invite",
350
+ auth: true,
351
+ body: body,
352
+ request_options: request_options
353
+ )
354
+ nil
355
+ end
356
+
357
+ # Revoke an IT contact's invitation
358
+ # @param organization_id [String] The ID of the organization.
359
+ # @param contact_id [String] The ID of the IT contact.
360
+ # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
361
+ # @return [void]
362
+ def revoke_it_contact(
363
+ organization_id:,
364
+ contact_id:,
365
+ request_options: {}
366
+ )
367
+ @client.request(
368
+ method: :post,
369
+ path: "/organizations/#{WorkOS::Util.encode_path(organization_id)}/it_contacts/#{WorkOS::Util.encode_path(contact_id)}/revoke",
370
+ auth: true,
371
+ request_options: request_options
372
+ )
373
+ nil
374
+ end
219
375
  end
220
376
  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 ApiKeyInstallation < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ secret: :secret,
9
+ user_id: :user_id,
10
+ organization_id: :organization_id
11
+ }.freeze
12
+
13
+ attr_accessor \
14
+ :secret,
15
+ :user_id,
16
+ :organization_id
17
+
18
+ def initialize(json)
19
+ hash = self.class.normalize(json)
20
+ @secret = hash[:secret]
21
+ @user_id = hash[:user_id]
22
+ @organization_id = hash[:organization_id]
23
+ end
24
+ end
25
+ end
@@ -12,6 +12,9 @@ module WorkOS
12
12
  scopes: :scopes,
13
13
  auth_method: :auth_method,
14
14
  api_key_last_4: :api_key_last_4,
15
+ client_id: :client_id,
16
+ client_secret_last_4: :client_secret_last_4,
17
+ config: :config,
15
18
  state: :state,
16
19
  created_at: :created_at,
17
20
  updated_at: :updated_at
@@ -25,6 +28,9 @@ module WorkOS
25
28
  :scopes,
26
29
  :auth_method,
27
30
  :api_key_last_4,
31
+ :client_id,
32
+ :client_secret_last_4,
33
+ :config,
28
34
  :state,
29
35
  :created_at,
30
36
  :updated_at
@@ -38,6 +44,9 @@ module WorkOS
38
44
  @scopes = hash[:scopes] || []
39
45
  @auth_method = hash[:auth_method]
40
46
  @api_key_last_4 = hash[:api_key_last_4]
47
+ @client_id = hash[:client_id]
48
+ @client_secret_last_4 = hash[:client_secret_last_4]
49
+ @config = hash[:config] || {}
41
50
  @state = hash[:state]
42
51
  @created_at = hash[:created_at]
43
52
  @updated_at = hash[:updated_at]
@@ -3,7 +3,7 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module WorkOS
6
- class ConnectedAccountDto < WorkOS::Types::BaseModel
6
+ class ConnectedAccountInput < WorkOS::Types::BaseModel
7
7
  HASH_ATTRS = {
8
8
  access_token: :access_token,
9
9
  refresh_token: :refresh_token,
@@ -9,7 +9,10 @@ module WorkOS
9
9
  description: :description,
10
10
  enabled: :enabled,
11
11
  scopes: :scopes,
12
+ auth_methods: :auth_methods,
13
+ config: :config,
12
14
  credentials: :credentials,
15
+ api_key: :api_key,
13
16
  custom_provider: :custom_provider
14
17
  }.freeze
15
18
 
@@ -18,7 +21,10 @@ module WorkOS
18
21
  :description,
19
22
  :enabled,
20
23
  :scopes,
24
+ :auth_methods,
25
+ :config,
21
26
  :credentials,
27
+ :api_key,
22
28
  :custom_provider
23
29
 
24
30
  def initialize(json)
@@ -27,7 +33,10 @@ module WorkOS
27
33
  @description = hash[:description]
28
34
  @enabled = hash[:enabled]
29
35
  @scopes = hash[:scopes] || []
30
- @credentials = hash[:credentials] ? WorkOS::DataIntegrationCredentialsDto.new(hash[:credentials]) : nil
36
+ @auth_methods = hash[:auth_methods] || []
37
+ @config = hash[:config] || {}
38
+ @credentials = hash[:credentials] ? WorkOS::DataIntegrationCredentialsInput.new(hash[:credentials]) : nil
39
+ @api_key = hash[:api_key] ? WorkOS::ApiKeyInstallation.new(hash[:api_key]) : nil
31
40
  @custom_provider = hash[:custom_provider] ? WorkOS::CustomProviderDefinition.new(hash[:custom_provider]) : nil
32
41
  end
33
42
  end
@@ -14,7 +14,10 @@ module WorkOS
14
14
  state: :state,
15
15
  scopes: :scopes,
16
16
  redirect_uri: :redirect_uri,
17
+ auth_methods: :auth_methods,
17
18
  credentials: :credentials,
19
+ installation: :installation,
20
+ config: :config,
18
21
  custom_provider: :custom_provider,
19
22
  created_at: :created_at,
20
23
  updated_at: :updated_at
@@ -30,7 +33,10 @@ module WorkOS
30
33
  :state,
31
34
  :scopes,
32
35
  :redirect_uri,
36
+ :auth_methods,
33
37
  :credentials,
38
+ :installation,
39
+ :config,
34
40
  :custom_provider,
35
41
  :created_at,
36
42
  :updated_at
@@ -46,7 +52,10 @@ module WorkOS
46
52
  @state = hash[:state]
47
53
  @scopes = hash[:scopes] || []
48
54
  @redirect_uri = hash[:redirect_uri]
55
+ @auth_methods = hash[:auth_methods] || []
49
56
  @credentials = hash[:credentials] ? WorkOS::DataIntegrationCredential.new(hash[:credentials]) : nil
57
+ @installation = hash[:installation] ? WorkOS::DataIntegrationInstallation.new(hash[:installation]) : nil
58
+ @config = hash[:config] || {}
50
59
  @custom_provider = hash[:custom_provider] ? WorkOS::DataIntegrationCustomProvider.new(hash[:custom_provider]) : nil
51
60
  @created_at = hash[:created_at]
52
61
  @updated_at = hash[:updated_at]
@@ -3,7 +3,7 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module WorkOS
6
- class DataIntegrationCredentialsDto < WorkOS::Types::BaseModel
6
+ class DataIntegrationCredentialsInput < WorkOS::Types::BaseModel
7
7
  HASH_ATTRS = {
8
8
  type: :type,
9
9
  client_id: :client_id,
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class DataIntegrationInstallation < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ id: :id,
9
+ user_id: :user_id,
10
+ organization_id: :organization_id,
11
+ api_key_last_4: :api_key_last_4
12
+ }.freeze
13
+
14
+ attr_accessor \
15
+ :id,
16
+ :user_id,
17
+ :organization_id,
18
+ :api_key_last_4
19
+
20
+ def initialize(json)
21
+ hash = self.class.normalize(json)
22
+ @id = hash[:id]
23
+ @user_id = hash[:user_id]
24
+ @organization_id = hash[:organization_id]
25
+ @api_key_last_4 = hash[:api_key_last_4]
26
+ end
27
+ end
28
+ end
@@ -7,19 +7,22 @@ module WorkOS
7
7
  HASH_ATTRS = {
8
8
  user_id: :user_id,
9
9
  organization_id: :organization_id,
10
- return_to: :return_to
10
+ return_to: :return_to,
11
+ config: :config
11
12
  }.freeze
12
13
 
13
14
  attr_accessor \
14
15
  :user_id,
15
16
  :organization_id,
16
- :return_to
17
+ :return_to,
18
+ :config
17
19
 
18
20
  def initialize(json)
19
21
  hash = self.class.normalize(json)
20
22
  @user_id = hash[:user_id]
21
23
  @organization_id = hash[:organization_id]
22
24
  @return_to = hash[:return_to]
25
+ @config = hash[:config] || {}
23
26
  end
24
27
  end
25
28
  end
@@ -12,6 +12,9 @@ module WorkOS
12
12
  scopes: :scopes,
13
13
  auth_method: :auth_method,
14
14
  api_key_last_4: :api_key_last_4,
15
+ client_id: :client_id,
16
+ client_secret_last_4: :client_secret_last_4,
17
+ config: :config,
15
18
  state: :state,
16
19
  created_at: :created_at,
17
20
  updated_at: :updated_at,
@@ -29,6 +32,9 @@ module WorkOS
29
32
  :scopes,
30
33
  :auth_method,
31
34
  :api_key_last_4,
35
+ :client_id,
36
+ :client_secret_last_4,
37
+ :config,
32
38
  :state,
33
39
  :created_at,
34
40
  :updated_at
@@ -49,6 +55,9 @@ module WorkOS
49
55
  @scopes = hash[:scopes] || []
50
56
  @auth_method = hash[:auth_method]
51
57
  @api_key_last_4 = hash[:api_key_last_4]
58
+ @client_id = hash[:client_id]
59
+ @client_secret_last_4 = hash[:client_secret_last_4]
60
+ @config = hash[:config] || {}
52
61
  @state = hash[:state]
53
62
  @created_at = hash[:created_at]
54
63
  @updated_at = hash[:updated_at]
@@ -3,23 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module WorkOS
6
- class DataIntegrationsUpsertApiKeyRequest < WorkOS::Types::BaseModel
7
- HASH_ATTRS = {
8
- user_id: :user_id,
9
- organization_id: :organization_id,
10
- secret: :secret
11
- }.freeze
12
-
13
- attr_accessor \
14
- :user_id,
15
- :organization_id,
16
- :secret
17
-
18
- def initialize(json)
19
- hash = self.class.normalize(json)
20
- @user_id = hash[:user_id]
21
- @organization_id = hash[:organization_id]
22
- @secret = hash[:secret]
23
- end
24
- end
6
+ DataIntegrationsUpsertApiKeyRequest = ApiKeyInstallation
25
7
  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 DataIntegrationsUpsertClientCredentialsRequest < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ user_id: :user_id,
9
+ organization_id: :organization_id,
10
+ client_id: :client_id,
11
+ client_secret: :client_secret,
12
+ config: :config
13
+ }.freeze
14
+
15
+ attr_accessor \
16
+ :user_id,
17
+ :organization_id,
18
+ :client_id,
19
+ :client_secret,
20
+ :config
21
+
22
+ def initialize(json)
23
+ hash = self.class.normalize(json)
24
+ @user_id = hash[:user_id]
25
+ @organization_id = hash[:organization_id]
26
+ @client_id = hash[:client_id]
27
+ @client_secret = hash[:client_secret]
28
+ @config = hash[:config] || {}
29
+ end
30
+ end
31
+ end
@@ -9,6 +9,7 @@ module WorkOS
9
9
  enabled: :enabled,
10
10
  scopes: :scopes,
11
11
  credentials: :credentials,
12
+ api_key: :api_key,
12
13
  custom_provider: :custom_provider
13
14
  }.freeze
14
15
 
@@ -17,6 +18,7 @@ module WorkOS
17
18
  :enabled,
18
19
  :scopes,
19
20
  :credentials,
21
+ :api_key,
20
22
  :custom_provider
21
23
 
22
24
  def initialize(json)
@@ -24,7 +26,8 @@ module WorkOS
24
26
  @description = hash[:description]
25
27
  @enabled = hash[:enabled]
26
28
  @scopes = hash[:scopes] || []
27
- @credentials = hash[:credentials] ? WorkOS::DataIntegrationCredentialsDto.new(hash[:credentials]) : nil
29
+ @credentials = hash[:credentials] ? WorkOS::DataIntegrationCredentialsInput.new(hash[:credentials]) : nil
30
+ @api_key = hash[:api_key] ? WorkOS::ApiKeyInstallation.new(hash[:api_key]) : nil
28
31
  @custom_provider = hash[:custom_provider] ? WorkOS::UpdateCustomProviderDefinition.new(hash[:custom_provider]) : nil
29
32
  end
30
33
  end