workos 10.6.0 → 10.7.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 (158) hide show
  1. checksums.yaml +4 -4
  2. data/.last-synced-sha +1 -1
  3. data/.oagen-manifest.json +30 -10
  4. data/.release-please-manifest.json +1 -1
  5. data/CHANGELOG.md +84 -0
  6. data/Gemfile.lock +2 -2
  7. data/lib/workos/audit_logs.rb +2 -2
  8. data/lib/workos/client_api.rb +3 -3
  9. data/lib/workos/directory_sync/directory_user_with_groups.rb +1 -1
  10. data/lib/workos/directory_sync.rb +160 -0
  11. data/lib/workos/inflections.rb +1 -1
  12. data/lib/workos/pipes/connected_account_input.rb +3 -0
  13. data/lib/workos/pipes/create_connected_account.rb +6 -0
  14. data/lib/workos/pipes/create_organization_connected_account.rb +6 -0
  15. data/lib/workos/pipes/organization_connected_account.rb +3 -0
  16. data/lib/workos/pipes.rb +18 -0
  17. data/lib/workos/pipes_provider.rb +12 -0
  18. data/lib/workos/session.rb +12 -0
  19. data/lib/workos/shared/agent_registration_claim_completed_data.rb +3 -0
  20. data/lib/workos/shared/error_body_with_code.rb +16 -1
  21. data/lib/workos/shared/policy_denied_error_body.rb +5 -2
  22. data/lib/workos/shared/{sso_required_oauth_error_body_with_connection_ids_list_email_pending_authentication_token.rb → sso_required_oauth_error_body_with_connection_ids_list_email.rb} +1 -1
  23. data/lib/workos/sso.rb +6 -2
  24. data/lib/workos/types/connections_state.rb +14 -0
  25. data/lib/workos/types/data_integration_vended_credential_auth_method.rb +9 -0
  26. data/lib/workos/types/error_body_code.rb +1 -2
  27. data/lib/workos/types/pipes_provider_ownership.rb +9 -0
  28. data/lib/workos/user_management/authentication_email_verification_failed_data_error.rb +5 -2
  29. data/lib/workos/user_management/authentication_radar_risk_detected_data.rb +5 -2
  30. data/lib/workos/version.rb +1 -1
  31. data/rbi/workos/account_selection_required_error_body.rbi +1 -22
  32. data/rbi/workos/agent_blueprint_invocable_by.rbi +1 -22
  33. data/rbi/workos/agent_blueprint_updated_data_invocable_by.rbi +1 -22
  34. data/rbi/workos/agent_blueprint_updated_data_session_setting.rbi +1 -28
  35. data/rbi/workos/agent_blueprints_create_request_session_setting.rbi +1 -28
  36. data/rbi/workos/agent_blueprints_update_request_invocable_by.rbi +1 -22
  37. data/rbi/workos/agent_registration_claim_completed_data.rbi +6 -0
  38. data/rbi/workos/agent_registration_expired_data.rbi +1 -16
  39. data/rbi/workos/agent_registration_refreshed_data.rbi +1 -16
  40. data/rbi/workos/agent_registration_revoked_data.rbi +1 -16
  41. data/rbi/workos/api_key_owner.rbi +1 -22
  42. data/rbi/workos/api_key_revoked_data.rbi +1 -70
  43. data/rbi/workos/api_key_revoked_data_owner.rbi +1 -22
  44. data/rbi/workos/api_key_updated_data_owner.rbi +1 -22
  45. data/rbi/workos/audit_log_event_target.rbi +1 -34
  46. data/rbi/workos/audit_log_schema_actor_input.rbi +1 -16
  47. data/rbi/workos/audit_log_schema_target_input.rbi +1 -22
  48. data/rbi/workos/auth_method_mismatch_error_body.rbi +1 -22
  49. data/rbi/workos/authentication_email_verification_failed_data_error.rbi +6 -0
  50. data/rbi/workos/authentication_factor_sms.rbi +1 -16
  51. data/rbi/workos/authentication_magic_auth_failed_data_error.rbi +1 -22
  52. data/rbi/workos/authentication_mfa_failed_data_error.rbi +1 -22
  53. data/rbi/workos/authentication_oauth_failed_data_error.rbi +1 -22
  54. data/rbi/workos/authentication_passkey_failed_data_error.rbi +1 -22
  55. data/rbi/workos/authentication_password_failed_data_error.rbi +1 -22
  56. data/rbi/workos/authentication_radar_risk_detected_data.rbi +6 -0
  57. data/rbi/workos/authentication_sso_failed_data_error.rbi +1 -22
  58. data/rbi/workos/authentication_sso_started_data_sso.rbi +1 -28
  59. data/rbi/workos/authentication_sso_succeeded_data_sso.rbi +1 -28
  60. data/rbi/workos/authentication_sso_timed_out_data_error.rbi +1 -22
  61. data/rbi/workos/authentication_sso_timed_out_data_sso.rbi +1 -28
  62. data/rbi/workos/authorization.rbi +4 -2
  63. data/rbi/workos/claim_view_response_organization.rbi +1 -22
  64. data/rbi/workos/confirm_email_change.rbi +1 -16
  65. data/rbi/workos/connect_application.rbi +42 -0
  66. data/rbi/workos/connect_application_redirect_uri.rbi +30 -0
  67. data/rbi/workos/connected_account_input.rbi +6 -0
  68. data/rbi/workos/connection_deactivated_data_domain.rbi +1 -28
  69. data/rbi/workos/connection_domain.rbi +1 -28
  70. data/rbi/workos/connection_saml_certificate_renewed_data_connection.rbi +1 -22
  71. data/rbi/workos/create_connected_account.rbi +12 -0
  72. data/rbi/workos/create_group_role_assignment.rbi +1 -34
  73. data/rbi/workos/create_organization_connected_account.rbi +12 -0
  74. data/rbi/workos/create_role.rbi +1 -34
  75. data/rbi/workos/data_integration_access_token_response_with_access_token_access_token.rbi +1 -40
  76. data/rbi/workos/data_integrations_list_response_data_connected_account_warning.rbi +1 -22
  77. data/rbi/workos/delete_group_role_assignments_by_criteria.rbi +1 -34
  78. data/rbi/workos/directory_sync.rbi +46 -0
  79. data/rbi/workos/directory_user_with_groups_email.rbi +1 -28
  80. data/rbi/workos/dsync_group_user_removed_data.rbi +1 -28
  81. data/rbi/workos/dsync_token_revoked_data.rbi +1 -46
  82. data/rbi/workos/dsync_user_updated_data_email.rbi +1 -28
  83. data/rbi/workos/error_body.rbi +1 -16
  84. data/rbi/workos/feature_flags_flag_created_data_owner.rbi +1 -28
  85. data/rbi/workos/feature_flags_flag_deleted_data.rbi +1 -82
  86. data/rbi/workos/feature_flags_flag_deleted_data_owner.rbi +1 -28
  87. data/rbi/workos/feature_flags_flag_updated_context_previous_attribute_data_owner.rbi +1 -28
  88. data/rbi/workos/feature_flags_flag_updated_data.rbi +1 -82
  89. data/rbi/workos/feature_flags_flag_updated_data_owner.rbi +1 -28
  90. data/rbi/workos/flag.rbi +1 -76
  91. data/rbi/workos/flag_created_data.rbi +1 -82
  92. data/rbi/workos/flag_created_data_owner.rbi +1 -28
  93. data/rbi/workos/flag_deleted_data.rbi +1 -82
  94. data/rbi/workos/flag_deleted_data_owner.rbi +1 -28
  95. data/rbi/workos/flag_owner.rbi +1 -28
  96. data/rbi/workos/flag_rule_updated_context_configured_target_organization.rbi +1 -22
  97. data/rbi/workos/flag_rule_updated_context_previous_attribute_context_configured_target.rbi +1 -22
  98. data/rbi/workos/flag_rule_updated_context_previous_attribute_context_configured_target_organization.rbi +1 -22
  99. data/rbi/workos/flag_rule_updated_context_previous_attribute_context_configured_target_user.rbi +1 -22
  100. data/rbi/workos/flag_rule_updated_data.rbi +1 -82
  101. data/rbi/workos/flag_rule_updated_data_owner.rbi +1 -28
  102. data/rbi/workos/flag_updated_context_previous_attribute.rbi +1 -16
  103. data/rbi/workos/flag_updated_context_previous_attribute_data.rbi +1 -46
  104. data/rbi/workos/flag_updated_context_previous_attribute_data_owner.rbi +1 -28
  105. data/rbi/workos/flag_updated_data.rbi +1 -82
  106. data/rbi/workos/flag_updated_data_owner.rbi +1 -28
  107. data/rbi/workos/group_member_removed_data.rbi +1 -22
  108. data/rbi/workos/organization_api_key_owner.rbi +1 -22
  109. data/rbi/workos/organization_api_key_with_value_owner.rbi +1 -22
  110. data/rbi/workos/organization_connected_account.rbi +6 -0
  111. data/rbi/workos/organization_role_deleted_data.rbi +1 -64
  112. data/rbi/workos/organization_role_updated_data.rbi +1 -64
  113. data/rbi/workos/organization_selection_required_error_body_with_organization.rbi +1 -22
  114. data/rbi/workos/password_reset_succeeded_data.rbi +1 -46
  115. data/rbi/workos/patch_connection_standard_attributes.rbi +1 -46
  116. data/rbi/workos/permission.rbi +1 -64
  117. data/rbi/workos/permission_created_data.rbi +1 -64
  118. data/rbi/workos/permission_deleted_data.rbi +1 -64
  119. data/rbi/workos/permission_updated_data.rbi +1 -64
  120. data/rbi/workos/pipes.rbi +10 -4
  121. data/rbi/workos/pipes_account_connection_connection_failed_data.rbi +1 -76
  122. data/rbi/workos/pipes_connected_account_connection_failed_data.rbi +1 -76
  123. data/rbi/workos/pipes_provider.rbi +4 -2
  124. data/rbi/workos/policy_denied_error_body.rbi +6 -0
  125. data/rbi/workos/radar_standalone_update_radar_list_request.rbi +1 -16
  126. data/rbi/workos/remove_role.rbi +1 -34
  127. data/rbi/workos/replace_group_role_assignment_entry.rbi +1 -34
  128. data/rbi/workos/role_deleted_data.rbi +1 -46
  129. data/rbi/workos/role_updated_data.rbi +1 -46
  130. data/rbi/workos/send_verification_email_response.rbi +1 -16
  131. data/rbi/workos/session_created_data_impersonator.rbi +1 -22
  132. data/rbi/workos/session_revoked_data_impersonator.rbi +1 -22
  133. data/rbi/workos/slim_role.rbi +1 -16
  134. data/rbi/workos/sso.rbi +2 -1
  135. data/rbi/workos/{sso_required_oauth_error_body_with_connection_ids_list_email_pending_authentication_token.rbi → sso_required_oauth_error_body_with_connection_ids_list_email.rbi} +1 -1
  136. data/rbi/workos/sso_token_response_oauth_token.rbi +1 -40
  137. data/rbi/workos/update_group.rbi +1 -22
  138. data/rbi/workos/update_organization_role.rbi +1 -22
  139. data/rbi/workos/update_role.rbi +1 -22
  140. data/rbi/workos/user.rbi +1 -94
  141. data/rbi/workos/user_api_key_owner.rbi +1 -28
  142. data/rbi/workos/user_api_key_revoked_data_owner.rbi +1 -28
  143. data/rbi/workos/user_api_key_updated_data_owner.rbi +1 -28
  144. data/rbi/workos/user_api_key_with_value_owner.rbi +1 -28
  145. data/rbi/workos/user_role_assignment_resource.rbi +1 -28
  146. data/rbi/workos/user_role_assignment_source_group.rbi +1 -22
  147. data/rbi/workos/user_sessions_impersonator.rbi +1 -22
  148. data/rbi/workos/verify_email_address.rbi +1 -16
  149. data/rbi/workos/verify_email_response.rbi +1 -16
  150. data/rbi/workos/waitlist_list_response_list_metadata.rbi +1 -22
  151. data/rbi/workos/widget_session_token_response.rbi +1 -16
  152. data/test/workos/test_directory_sync.rb +32 -0
  153. data/test/workos/test_directory_sync_model_round_trip.rb +11 -11
  154. data/test/workos/test_pipes_model_round_trip.rb +7 -1
  155. data/test/workos/test_session.rb +46 -1
  156. data/test/workos/test_shared_model_round_trip.rb +71 -69
  157. data/test/workos/test_user_management_model_round_trip.rb +18 -9
  158. metadata +7 -3
