diff --git a/.fern/metadata.json b/.fern/metadata.json new file mode 100644 index 00000000..a206543f --- /dev/null +++ b/.fern/metadata.json @@ -0,0 +1,14 @@ +{ + "cliVersion": "5.20.1", + "generatorName": "fernapi/fern-ruby-sdk", + "generatorVersion": "1.1.13", + "generatorConfig": { + "clientModuleName": "Management", + "package-name": "auth0", + "useProvidedDefaults": true, + "enableWireTests": true, + "useDefaultRequestParameterValues": true + }, + "originGitCommit": "219914accde9916f411f553a3e3eb35a8478eaaf", + "sdkVersion": "6.0.0" +} \ No newline at end of file diff --git a/lib/auth0.rb b/lib/auth0.rb index 56391204..62392c1d 100644 --- a/lib/auth0.rb +++ b/lib/auth0.rb @@ -149,6 +149,8 @@ require_relative "auth0/types/attack_protection_update_captcha_recaptcha_v2" require_relative "auth0/types/authentication_method_type_enum" require_relative "auth0/types/authentication_type_enum" +require_relative "auth0/types/bad_request_schema_error" +require_relative "auth0/types/bad_request_schema" require_relative "auth0/types/bot_detection_ip_address_or_cidr_block" require_relative "auth0/types/bot_detection_allowlist" require_relative "auth0/types/bot_detection_challenge_policy_password_flow_enum" @@ -163,6 +165,11 @@ require_relative "auth0/types/branding_page_background" require_relative "auth0/types/branding_colors" require_relative "auth0/types/branding_font" +require_relative "auth0/types/branding_login_display_enum" +require_relative "auth0/types/branding_phone_formatting_enum" +require_relative "auth0/types/branding_phone_masking_enum" +require_relative "auth0/types/branding_phone_display" +require_relative "auth0/types/branding_identifiers" require_relative "auth0/types/branding_theme_borders_buttons_style_enum" require_relative "auth0/types/branding_theme_borders_inputs_style_enum" require_relative "auth0/types/branding_theme_borders" @@ -276,6 +283,8 @@ require_relative "auth0/types/refresh_token_rotation_type_enum" require_relative "auth0/types/client_refresh_token_configuration" require_relative "auth0/types/client_session_transfer_allowed_authentication_methods_enum" +require_relative "auth0/types/client_session_transfer_delegation_device_binding_enum" +require_relative "auth0/types/client_session_transfer_delegation_configuration" require_relative "auth0/types/client_session_transfer_device_binding_enum" require_relative "auth0/types/client_session_transfer_configuration" require_relative "auth0/types/client_signed_request_object_with_credential_id" @@ -338,6 +347,8 @@ require_relative "auth0/types/connection_api_enable_users" require_relative "auth0/types/connection_api_enable_users_google_apps" require_relative "auth0/types/connection_app_domain_azure_ad" +require_relative "auth0/types/connection_assertion_decryption_algorithm_profile_enum" +require_relative "auth0/types/connection_assertion_decryption_settings" require_relative "auth0/types/default_method_email_identifier_enum" require_relative "auth0/types/connection_attribute_identifier" require_relative "auth0/types/connection_attribute_map_attributes" @@ -617,6 +628,7 @@ require_relative "auth0/types/connection_send_back_channel_nonce" require_relative "auth0/types/connection_token_endpoint_auth_method_enum" require_relative "auth0/types/connection_token_endpoint_auth_signing_alg_enum" +require_relative "auth0/types/connection_token_endpoint_jwtca_aud_format_enum_oidc" require_relative "auth0/types/connection_options_common_oidc" require_relative "auth0/types/connection_options_idpinitiated_saml" require_relative "auth0/types/connection_protocol_binding_enum_saml" @@ -1711,6 +1723,7 @@ require_relative "auth0/types/create_phone_template_response_content" require_relative "auth0/types/create_phone_template_test_notification_response_content" require_relative "auth0/types/create_public_key_device_credential_response_content" +require_relative "auth0/types/resource_server_authorization_policy" require_relative "auth0/types/resource_server_consent_policy_enum" require_relative "auth0/types/resource_server_proof_of_possession_mechanism_enum" require_relative "auth0/types/resource_server_proof_of_possession_required_for_enum" @@ -1758,6 +1771,7 @@ require_relative "auth0/types/user_attribute_profile_user_id" require_relative "auth0/types/create_user_attribute_profile_response_content" require_relative "auth0/types/created_user_authentication_method_type_enum" +require_relative "auth0/types/credential_device_type_enum" require_relative "auth0/types/preferred_authentication_method_enum" require_relative "auth0/types/user_authentication_method_properties_enum" require_relative "auth0/types/user_authentication_method_properties" @@ -1816,9 +1830,341 @@ require_relative "auth0/types/email_provider_name_enum" require_relative "auth0/types/email_specific_provider_settings_with_additional_properties" require_relative "auth0/types/encryption_key" +require_relative "auth0/types/event_stream_cloud_event_a0purpose_enum" +require_relative "auth0/types/event_stream_cloud_event_context_client_metadata" +require_relative "auth0/types/event_stream_cloud_event_context_client" +require_relative "auth0/types/event_stream_cloud_event_context_connection" +require_relative "auth0/types/event_stream_cloud_event_context_request_geo" +require_relative "auth0/types/event_stream_cloud_event_context_request" +require_relative "auth0/types/event_stream_cloud_event_context_tenant" +require_relative "auth0/types/event_stream_cloud_event_context" +require_relative "auth0/types/event_stream_cloud_event_error_code_enum" +require_relative "auth0/types/event_stream_cloud_event_error_detail" +require_relative "auth0/types/event_stream_cloud_event_error_message" +require_relative "auth0/types/event_stream_cloud_event_error_message_type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_created_cloud_event_type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_created_object0type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_created_object0" +require_relative "auth0/types/event_stream_cloud_event_group_created_object1type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_created_object1" +require_relative "auth0/types/event_stream_cloud_event_group_created_object2type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_created_object2" +require_relative "auth0/types/event_stream_cloud_event_group_created_object" +require_relative "auth0/types/event_stream_cloud_event_group_created_data" +require_relative "auth0/types/event_stream_cloud_event_group_created_cloud_event" +require_relative "auth0/types/event_stream_cloud_event_group_created" +require_relative "auth0/types/event_stream_cloud_event_group_created_type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_deleted_cloud_event_type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_deleted_object0type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_deleted_object0" +require_relative "auth0/types/event_stream_cloud_event_group_deleted_object1type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_deleted_object1" +require_relative "auth0/types/event_stream_cloud_event_group_deleted_object2type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_deleted_object2" +require_relative "auth0/types/event_stream_cloud_event_group_deleted_object" +require_relative "auth0/types/event_stream_cloud_event_group_deleted_data" +require_relative "auth0/types/event_stream_cloud_event_group_deleted_cloud_event" +require_relative "auth0/types/event_stream_cloud_event_group_deleted" +require_relative "auth0/types/event_stream_cloud_event_group_deleted_type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_member_added_cloud_event_type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_member_added_object_group0type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_member_added_object_group0" +require_relative "auth0/types/event_stream_cloud_event_group_member_added_object_group1type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_member_added_object_group1" +require_relative "auth0/types/event_stream_cloud_event_group_member_added_object_group2type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_member_added_object_group2" +require_relative "auth0/types/event_stream_cloud_event_group_member_added_object_group" +require_relative "auth0/types/event_stream_cloud_event_group_member_added_object_member0member_type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_member_added_object_member0" +require_relative "auth0/types/event_stream_cloud_event_group_member_added_object_member1member_type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_member_added_object_member1" +require_relative "auth0/types/event_stream_cloud_event_group_member_added_object_member" +require_relative "auth0/types/event_stream_cloud_event_group_member_added_object" +require_relative "auth0/types/event_stream_cloud_event_group_member_added_data" +require_relative "auth0/types/event_stream_cloud_event_group_member_added_cloud_event" +require_relative "auth0/types/event_stream_cloud_event_group_member_added" +require_relative "auth0/types/event_stream_cloud_event_group_member_added_type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_member_deleted_cloud_event_type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_member_deleted_object_group0type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_member_deleted_object_group0" +require_relative "auth0/types/event_stream_cloud_event_group_member_deleted_object_group1type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_member_deleted_object_group1" +require_relative "auth0/types/event_stream_cloud_event_group_member_deleted_object_group2type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_member_deleted_object_group2" +require_relative "auth0/types/event_stream_cloud_event_group_member_deleted_object_group" +require_relative "auth0/types/event_stream_cloud_event_group_member_deleted_object_member0member_type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_member_deleted_object_member0" +require_relative "auth0/types/event_stream_cloud_event_group_member_deleted_object_member1member_type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_member_deleted_object_member1" +require_relative "auth0/types/event_stream_cloud_event_group_member_deleted_object_member" +require_relative "auth0/types/event_stream_cloud_event_group_member_deleted_object" +require_relative "auth0/types/event_stream_cloud_event_group_member_deleted_data" +require_relative "auth0/types/event_stream_cloud_event_group_member_deleted_cloud_event" +require_relative "auth0/types/event_stream_cloud_event_group_member_deleted" +require_relative "auth0/types/event_stream_cloud_event_group_member_deleted_type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_role_assigned_cloud_event_type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_role_assigned_object_group0type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_role_assigned_object_group0" +require_relative "auth0/types/event_stream_cloud_event_group_role_assigned_object_group1type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_role_assigned_object_group1" +require_relative "auth0/types/event_stream_cloud_event_group_role_assigned_object_group2type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_role_assigned_object_group2" +require_relative "auth0/types/event_stream_cloud_event_group_role_assigned_object_group" +require_relative "auth0/types/event_stream_cloud_event_group_role_assigned_object_role" +require_relative "auth0/types/event_stream_cloud_event_group_role_assigned_object" +require_relative "auth0/types/event_stream_cloud_event_group_role_assigned_data" +require_relative "auth0/types/event_stream_cloud_event_group_role_assigned_cloud_event" +require_relative "auth0/types/event_stream_cloud_event_group_role_assigned" +require_relative "auth0/types/event_stream_cloud_event_group_role_assigned_type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_role_deleted_cloud_event_type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_role_deleted_object_group0type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_role_deleted_object_group0" +require_relative "auth0/types/event_stream_cloud_event_group_role_deleted_object_group1type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_role_deleted_object_group1" +require_relative "auth0/types/event_stream_cloud_event_group_role_deleted_object_group2type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_role_deleted_object_group2" +require_relative "auth0/types/event_stream_cloud_event_group_role_deleted_object_group" +require_relative "auth0/types/event_stream_cloud_event_group_role_deleted_object_role" +require_relative "auth0/types/event_stream_cloud_event_group_role_deleted_object" +require_relative "auth0/types/event_stream_cloud_event_group_role_deleted_data" +require_relative "auth0/types/event_stream_cloud_event_group_role_deleted_cloud_event" +require_relative "auth0/types/event_stream_cloud_event_group_role_deleted" +require_relative "auth0/types/event_stream_cloud_event_group_role_deleted_type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_updated_cloud_event_type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_updated_object0type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_updated_object0" +require_relative "auth0/types/event_stream_cloud_event_group_updated_object1type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_updated_object1" +require_relative "auth0/types/event_stream_cloud_event_group_updated_object2type_enum" +require_relative "auth0/types/event_stream_cloud_event_group_updated_object2" +require_relative "auth0/types/event_stream_cloud_event_group_updated_object" +require_relative "auth0/types/event_stream_cloud_event_group_updated_data" +require_relative "auth0/types/event_stream_cloud_event_group_updated_cloud_event" +require_relative "auth0/types/event_stream_cloud_event_group_updated" +require_relative "auth0/types/event_stream_cloud_event_group_updated_type_enum" +require_relative "auth0/types/event_stream_cloud_event_offset_only_message" +require_relative "auth0/types/event_stream_cloud_event_offset_only_message_type_enum" +require_relative "auth0/types/event_stream_cloud_event_org_connection_added_cloud_event_type_enum" +require_relative "auth0/types/event_stream_cloud_event_org_connection_added_object_connection" +require_relative "auth0/types/event_stream_cloud_event_org_connection_added_object_organization" +require_relative "auth0/types/event_stream_cloud_event_org_connection_added_object" +require_relative "auth0/types/event_stream_cloud_event_org_connection_added_data" +require_relative "auth0/types/event_stream_cloud_event_org_connection_added_cloud_event" +require_relative "auth0/types/event_stream_cloud_event_org_connection_added" +require_relative "auth0/types/event_stream_cloud_event_org_connection_added_type_enum" +require_relative "auth0/types/event_stream_cloud_event_org_connection_removed_cloud_event_type_enum" +require_relative "auth0/types/event_stream_cloud_event_org_connection_removed_object_connection" +require_relative "auth0/types/event_stream_cloud_event_org_connection_removed_object_organization" +require_relative "auth0/types/event_stream_cloud_event_org_connection_removed_object" +require_relative "auth0/types/event_stream_cloud_event_org_connection_removed_data" +require_relative "auth0/types/event_stream_cloud_event_org_connection_removed_cloud_event" +require_relative "auth0/types/event_stream_cloud_event_org_connection_removed" +require_relative "auth0/types/event_stream_cloud_event_org_connection_removed_type_enum" +require_relative "auth0/types/event_stream_cloud_event_org_connection_updated_cloud_event_type_enum" +require_relative "auth0/types/event_stream_cloud_event_org_connection_updated_object_connection" +require_relative "auth0/types/event_stream_cloud_event_org_connection_updated_object_organization" +require_relative "auth0/types/event_stream_cloud_event_org_connection_updated_object" +require_relative "auth0/types/event_stream_cloud_event_org_connection_updated_data" +require_relative "auth0/types/event_stream_cloud_event_org_connection_updated_cloud_event" +require_relative "auth0/types/event_stream_cloud_event_org_connection_updated" +require_relative "auth0/types/event_stream_cloud_event_org_connection_updated_type_enum" +require_relative "auth0/types/event_stream_cloud_event_org_created_cloud_event_type_enum" +require_relative "auth0/types/event_stream_cloud_event_org_created_object_branding_colors" +require_relative "auth0/types/event_stream_cloud_event_org_created_object_branding" +require_relative "auth0/types/event_stream_cloud_event_org_created_object_metadata" +require_relative "auth0/types/event_stream_cloud_event_org_created_object" +require_relative "auth0/types/event_stream_cloud_event_org_created_data" +require_relative "auth0/types/event_stream_cloud_event_org_created_cloud_event" +require_relative "auth0/types/event_stream_cloud_event_org_created" +require_relative "auth0/types/event_stream_cloud_event_org_created_type_enum" +require_relative "auth0/types/event_stream_cloud_event_org_deleted_cloud_event_type_enum" +require_relative "auth0/types/event_stream_cloud_event_org_deleted_object_metadata" +require_relative "auth0/types/event_stream_cloud_event_org_deleted_object" +require_relative "auth0/types/event_stream_cloud_event_org_deleted_data" +require_relative "auth0/types/event_stream_cloud_event_org_deleted_cloud_event" +require_relative "auth0/types/event_stream_cloud_event_org_deleted" +require_relative "auth0/types/event_stream_cloud_event_org_deleted_type_enum" +require_relative "auth0/types/event_stream_cloud_event_org_group_role_assigned_cloud_event_type_enum" +require_relative "auth0/types/event_stream_cloud_event_org_group_role_assigned_object_group0type_enum" +require_relative "auth0/types/event_stream_cloud_event_org_group_role_assigned_object_group0" +require_relative "auth0/types/event_stream_cloud_event_org_group_role_assigned_object_group1type_enum" +require_relative "auth0/types/event_stream_cloud_event_org_group_role_assigned_object_group1" +require_relative "auth0/types/event_stream_cloud_event_org_group_role_assigned_object_group2type_enum" +require_relative "auth0/types/event_stream_cloud_event_org_group_role_assigned_object_group2" +require_relative "auth0/types/event_stream_cloud_event_org_group_role_assigned_object_group" +require_relative "auth0/types/event_stream_cloud_event_org_group_role_assigned_object_organization" +require_relative "auth0/types/event_stream_cloud_event_org_group_role_assigned_object_role" +require_relative "auth0/types/event_stream_cloud_event_org_group_role_assigned_object" +require_relative "auth0/types/event_stream_cloud_event_org_group_role_assigned_data" +require_relative "auth0/types/event_stream_cloud_event_org_group_role_assigned_cloud_event" +require_relative "auth0/types/event_stream_cloud_event_org_group_role_assigned" +require_relative "auth0/types/event_stream_cloud_event_org_group_role_assigned_type_enum" +require_relative "auth0/types/event_stream_cloud_event_org_group_role_deleted_cloud_event_type_enum" +require_relative "auth0/types/event_stream_cloud_event_org_group_role_deleted_object_group0type_enum" +require_relative "auth0/types/event_stream_cloud_event_org_group_role_deleted_object_group0" +require_relative "auth0/types/event_stream_cloud_event_org_group_role_deleted_object_group1type_enum" +require_relative "auth0/types/event_stream_cloud_event_org_group_role_deleted_object_group1" +require_relative "auth0/types/event_stream_cloud_event_org_group_role_deleted_object_group2type_enum" +require_relative "auth0/types/event_stream_cloud_event_org_group_role_deleted_object_group2" +require_relative "auth0/types/event_stream_cloud_event_org_group_role_deleted_object_group" +require_relative "auth0/types/event_stream_cloud_event_org_group_role_deleted_object_organization" +require_relative "auth0/types/event_stream_cloud_event_org_group_role_deleted_object_role" +require_relative "auth0/types/event_stream_cloud_event_org_group_role_deleted_object" +require_relative "auth0/types/event_stream_cloud_event_org_group_role_deleted_data" +require_relative "auth0/types/event_stream_cloud_event_org_group_role_deleted_cloud_event" +require_relative "auth0/types/event_stream_cloud_event_org_group_role_deleted" +require_relative "auth0/types/event_stream_cloud_event_org_group_role_deleted_type_enum" +require_relative "auth0/types/event_stream_cloud_event_org_member_added_cloud_event_type_enum" +require_relative "auth0/types/event_stream_cloud_event_org_member_added_object_organization" +require_relative "auth0/types/event_stream_cloud_event_org_member_added_object_user" +require_relative "auth0/types/event_stream_cloud_event_org_member_added_object" +require_relative "auth0/types/event_stream_cloud_event_org_member_added_data" +require_relative "auth0/types/event_stream_cloud_event_org_member_added_cloud_event" +require_relative "auth0/types/event_stream_cloud_event_org_member_added" +require_relative "auth0/types/event_stream_cloud_event_org_member_added_type_enum" +require_relative "auth0/types/event_stream_cloud_event_org_member_deleted_cloud_event_type_enum" +require_relative "auth0/types/event_stream_cloud_event_org_member_deleted_object_organization" +require_relative "auth0/types/event_stream_cloud_event_org_member_deleted_object_user" +require_relative "auth0/types/event_stream_cloud_event_org_member_deleted_object" +require_relative "auth0/types/event_stream_cloud_event_org_member_deleted_data" +require_relative "auth0/types/event_stream_cloud_event_org_member_deleted_cloud_event" +require_relative "auth0/types/event_stream_cloud_event_org_member_deleted" +require_relative "auth0/types/event_stream_cloud_event_org_member_deleted_type_enum" +require_relative "auth0/types/event_stream_cloud_event_org_member_role_assigned_cloud_event_type_enum" +require_relative "auth0/types/event_stream_cloud_event_org_member_role_assigned_object_organization" +require_relative "auth0/types/event_stream_cloud_event_org_member_role_assigned_object_role" +require_relative "auth0/types/event_stream_cloud_event_org_member_role_assigned_object_user" +require_relative "auth0/types/event_stream_cloud_event_org_member_role_assigned_object" +require_relative "auth0/types/event_stream_cloud_event_org_member_role_assigned_data" +require_relative "auth0/types/event_stream_cloud_event_org_member_role_assigned_cloud_event" +require_relative "auth0/types/event_stream_cloud_event_org_member_role_assigned" +require_relative "auth0/types/event_stream_cloud_event_org_member_role_assigned_type_enum" +require_relative "auth0/types/event_stream_cloud_event_org_member_role_deleted_cloud_event_type_enum" +require_relative "auth0/types/event_stream_cloud_event_org_member_role_deleted_object_organization" +require_relative "auth0/types/event_stream_cloud_event_org_member_role_deleted_object_role" +require_relative "auth0/types/event_stream_cloud_event_org_member_role_deleted_object_user" +require_relative "auth0/types/event_stream_cloud_event_org_member_role_deleted_object" +require_relative "auth0/types/event_stream_cloud_event_org_member_role_deleted_data" +require_relative "auth0/types/event_stream_cloud_event_org_member_role_deleted_cloud_event" +require_relative "auth0/types/event_stream_cloud_event_org_member_role_deleted" +require_relative "auth0/types/event_stream_cloud_event_org_member_role_deleted_type_enum" +require_relative "auth0/types/event_stream_cloud_event_org_updated_cloud_event_type_enum" +require_relative "auth0/types/event_stream_cloud_event_org_updated_object_branding_colors" +require_relative "auth0/types/event_stream_cloud_event_org_updated_object_branding" +require_relative "auth0/types/event_stream_cloud_event_org_updated_object_metadata" +require_relative "auth0/types/event_stream_cloud_event_org_updated_object" +require_relative "auth0/types/event_stream_cloud_event_org_updated_data" +require_relative "auth0/types/event_stream_cloud_event_org_updated_cloud_event" +require_relative "auth0/types/event_stream_cloud_event_org_updated" +require_relative "auth0/types/event_stream_cloud_event_org_updated_type_enum" +require_relative "auth0/types/event_stream_cloud_event_user_created_cloud_event_type_enum" +require_relative "auth0/types/event_stream_cloud_event_user_created_object_app_metadata" +require_relative "auth0/types/event_stream_cloud_event_user_created_object_identities_item_custom_is_social_enum" +require_relative "auth0/types/event_stream_cloud_event_user_created_object_identities_item_custom_profile_data" +require_relative "auth0/types/event_stream_cloud_event_user_created_object_identities_item_custom_provider_enum" +require_relative "auth0/types/event_stream_cloud_event_user_created_object_identities_item_custom_user_id" +require_relative "auth0/types/event_stream_cloud_event_user_created_object_identities_item_custom" +require_relative "auth0/types/event_stream_cloud_event_user_created_object_identities_item_database_is_social_enum" +require_relative "auth0/types/event_stream_cloud_event_user_created_object_identities_item_database_profile_data" +require_relative "auth0/types/event_stream_cloud_event_user_created_object_identities_item_database_provider_enum" +require_relative "auth0/types/event_stream_cloud_event_user_created_object_identities_item_database_user_id" +require_relative "auth0/types/event_stream_cloud_event_user_created_object_identities_item_database" +require_relative "auth0/types/event_stream_cloud_event_user_created_object_identities_item_enterprise_is_social_enum" +require_relative "auth0/types/event_stream_cloud_event_user_created_object_identities_item_enterprise_profile_data" +require_relative "auth0/types/event_stream_cloud_event_user_created_object_identities_item_enterprise_provider_enum" +require_relative "auth0/types/event_stream_cloud_event_user_created_object_identities_item_enterprise_user_id" +require_relative "auth0/types/event_stream_cloud_event_user_created_object_identities_item_enterprise" +require_relative "auth0/types/event_stream_cloud_event_user_created_object_identities_item_passwordless_is_social_enum" +require_relative "auth0/types/event_stream_cloud_event_user_created_object_identities_item_passwordless_profile_data" +require_relative "auth0/types/event_stream_cloud_event_user_created_object_identities_item_passwordless_provider_enum" +require_relative "auth0/types/event_stream_cloud_event_user_created_object_identities_item_passwordless_user_id" +require_relative "auth0/types/event_stream_cloud_event_user_created_object_identities_item_passwordless" +require_relative "auth0/types/event_stream_cloud_event_user_created_object_identities_item_social_is_social_enum" +require_relative "auth0/types/event_stream_cloud_event_user_created_object_identities_item_social_profile_data" +require_relative "auth0/types/event_stream_cloud_event_user_created_object_identities_item_social_provider_enum" +require_relative "auth0/types/event_stream_cloud_event_user_created_object_identities_item_social_user_id" +require_relative "auth0/types/event_stream_cloud_event_user_created_object_identities_item_social" +require_relative "auth0/types/event_stream_cloud_event_user_created_object_identities_item" +require_relative "auth0/types/event_stream_cloud_event_user_created_object_user_metadata" +require_relative "auth0/types/event_stream_cloud_event_user_created_object" +require_relative "auth0/types/event_stream_cloud_event_user_created_data" +require_relative "auth0/types/event_stream_cloud_event_user_created_cloud_event" +require_relative "auth0/types/event_stream_cloud_event_user_created" +require_relative "auth0/types/event_stream_cloud_event_user_created_type_enum" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_cloud_event_type_enum" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_object_app_metadata" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_custom_is_social_enum" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_custom_profile_data" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_custom_provider_enum" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_custom_user_id" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_custom" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_database_is_social_enum" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_database_profile_data" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_database_provider_enum" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_database_user_id" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_database" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise_is_social_enum" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise_profile_data" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise_provider_enum" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise_user_id" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless_is_social_enum" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless_profile_data" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless_provider_enum" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless_user_id" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_social_is_social_enum" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_social_profile_data" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_social_provider_enum" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_social_user_id" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_social" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_object_identities_item" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_object_user_metadata" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_object" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_data" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_cloud_event" +require_relative "auth0/types/event_stream_cloud_event_user_deleted" +require_relative "auth0/types/event_stream_cloud_event_user_deleted_type_enum" +require_relative "auth0/types/event_stream_cloud_event_user_updated_cloud_event_type_enum" +require_relative "auth0/types/event_stream_cloud_event_user_updated_object_app_metadata" +require_relative "auth0/types/event_stream_cloud_event_user_updated_object_identities_item_custom_is_social_enum" +require_relative "auth0/types/event_stream_cloud_event_user_updated_object_identities_item_custom_profile_data" +require_relative "auth0/types/event_stream_cloud_event_user_updated_object_identities_item_custom_provider_enum" +require_relative "auth0/types/event_stream_cloud_event_user_updated_object_identities_item_custom_user_id" +require_relative "auth0/types/event_stream_cloud_event_user_updated_object_identities_item_custom" +require_relative "auth0/types/event_stream_cloud_event_user_updated_object_identities_item_database_is_social_enum" +require_relative "auth0/types/event_stream_cloud_event_user_updated_object_identities_item_database_profile_data" +require_relative "auth0/types/event_stream_cloud_event_user_updated_object_identities_item_database_provider_enum" +require_relative "auth0/types/event_stream_cloud_event_user_updated_object_identities_item_database_user_id" +require_relative "auth0/types/event_stream_cloud_event_user_updated_object_identities_item_database" +require_relative "auth0/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise_is_social_enum" +require_relative "auth0/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise_profile_data" +require_relative "auth0/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise_provider_enum" +require_relative "auth0/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise_user_id" +require_relative "auth0/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise" +require_relative "auth0/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless_is_social_enum" +require_relative "auth0/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless_profile_data" +require_relative "auth0/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless_provider_enum" +require_relative "auth0/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless_user_id" +require_relative "auth0/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless" +require_relative "auth0/types/event_stream_cloud_event_user_updated_object_identities_item_social_is_social_enum" +require_relative "auth0/types/event_stream_cloud_event_user_updated_object_identities_item_social_profile_data" +require_relative "auth0/types/event_stream_cloud_event_user_updated_object_identities_item_social_provider_enum" +require_relative "auth0/types/event_stream_cloud_event_user_updated_object_identities_item_social_user_id" +require_relative "auth0/types/event_stream_cloud_event_user_updated_object_identities_item_social" +require_relative "auth0/types/event_stream_cloud_event_user_updated_object_identities_item" +require_relative "auth0/types/event_stream_cloud_event_user_updated_object_user_metadata" +require_relative "auth0/types/event_stream_cloud_event_user_updated_object" +require_relative "auth0/types/event_stream_cloud_event_user_updated_data" +require_relative "auth0/types/event_stream_cloud_event_user_updated_cloud_event" +require_relative "auth0/types/event_stream_cloud_event_user_updated" +require_relative "auth0/types/event_stream_cloud_event_user_updated_type_enum" require_relative "auth0/types/event_stream_delivery" require_relative "auth0/types/event_stream_destination_patch" require_relative "auth0/types/event_stream_response_content" +require_relative "auth0/types/event_stream_subscribe_events_event_type_enum" +require_relative "auth0/types/event_stream_subscribe_events_event_type_param" +require_relative "auth0/types/event_stream_subscribe_events_response_content" require_relative "auth0/types/event_stream_test_event_type_enum" require_relative "auth0/types/express_configuration_or_null" require_relative "auth0/types/federated_connection_token_set" @@ -1826,6 +2172,8 @@ require_relative "auth0/types/flow_execution_summary" require_relative "auth0/types/flow_summary" require_relative "auth0/types/flows_vault_connection_summary" +require_relative "auth0/types/forbidden_schema_error" +require_relative "auth0/types/forbidden_schema" require_relative "auth0/types/form_ending_node_nullable" require_relative "auth0/types/form_languages_nullable" require_relative "auth0/types/form_messages_nullable" @@ -2192,6 +2540,10 @@ require_relative "auth0/types/test_action_response_content" require_relative "auth0/types/test_custom_domain_response_content" require_relative "auth0/types/test_event_data_content" +require_relative "auth0/types/too_many_requests_schema_error" +require_relative "auth0/types/too_many_requests_schema" +require_relative "auth0/types/unauthorized_schema_error" +require_relative "auth0/types/unauthorized_schema" require_relative "auth0/types/update_action_bindings_response_content" require_relative "auth0/types/update_action_module_response_content" require_relative "auth0/types/update_action_response_content" @@ -2201,6 +2553,11 @@ require_relative "auth0/types/update_branding_page_background" require_relative "auth0/types/update_branding_colors" require_relative "auth0/types/update_branding_font" +require_relative "auth0/types/update_branding_login_display_enum" +require_relative "auth0/types/update_branding_phone_formatting_enum" +require_relative "auth0/types/update_branding_phone_masking_enum" +require_relative "auth0/types/update_branding_phone_display" +require_relative "auth0/types/update_branding_identifiers" require_relative "auth0/types/update_branding_phone_provider_response_content" require_relative "auth0/types/update_branding_response_content" require_relative "auth0/types/update_branding_theme_response_content" @@ -2369,6 +2726,8 @@ require_relative "auth0/event_streams/types/list_event_streams_request_parameters" require_relative "auth0/event_streams/types/update_event_stream_request_content" require_relative "auth0/event_streams/types/create_event_stream_test_event_request_content" +require_relative "auth0/events/client" +require_relative "auth0/events/types/subscribe_events_request_parameters" require_relative "auth0/flows/client" require_relative "auth0/flows/types/list_flows_request_parameters" require_relative "auth0/flows/types/create_flow_request_content" @@ -2407,6 +2766,7 @@ require_relative "auth0/prompts/types/update_settings_request_content" require_relative "auth0/refresh_tokens/client" require_relative "auth0/refresh_tokens/types/get_refresh_tokens_request_parameters" +require_relative "auth0/refresh_tokens/types/revoke_refresh_tokens_request_content" require_relative "auth0/refresh_tokens/types/update_refresh_token_request_content" require_relative "auth0/resource_servers/client" require_relative "auth0/resource_servers/types/list_resource_server_request_parameters" diff --git a/lib/auth0/branding/types/update_branding_request_content.rb b/lib/auth0/branding/types/update_branding_request_content.rb index 76c7ca9e..bd31794b 100644 --- a/lib/auth0/branding/types/update_branding_request_content.rb +++ b/lib/auth0/branding/types/update_branding_request_content.rb @@ -7,6 +7,7 @@ class UpdateBrandingRequestContent < Internal::Types::Model field :colors, -> { Auth0::Types::UpdateBrandingColors }, optional: true, nullable: false field :favicon_url, -> { String }, optional: true, nullable: false field :logo_url, -> { String }, optional: true, nullable: false + field :identifiers, -> { Auth0::Types::UpdateBrandingIdentifiers }, optional: true, nullable: false field :font, -> { Auth0::Types::UpdateBrandingFont }, optional: true, nullable: false end end diff --git a/lib/auth0/events/client.rb b/lib/auth0/events/client.rb new file mode 100644 index 00000000..4c5adf25 --- /dev/null +++ b/lib/auth0/events/client.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true + +module Auth0 + module Events + class Client + # @param client [Auth0::Internal::Http::RawClient] + # + # @return [void] + def initialize(client:) + @client = client + end + + # Subscribe to events via Server-Sent Events (SSE) + # + # @param request_options [Hash] + # @param params [Hash] + # @option request_options [String] :base_url + # @option request_options [Hash{String => Object}] :additional_headers + # @option request_options [Hash{String => Object}] :additional_query_parameters + # @option request_options [Hash{String => Object}] :additional_body_parameters + # @option request_options [Integer] :timeout_in_seconds + # @option params [String, nil] :from + # @option params [String, nil] :from_timestamp + # @option params [Auth0::Types::EventStreamSubscribeEventsEventTypeEnum, nil] :event_type + # + # @return [untyped] + def subscribe(request_options: {}, **params) + params = Auth0::Internal::Types::Utils.normalize_keys(params) + query_param_names = %i[from from_timestamp event_type] + query_params = {} + query_params["from"] = params[:from] if params.key?(:from) + query_params["from_timestamp"] = params[:from_timestamp] if params.key?(:from_timestamp) + query_params["event_type"] = params[:event_type] if params.key?(:event_type) + params.except(*query_param_names) + + request = Auth0::Internal::JSON::Request.new( + base_url: request_options[:base_url], + method: "GET", + path: "events", + query: query_params, + request_options: request_options + ) + begin + response = @client.send(request) + rescue Net::HTTPRequestTimeout + raise Auth0::Errors::TimeoutError + end + code = response.code.to_i + return if code.between?(200, 299) + + error_class = Auth0::Errors::ResponseError.subclass_for_code(code) + raise error_class.new(response.body, code: code) + end + end + end +end diff --git a/lib/auth0/events/types/subscribe_events_request_parameters.rb b/lib/auth0/events/types/subscribe_events_request_parameters.rb new file mode 100644 index 00000000..827ccad5 --- /dev/null +++ b/lib/auth0/events/types/subscribe_events_request_parameters.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Events + module Types + class SubscribeEventsRequestParameters < Internal::Types::Model + field :from, -> { String }, optional: true, nullable: false + field :from_timestamp, -> { String }, optional: true, nullable: false + field :event_type, -> { Auth0::Types::EventStreamSubscribeEventsEventTypeEnum }, optional: true, nullable: false + end + end + end +end diff --git a/lib/auth0/groups/client.rb b/lib/auth0/groups/client.rb index 063e8441..d412f155 100644 --- a/lib/auth0/groups/client.rb +++ b/lib/auth0/groups/client.rb @@ -22,6 +22,7 @@ def initialize(client:) # @option params [String, nil] :connection_id # @option params [String, nil] :name # @option params [String, nil] :external_id + # @option params [String, nil] :search # @option params [String, nil] :fields # @option params [Boolean, nil] :include_fields # @option params [String, nil] :from @@ -30,11 +31,12 @@ def initialize(client:) # @return [Auth0::Types::ListGroupsPaginatedResponseContent] def list(request_options: {}, **params) params = Auth0::Internal::Types::Utils.normalize_keys(params) - query_param_names = %i[connection_id name external_id fields include_fields from take] + query_param_names = %i[connection_id name external_id search fields include_fields from take] query_params = {} query_params["connection_id"] = params[:connection_id] if params.key?(:connection_id) query_params["name"] = params[:name] if params.key?(:name) query_params["external_id"] = params[:external_id] if params.key?(:external_id) + query_params["search"] = params[:search] if params.key?(:search) query_params["fields"] = params[:fields] if params.key?(:fields) query_params["include_fields"] = params[:include_fields] if params.key?(:include_fields) query_params["from"] = params[:from] if params.key?(:from) diff --git a/lib/auth0/groups/types/list_groups_request_parameters.rb b/lib/auth0/groups/types/list_groups_request_parameters.rb index a53149fd..cf87a218 100644 --- a/lib/auth0/groups/types/list_groups_request_parameters.rb +++ b/lib/auth0/groups/types/list_groups_request_parameters.rb @@ -7,6 +7,7 @@ class ListGroupsRequestParameters < Internal::Types::Model field :connection_id, -> { String }, optional: true, nullable: false field :name, -> { String }, optional: true, nullable: false field :external_id, -> { String }, optional: true, nullable: false + field :search, -> { String }, optional: true, nullable: false field :fields, -> { String }, optional: true, nullable: false field :include_fields, -> { Internal::Types::Boolean }, optional: true, nullable: false field :from, -> { String }, optional: true, nullable: false diff --git a/lib/auth0/log_streams/client.rb b/lib/auth0/log_streams/client.rb index 73e61d19..98e7558c 100644 --- a/lib/auth0/log_streams/client.rb +++ b/lib/auth0/log_streams/client.rb @@ -10,72 +10,77 @@ def initialize(client:) @client = client end - # Retrieve details on log streams. - #
Sample Response
[{
-      # 	"id": "string",
-      # 	"name": "string",
-      # 	"type": "eventbridge",
-      # 	"status": "active|paused|suspended",
-      # 	"sink": {
-      # 		"awsAccountId": "string",
-      # 		"awsRegion": "string",
-      # 		"awsPartnerEventSource": "string"
-      # 	}
+      # Retrieve details on [log streams](https://auth0.com/docs/logs/streams).
+      #
+      # **Sample Response**
+      #
+      # ```json
+      # [{
+      #   "id": "string",
+      #   "name": "string",
+      #   "type": "eventbridge",
+      #   "status": "active|paused|suspended",
+      #   "sink": {
+      #     "awsAccountId": "string",
+      #     "awsRegion": "string",
+      #     "awsPartnerEventSource": "string"
+      #   }
       # }, {
-      # 	"id": "string",
-      # 	"name": "string",
-      # 	"type": "http",
-      # 	"status": "active|paused|suspended",
-      # 	"sink": {
-      # 		"httpContentFormat": "JSONLINES|JSONARRAY",
-      # 		"httpContentType": "string",
-      # 		"httpEndpoint": "string",
-      # 		"httpAuthorization": "string"
-      # 	}
+      #   "id": "string",
+      #   "name": "string",
+      #   "type": "http",
+      #   "status": "active|paused|suspended",
+      #   "sink": {
+      #     "httpContentFormat": "JSONLINES|JSONARRAY",
+      #     "httpContentType": "string",
+      #     "httpEndpoint": "string",
+      #     "httpAuthorization": "string"
+      #   }
       # },
       # {
-      # 	"id": "string",
-      # 	"name": "string",
-      # 	"type": "eventgrid",
-      # 	"status": "active|paused|suspended",
-      # 	"sink": {
-      # 		"azureSubscriptionId": "string",
-      # 		"azureResourceGroup": "string",
-      # 		"azureRegion": "string",
-      # 		"azurePartnerTopic": "string"
-      # 	}
+      #   "id": "string",
+      #   "name": "string",
+      #   "type": "eventgrid",
+      #   "status": "active|paused|suspended",
+      #   "sink": {
+      #     "azureSubscriptionId": "string",
+      #     "azureResourceGroup": "string",
+      #     "azureRegion": "string",
+      #     "azurePartnerTopic": "string"
+      #   }
       # },
       # {
-      # 	"id": "string",
-      # 	"name": "string",
-      # 	"type": "splunk",
-      # 	"status": "active|paused|suspended",
-      # 	"sink": {
-      # 		"splunkDomain": "string",
-      # 		"splunkToken": "string",
-      # 		"splunkPort": "string",
-      # 		"splunkSecure": "boolean"
-      # 	}
+      #   "id": "string",
+      #   "name": "string",
+      #   "type": "splunk",
+      #   "status": "active|paused|suspended",
+      #   "sink": {
+      #     "splunkDomain": "string",
+      #     "splunkToken": "string",
+      #     "splunkPort": "string",
+      #     "splunkSecure": "boolean"
+      #   }
       # },
       # {
-      # 	"id": "string",
-      # 	"name": "string",
-      # 	"type": "sumo",
-      # 	"status": "active|paused|suspended",
-      # 	"sink": {
-      # 		"sumoSourceAddress": "string",
-      # 	}
+      #   "id": "string",
+      #   "name": "string",
+      #   "type": "sumo",
+      #   "status": "active|paused|suspended",
+      #   "sink": {
+      #     "sumoSourceAddress": "string"
+      #   }
       # },
       # {
-      # 	"id": "string",
-      # 	"name": "string",
-      # 	"type": "datadog",
-      # 	"status": "active|paused|suspended",
-      # 	"sink": {
-      # 		"datadogRegion": "string",
-      # 		"datadogApiKey": "string"
-      # 	}
-      # }]
+ # "id": "string", + # "name": "string", + # "type": "datadog", + # "status": "active|paused|suspended", + # "sink": { + # "datadogRegion": "string", + # "datadogApiKey": "string" + # } + # }] + # ``` # # @param request_options [Hash] # @param params [Hash] @@ -107,139 +112,202 @@ def list(request_options: {}, **params) end # Create a log stream. - #
Log Stream Types
The type of log stream being created determines the properties required - # in the sink payload. - #
HTTP Stream
For an http Stream, the sink properties are listed in the payload - # below - # Request:
{
-      # 	"name": "string",
-      # 	"type": "http",
-      # 	"sink": {
-      # 		"httpEndpoint": "string",
-      # 		"httpContentType": "string",
-      # 		"httpContentFormat": "JSONLINES|JSONARRAY",
-      # 		"httpAuthorization": "string"
-      # 	}
-      # }
- # Response:
{
-      # 	"id": "string",
-      # 	"name": "string",
-      # 	"type": "http",
-      # 	"status": "active",
-      # 	"sink": {
-      # 		"httpEndpoint": "string",
-      # 		"httpContentType": "string",
-      # 		"httpContentFormat": "JSONLINES|JSONARRAY",
-      # 		"httpAuthorization": "string"
-      # 	}
-      # }
- #
Amazon EventBridge Stream
For an eventbridge Stream, the sink properties are - # listed in the payload below - # Request:
{
-      # 	"name": "string",
-      # 	"type": "eventbridge",
-      # 	"sink": {
-      # 		"awsRegion": "string",
-      # 		"awsAccountId": "string"
-      # 	}
-      # }
- # The response will include an additional field awsPartnerEventSource in the sink: - #
{
-      # 	"id": "string",
-      # 	"name": "string",
-      # 	"type": "eventbridge",
-      # 	"status": "active",
-      # 	"sink": {
-      # 		"awsAccountId": "string",
-      # 		"awsRegion": "string",
-      # 		"awsPartnerEventSource": "string"
-      # 	}
-      # }
- #
Azure Event Grid Stream
For an Azure Event Grid Stream, the sink properties - # are listed in the payload below - # Request:
{
-      # 	"name": "string",
-      # 	"type": "eventgrid",
-      # 	"sink": {
-      # 		"azureSubscriptionId": "string",
-      # 		"azureResourceGroup": "string",
-      # 		"azureRegion": "string"
-      # 	}
-      # }
- # Response:
{
-      # 	"id": "string",
-      # 	"name": "string",
-      # 	"type": "http",
-      # 	"status": "active",
-      # 	"sink": {
-      # 		"azureSubscriptionId": "string",
-      # 		"azureResourceGroup": "string",
-      # 		"azureRegion": "string",
-      # 		"azurePartnerTopic": "string"
-      # 	}
-      # }
- #
Datadog Stream
For a Datadog Stream, the sink properties are listed in the - # payload below - # Request:
{
-      # 	"name": "string",
-      # 	"type": "datadog",
-      # 	"sink": {
-      # 		"datadogRegion": "string",
-      # 		"datadogApiKey": "string"
-      # 	}
-      # }
- # Response:
{
-      # 	"id": "string",
-      # 	"name": "string",
-      # 	"type": "datadog",
-      # 	"status": "active",
-      # 	"sink": {
-      # 		"datadogRegion": "string",
-      # 		"datadogApiKey": "string"
-      # 	}
-      # }
- #
Splunk Stream
For a Splunk Stream, the sink properties are listed in the - # payload below - # Request:
{
-      # 	"name": "string",
-      # 	"type": "splunk",
-      # 	"sink": {
-      # 		"splunkDomain": "string",
-      # 		"splunkToken": "string",
-      # 		"splunkPort": "string",
-      # 		"splunkSecure": "boolean"
-      # 	}
-      # }
- # Response:
{
-      # 	"id": "string",
-      # 	"name": "string",
-      # 	"type": "splunk",
-      # 	"status": "active",
-      # 	"sink": {
-      # 		"splunkDomain": "string",
-      # 		"splunkToken": "string",
-      # 		"splunkPort": "string",
-      # 		"splunkSecure": "boolean"
-      # 	}
-      # }
- #
Sumo Logic Stream
For a Sumo Logic Stream, the sink properties are listed in - # the payload below - # Request:
{
-      # 	"name": "string",
-      # 	"type": "sumo",
-      # 	"sink": {
-      # 		"sumoSourceAddress": "string",
-      # 	}
-      # }
- # Response:
{
-      # 	"id": "string",
-      # 	"name": "string",
-      # 	"type": "sumo",
-      # 	"status": "active",
-      # 	"sink": {
-      # 		"sumoSourceAddress": "string",
-      # 	}
-      # }
+ # + # **Log Stream Types** + # + # The `type` of log stream being created determines the properties required in the `sink` payload. + # + # **HTTP Stream** + # + # For an `http` Stream, the `sink` properties are listed in the payload below. + # + # **Request:** + # ```json + # { + # "name": "string", + # "type": "http", + # "sink": { + # "httpEndpoint": "string", + # "httpContentType": "string", + # "httpContentFormat": "JSONLINES|JSONARRAY", + # "httpAuthorization": "string" + # } + # } + # ``` + # + # **Response:** + # ```json + # { + # "id": "string", + # "name": "string", + # "type": "http", + # "status": "active", + # "sink": { + # "httpEndpoint": "string", + # "httpContentType": "string", + # "httpContentFormat": "JSONLINES|JSONARRAY", + # "httpAuthorization": "string" + # } + # } + # ``` + # + # **Amazon EventBridge Stream** + # + # For an `eventbridge` Stream, the `sink` properties are listed in the payload below. + # + # **Request:** + # ```json + # { + # "name": "string", + # "type": "eventbridge", + # "sink": { + # "awsRegion": "string", + # "awsAccountId": "string" + # } + # } + # ``` + # + # The response will include an additional field `awsPartnerEventSource` in the `sink`: + # + # **Response:** + # ```json + # { + # "id": "string", + # "name": "string", + # "type": "eventbridge", + # "status": "active", + # "sink": { + # "awsAccountId": "string", + # "awsRegion": "string", + # "awsPartnerEventSource": "string" + # } + # } + # ``` + # + # **Azure Event Grid Stream** + # + # For an `Azure Event Grid` Stream, the `sink` properties are listed in the payload below. + # + # **Request:** + # ```json + # { + # "name": "string", + # "type": "eventgrid", + # "sink": { + # "azureSubscriptionId": "string", + # "azureResourceGroup": "string", + # "azureRegion": "string" + # } + # } + # ``` + # + # **Response:** + # ```json + # { + # "id": "string", + # "name": "string", + # "type": "http", + # "status": "active", + # "sink": { + # "azureSubscriptionId": "string", + # "azureResourceGroup": "string", + # "azureRegion": "string", + # "azurePartnerTopic": "string" + # } + # } + # ``` + # + # **Datadog Stream** + # + # For a `Datadog` Stream, the `sink` properties are listed in the payload below. + # + # **Request:** + # ```json + # { + # "name": "string", + # "type": "datadog", + # "sink": { + # "datadogRegion": "string", + # "datadogApiKey": "string" + # } + # } + # ``` + # + # **Response:** + # ```json + # { + # "id": "string", + # "name": "string", + # "type": "datadog", + # "status": "active", + # "sink": { + # "datadogRegion": "string", + # "datadogApiKey": "string" + # } + # } + # ``` + # + # **Splunk Stream** + # + # For a `Splunk` Stream, the `sink` properties are listed in the payload below. + # + # **Request:** + # ```json + # { + # "name": "string", + # "type": "splunk", + # "sink": { + # "splunkDomain": "string", + # "splunkToken": "string", + # "splunkPort": "string", + # "splunkSecure": "boolean" + # } + # } + # ``` + # + # **Response:** + # ```json + # { + # "id": "string", + # "name": "string", + # "type": "splunk", + # "status": "active", + # "sink": { + # "splunkDomain": "string", + # "splunkToken": "string", + # "splunkPort": "string", + # "splunkSecure": "boolean" + # } + # } + # ``` + # + # **Sumo Logic Stream** + # + # For a `Sumo Logic` Stream, the `sink` properties are listed in the payload below. + # + # **Request:** + # ```json + # { + # "name": "string", + # "type": "sumo", + # "sink": { + # "sumoSourceAddress": "string" + # } + # } + # ``` + # + # **Response:** + # ```json + # { + # "id": "string", + # "name": "string", + # "type": "sumo", + # "status": "active", + # "sink": { + # "sumoSourceAddress": "string" + # } + # } + # ``` # # @param request_options [Hash] # @param params [Auth0::Types::CreateLogStreamRequestContent] @@ -274,107 +342,157 @@ def create(request_options: {}, **params) end # Retrieve a log stream configuration and status. - #
Sample responses
Amazon EventBridge Log Stream
{
-      # 	"id": "string",
-      # 	"name": "string",
-      # 	"type": "eventbridge",
-      # 	"status": "active|paused|suspended",
-      # 	"sink": {
-      # 		"awsAccountId": "string",
-      # 		"awsRegion": "string",
-      # 		"awsPartnerEventSource": "string"
-      # 	}
-      # }
HTTP Log Stream
{
-      # 	"id": "string",
-      # 	"name": "string",
-      # 	"type": "http",
-      # 	"status": "active|paused|suspended",
-      # 	"sink": {
-      # 		"httpContentFormat": "JSONLINES|JSONARRAY",
-      # 		"httpContentType": "string",
-      # 		"httpEndpoint": "string",
-      # 		"httpAuthorization": "string"
-      # 	}
-      # }
Datadog Log Stream
{
-      # 	"id": "string",
-      # 	"name": "string",
-      # 	"type": "datadog",
-      # 	"status": "active|paused|suspended",
-      # 	"sink": {
-      # 		"datadogRegion": "string",
-      # 		"datadogApiKey": "string"
-      # 	}
-      #
-      # }
Mixpanel
- # - # Request:
{
-      # 	  "name": "string",
-      # 	  "type": "mixpanel",
-      # 	  "sink": {
-      # 		"mixpanelRegion": "string", // "us" | "eu",
-      # 		"mixpanelProjectId": "string",
-      # 		"mixpanelServiceAccountUsername": "string",
-      # 		"mixpanelServiceAccountPassword": "string"
-      # 	  }
-      # 	} 
- # - # - # Response:
{
-      # 		"id": "string",
-      # 		"name": "string",
-      # 		"type": "mixpanel",
-      # 		"status": "active",
-      # 		"sink": {
-      # 		  "mixpanelRegion": "string", // "us" | "eu",
-      # 		  "mixpanelProjectId": "string",
-      # 		  "mixpanelServiceAccountUsername": "string",
-      # 		  "mixpanelServiceAccountPassword": "string" // the following is redacted on return
-      # 		}
-      # 	  } 
- # - #
Segment
- # - # Request:
 {
-      # 	  "name": "string",
-      # 	  "type": "segment",
-      # 	  "sink": {
-      # 		"segmentWriteKey": "string"
-      # 	  }
-      # 	}
- # - # Response:
{
-      # 	  "id": "string",
-      # 	  "name": "string",
-      # 	  "type": "segment",
-      # 	  "status": "active",
-      # 	  "sink": {
-      # 		"segmentWriteKey": "string"
-      # 	  }
-      # 	} 
- # - #
Splunk Log Stream
{
-      # 	"id": "string",
-      # 	"name": "string",
-      # 	"type": "splunk",
-      # 	"status": "active|paused|suspended",
-      # 	"sink": {
-      # 		"splunkDomain": "string",
-      # 		"splunkToken": "string",
-      # 		"splunkPort": "string",
-      # 		"splunkSecure": "boolean"
-      # 	}
-      # }
Sumo Logic Log Stream
{
-      # 	"id": "string",
-      # 	"name": "string",
-      # 	"type": "sumo",
-      # 	"status": "active|paused|suspended",
-      # 	"sink": {
-      # 		"sumoSourceAddress": "string",
-      # 	}
-      # }
Status
The status of a log stream maybe any of the following: - # 1. active - Stream is currently enabled. - # 2. paused - Stream is currently user disabled and will not attempt log delivery. - # 3. suspended - Stream is currently disabled because of errors and will not attempt log delivery. + # + # **Sample responses** + # + # **Amazon EventBridge Log Stream** + # + # ```json + # { + # "id": "string", + # "name": "string", + # "type": "eventbridge", + # "status": "active|paused|suspended", + # "sink": { + # "awsAccountId": "string", + # "awsRegion": "string", + # "awsPartnerEventSource": "string" + # } + # } + # ``` + # + # **HTTP Log Stream** + # + # ```json + # { + # "id": "string", + # "name": "string", + # "type": "http", + # "status": "active|paused|suspended", + # "sink": { + # "httpContentFormat": "JSONLINES|JSONARRAY", + # "httpContentType": "string", + # "httpEndpoint": "string", + # "httpAuthorization": "string" + # } + # } + # ``` + # + # **Datadog Log Stream** + # + # ```json + # { + # "id": "string", + # "name": "string", + # "type": "datadog", + # "status": "active|paused|suspended", + # "sink": { + # "datadogRegion": "string", + # "datadogApiKey": "string" + # } + # } + # ``` + # + # **Mixpanel** + # + # **Request:** + # + # ```json + # { + # "name": "string", + # "type": "mixpanel", + # "sink": { + # "mixpanelRegion": "string", + # "mixpanelProjectId": "string", + # "mixpanelServiceAccountUsername": "string", + # "mixpanelServiceAccountPassword": "string" + # } + # } + # ``` + # + # **Response:** + # + # ```json + # { + # "id": "string", + # "name": "string", + # "type": "mixpanel", + # "status": "active", + # "sink": { + # "mixpanelRegion": "string", + # "mixpanelProjectId": "string", + # "mixpanelServiceAccountUsername": "string", + # "mixpanelServiceAccountPassword": "string" + # } + # } + # ``` + # + # **Segment** + # + # **Request:** + # + # ```json + # { + # "name": "string", + # "type": "segment", + # "sink": { + # "segmentWriteKey": "string" + # } + # } + # ``` + # + # **Response:** + # + # ```json + # { + # "id": "string", + # "name": "string", + # "type": "segment", + # "status": "active", + # "sink": { + # "segmentWriteKey": "string" + # } + # } + # ``` + # + # **Splunk Log Stream** + # + # ```json + # { + # "id": "string", + # "name": "string", + # "type": "splunk", + # "status": "active|paused|suspended", + # "sink": { + # "splunkDomain": "string", + # "splunkToken": "string", + # "splunkPort": "string", + # "splunkSecure": "boolean" + # } + # } + # ``` + # + # **Sumo Logic Log Stream** + # + # ```json + # { + # "id": "string", + # "name": "string", + # "type": "sumo", + # "status": "active|paused|suspended", + # "sink": { + # "sumoSourceAddress": "string" + # } + # } + # ``` + # + # **Status** + # + # The `status` of a log stream maybe any of the following: + # + # 1. `active` - Stream is currently enabled. + # 2. `paused` - Stream is currently user disabled and will not attempt log delivery. + # 3. `suspended` - Stream is currently disabled because of errors and will not attempt log delivery. # # @param request_options [Hash] # @param params [Hash] @@ -441,42 +559,79 @@ def delete(request_options: {}, **params) end # Update a log stream. - #

Examples of how to use the PATCH endpoint.

The following fields may be updated in a PATCH operation: - # Note: For log streams of type eventbridge and - # eventgrid, updating the sink is not permitted. - #
Update the status of a log stream
{
-      # 	"status": "active|paused"
-      # }
- #
Update the name of a log stream
{
-      # 	"name": "string"
-      # }
- #
Update the sink properties of a stream of type http
{
+      #
+      # **Examples of how to use the PATCH endpoint.**
+      #
+      # The following fields may be updated in a PATCH operation:
+      #
+      # - name
+      # - status
+      # - sink
+      #
+      # Note: For log streams of type `eventbridge` and `eventgrid`, updating the `sink` is not permitted.
+      #
+      # **Update the status of a log stream**
+      #
+      # ```json
+      # {
+      #   "status": "active|paused"
+      # }
+      # ```
+      #
+      # **Update the name of a log stream**
+      #
+      # ```json
+      # {
+      #   "name": "string"
+      # }
+      # ```
+      #
+      # **Update the sink properties of a stream of type `http`**
+      #
+      # ```json
+      # {
       #   "sink": {
       #     "httpEndpoint": "string",
       #     "httpContentType": "string",
       #     "httpContentFormat": "JSONARRAY|JSONLINES",
       #     "httpAuthorization": "string"
       #   }
-      # }
- #
Update the sink properties of a stream of type datadog
{
+      # }
+      # ```
+      #
+      # **Update the sink properties of a stream of type `datadog`**
+      #
+      # ```json
+      # {
       #   "sink": {
-      # 		"datadogRegion": "string",
-      # 		"datadogApiKey": "string"
+      #     "datadogRegion": "string",
+      #     "datadogApiKey": "string"
       #   }
-      # }
- #
Update the sink properties of a stream of type splunk
{
+      # }
+      # ```
+      #
+      # **Update the sink properties of a stream of type `splunk`**
+      #
+      # ```json
+      # {
       #   "sink": {
       #     "splunkDomain": "string",
       #     "splunkToken": "string",
       #     "splunkPort": "string",
       #     "splunkSecure": "boolean"
       #   }
-      # }
- #
Update the sink properties of a stream of type sumo
{
+      # }
+      # ```
+      #
+      # **Update the sink properties of a stream of type `sumo`**
+      #
+      # ```json
+      # {
       #   "sink": {
       #     "sumoSourceAddress": "string"
       #   }
-      # }
+ # } + # ``` # # @param request_options [Hash] # @param params [Auth0::LogStreams::Types::UpdateLogStreamRequestContent] diff --git a/lib/auth0/refresh_tokens/client.rb b/lib/auth0/refresh_tokens/client.rb index 84d20e89..a0c22381 100644 --- a/lib/auth0/refresh_tokens/client.rb +++ b/lib/auth0/refresh_tokens/client.rb @@ -68,6 +68,38 @@ def list(request_options: {}, **params) end end + # Revoke refresh tokens in bulk by ID list, user, user+client, or client. + # + # @param request_options [Hash] + # @param params [Auth0::RefreshTokens::Types::RevokeRefreshTokensRequestContent] + # @option request_options [String] :base_url + # @option request_options [Hash{String => Object}] :additional_headers + # @option request_options [Hash{String => Object}] :additional_query_parameters + # @option request_options [Hash{String => Object}] :additional_body_parameters + # @option request_options [Integer] :timeout_in_seconds + # + # @return [untyped] + def revoke(request_options: {}, **params) + params = Auth0::Internal::Types::Utils.normalize_keys(params) + request = Auth0::Internal::JSON::Request.new( + base_url: request_options[:base_url], + method: "POST", + path: "refresh-tokens/revoke", + body: Auth0::RefreshTokens::Types::RevokeRefreshTokensRequestContent.new(params).to_h, + request_options: request_options + ) + begin + response = @client.send(request) + rescue Net::HTTPRequestTimeout + raise Auth0::Errors::TimeoutError + end + code = response.code.to_i + return if code.between?(200, 299) + + error_class = Auth0::Errors::ResponseError.subclass_for_code(code) + raise error_class.new(response.body, code: code) + end + # Retrieve refresh token information. # # @param request_options [Hash] diff --git a/lib/auth0/refresh_tokens/types/revoke_refresh_tokens_request_content.rb b/lib/auth0/refresh_tokens/types/revoke_refresh_tokens_request_content.rb new file mode 100644 index 00000000..a569dd18 --- /dev/null +++ b/lib/auth0/refresh_tokens/types/revoke_refresh_tokens_request_content.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Auth0 + module RefreshTokens + module Types + class RevokeRefreshTokensRequestContent < Internal::Types::Model + field :ids, -> { Internal::Types::Array[String] }, optional: true, nullable: false + field :user_id, -> { String }, optional: true, nullable: false + field :client_id, -> { String }, optional: true, nullable: false + field :audience, -> { String }, optional: true, nullable: false + end + end + end +end diff --git a/lib/auth0/resource_servers/types/create_resource_server_request_content.rb b/lib/auth0/resource_servers/types/create_resource_server_request_content.rb index 9ebb80f2..35a589dd 100644 --- a/lib/auth0/resource_servers/types/create_resource_server_request_content.rb +++ b/lib/auth0/resource_servers/types/create_resource_server_request_content.rb @@ -11,6 +11,7 @@ class CreateResourceServerRequestContent < Internal::Types::Model field :signing_secret, -> { String }, optional: true, nullable: false field :allow_offline_access, -> { Internal::Types::Boolean }, optional: true, nullable: false field :allow_online_access, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :allow_online_access_with_ephemeral_sessions, -> { Internal::Types::Boolean }, optional: true, nullable: false field :token_lifetime, -> { Integer }, optional: true, nullable: false field :token_dialect, -> { Auth0::Types::ResourceServerTokenDialectSchemaEnum }, optional: true, nullable: false field :skip_consent_for_verifiable_first_party_clients, -> { Internal::Types::Boolean }, optional: true, nullable: false @@ -20,6 +21,7 @@ class CreateResourceServerRequestContent < Internal::Types::Model field :authorization_details, -> { Internal::Types::Array[Object] }, optional: true, nullable: false field :proof_of_possession, -> { Auth0::Types::ResourceServerProofOfPossession }, optional: true, nullable: false field :subject_type_authorization, -> { Auth0::Types::ResourceServerSubjectTypeAuthorization }, optional: true, nullable: false + field :authorization_policy, -> { Auth0::Types::ResourceServerAuthorizationPolicy }, optional: true, nullable: false end end end diff --git a/lib/auth0/resource_servers/types/update_resource_server_request_content.rb b/lib/auth0/resource_servers/types/update_resource_server_request_content.rb index c1170ada..4469ad10 100644 --- a/lib/auth0/resource_servers/types/update_resource_server_request_content.rb +++ b/lib/auth0/resource_servers/types/update_resource_server_request_content.rb @@ -12,6 +12,7 @@ class UpdateResourceServerRequestContent < Internal::Types::Model field :skip_consent_for_verifiable_first_party_clients, -> { Internal::Types::Boolean }, optional: true, nullable: false field :allow_offline_access, -> { Internal::Types::Boolean }, optional: true, nullable: false field :allow_online_access, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :allow_online_access_with_ephemeral_sessions, -> { Internal::Types::Boolean }, optional: true, nullable: false field :token_lifetime, -> { Integer }, optional: true, nullable: false field :token_dialect, -> { Auth0::Types::ResourceServerTokenDialectSchemaEnum }, optional: true, nullable: false field :enforce_policies, -> { Internal::Types::Boolean }, optional: true, nullable: false @@ -20,6 +21,7 @@ class UpdateResourceServerRequestContent < Internal::Types::Model field :authorization_details, -> { Internal::Types::Array[Object] }, optional: true, nullable: false field :proof_of_possession, -> { Auth0::Types::ResourceServerProofOfPossession }, optional: true, nullable: false field :subject_type_authorization, -> { Auth0::Types::ResourceServerSubjectTypeAuthorization }, optional: true, nullable: false + field :authorization_policy, -> { Auth0::Types::ResourceServerAuthorizationPolicy }, optional: true, nullable: false end end end diff --git a/lib/auth0/self_service_profiles/custom_text/client.rb b/lib/auth0/self_service_profiles/custom_text/client.rb index a54f68ed..fdade57a 100644 --- a/lib/auth0/self_service_profiles/custom_text/client.rb +++ b/lib/auth0/self_service_profiles/custom_text/client.rb @@ -11,7 +11,8 @@ def initialize(client:) @client = client end - # Retrieves text customizations for a given self-service profile, language and Self Service SSO Flow page. + # Retrieves text customizations for a given self-service profile, language and Self-Service Enterprise + # Configuration flow page. # # @param request_options [Hash] # @param params [Hash] @@ -47,7 +48,8 @@ def list(request_options: {}, **params) end end - # Updates text customizations for a given self-service profile, language and Self Service SSO Flow page. + # Updates text customizations for a given self-service profile, language and Self-Service Enterprise + # Configuration flow page. # # @param request_options [Hash] # @param params [Auth0::Types::SetSelfServiceProfileCustomTextRequestContent] diff --git a/lib/auth0/self_service_profiles/sso_ticket/client.rb b/lib/auth0/self_service_profiles/sso_ticket/client.rb index a69c8101..7fc8cc7c 100644 --- a/lib/auth0/self_service_profiles/sso_ticket/client.rb +++ b/lib/auth0/self_service_profiles/sso_ticket/client.rb @@ -11,7 +11,8 @@ def initialize(client:) @client = client end - # Creates an SSO access ticket to initiate the Self Service SSO Flow using a self-service profile. + # Creates an access ticket to initiate the Self-Service Enterprise Configuration flow using a self-service + # profile. # # @param request_options [Hash] # @param params [Auth0::SelfServiceProfiles::SSOTicket::Types::CreateSelfServiceProfileSSOTicketRequestContent] @@ -50,12 +51,12 @@ def create(request_options: {}, **params) end end - # Revokes an SSO access ticket and invalidates associated sessions. The ticket will no longer be accepted to - # initiate a Self-Service SSO session. If any users have already started a session through this ticket, their - # session will be terminated. Clients should expect a `202 Accepted` response upon successful processing, - # indicating that the request has been acknowledged and that the revocation is underway but may not be fully - # completed at the time of response. If the specified ticket does not exist, a `202 Accepted` response is also - # returned, signaling that no further action is required. + # Revokes a Self-Service Enterprise Configuration access ticket and invalidates associated sessions. The ticket + # will no longer be accepted to initiate a Self-Service Enterprise Configuration session. If any users have + # already started a session through this ticket, their session will be terminated. Clients should expect a `202 + # Accepted` response upon successful processing, indicating that the request has been acknowledged and that the + # revocation is underway but may not be fully completed at the time of response. If the specified ticket does + # not exist, a `202 Accepted` response is also returned, signaling that no further action is required. # Clients should treat these `202` responses as an acknowledgment that the request has been accepted and is in # progress, even if the ticket was not found. # diff --git a/lib/auth0/types/bad_request_schema.rb b/lib/auth0/types/bad_request_schema.rb new file mode 100644 index 00000000..5f12140a --- /dev/null +++ b/lib/auth0/types/bad_request_schema.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Bad Request + class BadRequestSchema < Internal::Types::Model + field :message, -> { String }, optional: false, nullable: false + field :status_code, -> { String }, optional: false, nullable: false, api_name: "statusCode" + field :error, -> { Auth0::Types::BadRequestSchemaError }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/bad_request_schema_error.rb b/lib/auth0/types/bad_request_schema_error.rb new file mode 100644 index 00000000..16faa0eb --- /dev/null +++ b/lib/auth0/types/bad_request_schema_error.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module BadRequestSchemaError + extend Auth0::Internal::Types::Enum + + BAD_REQUEST = "Bad Request" + end + end +end diff --git a/lib/auth0/types/branding_identifiers.rb b/lib/auth0/types/branding_identifiers.rb new file mode 100644 index 00000000..aab63cf0 --- /dev/null +++ b/lib/auth0/types/branding_identifiers.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Identifier input display settings. + class BrandingIdentifiers < Internal::Types::Model + field :login_display, -> { Auth0::Types::BrandingLoginDisplayEnum }, optional: true, nullable: false + field :otp_autocomplete, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :phone_display, -> { Auth0::Types::BrandingPhoneDisplay }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/branding_login_display_enum.rb b/lib/auth0/types/branding_login_display_enum.rb new file mode 100644 index 00000000..97009a8c --- /dev/null +++ b/lib/auth0/types/branding_login_display_enum.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module BrandingLoginDisplayEnum + extend Auth0::Internal::Types::Enum + + UNIFIED = "unified" + SEPARATE = "separate" + end + end +end diff --git a/lib/auth0/types/branding_phone_display.rb b/lib/auth0/types/branding_phone_display.rb new file mode 100644 index 00000000..17ec998b --- /dev/null +++ b/lib/auth0/types/branding_phone_display.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Phone number display settings. + class BrandingPhoneDisplay < Internal::Types::Model + field :masking, -> { Auth0::Types::BrandingPhoneMaskingEnum }, optional: true, nullable: false + field :formatting, -> { Auth0::Types::BrandingPhoneFormattingEnum }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/branding_phone_formatting_enum.rb b/lib/auth0/types/branding_phone_formatting_enum.rb new file mode 100644 index 00000000..def76c5f --- /dev/null +++ b/lib/auth0/types/branding_phone_formatting_enum.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module BrandingPhoneFormattingEnum + extend Auth0::Internal::Types::Enum + + REGIONAL = "regional" + INTERNATIONAL = "international" + end + end +end diff --git a/lib/auth0/types/branding_phone_masking_enum.rb b/lib/auth0/types/branding_phone_masking_enum.rb new file mode 100644 index 00000000..4e4a3b52 --- /dev/null +++ b/lib/auth0/types/branding_phone_masking_enum.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module BrandingPhoneMaskingEnum + extend Auth0::Internal::Types::Enum + + SHOW_ALL = "show_all" + HIDE_COUNTRY_CODE = "hide_country_code" + MASK_DIGITS = "mask_digits" + end + end +end diff --git a/lib/auth0/types/client_my_organization_patch_configuration.rb b/lib/auth0/types/client_my_organization_patch_configuration.rb index bc6134c4..0bff9fb6 100644 --- a/lib/auth0/types/client_my_organization_patch_configuration.rb +++ b/lib/auth0/types/client_my_organization_patch_configuration.rb @@ -8,8 +8,6 @@ class ClientMyOrganizationPatchConfiguration < Internal::Types::Model field :user_attribute_profile_id, -> { String }, optional: true, nullable: false field :allowed_strategies, -> { Internal::Types::Array[Auth0::Types::ClientMyOrganizationConfigurationAllowedStrategiesEnum] }, optional: false, nullable: false field :connection_deletion_behavior, -> { Auth0::Types::ClientMyOrganizationDeletionBehaviorEnum }, optional: false, nullable: false - field :invitation_landing_client_id, -> { String }, optional: true, nullable: false - field :allowed_roles, -> { Internal::Types::Array[String] }, optional: true, nullable: false end end end diff --git a/lib/auth0/types/client_my_organization_post_configuration.rb b/lib/auth0/types/client_my_organization_post_configuration.rb index 093d345c..5d35b46e 100644 --- a/lib/auth0/types/client_my_organization_post_configuration.rb +++ b/lib/auth0/types/client_my_organization_post_configuration.rb @@ -8,8 +8,6 @@ class ClientMyOrganizationPostConfiguration < Internal::Types::Model field :user_attribute_profile_id, -> { String }, optional: true, nullable: false field :allowed_strategies, -> { Internal::Types::Array[Auth0::Types::ClientMyOrganizationConfigurationAllowedStrategiesEnum] }, optional: false, nullable: false field :connection_deletion_behavior, -> { Auth0::Types::ClientMyOrganizationDeletionBehaviorEnum }, optional: false, nullable: false - field :invitation_landing_client_id, -> { String }, optional: true, nullable: false - field :allowed_roles, -> { Internal::Types::Array[String] }, optional: true, nullable: false end end end diff --git a/lib/auth0/types/client_my_organization_response_configuration.rb b/lib/auth0/types/client_my_organization_response_configuration.rb index afb62a91..1ebde995 100644 --- a/lib/auth0/types/client_my_organization_response_configuration.rb +++ b/lib/auth0/types/client_my_organization_response_configuration.rb @@ -8,8 +8,6 @@ class ClientMyOrganizationResponseConfiguration < Internal::Types::Model field :user_attribute_profile_id, -> { String }, optional: true, nullable: false field :allowed_strategies, -> { Internal::Types::Array[Auth0::Types::ClientMyOrganizationConfigurationAllowedStrategiesEnum] }, optional: false, nullable: false field :connection_deletion_behavior, -> { Auth0::Types::ClientMyOrganizationDeletionBehaviorEnum }, optional: false, nullable: false - field :invitation_landing_client_id, -> { String }, optional: true, nullable: false - field :allowed_roles, -> { Internal::Types::Array[String] }, optional: true, nullable: false end end end diff --git a/lib/auth0/types/client_session_transfer_configuration.rb b/lib/auth0/types/client_session_transfer_configuration.rb index a1eb7e8f..0bde5734 100644 --- a/lib/auth0/types/client_session_transfer_configuration.rb +++ b/lib/auth0/types/client_session_transfer_configuration.rb @@ -10,6 +10,7 @@ class ClientSessionTransferConfiguration < Internal::Types::Model field :enforce_device_binding, -> { Auth0::Types::ClientSessionTransferDeviceBindingEnum }, optional: true, nullable: false field :allow_refresh_token, -> { Internal::Types::Boolean }, optional: true, nullable: false field :enforce_online_refresh_tokens, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :delegation, -> { Auth0::Types::ClientSessionTransferDelegationConfiguration }, optional: true, nullable: false end end end diff --git a/lib/auth0/types/client_session_transfer_delegation_configuration.rb b/lib/auth0/types/client_session_transfer_delegation_configuration.rb new file mode 100644 index 00000000..1f2e1528 --- /dev/null +++ b/lib/auth0/types/client_session_transfer_delegation_configuration.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Configuration for delegation (impersonation) access using Session Transfer Tokens + class ClientSessionTransferDelegationConfiguration < Internal::Types::Model + field :allow_delegated_access, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :enforce_device_binding, -> { Auth0::Types::ClientSessionTransferDelegationDeviceBindingEnum }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/client_session_transfer_delegation_device_binding_enum.rb b/lib/auth0/types/client_session_transfer_delegation_device_binding_enum.rb new file mode 100644 index 00000000..d45d8e97 --- /dev/null +++ b/lib/auth0/types/client_session_transfer_delegation_device_binding_enum.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module ClientSessionTransferDelegationDeviceBindingEnum + extend Auth0::Internal::Types::Enum + + IP = "ip" + ASN = "asn" + end + end +end diff --git a/lib/auth0/types/connection_assertion_decryption_algorithm_profile_enum.rb b/lib/auth0/types/connection_assertion_decryption_algorithm_profile_enum.rb new file mode 100644 index 00000000..add18109 --- /dev/null +++ b/lib/auth0/types/connection_assertion_decryption_algorithm_profile_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module ConnectionAssertionDecryptionAlgorithmProfileEnum + extend Auth0::Internal::Types::Enum + + V20261 = "v2026-1" + end + end +end diff --git a/lib/auth0/types/connection_assertion_decryption_settings.rb b/lib/auth0/types/connection_assertion_decryption_settings.rb new file mode 100644 index 00000000..f2ec1ede --- /dev/null +++ b/lib/auth0/types/connection_assertion_decryption_settings.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Settings for SAML assertion decryption. + class ConnectionAssertionDecryptionSettings < Internal::Types::Model + field :algorithm_profile, -> { Auth0::Types::ConnectionAssertionDecryptionAlgorithmProfileEnum }, optional: false, nullable: false + field :algorithm_exceptions, -> { Internal::Types::Array[String] }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/connection_options_common_oidc.rb b/lib/auth0/types/connection_options_common_oidc.rb index 130cd629..53a2d816 100644 --- a/lib/auth0/types/connection_options_common_oidc.rb +++ b/lib/auth0/types/connection_options_common_oidc.rb @@ -23,6 +23,7 @@ class ConnectionOptionsCommonOidc < Internal::Types::Model field :token_endpoint, -> { String }, optional: true, nullable: false field :token_endpoint_auth_method, -> { Auth0::Types::ConnectionTokenEndpointAuthMethodEnum }, optional: true, nullable: false field :token_endpoint_auth_signing_alg, -> { Auth0::Types::ConnectionTokenEndpointAuthSigningAlgEnum }, optional: true, nullable: false + field :token_endpoint_jwtca_aud_format, -> { Auth0::Types::ConnectionTokenEndpointJwtcaAudFormatEnumOidc }, optional: true, nullable: false field :upstream_params, -> { Internal::Types::Hash[String, Auth0::Types::ConnectionUpstreamAdditionalProperties] }, optional: true, nullable: false field :userinfo_endpoint, -> { String }, optional: true, nullable: false end diff --git a/lib/auth0/types/connection_options_common_saml.rb b/lib/auth0/types/connection_options_common_saml.rb index 277464bc..11f5f36d 100644 --- a/lib/auth0/types/connection_options_common_saml.rb +++ b/lib/auth0/types/connection_options_common_saml.rb @@ -4,6 +4,7 @@ module Auth0 module Types # Common options for SAML-based enterprise connections (shared by samlp and pingfederate). class ConnectionOptionsCommonSAML < Internal::Types::Model + field :assertion_decryption_settings, -> { Auth0::Types::ConnectionAssertionDecryptionSettings }, optional: true, nullable: false field :cert, -> { String }, optional: true, nullable: false field :decryption_key, -> { Auth0::Types::ConnectionDecryptionKeySAML }, optional: true, nullable: false, api_name: "decryptionKey" field :digest_algorithm, -> { Auth0::Types::ConnectionDigestAlgorithmEnumSAML }, optional: true, nullable: false, api_name: "digestAlgorithm" diff --git a/lib/auth0/types/connection_properties_options.rb b/lib/auth0/types/connection_properties_options.rb index 1815f258..21971fae 100644 --- a/lib/auth0/types/connection_properties_options.rb +++ b/lib/auth0/types/connection_properties_options.rb @@ -35,6 +35,11 @@ class ConnectionPropertiesOptions < Internal::Types::Model field :gateway_authentication, -> { Auth0::Types::ConnectionGatewayAuthentication }, optional: true, nullable: false field :federated_connections_access_tokens, -> { Auth0::Types::ConnectionFederatedConnectionsAccessTokens }, optional: true, nullable: false field :password_options, -> { Auth0::Types::ConnectionPasswordOptions }, optional: true, nullable: false + field :assertion_decryption_settings, -> { Auth0::Types::ConnectionAssertionDecryptionSettings }, optional: true, nullable: false + field :id_token_signed_response_algs, -> { Internal::Types::Array[Auth0::Types::ConnectionIDTokenSignedResponseAlgEnum] }, optional: true, nullable: false + field :token_endpoint_auth_method, -> { Auth0::Types::ConnectionTokenEndpointAuthMethodEnum }, optional: true, nullable: false + field :token_endpoint_auth_signing_alg, -> { Auth0::Types::ConnectionTokenEndpointAuthSigningAlgEnum }, optional: true, nullable: false + field :token_endpoint_jwtca_aud_format, -> { Auth0::Types::ConnectionTokenEndpointJwtcaAudFormatEnumOidc }, optional: true, nullable: false end end end diff --git a/lib/auth0/types/connection_token_endpoint_jwtca_aud_format_enum_oidc.rb b/lib/auth0/types/connection_token_endpoint_jwtca_aud_format_enum_oidc.rb new file mode 100644 index 00000000..f597f6d5 --- /dev/null +++ b/lib/auth0/types/connection_token_endpoint_jwtca_aud_format_enum_oidc.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module ConnectionTokenEndpointJwtcaAudFormatEnumOidc + extend Auth0::Internal::Types::Enum + + ISSUER = "issuer" + TOKEN_ENDPOINT = "token_endpoint" + end + end +end diff --git a/lib/auth0/types/create_resource_server_response_content.rb b/lib/auth0/types/create_resource_server_response_content.rb index a9080841..3c7d2d61 100644 --- a/lib/auth0/types/create_resource_server_response_content.rb +++ b/lib/auth0/types/create_resource_server_response_content.rb @@ -12,6 +12,7 @@ class CreateResourceServerResponseContent < Internal::Types::Model field :signing_secret, -> { String }, optional: true, nullable: false field :allow_offline_access, -> { Internal::Types::Boolean }, optional: true, nullable: false field :allow_online_access, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :allow_online_access_with_ephemeral_sessions, -> { Internal::Types::Boolean }, optional: true, nullable: false field :skip_consent_for_verifiable_first_party_clients, -> { Internal::Types::Boolean }, optional: true, nullable: false field :token_lifetime, -> { Integer }, optional: true, nullable: false field :token_lifetime_for_web, -> { Integer }, optional: true, nullable: false @@ -22,6 +23,7 @@ class CreateResourceServerResponseContent < Internal::Types::Model field :authorization_details, -> { Internal::Types::Array[Object] }, optional: true, nullable: false field :proof_of_possession, -> { Auth0::Types::ResourceServerProofOfPossession }, optional: true, nullable: false field :subject_type_authorization, -> { Auth0::Types::ResourceServerSubjectTypeAuthorization }, optional: true, nullable: false + field :authorization_policy, -> { Auth0::Types::ResourceServerAuthorizationPolicy }, optional: true, nullable: false field :client_id, -> { String }, optional: true, nullable: false end end diff --git a/lib/auth0/types/create_user_authentication_method_response_content.rb b/lib/auth0/types/create_user_authentication_method_response_content.rb index 699f2edc..e1f24c7b 100644 --- a/lib/auth0/types/create_user_authentication_method_response_content.rb +++ b/lib/auth0/types/create_user_authentication_method_response_content.rb @@ -16,6 +16,12 @@ class CreateUserAuthenticationMethodResponseContent < Internal::Types::Model field :public_key, -> { String }, optional: true, nullable: false field :aaguid, -> { String }, optional: true, nullable: false field :relying_party_identifier, -> { String }, optional: true, nullable: false + field :credential_device_type, -> { Auth0::Types::CredentialDeviceTypeEnum }, optional: true, nullable: false + field :credential_backed_up, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :identity_user_id, -> { String }, optional: true, nullable: false + field :user_agent, -> { String }, optional: true, nullable: false + field :user_handle, -> { String }, optional: true, nullable: false + field :transports, -> { Internal::Types::Array[String] }, optional: true, nullable: false field :created_at, -> { String }, optional: true, nullable: false end end diff --git a/lib/auth0/types/credential_device_type_enum.rb b/lib/auth0/types/credential_device_type_enum.rb new file mode 100644 index 00000000..4c51473b --- /dev/null +++ b/lib/auth0/types/credential_device_type_enum.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module CredentialDeviceTypeEnum + extend Auth0::Internal::Types::Enum + + SINGLE_DEVICE = "single_device" + MULTI_DEVICE = "multi_device" + end + end +end diff --git a/lib/auth0/types/email_provider_name_enum.rb b/lib/auth0/types/email_provider_name_enum.rb index 3fc6553a..eb8cafa7 100644 --- a/lib/auth0/types/email_provider_name_enum.rb +++ b/lib/auth0/types/email_provider_name_enum.rb @@ -8,6 +8,7 @@ module EmailProviderNameEnum MAILGUN = "mailgun" MANDRILL = "mandrill" SENDGRID = "sendgrid" + RESEND = "resend" SES = "ses" SPARKPOST = "sparkpost" SMTP = "smtp" diff --git a/lib/auth0/types/event_stream_cloud_event_a0purpose_enum.rb b/lib/auth0/types/event_stream_cloud_event_a0purpose_enum.rb new file mode 100644 index 00000000..c77d838a --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_a0purpose_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventA0PurposeEnum + extend Auth0::Internal::Types::Enum + + TEST = "test" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_context.rb b/lib/auth0/types/event_stream_cloud_event_context.rb new file mode 100644 index 00000000..a295d28f --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_context.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Information about the context in which the event was produced. This may include things like + # HTTP request details, client information, connection information, etc. + # + # Note: This field may not be present on all events, depending on the event type and the + # context in which it was generated. + class EventStreamCloudEventContext < Internal::Types::Model + field :client, -> { Auth0::Types::EventStreamCloudEventContextClient }, optional: true, nullable: false + field :connection, -> { Auth0::Types::EventStreamCloudEventContextConnection }, optional: true, nullable: false + field :request, -> { Auth0::Types::EventStreamCloudEventContextRequest }, optional: true, nullable: false + field :tenant, -> { Auth0::Types::EventStreamCloudEventContextTenant }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_context_client.rb b/lib/auth0/types/event_stream_cloud_event_context_client.rb new file mode 100644 index 00000000..883dce4e --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_context_client.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The OAuth Client requesting or presenting an access token. + class EventStreamCloudEventContextClient < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :name, -> { String }, optional: false, nullable: false + field :metadata, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_context_client_metadata.rb b/lib/auth0/types/event_stream_cloud_event_context_client_metadata.rb new file mode 100644 index 00000000..6dc4a5db --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_context_client_metadata.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventContextClientMetadata + # EventStreamCloudEventContextClientMetadata is an alias for Hash + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_context_connection.rb b/lib/auth0/types/event_stream_cloud_event_context_connection.rb new file mode 100644 index 00000000..686eabef --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_context_connection.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The Auth0 Connection used for the authentication transaction that generated the event. + class EventStreamCloudEventContextConnection < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :name, -> { String }, optional: false, nullable: false + field :strategy, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_context_request.rb b/lib/auth0/types/event_stream_cloud_event_context_request.rb new file mode 100644 index 00000000..2b730365 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_context_request.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # An HTTP request. + class EventStreamCloudEventContextRequest < Internal::Types::Model + field :geo, -> { Auth0::Types::EventStreamCloudEventContextRequestGeo }, optional: false, nullable: false + field :hostname, -> { String }, optional: false, nullable: false + field :custom_domain, -> { String }, optional: true, nullable: false + field :ip, -> { String }, optional: false, nullable: false + field :method_, -> { String }, optional: false, nullable: false, api_name: "method" + field :user_agent, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_context_request_geo.rb b/lib/auth0/types/event_stream_cloud_event_context_request_geo.rb new file mode 100644 index 00000000..d8db504d --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_context_request_geo.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Geographic information about the request origin. + class EventStreamCloudEventContextRequestGeo < Internal::Types::Model + field :continent_code, -> { String }, optional: true, nullable: false + field :country_code, -> { String }, optional: true, nullable: false + field :country_name, -> { String }, optional: true, nullable: false + field :latitude, -> { Integer }, optional: true, nullable: false + field :longitude, -> { Integer }, optional: true, nullable: false + field :subdivision_code, -> { String }, optional: true, nullable: false + field :subdivision_name, -> { String }, optional: true, nullable: false + field :city_name, -> { String }, optional: true, nullable: false + field :time_zone, -> { String }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_context_tenant.rb b/lib/auth0/types/event_stream_cloud_event_context_tenant.rb new file mode 100644 index 00000000..fc1ae82e --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_context_tenant.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Reference to a tenant in event context + class EventStreamCloudEventContextTenant < Internal::Types::Model + field :tenant_id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_error_code_enum.rb b/lib/auth0/types/event_stream_cloud_event_error_code_enum.rb new file mode 100644 index 00000000..9344e682 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_error_code_enum.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventErrorCodeEnum + extend Auth0::Internal::Types::Enum + + INVALID_CURSOR = "invalid_cursor" + CURSOR_EXPIRED = "cursor_expired" + TIMEOUT = "timeout" + PAYLOAD_TOO_LARGE = "payload_too_large" + PROCESSING_ERROR = "processing_error" + CONNECTION_TIMEOUT = "connection_timeout" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_error_detail.rb b/lib/auth0/types/event_stream_cloud_event_error_detail.rb new file mode 100644 index 00000000..5f9bbf06 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_error_detail.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Error details. + class EventStreamCloudEventErrorDetail < Internal::Types::Model + field :code, -> { Auth0::Types::EventStreamCloudEventErrorCodeEnum }, optional: false, nullable: false + field :message, -> { String }, optional: false, nullable: false + field :offset, -> { String }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_error_message.rb b/lib/auth0/types/event_stream_cloud_event_error_message.rb new file mode 100644 index 00000000..aac83fde --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_error_message.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # An error message delivered via the SSE stream. The stream closes after this message. + class EventStreamCloudEventErrorMessage < Internal::Types::Model + field :error, -> { Auth0::Types::EventStreamCloudEventErrorDetail }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_error_message_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_error_message_type_enum.rb new file mode 100644 index 00000000..ba6811e1 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_error_message_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventErrorMessageTypeEnum + extend Auth0::Internal::Types::Enum + + ERROR = "error" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_created.rb b/lib/auth0/types/event_stream_cloud_event_group_created.rb new file mode 100644 index 00000000..10d6baa8 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_created.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # SSE message for group.created. + class EventStreamCloudEventGroupCreated < Internal::Types::Model + field :offset, -> { String }, optional: false, nullable: false + field :event, -> { Auth0::Types::EventStreamCloudEventGroupCreatedCloudEvent }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_created_cloud_event.rb b/lib/auth0/types/event_stream_cloud_event_group_created_cloud_event.rb new file mode 100644 index 00000000..b34ba5b4 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_created_cloud_event.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Represents an event that occurs when a group is created. + class EventStreamCloudEventGroupCreatedCloudEvent < Internal::Types::Model + field :specversion, -> { String }, optional: false, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventGroupCreatedCloudEventTypeEnum }, optional: false, nullable: false + field :source, -> { String }, optional: false, nullable: false + field :id, -> { String }, optional: false, nullable: false + field :time, -> { String }, optional: false, nullable: false + field :data, -> { Auth0::Types::EventStreamCloudEventGroupCreatedData }, optional: false, nullable: false + field :a0tenant, -> { String }, optional: false, nullable: false + field :a0stream, -> { String }, optional: false, nullable: false + field :a0purpose, -> { Auth0::Types::EventStreamCloudEventA0PurposeEnum }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_created_cloud_event_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_created_cloud_event_type_enum.rb new file mode 100644 index 00000000..2f2fca3d --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_created_cloud_event_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupCreatedCloudEventTypeEnum + extend Auth0::Internal::Types::Enum + + GROUP_CREATED = "group.created" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_created_data.rb b/lib/auth0/types/event_stream_cloud_event_group_created_data.rb new file mode 100644 index 00000000..0060dad5 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_created_data.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event payload. + class EventStreamCloudEventGroupCreatedData < Internal::Types::Model + field :object, -> { Auth0::Types::EventStreamCloudEventGroupCreatedObject }, optional: false, nullable: false + field :context, -> { Auth0::Types::EventStreamCloudEventContext }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_created_object.rb b/lib/auth0/types/event_stream_cloud_event_group_created_object.rb new file mode 100644 index 00000000..9619dcb6 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_created_object.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event content. + class EventStreamCloudEventGroupCreatedObject < Internal::Types::Model + extend Auth0::Internal::Types::Union + + member -> { Auth0::Types::EventStreamCloudEventGroupCreatedObject0 } + member -> { Auth0::Types::EventStreamCloudEventGroupCreatedObject1 } + member -> { Auth0::Types::EventStreamCloudEventGroupCreatedObject2 } + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_created_object0.rb b/lib/auth0/types/event_stream_cloud_event_group_created_object0.rb new file mode 100644 index 00000000..028c2468 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_created_object0.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Represents a connection group entity. + class EventStreamCloudEventGroupCreatedObject0 < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :name, -> { String }, optional: false, nullable: false + field :external_id, -> { String }, optional: true, nullable: false + field :created_at, -> { String }, optional: false, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventGroupCreatedObject0TypeEnum }, optional: false, nullable: false + field :connection_id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_created_object0type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_created_object0type_enum.rb new file mode 100644 index 00000000..a383e604 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_created_object0type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupCreatedObject0TypeEnum + extend Auth0::Internal::Types::Enum + + CONNECTION = "connection" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_created_object1.rb b/lib/auth0/types/event_stream_cloud_event_group_created_object1.rb new file mode 100644 index 00000000..b8310dd9 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_created_object1.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Represents an organization group entity. + class EventStreamCloudEventGroupCreatedObject1 < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :name, -> { String }, optional: false, nullable: false + field :external_id, -> { String }, optional: true, nullable: false + field :created_at, -> { String }, optional: false, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventGroupCreatedObject1TypeEnum }, optional: false, nullable: false + field :organization_id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_created_object1type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_created_object1type_enum.rb new file mode 100644 index 00000000..de4b5621 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_created_object1type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupCreatedObject1TypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION = "organization" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_created_object2.rb b/lib/auth0/types/event_stream_cloud_event_group_created_object2.rb new file mode 100644 index 00000000..4faf9749 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_created_object2.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Represents a tenant group entity. + class EventStreamCloudEventGroupCreatedObject2 < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :name, -> { String }, optional: false, nullable: false + field :external_id, -> { String }, optional: true, nullable: false + field :created_at, -> { String }, optional: false, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventGroupCreatedObject2TypeEnum }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_created_object2type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_created_object2type_enum.rb new file mode 100644 index 00000000..3ade0eb4 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_created_object2type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupCreatedObject2TypeEnum + extend Auth0::Internal::Types::Enum + + TENANT = "tenant" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_created_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_created_type_enum.rb new file mode 100644 index 00000000..53c19093 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_created_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupCreatedTypeEnum + extend Auth0::Internal::Types::Enum + + GROUP_CREATED = "group.created" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_deleted.rb b/lib/auth0/types/event_stream_cloud_event_group_deleted.rb new file mode 100644 index 00000000..8916fef2 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_deleted.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # SSE message for group.deleted. + class EventStreamCloudEventGroupDeleted < Internal::Types::Model + field :offset, -> { String }, optional: false, nullable: false + field :event, -> { Auth0::Types::EventStreamCloudEventGroupDeletedCloudEvent }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_deleted_cloud_event.rb b/lib/auth0/types/event_stream_cloud_event_group_deleted_cloud_event.rb new file mode 100644 index 00000000..6fa7e3ba --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_deleted_cloud_event.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Represents an event that occurs when a group is deleted. + class EventStreamCloudEventGroupDeletedCloudEvent < Internal::Types::Model + field :specversion, -> { String }, optional: false, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventGroupDeletedCloudEventTypeEnum }, optional: false, nullable: false + field :source, -> { String }, optional: false, nullable: false + field :id, -> { String }, optional: false, nullable: false + field :time, -> { String }, optional: false, nullable: false + field :data, -> { Auth0::Types::EventStreamCloudEventGroupDeletedData }, optional: false, nullable: false + field :a0tenant, -> { String }, optional: false, nullable: false + field :a0stream, -> { String }, optional: false, nullable: false + field :a0purpose, -> { Auth0::Types::EventStreamCloudEventA0PurposeEnum }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_deleted_cloud_event_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_deleted_cloud_event_type_enum.rb new file mode 100644 index 00000000..de8e15c5 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_deleted_cloud_event_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupDeletedCloudEventTypeEnum + extend Auth0::Internal::Types::Enum + + GROUP_DELETED = "group.deleted" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_deleted_data.rb b/lib/auth0/types/event_stream_cloud_event_group_deleted_data.rb new file mode 100644 index 00000000..28c3f8ae --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_deleted_data.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event payload. + class EventStreamCloudEventGroupDeletedData < Internal::Types::Model + field :object, -> { Auth0::Types::EventStreamCloudEventGroupDeletedObject }, optional: false, nullable: false + field :context, -> { Auth0::Types::EventStreamCloudEventContext }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_deleted_object.rb b/lib/auth0/types/event_stream_cloud_event_group_deleted_object.rb new file mode 100644 index 00000000..c3f18597 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_deleted_object.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event content. + class EventStreamCloudEventGroupDeletedObject < Internal::Types::Model + extend Auth0::Internal::Types::Union + + member -> { Auth0::Types::EventStreamCloudEventGroupDeletedObject0 } + member -> { Auth0::Types::EventStreamCloudEventGroupDeletedObject1 } + member -> { Auth0::Types::EventStreamCloudEventGroupDeletedObject2 } + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_deleted_object0.rb b/lib/auth0/types/event_stream_cloud_event_group_deleted_object0.rb new file mode 100644 index 00000000..57d84ecd --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_deleted_object0.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Connection group with updated_at timestamp + class EventStreamCloudEventGroupDeletedObject0 < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :name, -> { String }, optional: false, nullable: false + field :external_id, -> { String }, optional: true, nullable: false + field :created_at, -> { String }, optional: false, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventGroupDeletedObject0TypeEnum }, optional: false, nullable: false + field :connection_id, -> { String }, optional: false, nullable: false + field :updated_at, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_deleted_object0type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_deleted_object0type_enum.rb new file mode 100644 index 00000000..25e2fa76 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_deleted_object0type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupDeletedObject0TypeEnum + extend Auth0::Internal::Types::Enum + + CONNECTION = "connection" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_deleted_object1.rb b/lib/auth0/types/event_stream_cloud_event_group_deleted_object1.rb new file mode 100644 index 00000000..f57f6c80 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_deleted_object1.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Organization group with updated_at timestamp + class EventStreamCloudEventGroupDeletedObject1 < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :name, -> { String }, optional: false, nullable: false + field :external_id, -> { String }, optional: true, nullable: false + field :created_at, -> { String }, optional: false, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventGroupDeletedObject1TypeEnum }, optional: false, nullable: false + field :organization_id, -> { String }, optional: false, nullable: false + field :updated_at, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_deleted_object1type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_deleted_object1type_enum.rb new file mode 100644 index 00000000..53d5d7b5 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_deleted_object1type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupDeletedObject1TypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION = "organization" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_deleted_object2.rb b/lib/auth0/types/event_stream_cloud_event_group_deleted_object2.rb new file mode 100644 index 00000000..066b09cd --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_deleted_object2.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Tenant group with updated_at timestamp + class EventStreamCloudEventGroupDeletedObject2 < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :name, -> { String }, optional: false, nullable: false + field :external_id, -> { String }, optional: true, nullable: false + field :created_at, -> { String }, optional: false, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventGroupDeletedObject2TypeEnum }, optional: false, nullable: false + field :updated_at, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_deleted_object2type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_deleted_object2type_enum.rb new file mode 100644 index 00000000..c5985e00 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_deleted_object2type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupDeletedObject2TypeEnum + extend Auth0::Internal::Types::Enum + + TENANT = "tenant" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_deleted_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_deleted_type_enum.rb new file mode 100644 index 00000000..76a8ec64 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_deleted_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupDeletedTypeEnum + extend Auth0::Internal::Types::Enum + + GROUP_DELETED = "group.deleted" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_added.rb b/lib/auth0/types/event_stream_cloud_event_group_member_added.rb new file mode 100644 index 00000000..dde58ff4 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_added.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # SSE message for group.member.added. + class EventStreamCloudEventGroupMemberAdded < Internal::Types::Model + field :offset, -> { String }, optional: false, nullable: false + field :event, -> { Auth0::Types::EventStreamCloudEventGroupMemberAddedCloudEvent }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_added_cloud_event.rb b/lib/auth0/types/event_stream_cloud_event_group_member_added_cloud_event.rb new file mode 100644 index 00000000..aff036cc --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_added_cloud_event.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Represents an event that occurs when a member is added to a group. + class EventStreamCloudEventGroupMemberAddedCloudEvent < Internal::Types::Model + field :specversion, -> { String }, optional: false, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventGroupMemberAddedCloudEventTypeEnum }, optional: false, nullable: false + field :source, -> { String }, optional: false, nullable: false + field :id, -> { String }, optional: false, nullable: false + field :time, -> { String }, optional: false, nullable: false + field :data, -> { Auth0::Types::EventStreamCloudEventGroupMemberAddedData }, optional: false, nullable: false + field :a0tenant, -> { String }, optional: false, nullable: false + field :a0stream, -> { String }, optional: false, nullable: false + field :a0purpose, -> { Auth0::Types::EventStreamCloudEventA0PurposeEnum }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_added_cloud_event_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_member_added_cloud_event_type_enum.rb new file mode 100644 index 00000000..885823c2 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_added_cloud_event_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupMemberAddedCloudEventTypeEnum + extend Auth0::Internal::Types::Enum + + GROUP_MEMBER_ADDED = "group.member.added" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_added_data.rb b/lib/auth0/types/event_stream_cloud_event_group_member_added_data.rb new file mode 100644 index 00000000..51eff18c --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_added_data.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event payload. + class EventStreamCloudEventGroupMemberAddedData < Internal::Types::Model + field :object, -> { Auth0::Types::EventStreamCloudEventGroupMemberAddedObject }, optional: false, nullable: false + field :context, -> { Auth0::Types::EventStreamCloudEventContext }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_added_object.rb b/lib/auth0/types/event_stream_cloud_event_group_member_added_object.rb new file mode 100644 index 00000000..1a78cbd0 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_added_object.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event content. + class EventStreamCloudEventGroupMemberAddedObject < Internal::Types::Model + field :group, -> { Auth0::Types::EventStreamCloudEventGroupMemberAddedObjectGroup }, optional: false, nullable: false + field :member, -> { Auth0::Types::EventStreamCloudEventGroupMemberAddedObjectMember }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_added_object_group.rb b/lib/auth0/types/event_stream_cloud_event_group_member_added_object_group.rb new file mode 100644 index 00000000..d26cb4aa --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_added_object_group.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The group the member belongs to. + class EventStreamCloudEventGroupMemberAddedObjectGroup < Internal::Types::Model + extend Auth0::Internal::Types::Union + + member -> { Auth0::Types::EventStreamCloudEventGroupMemberAddedObjectGroup0 } + member -> { Auth0::Types::EventStreamCloudEventGroupMemberAddedObjectGroup1 } + member -> { Auth0::Types::EventStreamCloudEventGroupMemberAddedObjectGroup2 } + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_added_object_group0.rb b/lib/auth0/types/event_stream_cloud_event_group_member_added_object_group0.rb new file mode 100644 index 00000000..b8c5107d --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_added_object_group0.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Reference to a connection group + class EventStreamCloudEventGroupMemberAddedObjectGroup0 < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :external_id, -> { String }, optional: true, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventGroupMemberAddedObjectGroup0TypeEnum }, optional: false, nullable: false + field :connection_id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_added_object_group0type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_member_added_object_group0type_enum.rb new file mode 100644 index 00000000..2805f7bc --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_added_object_group0type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupMemberAddedObjectGroup0TypeEnum + extend Auth0::Internal::Types::Enum + + CONNECTION = "connection" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_added_object_group1.rb b/lib/auth0/types/event_stream_cloud_event_group_member_added_object_group1.rb new file mode 100644 index 00000000..955123e8 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_added_object_group1.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Reference to an organization group + class EventStreamCloudEventGroupMemberAddedObjectGroup1 < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :external_id, -> { String }, optional: true, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventGroupMemberAddedObjectGroup1TypeEnum }, optional: false, nullable: false + field :organization_id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_added_object_group1type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_member_added_object_group1type_enum.rb new file mode 100644 index 00000000..56c58796 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_added_object_group1type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupMemberAddedObjectGroup1TypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION = "organization" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_added_object_group2.rb b/lib/auth0/types/event_stream_cloud_event_group_member_added_object_group2.rb new file mode 100644 index 00000000..7d430833 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_added_object_group2.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Reference to a tenant group + class EventStreamCloudEventGroupMemberAddedObjectGroup2 < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :external_id, -> { String }, optional: true, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventGroupMemberAddedObjectGroup2TypeEnum }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_added_object_group2type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_member_added_object_group2type_enum.rb new file mode 100644 index 00000000..695e55fa --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_added_object_group2type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupMemberAddedObjectGroup2TypeEnum + extend Auth0::Internal::Types::Enum + + TENANT = "tenant" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_added_object_member.rb b/lib/auth0/types/event_stream_cloud_event_group_member_added_object_member.rb new file mode 100644 index 00000000..460b7e14 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_added_object_member.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The member that is a part of the group. + class EventStreamCloudEventGroupMemberAddedObjectMember < Internal::Types::Model + extend Auth0::Internal::Types::Union + + member -> { Auth0::Types::EventStreamCloudEventGroupMemberAddedObjectMember0 } + member -> { Auth0::Types::EventStreamCloudEventGroupMemberAddedObjectMember1 } + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_added_object_member0.rb b/lib/auth0/types/event_stream_cloud_event_group_member_added_object_member0.rb new file mode 100644 index 00000000..d59a3c25 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_added_object_member0.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # A group member of member_type user + class EventStreamCloudEventGroupMemberAddedObjectMember0 < Internal::Types::Model + field :member_type, -> { Auth0::Types::EventStreamCloudEventGroupMemberAddedObjectMember0MemberTypeEnum }, optional: false, nullable: false + field :id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_added_object_member0member_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_member_added_object_member0member_type_enum.rb new file mode 100644 index 00000000..7b2a0acd --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_added_object_member0member_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupMemberAddedObjectMember0MemberTypeEnum + extend Auth0::Internal::Types::Enum + + USER = "user" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_added_object_member1.rb b/lib/auth0/types/event_stream_cloud_event_group_member_added_object_member1.rb new file mode 100644 index 00000000..b625d41e --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_added_object_member1.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # A group member of member_type group + class EventStreamCloudEventGroupMemberAddedObjectMember1 < Internal::Types::Model + field :member_type, -> { Auth0::Types::EventStreamCloudEventGroupMemberAddedObjectMember1MemberTypeEnum }, optional: false, nullable: false + field :id, -> { String }, optional: false, nullable: false + field :type, -> { String }, optional: false, nullable: false + field :connection_id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_added_object_member1member_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_member_added_object_member1member_type_enum.rb new file mode 100644 index 00000000..2b8dd074 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_added_object_member1member_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupMemberAddedObjectMember1MemberTypeEnum + extend Auth0::Internal::Types::Enum + + CONNECTION = "connection" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_added_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_member_added_type_enum.rb new file mode 100644 index 00000000..4b1afd7c --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_added_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupMemberAddedTypeEnum + extend Auth0::Internal::Types::Enum + + GROUP_MEMBER_ADDED = "group.member.added" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_deleted.rb b/lib/auth0/types/event_stream_cloud_event_group_member_deleted.rb new file mode 100644 index 00000000..5e31552a --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_deleted.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # SSE message for group.member.deleted. + class EventStreamCloudEventGroupMemberDeleted < Internal::Types::Model + field :offset, -> { String }, optional: false, nullable: false + field :event, -> { Auth0::Types::EventStreamCloudEventGroupMemberDeletedCloudEvent }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_deleted_cloud_event.rb b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_cloud_event.rb new file mode 100644 index 00000000..78d43a64 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_cloud_event.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Represents an event that occurs when a member is removed from a group. + class EventStreamCloudEventGroupMemberDeletedCloudEvent < Internal::Types::Model + field :specversion, -> { String }, optional: false, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventGroupMemberDeletedCloudEventTypeEnum }, optional: false, nullable: false + field :source, -> { String }, optional: false, nullable: false + field :id, -> { String }, optional: false, nullable: false + field :time, -> { String }, optional: false, nullable: false + field :data, -> { Auth0::Types::EventStreamCloudEventGroupMemberDeletedData }, optional: false, nullable: false + field :a0tenant, -> { String }, optional: false, nullable: false + field :a0stream, -> { String }, optional: false, nullable: false + field :a0purpose, -> { Auth0::Types::EventStreamCloudEventA0PurposeEnum }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_deleted_cloud_event_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_cloud_event_type_enum.rb new file mode 100644 index 00000000..50cbc56b --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_cloud_event_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupMemberDeletedCloudEventTypeEnum + extend Auth0::Internal::Types::Enum + + GROUP_MEMBER_DELETED = "group.member.deleted" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_deleted_data.rb b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_data.rb new file mode 100644 index 00000000..f2f5e314 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_data.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event payload. + class EventStreamCloudEventGroupMemberDeletedData < Internal::Types::Model + field :object, -> { Auth0::Types::EventStreamCloudEventGroupMemberDeletedObject }, optional: false, nullable: false + field :context, -> { Auth0::Types::EventStreamCloudEventContext }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object.rb b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object.rb new file mode 100644 index 00000000..f3e8f673 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event content. + class EventStreamCloudEventGroupMemberDeletedObject < Internal::Types::Model + field :group, -> { Auth0::Types::EventStreamCloudEventGroupMemberDeletedObjectGroup }, optional: false, nullable: false + field :member, -> { Auth0::Types::EventStreamCloudEventGroupMemberDeletedObjectMember }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_group.rb b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_group.rb new file mode 100644 index 00000000..f5491818 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_group.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The group the member belongs to. + class EventStreamCloudEventGroupMemberDeletedObjectGroup < Internal::Types::Model + extend Auth0::Internal::Types::Union + + member -> { Auth0::Types::EventStreamCloudEventGroupMemberDeletedObjectGroup0 } + member -> { Auth0::Types::EventStreamCloudEventGroupMemberDeletedObjectGroup1 } + member -> { Auth0::Types::EventStreamCloudEventGroupMemberDeletedObjectGroup2 } + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_group0.rb b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_group0.rb new file mode 100644 index 00000000..35bd630a --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_group0.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Reference to a connection group + class EventStreamCloudEventGroupMemberDeletedObjectGroup0 < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :external_id, -> { String }, optional: true, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventGroupMemberDeletedObjectGroup0TypeEnum }, optional: false, nullable: false + field :connection_id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_group0type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_group0type_enum.rb new file mode 100644 index 00000000..8be16551 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_group0type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupMemberDeletedObjectGroup0TypeEnum + extend Auth0::Internal::Types::Enum + + CONNECTION = "connection" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_group1.rb b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_group1.rb new file mode 100644 index 00000000..1e01c6b7 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_group1.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Reference to an organization group + class EventStreamCloudEventGroupMemberDeletedObjectGroup1 < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :external_id, -> { String }, optional: true, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventGroupMemberDeletedObjectGroup1TypeEnum }, optional: false, nullable: false + field :organization_id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_group1type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_group1type_enum.rb new file mode 100644 index 00000000..294eda17 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_group1type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupMemberDeletedObjectGroup1TypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION = "organization" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_group2.rb b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_group2.rb new file mode 100644 index 00000000..4bd43f42 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_group2.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Reference to a tenant group + class EventStreamCloudEventGroupMemberDeletedObjectGroup2 < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :external_id, -> { String }, optional: true, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventGroupMemberDeletedObjectGroup2TypeEnum }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_group2type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_group2type_enum.rb new file mode 100644 index 00000000..3be2e42c --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_group2type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupMemberDeletedObjectGroup2TypeEnum + extend Auth0::Internal::Types::Enum + + TENANT = "tenant" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_member.rb b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_member.rb new file mode 100644 index 00000000..90747c65 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_member.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The member that is a part of the group. + class EventStreamCloudEventGroupMemberDeletedObjectMember < Internal::Types::Model + extend Auth0::Internal::Types::Union + + member -> { Auth0::Types::EventStreamCloudEventGroupMemberDeletedObjectMember0 } + member -> { Auth0::Types::EventStreamCloudEventGroupMemberDeletedObjectMember1 } + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_member0.rb b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_member0.rb new file mode 100644 index 00000000..685ef1c4 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_member0.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # A group member of member_type user + class EventStreamCloudEventGroupMemberDeletedObjectMember0 < Internal::Types::Model + field :member_type, -> { Auth0::Types::EventStreamCloudEventGroupMemberDeletedObjectMember0MemberTypeEnum }, optional: false, nullable: false + field :id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_member0member_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_member0member_type_enum.rb new file mode 100644 index 00000000..32bb5c39 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_member0member_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupMemberDeletedObjectMember0MemberTypeEnum + extend Auth0::Internal::Types::Enum + + USER = "user" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_member1.rb b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_member1.rb new file mode 100644 index 00000000..fc554cea --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_member1.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # A group member of member_type group + class EventStreamCloudEventGroupMemberDeletedObjectMember1 < Internal::Types::Model + field :member_type, -> { Auth0::Types::EventStreamCloudEventGroupMemberDeletedObjectMember1MemberTypeEnum }, optional: false, nullable: false + field :id, -> { String }, optional: false, nullable: false + field :type, -> { String }, optional: false, nullable: false + field :connection_id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_member1member_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_member1member_type_enum.rb new file mode 100644 index 00000000..8b814d21 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_object_member1member_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupMemberDeletedObjectMember1MemberTypeEnum + extend Auth0::Internal::Types::Enum + + CONNECTION = "connection" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_member_deleted_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_type_enum.rb new file mode 100644 index 00000000..7361ff46 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_member_deleted_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupMemberDeletedTypeEnum + extend Auth0::Internal::Types::Enum + + GROUP_MEMBER_DELETED = "group.member.deleted" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_role_assigned.rb b/lib/auth0/types/event_stream_cloud_event_group_role_assigned.rb new file mode 100644 index 00000000..53c06002 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_role_assigned.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # SSE message for group.role.assigned. + class EventStreamCloudEventGroupRoleAssigned < Internal::Types::Model + field :offset, -> { String }, optional: false, nullable: false + field :event, -> { Auth0::Types::EventStreamCloudEventGroupRoleAssignedCloudEvent }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_role_assigned_cloud_event.rb b/lib/auth0/types/event_stream_cloud_event_group_role_assigned_cloud_event.rb new file mode 100644 index 00000000..f47b896a --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_role_assigned_cloud_event.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Represents an event that occurs when a role is assigned to a group. + class EventStreamCloudEventGroupRoleAssignedCloudEvent < Internal::Types::Model + field :specversion, -> { String }, optional: false, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventGroupRoleAssignedCloudEventTypeEnum }, optional: false, nullable: false + field :source, -> { String }, optional: false, nullable: false + field :id, -> { String }, optional: false, nullable: false + field :time, -> { String }, optional: false, nullable: false + field :data, -> { Auth0::Types::EventStreamCloudEventGroupRoleAssignedData }, optional: false, nullable: false + field :a0tenant, -> { String }, optional: false, nullable: false + field :a0stream, -> { String }, optional: false, nullable: false + field :a0purpose, -> { Auth0::Types::EventStreamCloudEventA0PurposeEnum }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_role_assigned_cloud_event_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_role_assigned_cloud_event_type_enum.rb new file mode 100644 index 00000000..19d468cc --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_role_assigned_cloud_event_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupRoleAssignedCloudEventTypeEnum + extend Auth0::Internal::Types::Enum + + GROUP_ROLE_ASSIGNED = "group.role.assigned" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_role_assigned_data.rb b/lib/auth0/types/event_stream_cloud_event_group_role_assigned_data.rb new file mode 100644 index 00000000..84ecfea1 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_role_assigned_data.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event payload. + class EventStreamCloudEventGroupRoleAssignedData < Internal::Types::Model + field :object, -> { Auth0::Types::EventStreamCloudEventGroupRoleAssignedObject }, optional: false, nullable: false + field :context, -> { Auth0::Types::EventStreamCloudEventContext }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_role_assigned_object.rb b/lib/auth0/types/event_stream_cloud_event_group_role_assigned_object.rb new file mode 100644 index 00000000..c9e29bbe --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_role_assigned_object.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event content. + class EventStreamCloudEventGroupRoleAssignedObject < Internal::Types::Model + field :group, -> { Auth0::Types::EventStreamCloudEventGroupRoleAssignedObjectGroup }, optional: false, nullable: false + field :role, -> { Auth0::Types::EventStreamCloudEventGroupRoleAssignedObjectRole }, optional: false, nullable: false + field :created_at, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_role_assigned_object_group.rb b/lib/auth0/types/event_stream_cloud_event_group_role_assigned_object_group.rb new file mode 100644 index 00000000..22a39e95 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_role_assigned_object_group.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The group the role is assigned to. + class EventStreamCloudEventGroupRoleAssignedObjectGroup < Internal::Types::Model + extend Auth0::Internal::Types::Union + + member -> { Auth0::Types::EventStreamCloudEventGroupRoleAssignedObjectGroup0 } + member -> { Auth0::Types::EventStreamCloudEventGroupRoleAssignedObjectGroup1 } + member -> { Auth0::Types::EventStreamCloudEventGroupRoleAssignedObjectGroup2 } + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_role_assigned_object_group0.rb b/lib/auth0/types/event_stream_cloud_event_group_role_assigned_object_group0.rb new file mode 100644 index 00000000..e18d26d6 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_role_assigned_object_group0.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Reference to a connection group + class EventStreamCloudEventGroupRoleAssignedObjectGroup0 < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :external_id, -> { String }, optional: true, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventGroupRoleAssignedObjectGroup0TypeEnum }, optional: false, nullable: false + field :connection_id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_role_assigned_object_group0type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_role_assigned_object_group0type_enum.rb new file mode 100644 index 00000000..878ee4f4 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_role_assigned_object_group0type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupRoleAssignedObjectGroup0TypeEnum + extend Auth0::Internal::Types::Enum + + CONNECTION = "connection" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_role_assigned_object_group1.rb b/lib/auth0/types/event_stream_cloud_event_group_role_assigned_object_group1.rb new file mode 100644 index 00000000..e7be140c --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_role_assigned_object_group1.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Reference to an organization group + class EventStreamCloudEventGroupRoleAssignedObjectGroup1 < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :external_id, -> { String }, optional: true, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventGroupRoleAssignedObjectGroup1TypeEnum }, optional: false, nullable: false + field :organization_id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_role_assigned_object_group1type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_role_assigned_object_group1type_enum.rb new file mode 100644 index 00000000..0c881ebc --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_role_assigned_object_group1type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupRoleAssignedObjectGroup1TypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION = "organization" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_role_assigned_object_group2.rb b/lib/auth0/types/event_stream_cloud_event_group_role_assigned_object_group2.rb new file mode 100644 index 00000000..08f10aaa --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_role_assigned_object_group2.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Reference to a tenant group + class EventStreamCloudEventGroupRoleAssignedObjectGroup2 < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :external_id, -> { String }, optional: true, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventGroupRoleAssignedObjectGroup2TypeEnum }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_role_assigned_object_group2type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_role_assigned_object_group2type_enum.rb new file mode 100644 index 00000000..a550e0e4 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_role_assigned_object_group2type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupRoleAssignedObjectGroup2TypeEnum + extend Auth0::Internal::Types::Enum + + TENANT = "tenant" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_role_assigned_object_role.rb b/lib/auth0/types/event_stream_cloud_event_group_role_assigned_object_role.rb new file mode 100644 index 00000000..8f91efad --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_role_assigned_object_role.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The role assigned to the group. + class EventStreamCloudEventGroupRoleAssignedObjectRole < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :name, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_role_assigned_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_role_assigned_type_enum.rb new file mode 100644 index 00000000..f19c82f3 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_role_assigned_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupRoleAssignedTypeEnum + extend Auth0::Internal::Types::Enum + + GROUP_ROLE_ASSIGNED = "group.role.assigned" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_role_deleted.rb b/lib/auth0/types/event_stream_cloud_event_group_role_deleted.rb new file mode 100644 index 00000000..46de7a48 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_role_deleted.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # SSE message for group.role.deleted. + class EventStreamCloudEventGroupRoleDeleted < Internal::Types::Model + field :offset, -> { String }, optional: false, nullable: false + field :event, -> { Auth0::Types::EventStreamCloudEventGroupRoleDeletedCloudEvent }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_role_deleted_cloud_event.rb b/lib/auth0/types/event_stream_cloud_event_group_role_deleted_cloud_event.rb new file mode 100644 index 00000000..da644c83 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_role_deleted_cloud_event.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Represents an event that occurs when a role is removed from a group. + class EventStreamCloudEventGroupRoleDeletedCloudEvent < Internal::Types::Model + field :specversion, -> { String }, optional: false, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventGroupRoleDeletedCloudEventTypeEnum }, optional: false, nullable: false + field :source, -> { String }, optional: false, nullable: false + field :id, -> { String }, optional: false, nullable: false + field :time, -> { String }, optional: false, nullable: false + field :data, -> { Auth0::Types::EventStreamCloudEventGroupRoleDeletedData }, optional: false, nullable: false + field :a0tenant, -> { String }, optional: false, nullable: false + field :a0stream, -> { String }, optional: false, nullable: false + field :a0purpose, -> { Auth0::Types::EventStreamCloudEventA0PurposeEnum }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_role_deleted_cloud_event_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_role_deleted_cloud_event_type_enum.rb new file mode 100644 index 00000000..67b9c48f --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_role_deleted_cloud_event_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupRoleDeletedCloudEventTypeEnum + extend Auth0::Internal::Types::Enum + + GROUP_ROLE_DELETED = "group.role.deleted" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_role_deleted_data.rb b/lib/auth0/types/event_stream_cloud_event_group_role_deleted_data.rb new file mode 100644 index 00000000..eb47ae60 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_role_deleted_data.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event payload. + class EventStreamCloudEventGroupRoleDeletedData < Internal::Types::Model + field :object, -> { Auth0::Types::EventStreamCloudEventGroupRoleDeletedObject }, optional: false, nullable: false + field :context, -> { Auth0::Types::EventStreamCloudEventContext }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_role_deleted_object.rb b/lib/auth0/types/event_stream_cloud_event_group_role_deleted_object.rb new file mode 100644 index 00000000..2ca58cb4 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_role_deleted_object.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event content. + class EventStreamCloudEventGroupRoleDeletedObject < Internal::Types::Model + field :group, -> { Auth0::Types::EventStreamCloudEventGroupRoleDeletedObjectGroup }, optional: false, nullable: false + field :role, -> { Auth0::Types::EventStreamCloudEventGroupRoleDeletedObjectRole }, optional: false, nullable: false + field :deleted_at, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_role_deleted_object_group.rb b/lib/auth0/types/event_stream_cloud_event_group_role_deleted_object_group.rb new file mode 100644 index 00000000..53dd3546 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_role_deleted_object_group.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The group the role is removed from. + class EventStreamCloudEventGroupRoleDeletedObjectGroup < Internal::Types::Model + extend Auth0::Internal::Types::Union + + member -> { Auth0::Types::EventStreamCloudEventGroupRoleDeletedObjectGroup0 } + member -> { Auth0::Types::EventStreamCloudEventGroupRoleDeletedObjectGroup1 } + member -> { Auth0::Types::EventStreamCloudEventGroupRoleDeletedObjectGroup2 } + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_role_deleted_object_group0.rb b/lib/auth0/types/event_stream_cloud_event_group_role_deleted_object_group0.rb new file mode 100644 index 00000000..3436a445 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_role_deleted_object_group0.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Reference to a connection group + class EventStreamCloudEventGroupRoleDeletedObjectGroup0 < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :external_id, -> { String }, optional: true, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventGroupRoleDeletedObjectGroup0TypeEnum }, optional: false, nullable: false + field :connection_id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_role_deleted_object_group0type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_role_deleted_object_group0type_enum.rb new file mode 100644 index 00000000..3c0ee202 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_role_deleted_object_group0type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupRoleDeletedObjectGroup0TypeEnum + extend Auth0::Internal::Types::Enum + + CONNECTION = "connection" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_role_deleted_object_group1.rb b/lib/auth0/types/event_stream_cloud_event_group_role_deleted_object_group1.rb new file mode 100644 index 00000000..dce32a2d --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_role_deleted_object_group1.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Reference to an organization group + class EventStreamCloudEventGroupRoleDeletedObjectGroup1 < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :external_id, -> { String }, optional: true, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventGroupRoleDeletedObjectGroup1TypeEnum }, optional: false, nullable: false + field :organization_id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_role_deleted_object_group1type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_role_deleted_object_group1type_enum.rb new file mode 100644 index 00000000..c472f697 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_role_deleted_object_group1type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupRoleDeletedObjectGroup1TypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION = "organization" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_role_deleted_object_group2.rb b/lib/auth0/types/event_stream_cloud_event_group_role_deleted_object_group2.rb new file mode 100644 index 00000000..8c883a93 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_role_deleted_object_group2.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Reference to a tenant group + class EventStreamCloudEventGroupRoleDeletedObjectGroup2 < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :external_id, -> { String }, optional: true, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventGroupRoleDeletedObjectGroup2TypeEnum }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_role_deleted_object_group2type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_role_deleted_object_group2type_enum.rb new file mode 100644 index 00000000..1ff4af0a --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_role_deleted_object_group2type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupRoleDeletedObjectGroup2TypeEnum + extend Auth0::Internal::Types::Enum + + TENANT = "tenant" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_role_deleted_object_role.rb b/lib/auth0/types/event_stream_cloud_event_group_role_deleted_object_role.rb new file mode 100644 index 00000000..e6a55d88 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_role_deleted_object_role.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The role removed from the group. + class EventStreamCloudEventGroupRoleDeletedObjectRole < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_role_deleted_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_role_deleted_type_enum.rb new file mode 100644 index 00000000..689027f2 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_role_deleted_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupRoleDeletedTypeEnum + extend Auth0::Internal::Types::Enum + + GROUP_ROLE_DELETED = "group.role.deleted" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_updated.rb b/lib/auth0/types/event_stream_cloud_event_group_updated.rb new file mode 100644 index 00000000..0998a697 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_updated.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # SSE message for group.updated. + class EventStreamCloudEventGroupUpdated < Internal::Types::Model + field :offset, -> { String }, optional: false, nullable: false + field :event, -> { Auth0::Types::EventStreamCloudEventGroupUpdatedCloudEvent }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_updated_cloud_event.rb b/lib/auth0/types/event_stream_cloud_event_group_updated_cloud_event.rb new file mode 100644 index 00000000..21fba819 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_updated_cloud_event.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Represents an event that occurs when a group is updated. + class EventStreamCloudEventGroupUpdatedCloudEvent < Internal::Types::Model + field :specversion, -> { String }, optional: false, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventGroupUpdatedCloudEventTypeEnum }, optional: false, nullable: false + field :source, -> { String }, optional: false, nullable: false + field :id, -> { String }, optional: false, nullable: false + field :time, -> { String }, optional: false, nullable: false + field :data, -> { Auth0::Types::EventStreamCloudEventGroupUpdatedData }, optional: false, nullable: false + field :a0tenant, -> { String }, optional: false, nullable: false + field :a0stream, -> { String }, optional: false, nullable: false + field :a0purpose, -> { Auth0::Types::EventStreamCloudEventA0PurposeEnum }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_updated_cloud_event_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_updated_cloud_event_type_enum.rb new file mode 100644 index 00000000..b6bb9c29 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_updated_cloud_event_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupUpdatedCloudEventTypeEnum + extend Auth0::Internal::Types::Enum + + GROUP_UPDATED = "group.updated" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_updated_data.rb b/lib/auth0/types/event_stream_cloud_event_group_updated_data.rb new file mode 100644 index 00000000..e6394bee --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_updated_data.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event payload. + class EventStreamCloudEventGroupUpdatedData < Internal::Types::Model + field :object, -> { Auth0::Types::EventStreamCloudEventGroupUpdatedObject }, optional: false, nullable: false + field :context, -> { Auth0::Types::EventStreamCloudEventContext }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_updated_object.rb b/lib/auth0/types/event_stream_cloud_event_group_updated_object.rb new file mode 100644 index 00000000..a8499038 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_updated_object.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event content. + class EventStreamCloudEventGroupUpdatedObject < Internal::Types::Model + extend Auth0::Internal::Types::Union + + member -> { Auth0::Types::EventStreamCloudEventGroupUpdatedObject0 } + member -> { Auth0::Types::EventStreamCloudEventGroupUpdatedObject1 } + member -> { Auth0::Types::EventStreamCloudEventGroupUpdatedObject2 } + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_updated_object0.rb b/lib/auth0/types/event_stream_cloud_event_group_updated_object0.rb new file mode 100644 index 00000000..bd347e87 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_updated_object0.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Connection group with updated_at timestamp + class EventStreamCloudEventGroupUpdatedObject0 < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :name, -> { String }, optional: false, nullable: false + field :external_id, -> { String }, optional: true, nullable: false + field :created_at, -> { String }, optional: false, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventGroupUpdatedObject0TypeEnum }, optional: false, nullable: false + field :connection_id, -> { String }, optional: false, nullable: false + field :updated_at, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_updated_object0type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_updated_object0type_enum.rb new file mode 100644 index 00000000..11bf96ca --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_updated_object0type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupUpdatedObject0TypeEnum + extend Auth0::Internal::Types::Enum + + CONNECTION = "connection" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_updated_object1.rb b/lib/auth0/types/event_stream_cloud_event_group_updated_object1.rb new file mode 100644 index 00000000..dd91b866 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_updated_object1.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Organization group with updated_at timestamp + class EventStreamCloudEventGroupUpdatedObject1 < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :name, -> { String }, optional: false, nullable: false + field :external_id, -> { String }, optional: true, nullable: false + field :created_at, -> { String }, optional: false, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventGroupUpdatedObject1TypeEnum }, optional: false, nullable: false + field :organization_id, -> { String }, optional: false, nullable: false + field :updated_at, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_updated_object1type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_updated_object1type_enum.rb new file mode 100644 index 00000000..7c79b9d5 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_updated_object1type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupUpdatedObject1TypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION = "organization" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_updated_object2.rb b/lib/auth0/types/event_stream_cloud_event_group_updated_object2.rb new file mode 100644 index 00000000..96c45018 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_updated_object2.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Tenant group with updated_at timestamp + class EventStreamCloudEventGroupUpdatedObject2 < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :name, -> { String }, optional: false, nullable: false + field :external_id, -> { String }, optional: true, nullable: false + field :created_at, -> { String }, optional: false, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventGroupUpdatedObject2TypeEnum }, optional: false, nullable: false + field :updated_at, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_updated_object2type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_updated_object2type_enum.rb new file mode 100644 index 00000000..3dada532 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_updated_object2type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupUpdatedObject2TypeEnum + extend Auth0::Internal::Types::Enum + + TENANT = "tenant" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_group_updated_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_group_updated_type_enum.rb new file mode 100644 index 00000000..5d6c7c68 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_group_updated_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventGroupUpdatedTypeEnum + extend Auth0::Internal::Types::Enum + + GROUP_UPDATED = "group.updated" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_offset_only_message.rb b/lib/auth0/types/event_stream_cloud_event_offset_only_message.rb new file mode 100644 index 00000000..eaaa712a --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_offset_only_message.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # An offset-only heartbeat message. Advances the cursor without delivering an event. + class EventStreamCloudEventOffsetOnlyMessage < Internal::Types::Model + field :offset, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_offset_only_message_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_offset_only_message_type_enum.rb new file mode 100644 index 00000000..4b2c7b1d --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_offset_only_message_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOffsetOnlyMessageTypeEnum + extend Auth0::Internal::Types::Enum + + OFFSET_ONLY = "offset-only" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_connection_added.rb b/lib/auth0/types/event_stream_cloud_event_org_connection_added.rb new file mode 100644 index 00000000..e94453a0 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_connection_added.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # SSE message for organization.connection.added. + class EventStreamCloudEventOrgConnectionAdded < Internal::Types::Model + field :offset, -> { String }, optional: false, nullable: false + field :event, -> { Auth0::Types::EventStreamCloudEventOrgConnectionAddedCloudEvent }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_connection_added_cloud_event.rb b/lib/auth0/types/event_stream_cloud_event_org_connection_added_cloud_event.rb new file mode 100644 index 00000000..0fbf2c8a --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_connection_added_cloud_event.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Represents an event that occurs when a connection is added to an organization. + class EventStreamCloudEventOrgConnectionAddedCloudEvent < Internal::Types::Model + field :specversion, -> { String }, optional: false, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventOrgConnectionAddedCloudEventTypeEnum }, optional: false, nullable: false + field :source, -> { String }, optional: false, nullable: false + field :id, -> { String }, optional: false, nullable: false + field :time, -> { String }, optional: false, nullable: false + field :data, -> { Auth0::Types::EventStreamCloudEventOrgConnectionAddedData }, optional: false, nullable: false + field :a0tenant, -> { String }, optional: false, nullable: false + field :a0stream, -> { String }, optional: false, nullable: false + field :a0purpose, -> { Auth0::Types::EventStreamCloudEventA0PurposeEnum }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_connection_added_cloud_event_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_org_connection_added_cloud_event_type_enum.rb new file mode 100644 index 00000000..e173cedc --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_connection_added_cloud_event_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgConnectionAddedCloudEventTypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION_CONNECTION_ADDED = "organization.connection.added" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_connection_added_data.rb b/lib/auth0/types/event_stream_cloud_event_org_connection_added_data.rb new file mode 100644 index 00000000..7f1bb60d --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_connection_added_data.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event payload. + class EventStreamCloudEventOrgConnectionAddedData < Internal::Types::Model + field :object, -> { Auth0::Types::EventStreamCloudEventOrgConnectionAddedObject }, optional: false, nullable: false + field :context, -> { Auth0::Types::EventStreamCloudEventContext }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_connection_added_object.rb b/lib/auth0/types/event_stream_cloud_event_org_connection_added_object.rb new file mode 100644 index 00000000..668eb87e --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_connection_added_object.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event content. + class EventStreamCloudEventOrgConnectionAddedObject < Internal::Types::Model + field :organization, -> { Auth0::Types::EventStreamCloudEventOrgConnectionAddedObjectOrganization }, optional: false, nullable: false + field :connection, -> { Auth0::Types::EventStreamCloudEventOrgConnectionAddedObjectConnection }, optional: false, nullable: false + field :assign_membership_on_login, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :show_as_button, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :is_signup_enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_connection_added_object_connection.rb b/lib/auth0/types/event_stream_cloud_event_org_connection_added_object_connection.rb new file mode 100644 index 00000000..eee8fd4a --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_connection_added_object_connection.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +module Auth0 + module Types + class EventStreamCloudEventOrgConnectionAddedObjectConnection < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_connection_added_object_organization.rb b/lib/auth0/types/event_stream_cloud_event_org_connection_added_object_organization.rb new file mode 100644 index 00000000..86ac0f93 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_connection_added_object_organization.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Information about an Auth0 Organization. + class EventStreamCloudEventOrgConnectionAddedObjectOrganization < Internal::Types::Model + field :name, -> { String }, optional: true, nullable: false + field :id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_connection_added_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_org_connection_added_type_enum.rb new file mode 100644 index 00000000..7dd70cdc --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_connection_added_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgConnectionAddedTypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION_CONNECTION_ADDED = "organization.connection.added" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_connection_removed.rb b/lib/auth0/types/event_stream_cloud_event_org_connection_removed.rb new file mode 100644 index 00000000..0e26ab38 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_connection_removed.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # SSE message for organization.connection.removed. + class EventStreamCloudEventOrgConnectionRemoved < Internal::Types::Model + field :offset, -> { String }, optional: false, nullable: false + field :event, -> { Auth0::Types::EventStreamCloudEventOrgConnectionRemovedCloudEvent }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_connection_removed_cloud_event.rb b/lib/auth0/types/event_stream_cloud_event_org_connection_removed_cloud_event.rb new file mode 100644 index 00000000..e80ea49a --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_connection_removed_cloud_event.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Represents an event that occurs when a connection is removed from an organization. + class EventStreamCloudEventOrgConnectionRemovedCloudEvent < Internal::Types::Model + field :specversion, -> { String }, optional: false, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventOrgConnectionRemovedCloudEventTypeEnum }, optional: false, nullable: false + field :source, -> { String }, optional: false, nullable: false + field :id, -> { String }, optional: false, nullable: false + field :time, -> { String }, optional: false, nullable: false + field :data, -> { Auth0::Types::EventStreamCloudEventOrgConnectionRemovedData }, optional: false, nullable: false + field :a0tenant, -> { String }, optional: false, nullable: false + field :a0stream, -> { String }, optional: false, nullable: false + field :a0purpose, -> { Auth0::Types::EventStreamCloudEventA0PurposeEnum }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_connection_removed_cloud_event_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_org_connection_removed_cloud_event_type_enum.rb new file mode 100644 index 00000000..afeff26d --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_connection_removed_cloud_event_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgConnectionRemovedCloudEventTypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION_CONNECTION_REMOVED = "organization.connection.removed" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_connection_removed_data.rb b/lib/auth0/types/event_stream_cloud_event_org_connection_removed_data.rb new file mode 100644 index 00000000..97ddc14e --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_connection_removed_data.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event payload. + class EventStreamCloudEventOrgConnectionRemovedData < Internal::Types::Model + field :object, -> { Auth0::Types::EventStreamCloudEventOrgConnectionRemovedObject }, optional: false, nullable: false + field :context, -> { Auth0::Types::EventStreamCloudEventContext }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_connection_removed_object.rb b/lib/auth0/types/event_stream_cloud_event_org_connection_removed_object.rb new file mode 100644 index 00000000..1601673f --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_connection_removed_object.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event content. + class EventStreamCloudEventOrgConnectionRemovedObject < Internal::Types::Model + field :organization, -> { Auth0::Types::EventStreamCloudEventOrgConnectionRemovedObjectOrganization }, optional: false, nullable: false + field :connection, -> { Auth0::Types::EventStreamCloudEventOrgConnectionRemovedObjectConnection }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_connection_removed_object_connection.rb b/lib/auth0/types/event_stream_cloud_event_org_connection_removed_object_connection.rb new file mode 100644 index 00000000..89db6a64 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_connection_removed_object_connection.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +module Auth0 + module Types + class EventStreamCloudEventOrgConnectionRemovedObjectConnection < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_connection_removed_object_organization.rb b/lib/auth0/types/event_stream_cloud_event_org_connection_removed_object_organization.rb new file mode 100644 index 00000000..f5ccc084 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_connection_removed_object_organization.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Information about an Auth0 Organization. + class EventStreamCloudEventOrgConnectionRemovedObjectOrganization < Internal::Types::Model + field :name, -> { String }, optional: true, nullable: false + field :id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_connection_removed_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_org_connection_removed_type_enum.rb new file mode 100644 index 00000000..38958f06 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_connection_removed_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgConnectionRemovedTypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION_CONNECTION_REMOVED = "organization.connection.removed" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_connection_updated.rb b/lib/auth0/types/event_stream_cloud_event_org_connection_updated.rb new file mode 100644 index 00000000..a0355d21 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_connection_updated.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # SSE message for organization.connection.updated. + class EventStreamCloudEventOrgConnectionUpdated < Internal::Types::Model + field :offset, -> { String }, optional: false, nullable: false + field :event, -> { Auth0::Types::EventStreamCloudEventOrgConnectionUpdatedCloudEvent }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_connection_updated_cloud_event.rb b/lib/auth0/types/event_stream_cloud_event_org_connection_updated_cloud_event.rb new file mode 100644 index 00000000..d15b331f --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_connection_updated_cloud_event.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Represents an event that occurs when a organization connection is updated. + class EventStreamCloudEventOrgConnectionUpdatedCloudEvent < Internal::Types::Model + field :specversion, -> { String }, optional: false, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventOrgConnectionUpdatedCloudEventTypeEnum }, optional: false, nullable: false + field :source, -> { String }, optional: false, nullable: false + field :id, -> { String }, optional: false, nullable: false + field :time, -> { String }, optional: false, nullable: false + field :data, -> { Auth0::Types::EventStreamCloudEventOrgConnectionUpdatedData }, optional: false, nullable: false + field :a0tenant, -> { String }, optional: false, nullable: false + field :a0stream, -> { String }, optional: false, nullable: false + field :a0purpose, -> { Auth0::Types::EventStreamCloudEventA0PurposeEnum }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_connection_updated_cloud_event_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_org_connection_updated_cloud_event_type_enum.rb new file mode 100644 index 00000000..f91d751d --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_connection_updated_cloud_event_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgConnectionUpdatedCloudEventTypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION_CONNECTION_UPDATED = "organization.connection.updated" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_connection_updated_data.rb b/lib/auth0/types/event_stream_cloud_event_org_connection_updated_data.rb new file mode 100644 index 00000000..6b854d63 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_connection_updated_data.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event payload. + class EventStreamCloudEventOrgConnectionUpdatedData < Internal::Types::Model + field :object, -> { Auth0::Types::EventStreamCloudEventOrgConnectionUpdatedObject }, optional: false, nullable: false + field :context, -> { Auth0::Types::EventStreamCloudEventContext }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_connection_updated_object.rb b/lib/auth0/types/event_stream_cloud_event_org_connection_updated_object.rb new file mode 100644 index 00000000..143eccfd --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_connection_updated_object.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event content. + class EventStreamCloudEventOrgConnectionUpdatedObject < Internal::Types::Model + field :organization, -> { Auth0::Types::EventStreamCloudEventOrgConnectionUpdatedObjectOrganization }, optional: false, nullable: false + field :connection, -> { Auth0::Types::EventStreamCloudEventOrgConnectionUpdatedObjectConnection }, optional: false, nullable: false + field :assign_membership_on_login, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :show_as_button, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :is_signup_enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_connection_updated_object_connection.rb b/lib/auth0/types/event_stream_cloud_event_org_connection_updated_object_connection.rb new file mode 100644 index 00000000..609f69dc --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_connection_updated_object_connection.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +module Auth0 + module Types + class EventStreamCloudEventOrgConnectionUpdatedObjectConnection < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_connection_updated_object_organization.rb b/lib/auth0/types/event_stream_cloud_event_org_connection_updated_object_organization.rb new file mode 100644 index 00000000..ccbcba8d --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_connection_updated_object_organization.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Information about an Auth0 Organization. + class EventStreamCloudEventOrgConnectionUpdatedObjectOrganization < Internal::Types::Model + field :name, -> { String }, optional: true, nullable: false + field :id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_connection_updated_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_org_connection_updated_type_enum.rb new file mode 100644 index 00000000..86d7d9af --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_connection_updated_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgConnectionUpdatedTypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION_CONNECTION_UPDATED = "organization.connection.updated" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_created.rb b/lib/auth0/types/event_stream_cloud_event_org_created.rb new file mode 100644 index 00000000..fb30f1c2 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_created.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # SSE message for organization.created. + class EventStreamCloudEventOrgCreated < Internal::Types::Model + field :offset, -> { String }, optional: false, nullable: false + field :event, -> { Auth0::Types::EventStreamCloudEventOrgCreatedCloudEvent }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_created_cloud_event.rb b/lib/auth0/types/event_stream_cloud_event_org_created_cloud_event.rb new file mode 100644 index 00000000..b5b99771 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_created_cloud_event.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Represents an event that occurs when an organization is created. + class EventStreamCloudEventOrgCreatedCloudEvent < Internal::Types::Model + field :specversion, -> { String }, optional: false, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventOrgCreatedCloudEventTypeEnum }, optional: false, nullable: false + field :source, -> { String }, optional: false, nullable: false + field :id, -> { String }, optional: false, nullable: false + field :time, -> { String }, optional: false, nullable: false + field :data, -> { Auth0::Types::EventStreamCloudEventOrgCreatedData }, optional: false, nullable: false + field :a0tenant, -> { String }, optional: false, nullable: false + field :a0stream, -> { String }, optional: false, nullable: false + field :a0purpose, -> { Auth0::Types::EventStreamCloudEventA0PurposeEnum }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_created_cloud_event_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_org_created_cloud_event_type_enum.rb new file mode 100644 index 00000000..1a16f1dc --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_created_cloud_event_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgCreatedCloudEventTypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION_CREATED = "organization.created" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_created_data.rb b/lib/auth0/types/event_stream_cloud_event_org_created_data.rb new file mode 100644 index 00000000..2889d00d --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_created_data.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event payload. + class EventStreamCloudEventOrgCreatedData < Internal::Types::Model + field :object, -> { Auth0::Types::EventStreamCloudEventOrgCreatedObject }, optional: false, nullable: false + field :context, -> { Auth0::Types::EventStreamCloudEventContext }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_created_object.rb b/lib/auth0/types/event_stream_cloud_event_org_created_object.rb new file mode 100644 index 00000000..142a6313 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_created_object.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event content. + class EventStreamCloudEventOrgCreatedObject < Internal::Types::Model + field :name, -> { String }, optional: true, nullable: false + field :id, -> { String }, optional: false, nullable: false + field :display_name, -> { String }, optional: true, nullable: false + field :metadata, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false + field :branding, -> { Auth0::Types::EventStreamCloudEventOrgCreatedObjectBranding }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_created_object_branding.rb b/lib/auth0/types/event_stream_cloud_event_org_created_object_branding.rb new file mode 100644 index 00000000..01f3da77 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_created_object_branding.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The branding associated with the organization. + class EventStreamCloudEventOrgCreatedObjectBranding < Internal::Types::Model + field :logo_url, -> { String }, optional: true, nullable: false + field :colors, -> { Auth0::Types::EventStreamCloudEventOrgCreatedObjectBrandingColors }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_created_object_branding_colors.rb b/lib/auth0/types/event_stream_cloud_event_org_created_object_branding_colors.rb new file mode 100644 index 00000000..bb966f63 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_created_object_branding_colors.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Color scheme used to customize the login pages. + class EventStreamCloudEventOrgCreatedObjectBrandingColors < Internal::Types::Model + field :primary, -> { String }, optional: true, nullable: false + field :page_background, -> { String }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_created_object_metadata.rb b/lib/auth0/types/event_stream_cloud_event_org_created_object_metadata.rb new file mode 100644 index 00000000..fee612af --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_created_object_metadata.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgCreatedObjectMetadata + # EventStreamCloudEventOrgCreatedObjectMetadata is an alias for Hash + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_created_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_org_created_type_enum.rb new file mode 100644 index 00000000..68d63170 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_created_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgCreatedTypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION_CREATED = "organization.created" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_deleted.rb b/lib/auth0/types/event_stream_cloud_event_org_deleted.rb new file mode 100644 index 00000000..f3ace68f --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_deleted.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # SSE message for organization.deleted. + class EventStreamCloudEventOrgDeleted < Internal::Types::Model + field :offset, -> { String }, optional: false, nullable: false + field :event, -> { Auth0::Types::EventStreamCloudEventOrgDeletedCloudEvent }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_deleted_cloud_event.rb b/lib/auth0/types/event_stream_cloud_event_org_deleted_cloud_event.rb new file mode 100644 index 00000000..dbfffaa7 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_deleted_cloud_event.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Represents an event that occurs when an organization is deleted. + class EventStreamCloudEventOrgDeletedCloudEvent < Internal::Types::Model + field :specversion, -> { String }, optional: false, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventOrgDeletedCloudEventTypeEnum }, optional: false, nullable: false + field :source, -> { String }, optional: false, nullable: false + field :id, -> { String }, optional: false, nullable: false + field :time, -> { String }, optional: false, nullable: false + field :data, -> { Auth0::Types::EventStreamCloudEventOrgDeletedData }, optional: false, nullable: false + field :a0tenant, -> { String }, optional: false, nullable: false + field :a0stream, -> { String }, optional: false, nullable: false + field :a0purpose, -> { Auth0::Types::EventStreamCloudEventA0PurposeEnum }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_deleted_cloud_event_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_org_deleted_cloud_event_type_enum.rb new file mode 100644 index 00000000..3fcca288 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_deleted_cloud_event_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgDeletedCloudEventTypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION_DELETED = "organization.deleted" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_deleted_data.rb b/lib/auth0/types/event_stream_cloud_event_org_deleted_data.rb new file mode 100644 index 00000000..6d05c931 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_deleted_data.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event payload. + class EventStreamCloudEventOrgDeletedData < Internal::Types::Model + field :object, -> { Auth0::Types::EventStreamCloudEventOrgDeletedObject }, optional: false, nullable: false + field :context, -> { Auth0::Types::EventStreamCloudEventContext }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_deleted_object.rb b/lib/auth0/types/event_stream_cloud_event_org_deleted_object.rb new file mode 100644 index 00000000..3e1dc543 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_deleted_object.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event content. + class EventStreamCloudEventOrgDeletedObject < Internal::Types::Model + field :name, -> { String }, optional: true, nullable: false + field :id, -> { String }, optional: false, nullable: false + field :display_name, -> { String }, optional: true, nullable: false + field :metadata, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_deleted_object_metadata.rb b/lib/auth0/types/event_stream_cloud_event_org_deleted_object_metadata.rb new file mode 100644 index 00000000..2e756358 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_deleted_object_metadata.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgDeletedObjectMetadata + # EventStreamCloudEventOrgDeletedObjectMetadata is an alias for Hash + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_deleted_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_org_deleted_type_enum.rb new file mode 100644 index 00000000..fb52266b --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_deleted_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgDeletedTypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION_DELETED = "organization.deleted" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned.rb b/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned.rb new file mode 100644 index 00000000..5f984387 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # SSE message for organization.group.role.assigned. + class EventStreamCloudEventOrgGroupRoleAssigned < Internal::Types::Model + field :offset, -> { String }, optional: false, nullable: false + field :event, -> { Auth0::Types::EventStreamCloudEventOrgGroupRoleAssignedCloudEvent }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_cloud_event.rb b/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_cloud_event.rb new file mode 100644 index 00000000..475c4cf1 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_cloud_event.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Represents an event that occurs when a role is assigned to an organization group. + class EventStreamCloudEventOrgGroupRoleAssignedCloudEvent < Internal::Types::Model + field :specversion, -> { String }, optional: false, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventOrgGroupRoleAssignedCloudEventTypeEnum }, optional: false, nullable: false + field :source, -> { String }, optional: false, nullable: false + field :id, -> { String }, optional: false, nullable: false + field :time, -> { String }, optional: false, nullable: false + field :data, -> { Auth0::Types::EventStreamCloudEventOrgGroupRoleAssignedData }, optional: false, nullable: false + field :a0tenant, -> { String }, optional: false, nullable: false + field :a0stream, -> { String }, optional: false, nullable: false + field :a0purpose, -> { Auth0::Types::EventStreamCloudEventA0PurposeEnum }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_cloud_event_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_cloud_event_type_enum.rb new file mode 100644 index 00000000..6ef719e3 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_cloud_event_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgGroupRoleAssignedCloudEventTypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION_GROUP_ROLE_ASSIGNED = "organization.group.role.assigned" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_data.rb b/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_data.rb new file mode 100644 index 00000000..12c3f92d --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_data.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event payload. + class EventStreamCloudEventOrgGroupRoleAssignedData < Internal::Types::Model + field :object, -> { Auth0::Types::EventStreamCloudEventOrgGroupRoleAssignedObject }, optional: false, nullable: false + field :context, -> { Auth0::Types::EventStreamCloudEventContext }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_object.rb b/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_object.rb new file mode 100644 index 00000000..6d93ad9d --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_object.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event content. + class EventStreamCloudEventOrgGroupRoleAssignedObject < Internal::Types::Model + field :organization, -> { Auth0::Types::EventStreamCloudEventOrgGroupRoleAssignedObjectOrganization }, optional: false, nullable: false + field :role, -> { Auth0::Types::EventStreamCloudEventOrgGroupRoleAssignedObjectRole }, optional: false, nullable: false + field :group, -> { Auth0::Types::EventStreamCloudEventOrgGroupRoleAssignedObjectGroup }, optional: false, nullable: false + field :created_at, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_object_group.rb b/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_object_group.rb new file mode 100644 index 00000000..d10afb2d --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_object_group.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The group the role is assigned to. + class EventStreamCloudEventOrgGroupRoleAssignedObjectGroup < Internal::Types::Model + extend Auth0::Internal::Types::Union + + member -> { Auth0::Types::EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0 } + member -> { Auth0::Types::EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1 } + member -> { Auth0::Types::EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2 } + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_object_group0.rb b/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_object_group0.rb new file mode 100644 index 00000000..62a60024 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_object_group0.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Reference to a connection group + class EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0 < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :external_id, -> { String }, optional: true, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0TypeEnum }, optional: false, nullable: false + field :connection_id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_object_group0type_enum.rb b/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_object_group0type_enum.rb new file mode 100644 index 00000000..c9191ddd --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_object_group0type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0TypeEnum + extend Auth0::Internal::Types::Enum + + CONNECTION = "connection" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_object_group1.rb b/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_object_group1.rb new file mode 100644 index 00000000..84d1d4fb --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_object_group1.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Reference to an organization group + class EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1 < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :external_id, -> { String }, optional: true, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1TypeEnum }, optional: false, nullable: false + field :organization_id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_object_group1type_enum.rb b/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_object_group1type_enum.rb new file mode 100644 index 00000000..0c6d1b81 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_object_group1type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1TypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION = "organization" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_object_group2.rb b/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_object_group2.rb new file mode 100644 index 00000000..77c42291 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_object_group2.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Reference to a tenant group + class EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2 < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :external_id, -> { String }, optional: true, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2TypeEnum }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_object_group2type_enum.rb b/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_object_group2type_enum.rb new file mode 100644 index 00000000..f879ea94 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_object_group2type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2TypeEnum + extend Auth0::Internal::Types::Enum + + TENANT = "tenant" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_object_organization.rb b/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_object_organization.rb new file mode 100644 index 00000000..eea3643c --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_object_organization.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The organization the group role is assigned in. + class EventStreamCloudEventOrgGroupRoleAssignedObjectOrganization < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_object_role.rb b/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_object_role.rb new file mode 100644 index 00000000..a37aa954 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_object_role.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The role assigned to the group in the organization. + class EventStreamCloudEventOrgGroupRoleAssignedObjectRole < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :name, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_type_enum.rb new file mode 100644 index 00000000..b01b3d6a --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgGroupRoleAssignedTypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION_GROUP_ROLE_ASSIGNED = "organization.group.role.assigned" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted.rb b/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted.rb new file mode 100644 index 00000000..f0f6124f --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # SSE message for organization.group.role.deleted. + class EventStreamCloudEventOrgGroupRoleDeleted < Internal::Types::Model + field :offset, -> { String }, optional: false, nullable: false + field :event, -> { Auth0::Types::EventStreamCloudEventOrgGroupRoleDeletedCloudEvent }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_cloud_event.rb b/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_cloud_event.rb new file mode 100644 index 00000000..b49b6c96 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_cloud_event.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Represents an event that occurs when a role is removed from an organization group. + class EventStreamCloudEventOrgGroupRoleDeletedCloudEvent < Internal::Types::Model + field :specversion, -> { String }, optional: false, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventOrgGroupRoleDeletedCloudEventTypeEnum }, optional: false, nullable: false + field :source, -> { String }, optional: false, nullable: false + field :id, -> { String }, optional: false, nullable: false + field :time, -> { String }, optional: false, nullable: false + field :data, -> { Auth0::Types::EventStreamCloudEventOrgGroupRoleDeletedData }, optional: false, nullable: false + field :a0tenant, -> { String }, optional: false, nullable: false + field :a0stream, -> { String }, optional: false, nullable: false + field :a0purpose, -> { Auth0::Types::EventStreamCloudEventA0PurposeEnum }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_cloud_event_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_cloud_event_type_enum.rb new file mode 100644 index 00000000..9d53e9fb --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_cloud_event_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgGroupRoleDeletedCloudEventTypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION_GROUP_ROLE_DELETED = "organization.group.role.deleted" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_data.rb b/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_data.rb new file mode 100644 index 00000000..6e647503 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_data.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event payload. + class EventStreamCloudEventOrgGroupRoleDeletedData < Internal::Types::Model + field :object, -> { Auth0::Types::EventStreamCloudEventOrgGroupRoleDeletedObject }, optional: false, nullable: false + field :context, -> { Auth0::Types::EventStreamCloudEventContext }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_object.rb b/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_object.rb new file mode 100644 index 00000000..f0d2571c --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_object.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event content. + class EventStreamCloudEventOrgGroupRoleDeletedObject < Internal::Types::Model + field :organization, -> { Auth0::Types::EventStreamCloudEventOrgGroupRoleDeletedObjectOrganization }, optional: false, nullable: false + field :role, -> { Auth0::Types::EventStreamCloudEventOrgGroupRoleDeletedObjectRole }, optional: false, nullable: false + field :group, -> { Auth0::Types::EventStreamCloudEventOrgGroupRoleDeletedObjectGroup }, optional: false, nullable: false + field :deleted_at, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_object_group.rb b/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_object_group.rb new file mode 100644 index 00000000..ce02c2d9 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_object_group.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The group the role is removed from. + class EventStreamCloudEventOrgGroupRoleDeletedObjectGroup < Internal::Types::Model + extend Auth0::Internal::Types::Union + + member -> { Auth0::Types::EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0 } + member -> { Auth0::Types::EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1 } + member -> { Auth0::Types::EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2 } + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_object_group0.rb b/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_object_group0.rb new file mode 100644 index 00000000..455012a4 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_object_group0.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Reference to a connection group + class EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0 < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :external_id, -> { String }, optional: true, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0TypeEnum }, optional: false, nullable: false + field :connection_id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_object_group0type_enum.rb b/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_object_group0type_enum.rb new file mode 100644 index 00000000..2e5ca8bf --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_object_group0type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0TypeEnum + extend Auth0::Internal::Types::Enum + + CONNECTION = "connection" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_object_group1.rb b/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_object_group1.rb new file mode 100644 index 00000000..d17c9d2e --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_object_group1.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Reference to an organization group + class EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1 < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :external_id, -> { String }, optional: true, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1TypeEnum }, optional: false, nullable: false + field :organization_id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_object_group1type_enum.rb b/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_object_group1type_enum.rb new file mode 100644 index 00000000..e38cfa76 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_object_group1type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1TypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION = "organization" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_object_group2.rb b/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_object_group2.rb new file mode 100644 index 00000000..bea2053b --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_object_group2.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Reference to a tenant group + class EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2 < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :external_id, -> { String }, optional: true, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2TypeEnum }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_object_group2type_enum.rb b/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_object_group2type_enum.rb new file mode 100644 index 00000000..06686e54 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_object_group2type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2TypeEnum + extend Auth0::Internal::Types::Enum + + TENANT = "tenant" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_object_organization.rb b/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_object_organization.rb new file mode 100644 index 00000000..b9ea79e4 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_object_organization.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The organization the group role is removed from. + class EventStreamCloudEventOrgGroupRoleDeletedObjectOrganization < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_object_role.rb b/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_object_role.rb new file mode 100644 index 00000000..b524dcb2 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_object_role.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The role removed from the group. + class EventStreamCloudEventOrgGroupRoleDeletedObjectRole < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_type_enum.rb new file mode 100644 index 00000000..9c5c61b3 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgGroupRoleDeletedTypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION_GROUP_ROLE_DELETED = "organization.group.role.deleted" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_added.rb b/lib/auth0/types/event_stream_cloud_event_org_member_added.rb new file mode 100644 index 00000000..7b54e6b9 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_added.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # SSE message for organization.member.added. + class EventStreamCloudEventOrgMemberAdded < Internal::Types::Model + field :offset, -> { String }, optional: false, nullable: false + field :event, -> { Auth0::Types::EventStreamCloudEventOrgMemberAddedCloudEvent }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_added_cloud_event.rb b/lib/auth0/types/event_stream_cloud_event_org_member_added_cloud_event.rb new file mode 100644 index 00000000..e8efccdd --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_added_cloud_event.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Represents an event that occurs when a member is added to an organization. + class EventStreamCloudEventOrgMemberAddedCloudEvent < Internal::Types::Model + field :specversion, -> { String }, optional: false, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventOrgMemberAddedCloudEventTypeEnum }, optional: false, nullable: false + field :source, -> { String }, optional: false, nullable: false + field :id, -> { String }, optional: false, nullable: false + field :time, -> { String }, optional: false, nullable: false + field :data, -> { Auth0::Types::EventStreamCloudEventOrgMemberAddedData }, optional: false, nullable: false + field :a0tenant, -> { String }, optional: false, nullable: false + field :a0stream, -> { String }, optional: false, nullable: false + field :a0purpose, -> { Auth0::Types::EventStreamCloudEventA0PurposeEnum }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_added_cloud_event_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_org_member_added_cloud_event_type_enum.rb new file mode 100644 index 00000000..2147d495 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_added_cloud_event_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgMemberAddedCloudEventTypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION_MEMBER_ADDED = "organization.member.added" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_added_data.rb b/lib/auth0/types/event_stream_cloud_event_org_member_added_data.rb new file mode 100644 index 00000000..4eb2a1b0 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_added_data.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event payload. + class EventStreamCloudEventOrgMemberAddedData < Internal::Types::Model + field :object, -> { Auth0::Types::EventStreamCloudEventOrgMemberAddedObject }, optional: false, nullable: false + field :context, -> { Auth0::Types::EventStreamCloudEventContext }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_added_object.rb b/lib/auth0/types/event_stream_cloud_event_org_member_added_object.rb new file mode 100644 index 00000000..983179c6 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_added_object.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event content. + class EventStreamCloudEventOrgMemberAddedObject < Internal::Types::Model + field :organization, -> { Auth0::Types::EventStreamCloudEventOrgMemberAddedObjectOrganization }, optional: false, nullable: false + field :user, -> { Auth0::Types::EventStreamCloudEventOrgMemberAddedObjectUser }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_added_object_organization.rb b/lib/auth0/types/event_stream_cloud_event_org_member_added_object_organization.rb new file mode 100644 index 00000000..936228ac --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_added_object_organization.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The organization the member belongs to. + class EventStreamCloudEventOrgMemberAddedObjectOrganization < Internal::Types::Model + field :name, -> { String }, optional: true, nullable: false + field :id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_added_object_user.rb b/lib/auth0/types/event_stream_cloud_event_org_member_added_object_user.rb new file mode 100644 index 00000000..0baf1207 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_added_object_user.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The user that is a member of the organization. + class EventStreamCloudEventOrgMemberAddedObjectUser < Internal::Types::Model + field :user_id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_added_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_org_member_added_type_enum.rb new file mode 100644 index 00000000..8836b72a --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_added_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgMemberAddedTypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION_MEMBER_ADDED = "organization.member.added" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_deleted.rb b/lib/auth0/types/event_stream_cloud_event_org_member_deleted.rb new file mode 100644 index 00000000..904ae61d --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_deleted.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # SSE message for organization.member.deleted. + class EventStreamCloudEventOrgMemberDeleted < Internal::Types::Model + field :offset, -> { String }, optional: false, nullable: false + field :event, -> { Auth0::Types::EventStreamCloudEventOrgMemberDeletedCloudEvent }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_deleted_cloud_event.rb b/lib/auth0/types/event_stream_cloud_event_org_member_deleted_cloud_event.rb new file mode 100644 index 00000000..1fd27b32 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_deleted_cloud_event.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Represents an event that occurs when a member is removed from an organization. + class EventStreamCloudEventOrgMemberDeletedCloudEvent < Internal::Types::Model + field :specversion, -> { String }, optional: false, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventOrgMemberDeletedCloudEventTypeEnum }, optional: false, nullable: false + field :source, -> { String }, optional: false, nullable: false + field :id, -> { String }, optional: false, nullable: false + field :time, -> { String }, optional: false, nullable: false + field :data, -> { Auth0::Types::EventStreamCloudEventOrgMemberDeletedData }, optional: false, nullable: false + field :a0tenant, -> { String }, optional: false, nullable: false + field :a0stream, -> { String }, optional: false, nullable: false + field :a0purpose, -> { Auth0::Types::EventStreamCloudEventA0PurposeEnum }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_deleted_cloud_event_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_org_member_deleted_cloud_event_type_enum.rb new file mode 100644 index 00000000..aff17035 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_deleted_cloud_event_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgMemberDeletedCloudEventTypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION_MEMBER_DELETED = "organization.member.deleted" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_deleted_data.rb b/lib/auth0/types/event_stream_cloud_event_org_member_deleted_data.rb new file mode 100644 index 00000000..75a125d3 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_deleted_data.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event payload. + class EventStreamCloudEventOrgMemberDeletedData < Internal::Types::Model + field :object, -> { Auth0::Types::EventStreamCloudEventOrgMemberDeletedObject }, optional: false, nullable: false + field :context, -> { Auth0::Types::EventStreamCloudEventContext }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_deleted_object.rb b/lib/auth0/types/event_stream_cloud_event_org_member_deleted_object.rb new file mode 100644 index 00000000..eb0446bb --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_deleted_object.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event content. + class EventStreamCloudEventOrgMemberDeletedObject < Internal::Types::Model + field :organization, -> { Auth0::Types::EventStreamCloudEventOrgMemberDeletedObjectOrganization }, optional: false, nullable: false + field :user, -> { Auth0::Types::EventStreamCloudEventOrgMemberDeletedObjectUser }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_deleted_object_organization.rb b/lib/auth0/types/event_stream_cloud_event_org_member_deleted_object_organization.rb new file mode 100644 index 00000000..99334b3d --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_deleted_object_organization.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The organization the member belongs to. + class EventStreamCloudEventOrgMemberDeletedObjectOrganization < Internal::Types::Model + field :name, -> { String }, optional: true, nullable: false + field :id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_deleted_object_user.rb b/lib/auth0/types/event_stream_cloud_event_org_member_deleted_object_user.rb new file mode 100644 index 00000000..2c16f062 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_deleted_object_user.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The user that is a member of the organization. + class EventStreamCloudEventOrgMemberDeletedObjectUser < Internal::Types::Model + field :user_id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_deleted_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_org_member_deleted_type_enum.rb new file mode 100644 index 00000000..e235b5bb --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_deleted_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgMemberDeletedTypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION_MEMBER_DELETED = "organization.member.deleted" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_role_assigned.rb b/lib/auth0/types/event_stream_cloud_event_org_member_role_assigned.rb new file mode 100644 index 00000000..a1f7ee64 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_role_assigned.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # SSE message for organization.member.role.assigned. + class EventStreamCloudEventOrgMemberRoleAssigned < Internal::Types::Model + field :offset, -> { String }, optional: false, nullable: false + field :event, -> { Auth0::Types::EventStreamCloudEventOrgMemberRoleAssignedCloudEvent }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_role_assigned_cloud_event.rb b/lib/auth0/types/event_stream_cloud_event_org_member_role_assigned_cloud_event.rb new file mode 100644 index 00000000..71e42dc9 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_role_assigned_cloud_event.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Represents an event that occurs when a member is added to an organization. + class EventStreamCloudEventOrgMemberRoleAssignedCloudEvent < Internal::Types::Model + field :specversion, -> { String }, optional: false, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventOrgMemberRoleAssignedCloudEventTypeEnum }, optional: false, nullable: false + field :source, -> { String }, optional: false, nullable: false + field :id, -> { String }, optional: false, nullable: false + field :time, -> { String }, optional: false, nullable: false + field :data, -> { Auth0::Types::EventStreamCloudEventOrgMemberRoleAssignedData }, optional: false, nullable: false + field :a0tenant, -> { String }, optional: false, nullable: false + field :a0stream, -> { String }, optional: false, nullable: false + field :a0purpose, -> { Auth0::Types::EventStreamCloudEventA0PurposeEnum }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_role_assigned_cloud_event_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_org_member_role_assigned_cloud_event_type_enum.rb new file mode 100644 index 00000000..bccebf74 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_role_assigned_cloud_event_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgMemberRoleAssignedCloudEventTypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION_MEMBER_ROLE_ASSIGNED = "organization.member.role.assigned" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_role_assigned_data.rb b/lib/auth0/types/event_stream_cloud_event_org_member_role_assigned_data.rb new file mode 100644 index 00000000..192ff1f6 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_role_assigned_data.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event payload. + class EventStreamCloudEventOrgMemberRoleAssignedData < Internal::Types::Model + field :object, -> { Auth0::Types::EventStreamCloudEventOrgMemberRoleAssignedObject }, optional: false, nullable: false + field :context, -> { Auth0::Types::EventStreamCloudEventContext }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_role_assigned_object.rb b/lib/auth0/types/event_stream_cloud_event_org_member_role_assigned_object.rb new file mode 100644 index 00000000..d139d537 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_role_assigned_object.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event content. + class EventStreamCloudEventOrgMemberRoleAssignedObject < Internal::Types::Model + field :organization, -> { Auth0::Types::EventStreamCloudEventOrgMemberRoleAssignedObjectOrganization }, optional: false, nullable: false + field :user, -> { Auth0::Types::EventStreamCloudEventOrgMemberRoleAssignedObjectUser }, optional: false, nullable: false + field :role, -> { Auth0::Types::EventStreamCloudEventOrgMemberRoleAssignedObjectRole }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_role_assigned_object_organization.rb b/lib/auth0/types/event_stream_cloud_event_org_member_role_assigned_object_organization.rb new file mode 100644 index 00000000..4a0fa457 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_role_assigned_object_organization.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The organization the member belongs to. + class EventStreamCloudEventOrgMemberRoleAssignedObjectOrganization < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_role_assigned_object_role.rb b/lib/auth0/types/event_stream_cloud_event_org_member_role_assigned_object_role.rb new file mode 100644 index 00000000..67766431 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_role_assigned_object_role.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The role assigned to the user in the organization. + class EventStreamCloudEventOrgMemberRoleAssignedObjectRole < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :name, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_role_assigned_object_user.rb b/lib/auth0/types/event_stream_cloud_event_org_member_role_assigned_object_user.rb new file mode 100644 index 00000000..63d6c214 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_role_assigned_object_user.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The user that is a member of the organization. + class EventStreamCloudEventOrgMemberRoleAssignedObjectUser < Internal::Types::Model + field :user_id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_role_assigned_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_org_member_role_assigned_type_enum.rb new file mode 100644 index 00000000..ac229212 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_role_assigned_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgMemberRoleAssignedTypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION_MEMBER_ROLE_ASSIGNED = "organization.member.role.assigned" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_role_deleted.rb b/lib/auth0/types/event_stream_cloud_event_org_member_role_deleted.rb new file mode 100644 index 00000000..e87ca7a5 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_role_deleted.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # SSE message for organization.member.role.deleted. + class EventStreamCloudEventOrgMemberRoleDeleted < Internal::Types::Model + field :offset, -> { String }, optional: false, nullable: false + field :event, -> { Auth0::Types::EventStreamCloudEventOrgMemberRoleDeletedCloudEvent }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_role_deleted_cloud_event.rb b/lib/auth0/types/event_stream_cloud_event_org_member_role_deleted_cloud_event.rb new file mode 100644 index 00000000..7430aec1 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_role_deleted_cloud_event.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Represents an event that occurs when a member is removed from an organization. + class EventStreamCloudEventOrgMemberRoleDeletedCloudEvent < Internal::Types::Model + field :specversion, -> { String }, optional: false, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventOrgMemberRoleDeletedCloudEventTypeEnum }, optional: false, nullable: false + field :source, -> { String }, optional: false, nullable: false + field :id, -> { String }, optional: false, nullable: false + field :time, -> { String }, optional: false, nullable: false + field :data, -> { Auth0::Types::EventStreamCloudEventOrgMemberRoleDeletedData }, optional: false, nullable: false + field :a0tenant, -> { String }, optional: false, nullable: false + field :a0stream, -> { String }, optional: false, nullable: false + field :a0purpose, -> { Auth0::Types::EventStreamCloudEventA0PurposeEnum }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_role_deleted_cloud_event_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_org_member_role_deleted_cloud_event_type_enum.rb new file mode 100644 index 00000000..92729a60 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_role_deleted_cloud_event_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgMemberRoleDeletedCloudEventTypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION_MEMBER_ROLE_DELETED = "organization.member.role.deleted" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_role_deleted_data.rb b/lib/auth0/types/event_stream_cloud_event_org_member_role_deleted_data.rb new file mode 100644 index 00000000..8449f5ee --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_role_deleted_data.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event payload. + class EventStreamCloudEventOrgMemberRoleDeletedData < Internal::Types::Model + field :object, -> { Auth0::Types::EventStreamCloudEventOrgMemberRoleDeletedObject }, optional: false, nullable: false + field :context, -> { Auth0::Types::EventStreamCloudEventContext }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_role_deleted_object.rb b/lib/auth0/types/event_stream_cloud_event_org_member_role_deleted_object.rb new file mode 100644 index 00000000..f657abbc --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_role_deleted_object.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event content. + class EventStreamCloudEventOrgMemberRoleDeletedObject < Internal::Types::Model + field :organization, -> { Auth0::Types::EventStreamCloudEventOrgMemberRoleDeletedObjectOrganization }, optional: false, nullable: false + field :user, -> { Auth0::Types::EventStreamCloudEventOrgMemberRoleDeletedObjectUser }, optional: false, nullable: false + field :role, -> { Auth0::Types::EventStreamCloudEventOrgMemberRoleDeletedObjectRole }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_role_deleted_object_organization.rb b/lib/auth0/types/event_stream_cloud_event_org_member_role_deleted_object_organization.rb new file mode 100644 index 00000000..183a1fb2 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_role_deleted_object_organization.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The organization the member belongs to. + class EventStreamCloudEventOrgMemberRoleDeletedObjectOrganization < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_role_deleted_object_role.rb b/lib/auth0/types/event_stream_cloud_event_org_member_role_deleted_object_role.rb new file mode 100644 index 00000000..c20ab425 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_role_deleted_object_role.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The role assigned to the user in the organization. + class EventStreamCloudEventOrgMemberRoleDeletedObjectRole < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + field :name, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_role_deleted_object_user.rb b/lib/auth0/types/event_stream_cloud_event_org_member_role_deleted_object_user.rb new file mode 100644 index 00000000..7d4e35dc --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_role_deleted_object_user.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The user that is a member of the organization. + class EventStreamCloudEventOrgMemberRoleDeletedObjectUser < Internal::Types::Model + field :user_id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_member_role_deleted_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_org_member_role_deleted_type_enum.rb new file mode 100644 index 00000000..8641caf1 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_member_role_deleted_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgMemberRoleDeletedTypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION_MEMBER_ROLE_DELETED = "organization.member.role.deleted" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_updated.rb b/lib/auth0/types/event_stream_cloud_event_org_updated.rb new file mode 100644 index 00000000..b073589a --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_updated.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # SSE message for organization.updated. + class EventStreamCloudEventOrgUpdated < Internal::Types::Model + field :offset, -> { String }, optional: false, nullable: false + field :event, -> { Auth0::Types::EventStreamCloudEventOrgUpdatedCloudEvent }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_updated_cloud_event.rb b/lib/auth0/types/event_stream_cloud_event_org_updated_cloud_event.rb new file mode 100644 index 00000000..ed48353d --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_updated_cloud_event.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Represents an event that occurs when an organization is updated. + class EventStreamCloudEventOrgUpdatedCloudEvent < Internal::Types::Model + field :specversion, -> { String }, optional: false, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventOrgUpdatedCloudEventTypeEnum }, optional: false, nullable: false + field :source, -> { String }, optional: false, nullable: false + field :id, -> { String }, optional: false, nullable: false + field :time, -> { String }, optional: false, nullable: false + field :data, -> { Auth0::Types::EventStreamCloudEventOrgUpdatedData }, optional: false, nullable: false + field :a0tenant, -> { String }, optional: false, nullable: false + field :a0stream, -> { String }, optional: false, nullable: false + field :a0purpose, -> { Auth0::Types::EventStreamCloudEventA0PurposeEnum }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_updated_cloud_event_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_org_updated_cloud_event_type_enum.rb new file mode 100644 index 00000000..465bb071 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_updated_cloud_event_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgUpdatedCloudEventTypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION_UPDATED = "organization.updated" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_updated_data.rb b/lib/auth0/types/event_stream_cloud_event_org_updated_data.rb new file mode 100644 index 00000000..6ba97571 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_updated_data.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event payload. + class EventStreamCloudEventOrgUpdatedData < Internal::Types::Model + field :object, -> { Auth0::Types::EventStreamCloudEventOrgUpdatedObject }, optional: false, nullable: false + field :context, -> { Auth0::Types::EventStreamCloudEventContext }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_updated_object.rb b/lib/auth0/types/event_stream_cloud_event_org_updated_object.rb new file mode 100644 index 00000000..9830d657 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_updated_object.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event content. + class EventStreamCloudEventOrgUpdatedObject < Internal::Types::Model + field :name, -> { String }, optional: true, nullable: false + field :id, -> { String }, optional: false, nullable: false + field :display_name, -> { String }, optional: true, nullable: false + field :metadata, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false + field :branding, -> { Auth0::Types::EventStreamCloudEventOrgUpdatedObjectBranding }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_updated_object_branding.rb b/lib/auth0/types/event_stream_cloud_event_org_updated_object_branding.rb new file mode 100644 index 00000000..7a1d77ec --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_updated_object_branding.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The branding associated with the organization. + class EventStreamCloudEventOrgUpdatedObjectBranding < Internal::Types::Model + field :logo_url, -> { String }, optional: true, nullable: false + field :colors, -> { Auth0::Types::EventStreamCloudEventOrgUpdatedObjectBrandingColors }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_updated_object_branding_colors.rb b/lib/auth0/types/event_stream_cloud_event_org_updated_object_branding_colors.rb new file mode 100644 index 00000000..1893ab57 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_updated_object_branding_colors.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Color scheme used to customize the login pages. + class EventStreamCloudEventOrgUpdatedObjectBrandingColors < Internal::Types::Model + field :primary, -> { String }, optional: true, nullable: false + field :page_background, -> { String }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_updated_object_metadata.rb b/lib/auth0/types/event_stream_cloud_event_org_updated_object_metadata.rb new file mode 100644 index 00000000..5bc8678b --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_updated_object_metadata.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgUpdatedObjectMetadata + # EventStreamCloudEventOrgUpdatedObjectMetadata is an alias for Hash + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_org_updated_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_org_updated_type_enum.rb new file mode 100644 index 00000000..fbba8a46 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_org_updated_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventOrgUpdatedTypeEnum + extend Auth0::Internal::Types::Enum + + ORGANIZATION_UPDATED = "organization.updated" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created.rb b/lib/auth0/types/event_stream_cloud_event_user_created.rb new file mode 100644 index 00000000..43e27974 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # SSE message for user.created. + class EventStreamCloudEventUserCreated < Internal::Types::Model + field :offset, -> { String }, optional: false, nullable: false + field :event, -> { Auth0::Types::EventStreamCloudEventUserCreatedCloudEvent }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_cloud_event.rb b/lib/auth0/types/event_stream_cloud_event_user_created_cloud_event.rb new file mode 100644 index 00000000..9bc3fc10 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_cloud_event.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Represents an event that occurs when a user is created. + class EventStreamCloudEventUserCreatedCloudEvent < Internal::Types::Model + field :specversion, -> { String }, optional: false, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventUserCreatedCloudEventTypeEnum }, optional: false, nullable: false + field :source, -> { String }, optional: false, nullable: false + field :id, -> { String }, optional: false, nullable: false + field :time, -> { String }, optional: false, nullable: false + field :data, -> { Auth0::Types::EventStreamCloudEventUserCreatedData }, optional: false, nullable: false + field :a0tenant, -> { String }, optional: false, nullable: false + field :a0stream, -> { String }, optional: false, nullable: false + field :a0purpose, -> { Auth0::Types::EventStreamCloudEventA0PurposeEnum }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_cloud_event_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_created_cloud_event_type_enum.rb new file mode 100644 index 00000000..64f0c794 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_cloud_event_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserCreatedCloudEventTypeEnum + extend Auth0::Internal::Types::Enum + + USER_CREATED = "user.created" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_data.rb b/lib/auth0/types/event_stream_cloud_event_user_created_data.rb new file mode 100644 index 00000000..21e184c6 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_data.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event payload. + class EventStreamCloudEventUserCreatedData < Internal::Types::Model + field :object, -> { Auth0::Types::EventStreamCloudEventUserCreatedObject }, optional: false, nullable: false + field :context, -> { Auth0::Types::EventStreamCloudEventContext }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_object.rb b/lib/auth0/types/event_stream_cloud_event_user_created_object.rb new file mode 100644 index 00000000..b52bdef6 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_object.rb @@ -0,0 +1,30 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event content. + class EventStreamCloudEventUserCreatedObject < Internal::Types::Model + field :user_id, -> { String }, optional: false, nullable: false + field :email, -> { String }, optional: true, nullable: false + field :email_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :username, -> { String }, optional: true, nullable: false + field :phone_number, -> { String }, optional: true, nullable: false + field :phone_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :created_at, -> { String }, optional: false, nullable: false + field :updated_at, -> { String }, optional: false, nullable: false + field :identities, -> { Internal::Types::Array[Auth0::Types::EventStreamCloudEventUserCreatedObjectIdentitiesItem] }, optional: false, nullable: false + field :app_metadata, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false + field :user_metadata, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false + field :picture, -> { String }, optional: true, nullable: false + field :name, -> { String }, optional: true, nullable: false + field :nickname, -> { String }, optional: true, nullable: false + field :multifactor, -> { Internal::Types::Array[String] }, optional: true, nullable: false + field :last_ip, -> { String }, optional: true, nullable: false + field :last_login, -> { String }, optional: true, nullable: false + field :logins_count, -> { Integer }, optional: true, nullable: false + field :blocked, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :given_name, -> { String }, optional: true, nullable: false + field :family_name, -> { String }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_object_app_metadata.rb b/lib/auth0/types/event_stream_cloud_event_user_created_object_app_metadata.rb new file mode 100644 index 00000000..8dd190bd --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_object_app_metadata.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserCreatedObjectAppMetadata + # EventStreamCloudEventUserCreatedObjectAppMetadata is an alias for Hash + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item.rb b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item.rb new file mode 100644 index 00000000..8020d6eb --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Identity object when accounts are linked. + class EventStreamCloudEventUserCreatedObjectIdentitiesItem < Internal::Types::Model + extend Auth0::Internal::Types::Union + + member -> { Auth0::Types::EventStreamCloudEventUserCreatedObjectIdentitiesItemCustom } + member -> { Auth0::Types::EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabase } + member -> { Auth0::Types::EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterprise } + member -> { Auth0::Types::EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordless } + member -> { Auth0::Types::EventStreamCloudEventUserCreatedObjectIdentitiesItemSocial } + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_custom.rb b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_custom.rb new file mode 100644 index 00000000..f6862ce4 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_custom.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The identity object for custom identity providers. + class EventStreamCloudEventUserCreatedObjectIdentitiesItemCustom < Internal::Types::Model + field :connection, -> { String }, optional: false, nullable: false + field :user_id, -> { Auth0::Types::EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomUserID }, optional: false, nullable: false + field :profile_data, -> { Auth0::Types::EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomProfileData }, optional: true, nullable: false, api_name: "profileData" + field :provider, -> { Auth0::Types::EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomProviderEnum }, optional: false, nullable: false + field :is_social, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isSocial" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_custom_is_social_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_custom_is_social_enum.rb new file mode 100644 index 00000000..867c68d5 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_custom_is_social_enum.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomIsSocialEnum + # EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomIsSocialEnum is an alias for Boolean + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_custom_profile_data.rb b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_custom_profile_data.rb new file mode 100644 index 00000000..3df46ab7 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_custom_profile_data.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Profile data for the user. + class EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomProfileData < Internal::Types::Model + field :email, -> { String }, optional: true, nullable: false + field :email_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :name, -> { String }, optional: true, nullable: false + field :username, -> { String }, optional: true, nullable: false + field :given_name, -> { String }, optional: true, nullable: false + field :family_name, -> { String }, optional: true, nullable: false + field :phone_number, -> { String }, optional: true, nullable: false + field :phone_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_custom_provider_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_custom_provider_enum.rb new file mode 100644 index 00000000..779057ef --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_custom_provider_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomProviderEnum + extend Auth0::Internal::Types::Enum + + CUSTOM = "custom" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_custom_user_id.rb b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_custom_user_id.rb new file mode 100644 index 00000000..83acf6b1 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_custom_user_id.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The IDP-specific identifer for the user. + class EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomUserID < Internal::Types::Model + extend Auth0::Internal::Types::Union + + member -> { String } + member -> { Integer } + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_database.rb b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_database.rb new file mode 100644 index 00000000..cd2402c8 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_database.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The identity object for database identity providers. + class EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabase < Internal::Types::Model + field :connection, -> { String }, optional: false, nullable: false + field :user_id, -> { Auth0::Types::EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseUserID }, optional: false, nullable: false + field :profile_data, -> { Auth0::Types::EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseProfileData }, optional: true, nullable: false, api_name: "profileData" + field :provider, -> { Auth0::Types::EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseProviderEnum }, optional: false, nullable: false + field :is_social, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isSocial" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_database_is_social_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_database_is_social_enum.rb new file mode 100644 index 00000000..3b87046f --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_database_is_social_enum.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseIsSocialEnum + # EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseIsSocialEnum is an alias for Boolean + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_database_profile_data.rb b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_database_profile_data.rb new file mode 100644 index 00000000..af564eaa --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_database_profile_data.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Profile data for the user. + class EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseProfileData < Internal::Types::Model + field :email, -> { String }, optional: true, nullable: false + field :email_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :name, -> { String }, optional: true, nullable: false + field :username, -> { String }, optional: true, nullable: false + field :given_name, -> { String }, optional: true, nullable: false + field :family_name, -> { String }, optional: true, nullable: false + field :phone_number, -> { String }, optional: true, nullable: false + field :phone_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_database_provider_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_database_provider_enum.rb new file mode 100644 index 00000000..50f73838 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_database_provider_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseProviderEnum + extend Auth0::Internal::Types::Enum + + AUTH0 = "auth0" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_database_user_id.rb b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_database_user_id.rb new file mode 100644 index 00000000..144bba67 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_database_user_id.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The IDP-specific identifer for the user. + class EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseUserID < Internal::Types::Model + extend Auth0::Internal::Types::Union + + member -> { String } + member -> { Integer } + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_enterprise.rb b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_enterprise.rb new file mode 100644 index 00000000..064352f0 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_enterprise.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The identity object for enterprise identity providers. + class EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterprise < Internal::Types::Model + field :connection, -> { String }, optional: false, nullable: false + field :user_id, -> { Auth0::Types::EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseUserID }, optional: false, nullable: false + field :profile_data, -> { Auth0::Types::EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseProfileData }, optional: true, nullable: false, api_name: "profileData" + field :provider, -> { Auth0::Types::EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseProviderEnum }, optional: false, nullable: false + field :is_social, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isSocial" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_enterprise_is_social_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_enterprise_is_social_enum.rb new file mode 100644 index 00000000..4e9e996a --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_enterprise_is_social_enum.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseIsSocialEnum + # EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseIsSocialEnum is an alias for Boolean + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_enterprise_profile_data.rb b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_enterprise_profile_data.rb new file mode 100644 index 00000000..bd5c93bf --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_enterprise_profile_data.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Profile data for the user. + class EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseProfileData < Internal::Types::Model + field :email, -> { String }, optional: true, nullable: false + field :email_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :name, -> { String }, optional: true, nullable: false + field :username, -> { String }, optional: true, nullable: false + field :given_name, -> { String }, optional: true, nullable: false + field :family_name, -> { String }, optional: true, nullable: false + field :phone_number, -> { String }, optional: true, nullable: false + field :phone_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_enterprise_provider_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_enterprise_provider_enum.rb new file mode 100644 index 00000000..3d6f55a5 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_enterprise_provider_enum.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseProviderEnum + extend Auth0::Internal::Types::Enum + + AD = "ad" + ADFS = "adfs" + GOOGLE_APPS = "google-apps" + IP = "ip" + OFFICE365 = "office365" + OIDC = "oidc" + OKTA = "okta" + PINGFEDERATE = "pingfederate" + SAMLP = "samlp" + SHAREPOINT = "sharepoint" + WAAD = "waad" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_enterprise_user_id.rb b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_enterprise_user_id.rb new file mode 100644 index 00000000..5589b932 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_enterprise_user_id.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The IDP-specific identifer for the user. + class EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseUserID < Internal::Types::Model + extend Auth0::Internal::Types::Union + + member -> { String } + member -> { Integer } + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_passwordless.rb b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_passwordless.rb new file mode 100644 index 00000000..453f39d6 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_passwordless.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The identity object for passwordless identity providers. + class EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordless < Internal::Types::Model + field :connection, -> { String }, optional: false, nullable: false + field :user_id, -> { Auth0::Types::EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessUserID }, optional: false, nullable: false + field :profile_data, -> { Auth0::Types::EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessProfileData }, optional: true, nullable: false, api_name: "profileData" + field :provider, -> { Auth0::Types::EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessProviderEnum }, optional: false, nullable: false + field :is_social, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isSocial" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_passwordless_is_social_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_passwordless_is_social_enum.rb new file mode 100644 index 00000000..583e8df0 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_passwordless_is_social_enum.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessIsSocialEnum + # EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessIsSocialEnum is an alias for Boolean + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_passwordless_profile_data.rb b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_passwordless_profile_data.rb new file mode 100644 index 00000000..615a4384 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_passwordless_profile_data.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Profile data for the user. + class EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessProfileData < Internal::Types::Model + field :email, -> { String }, optional: true, nullable: false + field :email_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :name, -> { String }, optional: true, nullable: false + field :username, -> { String }, optional: true, nullable: false + field :given_name, -> { String }, optional: true, nullable: false + field :family_name, -> { String }, optional: true, nullable: false + field :phone_number, -> { String }, optional: true, nullable: false + field :phone_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_passwordless_provider_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_passwordless_provider_enum.rb new file mode 100644 index 00000000..8a66a30f --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_passwordless_provider_enum.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessProviderEnum + extend Auth0::Internal::Types::Enum + + EMAIL = "email" + SMS = "sms" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_passwordless_user_id.rb b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_passwordless_user_id.rb new file mode 100644 index 00000000..ef398392 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_passwordless_user_id.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The IDP-specific identifer for the user. + class EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessUserID < Internal::Types::Model + extend Auth0::Internal::Types::Union + + member -> { String } + member -> { Integer } + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_social.rb b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_social.rb new file mode 100644 index 00000000..41d96a6d --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_social.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The identity object for social identity providers. + class EventStreamCloudEventUserCreatedObjectIdentitiesItemSocial < Internal::Types::Model + field :connection, -> { String }, optional: false, nullable: false + field :user_id, -> { Auth0::Types::EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialUserID }, optional: false, nullable: false + field :profile_data, -> { Auth0::Types::EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialProfileData }, optional: true, nullable: false, api_name: "profileData" + field :provider, -> { Auth0::Types::EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialProviderEnum }, optional: false, nullable: false + field :is_social, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isSocial" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_social_is_social_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_social_is_social_enum.rb new file mode 100644 index 00000000..ae0ebf8d --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_social_is_social_enum.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialIsSocialEnum + # EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialIsSocialEnum is an alias for Boolean + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_social_profile_data.rb b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_social_profile_data.rb new file mode 100644 index 00000000..299b9d8a --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_social_profile_data.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Profile data for the user. + class EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialProfileData < Internal::Types::Model + field :email, -> { String }, optional: true, nullable: false + field :email_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :name, -> { String }, optional: true, nullable: false + field :username, -> { String }, optional: true, nullable: false + field :given_name, -> { String }, optional: true, nullable: false + field :family_name, -> { String }, optional: true, nullable: false + field :phone_number, -> { String }, optional: true, nullable: false + field :phone_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_social_provider_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_social_provider_enum.rb new file mode 100644 index 00000000..f519743e --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_social_provider_enum.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialProviderEnum + extend Auth0::Internal::Types::Enum + + AMAZON = "amazon" + APPLE = "apple" + DROPBOX = "dropbox" + BITBUCKET = "bitbucket" + AUTH0OIDC = "auth0-oidc" + BAIDU = "baidu" + BITLY = "bitly" + BOX = "box" + DACCOUNT = "daccount" + DWOLLA = "dwolla" + EVERNOTE_SANDBOX = "evernote-sandbox" + EVERNOTE = "evernote" + EXACT = "exact" + FACEBOOK = "facebook" + FITBIT = "fitbit" + GITHUB = "github" + GOOGLE_OAUTH2 = "google-oauth2" + INSTAGRAM = "instagram" + LINE = "line" + LINKEDIN = "linkedin" + OAUTH1 = "oauth1" + OAUTH2 = "oauth2" + PAYPAL = "paypal" + PAYPAL_SANDBOX = "paypal-sandbox" + PLANNINGCENTER = "planningcenter" + SALESFORCE_COMMUNITY = "salesforce-community" + SALESFORCE_SANDBOX = "salesforce-sandbox" + SALESFORCE = "salesforce" + SHOPIFY = "shopify" + SOUNDCLOUD = "soundcloud" + THIRTYSEVENSIGNALS = "thirtysevensignals" + TWITTER = "twitter" + UNTAPPED = "untapped" + VKONTAKTE = "vkontakte" + WEIBO = "weibo" + WINDOWSLIVE = "windowslive" + WORDPRESS = "wordpress" + YAHOO = "yahoo" + YANDEX = "yandex" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_social_user_id.rb b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_social_user_id.rb new file mode 100644 index 00000000..e50caf6f --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_object_identities_item_social_user_id.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The IDP-specific identifer for the user. + class EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialUserID < Internal::Types::Model + extend Auth0::Internal::Types::Union + + member -> { String } + member -> { Integer } + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_object_user_metadata.rb b/lib/auth0/types/event_stream_cloud_event_user_created_object_user_metadata.rb new file mode 100644 index 00000000..de6f1ce4 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_object_user_metadata.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserCreatedObjectUserMetadata + # EventStreamCloudEventUserCreatedObjectUserMetadata is an alias for Hash + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_created_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_created_type_enum.rb new file mode 100644 index 00000000..f54506e4 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_created_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserCreatedTypeEnum + extend Auth0::Internal::Types::Enum + + USER_CREATED = "user.created" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted.rb new file mode 100644 index 00000000..7c13251f --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # SSE message for user.deleted. + class EventStreamCloudEventUserDeleted < Internal::Types::Model + field :offset, -> { String }, optional: false, nullable: false + field :event, -> { Auth0::Types::EventStreamCloudEventUserDeletedCloudEvent }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_cloud_event.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_cloud_event.rb new file mode 100644 index 00000000..c793b428 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_cloud_event.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Represents an event that occurs when a user is deleted. + class EventStreamCloudEventUserDeletedCloudEvent < Internal::Types::Model + field :specversion, -> { String }, optional: false, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventUserDeletedCloudEventTypeEnum }, optional: false, nullable: false + field :source, -> { String }, optional: false, nullable: false + field :id, -> { String }, optional: false, nullable: false + field :time, -> { String }, optional: false, nullable: false + field :data, -> { Auth0::Types::EventStreamCloudEventUserDeletedData }, optional: false, nullable: false + field :a0tenant, -> { String }, optional: false, nullable: false + field :a0stream, -> { String }, optional: false, nullable: false + field :a0purpose, -> { Auth0::Types::EventStreamCloudEventA0PurposeEnum }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_cloud_event_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_cloud_event_type_enum.rb new file mode 100644 index 00000000..8cdd5995 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_cloud_event_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserDeletedCloudEventTypeEnum + extend Auth0::Internal::Types::Enum + + USER_DELETED = "user.deleted" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_data.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_data.rb new file mode 100644 index 00000000..41ee0068 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_data.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event payload. + class EventStreamCloudEventUserDeletedData < Internal::Types::Model + field :object, -> { Auth0::Types::EventStreamCloudEventUserDeletedObject }, optional: false, nullable: false + field :context, -> { Auth0::Types::EventStreamCloudEventContext }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_object.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_object.rb new file mode 100644 index 00000000..3804e1de --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_object.rb @@ -0,0 +1,31 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event content. + class EventStreamCloudEventUserDeletedObject < Internal::Types::Model + field :user_id, -> { String }, optional: false, nullable: false + field :email, -> { String }, optional: true, nullable: false + field :email_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :username, -> { String }, optional: true, nullable: false + field :phone_number, -> { String }, optional: true, nullable: false + field :phone_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :created_at, -> { String }, optional: false, nullable: false + field :updated_at, -> { String }, optional: false, nullable: false + field :identities, -> { Internal::Types::Array[Auth0::Types::EventStreamCloudEventUserDeletedObjectIdentitiesItem] }, optional: false, nullable: false + field :app_metadata, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false + field :user_metadata, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false + field :picture, -> { String }, optional: true, nullable: false + field :name, -> { String }, optional: true, nullable: false + field :nickname, -> { String }, optional: true, nullable: false + field :multifactor, -> { Internal::Types::Array[String] }, optional: true, nullable: false + field :last_ip, -> { String }, optional: true, nullable: false + field :last_login, -> { String }, optional: true, nullable: false + field :logins_count, -> { Integer }, optional: true, nullable: false + field :blocked, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :given_name, -> { String }, optional: true, nullable: false + field :family_name, -> { String }, optional: true, nullable: false + field :deleted_at, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_object_app_metadata.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_app_metadata.rb new file mode 100644 index 00000000..ca293a92 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_app_metadata.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserDeletedObjectAppMetadata + # EventStreamCloudEventUserDeletedObjectAppMetadata is an alias for Hash + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item.rb new file mode 100644 index 00000000..334ceffc --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Identity object when accounts are linked. + class EventStreamCloudEventUserDeletedObjectIdentitiesItem < Internal::Types::Model + extend Auth0::Internal::Types::Union + + member -> { Auth0::Types::EventStreamCloudEventUserDeletedObjectIdentitiesItemCustom } + member -> { Auth0::Types::EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabase } + member -> { Auth0::Types::EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterprise } + member -> { Auth0::Types::EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordless } + member -> { Auth0::Types::EventStreamCloudEventUserDeletedObjectIdentitiesItemSocial } + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_custom.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_custom.rb new file mode 100644 index 00000000..0b085a4f --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_custom.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The identity object for custom identity providers. + class EventStreamCloudEventUserDeletedObjectIdentitiesItemCustom < Internal::Types::Model + field :connection, -> { String }, optional: false, nullable: false + field :user_id, -> { Auth0::Types::EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomUserID }, optional: false, nullable: false + field :profile_data, -> { Auth0::Types::EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomProfileData }, optional: true, nullable: false, api_name: "profileData" + field :provider, -> { Auth0::Types::EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomProviderEnum }, optional: false, nullable: false + field :is_social, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isSocial" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_custom_is_social_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_custom_is_social_enum.rb new file mode 100644 index 00000000..441490d8 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_custom_is_social_enum.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomIsSocialEnum + # EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomIsSocialEnum is an alias for Boolean + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_custom_profile_data.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_custom_profile_data.rb new file mode 100644 index 00000000..33450619 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_custom_profile_data.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Profile data for the user. + class EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomProfileData < Internal::Types::Model + field :email, -> { String }, optional: true, nullable: false + field :email_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :name, -> { String }, optional: true, nullable: false + field :username, -> { String }, optional: true, nullable: false + field :given_name, -> { String }, optional: true, nullable: false + field :family_name, -> { String }, optional: true, nullable: false + field :phone_number, -> { String }, optional: true, nullable: false + field :phone_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_custom_provider_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_custom_provider_enum.rb new file mode 100644 index 00000000..3698ee49 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_custom_provider_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomProviderEnum + extend Auth0::Internal::Types::Enum + + CUSTOM = "custom" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_custom_user_id.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_custom_user_id.rb new file mode 100644 index 00000000..3f36d99f --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_custom_user_id.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The IDP-specific identifer for the user. + class EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomUserID < Internal::Types::Model + extend Auth0::Internal::Types::Union + + member -> { String } + member -> { Integer } + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_database.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_database.rb new file mode 100644 index 00000000..37c05812 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_database.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The identity object for database identity providers. + class EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabase < Internal::Types::Model + field :connection, -> { String }, optional: false, nullable: false + field :user_id, -> { Auth0::Types::EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseUserID }, optional: false, nullable: false + field :profile_data, -> { Auth0::Types::EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseProfileData }, optional: true, nullable: false, api_name: "profileData" + field :provider, -> { Auth0::Types::EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseProviderEnum }, optional: false, nullable: false + field :is_social, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isSocial" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_database_is_social_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_database_is_social_enum.rb new file mode 100644 index 00000000..bb04fff4 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_database_is_social_enum.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseIsSocialEnum + # EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseIsSocialEnum is an alias for Boolean + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_database_profile_data.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_database_profile_data.rb new file mode 100644 index 00000000..7d8e8b7b --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_database_profile_data.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Profile data for the user. + class EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseProfileData < Internal::Types::Model + field :email, -> { String }, optional: true, nullable: false + field :email_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :name, -> { String }, optional: true, nullable: false + field :username, -> { String }, optional: true, nullable: false + field :given_name, -> { String }, optional: true, nullable: false + field :family_name, -> { String }, optional: true, nullable: false + field :phone_number, -> { String }, optional: true, nullable: false + field :phone_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_database_provider_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_database_provider_enum.rb new file mode 100644 index 00000000..0b933682 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_database_provider_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseProviderEnum + extend Auth0::Internal::Types::Enum + + AUTH0 = "auth0" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_database_user_id.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_database_user_id.rb new file mode 100644 index 00000000..8e296f10 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_database_user_id.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The IDP-specific identifer for the user. + class EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseUserID < Internal::Types::Model + extend Auth0::Internal::Types::Union + + member -> { String } + member -> { Integer } + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise.rb new file mode 100644 index 00000000..1b3bba33 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The identity object for enterprise identity providers. + class EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterprise < Internal::Types::Model + field :connection, -> { String }, optional: false, nullable: false + field :user_id, -> { Auth0::Types::EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseUserID }, optional: false, nullable: false + field :profile_data, -> { Auth0::Types::EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseProfileData }, optional: true, nullable: false, api_name: "profileData" + field :provider, -> { Auth0::Types::EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseProviderEnum }, optional: false, nullable: false + field :is_social, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isSocial" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise_is_social_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise_is_social_enum.rb new file mode 100644 index 00000000..f02be6da --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise_is_social_enum.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseIsSocialEnum + # EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseIsSocialEnum is an alias for Boolean + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise_profile_data.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise_profile_data.rb new file mode 100644 index 00000000..3bf1801c --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise_profile_data.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Profile data for the user. + class EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseProfileData < Internal::Types::Model + field :email, -> { String }, optional: true, nullable: false + field :email_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :name, -> { String }, optional: true, nullable: false + field :username, -> { String }, optional: true, nullable: false + field :given_name, -> { String }, optional: true, nullable: false + field :family_name, -> { String }, optional: true, nullable: false + field :phone_number, -> { String }, optional: true, nullable: false + field :phone_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise_provider_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise_provider_enum.rb new file mode 100644 index 00000000..d99b787c --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise_provider_enum.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseProviderEnum + extend Auth0::Internal::Types::Enum + + AD = "ad" + ADFS = "adfs" + GOOGLE_APPS = "google-apps" + IP = "ip" + OFFICE365 = "office365" + OIDC = "oidc" + OKTA = "okta" + PINGFEDERATE = "pingfederate" + SAMLP = "samlp" + SHAREPOINT = "sharepoint" + WAAD = "waad" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise_user_id.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise_user_id.rb new file mode 100644 index 00000000..22987311 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_enterprise_user_id.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The IDP-specific identifer for the user. + class EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseUserID < Internal::Types::Model + extend Auth0::Internal::Types::Union + + member -> { String } + member -> { Integer } + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless.rb new file mode 100644 index 00000000..2a9e5f30 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The identity object for passwordless identity providers. + class EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordless < Internal::Types::Model + field :connection, -> { String }, optional: false, nullable: false + field :user_id, -> { Auth0::Types::EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessUserID }, optional: false, nullable: false + field :profile_data, -> { Auth0::Types::EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessProfileData }, optional: true, nullable: false, api_name: "profileData" + field :provider, -> { Auth0::Types::EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessProviderEnum }, optional: false, nullable: false + field :is_social, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isSocial" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless_is_social_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless_is_social_enum.rb new file mode 100644 index 00000000..14a152d0 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless_is_social_enum.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessIsSocialEnum + # EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessIsSocialEnum is an alias for Boolean + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless_profile_data.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless_profile_data.rb new file mode 100644 index 00000000..28ddb1ca --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless_profile_data.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Profile data for the user. + class EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessProfileData < Internal::Types::Model + field :email, -> { String }, optional: true, nullable: false + field :email_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :name, -> { String }, optional: true, nullable: false + field :username, -> { String }, optional: true, nullable: false + field :given_name, -> { String }, optional: true, nullable: false + field :family_name, -> { String }, optional: true, nullable: false + field :phone_number, -> { String }, optional: true, nullable: false + field :phone_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless_provider_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless_provider_enum.rb new file mode 100644 index 00000000..c0a87b9c --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless_provider_enum.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessProviderEnum + extend Auth0::Internal::Types::Enum + + EMAIL = "email" + SMS = "sms" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless_user_id.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless_user_id.rb new file mode 100644 index 00000000..4d1bf24f --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_passwordless_user_id.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The IDP-specific identifer for the user. + class EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessUserID < Internal::Types::Model + extend Auth0::Internal::Types::Union + + member -> { String } + member -> { Integer } + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_social.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_social.rb new file mode 100644 index 00000000..951ed769 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_social.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The identity object for social identity providers. + class EventStreamCloudEventUserDeletedObjectIdentitiesItemSocial < Internal::Types::Model + field :connection, -> { String }, optional: false, nullable: false + field :user_id, -> { Auth0::Types::EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialUserID }, optional: false, nullable: false + field :profile_data, -> { Auth0::Types::EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialProfileData }, optional: true, nullable: false, api_name: "profileData" + field :provider, -> { Auth0::Types::EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialProviderEnum }, optional: false, nullable: false + field :is_social, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isSocial" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_social_is_social_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_social_is_social_enum.rb new file mode 100644 index 00000000..ddff982f --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_social_is_social_enum.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialIsSocialEnum + # EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialIsSocialEnum is an alias for Boolean + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_social_profile_data.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_social_profile_data.rb new file mode 100644 index 00000000..96cbeccf --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_social_profile_data.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Profile data for the user. + class EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialProfileData < Internal::Types::Model + field :email, -> { String }, optional: true, nullable: false + field :email_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :name, -> { String }, optional: true, nullable: false + field :username, -> { String }, optional: true, nullable: false + field :given_name, -> { String }, optional: true, nullable: false + field :family_name, -> { String }, optional: true, nullable: false + field :phone_number, -> { String }, optional: true, nullable: false + field :phone_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_social_provider_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_social_provider_enum.rb new file mode 100644 index 00000000..8889a711 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_social_provider_enum.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialProviderEnum + extend Auth0::Internal::Types::Enum + + AMAZON = "amazon" + APPLE = "apple" + DROPBOX = "dropbox" + BITBUCKET = "bitbucket" + AUTH0OIDC = "auth0-oidc" + BAIDU = "baidu" + BITLY = "bitly" + BOX = "box" + DACCOUNT = "daccount" + DWOLLA = "dwolla" + EVERNOTE_SANDBOX = "evernote-sandbox" + EVERNOTE = "evernote" + EXACT = "exact" + FACEBOOK = "facebook" + FITBIT = "fitbit" + GITHUB = "github" + GOOGLE_OAUTH2 = "google-oauth2" + INSTAGRAM = "instagram" + LINE = "line" + LINKEDIN = "linkedin" + OAUTH1 = "oauth1" + OAUTH2 = "oauth2" + PAYPAL = "paypal" + PAYPAL_SANDBOX = "paypal-sandbox" + PLANNINGCENTER = "planningcenter" + SALESFORCE_COMMUNITY = "salesforce-community" + SALESFORCE_SANDBOX = "salesforce-sandbox" + SALESFORCE = "salesforce" + SHOPIFY = "shopify" + SOUNDCLOUD = "soundcloud" + THIRTYSEVENSIGNALS = "thirtysevensignals" + TWITTER = "twitter" + UNTAPPED = "untapped" + VKONTAKTE = "vkontakte" + WEIBO = "weibo" + WINDOWSLIVE = "windowslive" + WORDPRESS = "wordpress" + YAHOO = "yahoo" + YANDEX = "yandex" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_social_user_id.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_social_user_id.rb new file mode 100644 index 00000000..3dbd069f --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_identities_item_social_user_id.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The IDP-specific identifer for the user. + class EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialUserID < Internal::Types::Model + extend Auth0::Internal::Types::Union + + member -> { String } + member -> { Integer } + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_object_user_metadata.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_user_metadata.rb new file mode 100644 index 00000000..3d6660b0 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_object_user_metadata.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserDeletedObjectUserMetadata + # EventStreamCloudEventUserDeletedObjectUserMetadata is an alias for Hash + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_deleted_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_deleted_type_enum.rb new file mode 100644 index 00000000..e7ba1741 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_deleted_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserDeletedTypeEnum + extend Auth0::Internal::Types::Enum + + USER_DELETED = "user.deleted" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated.rb b/lib/auth0/types/event_stream_cloud_event_user_updated.rb new file mode 100644 index 00000000..c55d834b --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # SSE message for user.updated. + class EventStreamCloudEventUserUpdated < Internal::Types::Model + field :offset, -> { String }, optional: false, nullable: false + field :event, -> { Auth0::Types::EventStreamCloudEventUserUpdatedCloudEvent }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_cloud_event.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_cloud_event.rb new file mode 100644 index 00000000..9bfeeba6 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_cloud_event.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Represents an event that occurs when a user is updated. + class EventStreamCloudEventUserUpdatedCloudEvent < Internal::Types::Model + field :specversion, -> { String }, optional: false, nullable: false + field :type, -> { Auth0::Types::EventStreamCloudEventUserUpdatedCloudEventTypeEnum }, optional: false, nullable: false + field :source, -> { String }, optional: false, nullable: false + field :id, -> { String }, optional: false, nullable: false + field :time, -> { String }, optional: false, nullable: false + field :data, -> { Auth0::Types::EventStreamCloudEventUserUpdatedData }, optional: false, nullable: false + field :a0tenant, -> { String }, optional: false, nullable: false + field :a0stream, -> { String }, optional: false, nullable: false + field :a0purpose, -> { Auth0::Types::EventStreamCloudEventA0PurposeEnum }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_cloud_event_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_cloud_event_type_enum.rb new file mode 100644 index 00000000..3d4b3532 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_cloud_event_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserUpdatedCloudEventTypeEnum + extend Auth0::Internal::Types::Enum + + USER_UPDATED = "user.updated" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_data.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_data.rb new file mode 100644 index 00000000..0ec9cd4e --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_data.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event payload. + class EventStreamCloudEventUserUpdatedData < Internal::Types::Model + field :object, -> { Auth0::Types::EventStreamCloudEventUserUpdatedObject }, optional: false, nullable: false + field :context, -> { Auth0::Types::EventStreamCloudEventContext }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_object.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_object.rb new file mode 100644 index 00000000..cf797534 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_object.rb @@ -0,0 +1,30 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The event content. + class EventStreamCloudEventUserUpdatedObject < Internal::Types::Model + field :user_id, -> { String }, optional: false, nullable: false + field :email, -> { String }, optional: true, nullable: false + field :email_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :username, -> { String }, optional: true, nullable: false + field :phone_number, -> { String }, optional: true, nullable: false + field :phone_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :created_at, -> { String }, optional: false, nullable: false + field :updated_at, -> { String }, optional: false, nullable: false + field :identities, -> { Internal::Types::Array[Auth0::Types::EventStreamCloudEventUserUpdatedObjectIdentitiesItem] }, optional: false, nullable: false + field :app_metadata, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false + field :user_metadata, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false + field :picture, -> { String }, optional: true, nullable: false + field :name, -> { String }, optional: true, nullable: false + field :nickname, -> { String }, optional: true, nullable: false + field :multifactor, -> { Internal::Types::Array[String] }, optional: true, nullable: false + field :last_ip, -> { String }, optional: true, nullable: false + field :last_login, -> { String }, optional: true, nullable: false + field :logins_count, -> { Integer }, optional: true, nullable: false + field :blocked, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :given_name, -> { String }, optional: true, nullable: false + field :family_name, -> { String }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_object_app_metadata.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_object_app_metadata.rb new file mode 100644 index 00000000..669ca77d --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_object_app_metadata.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserUpdatedObjectAppMetadata + # EventStreamCloudEventUserUpdatedObjectAppMetadata is an alias for Hash + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item.rb new file mode 100644 index 00000000..af6b8637 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Identity object when accounts are linked. + class EventStreamCloudEventUserUpdatedObjectIdentitiesItem < Internal::Types::Model + extend Auth0::Internal::Types::Union + + member -> { Auth0::Types::EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustom } + member -> { Auth0::Types::EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabase } + member -> { Auth0::Types::EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterprise } + member -> { Auth0::Types::EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordless } + member -> { Auth0::Types::EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocial } + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_custom.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_custom.rb new file mode 100644 index 00000000..e15b353b --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_custom.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The identity object for custom identity providers. + class EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustom < Internal::Types::Model + field :connection, -> { String }, optional: false, nullable: false + field :user_id, -> { Auth0::Types::EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomUserID }, optional: false, nullable: false + field :profile_data, -> { Auth0::Types::EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomProfileData }, optional: true, nullable: false, api_name: "profileData" + field :provider, -> { Auth0::Types::EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomProviderEnum }, optional: false, nullable: false + field :is_social, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isSocial" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_custom_is_social_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_custom_is_social_enum.rb new file mode 100644 index 00000000..f9e05d56 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_custom_is_social_enum.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomIsSocialEnum + # EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomIsSocialEnum is an alias for Boolean + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_custom_profile_data.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_custom_profile_data.rb new file mode 100644 index 00000000..18e295b2 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_custom_profile_data.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Profile data for the user. + class EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomProfileData < Internal::Types::Model + field :email, -> { String }, optional: true, nullable: false + field :email_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :name, -> { String }, optional: true, nullable: false + field :username, -> { String }, optional: true, nullable: false + field :given_name, -> { String }, optional: true, nullable: false + field :family_name, -> { String }, optional: true, nullable: false + field :phone_number, -> { String }, optional: true, nullable: false + field :phone_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_custom_provider_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_custom_provider_enum.rb new file mode 100644 index 00000000..f6dd59b5 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_custom_provider_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomProviderEnum + extend Auth0::Internal::Types::Enum + + CUSTOM = "custom" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_custom_user_id.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_custom_user_id.rb new file mode 100644 index 00000000..173004c0 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_custom_user_id.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The IDP-specific identifer for the user. + class EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomUserID < Internal::Types::Model + extend Auth0::Internal::Types::Union + + member -> { String } + member -> { Integer } + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_database.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_database.rb new file mode 100644 index 00000000..031dbd32 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_database.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The identity object for database identity providers. + class EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabase < Internal::Types::Model + field :connection, -> { String }, optional: false, nullable: false + field :user_id, -> { Auth0::Types::EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseUserID }, optional: false, nullable: false + field :profile_data, -> { Auth0::Types::EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseProfileData }, optional: true, nullable: false, api_name: "profileData" + field :provider, -> { Auth0::Types::EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseProviderEnum }, optional: false, nullable: false + field :is_social, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isSocial" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_database_is_social_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_database_is_social_enum.rb new file mode 100644 index 00000000..ecc0bd79 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_database_is_social_enum.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseIsSocialEnum + # EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseIsSocialEnum is an alias for Boolean + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_database_profile_data.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_database_profile_data.rb new file mode 100644 index 00000000..667ab686 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_database_profile_data.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Profile data for the user. + class EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseProfileData < Internal::Types::Model + field :email, -> { String }, optional: true, nullable: false + field :email_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :name, -> { String }, optional: true, nullable: false + field :username, -> { String }, optional: true, nullable: false + field :given_name, -> { String }, optional: true, nullable: false + field :family_name, -> { String }, optional: true, nullable: false + field :phone_number, -> { String }, optional: true, nullable: false + field :phone_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_database_provider_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_database_provider_enum.rb new file mode 100644 index 00000000..29178367 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_database_provider_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseProviderEnum + extend Auth0::Internal::Types::Enum + + AUTH0 = "auth0" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_database_user_id.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_database_user_id.rb new file mode 100644 index 00000000..1203ef01 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_database_user_id.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The IDP-specific identifer for the user. + class EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseUserID < Internal::Types::Model + extend Auth0::Internal::Types::Union + + member -> { String } + member -> { Integer } + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise.rb new file mode 100644 index 00000000..27dd0374 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The identity object for enterprise identity providers. + class EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterprise < Internal::Types::Model + field :connection, -> { String }, optional: false, nullable: false + field :user_id, -> { Auth0::Types::EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseUserID }, optional: false, nullable: false + field :profile_data, -> { Auth0::Types::EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseProfileData }, optional: true, nullable: false, api_name: "profileData" + field :provider, -> { Auth0::Types::EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseProviderEnum }, optional: false, nullable: false + field :is_social, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isSocial" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise_is_social_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise_is_social_enum.rb new file mode 100644 index 00000000..49e7aa2d --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise_is_social_enum.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseIsSocialEnum + # EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseIsSocialEnum is an alias for Boolean + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise_profile_data.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise_profile_data.rb new file mode 100644 index 00000000..77b63879 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise_profile_data.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Profile data for the user. + class EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseProfileData < Internal::Types::Model + field :email, -> { String }, optional: true, nullable: false + field :email_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :name, -> { String }, optional: true, nullable: false + field :username, -> { String }, optional: true, nullable: false + field :given_name, -> { String }, optional: true, nullable: false + field :family_name, -> { String }, optional: true, nullable: false + field :phone_number, -> { String }, optional: true, nullable: false + field :phone_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise_provider_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise_provider_enum.rb new file mode 100644 index 00000000..36703b0f --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise_provider_enum.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseProviderEnum + extend Auth0::Internal::Types::Enum + + AD = "ad" + ADFS = "adfs" + GOOGLE_APPS = "google-apps" + IP = "ip" + OFFICE365 = "office365" + OIDC = "oidc" + OKTA = "okta" + PINGFEDERATE = "pingfederate" + SAMLP = "samlp" + SHAREPOINT = "sharepoint" + WAAD = "waad" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise_user_id.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise_user_id.rb new file mode 100644 index 00000000..e675d5f6 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_enterprise_user_id.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The IDP-specific identifer for the user. + class EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseUserID < Internal::Types::Model + extend Auth0::Internal::Types::Union + + member -> { String } + member -> { Integer } + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless.rb new file mode 100644 index 00000000..d51c762b --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The identity object for passwordless identity providers. + class EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordless < Internal::Types::Model + field :connection, -> { String }, optional: false, nullable: false + field :user_id, -> { Auth0::Types::EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessUserID }, optional: false, nullable: false + field :profile_data, -> { Auth0::Types::EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessProfileData }, optional: true, nullable: false, api_name: "profileData" + field :provider, -> { Auth0::Types::EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessProviderEnum }, optional: false, nullable: false + field :is_social, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isSocial" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless_is_social_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless_is_social_enum.rb new file mode 100644 index 00000000..97c6334e --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless_is_social_enum.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessIsSocialEnum + # EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessIsSocialEnum is an alias for Boolean + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless_profile_data.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless_profile_data.rb new file mode 100644 index 00000000..b50f6c59 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless_profile_data.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Profile data for the user. + class EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessProfileData < Internal::Types::Model + field :email, -> { String }, optional: true, nullable: false + field :email_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :name, -> { String }, optional: true, nullable: false + field :username, -> { String }, optional: true, nullable: false + field :given_name, -> { String }, optional: true, nullable: false + field :family_name, -> { String }, optional: true, nullable: false + field :phone_number, -> { String }, optional: true, nullable: false + field :phone_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless_provider_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless_provider_enum.rb new file mode 100644 index 00000000..b54b9d69 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless_provider_enum.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessProviderEnum + extend Auth0::Internal::Types::Enum + + EMAIL = "email" + SMS = "sms" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless_user_id.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless_user_id.rb new file mode 100644 index 00000000..77c7102c --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_passwordless_user_id.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The IDP-specific identifer for the user. + class EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessUserID < Internal::Types::Model + extend Auth0::Internal::Types::Union + + member -> { String } + member -> { Integer } + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_social.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_social.rb new file mode 100644 index 00000000..eb9b4da4 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_social.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The identity object for social identity providers. + class EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocial < Internal::Types::Model + field :connection, -> { String }, optional: false, nullable: false + field :user_id, -> { Auth0::Types::EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialUserID }, optional: false, nullable: false + field :profile_data, -> { Auth0::Types::EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialProfileData }, optional: true, nullable: false, api_name: "profileData" + field :provider, -> { Auth0::Types::EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialProviderEnum }, optional: false, nullable: false + field :is_social, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isSocial" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_social_is_social_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_social_is_social_enum.rb new file mode 100644 index 00000000..07814e34 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_social_is_social_enum.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialIsSocialEnum + # EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialIsSocialEnum is an alias for Boolean + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_social_profile_data.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_social_profile_data.rb new file mode 100644 index 00000000..8af4add1 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_social_profile_data.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Profile data for the user. + class EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialProfileData < Internal::Types::Model + field :email, -> { String }, optional: true, nullable: false + field :email_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :name, -> { String }, optional: true, nullable: false + field :username, -> { String }, optional: true, nullable: false + field :given_name, -> { String }, optional: true, nullable: false + field :family_name, -> { String }, optional: true, nullable: false + field :phone_number, -> { String }, optional: true, nullable: false + field :phone_verified, -> { Internal::Types::Boolean }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_social_provider_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_social_provider_enum.rb new file mode 100644 index 00000000..a6caa672 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_social_provider_enum.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialProviderEnum + extend Auth0::Internal::Types::Enum + + AMAZON = "amazon" + APPLE = "apple" + DROPBOX = "dropbox" + BITBUCKET = "bitbucket" + AUTH0OIDC = "auth0-oidc" + BAIDU = "baidu" + BITLY = "bitly" + BOX = "box" + DACCOUNT = "daccount" + DWOLLA = "dwolla" + EVERNOTE_SANDBOX = "evernote-sandbox" + EVERNOTE = "evernote" + EXACT = "exact" + FACEBOOK = "facebook" + FITBIT = "fitbit" + GITHUB = "github" + GOOGLE_OAUTH2 = "google-oauth2" + INSTAGRAM = "instagram" + LINE = "line" + LINKEDIN = "linkedin" + OAUTH1 = "oauth1" + OAUTH2 = "oauth2" + PAYPAL = "paypal" + PAYPAL_SANDBOX = "paypal-sandbox" + PLANNINGCENTER = "planningcenter" + SALESFORCE_COMMUNITY = "salesforce-community" + SALESFORCE_SANDBOX = "salesforce-sandbox" + SALESFORCE = "salesforce" + SHOPIFY = "shopify" + SOUNDCLOUD = "soundcloud" + THIRTYSEVENSIGNALS = "thirtysevensignals" + TWITTER = "twitter" + UNTAPPED = "untapped" + VKONTAKTE = "vkontakte" + WEIBO = "weibo" + WINDOWSLIVE = "windowslive" + WORDPRESS = "wordpress" + YAHOO = "yahoo" + YANDEX = "yandex" + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_social_user_id.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_social_user_id.rb new file mode 100644 index 00000000..51222808 --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_object_identities_item_social_user_id.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The IDP-specific identifer for the user. + class EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialUserID < Internal::Types::Model + extend Auth0::Internal::Types::Union + + member -> { String } + member -> { Integer } + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_object_user_metadata.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_object_user_metadata.rb new file mode 100644 index 00000000..b7959e0d --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_object_user_metadata.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserUpdatedObjectUserMetadata + # EventStreamCloudEventUserUpdatedObjectUserMetadata is an alias for Hash + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/auth0/types/event_stream_cloud_event_user_updated_type_enum.rb b/lib/auth0/types/event_stream_cloud_event_user_updated_type_enum.rb new file mode 100644 index 00000000..7007882d --- /dev/null +++ b/lib/auth0/types/event_stream_cloud_event_user_updated_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamCloudEventUserUpdatedTypeEnum + extend Auth0::Internal::Types::Enum + + USER_UPDATED = "user.updated" + end + end +end diff --git a/lib/auth0/types/event_stream_subscribe_events_event_type_enum.rb b/lib/auth0/types/event_stream_subscribe_events_event_type_enum.rb new file mode 100644 index 00000000..2b55e488 --- /dev/null +++ b/lib/auth0/types/event_stream_subscribe_events_event_type_enum.rb @@ -0,0 +1,32 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamSubscribeEventsEventTypeEnum + extend Auth0::Internal::Types::Enum + + GROUP_CREATED = "group.created" + GROUP_DELETED = "group.deleted" + GROUP_MEMBER_ADDED = "group.member.added" + GROUP_MEMBER_DELETED = "group.member.deleted" + GROUP_ROLE_ASSIGNED = "group.role.assigned" + GROUP_ROLE_DELETED = "group.role.deleted" + GROUP_UPDATED = "group.updated" + ORGANIZATION_CONNECTION_ADDED = "organization.connection.added" + ORGANIZATION_CONNECTION_REMOVED = "organization.connection.removed" + ORGANIZATION_CONNECTION_UPDATED = "organization.connection.updated" + ORGANIZATION_CREATED = "organization.created" + ORGANIZATION_DELETED = "organization.deleted" + ORGANIZATION_GROUP_ROLE_ASSIGNED = "organization.group.role.assigned" + ORGANIZATION_GROUP_ROLE_DELETED = "organization.group.role.deleted" + ORGANIZATION_MEMBER_ADDED = "organization.member.added" + ORGANIZATION_MEMBER_DELETED = "organization.member.deleted" + ORGANIZATION_MEMBER_ROLE_ASSIGNED = "organization.member.role.assigned" + ORGANIZATION_MEMBER_ROLE_DELETED = "organization.member.role.deleted" + ORGANIZATION_UPDATED = "organization.updated" + USER_CREATED = "user.created" + USER_DELETED = "user.deleted" + USER_UPDATED = "user.updated" + end + end +end diff --git a/lib/auth0/types/event_stream_subscribe_events_event_type_param.rb b/lib/auth0/types/event_stream_subscribe_events_event_type_param.rb new file mode 100644 index 00000000..bf2ace91 --- /dev/null +++ b/lib/auth0/types/event_stream_subscribe_events_event_type_param.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module EventStreamSubscribeEventsEventTypeParam + # EventStreamSubscribeEventsEventTypeParam is an alias for Array + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/auth0/types/event_stream_subscribe_events_response_content.rb b/lib/auth0/types/event_stream_subscribe_events_response_content.rb new file mode 100644 index 00000000..7f5472ac --- /dev/null +++ b/lib/auth0/types/event_stream_subscribe_events_response_content.rb @@ -0,0 +1,39 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # The JSON payload delivered in each SSE data line. The type field is injected from the SSE event field by the SDK. + # Discriminated by type: an event type name for events, "error" for errors, and "offset-only" for cursor-only + # heartbeats. + class EventStreamSubscribeEventsResponseContent < Internal::Types::Model + extend Auth0::Internal::Types::Union + + discriminant :type + + member -> { Auth0::Types::EventStreamCloudEventGroupCreated }, key: "GROUP_CREATED" + member -> { Auth0::Types::EventStreamCloudEventGroupDeleted }, key: "GROUP_DELETED" + member -> { Auth0::Types::EventStreamCloudEventGroupMemberAdded }, key: "GROUP_MEMBER_ADDED" + member -> { Auth0::Types::EventStreamCloudEventGroupMemberDeleted }, key: "GROUP_MEMBER_DELETED" + member -> { Auth0::Types::EventStreamCloudEventGroupRoleAssigned }, key: "GROUP_ROLE_ASSIGNED" + member -> { Auth0::Types::EventStreamCloudEventGroupRoleDeleted }, key: "GROUP_ROLE_DELETED" + member -> { Auth0::Types::EventStreamCloudEventGroupUpdated }, key: "GROUP_UPDATED" + member -> { Auth0::Types::EventStreamCloudEventOrgConnectionAdded }, key: "ORGANIZATION_CONNECTION_ADDED" + member -> { Auth0::Types::EventStreamCloudEventOrgConnectionRemoved }, key: "ORGANIZATION_CONNECTION_REMOVED" + member -> { Auth0::Types::EventStreamCloudEventOrgConnectionUpdated }, key: "ORGANIZATION_CONNECTION_UPDATED" + member -> { Auth0::Types::EventStreamCloudEventOrgCreated }, key: "ORGANIZATION_CREATED" + member -> { Auth0::Types::EventStreamCloudEventOrgDeleted }, key: "ORGANIZATION_DELETED" + member -> { Auth0::Types::EventStreamCloudEventOrgGroupRoleAssigned }, key: "ORGANIZATION_GROUP_ROLE_ASSIGNED" + member -> { Auth0::Types::EventStreamCloudEventOrgGroupRoleDeleted }, key: "ORGANIZATION_GROUP_ROLE_DELETED" + member -> { Auth0::Types::EventStreamCloudEventOrgMemberAdded }, key: "ORGANIZATION_MEMBER_ADDED" + member -> { Auth0::Types::EventStreamCloudEventOrgMemberDeleted }, key: "ORGANIZATION_MEMBER_DELETED" + member -> { Auth0::Types::EventStreamCloudEventOrgMemberRoleAssigned }, key: "ORGANIZATION_MEMBER_ROLE_ASSIGNED" + member -> { Auth0::Types::EventStreamCloudEventOrgMemberRoleDeleted }, key: "ORGANIZATION_MEMBER_ROLE_DELETED" + member -> { Auth0::Types::EventStreamCloudEventOrgUpdated }, key: "ORGANIZATION_UPDATED" + member -> { Auth0::Types::EventStreamCloudEventUserCreated }, key: "USER_CREATED" + member -> { Auth0::Types::EventStreamCloudEventUserDeleted }, key: "USER_DELETED" + member -> { Auth0::Types::EventStreamCloudEventUserUpdated }, key: "USER_UPDATED" + member -> { Auth0::Types::EventStreamCloudEventErrorMessage }, key: "ERROR" + member -> { Auth0::Types::EventStreamCloudEventOffsetOnlyMessage }, key: "OFFSET_ONLY" + end + end +end diff --git a/lib/auth0/types/forbidden_schema.rb b/lib/auth0/types/forbidden_schema.rb new file mode 100644 index 00000000..acccecc4 --- /dev/null +++ b/lib/auth0/types/forbidden_schema.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Forbidden + class ForbiddenSchema < Internal::Types::Model + field :message, -> { String }, optional: false, nullable: false + field :status_code, -> { String }, optional: false, nullable: false, api_name: "statusCode" + field :error, -> { Auth0::Types::ForbiddenSchemaError }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/forbidden_schema_error.rb b/lib/auth0/types/forbidden_schema_error.rb new file mode 100644 index 00000000..aae4d1b3 --- /dev/null +++ b/lib/auth0/types/forbidden_schema_error.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module ForbiddenSchemaError + extend Auth0::Internal::Types::Enum + + FORBIDDEN = "Forbidden" + end + end +end diff --git a/lib/auth0/types/get_branding_response_content.rb b/lib/auth0/types/get_branding_response_content.rb index 3cb13321..33f5d552 100644 --- a/lib/auth0/types/get_branding_response_content.rb +++ b/lib/auth0/types/get_branding_response_content.rb @@ -6,6 +6,7 @@ class GetBrandingResponseContent < Internal::Types::Model field :colors, -> { Auth0::Types::BrandingColors }, optional: true, nullable: false field :favicon_url, -> { String }, optional: true, nullable: false field :logo_url, -> { String }, optional: true, nullable: false + field :identifiers, -> { Auth0::Types::BrandingIdentifiers }, optional: true, nullable: false field :font, -> { Auth0::Types::BrandingFont }, optional: true, nullable: false end end diff --git a/lib/auth0/types/get_resource_server_response_content.rb b/lib/auth0/types/get_resource_server_response_content.rb index 162dfff0..902bf025 100644 --- a/lib/auth0/types/get_resource_server_response_content.rb +++ b/lib/auth0/types/get_resource_server_response_content.rb @@ -12,6 +12,7 @@ class GetResourceServerResponseContent < Internal::Types::Model field :signing_secret, -> { String }, optional: true, nullable: false field :allow_offline_access, -> { Internal::Types::Boolean }, optional: true, nullable: false field :allow_online_access, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :allow_online_access_with_ephemeral_sessions, -> { Internal::Types::Boolean }, optional: true, nullable: false field :skip_consent_for_verifiable_first_party_clients, -> { Internal::Types::Boolean }, optional: true, nullable: false field :token_lifetime, -> { Integer }, optional: true, nullable: false field :token_lifetime_for_web, -> { Integer }, optional: true, nullable: false @@ -22,6 +23,7 @@ class GetResourceServerResponseContent < Internal::Types::Model field :authorization_details, -> { Internal::Types::Array[Object] }, optional: true, nullable: false field :proof_of_possession, -> { Auth0::Types::ResourceServerProofOfPossession }, optional: true, nullable: false field :subject_type_authorization, -> { Auth0::Types::ResourceServerSubjectTypeAuthorization }, optional: true, nullable: false + field :authorization_policy, -> { Auth0::Types::ResourceServerAuthorizationPolicy }, optional: true, nullable: false field :client_id, -> { String }, optional: true, nullable: false end end diff --git a/lib/auth0/types/get_user_authentication_method_response_content.rb b/lib/auth0/types/get_user_authentication_method_response_content.rb index 97a7051c..7a61c0a4 100644 --- a/lib/auth0/types/get_user_authentication_method_response_content.rb +++ b/lib/auth0/types/get_user_authentication_method_response_content.rb @@ -21,6 +21,8 @@ class GetUserAuthenticationMethodResponseContent < Internal::Types::Model field :credential_backed_up, -> { Internal::Types::Boolean }, optional: true, nullable: false field :identity_user_id, -> { String }, optional: true, nullable: false field :user_agent, -> { String }, optional: true, nullable: false + field :user_handle, -> { String }, optional: true, nullable: false + field :transports, -> { Internal::Types::Array[String] }, optional: true, nullable: false field :aaguid, -> { String }, optional: true, nullable: false field :relying_party_identifier, -> { String }, optional: true, nullable: false end diff --git a/lib/auth0/types/oauth_scope.rb b/lib/auth0/types/oauth_scope.rb index 41c83879..0bf4d64b 100644 --- a/lib/auth0/types/oauth_scope.rb +++ b/lib/auth0/types/oauth_scope.rb @@ -84,6 +84,7 @@ module OauthScope READ_EVENT_STREAMS = "read:event_streams" UPDATE_EVENT_STREAMS = "update:event_streams" DELETE_EVENT_STREAMS = "delete:event_streams" + READ_EVENTS = "read:events" READ_FEDERATED_CONNECTIONS_TOKENS = "read:federated_connections_tokens" DELETE_FEDERATED_CONNECTIONS_TOKENS = "delete:federated_connections_tokens" CREATE_FLOWS = "create:flows" diff --git a/lib/auth0/types/resource_server.rb b/lib/auth0/types/resource_server.rb index 9a4378ee..f2af6693 100644 --- a/lib/auth0/types/resource_server.rb +++ b/lib/auth0/types/resource_server.rb @@ -12,6 +12,7 @@ class ResourceServer < Internal::Types::Model field :signing_secret, -> { String }, optional: true, nullable: false field :allow_offline_access, -> { Internal::Types::Boolean }, optional: true, nullable: false field :allow_online_access, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :allow_online_access_with_ephemeral_sessions, -> { Internal::Types::Boolean }, optional: true, nullable: false field :skip_consent_for_verifiable_first_party_clients, -> { Internal::Types::Boolean }, optional: true, nullable: false field :token_lifetime, -> { Integer }, optional: true, nullable: false field :token_lifetime_for_web, -> { Integer }, optional: true, nullable: false @@ -22,6 +23,7 @@ class ResourceServer < Internal::Types::Model field :authorization_details, -> { Internal::Types::Array[Object] }, optional: true, nullable: false field :proof_of_possession, -> { Auth0::Types::ResourceServerProofOfPossession }, optional: true, nullable: false field :subject_type_authorization, -> { Auth0::Types::ResourceServerSubjectTypeAuthorization }, optional: true, nullable: false + field :authorization_policy, -> { Auth0::Types::ResourceServerAuthorizationPolicy }, optional: true, nullable: false field :client_id, -> { String }, optional: true, nullable: false end end diff --git a/lib/auth0/types/resource_server_authorization_policy.rb b/lib/auth0/types/resource_server_authorization_policy.rb new file mode 100644 index 00000000..facdedb9 --- /dev/null +++ b/lib/auth0/types/resource_server_authorization_policy.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Authorization policy for the resource server. + class ResourceServerAuthorizationPolicy < Internal::Types::Model + field :policy_id, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/self_service_profile_sso_ticket_connection_config.rb b/lib/auth0/types/self_service_profile_sso_ticket_connection_config.rb index 620d169c..67ca396c 100644 --- a/lib/auth0/types/self_service_profile_sso_ticket_connection_config.rb +++ b/lib/auth0/types/self_service_profile_sso_ticket_connection_config.rb @@ -2,7 +2,8 @@ module Auth0 module Types - # If provided, this will create a new connection for the SSO flow with the given configuration + # If provided, this will create a new connection for the Self-Service Enterprise Configuration flow with the given + # configuration class SelfServiceProfileSSOTicketConnectionConfig < Internal::Types::Model field :name, -> { String }, optional: false, nullable: false field :display_name, -> { String }, optional: true, nullable: false diff --git a/lib/auth0/types/self_service_profile_sso_ticket_domain_aliases_config.rb b/lib/auth0/types/self_service_profile_sso_ticket_domain_aliases_config.rb index 8688e2b1..28ad6949 100644 --- a/lib/auth0/types/self_service_profile_sso_ticket_domain_aliases_config.rb +++ b/lib/auth0/types/self_service_profile_sso_ticket_domain_aliases_config.rb @@ -2,7 +2,7 @@ module Auth0 module Types - # Configuration for the setup of the connection’s domain_aliases in the self-service SSO flow. + # Configuration for the setup of the connection’s domain_aliases in the Self-Service Enterprise Configuration flow. class SelfServiceProfileSSOTicketDomainAliasesConfig < Internal::Types::Model field :domain_verification, -> { Auth0::Types::SelfServiceProfileSSOTicketDomainVerificationEnum }, optional: false, nullable: false field :pending_domains, -> { Internal::Types::Array[String] }, optional: true, nullable: false diff --git a/lib/auth0/types/too_many_requests_schema.rb b/lib/auth0/types/too_many_requests_schema.rb new file mode 100644 index 00000000..3b233bfc --- /dev/null +++ b/lib/auth0/types/too_many_requests_schema.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Too Many Requests + class TooManyRequestsSchema < Internal::Types::Model + field :message, -> { String }, optional: false, nullable: false + field :status_code, -> { String }, optional: false, nullable: false, api_name: "statusCode" + field :error, -> { Auth0::Types::TooManyRequestsSchemaError }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/too_many_requests_schema_error.rb b/lib/auth0/types/too_many_requests_schema_error.rb new file mode 100644 index 00000000..8aaa58c0 --- /dev/null +++ b/lib/auth0/types/too_many_requests_schema_error.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module TooManyRequestsSchemaError + extend Auth0::Internal::Types::Enum + + TOO_MANY_REQUESTS = "Too Many Requests" + end + end +end diff --git a/lib/auth0/types/unauthorized_schema.rb b/lib/auth0/types/unauthorized_schema.rb new file mode 100644 index 00000000..b58cb3a5 --- /dev/null +++ b/lib/auth0/types/unauthorized_schema.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Unauthorized + class UnauthorizedSchema < Internal::Types::Model + field :message, -> { String }, optional: false, nullable: false + field :status_code, -> { String }, optional: false, nullable: false, api_name: "statusCode" + field :error, -> { Auth0::Types::UnauthorizedSchemaError }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/unauthorized_schema_error.rb b/lib/auth0/types/unauthorized_schema_error.rb new file mode 100644 index 00000000..6319dd26 --- /dev/null +++ b/lib/auth0/types/unauthorized_schema_error.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module UnauthorizedSchemaError + extend Auth0::Internal::Types::Enum + + UNAUTHORIZED = "Unauthorized" + end + end +end diff --git a/lib/auth0/types/update_branding_identifiers.rb b/lib/auth0/types/update_branding_identifiers.rb new file mode 100644 index 00000000..06e8be1c --- /dev/null +++ b/lib/auth0/types/update_branding_identifiers.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Identifier input display settings. + class UpdateBrandingIdentifiers < Internal::Types::Model + field :login_display, -> { Auth0::Types::UpdateBrandingLoginDisplayEnum }, optional: true, nullable: false + field :otp_autocomplete, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :phone_display, -> { Auth0::Types::UpdateBrandingPhoneDisplay }, optional: true, nullable: false + end + end +end diff --git a/lib/auth0/types/update_branding_login_display_enum.rb b/lib/auth0/types/update_branding_login_display_enum.rb new file mode 100644 index 00000000..4d4a5328 --- /dev/null +++ b/lib/auth0/types/update_branding_login_display_enum.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module UpdateBrandingLoginDisplayEnum + extend Auth0::Internal::Types::Enum + + UNIFIED = "unified" + SEPARATE = "separate" + end + end +end diff --git a/lib/auth0/types/update_branding_phone_display.rb b/lib/auth0/types/update_branding_phone_display.rb new file mode 100644 index 00000000..a08ba716 --- /dev/null +++ b/lib/auth0/types/update_branding_phone_display.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Auth0 + module Types + # Phone number display settings. + class UpdateBrandingPhoneDisplay < Internal::Types::Model + field :masking, -> { Auth0::Types::UpdateBrandingPhoneMaskingEnum }, optional: false, nullable: false + field :formatting, -> { Auth0::Types::UpdateBrandingPhoneFormattingEnum }, optional: false, nullable: false + end + end +end diff --git a/lib/auth0/types/update_branding_phone_formatting_enum.rb b/lib/auth0/types/update_branding_phone_formatting_enum.rb new file mode 100644 index 00000000..57075e64 --- /dev/null +++ b/lib/auth0/types/update_branding_phone_formatting_enum.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module UpdateBrandingPhoneFormattingEnum + extend Auth0::Internal::Types::Enum + + REGIONAL = "regional" + INTERNATIONAL = "international" + end + end +end diff --git a/lib/auth0/types/update_branding_phone_masking_enum.rb b/lib/auth0/types/update_branding_phone_masking_enum.rb new file mode 100644 index 00000000..88d13c45 --- /dev/null +++ b/lib/auth0/types/update_branding_phone_masking_enum.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Auth0 + module Types + module UpdateBrandingPhoneMaskingEnum + extend Auth0::Internal::Types::Enum + + SHOW_ALL = "show_all" + HIDE_COUNTRY_CODE = "hide_country_code" + MASK_DIGITS = "mask_digits" + end + end +end diff --git a/lib/auth0/types/update_branding_response_content.rb b/lib/auth0/types/update_branding_response_content.rb index 8dcc10cb..a92e22d0 100644 --- a/lib/auth0/types/update_branding_response_content.rb +++ b/lib/auth0/types/update_branding_response_content.rb @@ -6,6 +6,7 @@ class UpdateBrandingResponseContent < Internal::Types::Model field :colors, -> { Auth0::Types::BrandingColors }, optional: true, nullable: false field :favicon_url, -> { String }, optional: true, nullable: false field :logo_url, -> { String }, optional: true, nullable: false + field :identifiers, -> { Auth0::Types::BrandingIdentifiers }, optional: true, nullable: false field :font, -> { Auth0::Types::BrandingFont }, optional: true, nullable: false end end diff --git a/lib/auth0/types/update_connection_options.rb b/lib/auth0/types/update_connection_options.rb index 9519119e..4c51a6e1 100644 --- a/lib/auth0/types/update_connection_options.rb +++ b/lib/auth0/types/update_connection_options.rb @@ -38,6 +38,11 @@ class UpdateConnectionOptions < Internal::Types::Model field :gateway_authentication, -> { Auth0::Types::ConnectionGatewayAuthentication }, optional: true, nullable: false field :federated_connections_access_tokens, -> { Auth0::Types::ConnectionFederatedConnectionsAccessTokens }, optional: true, nullable: false field :password_options, -> { Auth0::Types::ConnectionPasswordOptions }, optional: true, nullable: false + field :assertion_decryption_settings, -> { Auth0::Types::ConnectionAssertionDecryptionSettings }, optional: true, nullable: false + field :id_token_signed_response_algs, -> { Internal::Types::Array[Auth0::Types::ConnectionIDTokenSignedResponseAlgEnum] }, optional: true, nullable: false + field :token_endpoint_auth_method, -> { Auth0::Types::ConnectionTokenEndpointAuthMethodEnum }, optional: true, nullable: false + field :token_endpoint_auth_signing_alg, -> { Auth0::Types::ConnectionTokenEndpointAuthSigningAlgEnum }, optional: true, nullable: false + field :token_endpoint_jwtca_aud_format, -> { Auth0::Types::ConnectionTokenEndpointJwtcaAudFormatEnumOidc }, optional: true, nullable: false end end end diff --git a/lib/auth0/types/update_resource_server_response_content.rb b/lib/auth0/types/update_resource_server_response_content.rb index 58d7f2f9..b0813909 100644 --- a/lib/auth0/types/update_resource_server_response_content.rb +++ b/lib/auth0/types/update_resource_server_response_content.rb @@ -12,6 +12,7 @@ class UpdateResourceServerResponseContent < Internal::Types::Model field :signing_secret, -> { String }, optional: true, nullable: false field :allow_offline_access, -> { Internal::Types::Boolean }, optional: true, nullable: false field :allow_online_access, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :allow_online_access_with_ephemeral_sessions, -> { Internal::Types::Boolean }, optional: true, nullable: false field :skip_consent_for_verifiable_first_party_clients, -> { Internal::Types::Boolean }, optional: true, nullable: false field :token_lifetime, -> { Integer }, optional: true, nullable: false field :token_lifetime_for_web, -> { Integer }, optional: true, nullable: false @@ -22,6 +23,7 @@ class UpdateResourceServerResponseContent < Internal::Types::Model field :authorization_details, -> { Internal::Types::Array[Object] }, optional: true, nullable: false field :proof_of_possession, -> { Auth0::Types::ResourceServerProofOfPossession }, optional: true, nullable: false field :subject_type_authorization, -> { Auth0::Types::ResourceServerSubjectTypeAuthorization }, optional: true, nullable: false + field :authorization_policy, -> { Auth0::Types::ResourceServerAuthorizationPolicy }, optional: true, nullable: false field :client_id, -> { String }, optional: true, nullable: false end end diff --git a/lib/auth0/types/update_user_authentication_method_response_content.rb b/lib/auth0/types/update_user_authentication_method_response_content.rb index 88b22a1f..f4dafa27 100644 --- a/lib/auth0/types/update_user_authentication_method_response_content.rb +++ b/lib/auth0/types/update_user_authentication_method_response_content.rb @@ -16,6 +16,7 @@ class UpdateUserAuthenticationMethodResponseContent < Internal::Types::Model field :public_key, -> { String }, optional: true, nullable: false field :aaguid, -> { String }, optional: true, nullable: false field :relying_party_identifier, -> { String }, optional: true, nullable: false + field :confirmed, -> { Internal::Types::Boolean }, optional: true, nullable: false field :created_at, -> { String }, optional: true, nullable: false end end diff --git a/lib/auth0/types/user_authentication_method.rb b/lib/auth0/types/user_authentication_method.rb index 0bf10a90..330d993b 100644 --- a/lib/auth0/types/user_authentication_method.rb +++ b/lib/auth0/types/user_authentication_method.rb @@ -21,6 +21,8 @@ class UserAuthenticationMethod < Internal::Types::Model field :credential_backed_up, -> { Internal::Types::Boolean }, optional: true, nullable: false field :identity_user_id, -> { String }, optional: true, nullable: false field :user_agent, -> { String }, optional: true, nullable: false + field :user_handle, -> { String }, optional: true, nullable: false + field :transports, -> { Internal::Types::Array[String] }, optional: true, nullable: false field :aaguid, -> { String }, optional: true, nullable: false field :relying_party_identifier, -> { String }, optional: true, nullable: false end diff --git a/lib/auth0/user_attribute_profiles/client.rb b/lib/auth0/user_attribute_profiles/client.rb index d4959df9..27ec2a48 100644 --- a/lib/auth0/user_attribute_profiles/client.rb +++ b/lib/auth0/user_attribute_profiles/client.rb @@ -59,7 +59,7 @@ def list(request_options: {}, **params) end end - # Retrieve details about a single User Attribute Profile specified by ID. + # Create a User Attribute Profile # # @param request_options [Hash] # @param params [Auth0::UserAttributeProfiles::Types::CreateUserAttributeProfileRequestContent] diff --git a/lib/auth0/users/authentication_methods/types/create_user_authentication_method_request_content.rb b/lib/auth0/users/authentication_methods/types/create_user_authentication_method_request_content.rb index f2369ce1..40a76a39 100644 --- a/lib/auth0/users/authentication_methods/types/create_user_authentication_method_request_content.rb +++ b/lib/auth0/users/authentication_methods/types/create_user_authentication_method_request_content.rb @@ -14,7 +14,14 @@ class CreateUserAuthenticationMethodRequestContent < Internal::Types::Model field :preferred_authentication_method, -> { Auth0::Types::PreferredAuthenticationMethodEnum }, optional: true, nullable: false field :key_id, -> { String }, optional: true, nullable: false field :public_key, -> { String }, optional: true, nullable: false + field :aaguid, -> { String }, optional: true, nullable: false field :relying_party_identifier, -> { String }, optional: true, nullable: false + field :credential_device_type, -> { Auth0::Types::CredentialDeviceTypeEnum }, optional: true, nullable: false + field :credential_backed_up, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :identity_user_id, -> { String }, optional: true, nullable: false + field :user_agent, -> { String }, optional: true, nullable: false + field :user_handle, -> { String }, optional: true, nullable: false + field :transports, -> { Internal::Types::Array[String] }, optional: true, nullable: false end end end diff --git a/lib/auth0/verifiable_credentials/verification/templates/client.rb b/lib/auth0/verifiable_credentials/verification/templates/client.rb index 7b221975..36d1f3a8 100644 --- a/lib/auth0/verifiable_credentials/verification/templates/client.rb +++ b/lib/auth0/verifiable_credentials/verification/templates/client.rb @@ -12,7 +12,7 @@ def initialize(client:) @client = client end - # List a verifiable credential templates. + # List verifiable credential templates. # # @param request_options [Hash] # @param params [Hash]