workos 8.0.1 → 9.1.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 +2 -2
- data/.github/workflows/lint.yml +2 -2
- data/.github/workflows/release-please.yml +199 -4
- data/.github/workflows/release.yml +2 -2
- data/.last-synced-sha +1 -1
- data/.oagen-manifest.json +154 -43
- data/.release-please-manifest.json +1 -1
- data/.ruby-version +1 -1
- data/CHANGELOG.md +92 -0
- data/Gemfile.lock +6 -6
- data/lib/workos/api_keys/api_key.rb +3 -0
- data/lib/workos/api_keys/api_key_created.rb +5 -5
- data/lib/workos/api_keys/api_key_created_data.rb +3 -0
- 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 +3 -0
- data/lib/workos/api_keys/organization_api_key_with_value.rb +3 -0
- data/lib/workos/api_keys.rb +29 -1
- 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/{types/radar_type.rb → audit_logs/audit_log_schema_actor_input.rb} +1 -3
- 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 +16 -16
- 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/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.rb +38 -22
- data/lib/workos/base_client.rb +19 -2
- data/lib/workos/client.rb +6 -6
- data/lib/workos/connect/connect_application.rb +12 -0
- data/lib/workos/{audit_logs/audit_log_schema_json_target.rb → connect/connect_application_redirect_uri.rb} +7 -7
- data/lib/workos/connect/user_object.rb +3 -0
- data/lib/workos/connect.rb +1 -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/{audit_logs/audit_log_schema_json_actor.rb → directory_sync/dsync_token_revoked_data.rb} +1 -1
- 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.rb +2 -2
- data/lib/workos/events.rb +1 -1
- 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/groups.rb +2 -2
- data/lib/workos/inflections.rb +3 -1
- 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/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 +1 -1
- data/lib/workos/radar/radar_standalone_assess_request.rb +2 -8
- data/lib/workos/radar.rb +6 -12
- 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/{directory_sync/dsync_deactivated_data.rb → shared/pipe_connected_account.rb} +15 -15
- 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/types/audit_log_configuration_log_stream_type.rb +2 -1
- data/lib/workos/types/create_webhook_endpoint_events.rb +5 -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/user_management_authentication_screen_hint.rb +1 -5
- 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/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/create_user.rb +3 -0
- data/lib/workos/user_management/create_user_api_key.rb +5 -2
- 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_created.rb +5 -5
- 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/revoke_session.rb +2 -6
- 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 +3 -0
- data/lib/workos/user_management/user_api_key_updated_data_owner.rb +7 -0
- data/lib/workos/user_management/user_api_key_with_value.rb +3 -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 +16 -223
- 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 +5 -5
- 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 +8 -9
- data/lib/workos.rb +1 -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/api_key.rbi +6 -0
- data/rbi/workos/api_key_created.rbi +6 -6
- data/rbi/workos/api_key_created_data.rbi +6 -0
- data/rbi/workos/api_key_revoked.rbi +6 -6
- data/rbi/workos/api_key_revoked_data.rbi +6 -0
- 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_updated_data_owner.rbi +30 -0
- data/rbi/workos/{audit_logs_retention_json.rbi → api_key_updated_data_previous_attribute.rbi} +5 -5
- data/rbi/workos/api_keys.rbi +11 -1
- 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/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 +9 -5
- data/rbi/workos/client.rbi +6 -3
- 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/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_key_request.rbi +24 -0
- data/rbi/workos/create_data_key_response.rbi +42 -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 +6 -0
- data/rbi/workos/create_user_api_key.rbi +6 -0
- data/rbi/workos/decrypt_request.rbi +24 -0
- data/rbi/workos/decrypt_response.rbi +30 -0
- data/rbi/workos/delete_object_response.rbi +30 -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/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/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/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_created.rbi +6 -6
- 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 +6 -0
- data/rbi/workos/organization_api_key_with_value.rbi +6 -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_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/permission_created.rbi +6 -6
- data/rbi/workos/permission_deleted.rbi +6 -6
- data/rbi/workos/permission_updated.rbi +6 -6
- data/rbi/workos/{webhook_endpoint_json.rbi → pipe_connected_account.rbi} +23 -11
- 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/radar.rbi +1 -3
- data/rbi/workos/radar_standalone_assess_request.rbi +0 -12
- data/rbi/workos/rekey_request.rbi +30 -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/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_object_request.rbi +30 -0
- data/rbi/workos/update_user.rbi +6 -0
- data/rbi/workos/user.rbi +6 -0
- data/rbi/workos/user_api_key.rbi +6 -0
- data/rbi/workos/{dsync_deactivated_data_domain.rbi → user_api_key_updated_data_owner.rbi} +5 -5
- data/rbi/workos/user_api_key_with_value.rbi +6 -0
- data/rbi/workos/user_created.rbi +6 -6
- data/rbi/workos/user_deleted.rbi +6 -6
- data/rbi/workos/user_management.rbi +7 -94
- data/rbi/workos/user_object.rbi +6 -0
- data/rbi/workos/user_updated.rbi +6 -6
- data/rbi/workos/vault.rbi +70 -95
- data/rbi/workos/vault_byok_key_deleted.rbi +6 -6
- 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/test/workos/test_api_keys.rb +9 -1
- data/test/workos/test_base_client.rb +64 -0
- data/test/workos/test_model_round_trip.rb +740 -261
- data/test/workos/test_organization_membership_service.rb +107 -0
- data/test/workos/test_user_management.rb +0 -74
- data/test/workos/test_vault.rb +91 -88
- metadata +87 -54
- 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/dsync_deactivated_data_state.rb +0 -9
- data/lib/workos/types/dsync_deactivated_data_type.rb +0 -9
- data/lib/workos/types/webhook_endpoint_json_status.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/{authorization → groups}/user_organization_membership_base_list_data.rb +0 -0
- /data/lib/workos/{user_management → organization_membership}/create_user_organization_membership.rb +0 -0
- /data/lib/workos/{user_management → organization_membership}/organization_membership.rb +0 -0
- /data/lib/workos/{user_management → organization_membership}/update_user_organization_membership.rb +0 -0
- /data/lib/workos/{user_management → organization_membership}/user_organization_membership.rb +0 -0
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
-
|
|
5
|
-
require "json"
|
|
6
|
-
|
|
7
|
-
module WorkOS
|
|
8
|
-
class UserManagementOrganizationMembershipGroups
|
|
9
|
-
def initialize(client)
|
|
10
|
-
@client = client
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
# List groups
|
|
14
|
-
# @param om_id [String] Unique identifier of the Organization Membership.
|
|
15
|
-
# @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"`.
|
|
16
|
-
# @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"`.
|
|
17
|
-
# @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
|
|
18
|
-
# @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). Defaults to descending.
|
|
19
|
-
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
20
|
-
# @return [WorkOS::Types::ListStruct<WorkOS::Group>]
|
|
21
|
-
def list_organization_membership_groups(
|
|
22
|
-
om_id:,
|
|
23
|
-
before: nil,
|
|
24
|
-
after: nil,
|
|
25
|
-
limit: 10,
|
|
26
|
-
order: "desc",
|
|
27
|
-
request_options: {}
|
|
28
|
-
)
|
|
29
|
-
params = {
|
|
30
|
-
"before" => before,
|
|
31
|
-
"after" => after,
|
|
32
|
-
"limit" => limit,
|
|
33
|
-
"order" => order
|
|
34
|
-
}.compact
|
|
35
|
-
response = @client.request(
|
|
36
|
-
method: :get,
|
|
37
|
-
path: "/user_management/organization_memberships/#{WorkOS::Util.encode_path(om_id)}/groups",
|
|
38
|
-
auth: true,
|
|
39
|
-
params: params,
|
|
40
|
-
request_options: request_options
|
|
41
|
-
)
|
|
42
|
-
fetch_next = ->(cursor) {
|
|
43
|
-
list_organization_membership_groups(
|
|
44
|
-
om_id: om_id,
|
|
45
|
-
before: before,
|
|
46
|
-
after: cursor,
|
|
47
|
-
limit: limit,
|
|
48
|
-
order: order,
|
|
49
|
-
request_options: request_options
|
|
50
|
-
)
|
|
51
|
-
}
|
|
52
|
-
WorkOS::Types::ListStruct.from_response(
|
|
53
|
-
response,
|
|
54
|
-
model: WorkOS::Group,
|
|
55
|
-
filters: {om_id: om_id, before: before, limit: limit, order: order},
|
|
56
|
-
fetch_next: fetch_next
|
|
57
|
-
)
|
|
58
|
-
end
|
|
59
|
-
end
|
|
60
|
-
end
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
-
|
|
5
|
-
module WorkOS
|
|
6
|
-
class WebhookEndpointJson < WorkOS::Types::BaseModel
|
|
7
|
-
HASH_ATTRS = {
|
|
8
|
-
object: :object,
|
|
9
|
-
id: :id,
|
|
10
|
-
endpoint_url: :endpoint_url,
|
|
11
|
-
secret: :secret,
|
|
12
|
-
status: :status,
|
|
13
|
-
events: :events,
|
|
14
|
-
created_at: :created_at,
|
|
15
|
-
updated_at: :updated_at
|
|
16
|
-
}.freeze
|
|
17
|
-
|
|
18
|
-
attr_accessor \
|
|
19
|
-
:object,
|
|
20
|
-
:id,
|
|
21
|
-
:endpoint_url,
|
|
22
|
-
:secret,
|
|
23
|
-
:status,
|
|
24
|
-
:events,
|
|
25
|
-
:created_at,
|
|
26
|
-
:updated_at
|
|
27
|
-
|
|
28
|
-
def initialize(json)
|
|
29
|
-
hash = self.class.normalize(json)
|
|
30
|
-
@object = hash[:object]
|
|
31
|
-
@id = hash[:id]
|
|
32
|
-
@endpoint_url = hash[:endpoint_url]
|
|
33
|
-
@secret = hash[:secret]
|
|
34
|
-
@status = hash[:status]
|
|
35
|
-
@events = hash[:events] || []
|
|
36
|
-
@created_at = hash[:created_at]
|
|
37
|
-
@updated_at = hash[:updated_at]
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
end
|
data/rbi/workos/actions.rbi
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
-
|
|
5
|
-
# typed: strong
|
|
6
|
-
|
|
7
|
-
module WorkOS
|
|
8
|
-
module Actions
|
|
9
|
-
DEFAULT_TOLERANCE_SECONDS = T.let(30, Integer)
|
|
10
|
-
ACTION_TYPE_TO_RESPONSE_OBJECT = T.let(T.unsafe(nil), T::Hash[String, String])
|
|
11
|
-
|
|
12
|
-
sig do
|
|
13
|
-
params(
|
|
14
|
-
payload: String,
|
|
15
|
-
sig_header: String,
|
|
16
|
-
secret: String,
|
|
17
|
-
tolerance: Integer
|
|
18
|
-
).returns(T::Boolean)
|
|
19
|
-
end
|
|
20
|
-
def self.verify_header(payload:, sig_header:, secret:, tolerance: DEFAULT_TOLERANCE_SECONDS); end
|
|
21
|
-
|
|
22
|
-
sig do
|
|
23
|
-
params(
|
|
24
|
-
payload: String,
|
|
25
|
-
sig_header: String,
|
|
26
|
-
secret: String,
|
|
27
|
-
tolerance: Integer
|
|
28
|
-
).returns(T::Hash[String, T.untyped])
|
|
29
|
-
end
|
|
30
|
-
def self.construct_action(payload:, sig_header:, secret:, tolerance: DEFAULT_TOLERANCE_SECONDS); end
|
|
31
|
-
|
|
32
|
-
sig do
|
|
33
|
-
params(
|
|
34
|
-
action_type: String,
|
|
35
|
-
verdict: String,
|
|
36
|
-
secret: String,
|
|
37
|
-
error_message: T.nilable(String)
|
|
38
|
-
).returns(T::Hash[String, T.untyped])
|
|
39
|
-
end
|
|
40
|
-
def self.sign_response(action_type:, verdict:, secret:, error_message: nil); end
|
|
41
|
-
|
|
42
|
-
sig { params(payload: String, timestamp: T.any(String, Integer), secret: String).returns(String) }
|
|
43
|
-
def self.compute_signature(payload:, timestamp:, secret:); end
|
|
44
|
-
|
|
45
|
-
sig { params(sig_header: String).returns([String, String]) }
|
|
46
|
-
def self.parse_signature_header(sig_header); end
|
|
47
|
-
end
|
|
48
|
-
end
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
-
|
|
5
|
-
# typed: strong
|
|
6
|
-
|
|
7
|
-
module WorkOS
|
|
8
|
-
class AuditLogSchemaJson
|
|
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 object; end
|
|
14
|
-
|
|
15
|
-
sig { params(value: String).returns(String) }
|
|
16
|
-
def object=(value); end
|
|
17
|
-
|
|
18
|
-
sig { returns(Integer) }
|
|
19
|
-
def version; end
|
|
20
|
-
|
|
21
|
-
sig { params(value: Integer).returns(Integer) }
|
|
22
|
-
def version=(value); end
|
|
23
|
-
|
|
24
|
-
sig { returns(T.nilable(WorkOS::AuditLogSchemaJsonActor)) }
|
|
25
|
-
def actor; end
|
|
26
|
-
|
|
27
|
-
sig { params(value: T.nilable(WorkOS::AuditLogSchemaJsonActor)).returns(T.nilable(WorkOS::AuditLogSchemaJsonActor)) }
|
|
28
|
-
def actor=(value); end
|
|
29
|
-
|
|
30
|
-
sig { returns(T::Array[WorkOS::AuditLogSchemaJsonTarget]) }
|
|
31
|
-
def targets; end
|
|
32
|
-
|
|
33
|
-
sig { params(value: T::Array[WorkOS::AuditLogSchemaJsonTarget]).returns(T::Array[WorkOS::AuditLogSchemaJsonTarget]) }
|
|
34
|
-
def targets=(value); end
|
|
35
|
-
|
|
36
|
-
sig { returns(T.nilable(T::Hash[String, T.untyped])) }
|
|
37
|
-
def metadata; end
|
|
38
|
-
|
|
39
|
-
sig { params(value: T.nilable(T::Hash[String, T.untyped])).returns(T.nilable(T::Hash[String, T.untyped])) }
|
|
40
|
-
def metadata=(value); end
|
|
41
|
-
|
|
42
|
-
sig { returns(String) }
|
|
43
|
-
def created_at; end
|
|
44
|
-
|
|
45
|
-
sig { params(value: String).returns(String) }
|
|
46
|
-
def created_at=(value); end
|
|
47
|
-
|
|
48
|
-
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
49
|
-
def to_h; end
|
|
50
|
-
|
|
51
|
-
sig { params(args: T.untyped).returns(String) }
|
|
52
|
-
def to_json(*args); end
|
|
53
|
-
end
|
|
54
|
-
end
|
data/rbi/workos/base_client.rbi
DELETED
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
-
|
|
5
|
-
# typed: strong
|
|
6
|
-
|
|
7
|
-
module WorkOS
|
|
8
|
-
class BaseClient
|
|
9
|
-
DEFAULT_BASE_URL = T.let("https://api.workos.com", String)
|
|
10
|
-
DEFAULT_TIMEOUT = T.let(30, Integer)
|
|
11
|
-
DEFAULT_MAX_RETRIES = T.let(2, Integer)
|
|
12
|
-
RETRYABLE_STATUSES = T.let([408, 409, 429, 500, 502, 503, 504].freeze, T::Array[Integer])
|
|
13
|
-
MAX_CACHED_CONNECTIONS = T.let(8, Integer)
|
|
14
|
-
RETRY_BACKOFF_BASE = T.let(0.5, Float)
|
|
15
|
-
LOG_SEVERITY = T.let({debug: 0, info: 1, warn: 2, error: 3, unknown: 4}.freeze, T::Hash[Symbol, Integer])
|
|
16
|
-
USER_AGENT = T.let(T.unsafe(nil), String)
|
|
17
|
-
|
|
18
|
-
sig { returns(T.nilable(String)) }
|
|
19
|
-
def api_key; end
|
|
20
|
-
|
|
21
|
-
sig { returns(String) }
|
|
22
|
-
def base_url; end
|
|
23
|
-
|
|
24
|
-
sig { returns(T.nilable(String)) }
|
|
25
|
-
def client_id; end
|
|
26
|
-
|
|
27
|
-
sig { returns(Integer) }
|
|
28
|
-
def timeout; end
|
|
29
|
-
|
|
30
|
-
sig { returns(Integer) }
|
|
31
|
-
def max_retries; end
|
|
32
|
-
|
|
33
|
-
sig { returns(T.nilable(Logger)) }
|
|
34
|
-
def logger; end
|
|
35
|
-
|
|
36
|
-
sig { returns(T.nilable(Symbol)) }
|
|
37
|
-
def log_level; end
|
|
38
|
-
|
|
39
|
-
sig do
|
|
40
|
-
params(
|
|
41
|
-
api_key: T.nilable(String),
|
|
42
|
-
base_url: String,
|
|
43
|
-
client_id: T.nilable(String),
|
|
44
|
-
timeout: Integer,
|
|
45
|
-
max_retries: Integer,
|
|
46
|
-
logger: T.nilable(Logger),
|
|
47
|
-
log_level: T.nilable(Symbol),
|
|
48
|
-
random: Random
|
|
49
|
-
).void
|
|
50
|
-
end
|
|
51
|
-
def initialize(api_key: nil, base_url: DEFAULT_BASE_URL, client_id: nil,
|
|
52
|
-
timeout: DEFAULT_TIMEOUT, max_retries: DEFAULT_MAX_RETRIES,
|
|
53
|
-
logger: nil, log_level: nil, random: Random.new); end
|
|
54
|
-
|
|
55
|
-
sig do
|
|
56
|
-
params(
|
|
57
|
-
path: String,
|
|
58
|
-
auth: T::Boolean,
|
|
59
|
-
params: T::Hash[T.any(String, Symbol), T.untyped],
|
|
60
|
-
request_options: T.nilable(T::Hash[Symbol, T.untyped])
|
|
61
|
-
).returns(Net::HTTPRequest)
|
|
62
|
-
end
|
|
63
|
-
def get_request(path:, auth: false, params: {}, request_options: nil); end
|
|
64
|
-
|
|
65
|
-
sig do
|
|
66
|
-
params(
|
|
67
|
-
path: String,
|
|
68
|
-
auth: T::Boolean,
|
|
69
|
-
body: T.nilable(T::Hash[T.any(String, Symbol), T.untyped]),
|
|
70
|
-
params: T::Hash[T.any(String, Symbol), T.untyped],
|
|
71
|
-
request_options: T.nilable(T::Hash[Symbol, T.untyped])
|
|
72
|
-
).returns(Net::HTTPRequest)
|
|
73
|
-
end
|
|
74
|
-
def post_request(path:, auth: false, body: {}, params: {}, request_options: nil); end
|
|
75
|
-
|
|
76
|
-
sig do
|
|
77
|
-
params(
|
|
78
|
-
path: String,
|
|
79
|
-
auth: T::Boolean,
|
|
80
|
-
body: T.nilable(T::Hash[T.any(String, Symbol), T.untyped]),
|
|
81
|
-
params: T::Hash[T.any(String, Symbol), T.untyped],
|
|
82
|
-
request_options: T.nilable(T::Hash[Symbol, T.untyped])
|
|
83
|
-
).returns(Net::HTTPRequest)
|
|
84
|
-
end
|
|
85
|
-
def put_request(path:, auth: false, body: {}, params: {}, request_options: nil); end
|
|
86
|
-
|
|
87
|
-
sig do
|
|
88
|
-
params(
|
|
89
|
-
path: String,
|
|
90
|
-
auth: T::Boolean,
|
|
91
|
-
body: T.nilable(T::Hash[T.any(String, Symbol), T.untyped]),
|
|
92
|
-
params: T::Hash[T.any(String, Symbol), T.untyped],
|
|
93
|
-
request_options: T.nilable(T::Hash[Symbol, T.untyped])
|
|
94
|
-
).returns(Net::HTTPRequest)
|
|
95
|
-
end
|
|
96
|
-
def patch_request(path:, auth: false, body: {}, params: {}, request_options: nil); end
|
|
97
|
-
|
|
98
|
-
sig do
|
|
99
|
-
params(
|
|
100
|
-
path: String,
|
|
101
|
-
auth: T::Boolean,
|
|
102
|
-
body: T.nilable(T::Hash[T.any(String, Symbol), T.untyped]),
|
|
103
|
-
params: T::Hash[T.any(String, Symbol), T.untyped],
|
|
104
|
-
request_options: T.nilable(T::Hash[Symbol, T.untyped])
|
|
105
|
-
).returns(Net::HTTPRequest)
|
|
106
|
-
end
|
|
107
|
-
def delete_request(path:, auth: false, body: nil, params: {}, request_options: nil); end
|
|
108
|
-
|
|
109
|
-
sig do
|
|
110
|
-
params(
|
|
111
|
-
method: Symbol,
|
|
112
|
-
path: String,
|
|
113
|
-
auth: T::Boolean,
|
|
114
|
-
params: T::Hash[T.any(String, Symbol), T.untyped],
|
|
115
|
-
body: T.nilable(T::Hash[T.any(String, Symbol), T.untyped]),
|
|
116
|
-
request_options: T::Hash[Symbol, T.untyped]
|
|
117
|
-
).returns(Net::HTTPResponse)
|
|
118
|
-
end
|
|
119
|
-
def request(method:, path:, auth: true, params: {}, body: nil, request_options: {}); end
|
|
120
|
-
|
|
121
|
-
sig do
|
|
122
|
-
params(
|
|
123
|
-
request: Net::HTTPRequest,
|
|
124
|
-
request_options: T.nilable(T::Hash[Symbol, T.untyped])
|
|
125
|
-
).returns(Net::HTTPResponse)
|
|
126
|
-
end
|
|
127
|
-
def execute_request(request:, request_options: nil); end
|
|
128
|
-
|
|
129
|
-
sig { void }
|
|
130
|
-
def shutdown; end
|
|
131
|
-
end
|
|
132
|
-
end
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
-
|
|
5
|
-
# typed: strong
|
|
6
|
-
|
|
7
|
-
module WorkOS
|
|
8
|
-
class Configuration
|
|
9
|
-
sig { returns(T.nilable(String)) }
|
|
10
|
-
def api_key; end
|
|
11
|
-
|
|
12
|
-
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
13
|
-
def api_key=(value); end
|
|
14
|
-
|
|
15
|
-
sig { returns(T.nilable(String)) }
|
|
16
|
-
def base_url; end
|
|
17
|
-
|
|
18
|
-
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
19
|
-
def base_url=(value); end
|
|
20
|
-
|
|
21
|
-
sig { returns(T.nilable(String)) }
|
|
22
|
-
def client_id; end
|
|
23
|
-
|
|
24
|
-
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
25
|
-
def client_id=(value); end
|
|
26
|
-
|
|
27
|
-
sig { returns(T.nilable(Integer)) }
|
|
28
|
-
def timeout; end
|
|
29
|
-
|
|
30
|
-
sig { params(value: T.nilable(Integer)).returns(T.nilable(Integer)) }
|
|
31
|
-
def timeout=(value); end
|
|
32
|
-
|
|
33
|
-
sig { returns(T.nilable(Integer)) }
|
|
34
|
-
def max_retries; end
|
|
35
|
-
|
|
36
|
-
sig { params(value: T.nilable(Integer)).returns(T.nilable(Integer)) }
|
|
37
|
-
def max_retries=(value); end
|
|
38
|
-
|
|
39
|
-
sig { returns(T.nilable(Logger)) }
|
|
40
|
-
def logger; end
|
|
41
|
-
|
|
42
|
-
sig { params(value: T.nilable(Logger)).returns(T.nilable(Logger)) }
|
|
43
|
-
def logger=(value); end
|
|
44
|
-
|
|
45
|
-
sig { returns(T.nilable(Symbol)) }
|
|
46
|
-
def log_level; end
|
|
47
|
-
|
|
48
|
-
sig { params(value: T.nilable(Symbol)).returns(T.nilable(Symbol)) }
|
|
49
|
-
def log_level=(value); end
|
|
50
|
-
|
|
51
|
-
sig { void }
|
|
52
|
-
def initialize; end
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
class << self
|
|
56
|
-
sig { params(block: T.proc.params(config: WorkOS::Configuration).void).void }
|
|
57
|
-
def configure(&block); end
|
|
58
|
-
|
|
59
|
-
sig { returns(WorkOS::Configuration) }
|
|
60
|
-
def configuration; end
|
|
61
|
-
|
|
62
|
-
sig { returns(WorkOS::Client) }
|
|
63
|
-
def client; end
|
|
64
|
-
|
|
65
|
-
sig { void }
|
|
66
|
-
def reset_client; end
|
|
67
|
-
end
|
|
68
|
-
end
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
-
|
|
5
|
-
# typed: strong
|
|
6
|
-
|
|
7
|
-
module WorkOS
|
|
8
|
-
module Encryptors
|
|
9
|
-
class AesGcm
|
|
10
|
-
SEAL_VERSION = T.let(0x01, Integer)
|
|
11
|
-
|
|
12
|
-
sig { params(data: T.any(String, T::Hash[T.untyped, T.untyped]), key: String).returns(String) }
|
|
13
|
-
def seal(data, key); end
|
|
14
|
-
|
|
15
|
-
sig { params(sealed: String, key: String).returns(T.any(T::Hash[String, T.untyped], String)) }
|
|
16
|
-
def unseal(sealed, key); end
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
data/rbi/workos/errors.rbi
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
-
|
|
5
|
-
# typed: strong
|
|
6
|
-
|
|
7
|
-
module WorkOS
|
|
8
|
-
class Error < StandardError
|
|
9
|
-
sig { returns(T.nilable(Integer)) }
|
|
10
|
-
def http_status; end
|
|
11
|
-
|
|
12
|
-
sig { returns(T.nilable(String)) }
|
|
13
|
-
def request_id; end
|
|
14
|
-
|
|
15
|
-
sig { returns(T.nilable(String)) }
|
|
16
|
-
def code; end
|
|
17
|
-
|
|
18
|
-
sig { returns(T.nilable(T::Hash[String, T.untyped])) }
|
|
19
|
-
def body; end
|
|
20
|
-
|
|
21
|
-
sig do
|
|
22
|
-
params(
|
|
23
|
-
message: String,
|
|
24
|
-
http_status: T.nilable(Integer),
|
|
25
|
-
request_id: T.nilable(String),
|
|
26
|
-
code: T.nilable(String),
|
|
27
|
-
body: T.nilable(T::Hash[String, T.untyped])
|
|
28
|
-
).void
|
|
29
|
-
end
|
|
30
|
-
def initialize(message:, http_status: nil, request_id: nil, code: nil, body: nil); end
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
class APIError < Error; end
|
|
34
|
-
class APIConnectionError < Error; end
|
|
35
|
-
class AuthenticationError < APIError; end
|
|
36
|
-
class ForbiddenRequestError < APIError; end
|
|
37
|
-
class IdempotencyError < APIError; end
|
|
38
|
-
class InvalidRequestError < APIError; end
|
|
39
|
-
class NotFoundError < APIError; end
|
|
40
|
-
class RateLimitExceededError < APIError; end
|
|
41
|
-
class UnprocessableEntityError < APIError; end
|
|
42
|
-
class SignatureVerificationError < Error; end
|
|
43
|
-
end
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
-
|
|
5
|
-
# typed: strong
|
|
6
|
-
|
|
7
|
-
module WorkOS
|
|
8
|
-
module HashProvider
|
|
9
|
-
sig { returns(T::Hash[String, T.untyped]) }
|
|
10
|
-
def to_h; end
|
|
11
|
-
|
|
12
|
-
sig { params(args: T.untyped).returns(String) }
|
|
13
|
-
def to_json(*args); end
|
|
14
|
-
|
|
15
|
-
sig { returns(String) }
|
|
16
|
-
def inspect; end
|
|
17
|
-
end
|
|
18
|
-
end
|
data/rbi/workos/passwordless.rbi
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
-
|
|
5
|
-
# typed: strong
|
|
6
|
-
|
|
7
|
-
module WorkOS
|
|
8
|
-
class Passwordless
|
|
9
|
-
class PasswordlessSession < T::Struct
|
|
10
|
-
const :id, T.nilable(String)
|
|
11
|
-
const :email, T.nilable(String)
|
|
12
|
-
const :expires_at, T.nilable(String)
|
|
13
|
-
const :link, T.nilable(String)
|
|
14
|
-
const :object, T.nilable(String)
|
|
15
|
-
|
|
16
|
-
sig { params(hash: T::Hash[String, T.untyped]).returns(WorkOS::Passwordless::PasswordlessSession) }
|
|
17
|
-
def self.from_hash(hash); end
|
|
18
|
-
|
|
19
|
-
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
20
|
-
def to_h; end
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
sig { params(client: WorkOS::Client).void }
|
|
24
|
-
def initialize(client); end
|
|
25
|
-
|
|
26
|
-
sig do
|
|
27
|
-
params(
|
|
28
|
-
email: String,
|
|
29
|
-
type: String,
|
|
30
|
-
redirect_uri: T.nilable(String),
|
|
31
|
-
state: T.nilable(String),
|
|
32
|
-
connection: T.nilable(String),
|
|
33
|
-
expires_in: T.nilable(Integer),
|
|
34
|
-
request_options: T::Hash[Symbol, T.untyped]
|
|
35
|
-
).returns(WorkOS::Passwordless::PasswordlessSession)
|
|
36
|
-
end
|
|
37
|
-
def create_session(email:, type: "MagicLink", redirect_uri: nil, state: nil, connection: nil, expires_in: nil, request_options: {}); end
|
|
38
|
-
|
|
39
|
-
sig do
|
|
40
|
-
params(
|
|
41
|
-
session_id: String,
|
|
42
|
-
request_options: T::Hash[Symbol, T.untyped]
|
|
43
|
-
).returns(T::Hash[String, T.untyped])
|
|
44
|
-
end
|
|
45
|
-
def send_session(session_id, request_options: {}); end
|
|
46
|
-
end
|
|
47
|
-
end
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
-
|
|
5
|
-
# typed: strong
|
|
6
|
-
|
|
7
|
-
module WorkOS
|
|
8
|
-
module PublicClient
|
|
9
|
-
sig { params(client_id: String, opts: T.untyped).returns(WorkOS::Client) }
|
|
10
|
-
def self.create(client_id:, **opts); end
|
|
11
|
-
end
|
|
12
|
-
end
|
data/rbi/workos/session.rbi
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
-
|
|
5
|
-
# typed: strong
|
|
6
|
-
|
|
7
|
-
module WorkOS
|
|
8
|
-
class Session
|
|
9
|
-
sig { returns(T.nilable(String)) }
|
|
10
|
-
def seal_data; end
|
|
11
|
-
|
|
12
|
-
sig { returns(String) }
|
|
13
|
-
def cookie_password; end
|
|
14
|
-
|
|
15
|
-
sig do
|
|
16
|
-
params(
|
|
17
|
-
manager: WorkOS::SessionManager,
|
|
18
|
-
seal_data: T.nilable(String),
|
|
19
|
-
cookie_password: String
|
|
20
|
-
).void
|
|
21
|
-
end
|
|
22
|
-
def initialize(manager, seal_data:, cookie_password:); end
|
|
23
|
-
|
|
24
|
-
sig do
|
|
25
|
-
params(
|
|
26
|
-
include_expired: T::Boolean,
|
|
27
|
-
claim_extractor: T.nilable(T.proc.params(decoded: T::Hash[String, T.untyped]).returns(T.nilable(T::Hash[Symbol, T.untyped])))
|
|
28
|
-
).returns(T.any(WorkOS::SessionManager::AuthSuccess, WorkOS::SessionManager::AuthError))
|
|
29
|
-
end
|
|
30
|
-
def authenticate(include_expired: false, &claim_extractor); end
|
|
31
|
-
|
|
32
|
-
sig do
|
|
33
|
-
params(
|
|
34
|
-
organization_id: T.nilable(String),
|
|
35
|
-
cookie_password: T.nilable(String)
|
|
36
|
-
).returns(T.any(WorkOS::SessionManager::RefreshSuccess, WorkOS::SessionManager::RefreshError))
|
|
37
|
-
end
|
|
38
|
-
def refresh(organization_id: nil, cookie_password: nil); end
|
|
39
|
-
|
|
40
|
-
sig { params(return_to: T.nilable(String)).returns(String) }
|
|
41
|
-
def get_logout_url(return_to: nil); end
|
|
42
|
-
end
|
|
43
|
-
end
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
-
|
|
5
|
-
# typed: strong
|
|
6
|
-
|
|
7
|
-
module WorkOS
|
|
8
|
-
module Types
|
|
9
|
-
class ApiResponse
|
|
10
|
-
sig { returns(Integer) }
|
|
11
|
-
def http_status; end
|
|
12
|
-
|
|
13
|
-
sig { returns(T::Hash[String, String]) }
|
|
14
|
-
def http_headers; end
|
|
15
|
-
|
|
16
|
-
sig { returns(T.nilable(String)) }
|
|
17
|
-
def request_id; end
|
|
18
|
-
|
|
19
|
-
sig do
|
|
20
|
-
params(
|
|
21
|
-
http_status: Integer,
|
|
22
|
-
http_headers: T::Hash[String, String],
|
|
23
|
-
request_id: T.nilable(String)
|
|
24
|
-
).returns(WorkOS::Types::ApiResponse)
|
|
25
|
-
end
|
|
26
|
-
def self.new(http_status:, http_headers:, request_id:); end
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
end
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
-
|
|
5
|
-
# typed: strong
|
|
6
|
-
|
|
7
|
-
module WorkOS
|
|
8
|
-
module Types
|
|
9
|
-
class BaseModel
|
|
10
|
-
include WorkOS::HashProvider
|
|
11
|
-
|
|
12
|
-
sig { returns(T.nilable(WorkOS::Types::ApiResponse)) }
|
|
13
|
-
def last_response; end
|
|
14
|
-
|
|
15
|
-
sig { params(value: T.nilable(WorkOS::Types::ApiResponse)).returns(T.nilable(WorkOS::Types::ApiResponse)) }
|
|
16
|
-
def last_response=(value); end
|
|
17
|
-
|
|
18
|
-
sig { params(json: T.any(String, T::Hash[T.untyped, T.untyped])).returns(T::Hash[Symbol, T.untyped]) }
|
|
19
|
-
def self.normalize(json); end
|
|
20
|
-
end
|
|
21
|
-
end
|
|
22
|
-
end
|