data/lib/workos/pipes.rb CHANGED
@@ -640,12 +640,14 @@ module WorkOS
640
640
  # @param slug [String] The slug identifier of the provider (e.g., `github`, `slack`, `notion`).
641
641
  # @param account_display_name [String, nil] A mutable, non-unique connection label; null clears it. Not an account identifier.
642
642
  # @param account_identifier [String, nil] A developer-attested account identifier; null clears it.
643
+ # @param config [Hash{String => String}, nil] Installation-scoped provider configuration for this connection, such as Salesforce salesforce_host. Imports apply supplied values over installation-scoped integration pins and inherit other config from the credential source. Credential-bearing imports must satisfy required configuration even when config is omitted or {}. On update, a supplied object replaces installation-scoped values; omitted config preserves the stored snapshot. Stored integration-scoped values remain bound to the OAuth client and cannot be overridden or replaced with current integration pins. Replacements must satisfy required configuration; {} and empty-string values clear installation-scoped values only when the result is valid. Provider defaults count toward completeness but are resolved at read time, not stored. Only tokenless needs_reauthorization placeholders may remain incomplete; attaching their first tokens validates configuration even when config is omitted. Unrelated updates do not revalidate unchanged configuration. Clearing salesforce_host falls back to login.salesforce.com, which may not work for sandbox or My Domain-only connections.
643
644
  # @param access_token [String, nil] The OAuth access token for the connected account.
644
645
  # @param refresh_token [String, nil] The OAuth refresh token for the connected account.
645
646
  # @param expires_at [String, nil] The ISO-8601 timestamp when the access token expires. Required when `access_token` is provided for tokens that expire.
646
647
  # @param scopes [Array<String>, nil] The OAuth scopes granted for this connection.
647
648
  # @param state [WorkOS::Types::CreateOrganizationConnectedAccountState, nil] Explicitly set the state of the connected account. When omitted, the state is derived from the token combination provided.
648
649
  # @param user_id [String] The [User](https://workos.com/docs/reference/authkit/user) identifier of the organization member on whose behalf the connected account is being imported or updated. The user must be an active member of the organization.
650
+ # @param metadata [Hash{String => Object}, nil] Provider token-response metadata to preserve during import, such as Salesforce instance_url. Only allowlisted, non-sensitive scalar fields from this provider are accepted, including nested fields. Provider refresh responses can update these values. Not accepted on update.
649
651
  # @param connection_intent [String, nil] Set to `add` to create another connected account. Omit this field for permanent compatibility behavior.
