workos 7.1.2 → 9.5.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.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +2 -2
- data/.github/workflows/docs.yml +49 -0
- data/.github/workflows/lint.yml +2 -2
- data/.github/workflows/release-please.yml +164 -10
- data/.github/workflows/release.yml +2 -2
- data/.gitignore +2 -0
- data/.last-synced-sha +1 -1
- data/.oagen-manifest.json +403 -84
- data/.release-please-manifest.json +1 -1
- data/.ruby-version +1 -1
- data/.yardopts +6 -0
- data/CHANGELOG.md +331 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +35 -4
- data/README.md +19 -0
- data/docs/V7_MIGRATION_GUIDE.md +21 -0
- data/lib/workos/actions.rb +1 -1
- data/lib/workos/admin_portal/generate_link.rb +0 -3
- data/lib/workos/admin_portal.rb +0 -3
- data/lib/workos/api_keys/api_key.rb +4 -1
- data/lib/workos/api_keys/api_key_created.rb +5 -5
- data/lib/workos/api_keys/api_key_created_data.rb +4 -1
- data/lib/workos/api_keys/api_key_revoked.rb +5 -5
- data/lib/workos/{audit_logs/audit_log_export_json.rb → api_keys/api_key_updated.rb} +10 -10
- data/lib/workos/api_keys/api_key_updated_data.rb +49 -0
- data/lib/workos/{directory_sync/dsync_deactivated_data_domain.rb → api_keys/api_key_updated_data_owner.rb} +1 -1
- data/lib/workos/api_keys/api_key_updated_data_previous_attribute.rb +18 -0
- data/lib/workos/api_keys/create_organization_api_key.rb +5 -2
- data/lib/workos/api_keys/expire_api_key.rb +18 -0
- data/lib/workos/api_keys/organization_api_key.rb +46 -0
- data/lib/workos/{types/events_order.rb → api_keys/organization_api_key_owner.rb} +1 -3
- data/lib/workos/api_keys/organization_api_key_with_value.rb +49 -0
- data/lib/workos/{types/audit_logs_order.rb → api_keys/organization_api_key_with_value_owner.rb} +1 -3
- data/lib/workos/api_keys.rb +75 -47
- data/lib/workos/audit_logs/audit_log_action.rb +2 -7
- data/lib/workos/audit_logs/audit_log_export.rb +2 -7
- data/lib/workos/audit_logs/audit_log_schema.rb +11 -2
- data/lib/workos/audit_logs/audit_log_schema_actor_input.rb +7 -0
- data/lib/workos/audit_logs/audit_log_schema_input.rb +25 -0
- data/lib/workos/audit_logs/audit_log_schema_target.rb +16 -1
- data/lib/workos/audit_logs/audit_log_schema_target_input.rb +7 -0
- data/lib/workos/audit_logs.rb +20 -20
- data/lib/workos/{audit_logs/audit_log_schema_json_actor.rb → authorization/create_group_role_assignment.rb} +1 -1
- data/lib/workos/authorization/delete_group_role_assignments_by_criteria.rb +7 -0
- data/lib/workos/authorization/{role_assignment.rb → group_role_assignment.rb} +5 -2
- data/lib/workos/authorization/group_role_assignment_list.rb +25 -0
- data/lib/workos/authorization/{role_assignment_resource.rb → group_role_assignment_resource.rb} +1 -1
- data/lib/workos/authorization/permission_created.rb +5 -5
- data/lib/workos/authorization/permission_deleted.rb +5 -5
- data/lib/workos/authorization/permission_updated.rb +5 -5
- data/lib/workos/{api_keys/api_key_with_value_owner.rb → authorization/replace_group_role_assignment_entry.rb} +1 -1
- data/lib/workos/authorization/replace_group_role_assignments.rb +18 -0
- data/lib/workos/authorization/role_created.rb +5 -5
- data/lib/workos/authorization/role_deleted.rb +5 -5
- data/lib/workos/authorization/role_updated.rb +5 -5
- data/lib/workos/authorization/user_role_assignment.rb +40 -0
- data/lib/workos/authorization/user_role_assignment_resource.rb +7 -0
- data/lib/workos/{audit_logs/audit_log_schema_json_target.rb → authorization/user_role_assignment_source.rb} +4 -4
- data/lib/workos/authorization.rb +326 -30
- data/lib/workos/base_client.rb +90 -7
- data/lib/workos/client.rb +18 -10
- data/lib/workos/client_api/client_api_token.rb +22 -0
- data/lib/workos/client_api/client_api_token_response.rb +18 -0
- data/lib/workos/client_api.rb +39 -0
- data/lib/workos/connect/connect_application.rb +12 -0
- data/lib/workos/connect/connect_application_redirect_uri.rb +22 -0
- data/lib/workos/connect/user_object.rb +3 -0
- data/lib/workos/connect.rb +2 -2
- data/lib/workos/directory_sync/directory_user.rb +3 -0
- data/lib/workos/directory_sync/directory_user_with_groups.rb +4 -1
- data/lib/workos/directory_sync/dsync_activated.rb +5 -5
- data/lib/workos/directory_sync/dsync_deleted.rb +5 -5
- data/lib/workos/directory_sync/dsync_group_created.rb +5 -5
- data/lib/workos/directory_sync/dsync_group_deleted.rb +5 -5
- data/lib/workos/directory_sync/dsync_group_updated.rb +5 -5
- data/lib/workos/directory_sync/dsync_group_user_added.rb +5 -5
- data/lib/workos/directory_sync/dsync_group_user_removed.rb +5 -5
- data/lib/workos/directory_sync/dsync_token_created.rb +34 -0
- data/lib/workos/directory_sync/dsync_token_created_data.rb +34 -0
- data/lib/workos/directory_sync/dsync_token_revoked.rb +34 -0
- data/lib/workos/directory_sync/dsync_token_revoked_data.rb +7 -0
- data/lib/workos/directory_sync/dsync_user_created.rb +5 -5
- data/lib/workos/directory_sync/dsync_user_deleted.rb +5 -5
- data/lib/workos/directory_sync/dsync_user_updated.rb +5 -5
- data/lib/workos/directory_sync/dsync_user_updated_data.rb +3 -0
- data/lib/workos/directory_sync.rb +6 -6
- data/lib/workos/encryptors/aes_gcm.rb +19 -5
- data/lib/workos/events.rb +2 -2
- data/lib/workos/feature_flags/flag_created.rb +5 -5
- data/lib/workos/feature_flags/flag_deleted.rb +5 -5
- data/lib/workos/feature_flags/flag_rule_updated.rb +5 -5
- data/lib/workos/feature_flags/flag_rule_updated_context_configured_target_organization.rb +1 -16
- data/lib/workos/feature_flags/flag_rule_updated_context_previous_attribute_context_configured_target_organization.rb +1 -1
- data/lib/workos/feature_flags/flag_updated.rb +5 -5
- data/lib/workos/feature_flags.rb +6 -6
- data/lib/workos/{authorization → groups}/user_organization_membership_base_list_data.rb +5 -2
- data/lib/workos/groups.rb +4 -4
- data/lib/workos/inflections.rb +3 -1
- data/lib/workos/multi_factor_auth.rb +2 -2
- data/lib/workos/organization_domains/organization_domain_created.rb +5 -5
- data/lib/workos/organization_domains/organization_domain_deleted.rb +5 -5
- data/lib/workos/organization_domains/organization_domain_updated.rb +5 -5
- data/lib/workos/organization_domains/organization_domain_verification_failed.rb +5 -5
- data/lib/workos/organization_domains/organization_domain_verified.rb +5 -5
- data/lib/workos/{user_management → organization_membership}/organization_membership.rb +8 -2
- data/lib/workos/{user_management → organization_membership}/user_organization_membership.rb +8 -2
- data/lib/workos/organization_membership_service.rb +273 -0
- data/lib/workos/organizations/audit_logs_retention.rb +2 -7
- data/lib/workos/organizations/organization_created.rb +5 -5
- data/lib/workos/organizations/organization_deleted.rb +5 -5
- data/lib/workos/organizations/organization_membership_created.rb +5 -5
- data/lib/workos/organizations/organization_membership_deleted.rb +5 -5
- data/lib/workos/organizations/organization_membership_updated.rb +5 -5
- data/lib/workos/organizations/organization_role_created.rb +5 -5
- data/lib/workos/organizations/organization_role_deleted.rb +5 -5
- data/lib/workos/organizations/organization_role_updated.rb +5 -5
- data/lib/workos/organizations/organization_updated.rb +5 -5
- data/lib/workos/organizations.rb +2 -2
- data/lib/workos/pipes/connected_account.rb +6 -0
- data/lib/workos/pipes/connected_account_dto.rb +31 -0
- data/lib/workos/pipes/create_data_integration.rb +34 -0
- data/lib/workos/pipes/custom_provider_definition.rb +49 -0
- data/lib/workos/pipes/data_integration.rb +55 -0
- data/lib/workos/pipes/data_integration_credential.rb +25 -0
- data/lib/workos/pipes/data_integration_credentials_dto.rb +25 -0
- data/lib/workos/pipes/data_integration_credentials_response.rb +25 -0
- data/lib/workos/pipes/data_integration_credentials_response_credential.rb +34 -0
- data/lib/workos/pipes/data_integration_custom_provider.rb +49 -0
- data/lib/workos/pipes/data_integrations_list_response_data.rb +3 -0
- data/lib/workos/pipes/data_integrations_list_response_data_connected_account.rb +6 -0
- data/lib/workos/pipes/data_integrations_upsert_api_key_request.rb +25 -0
- data/lib/workos/pipes/data_integrations_vend_credentials_request.rb +22 -0
- data/lib/workos/pipes/update_custom_provider_definition.rb +49 -0
- data/lib/workos/pipes/update_data_integration.rb +31 -0
- data/lib/workos/pipes.rb +309 -5
- data/lib/workos/pipes_provider/configure_data_integration_body.rb +28 -0
- data/lib/workos/pipes_provider/data_integration_configuration_list_response.rb +22 -0
- data/lib/workos/{directory_sync/dsync_deactivated_data.rb → pipes_provider/data_integration_configuration_response.rb} +13 -13
- data/lib/workos/pipes_provider/data_integration_credentials.rb +31 -0
- data/lib/workos/pipes_provider.rb +68 -0
- data/lib/workos/radar/radar_standalone_assess_request.rb +3 -6
- data/lib/workos/radar.rb +7 -10
- data/lib/workos/session.rb +28 -7
- data/lib/workos/session_manager.rb +24 -1
- data/lib/workos/shared/auth_method_mismatch_error.rb +22 -0
- data/lib/workos/shared/connect_application_m2m.rb +46 -0
- data/lib/workos/shared/connect_application_oauth.rb +58 -0
- data/lib/workos/shared/connect_application_oauth_redirect_uris.rb +22 -0
- data/lib/workos/shared/error_response.rb +18 -0
- data/lib/workos/shared/group_created.rb +5 -5
- data/lib/workos/shared/group_deleted.rb +5 -5
- data/lib/workos/shared/group_member_added.rb +5 -5
- data/lib/workos/shared/group_member_removed.rb +5 -5
- data/lib/workos/shared/group_updated.rb +5 -5
- data/lib/workos/shared/pipe_connected_account.rb +46 -0
- data/lib/workos/{directory_sync/dsync_deactivated.rb → shared/pipes_connected_account_connected.rb} +7 -7
- data/lib/workos/shared/pipes_connected_account_disconnected.rb +34 -0
- data/lib/workos/shared/pipes_connected_account_reauthorization_needed.rb +34 -0
- data/lib/workos/shared/waitlist_user_approved.rb +5 -5
- data/lib/workos/shared/waitlist_user_created.rb +5 -5
- data/lib/workos/shared/waitlist_user_denied.rb +5 -5
- data/lib/workos/sso/connection_activated.rb +5 -5
- data/lib/workos/sso/connection_deactivated.rb +5 -5
- data/lib/workos/sso/connection_deleted.rb +5 -5
- data/lib/workos/sso/connection_saml_certificate_renewal_required.rb +5 -5
- data/lib/workos/sso/connection_saml_certificate_renewed.rb +5 -5
- data/lib/workos/sso/profile.rb +3 -0
- data/lib/workos/sso.rb +2 -2
- data/lib/workos/types/audit_log_configuration_log_stream_type.rb +2 -1
- data/lib/workos/types/audit_log_export_state.rb +2 -1
- data/lib/workos/types/connected_account_auth_method.rb +13 -0
- data/lib/workos/types/connected_account_state.rb +1 -2
- data/lib/workos/types/create_webhook_endpoint_events.rb +12 -1
- data/lib/workos/types/custom_provider_definition_authenticate_via.rb +13 -0
- data/lib/workos/types/data_integration_access_token_response_error.rb +2 -2
- data/lib/workos/types/data_integration_credential_type.rb +13 -0
- data/lib/workos/types/data_integration_credentials_credentials_type.rb +14 -0
- data/lib/workos/types/{directories_order.rb → data_integration_credentials_response_error.rb} +1 -1
- data/lib/workos/types/{authorization_order.rb → data_integration_credentials_type.rb} +1 -1
- data/lib/workos/types/data_integration_custom_provider_authenticate_via.rb +9 -0
- data/lib/workos/types/data_integration_state.rb +14 -0
- data/lib/workos/types/{connections_order.rb → data_integrations_list_response_data_auth_methods.rb} +1 -1
- data/lib/workos/types/data_integrations_list_response_data_connected_account_auth_method.rb +9 -0
- data/lib/workos/types/data_integrations_list_response_data_connected_account_state.rb +6 -1
- data/lib/workos/types/event_context_actor_source.rb +2 -1
- data/lib/workos/types/{applications_order.rb → pagination_order.rb} +1 -1
- data/lib/workos/types/pipe_connected_account_state.rb +13 -0
- data/lib/workos/types/{radar_action.rb → radar_list_action.rb} +1 -1
- data/lib/workos/types/radar_list_type.rb +18 -0
- data/lib/workos/types/radar_standalone_assess_request_action.rb +1 -7
- data/lib/workos/types/radar_standalone_response_blocklist_type.rb +1 -10
- data/lib/workos/types/radar_standalone_response_control.rb +1 -4
- data/lib/workos/types/update_custom_provider_definition_authenticate_via.rb +9 -0
- data/lib/workos/types/user_management_authentication_screen_hint.rb +1 -5
- data/lib/workos/types/user_role_assignment_source_type.rb +13 -0
- data/lib/workos/types/{vault_byok_key_verification_completed_data_key_provider.rb → vault_byok_key_provider.rb} +1 -1
- data/{rbi/workos/types/request_options.rbi → lib/workos/types/vault_order.rb} +4 -3
- data/lib/workos/types/webhook_endpoint_status.rb +1 -5
- data/lib/workos/types/widget_session_token_scopes.rb +2 -1
- data/lib/workos/user_management/action_authentication_denied.rb +6 -6
- data/lib/workos/user_management/action_user_registration_denied.rb +6 -6
- data/lib/workos/user_management/authentication_email_verification_failed.rb +5 -5
- data/lib/workos/user_management/authentication_email_verification_succeeded.rb +5 -5
- data/lib/workos/user_management/authentication_magic_auth_failed.rb +5 -5
- data/lib/workos/user_management/authentication_magic_auth_succeeded.rb +5 -5
- data/lib/workos/user_management/authentication_mfa_failed.rb +5 -5
- data/lib/workos/user_management/authentication_mfa_succeeded.rb +5 -5
- data/lib/workos/user_management/authentication_oauth_failed.rb +5 -5
- data/lib/workos/user_management/authentication_oauth_succeeded.rb +5 -5
- data/lib/workos/user_management/authentication_passkey_failed.rb +5 -5
- data/lib/workos/user_management/authentication_passkey_succeeded.rb +5 -5
- data/lib/workos/user_management/authentication_password_failed.rb +5 -5
- data/lib/workos/user_management/authentication_password_succeeded.rb +5 -5
- data/lib/workos/user_management/authentication_radar_risk_detected.rb +5 -5
- data/lib/workos/user_management/authentication_sso_failed.rb +5 -5
- data/lib/workos/user_management/authentication_sso_started.rb +5 -5
- data/lib/workos/user_management/authentication_sso_succeeded.rb +5 -5
- data/lib/workos/user_management/authentication_sso_timed_out.rb +5 -5
- data/lib/workos/user_management/authorization_code_session_authenticate_request.rb +5 -2
- data/lib/workos/user_management/create_magic_code_and_return.rb +14 -2
- data/lib/workos/user_management/create_user.rb +12 -0
- data/lib/workos/user_management/create_user_api_key.rb +28 -0
- data/lib/workos/user_management/email_change_confirmation_user.rb +3 -0
- data/lib/workos/user_management/email_verification_created.rb +5 -5
- data/lib/workos/user_management/invitation_accepted.rb +5 -5
- data/lib/workos/user_management/invitation_created.rb +5 -5
- data/lib/workos/user_management/invitation_resent.rb +5 -5
- data/lib/workos/user_management/invitation_revoked.rb +5 -5
- data/lib/workos/user_management/magic_auth_code_session_authenticate_request.rb +5 -2
- data/lib/workos/user_management/magic_auth_created.rb +5 -5
- data/lib/workos/user_management/magic_auth_send_magic_auth_code_and_return_response.rb +43 -0
- data/lib/workos/user_management/password_reset_created.rb +5 -5
- data/lib/workos/user_management/password_reset_succeeded.rb +5 -5
- data/lib/workos/user_management/password_session_authenticate_request.rb +8 -2
- data/lib/workos/user_management/radar_email_challenge_code_session_authenticate_request.rb +43 -0
- data/lib/workos/user_management/radar_sms_challenge_code_session_authenticate_request.rb +46 -0
- data/lib/workos/user_management/revoke_session.rb +2 -6
- data/lib/workos/user_management/send_radar_sms_challenge.rb +31 -0
- data/lib/workos/user_management/send_radar_sms_challenge_response.rb +22 -0
- data/lib/workos/user_management/session_created.rb +5 -5
- data/lib/workos/user_management/session_revoked.rb +5 -5
- data/lib/workos/user_management/update_user.rb +3 -0
- data/lib/workos/user_management/user_api_key.rb +46 -0
- data/lib/workos/user_management/user_api_key_created_data_owner.rb +25 -0
- data/lib/workos/user_management/user_api_key_owner.rb +7 -0
- data/lib/workos/user_management/user_api_key_revoked_data_owner.rb +7 -0
- data/lib/workos/user_management/user_api_key_updated_data_owner.rb +7 -0
- data/lib/workos/{api_keys/api_key_with_value.rb → user_management/user_api_key_with_value.rb} +5 -2
- data/lib/workos/user_management/user_api_key_with_value_owner.rb +7 -0
- data/lib/workos/user_management/user_create_response.rb +61 -0
- data/lib/workos/user_management/user_created.rb +5 -5
- data/lib/workos/user_management/user_deleted.rb +5 -5
- data/lib/workos/user_management/user_updated.rb +5 -5
- data/lib/workos/user_management.rb +351 -202
- data/lib/workos/vault/actor.rb +22 -0
- data/lib/workos/vault/create_data_key_request.rb +18 -0
- data/lib/workos/vault/create_data_key_response.rb +28 -0
- data/lib/workos/vault/create_object_request.rb +25 -0
- data/lib/workos/vault/decrypt_request.rb +18 -0
- data/lib/workos/vault/decrypt_response.rb +22 -0
- data/lib/workos/vault/delete_object_response.rb +22 -0
- data/lib/workos/vault/object_metadata.rb +37 -0
- data/lib/workos/{audit_logs/audit_log_action_json.rb → vault/object_summary.rb} +4 -10
- data/lib/workos/vault/object_version.rb +31 -0
- data/lib/workos/vault/object_without_value.rb +25 -0
- data/lib/workos/vault/rekey_request.rb +22 -0
- data/lib/workos/vault/update_object_request.rb +22 -0
- data/lib/workos/vault/vault_byok_key_deleted.rb +34 -0
- data/lib/workos/vault/vault_byok_key_deleted_data.rb +22 -0
- data/lib/workos/vault/vault_byok_key_verification_completed.rb +5 -5
- data/lib/workos/vault/vault_data_created.rb +5 -5
- data/lib/workos/vault/vault_data_deleted.rb +5 -5
- data/lib/workos/vault/vault_data_read.rb +5 -5
- data/lib/workos/vault/vault_data_updated.rb +5 -5
- data/lib/workos/vault/vault_dek_decrypted.rb +5 -5
- data/lib/workos/vault/vault_dek_read.rb +5 -5
- data/lib/workos/vault/vault_kek_created.rb +5 -5
- data/lib/workos/vault/vault_metadata_read.rb +5 -5
- data/lib/workos/vault/vault_names_listed.rb +5 -5
- data/lib/workos/vault/vault_object.rb +28 -0
- data/lib/workos/vault/version_list_response.rb +22 -0
- data/lib/workos/vault.rb +273 -139
- data/lib/workos/version.rb +1 -1
- data/lib/workos/webhooks/webhook_endpoint.rb +2 -7
- data/lib/workos/webhooks.rb +10 -11
- data/lib/workos/widgets/widget_session_token_response.rb +1 -12
- data/lib/workos.rb +3 -0
- data/rbi/workos/action_authentication_denied.rbi +10 -10
- data/rbi/workos/action_user_registration_denied.rbi +10 -10
- data/rbi/workos/actor.rbi +30 -0
- data/rbi/workos/admin_portal.rbi +1 -2
- data/rbi/workos/api_key.rbi +8 -2
- data/rbi/workos/api_key_created.rbi +6 -6
- data/rbi/workos/api_key_created_data.rbi +8 -2
- data/rbi/workos/api_key_revoked.rbi +6 -6
- data/rbi/workos/api_key_revoked_data.rbi +8 -2
- data/rbi/workos/{dsync_deactivated.rbi → api_key_updated.rbi} +9 -9
- data/rbi/workos/api_key_updated_data.rbi +84 -0
- data/rbi/workos/{api_key_with_value_owner.rbi → api_key_updated_data_owner.rbi} +1 -1
- data/rbi/workos/{audit_logs_retention_json.rbi → api_key_updated_data_previous_attribute.rbi} +5 -5
- data/rbi/workos/api_keys.rbi +27 -17
- data/rbi/workos/audit_log_action.rbi +1 -0
- data/rbi/workos/audit_log_export.rbi +1 -0
- data/rbi/workos/audit_log_schema.rbi +18 -0
- data/rbi/workos/{audit_log_schema_json_actor.rbi → audit_log_schema_actor_input.rbi} +1 -1
- data/rbi/workos/audit_log_schema_input.rbi +36 -0
- data/rbi/workos/{audit_log_schema_json_target.rbi → audit_log_schema_target_input.rbi} +1 -1
- data/rbi/workos/audit_logs.rbi +9 -9
- data/rbi/workos/audit_logs_retention.rbi +1 -0
- data/rbi/workos/auth_method_mismatch_error.rbi +30 -0
- data/rbi/workos/authentication_email_verification_failed.rbi +6 -6
- data/rbi/workos/authentication_email_verification_succeeded.rbi +6 -6
- data/rbi/workos/authentication_magic_auth_failed.rbi +6 -6
- data/rbi/workos/authentication_magic_auth_succeeded.rbi +6 -6
- data/rbi/workos/authentication_mfa_failed.rbi +6 -6
- data/rbi/workos/authentication_mfa_succeeded.rbi +6 -6
- data/rbi/workos/authentication_oauth_failed.rbi +6 -6
- data/rbi/workos/authentication_oauth_succeeded.rbi +6 -6
- data/rbi/workos/authentication_passkey_failed.rbi +6 -6
- data/rbi/workos/authentication_passkey_succeeded.rbi +6 -6
- data/rbi/workos/authentication_password_failed.rbi +6 -6
- data/rbi/workos/authentication_password_succeeded.rbi +6 -6
- data/rbi/workos/authentication_radar_risk_detected.rbi +6 -6
- data/rbi/workos/authentication_sso_failed.rbi +6 -6
- data/rbi/workos/authentication_sso_started.rbi +6 -6
- data/rbi/workos/authentication_sso_succeeded.rbi +6 -6
- data/rbi/workos/authentication_sso_timed_out.rbi +6 -6
- data/rbi/workos/authorization.rbi +97 -4
- data/rbi/workos/authorization_code_session_authenticate_request.rbi +8 -2
- data/rbi/workos/client.rbi +15 -6
- data/rbi/workos/client_api.rbi +22 -0
- data/rbi/workos/client_api_token.rbi +30 -0
- data/rbi/workos/client_api_token_response.rbi +24 -0
- data/rbi/workos/configure_data_integration_body.rbi +42 -0
- data/rbi/workos/connect_application.rbi +0 -12
- data/rbi/workos/{dsync_deactivated_data.rbi → connect_application_m2m.rbi} +19 -19
- data/rbi/workos/connect_application_oauth.rbi +102 -0
- data/rbi/workos/connect_application_oauth_redirect_uris.rbi +30 -0
- data/rbi/workos/connected_account.rbi +12 -0
- data/rbi/workos/connected_account_dto.rbi +48 -0
- data/rbi/workos/connection_activated.rbi +6 -6
- data/rbi/workos/connection_deactivated.rbi +6 -6
- data/rbi/workos/connection_deleted.rbi +6 -6
- data/rbi/workos/connection_saml_certificate_renewal_required.rbi +6 -6
- data/rbi/workos/connection_saml_certificate_renewed.rbi +6 -6
- data/rbi/workos/create_data_integration.rbi +54 -0
- data/rbi/workos/create_data_key_request.rbi +24 -0
- data/rbi/workos/create_data_key_response.rbi +42 -0
- data/rbi/workos/create_group_role_assignment.rbi +42 -0
- data/rbi/workos/create_magic_code_and_return.rbi +24 -0
- data/rbi/workos/create_object_request.rbi +36 -0
- data/rbi/workos/create_organization_api_key.rbi +6 -0
- data/rbi/workos/create_user.rbi +24 -0
- data/rbi/workos/create_user_api_key.rbi +42 -0
- data/rbi/workos/custom_provider_definition.rbi +84 -0
- data/rbi/workos/data_integration.rbi +96 -0
- data/rbi/workos/data_integration_configuration_list_response.rbi +30 -0
- data/rbi/workos/data_integration_configuration_response.rbi +78 -0
- data/rbi/workos/data_integration_credential.rbi +36 -0
- data/rbi/workos/data_integration_credentials.rbi +48 -0
- data/rbi/workos/data_integration_credentials_dto.rbi +36 -0
- data/rbi/workos/data_integration_credentials_response.rbi +36 -0
- data/rbi/workos/data_integration_credentials_response_credential.rbi +54 -0
- data/rbi/workos/data_integration_custom_provider.rbi +84 -0
- data/rbi/workos/data_integrations_list_response_data.rbi +6 -0
- data/rbi/workos/data_integrations_list_response_data_connected_account.rbi +12 -0
- data/rbi/workos/data_integrations_upsert_api_key_request.rbi +36 -0
- data/rbi/workos/data_integrations_vend_credentials_request.rbi +30 -0
- data/rbi/workos/decrypt_request.rbi +24 -0
- data/rbi/workos/decrypt_response.rbi +30 -0
- data/rbi/workos/delete_group_role_assignments_by_criteria.rbi +42 -0
- data/rbi/workos/delete_object_response.rbi +30 -0
- data/rbi/workos/directory_user.rbi +6 -0
- data/rbi/workos/directory_user_with_groups.rbi +6 -0
- data/rbi/workos/dsync_activated.rbi +6 -6
- data/rbi/workos/dsync_deleted.rbi +6 -6
- data/rbi/workos/dsync_group_created.rbi +6 -6
- data/rbi/workos/dsync_group_deleted.rbi +6 -6
- data/rbi/workos/dsync_group_updated.rbi +6 -6
- data/rbi/workos/dsync_group_user_added.rbi +6 -6
- data/rbi/workos/dsync_group_user_removed.rbi +6 -6
- data/rbi/workos/dsync_token_created.rbi +54 -0
- data/rbi/workos/{audit_log_export_json.rbi → dsync_token_created_data.rbi} +9 -9
- data/rbi/workos/dsync_token_revoked.rbi +54 -0
- data/rbi/workos/{audit_log_action_json.rbi → dsync_token_revoked_data.rbi} +17 -11
- data/rbi/workos/dsync_user_created.rbi +6 -6
- data/rbi/workos/dsync_user_deleted.rbi +6 -6
- data/rbi/workos/dsync_user_updated.rbi +6 -6
- data/rbi/workos/dsync_user_updated_data.rbi +6 -0
- data/rbi/workos/email_change_confirmation_user.rbi +6 -0
- data/rbi/workos/email_verification_created.rbi +6 -6
- data/rbi/workos/error_response.rbi +24 -0
- data/rbi/workos/expire_api_key.rbi +24 -0
- data/rbi/workos/flag_created.rbi +6 -6
- data/rbi/workos/flag_deleted.rbi +6 -6
- data/rbi/workos/flag_rule_updated.rbi +6 -6
- data/rbi/workos/flag_updated.rbi +6 -6
- data/rbi/workos/generate_link.rbi +0 -6
- data/rbi/workos/group_created.rbi +6 -6
- data/rbi/workos/group_deleted.rbi +6 -6
- data/rbi/workos/group_member_added.rbi +6 -6
- data/rbi/workos/group_member_removed.rbi +6 -6
- data/rbi/workos/{role_assignment.rbi → group_role_assignment.rbi} +9 -3
- data/rbi/workos/group_role_assignment_resource.rbi +36 -0
- data/rbi/workos/group_updated.rbi +6 -6
- data/rbi/workos/invitation_accepted.rbi +6 -6
- data/rbi/workos/invitation_created.rbi +6 -6
- data/rbi/workos/invitation_resent.rbi +6 -6
- data/rbi/workos/invitation_revoked.rbi +6 -6
- data/rbi/workos/magic_auth_code_session_authenticate_request.rbi +6 -0
- data/rbi/workos/magic_auth_created.rbi +6 -6
- data/rbi/workos/{webhook_endpoint_json.rbi → magic_auth_send_magic_auth_code_and_return_response.rbi} +19 -13
- data/rbi/workos/object_metadata.rbi +60 -0
- data/rbi/workos/object_summary.rbi +36 -0
- data/rbi/workos/object_version.rbi +48 -0
- data/rbi/workos/object_without_value.rbi +36 -0
- data/rbi/workos/organization_api_key.rbi +78 -0
- data/rbi/workos/organization_api_key_owner.rbi +30 -0
- data/rbi/workos/organization_api_key_with_value.rbi +84 -0
- data/rbi/workos/organization_api_key_with_value_owner.rbi +30 -0
- data/rbi/workos/organization_created.rbi +6 -6
- data/rbi/workos/organization_deleted.rbi +6 -6
- data/rbi/workos/organization_domain_created.rbi +6 -6
- data/rbi/workos/organization_domain_deleted.rbi +6 -6
- data/rbi/workos/organization_domain_updated.rbi +6 -6
- data/rbi/workos/organization_domain_verification_failed.rbi +6 -6
- data/rbi/workos/organization_domain_verified.rbi +6 -6
- data/rbi/workos/organization_membership.rbi +12 -0
- data/rbi/workos/organization_membership_created.rbi +6 -6
- data/rbi/workos/organization_membership_deleted.rbi +6 -6
- data/rbi/workos/organization_membership_service.rbi +114 -0
- data/rbi/workos/organization_membership_updated.rbi +6 -6
- data/rbi/workos/organization_role_created.rbi +6 -6
- data/rbi/workos/organization_role_deleted.rbi +6 -6
- data/rbi/workos/organization_role_updated.rbi +6 -6
- data/rbi/workos/organization_updated.rbi +6 -6
- data/rbi/workos/password_reset_created.rbi +6 -6
- data/rbi/workos/password_reset_succeeded.rbi +6 -6
- data/rbi/workos/password_session_authenticate_request.rbi +12 -0
- data/rbi/workos/permission_created.rbi +6 -6
- data/rbi/workos/permission_deleted.rbi +6 -6
- data/rbi/workos/permission_updated.rbi +6 -6
- data/rbi/workos/pipe_connected_account.rbi +78 -0
- data/rbi/workos/pipes.rbi +105 -1
- data/rbi/workos/pipes_connected_account_connected.rbi +54 -0
- data/rbi/workos/pipes_connected_account_disconnected.rbi +54 -0
- data/rbi/workos/pipes_connected_account_reauthorization_needed.rbi +54 -0
- data/rbi/workos/pipes_provider.rbi +34 -0
- data/rbi/workos/profile.rbi +6 -0
- data/rbi/workos/radar.rbi +2 -3
- data/rbi/workos/radar_email_challenge_code_session_authenticate_request.rbi +72 -0
- data/rbi/workos/radar_sms_challenge_code_session_authenticate_request.rbi +78 -0
- data/rbi/workos/radar_standalone_assess_request.rbi +2 -8
- data/rbi/workos/refresh_token_session_authenticate_request.rbi +2 -2
- data/rbi/workos/rekey_request.rbi +30 -0
- data/rbi/workos/replace_group_role_assignment_entry.rbi +42 -0
- data/rbi/workos/replace_group_role_assignments.rbi +24 -0
- data/rbi/workos/revoke_session.rbi +0 -6
- data/rbi/workos/role_created.rbi +6 -6
- data/rbi/workos/role_deleted.rbi +6 -6
- data/rbi/workos/role_updated.rbi +6 -6
- data/rbi/workos/send_radar_sms_challenge.rbi +48 -0
- data/rbi/workos/send_radar_sms_challenge_response.rbi +30 -0
- data/rbi/workos/session_created.rbi +6 -6
- data/rbi/workos/session_manager.rbi +1 -1
- data/rbi/workos/session_revoked.rbi +6 -6
- data/rbi/workos/update_custom_provider_definition.rbi +84 -0
- data/rbi/workos/update_data_integration.rbi +48 -0
- data/rbi/workos/update_object_request.rbi +30 -0
- data/rbi/workos/update_user.rbi +6 -0
- data/rbi/workos/user.rbi +6 -0
- data/rbi/workos/{api_key_with_value.rbi → user_api_key.rbi} +9 -9
- data/rbi/workos/user_api_key_created_data_owner.rbi +36 -0
- data/rbi/workos/{dsync_deactivated_data_domain.rbi → user_api_key_owner.rbi} +5 -5
- data/rbi/workos/user_api_key_revoked_data_owner.rbi +36 -0
- data/rbi/workos/user_api_key_updated_data_owner.rbi +36 -0
- data/rbi/workos/user_api_key_with_value.rbi +84 -0
- data/rbi/workos/user_api_key_with_value_owner.rbi +36 -0
- data/rbi/workos/user_create_response.rbi +108 -0
- data/rbi/workos/user_created.rbi +6 -6
- data/rbi/workos/user_deleted.rbi +6 -6
- data/rbi/workos/user_management.rbi +72 -86
- data/rbi/workos/user_object.rbi +6 -0
- data/rbi/workos/user_organization_membership.rbi +12 -0
- data/rbi/workos/user_organization_membership_base_list_data.rbi +6 -0
- data/rbi/workos/user_role_assignment.rbi +66 -0
- data/rbi/workos/{role_assignment_resource.rbi → user_role_assignment_resource.rbi} +1 -1
- data/rbi/workos/user_role_assignment_source.rbi +30 -0
- data/rbi/workos/user_updated.rbi +6 -6
- data/rbi/workos/vault.rbi +70 -95
- data/rbi/workos/vault_byok_key_deleted.rbi +54 -0
- data/rbi/workos/vault_byok_key_deleted_data.rbi +30 -0
- data/rbi/workos/vault_byok_key_verification_completed.rbi +6 -6
- data/rbi/workos/vault_data_created.rbi +6 -6
- data/rbi/workos/vault_data_deleted.rbi +6 -6
- data/rbi/workos/vault_data_read.rbi +6 -6
- data/rbi/workos/vault_data_updated.rbi +6 -6
- data/rbi/workos/vault_dek_decrypted.rbi +6 -6
- data/rbi/workos/vault_dek_read.rbi +6 -6
- data/rbi/workos/vault_kek_created.rbi +6 -6
- data/rbi/workos/vault_metadata_read.rbi +6 -6
- data/rbi/workos/vault_names_listed.rbi +6 -6
- data/rbi/workos/vault_object.rbi +42 -0
- data/rbi/workos/waitlist_user_approved.rbi +6 -6
- data/rbi/workos/waitlist_user_created.rbi +6 -6
- data/rbi/workos/waitlist_user_denied.rbi +6 -6
- data/rbi/workos/webhook_endpoint.rbi +1 -0
- data/rbi/workos/webhooks.rbi +2 -2
- data/renovate.json +1 -61
- data/script/docs +16 -0
- data/script/docs-serve +12 -0
- data/script/llms-txt +37 -0
- data/test/workos/test_actions.rb +9 -0
- data/test/workos/test_admin_portal_model_round_trip.rb +33 -0
- data/test/workos/test_api_keys.rb +20 -12
- data/test/workos/test_audit_logs_model_round_trip.rb +218 -0
- data/test/workos/test_authorization.rb +64 -0
- data/test/workos/test_authorization_model_round_trip.rb +456 -0
- data/test/workos/test_base_client.rb +108 -0
- data/test/workos/test_client_api.rb +33 -0
- data/test/workos/test_connect_model_round_trip.rb +30 -0
- data/test/workos/test_encryptors_aes_gcm.rb +16 -1
- data/test/workos/test_groups_model_round_trip.rb +33 -0
- data/test/workos/test_model_round_trip.rb +2 -7138
- data/test/workos/test_organization_membership_service.rb +107 -0
- data/test/workos/test_organizations_model_round_trip.rb +29 -0
- data/test/workos/test_pipes.rb +75 -3
- data/test/workos/test_pipes_model_round_trip.rb +389 -0
- data/test/workos/test_pipes_provider.rb +41 -0
- data/test/workos/test_radar_model_round_trip.rb +85 -0
- data/test/workos/test_session.rb +43 -4
- data/test/workos/test_shared_model_round_trip.rb +92 -0
- data/test/workos/test_user_management.rb +77 -73
- data/test/workos/test_user_management_model_round_trip.rb +1087 -0
- data/test/workos/test_vault.rb +91 -88
- data/test/workos/test_webhook_verify.rb +11 -0
- data/test/workos/test_webhooks_model_round_trip.rb +53 -0
- metadata +220 -85
- data/lib/workos/audit_logs/audit_log_schema_json.rb +0 -34
- data/lib/workos/organizations/audit_logs_retention_json.rb +0 -18
- data/lib/workos/types/audit_log_export_json_state.rb +0 -14
- data/lib/workos/types/directory_groups_order.rb +0 -9
- data/lib/workos/types/directory_users_order.rb +0 -9
- data/lib/workos/types/dsync_deactivated_data_state.rb +0 -9
- data/lib/workos/types/dsync_deactivated_data_type.rb +0 -9
- data/lib/workos/types/feature_flags_order.rb +0 -9
- data/lib/workos/types/groups_order.rb +0 -9
- data/lib/workos/types/organizations_api_keys_order.rb +0 -9
- data/lib/workos/types/organizations_feature_flags_order.rb +0 -9
- data/lib/workos/types/organizations_order.rb +0 -9
- data/lib/workos/types/permissions_order.rb +0 -9
- data/lib/workos/types/radar_type.rb +0 -9
- data/lib/workos/types/user_management_invitations_order.rb +0 -9
- data/lib/workos/types/user_management_multi_factor_authentication_order.rb +0 -9
- data/lib/workos/types/user_management_organization_membership_groups_order.rb +0 -9
- data/lib/workos/types/user_management_organization_membership_order.rb +0 -9
- data/lib/workos/types/user_management_users_authorized_applications_order.rb +0 -9
- data/lib/workos/types/user_management_users_feature_flags_order.rb +0 -9
- data/lib/workos/types/user_management_users_order.rb +0 -9
- data/lib/workos/types/webhook_endpoint_json_status.rb +0 -9
- data/lib/workos/types/webhooks_order.rb +0 -9
- data/lib/workos/user_management_organization_membership_groups.rb +0 -60
- data/lib/workos/webhooks/webhook_endpoint_json.rb +0 -40
- data/rbi/workos/actions.rbi +0 -48
- data/rbi/workos/audit_log_schema_json.rbi +0 -54
- data/rbi/workos/base_client.rbi +0 -132
- data/rbi/workos/configuration.rbi +0 -68
- data/rbi/workos/encryptors/aes_gcm.rbi +0 -19
- data/rbi/workos/errors.rbi +0 -43
- data/rbi/workos/hash_provider.rbi +0 -18
- data/rbi/workos/passwordless.rbi +0 -47
- data/rbi/workos/public_client.rbi +0 -12
- data/rbi/workos/session.rbi +0 -43
- data/rbi/workos/types/api_response.rbi +0 -29
- data/rbi/workos/types/base_model.rbi +0 -22
- data/rbi/workos/types/list_struct.rbi +0 -89
- data/rbi/workos/user_management_organization_membership_groups.rbi +0 -25
- data/rbi/workos/util.rbi +0 -12
- data/test/workos/test_user_management_organization_membership_groups.rb +0 -33
- /data/lib/workos/{user_management → organization_membership}/create_user_organization_membership.rb +0 -0
- /data/lib/workos/{user_management → organization_membership}/update_user_organization_membership.rb +0 -0
|
@@ -13,6 +13,7 @@ module WorkOS
|
|
|
13
13
|
integration_type: :integration_type,
|
|
14
14
|
credentials_type: :credentials_type,
|
|
15
15
|
scopes: :scopes,
|
|
16
|
+
auth_methods: :auth_methods,
|
|
16
17
|
ownership: :ownership,
|
|
17
18
|
created_at: :created_at,
|
|
18
19
|
updated_at: :updated_at,
|
|
@@ -28,6 +29,7 @@ module WorkOS
|
|
|
28
29
|
:integration_type,
|
|
29
30
|
:credentials_type,
|
|
30
31
|
:scopes,
|
|
32
|
+
:auth_methods,
|
|
31
33
|
:ownership,
|
|
32
34
|
:created_at,
|
|
33
35
|
:updated_at,
|
|
@@ -43,6 +45,7 @@ module WorkOS
|
|
|
43
45
|
@integration_type = hash[:integration_type]
|
|
44
46
|
@credentials_type = hash[:credentials_type]
|
|
45
47
|
@scopes = hash[:scopes] || []
|
|
48
|
+
@auth_methods = hash[:auth_methods] || []
|
|
46
49
|
@ownership = hash[:ownership]
|
|
47
50
|
@created_at = hash[:created_at]
|
|
48
51
|
@updated_at = hash[:updated_at]
|
|
@@ -10,6 +10,8 @@ module WorkOS
|
|
|
10
10
|
user_id: :user_id,
|
|
11
11
|
organization_id: :organization_id,
|
|
12
12
|
scopes: :scopes,
|
|
13
|
+
auth_method: :auth_method,
|
|
14
|
+
api_key_last_4: :api_key_last_4,
|
|
13
15
|
state: :state,
|
|
14
16
|
created_at: :created_at,
|
|
15
17
|
updated_at: :updated_at,
|
|
@@ -25,6 +27,8 @@ module WorkOS
|
|
|
25
27
|
:user_id,
|
|
26
28
|
:organization_id,
|
|
27
29
|
:scopes,
|
|
30
|
+
:auth_method,
|
|
31
|
+
:api_key_last_4,
|
|
28
32
|
:state,
|
|
29
33
|
:created_at,
|
|
30
34
|
:updated_at
|
|
@@ -43,6 +47,8 @@ module WorkOS
|
|
|
43
47
|
@user_id = hash[:user_id]
|
|
44
48
|
@organization_id = hash[:organization_id]
|
|
45
49
|
@scopes = hash[:scopes] || []
|
|
50
|
+
@auth_method = hash[:auth_method]
|
|
51
|
+
@api_key_last_4 = hash[:api_key_last_4]
|
|
46
52
|
@state = hash[:state]
|
|
47
53
|
@created_at = hash[:created_at]
|
|
48
54
|
@updated_at = hash[:updated_at]
|
|
@@ -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 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
|
|
25
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module WorkOS
|
|
6
|
+
class DataIntegrationsVendCredentialsRequest < WorkOS::Types::BaseModel
|
|
7
|
+
HASH_ATTRS = {
|
|
8
|
+
user_id: :user_id,
|
|
9
|
+
organization_id: :organization_id
|
|
10
|
+
}.freeze
|
|
11
|
+
|
|
12
|
+
attr_accessor \
|
|
13
|
+
:user_id,
|
|
14
|
+
:organization_id
|
|
15
|
+
|
|
16
|
+
def initialize(json)
|
|
17
|
+
hash = self.class.normalize(json)
|
|
18
|
+
@user_id = hash[:user_id]
|
|
19
|
+
@organization_id = hash[:organization_id]
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module WorkOS
|
|
6
|
+
class UpdateCustomProviderDefinition < WorkOS::Types::BaseModel
|
|
7
|
+
HASH_ATTRS = {
|
|
8
|
+
name: :name,
|
|
9
|
+
authorization_url: :authorization_url,
|
|
10
|
+
token_url: :token_url,
|
|
11
|
+
refresh_token_url: :refresh_token_url,
|
|
12
|
+
pkce_enabled: :pkce_enabled,
|
|
13
|
+
request_scope_separator: :request_scope_separator,
|
|
14
|
+
scopes_required: :scopes_required,
|
|
15
|
+
client_secret_required: :client_secret_required,
|
|
16
|
+
additional_authorization_parameters: :additional_authorization_parameters,
|
|
17
|
+
token_body_content_type: :token_body_content_type,
|
|
18
|
+
authenticate_via: :authenticate_via
|
|
19
|
+
}.freeze
|
|
20
|
+
|
|
21
|
+
attr_accessor \
|
|
22
|
+
:name,
|
|
23
|
+
:authorization_url,
|
|
24
|
+
:token_url,
|
|
25
|
+
:refresh_token_url,
|
|
26
|
+
:pkce_enabled,
|
|
27
|
+
:request_scope_separator,
|
|
28
|
+
:scopes_required,
|
|
29
|
+
:client_secret_required,
|
|
30
|
+
:additional_authorization_parameters,
|
|
31
|
+
:token_body_content_type,
|
|
32
|
+
:authenticate_via
|
|
33
|
+
|
|
34
|
+
def initialize(json)
|
|
35
|
+
hash = self.class.normalize(json)
|
|
36
|
+
@name = hash[:name]
|
|
37
|
+
@authorization_url = hash[:authorization_url]
|
|
38
|
+
@token_url = hash[:token_url]
|
|
39
|
+
@refresh_token_url = hash[:refresh_token_url]
|
|
40
|
+
@pkce_enabled = hash[:pkce_enabled]
|
|
41
|
+
@request_scope_separator = hash[:request_scope_separator]
|
|
42
|
+
@scopes_required = hash[:scopes_required]
|
|
43
|
+
@client_secret_required = hash[:client_secret_required]
|
|
44
|
+
@additional_authorization_parameters = hash[:additional_authorization_parameters] || {}
|
|
45
|
+
@token_body_content_type = hash[:token_body_content_type]
|
|
46
|
+
@authenticate_via = hash[:authenticate_via]
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
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 UpdateDataIntegration < WorkOS::Types::BaseModel
|
|
7
|
+
HASH_ATTRS = {
|
|
8
|
+
description: :description,
|
|
9
|
+
enabled: :enabled,
|
|
10
|
+
scopes: :scopes,
|
|
11
|
+
credentials: :credentials,
|
|
12
|
+
custom_provider: :custom_provider
|
|
13
|
+
}.freeze
|
|
14
|
+
|
|
15
|
+
attr_accessor \
|
|
16
|
+
:description,
|
|
17
|
+
:enabled,
|
|
18
|
+
:scopes,
|
|
19
|
+
:credentials,
|
|
20
|
+
:custom_provider
|
|
21
|
+
|
|
22
|
+
def initialize(json)
|
|
23
|
+
hash = self.class.normalize(json)
|
|
24
|
+
@description = hash[:description]
|
|
25
|
+
@enabled = hash[:enabled]
|
|
26
|
+
@scopes = hash[:scopes] || []
|
|
27
|
+
@credentials = hash[:credentials] ? WorkOS::DataIntegrationCredentialsDto.new(hash[:credentials]) : nil
|
|
28
|
+
@custom_provider = hash[:custom_provider] ? WorkOS::UpdateCustomProviderDefinition.new(hash[:custom_provider]) : nil
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
data/lib/workos/pipes.rb
CHANGED
|
@@ -10,6 +10,192 @@ module WorkOS
|
|
|
10
10
|
@client = client
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
# List data integrations
|
|
14
|
+
# @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"`.
|
|
15
|
+
# @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
|
|
16
|
+
# @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
|
|
17
|
+
# @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
|
|
18
|
+
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
19
|
+
# @return [WorkOS::Types::ListStruct<WorkOS::DataIntegration>]
|
|
20
|
+
def list_data_integrations(
|
|
21
|
+
before: nil,
|
|
22
|
+
after: nil,
|
|
23
|
+
limit: 10,
|
|
24
|
+
order: "desc",
|
|
25
|
+
request_options: {}
|
|
26
|
+
)
|
|
27
|
+
params = {
|
|
28
|
+
"before" => before,
|
|
29
|
+
"after" => after,
|
|
30
|
+
"limit" => limit,
|
|
31
|
+
"order" => order
|
|
32
|
+
}.compact
|
|
33
|
+
response = @client.request(
|
|
34
|
+
method: :get,
|
|
35
|
+
path: "/data-integrations",
|
|
36
|
+
auth: true,
|
|
37
|
+
params: params,
|
|
38
|
+
request_options: request_options
|
|
39
|
+
)
|
|
40
|
+
fetch_next = ->(cursor) {
|
|
41
|
+
list_data_integrations(
|
|
42
|
+
before: before,
|
|
43
|
+
after: cursor,
|
|
44
|
+
limit: limit,
|
|
45
|
+
order: order,
|
|
46
|
+
request_options: request_options
|
|
47
|
+
)
|
|
48
|
+
}
|
|
49
|
+
WorkOS::Types::ListStruct.from_response(
|
|
50
|
+
response,
|
|
51
|
+
model: WorkOS::DataIntegration,
|
|
52
|
+
filters: {before: before, limit: limit, order: order},
|
|
53
|
+
fetch_next: fetch_next
|
|
54
|
+
)
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Create a data integration
|
|
58
|
+
# @param provider [String] The provider to create a Data Integration for. For a built-in provider use its slug (e.g. `github`, `slack`). For a custom provider, this is the new provider slug and `custom_provider` must be supplied. A custom provider slug cannot shadow an existing global provider slug.
|
|
59
|
+
# @param description [String, nil] An optional description of the Data Integration.
|
|
60
|
+
# @param enabled [Boolean, nil] Whether the Data Integration is enabled. Defaults to `false`.
|
|
61
|
+
# @param scopes [Array<String>, nil] The OAuth scopes to request for the Data Integration. Defaults to the provider's configured scopes when omitted.
|
|
62
|
+
# @param credentials [WorkOS::DataIntegrationCredentialsDto, nil] The credentials to configure for the Data Integration. Required for both built-in and custom providers.
|
|
63
|
+
# @param custom_provider [WorkOS::CustomProviderDefinition, nil] The OAuth definition for a custom provider. Supply this to define a custom provider; omit it to create an integration for a built-in provider.
|
|
64
|
+
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
65
|
+
# @return [WorkOS::DataIntegration]
|
|
66
|
+
def create_data_integration(
|
|
67
|
+
provider:,
|
|
68
|
+
description: nil,
|
|
69
|
+
enabled: nil,
|
|
70
|
+
scopes: nil,
|
|
71
|
+
credentials: nil,
|
|
72
|
+
custom_provider: nil,
|
|
73
|
+
request_options: {}
|
|
74
|
+
)
|
|
75
|
+
body = {
|
|
76
|
+
"provider" => provider,
|
|
77
|
+
"description" => description,
|
|
78
|
+
"enabled" => enabled,
|
|
79
|
+
"scopes" => scopes,
|
|
80
|
+
"credentials" => credentials,
|
|
81
|
+
"custom_provider" => custom_provider
|
|
82
|
+
}.compact
|
|
83
|
+
response = @client.request(
|
|
84
|
+
method: :post,
|
|
85
|
+
path: "/data-integrations",
|
|
86
|
+
auth: true,
|
|
87
|
+
body: body,
|
|
88
|
+
request_options: request_options
|
|
89
|
+
)
|
|
90
|
+
result = WorkOS::DataIntegration.new(response.body)
|
|
91
|
+
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"])
|
|
92
|
+
result
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Get a data integration
|
|
96
|
+
# @param slug [String] The slug identifier of the data integration.
|
|
97
|
+
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
98
|
+
# @return [WorkOS::DataIntegration]
|
|
99
|
+
def get_data_integration(
|
|
100
|
+
slug:,
|
|
101
|
+
request_options: {}
|
|
102
|
+
)
|
|
103
|
+
response = @client.request(
|
|
104
|
+
method: :get,
|
|
105
|
+
path: "/data-integrations/#{WorkOS::Util.encode_path(slug)}",
|
|
106
|
+
auth: true,
|
|
107
|
+
request_options: request_options
|
|
108
|
+
)
|
|
109
|
+
result = WorkOS::DataIntegration.new(response.body)
|
|
110
|
+
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"])
|
|
111
|
+
result
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# Update a data integration
|
|
115
|
+
# @param slug [String] The slug identifier of the data integration.
|
|
116
|
+
# @param description [String, nil] An optional description of the Data Integration.
|
|
117
|
+
# @param enabled [Boolean, nil] Whether the Data Integration is enabled.
|
|
118
|
+
# @param scopes [Array<String>, nil] The OAuth scopes to request for the Data Integration. Pass `null` to reset to the provider's configured scopes.
|
|
119
|
+
# @param credentials [WorkOS::DataIntegrationCredentialsDto, nil] New credentials for the Data Integration. When provided, rotates the stored client secret.
|
|
120
|
+
# @param custom_provider [WorkOS::UpdateCustomProviderDefinition, nil] Updates to a custom provider's OAuth definition. Only valid for custom-provider integrations.
|
|
121
|
+
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
122
|
+
# @return [WorkOS::DataIntegration]
|
|
123
|
+
def update_data_integration(
|
|
124
|
+
slug:,
|
|
125
|
+
description: nil,
|
|
126
|
+
enabled: nil,
|
|
127
|
+
scopes: nil,
|
|
128
|
+
credentials: nil,
|
|
129
|
+
custom_provider: nil,
|
|
130
|
+
request_options: {}
|
|
131
|
+
)
|
|
132
|
+
body = {
|
|
133
|
+
"description" => description,
|
|
134
|
+
"enabled" => enabled,
|
|
135
|
+
"scopes" => scopes,
|
|
136
|
+
"credentials" => credentials,
|
|
137
|
+
"custom_provider" => custom_provider
|
|
138
|
+
}.compact
|
|
139
|
+
response = @client.request(
|
|
140
|
+
method: :put,
|
|
141
|
+
path: "/data-integrations/#{WorkOS::Util.encode_path(slug)}",
|
|
142
|
+
auth: true,
|
|
143
|
+
body: body,
|
|
144
|
+
request_options: request_options
|
|
145
|
+
)
|
|
146
|
+
result = WorkOS::DataIntegration.new(response.body)
|
|
147
|
+
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"])
|
|
148
|
+
result
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Delete a data integration
|
|
152
|
+
# @param slug [String] The slug identifier of the data integration.
|
|
153
|
+
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
154
|
+
# @return [void]
|
|
155
|
+
def delete_data_integration(
|
|
156
|
+
slug:,
|
|
157
|
+
request_options: {}
|
|
158
|
+
)
|
|
159
|
+
@client.request(
|
|
160
|
+
method: :delete,
|
|
161
|
+
path: "/data-integrations/#{WorkOS::Util.encode_path(slug)}",
|
|
162
|
+
auth: true,
|
|
163
|
+
request_options: request_options
|
|
164
|
+
)
|
|
165
|
+
nil
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Upsert an API key for a connected account
|
|
169
|
+
# @param slug [String] The identifier of the integration.
|
|
170
|
+
# @param user_id [String] A [User](https://workos.com/docs/reference/authkit/user) identifier.
|
|
171
|
+
# @param organization_id [String, nil] An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to scope the connection to a specific organization.
|
|
172
|
+
# @param secret [String] The API key secret to store for this integration.
|
|
173
|
+
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
174
|
+
# @return [WorkOS::ConnectedAccount]
|
|
175
|
+
def update_data_integration_api_key(
|
|
176
|
+
slug:,
|
|
177
|
+
user_id:,
|
|
178
|
+
secret:,
|
|
179
|
+
organization_id: nil,
|
|
180
|
+
request_options: {}
|
|
181
|
+
)
|
|
182
|
+
body = {
|
|
183
|
+
"user_id" => user_id,
|
|
184
|
+
"organization_id" => organization_id,
|
|
185
|
+
"secret" => secret
|
|
186
|
+
}.compact
|
|
187
|
+
response = @client.request(
|
|
188
|
+
method: :put,
|
|
189
|
+
path: "/data-integrations/#{WorkOS::Util.encode_path(slug)}/api-key",
|
|
190
|
+
auth: true,
|
|
191
|
+
body: body,
|
|
192
|
+
request_options: request_options
|
|
193
|
+
)
|
|
194
|
+
result = WorkOS::ConnectedAccount.new(response.body)
|
|
195
|
+
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"])
|
|
196
|
+
result
|
|
197
|
+
end
|
|
198
|
+
|
|
13
199
|
# Get authorization URL
|
|
14
200
|
# @param slug [String] The slug identifier of the provider (e.g., `github`, `slack`, `notion`).
|
|
15
201
|
# @param user_id [String] The ID of the user to authorize.
|
|
@@ -41,13 +227,13 @@ module WorkOS
|
|
|
41
227
|
result
|
|
42
228
|
end
|
|
43
229
|
|
|
44
|
-
#
|
|
230
|
+
# Vend credentials for a connected account
|
|
45
231
|
# @param slug [String] The identifier of the integration.
|
|
46
232
|
# @param user_id [String] A [User](https://workos.com/docs/reference/authkit/user) identifier.
|
|
47
233
|
# @param organization_id [String, nil] An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to scope the connection to a specific organization.
|
|
48
234
|
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
49
|
-
# @return [WorkOS::
|
|
50
|
-
def
|
|
235
|
+
# @return [WorkOS::DataIntegrationCredentialsResponse]
|
|
236
|
+
def create_data_integration_credential(
|
|
51
237
|
slug:,
|
|
52
238
|
user_id:,
|
|
53
239
|
organization_id: nil,
|
|
@@ -59,7 +245,35 @@ module WorkOS
|
|
|
59
245
|
}.compact
|
|
60
246
|
response = @client.request(
|
|
61
247
|
method: :post,
|
|
62
|
-
path: "/data-integrations/#{WorkOS::Util.encode_path(slug)}/
|
|
248
|
+
path: "/data-integrations/#{WorkOS::Util.encode_path(slug)}/credentials",
|
|
249
|
+
auth: true,
|
|
250
|
+
body: body,
|
|
251
|
+
request_options: request_options
|
|
252
|
+
)
|
|
253
|
+
result = WorkOS::DataIntegrationCredentialsResponse.new(response.body)
|
|
254
|
+
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"])
|
|
255
|
+
result
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
# Get an access token for a connected account
|
|
259
|
+
# @param provider [String] The identifier of the integration.
|
|
260
|
+
# @param user_id [String] A [User](https://workos.com/docs/reference/authkit/user) identifier.
|
|
261
|
+
# @param organization_id [String, nil] An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to scope the connection to a specific organization.
|
|
262
|
+
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
263
|
+
# @return [WorkOS::DataIntegrationAccessTokenResponse]
|
|
264
|
+
def get_access_token(
|
|
265
|
+
provider:,
|
|
266
|
+
user_id:,
|
|
267
|
+
organization_id: nil,
|
|
268
|
+
request_options: {}
|
|
269
|
+
)
|
|
270
|
+
body = {
|
|
271
|
+
"user_id" => user_id,
|
|
272
|
+
"organization_id" => organization_id
|
|
273
|
+
}.compact
|
|
274
|
+
response = @client.request(
|
|
275
|
+
method: :post,
|
|
276
|
+
path: "/data-integrations/#{WorkOS::Util.encode_path(provider)}/token",
|
|
63
277
|
auth: true,
|
|
64
278
|
body: body,
|
|
65
279
|
request_options: request_options
|
|
@@ -96,6 +310,96 @@ module WorkOS
|
|
|
96
310
|
result
|
|
97
311
|
end
|
|
98
312
|
|
|
313
|
+
# Import a connected account
|
|
314
|
+
# @param user_id [String] A [User](https://workos.com/docs/reference/authkit/user) identifier.
|
|
315
|
+
# @param slug [String] The slug identifier of the provider (e.g., `github`, `slack`, `notion`).
|
|
316
|
+
# @param access_token [String, nil] The OAuth access token for the connected account.
|
|
317
|
+
# @param refresh_token [String, nil] The OAuth refresh token for the connected account.
|
|
318
|
+
# @param expires_at [String, nil] The ISO-8601 timestamp when the access token expires. Required when `access_token` is provided for tokens that expire.
|
|
319
|
+
# @param scopes [Array<String>, nil] The OAuth scopes granted for this connection.
|
|
320
|
+
# @param state [WorkOS::Types::ConnectedAccountState, nil] Explicitly set the state of the connected account. When omitted, the state is derived from the token combination provided.
|
|
321
|
+
# @param organization_id [String, nil] An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter if the connection is scoped to an organization.
|
|
322
|
+
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
323
|
+
# @return [WorkOS::ConnectedAccount]
|
|
324
|
+
def create_user_connected_account(
|
|
325
|
+
user_id:,
|
|
326
|
+
slug:,
|
|
327
|
+
access_token: nil,
|
|
328
|
+
refresh_token: nil,
|
|
329
|
+
expires_at: nil,
|
|
330
|
+
scopes: nil,
|
|
331
|
+
state: nil,
|
|
332
|
+
organization_id: nil,
|
|
333
|
+
request_options: {}
|
|
334
|
+
)
|
|
335
|
+
params = {
|
|
336
|
+
"organization_id" => organization_id
|
|
337
|
+
}.compact
|
|
338
|
+
body = {
|
|
339
|
+
"access_token" => access_token,
|
|
340
|
+
"refresh_token" => refresh_token,
|
|
341
|
+
"expires_at" => expires_at,
|
|
342
|
+
"scopes" => scopes,
|
|
343
|
+
"state" => state
|
|
344
|
+
}.compact
|
|
345
|
+
response = @client.request(
|
|
346
|
+
method: :post,
|
|
347
|
+
path: "/user_management/users/#{WorkOS::Util.encode_path(user_id)}/connected_accounts/#{WorkOS::Util.encode_path(slug)}",
|
|
348
|
+
auth: true,
|
|
349
|
+
params: params,
|
|
350
|
+
body: body,
|
|
351
|
+
request_options: request_options
|
|
352
|
+
)
|
|
353
|
+
result = WorkOS::ConnectedAccount.new(response.body)
|
|
354
|
+
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"])
|
|
355
|
+
result
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
# Update a connected account
|
|
359
|
+
# @param user_id [String] A [User](https://workos.com/docs/reference/authkit/user) identifier.
|
|
360
|
+
# @param slug [String] The slug identifier of the provider (e.g., `github`, `slack`, `notion`).
|
|
361
|
+
# @param access_token [String, nil] The OAuth access token for the connected account.
|
|
362
|
+
# @param refresh_token [String, nil] The OAuth refresh token for the connected account.
|
|
363
|
+
# @param expires_at [String, nil] The ISO-8601 timestamp when the access token expires. Required when `access_token` is provided for tokens that expire.
|
|
364
|
+
# @param scopes [Array<String>, nil] The OAuth scopes granted for this connection.
|
|
365
|
+
# @param state [WorkOS::Types::ConnectedAccountState, nil] Explicitly set the state of the connected account. When omitted, the state is derived from the token combination provided.
|
|
366
|
+
# @param organization_id [String, nil] An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter if the connection is scoped to an organization.
|
|
367
|
+
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
368
|
+
# @return [WorkOS::ConnectedAccount]
|
|
369
|
+
def update_user_connected_account(
|
|
370
|
+
user_id:,
|
|
371
|
+
slug:,
|
|
372
|
+
access_token: nil,
|
|
373
|
+
refresh_token: nil,
|
|
374
|
+
expires_at: nil,
|
|
375
|
+
scopes: nil,
|
|
376
|
+
state: nil,
|
|
377
|
+
organization_id: nil,
|
|
378
|
+
request_options: {}
|
|
379
|
+
)
|
|
380
|
+
params = {
|
|
381
|
+
"organization_id" => organization_id
|
|
382
|
+
}.compact
|
|
383
|
+
body = {
|
|
384
|
+
"access_token" => access_token,
|
|
385
|
+
"refresh_token" => refresh_token,
|
|
386
|
+
"expires_at" => expires_at,
|
|
387
|
+
"scopes" => scopes,
|
|
388
|
+
"state" => state
|
|
389
|
+
}.compact
|
|
390
|
+
response = @client.request(
|
|
391
|
+
method: :put,
|
|
392
|
+
path: "/user_management/users/#{WorkOS::Util.encode_path(user_id)}/connected_accounts/#{WorkOS::Util.encode_path(slug)}",
|
|
393
|
+
auth: true,
|
|
394
|
+
params: params,
|
|
395
|
+
body: body,
|
|
396
|
+
request_options: request_options
|
|
397
|
+
)
|
|
398
|
+
result = WorkOS::ConnectedAccount.new(response.body)
|
|
399
|
+
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"])
|
|
400
|
+
result
|
|
401
|
+
end
|
|
402
|
+
|
|
99
403
|
# Delete a connected account
|
|
100
404
|
# @param user_id [String] A [User](https://workos.com/docs/reference/authkit/user) identifier.
|
|
101
405
|
# @param slug [String] The slug identifier of the provider (e.g., `github`, `slack`, `notion`).
|
|
@@ -121,7 +425,7 @@ module WorkOS
|
|
|
121
425
|
nil
|
|
122
426
|
end
|
|
123
427
|
|
|
124
|
-
# List providers
|
|
428
|
+
# List providers for a user
|
|
125
429
|
# @param user_id [String] A [User](https://workos.com/docs/reference/authkit/user) identifier to list providers and connected accounts for.
|
|
126
430
|
# @param organization_id [String, nil] An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to filter connections for a specific organization.
|
|
127
431
|
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
@@ -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 ConfigureDataIntegrationBody < WorkOS::Types::BaseModel
|
|
7
|
+
HASH_ATTRS = {
|
|
8
|
+
enabled: :enabled,
|
|
9
|
+
scopes: :scopes,
|
|
10
|
+
client_id: :client_id,
|
|
11
|
+
client_secret: :client_secret
|
|
12
|
+
}.freeze
|
|
13
|
+
|
|
14
|
+
attr_accessor \
|
|
15
|
+
:enabled,
|
|
16
|
+
:scopes,
|
|
17
|
+
:client_id,
|
|
18
|
+
:client_secret
|
|
19
|
+
|
|
20
|
+
def initialize(json)
|
|
21
|
+
hash = self.class.normalize(json)
|
|
22
|
+
@enabled = hash[:enabled]
|
|
23
|
+
@scopes = hash[:scopes] || []
|
|
24
|
+
@client_id = hash[:client_id]
|
|
25
|
+
@client_secret = hash[:client_secret]
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module WorkOS
|
|
6
|
+
class DataIntegrationConfigurationListResponse < WorkOS::Types::BaseModel
|
|
7
|
+
HASH_ATTRS = {
|
|
8
|
+
object: :object,
|
|
9
|
+
data: :data
|
|
10
|
+
}.freeze
|
|
11
|
+
|
|
12
|
+
attr_accessor \
|
|
13
|
+
:object,
|
|
14
|
+
:data
|
|
15
|
+
|
|
16
|
+
def initialize(json)
|
|
17
|
+
hash = self.class.normalize(json)
|
|
18
|
+
@object = hash[:object]
|
|
19
|
+
@data = (hash[:data] || []).map { |item| item ? WorkOS::DataIntegrationConfigurationResponse.new(item) : nil }
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -3,44 +3,44 @@
|
|
|
3
3
|
# This file is auto-generated by oagen. Do not edit.
|
|
4
4
|
|
|
5
5
|
module WorkOS
|
|
6
|
-
class
|
|
6
|
+
class DataIntegrationConfigurationResponse < WorkOS::Types::BaseModel
|
|
7
7
|
HASH_ATTRS = {
|
|
8
8
|
object: :object,
|
|
9
9
|
id: :id,
|
|
10
10
|
organization_id: :organization_id,
|
|
11
|
-
|
|
12
|
-
state: :state,
|
|
11
|
+
slug: :slug,
|
|
13
12
|
name: :name,
|
|
13
|
+
enabled: :enabled,
|
|
14
|
+
scopes: :scopes,
|
|
14
15
|
created_at: :created_at,
|
|
15
16
|
updated_at: :updated_at,
|
|
16
|
-
|
|
17
|
-
domains: :domains
|
|
17
|
+
credentials: :credentials
|
|
18
18
|
}.freeze
|
|
19
19
|
|
|
20
20
|
attr_accessor \
|
|
21
21
|
:object,
|
|
22
22
|
:id,
|
|
23
23
|
:organization_id,
|
|
24
|
-
:
|
|
25
|
-
:state,
|
|
24
|
+
:slug,
|
|
26
25
|
:name,
|
|
26
|
+
:enabled,
|
|
27
|
+
:scopes,
|
|
27
28
|
:created_at,
|
|
28
29
|
:updated_at,
|
|
29
|
-
:
|
|
30
|
-
:domains
|
|
30
|
+
:credentials
|
|
31
31
|
|
|
32
32
|
def initialize(json)
|
|
33
33
|
hash = self.class.normalize(json)
|
|
34
34
|
@object = hash[:object]
|
|
35
35
|
@id = hash[:id]
|
|
36
36
|
@organization_id = hash[:organization_id]
|
|
37
|
-
@
|
|
38
|
-
@state = hash[:state]
|
|
37
|
+
@slug = hash[:slug]
|
|
39
38
|
@name = hash[:name]
|
|
39
|
+
@enabled = hash[:enabled]
|
|
40
|
+
@scopes = hash[:scopes] || []
|
|
40
41
|
@created_at = hash[:created_at]
|
|
41
42
|
@updated_at = hash[:updated_at]
|
|
42
|
-
@
|
|
43
|
-
@domains = (hash[:domains] || []).map { |item| item ? WorkOS::DsyncDeactivatedDataDomain.new(item) : nil }
|
|
43
|
+
@credentials = hash[:credentials] ? WorkOS::DataIntegrationCredentials.new(hash[:credentials]) : nil
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
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 DataIntegrationCredentials < WorkOS::Types::BaseModel
|
|
7
|
+
HASH_ATTRS = {
|
|
8
|
+
credentials_type: :credentials_type,
|
|
9
|
+
has_credentials: :has_credentials,
|
|
10
|
+
client_id: :client_id,
|
|
11
|
+
client_secret_last_four: :client_secret_last_four,
|
|
12
|
+
redirect_uri: :redirect_uri
|
|
13
|
+
}.freeze
|
|
14
|
+
|
|
15
|
+
attr_accessor \
|
|
16
|
+
:credentials_type,
|
|
17
|
+
:has_credentials,
|
|
18
|
+
:client_id,
|
|
19
|
+
:client_secret_last_four,
|
|
20
|
+
:redirect_uri
|
|
21
|
+
|
|
22
|
+
def initialize(json)
|
|
23
|
+
hash = self.class.normalize(json)
|
|
24
|
+
@credentials_type = hash[:credentials_type]
|
|
25
|
+
@has_credentials = hash[:has_credentials]
|
|
26
|
+
@client_id = hash[:client_id]
|
|
27
|
+
@client_secret_last_four = hash[:client_secret_last_four]
|
|
28
|
+
@redirect_uri = hash[:redirect_uri]
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|