650
652
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
651
653
  # @return [WorkOS::ConnectedAccount]
@@ -655,21 +657,25 @@ module WorkOS
655
657
  user_id:,
656
658
  account_display_name: WorkOS::OMIT,
657
659
  account_identifier: WorkOS::OMIT,
660
+ config: nil,
658
661
  access_token: nil,
659
662
  refresh_token: nil,
660
663
  expires_at: nil,
661
664
  scopes: nil,
662
665
  state: nil,
666
+ metadata: nil,
663
667
  connection_intent: nil,
664
668
  request_options: {}
665
669
  )
666
670
  body = {
671
+ "config" => config,
667
672
  "access_token" => access_token,
668
673
  "refresh_token" => refresh_token,
669
674
  "expires_at" => expires_at,
670
675
  "scopes" => scopes,
671
676
  "state" => state,
672
677
  "user_id" => user_id,
678
+ "metadata" => metadata,
673
679
  "connection_intent" => connection_intent
674
680
  }.compact
675
681
  body["account_display_name"] = account_display_name unless account_display_name.equal?(WorkOS::OMIT)
@@ -691,6 +697,7 @@ module WorkOS
691
697
  # @param slug [String] The slug identifier of the provider (e.g., `github`, `slack`, `notion`).
692
698
  # @param account_display_name [String, nil] A mutable, non-unique connection label; null clears it. Not an account identifier.
693
699
  # @param account_identifier [String, nil] A developer-attested account identifier; null clears it.
700
+ # @param config [Hash{String => String}, nil] Installation-scoped provider configuration for this connection, such as Salesforce salesforce_host. Imports apply supplied values over installation-scoped integration pins and inherit other config from the credential source. Credential-bearing imports must satisfy required configuration even when config is omitted or {}. On update, a supplied object replaces installation-scoped values; omitted config preserves the stored snapshot. Stored integration-scoped values remain bound to the OAuth client and cannot be overridden or replaced with current integration pins. Replacements must satisfy required configuration; {} and empty-string values clear installation-scoped values only when the result is valid. Provider defaults count toward completeness but are resolved at read time, not stored. Only tokenless needs_reauthorization placeholders may remain incomplete; attaching their first tokens validates configuration even when config is omitted. Unrelated updates do not revalidate unchanged configuration. Clearing salesforce_host falls back to login.salesforce.com, which may not work for sandbox or My Domain-only connections.
694
701
  # @param access_token [String, nil] The OAuth access token for the connected account.
695
702
  # @param refresh_token [String, nil] The OAuth refresh token for the connected account.
696
703
  # @param expires_at [String, nil] The ISO-8601 timestamp when the access token expires. Required when `access_token` is provided for tokens that expire.
@@ -708,6 +715,7 @@ module WorkOS
708
715
  user_id:,
709
716
  account_display_name: WorkOS::OMIT,
710
717
  account_identifier: WorkOS::OMIT,
718
+ config: nil,
711
719
  access_token: nil,
712
720
  refresh_token: nil,
713
721
  expires_at: nil,
@@ -724,6 +732,7 @@ module WorkOS
724
732
  "connection_intent" => connection_intent
725
733
  }.compact
726
734
  body = {
735
+ "config" => config,
727
736
  "access_token" => access_token,
728
737
  "refresh_token" => refresh_token,
729
738
  "expires_at" => expires_at,
@@ -837,11 +846,13 @@ module WorkOS
837
846
  # @param slug [String] The slug identifier of the provider (e.g., `github`, `slack`, `notion`).
838
847
  # @param account_display_name [String, nil] A mutable, non-unique connection label; null clears it. Not an account identifier.
839
848
  # @param account_identifier [String, nil] A developer-attested account identifier; null clears it.
849
+ # @param config [Hash{String => String}, nil] Installation-scoped provider configuration for this connection, such as Salesforce salesforce_host. Imports apply supplied values over installation-scoped integration pins and inherit other config from the credential source. Credential-bearing imports must satisfy required configuration even when config is omitted or {}. On update, a supplied object replaces installation-scoped values; omitted config preserves the stored snapshot. Stored integration-scoped values remain bound to the OAuth client and cannot be overridden or replaced with current integration pins. Replacements must satisfy required configuration; {} and empty-string values clear installation-scoped values only when the result is valid. Provider defaults count toward completeness but are resolved at read time, not stored. Only tokenless needs_reauthorization placeholders may remain incomplete; attaching their first tokens validates configuration even when config is omitted. Unrelated updates do not revalidate unchanged configuration. Clearing salesforce_host falls back to login.salesforce.com, which may not work for sandbox or My Domain-only connections.
840
850
  # @param access_token [String, nil] The OAuth access token for the connected account.
841
851
  # @param refresh_token [String, nil] The OAuth refresh token for the connected account.
842
852
  # @param expires_at [String, nil] The ISO-8601 timestamp when the access token expires. Required when `access_token` is provided for tokens that expire.
843
853
  # @param scopes [Array<String>, nil] The OAuth scopes granted for this connection.
844
854
  # @param state [WorkOS::Types::CreateConnectedAccountState, nil] Explicitly set the state of the connected account. When omitted, the state is derived from the token combination provided.
855
+ # @param metadata [Hash{String => Object}, nil] Provider token-response metadata to preserve during import, such as Salesforce instance_url. Only allowlisted, non-sensitive scalar fields from this provider are accepted, including nested fields. Provider refresh responses can update these values. Not accepted on update.
845
856
  # @param connection_intent [String, nil] Set to `add` to create another connected account. Omit this field for permanent compatibility behavior.
846
857
  # @param organization_id [String, nil] An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter if the connection is scoped to an organization.
847
858
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
@@ -851,11 +862,13 @@ module WorkOS
851
862
  slug:,
852
863
  account_display_name: WorkOS::OMIT,
853
864
  account_identifier: WorkOS::OMIT,
865
+ config: nil,
854
866
  access_token: nil,
855
867
  refresh_token: nil,
856
868
  expires_at: nil,
857
869
  scopes: nil,
858
870
  state: nil,
871
+ metadata: nil,
859
872
  connection_intent: nil,
860
873
  organization_id: nil,
861
874
  request_options: {}
@@ -864,11 +877,13 @@ module WorkOS
864
877
  "organization_id" => organization_id
865
878
  }.compact
866
879
  body = {
880
+ "config" => config,
867
881
  "access_token" => access_token,
868
882
  "refresh_token" => refresh_token,
869
883
  "expires_at" => expires_at,
870
884
  "scopes" => scopes,
871
885
  "state" => state,
886
+ "metadata" => metadata,
872
887
  "connection_intent" => connection_intent
873
888
  }.compact
874
889
  body["account_display_name"] = account_display_name unless account_display_name.equal?(WorkOS::OMIT)
@@ -891,6 +906,7 @@ module WorkOS
891
906
  # @param slug [String] The slug identifier of the provider (e.g., `github`, `slack`, `notion`).
892
907
  # @param account_display_name [String, nil] A mutable, non-unique connection label; null clears it. Not an account identifier.
893
908
  # @param account_identifier [String, nil] A developer-attested account identifier; null clears it.
909
+ # @param config [Hash{String => String}, nil] Installation-scoped provider configuration for this connection, such as Salesforce salesforce_host. Imports apply supplied values over installation-scoped integration pins and inherit other config from the credential source. Credential-bearing imports must satisfy required configuration even when config is omitted or {}. On update, a supplied object replaces installation-scoped values; omitted config preserves the stored snapshot. Stored integration-scoped values remain bound to the OAuth client and cannot be overridden or replaced with current integration pins. Replacements must satisfy required configuration; {} and empty-string values clear installation-scoped values only when the result is valid. Provider defaults count toward completeness but are resolved at read time, not stored. Only tokenless needs_reauthorization placeholders may remain incomplete; attaching their first tokens validates configuration even when config is omitted. Unrelated updates do not revalidate unchanged configuration. Clearing salesforce_host falls back to login.salesforce.com, which may not work for sandbox or My Domain-only connections.
894
910
  # @param access_token [String, nil] The OAuth access token for the connected account.
895
911
  # @param refresh_token [String, nil] The OAuth refresh token for the connected account.
896
912
  # @param expires_at [String, nil] The ISO-8601 timestamp when the access token expires. Required when `access_token` is provided for tokens that expire.
@@ -907,6 +923,7 @@ module WorkOS
907
923
  slug:,
908
924
  account_display_name: WorkOS::OMIT,
909
925
  account_identifier: WorkOS::OMIT,
926
+ config: nil,
910
927
  access_token: nil,
911
928
  refresh_token: nil,
912
929
  expires_at: nil,
@@ -925,6 +942,7 @@ module WorkOS
925
942
  "connection_intent" => connection_intent
926
943
  }.compact
927
944
  body = {
945
+ "config" => config,
928
946
  "access_token" => access_token,
929
947
  "refresh_token" => refresh_token,
930
948
  "expires_at" => expires_at,
@@ -12,16 +12,22 @@ module WorkOS
12
12
 
13
13
  # List providers for an organization
14
14
  # @param organization_id [String] An [Organization](https://workos.com/docs/reference/organization) identifier to list provider configurations for.
15
+ # @param ownership [WorkOS::Types::PipesProviderOwnership, nil] Select the provider configuration for `user` connections or `organization` shared connections. Defaults to `user`; never falls back to the other ownership.
15
16
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
16
17
  # @return [WorkOS::DataIntegrationConfigurationListResponse]
17
18
  def list_organization_data_integration_configurations(
18
19
  organization_id:,
20
+ ownership: "user",
19
21
  request_options: {}
20
22
  )
23
+ params = {
24
+ "ownership" => ownership
25
+ }.compact
21
26
  response = @client.request(
22
27
  method: :get,
23
28
  path: "/organizations/#{WorkOS::Util.encode_path(organization_id)}/data_integration_configurations",
24
29
  auth: true,
30
+ params: params,
25
31
  request_options: request_options
26
32
  )
27
33
  result = WorkOS::DataIntegrationConfigurationListResponse.new(response.body)
@@ -37,6 +43,7 @@ module WorkOS
37
43
  # @param client_id [String, nil] The OAuth client ID of the organization's own application. Must be provided together with `client_secret`, and only for providers whose credentials are supplied by the organization.
38
44
  # @param client_secret [String, nil] The OAuth client secret of the organization's own application. Must be provided together with `client_id`.
39
45
  # @param config [Hash{String => String}, nil] Provider-specific config values to set for the organization, keyed by config field. Only fields the provider declares are accepted, and each value must match that field's pattern. Accepted only for providers whose credentials are organization-managed; for shared or custom credential providers, config belongs on the integration itself (via the data-integrations API) and supplying it here is rejected.
46
+ # @param ownership [WorkOS::Types::PipesProviderOwnership, nil] Select the provider configuration for `user` connections or `organization` shared connections. Defaults to `user`; never falls back to the other ownership.
40
47
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
41
48
  # @return [WorkOS::DataIntegrationConfigurationResponse]
42
49
  def update_organization_data_integration_configuration(
@@ -47,8 +54,12 @@ module WorkOS
47
54
  client_id: nil,
48
55
  client_secret: nil,
49
56
  config: nil,
57
+ ownership: "user",
50
58
  request_options: {}
51
59
  )
60
+ params = {
61
+ "ownership" => ownership
62
+ }.compact
52
63
  body = {
53
64
  "enabled" => enabled,
54
65
  "client_id" => client_id,
@@ -60,6 +71,7 @@ module WorkOS
60
71
  method: :put,
61
72
  path: "/organizations/#{WorkOS::Util.encode_path(organization_id)}/data_integration_configurations/#{WorkOS::Util.encode_path(slug)}",
62
73
  auth: true,
74
+ params: params,
63
75
  body: body,
64
76
  request_options: request_options
65
77
  )
@@ -64,6 +64,7 @@ module WorkOS
64
64
  rescue JWT::DecodeError
65
65
  return SessionManager::AuthError.new(authenticated: false, reason: SessionManager::INVALID_JWT)
66
66
  end
67
+ return SessionManager::AuthError.new(authenticated: false, reason: SessionManager::INVALID_JWT) unless user_access_token?(decoded)
67
68
 
68
69
  is_expired = decoded["exp"].nil? || decoded["exp"] < Time.now.to_i
69
70
 
@@ -163,5 +164,16 @@ module WorkOS
163
164
  uri.query = URI.encode_www_form(params)
164
165
  uri.to_s
165
166
  end
167
+
168
+ private
169
+
170
+ # Other token types signed by the same environment key (agent and widget
171
+ # tokens) must not authenticate a session cookie.
172
+ def user_access_token?(claims)
173
+ claims["sid"].is_a?(String) &&
174
+ claims["auth_time"].is_a?(Numeric) &&
175
+ [nil, "user"].include?(claims["sub_profile"]) &&
176
+ claims["sub_type"].nil?
177
+ end
166
178
  end
167
179
  end
@@ -8,6 +8,7 @@ module WorkOS
8
8
  object: :object,
9
9
  id: :id,
10
10
  agent_registration_id: :agent_registration_id,
11
+ organization_id: :organization_id,
11
12
  completed_by_attempt_id: :completed_by_attempt_id,
12
13
  claimed_by: :claimed_by,
13
14
  completed_at: :completed_at,
@@ -19,6 +20,7 @@ module WorkOS
19
20
  :object,
20
21
  :id,
21
22
  :agent_registration_id,
23
+ :organization_id,
22
24
  :completed_by_attempt_id,
23
25
  :claimed_by,
24
26
  :completed_at,
@@ -30,6 +32,7 @@ module WorkOS
30
32
  @object = hash[:object]
31
33
  @id = hash[:id]
32
34
  @agent_registration_id = hash[:agent_registration_id]
35
+ @organization_id = hash[:organization_id]
33
36
  @completed_by_attempt_id = hash[:completed_by_attempt_id]
34
37
  @claimed_by = hash[:claimed_by] ? WorkOS::AgentRegistrationClaimCompletedDataClaimedBy.new(hash[:claimed_by]) : nil
35
38
  @completed_at = hash[:completed_at]
@@ -3,5 +3,20 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module WorkOS
6
- ErrorBodyWithCode = AuthenticationEmailVerificationFailedDataError
6
+ class ErrorBodyWithCode < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ code: :code,
9
+ message: :message
10
+ }.freeze
11
+
12
+ attr_accessor \
13
+ :code,
14
+ :message
15
+
16
+ def initialize(json)
17
+ hash = self.class.normalize(json)
18
+ @code = hash[:code]
19
+ @message = hash[:message]
20
+ end
21
+ end
7
22
  end
@@ -6,17 +6,20 @@ module WorkOS
6
6
  class PolicyDeniedErrorBody < WorkOS::Types::BaseModel
7
7
  HASH_ATTRS = {
8
8
  code: :code,
9
- message: :message
9
+ message: :message,
10
+ radar_detection_id: :radar_detection_id
10
11
  }.freeze
11
12
 
12
13
  attr_accessor \
13
14
  :code,
14
- :message
15
+ :message,
16
+ :radar_detection_id
15
17
 
16
18
  def initialize(json)
17
19
  hash = self.class.normalize(json)
18
20
  @code = hash[:code]
19
21
  @message = hash[:message]
22
+ @radar_detection_id = hash[:radar_detection_id]
20
23
  end
21
24
  end
22
25
  end
@@ -3,7 +3,7 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module WorkOS
6
- class SSORequiredOAuthErrorBodyWithConnectionIdsListEmailPendingAuthenticationToken < WorkOS::Types::BaseModel
6
+ class SSORequiredOAuthErrorBodyWithConnectionIdsListEmail < WorkOS::Types::BaseModel
7
7
  HASH_ATTRS = {
8
8
  error: :error,
9
9
  error_description: :error_description,
data/lib/workos/sso.rb CHANGED
@@ -44,6 +44,7 @@ module WorkOS
44
44
  # @param domain [String, nil] Filter Connections by their associated domain.
45
45
  # @param organization_id [String, nil] Filter Connections by their associated organization.
46
46
  # @param search [String, nil] Searchable text to match against Connection names.
47
+ # @param state [WorkOS::Types::ConnectionsState, nil] Filter Connections by their state.
47
48
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
48
49
  # @return [WorkOS::Types::ListStruct<WorkOS::Connection>]
49
50
  def list_connections(
@@ -55,6 +56,7 @@ module WorkOS
55
56
  domain: nil,
56
57
  organization_id: nil,
57
58
  search: nil,
59
+ state: nil,
58
60
  request_options: {}
59
61
  )
60
62
  params = {
@@ -65,7 +67,8 @@ module WorkOS
65
67
  "connection_type" => connection_type,
66
68
  "domain" => domain,
67
69
  "organization_id" => organization_id,
68
- "search" => search
70
+ "search" => search,
71
+ "state" => state
69
72
  }.compact
70
73
  response = @client.request(
71
74
  method: :get,
@@ -84,13 +87,14 @@ module WorkOS
84
87
  domain: domain,
85
88
  organization_id: organization_id,
86
89
  search: search,
90
+ state: state,
87
91
  request_options: request_options
88
92
  )
89
93
  }
90
94
  WorkOS::Types::ListStruct.from_response(
91
95
  response,
92
96
  model: WorkOS::Connection,
93
- filters: {before: before, limit: limit, order: order, connection_type: connection_type, domain: domain, organization_id: organization_id, search: search},
97
+ filters: {before: before, limit: limit, order: order, connection_type: connection_type, domain: domain, organization_id: organization_id, search: search, state: state},
94
98
  fetch_next: fetch_next
95
99
  )
96
100
  end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ module Types
7
+ class ConnectionsState
8
+ ACTIVE = "active"
9
+ INACTIVE = "inactive"
10
+ VALIDATING = "validating"
11
+ ALL = [ACTIVE, INACTIVE, VALIDATING].freeze
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ module Types
7
+ DataIntegrationVendedCredentialAuthMethod = ConnectedAccountAuthMethod
8
+ end
9
+ end
@@ -139,7 +139,6 @@ module WorkOS
139
139
  PERMISSION_NOT_FOUND = "permission_not_found"
140
140
  PERMISSION_SLUG_CONFLICT = "permission_slug_conflict"
141
141
  PHONE_NUMBER_REQUIRED = "phone_number_required"
142
- POLICY_DENIED = "policy_denied"
143
142
  PRODUCTION_FEATURE_REQUIRES_BILLING = "production_feature_requires_billing"
144
143
  RADAR_CHALLENGE = "radar_challenge"
145
144
  RADAR_SIGN_UP_CHALLENGE = "radar_sign_up_challenge"
@@ -177,7 +176,7 @@ module WorkOS
177
176
  USER_SESSION_ENDED = "user_session_ended"
178
177
  VERIFICATION_ID_REQUIRED = "verification_id_required"
179
178
  WRONG_ACCOUNT = "wrong_account"
180
- ALL = [ACCOUNT_SELECTION_REQUIRED, ACTION_DENIED, ALREADY_CLAIMED, AMBIGUOUS_SAML_OPTIONS, API_KEY_ALREADY_EXPIRED, APPLICATION_CONSENT_REQUIRED, AUTH_METHOD_DISABLED, AUTH_METHOD_MISMATCH, AUTHENTICATION_METHOD_NOT_ALLOWED, AUTHORIZATION_RESOURCE_EXTERNAL_ID_CONFLICT, BAD_REQUEST, BOTH_SAML_AND_OIDC_OPTIONS_PROVIDED, CANNOT_DEACTIVATE_PENDING_ORGANIZATION_MEMBERSHIP, CANNOT_DELETE_LAST_CERTIFICATE, CANNOT_REACTIVATE_PENDING_ORGANIZATION_MEMBERSHIP, CERTIFICATE_EXPIRED, CHAIN_DEPTH_EXCEEDED, CLAIM_DENIED, CLAIM_EXPIRED, CLIENT_SECRET_NOT_ACCEPTED, CLIENT_SECRET_REQUIRED, CODE_CHALLENGE_NOT_FOUND, CONCURRENT_FLAG_TARGET_UPDATE, CONCURRENT_REQUEST, CONNECTED_ACCOUNT_LIMIT_REACHED, CONNECTION_COULD_NOT_BE_VERIFIED, CONNECTION_DELETION_IN_PROGRESS, CONNECTION_IS_NOT_SAML, CONNECTION_TYPE_CONFLICTS_WITH_OPTIONS, CONNECTION_TYPE_NOT_SUPPORTED, CONNECTION_TYPE_NOT_UPDATABLE, CONNECTION_TYPE_OR_OPTIONS_REQUIRED, DAILY_QUOTA_EXCEEDED, DIRECTORY_SYNC_DISABLED, DIRECTORY_SYNC_IN_PROGRESS, DIRECTORY_SYNC_RATE_LIMITED, DIRECTORY_SYNC_UNSUPPORTED, DISCOVERY_ENDPOINT_MUST_USE_HTTPS, DOMAIN_ALREADY_EXISTS, DOMAIN_ALREADY_VERIFIED, DUPLICATE_ENDPOINT, DUPLICATE_GROUP_ROLE_ASSIGNMENT, EMAIL_ALREADY_IN_USE, EMAIL_ALREADY_INVITED, EMAIL_ALREADY_INVITED_TO_ORGANIZATION, EMAIL_ALREADY_VERIFIED, EMAIL_CHANGE_CODE_EXPIRED, EMAIL_CHANGE_CODE_INCORRECT, EMAIL_CHANGE_CODE_PREVIOUSLY_USED, EMAIL_CHANGE_NOT_ALLOWED, EMAIL_CHANGE_NOT_NEEDED, EMAIL_CHANGE_TOO_MANY_ATTEMPTS, EMAIL_COMPLETION_REQUIRED, EMAIL_DOMAIN_NOT_DELIVERABLE, EMAIL_MISMATCH, EMAIL_NOT_AVAILABLE, EMAIL_PASSWORD_AUTH_DISABLED, EMAIL_PREVIOUSLY_VERIFIED, EMAIL_VERIFICATION_CODE_EXPIRED, EMAIL_VERIFICATION_CODE_INCORRECT, EMAIL_VERIFICATION_CODE_PREVIOUSLY_USED, EMAIL_VERIFICATION_REQUIRED, ENTITY_NOT_FOUND, EXPIRES_IN_DAYS_TOO_LONG, EXPIRES_IN_DAYS_TOO_SHORT, EXTERNAL_AUTH_SESSION_ALREADY_COMPLETED, EXTERNAL_ID_ALREADY_IN_USE, EXTERNAL_ID_ALREADY_USED, GROUP_MEMBERSHIP_LIMIT_EXCEEDED, GROUP_MEMBERSHIP_UPDATE_OVERLAP, GROUP_ROLE_ASSIGNMENT_UPDATE_OVERLAP, ID_TOKEN_SIGNATURE_ALGORITHM_NOT_SUPPORTED, IDP_METADATA_FETCH_FAILED, INCOMPLETE_SAML_OPTIONS, INVALID_AGENT_ACCESS_TOKEN, INVALID_CERTIFICATE, INVALID_CLAIM, INVALID_CREDENTIALS, INVALID_EMAIL, INVALID_IDP_SSO_URL, INVALID_INVITE, INVALID_LOCALE, INVALID_METADATA, INVALID_ONE_TIME_CODE, INVALID_ORGANIZATION, INVALID_ORGANIZATION_ID, INVALID_PASSWORD_HASH, INVALID_PENDING_AUTHENTICATION_TOKEN, INVALID_REFRESH_TOKEN, INVALID_REQUEST, INVALID_REQUEST_PARAMETERS, INVALID_ROLE, INVALID_STATE, INVALID_URL, INVALID_USER_ACCESS_TOKEN, INVITATION_EMAIL_NOT_SENT, INVITE_ACCEPTED, INVITE_EXPIRED, INVITE_HAS_ACCEPTED_USER_ID, INVITE_NOT_PENDING, INVITE_REVOKED, IP_ADDRESS_REQUIRED, IT_CONTACT_ALREADY_EXISTS, IT_CONTACT_INVITATION_ALREADY_ACTIVE, KEY_PAIR_NOT_ACCEPTED, LOCK_TIMEOUT, MAX_AGE_EXCEEDED, MFA_CHALLENGE, MFA_ENROLLMENT, MISSING_ORGANIZATION_ID_OR_RESOURCE_TYPE_SLUG, MISSING_USER_ID_OR_ORGANIZATION_ID, MULTIPLE_ROLES_NOT_ENABLED, NAME_ALREADY_IN_USE, NO_PENDING_EMAIL_CHANGE, OIDC_OPTIONS_REQUIRED, ONE_TIME_CODE_EXPIRED, ONE_TIME_CODE_PREVIOUSLY_USED, ONE_TIME_CODE_TOO_MANY_ATTEMPTS, ORGANIZATION_BLOCKED_FROM_SENDING_INVITES, ORGANIZATION_MEMBERSHIP_DIRECTORY_MANAGED, ORGANIZATION_NOT_FOUND, ORGANIZATION_NOT_INVOCABLE, ORGANIZATION_ROLE_SLUG_CONFLICT, ORGANIZATION_SELECTION_REQUIRED, PASSKEY_PROGRESSIVE_ENROLLMENT, PASSWORD_AND_PASSWORD_HASH_PROVIDED, PASSWORD_AND_PASSWORD_HASH_TYPE_PROVIDED, PASSWORD_RESET_ERROR, PASSWORD_RESET_NOT_ALLOWED, PASSWORD_SALT_POSITION_REQUIRES_PASSWORD_HASH, PASSWORD_STRENGTH_ERROR, PERMISSION_NOT_FOUND, PERMISSION_SLUG_CONFLICT, PHONE_NUMBER_REQUIRED, POLICY_DENIED, PRODUCTION_FEATURE_REQUIRES_BILLING, RADAR_CHALLENGE, RADAR_SIGN_UP_CHALLENGE, RADAR_SMS_SIGN_IN_CHALLENGE, RATE_LIMIT_EXCEEDED, RESOURCE_HAS_DEPENDENTS, RESOURCE_LIMIT_EXCEEDED, RESOURCE_TYPE_UPDATE_IN_PROGRESS, ROLE_HAS_ASSIGNMENTS, ROLE_HAS_GROUP_ROLE_MAPPINGS, ROLE_NOT_FOUND, ROLE_NOT_INVOCABLE, ROLE_SLUG_CONFLICT, SAML_OPTIONS_REQUIRED, SESSION_EXPIRED, SESSION_REVOKED, SESSION_SETTINGS_NOT_FOUND, SMS_CHALLENGE_QUOTA_REACHED, SMS_CHALLENGE_RATE_LIMITED, SP_SIGNING_CERT_ALREADY_EXISTS, STRIPE_CUSTOMER_ID_ALREADY_USED, SUB_RESOURCE_SCOPED_ROLE_NOT_ALLOWED, TEAM_NOT_FOUND, TOKEN_AUTHENTICATION_METHOD_NOT_SUPPORTED, TOO_MANY_FAILED_VERIFICATION_ATTEMPTS, TOO_MANY_SP_ENCRYPTION_CERTS, UNSUPPORTED_INVOCATION_TYPE, USER_ALREADY_EXISTS, USER_ALREADY_ORGANIZATION_MEMBER, USER_CODE_EXPIRED, USER_CONSENT_OPTIONS_NOT_SUPPORTED, USER_CREATION_ERROR, USER_MISMATCH, USER_NOT_MEMBER_OF_ORGANIZATION, USER_SESSION_ENDED, VERIFICATION_ID_REQUIRED, WRONG_ACCOUNT].freeze
179
+ ALL = [ACCOUNT_SELECTION_REQUIRED, ACTION_DENIED, ALREADY_CLAIMED, AMBIGUOUS_SAML_OPTIONS, API_KEY_ALREADY_EXPIRED, APPLICATION_CONSENT_REQUIRED, AUTH_METHOD_DISABLED, AUTH_METHOD_MISMATCH, AUTHENTICATION_METHOD_NOT_ALLOWED, AUTHORIZATION_RESOURCE_EXTERNAL_ID_CONFLICT, BAD_REQUEST, BOTH_SAML_AND_OIDC_OPTIONS_PROVIDED, CANNOT_DEACTIVATE_PENDING_ORGANIZATION_MEMBERSHIP, CANNOT_DELETE_LAST_CERTIFICATE, CANNOT_REACTIVATE_PENDING_ORGANIZATION_MEMBERSHIP, CERTIFICATE_EXPIRED, CHAIN_DEPTH_EXCEEDED, CLAIM_DENIED, CLAIM_EXPIRED, CLIENT_SECRET_NOT_ACCEPTED, CLIENT_SECRET_REQUIRED, CODE_CHALLENGE_NOT_FOUND, CONCURRENT_FLAG_TARGET_UPDATE, CONCURRENT_REQUEST, CONNECTED_ACCOUNT_LIMIT_REACHED, CONNECTION_COULD_NOT_BE_VERIFIED, CONNECTION_DELETION_IN_PROGRESS, CONNECTION_IS_NOT_SAML, CONNECTION_TYPE_CONFLICTS_WITH_OPTIONS, CONNECTION_TYPE_NOT_SUPPORTED, CONNECTION_TYPE_NOT_UPDATABLE, CONNECTION_TYPE_OR_OPTIONS_REQUIRED, DAILY_QUOTA_EXCEEDED, DIRECTORY_SYNC_DISABLED, DIRECTORY_SYNC_IN_PROGRESS, DIRECTORY_SYNC_RATE_LIMITED, DIRECTORY_SYNC_UNSUPPORTED, DISCOVERY_ENDPOINT_MUST_USE_HTTPS, DOMAIN_ALREADY_EXISTS, DOMAIN_ALREADY_VERIFIED, DUPLICATE_ENDPOINT, DUPLICATE_GROUP_ROLE_ASSIGNMENT, EMAIL_ALREADY_IN_USE, EMAIL_ALREADY_INVITED, EMAIL_ALREADY_INVITED_TO_ORGANIZATION, EMAIL_ALREADY_VERIFIED, EMAIL_CHANGE_CODE_EXPIRED, EMAIL_CHANGE_CODE_INCORRECT, EMAIL_CHANGE_CODE_PREVIOUSLY_USED, EMAIL_CHANGE_NOT_ALLOWED, EMAIL_CHANGE_NOT_NEEDED, EMAIL_CHANGE_TOO_MANY_ATTEMPTS, EMAIL_COMPLETION_REQUIRED, EMAIL_DOMAIN_NOT_DELIVERABLE, EMAIL_MISMATCH, EMAIL_NOT_AVAILABLE, EMAIL_PASSWORD_AUTH_DISABLED, EMAIL_PREVIOUSLY_VERIFIED, EMAIL_VERIFICATION_CODE_EXPIRED, EMAIL_VERIFICATION_CODE_INCORRECT, EMAIL_VERIFICATION_CODE_PREVIOUSLY_USED, EMAIL_VERIFICATION_REQUIRED, ENTITY_NOT_FOUND, EXPIRES_IN_DAYS_TOO_LONG, EXPIRES_IN_DAYS_TOO_SHORT, EXTERNAL_AUTH_SESSION_ALREADY_COMPLETED, EXTERNAL_ID_ALREADY_IN_USE, EXTERNAL_ID_ALREADY_USED, GROUP_MEMBERSHIP_LIMIT_EXCEEDED, GROUP_MEMBERSHIP_UPDATE_OVERLAP, GROUP_ROLE_ASSIGNMENT_UPDATE_OVERLAP, ID_TOKEN_SIGNATURE_ALGORITHM_NOT_SUPPORTED, IDP_METADATA_FETCH_FAILED, INCOMPLETE_SAML_OPTIONS, INVALID_AGENT_ACCESS_TOKEN, INVALID_CERTIFICATE, INVALID_CLAIM, INVALID_CREDENTIALS, INVALID_EMAIL, INVALID_IDP_SSO_URL, INVALID_INVITE, INVALID_LOCALE, INVALID_METADATA, INVALID_ONE_TIME_CODE, INVALID_ORGANIZATION, INVALID_ORGANIZATION_ID, INVALID_PASSWORD_HASH, INVALID_PENDING_AUTHENTICATION_TOKEN, INVALID_REFRESH_TOKEN, INVALID_REQUEST, INVALID_REQUEST_PARAMETERS, INVALID_ROLE, INVALID_STATE, INVALID_URL, INVALID_USER_ACCESS_TOKEN, INVITATION_EMAIL_NOT_SENT, INVITE_ACCEPTED, INVITE_EXPIRED, INVITE_HAS_ACCEPTED_USER_ID, INVITE_NOT_PENDING, INVITE_REVOKED, IP_ADDRESS_REQUIRED, IT_CONTACT_ALREADY_EXISTS, IT_CONTACT_INVITATION_ALREADY_ACTIVE, KEY_PAIR_NOT_ACCEPTED, LOCK_TIMEOUT, MAX_AGE_EXCEEDED, MFA_CHALLENGE, MFA_ENROLLMENT, MISSING_ORGANIZATION_ID_OR_RESOURCE_TYPE_SLUG, MISSING_USER_ID_OR_ORGANIZATION_ID, MULTIPLE_ROLES_NOT_ENABLED, NAME_ALREADY_IN_USE, NO_PENDING_EMAIL_CHANGE, OIDC_OPTIONS_REQUIRED, ONE_TIME_CODE_EXPIRED, ONE_TIME_CODE_PREVIOUSLY_USED, ONE_TIME_CODE_TOO_MANY_ATTEMPTS, ORGANIZATION_BLOCKED_FROM_SENDING_INVITES, ORGANIZATION_MEMBERSHIP_DIRECTORY_MANAGED, ORGANIZATION_NOT_FOUND, ORGANIZATION_NOT_INVOCABLE, ORGANIZATION_ROLE_SLUG_CONFLICT, ORGANIZATION_SELECTION_REQUIRED, PASSKEY_PROGRESSIVE_ENROLLMENT, PASSWORD_AND_PASSWORD_HASH_PROVIDED, PASSWORD_AND_PASSWORD_HASH_TYPE_PROVIDED, PASSWORD_RESET_ERROR, PASSWORD_RESET_NOT_ALLOWED, PASSWORD_SALT_POSITION_REQUIRES_PASSWORD_HASH, PASSWORD_STRENGTH_ERROR, PERMISSION_NOT_FOUND, PERMISSION_SLUG_CONFLICT, PHONE_NUMBER_REQUIRED, PRODUCTION_FEATURE_REQUIRES_BILLING, RADAR_CHALLENGE, RADAR_SIGN_UP_CHALLENGE, RADAR_SMS_SIGN_IN_CHALLENGE, RATE_LIMIT_EXCEEDED, RESOURCE_HAS_DEPENDENTS, RESOURCE_LIMIT_EXCEEDED, RESOURCE_TYPE_UPDATE_IN_PROGRESS, ROLE_HAS_ASSIGNMENTS, ROLE_HAS_GROUP_ROLE_MAPPINGS, ROLE_NOT_FOUND, ROLE_NOT_INVOCABLE, ROLE_SLUG_CONFLICT, SAML_OPTIONS_REQUIRED, SESSION_EXPIRED, SESSION_REVOKED, SESSION_SETTINGS_NOT_FOUND, SMS_CHALLENGE_QUOTA_REACHED, SMS_CHALLENGE_RATE_LIMITED, SP_SIGNING_CERT_ALREADY_EXISTS, STRIPE_CUSTOMER_ID_ALREADY_USED, SUB_RESOURCE_SCOPED_ROLE_NOT_ALLOWED, TEAM_NOT_FOUND, TOKEN_AUTHENTICATION_METHOD_NOT_SUPPORTED, TOO_MANY_FAILED_VERIFICATION_ATTEMPTS, TOO_MANY_SP_ENCRYPTION_CERTS, UNSUPPORTED_INVOCATION_TYPE, USER_ALREADY_EXISTS, USER_ALREADY_ORGANIZATION_MEMBER, USER_CODE_EXPIRED, USER_CONSENT_OPTIONS_NOT_SUPPORTED, USER_CREATION_ERROR, USER_MISMATCH, USER_NOT_MEMBER_OF_ORGANIZATION, USER_SESSION_ENDED, VERIFICATION_ID_REQUIRED, WRONG_ACCOUNT].freeze
181
180
  end
182
181
  end
183
182
  end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ module Types
7
+ PipesProviderOwnership = CreateDataIntegrationOwnership
8
+ end
9
+ end
@@ -6,17 +6,20 @@ module WorkOS
6
6
  class AuthenticationEmailVerificationFailedDataError < WorkOS::Types::BaseModel
7
7
  HASH_ATTRS = {
8
8
  code: :code,
9
- message: :message
9
+ message: :message,
10
+ radar_detection_id: :radar_detection_id
10
11
  }.freeze
11
12
 
12
13
  attr_accessor \
13
14
  :code,
14
- :message
15
+ :message,
16
+ :radar_detection_id
15
17
 
16
18
  def initialize(json)
17
19
  hash = self.class.normalize(json)
18
20
  @code = hash[:code]
19
21
  @message = hash[:message]
22
+ @radar_detection_id = hash[:radar_detection_id]
20
23
  end
21
24
  end
22
25
  end
@@ -12,7 +12,8 @@ module WorkOS
12
12
  ip_address: :ip_address,
13
13
  user_agent: :user_agent,
14
14
  user_id: :user_id,
15
- email: :email
15
+ email: :email,
16
+ radar_detection_id: :radar_detection_id
16
17
  }.freeze
17
18
 
18
19
  attr_accessor \
@@ -23,7 +24,8 @@ module WorkOS
23
24
  :ip_address,
24
25
  :user_agent,
25
26
  :user_id,
26
- :email
27
+ :email,
28
+ :radar_detection_id
27
29
 
28
30
  def initialize(json)
29
31
  hash = self.class.normalize(json)
@@ -35,6 +37,7 @@ module WorkOS
35
37
  @user_agent = hash[:user_agent]
36
38
  @user_id = hash[:user_id]
37
39
  @email = hash[:email]
40
+ @radar_detection_id = hash[:radar_detection_id]
38
41
  end
39
42
  end
40
43
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  # @oagen-ignore-file
4
4
  module WorkOS
5
- VERSION = "10.6.0"
5
+ VERSION = "10.7.0"
6
6
  end
@@ -5,26 +5,5 @@
5
5
  # typed: strong
6
6
 
7
7
  module WorkOS
8
- class AccountSelectionRequiredErrorBody
9
- sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
10
- def initialize(json); end
11
-
12
- sig { returns(String) }
13
- def code; end
14
-
15
- sig { params(value: String).returns(String) }
16
- def code=(value); end
17
-
18
- sig { returns(String) }
19
- def message; end
20
-
21
- sig { params(value: String).returns(String) }
22
- def message=(value); end
23
-
24
- sig { returns(T::Hash[Symbol, T.untyped]) }
25
- def to_h; end
26
-
27
- sig { params(args: T.untyped).returns(String) }
28
- def to_json(*args); end
29
- end
8
+ AccountSelectionRequiredErrorBody = AccountSelectionRequiredError
30
9
  end
@@ -5,26 +5,5 @@
5
5
  # typed: strong
6
6
 
7
7
  module WorkOS
8
- class AgentBlueprintInvocableBy
9
- sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
10
- def initialize(json); end
11
-
12
- sig { returns(T::Array[String]) }
13
- def role_slugs; end
14
-
15
- sig { params(value: T::Array[String]).returns(T::Array[String]) }
16
- def role_slugs=(value); end
17
-
18
- sig { returns(T::Array[String]) }
19
- def organization_ids; end
20
-
21
- sig { params(value: T::Array[String]).returns(T::Array[String]) }
22
- def organization_ids=(value); end
23
-
24
- sig { returns(T::Hash[Symbol, T.untyped]) }
25
- def to_h; end
26
-
27
- sig { params(args: T.untyped).returns(String) }
28
- def to_json(*args); end
29
- end
8
+ AgentBlueprintInvocableBy = AgentBlueprintCreatedDataInvocableBy
30
9
  end
@@ -5,26 +5,5 @@
5
5
  # typed: strong
6
6
 
7
7
  module WorkOS
8
- class AgentBlueprintUpdatedDataInvocableBy
9
- sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
10
- def initialize(json); end
11
-
12
- sig { returns(T::Array[String]) }
13
- def role_slugs; end
14
-
15
- sig { params(value: T::Array[String]).returns(T::Array[String]) }
16
- def role_slugs=(value); end
17
-
18
- sig { returns(T::Array[String]) }
19
- def organization_ids; end
20
-
21
- sig { params(value: T::Array[String]).returns(T::Array[String]) }
22
- def organization_ids=(value); end
23
-
24
- sig { returns(T::Hash[Symbol, T.untyped]) }
25
- def to_h; end
26
-
27
- sig { params(args: T.untyped).returns(String) }
28
- def to_json(*args); end
29
- end
8
+ AgentBlueprintUpdatedDataInvocableBy = AgentBlueprintCreatedDataInvocableBy
30
9
  end
@@ -5,32 +5,5 @@
5
5
  # typed: strong
6
6
 
7
7
  module WorkOS
8
- class AgentBlueprintUpdatedDataSessionSetting
9
- sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
10
- def initialize(json); end
11
-
12
- sig { returns(Float) }
13
- def max_age_seconds; end
14
-
15
- sig { params(value: Float).returns(Float) }
16
- def max_age_seconds=(value); end
17
-
18
- sig { returns(Float) }
19
- def access_token_ttl_seconds; end
20
-
21
- sig { params(value: Float).returns(Float) }
22
- def access_token_ttl_seconds=(value); end
23
-
24
- sig { returns(Float) }
25
- def refresh_token_ttl_seconds; end
26
-
27
- sig { params(value: Float).returns(Float) }
28
- def refresh_token_ttl_seconds=(value); end
29
-
30
- sig { returns(T::Hash[Symbol, T.untyped]) }
31
- def to_h; end
32
-
33
- sig { params(args: T.untyped).returns(String) }
34
- def to_json(*args); end
35
- end
8
+ AgentBlueprintUpdatedDataSessionSetting = AgentBlueprintCreatedDataSessionSetting
36
9
  end
@@ -5,32 +5,5 @@
5
5
  # typed: strong
6
6
 
7
7
  module WorkOS
8
- class AgentBlueprintsCreateRequestSessionSetting
9
- sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
10
- def initialize(json); end
11
-
12
- sig { returns(Integer) }
13
- def max_age_seconds; end
14
-
15
- sig { params(value: Integer).returns(Integer) }
16
- def max_age_seconds=(value); end
17
-
18
- sig { returns(Integer) }
19
- def access_token_ttl_seconds; end
20
-
21
- sig { params(value: Integer).returns(Integer) }
22
- def access_token_ttl_seconds=(value); end
23
-
24
- sig { returns(Integer) }
25
- def refresh_token_ttl_seconds; end
26
-
27
- sig { params(value: Integer).returns(Integer) }
28
- def refresh_token_ttl_seconds=(value); end
29
-
30
- sig { returns(T::Hash[Symbol, T.untyped]) }
31
- def to_h; end
32
-
33
- sig { params(args: T.untyped).returns(String) }
34
- def to_json(*args); end
35
- end
8
+ AgentBlueprintsCreateRequestSessionSetting = AgentBlueprintSessionSetting
36
9
  end
@@ -5,26 +5,5 @@
5
5
  # typed: strong
6
6
 
7
7
  module WorkOS
8
- class AgentBlueprintsUpdateRequestInvocableBy
9
- sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
10
- def initialize(json); end
11
-
12
- sig { returns(T.nilable(T::Array[String])) }
13
- def role_slugs; end
14
-
15
- sig { params(value: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) }
16
- def role_slugs=(value); end
17
-
18
- sig { returns(T.nilable(T::Array[String])) }
19
- def organization_ids; end
20
-
21
- sig { params(value: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) }
22
- def organization_ids=(value); end
23
-
24
- sig { returns(T::Hash[Symbol, T.untyped]) }
25
- def to_h; end
26
-
27
- sig { params(args: T.untyped).returns(String) }
28
- def to_json(*args); end
29
- end
8
+ AgentBlueprintsUpdateRequestInvocableBy = AgentBlueprintsCreateRequestInvocableBy
30
9
  end