diff --git a/lib/zitadel/client/models/action_service_beta_execution.rb b/lib/zitadel/client/models/action_service_beta_execution.rb index 42b6fc04..e85cd986 100644 --- a/lib/zitadel/client/models/action_service_beta_execution.rb +++ b/lib/zitadel/client/models/action_service_beta_execution.rb @@ -23,7 +23,7 @@ class ActionServiceBetaExecution # The timestamp of the last change to the execution. attr_accessor :change_date - # Ordered list of targets/includes called during the execution. + # Ordered list of targets called during the execution. attr_accessor :targets # Attribute mapping from ruby-style variable name to JSON key. @@ -52,7 +52,7 @@ def self.openapi_types :'condition' => :'ActionServiceBetaCondition', :'creation_date' => :'Time', :'change_date' => :'Time', - :'targets' => :'Array' + :'targets' => :'Array' } end diff --git a/lib/zitadel/client/models/action_service_beta_execution_target_type.rb b/lib/zitadel/client/models/action_service_beta_execution_target_type.rb deleted file mode 100644 index 80c33ebc..00000000 --- a/lib/zitadel/client/models/action_service_beta_execution_target_type.rb +++ /dev/null @@ -1,240 +0,0 @@ -=begin -#Zitadel SDK - -#The Zitadel SDK is a convenience wrapper around the Zitadel APIs to assist you in integrating with your Zitadel environment. This SDK enables you to handle resources, settings, and configurations within the Zitadel platform. - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.12.0 - -=end - -require 'date' -require 'time' - -module Zitadel::Client::Models - class ActionServiceBetaExecutionTargetType - # Unique identifier of existing target to call. - attr_accessor :target - - attr_accessor :include - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'target' => :'target', - :'include' => :'include' - } - end - - # Returns attribute mapping this model knows about - def self.acceptable_attribute_map - attribute_map - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - acceptable_attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'target' => :'String', - :'include' => :'ActionServiceBetaCondition' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Models attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - # MODIFIED: Updated class name in error message - fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::ActionServiceBetaExecutionTargetType` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - acceptable_attribute_map = self.class.acceptable_attribute_map - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!acceptable_attribute_map.key?(k.to_sym)) - # MODIFIED: Updated class name in error message - fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::ActionServiceBetaExecutionTargetType`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'target') - self.target = attributes[:'target'] - end - - if attributes.key?(:'include') - self.include = attributes[:'include'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - warn '[DEPRECATED] the `valid?` method is obsolete' - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - target == o.target && - include == o.include - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [target, include].hash - end - -# Builds the object from hash -# @param [Hash] attributes Models attributes in the form of hash -# @return [Object] Returns the model itself -def self.build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - attributes = attributes.transform_keys(&:to_sym) - transformed_hash = {} - openapi_types.each_pair do |key, type| - if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? - transformed_hash["#{key}"] = nil - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[attribute_map[key]].is_a?(Array) - transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } - end - elsif !attributes[attribute_map[key]].nil? - transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) - end - end - new(transformed_hash) # `new` will call the initialize method of the specific model class. -end - -# Deserializes the data based on type -# @param string type Data type -# @param string value Value to be deserialized -# @return [Object] Deserialized data -def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf/anyOf constructs that resolve to a model name - # MODIFIED: Ensure model is looked up in the Models namespace - # 'type' here is expected to be the simple class name (e.g., "User", "OrderDetails") - klass = Zitadel::Client::Models.const_get(type) - # The `klass.build` method is for oneOf/anyOf types (defined in partial_oneof_module.mustache / partial_anyof_module.mustache) - # The `klass.build_from_hash` is for regular model types (defined in this base_object.mustache itself) - if klass.respond_to?(:openapi_one_of) || klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_allOf) - klass.build(value) # For oneOf/anyOf/allOf, delegate to their specific build method - else - klass.build_from_hash(value) # For regular models - end - end -end - -# Returns the string representation of the object -# @return [String] String presentation of the object -def to_s - to_hash.to_s -end - -# to_body is an alias to to_hash (backward compatibility) -# @return [Hash] Returns the object in the form of hash -def to_body - to_hash -end - -# Returns the object in the form of hash -# @return [Hash] Returns the object in the form of hash -def to_hash - hash = {} # Calls super.to_hash if parent exists - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash -end - -# Outputs non-array value in the form of hash -# For object, use to_hash. Otherwise, just return the value -# @param [Object] value Any valid value -# @return [Hash] Returns the value in the form of hash -def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end -end - - end - -end diff --git a/lib/zitadel/client/models/action_service_set_execution_request.rb b/lib/zitadel/client/models/action_service_set_execution_request.rb index ce93f48d..7d51e6c2 100644 --- a/lib/zitadel/client/models/action_service_set_execution_request.rb +++ b/lib/zitadel/client/models/action_service_set_execution_request.rb @@ -17,7 +17,7 @@ module Zitadel::Client::Models class ActionServiceSetExecutionRequest attr_accessor :condition - # Ordered list of targets/includes called during the execution. + # Ordered list of targets called during the execution. attr_accessor :targets # Attribute mapping from ruby-style variable name to JSON key. @@ -42,7 +42,7 @@ def self.acceptable_attributes def self.openapi_types { :'condition' => :'ActionServiceBetaCondition', - :'targets' => :'Array' + :'targets' => :'Array' } end diff --git a/lib/zitadel/client/models/feature_service_get_instance_features_response.rb b/lib/zitadel/client/models/feature_service_get_instance_features_response.rb index e2664c66..44a7f246 100644 --- a/lib/zitadel/client/models/feature_service_get_instance_features_response.rb +++ b/lib/zitadel/client/models/feature_service_get_instance_features_response.rb @@ -27,8 +27,6 @@ class FeatureServiceGetInstanceFeaturesResponse attr_accessor :oidc_token_exchange - attr_accessor :actions - attr_accessor :improved_performance attr_accessor :web_key @@ -56,7 +54,6 @@ def self.attribute_map :'oidc_legacy_introspection' => :'oidcLegacyIntrospection', :'user_schema' => :'userSchema', :'oidc_token_exchange' => :'oidcTokenExchange', - :'actions' => :'actions', :'improved_performance' => :'improvedPerformance', :'web_key' => :'webKey', :'debug_oidc_parent_error' => :'debugOidcParentError', @@ -88,7 +85,6 @@ def self.openapi_types :'oidc_legacy_introspection' => :'FeatureServiceFeatureFlag', :'user_schema' => :'FeatureServiceFeatureFlag', :'oidc_token_exchange' => :'FeatureServiceFeatureFlag', - :'actions' => :'FeatureServiceFeatureFlag', :'improved_performance' => :'FeatureServiceImprovedPerformanceFeatureFlag', :'web_key' => :'FeatureServiceFeatureFlag', :'debug_oidc_parent_error' => :'FeatureServiceFeatureFlag', @@ -149,10 +145,6 @@ def initialize(attributes = {}) self.oidc_token_exchange = attributes[:'oidc_token_exchange'] end - if attributes.key?(:'actions') - self.actions = attributes[:'actions'] - end - if attributes.key?(:'improved_performance') self.improved_performance = attributes[:'improved_performance'] end @@ -216,7 +208,6 @@ def ==(o) oidc_legacy_introspection == o.oidc_legacy_introspection && user_schema == o.user_schema && oidc_token_exchange == o.oidc_token_exchange && - actions == o.actions && improved_performance == o.improved_performance && web_key == o.web_key && debug_oidc_parent_error == o.debug_oidc_parent_error && @@ -237,7 +228,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [details, login_default_org, oidc_trigger_introspection_projections, oidc_legacy_introspection, user_schema, oidc_token_exchange, actions, improved_performance, web_key, debug_oidc_parent_error, oidc_single_v1_session_termination, disable_user_token_event, enable_back_channel_logout, login_v2, permission_check_v2, console_use_v2_user_api].hash + [details, login_default_org, oidc_trigger_introspection_projections, oidc_legacy_introspection, user_schema, oidc_token_exchange, improved_performance, web_key, debug_oidc_parent_error, oidc_single_v1_session_termination, disable_user_token_event, enable_back_channel_logout, login_v2, permission_check_v2, console_use_v2_user_api].hash end # Builds the object from hash diff --git a/lib/zitadel/client/models/feature_service_get_system_features_response.rb b/lib/zitadel/client/models/feature_service_get_system_features_response.rb index 3d75aec1..399d5204 100644 --- a/lib/zitadel/client/models/feature_service_get_system_features_response.rb +++ b/lib/zitadel/client/models/feature_service_get_system_features_response.rb @@ -27,8 +27,6 @@ class FeatureServiceGetSystemFeaturesResponse attr_accessor :oidc_token_exchange - attr_accessor :actions - attr_accessor :improved_performance attr_accessor :oidc_single_v1_session_termination @@ -50,7 +48,6 @@ def self.attribute_map :'oidc_legacy_introspection' => :'oidcLegacyIntrospection', :'user_schema' => :'userSchema', :'oidc_token_exchange' => :'oidcTokenExchange', - :'actions' => :'actions', :'improved_performance' => :'improvedPerformance', :'oidc_single_v1_session_termination' => :'oidcSingleV1SessionTermination', :'disable_user_token_event' => :'disableUserTokenEvent', @@ -79,7 +76,6 @@ def self.openapi_types :'oidc_legacy_introspection' => :'FeatureServiceFeatureFlag', :'user_schema' => :'FeatureServiceFeatureFlag', :'oidc_token_exchange' => :'FeatureServiceFeatureFlag', - :'actions' => :'FeatureServiceFeatureFlag', :'improved_performance' => :'FeatureServiceImprovedPerformanceFeatureFlag', :'oidc_single_v1_session_termination' => :'FeatureServiceFeatureFlag', :'disable_user_token_event' => :'FeatureServiceFeatureFlag', @@ -137,10 +133,6 @@ def initialize(attributes = {}) self.oidc_token_exchange = attributes[:'oidc_token_exchange'] end - if attributes.key?(:'actions') - self.actions = attributes[:'actions'] - end - if attributes.key?(:'improved_performance') self.improved_performance = attributes[:'improved_performance'] end @@ -192,7 +184,6 @@ def ==(o) oidc_legacy_introspection == o.oidc_legacy_introspection && user_schema == o.user_schema && oidc_token_exchange == o.oidc_token_exchange && - actions == o.actions && improved_performance == o.improved_performance && oidc_single_v1_session_termination == o.oidc_single_v1_session_termination && disable_user_token_event == o.disable_user_token_event && @@ -210,7 +201,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [details, login_default_org, oidc_trigger_introspection_projections, oidc_legacy_introspection, user_schema, oidc_token_exchange, actions, improved_performance, oidc_single_v1_session_termination, disable_user_token_event, enable_back_channel_logout, login_v2, permission_check_v2].hash + [details, login_default_org, oidc_trigger_introspection_projections, oidc_legacy_introspection, user_schema, oidc_token_exchange, improved_performance, oidc_single_v1_session_termination, disable_user_token_event, enable_back_channel_logout, login_v2, permission_check_v2].hash end # Builds the object from hash diff --git a/lib/zitadel/client/models/feature_service_set_instance_features_request.rb b/lib/zitadel/client/models/feature_service_set_instance_features_request.rb index 7cfd7bf8..c009abef 100644 --- a/lib/zitadel/client/models/feature_service_set_instance_features_request.rb +++ b/lib/zitadel/client/models/feature_service_set_instance_features_request.rb @@ -30,9 +30,6 @@ class FeatureServiceSetInstanceFeaturesRequest # Enable the experimental `urn:ietf:params:oauth:grant-type:token-exchange` grant type for the OIDC token endpoint. Token exchange can be used to request tokens with a lesser scope or impersonate other users. See the security policy to allow impersonation on an instance. attr_accessor :oidc_token_exchange - # Actions allow to manage data executions and targets. If the flag is enabled, you'll be able to use the new API and its features. Note that it is still in an early stage. - attr_accessor :actions - # Improves performance of specified execution paths. attr_accessor :improved_performance @@ -67,7 +64,6 @@ def self.attribute_map :'oidc_legacy_introspection' => :'oidcLegacyIntrospection', :'user_schema' => :'userSchema', :'oidc_token_exchange' => :'oidcTokenExchange', - :'actions' => :'actions', :'improved_performance' => :'improvedPerformance', :'web_key' => :'webKey', :'debug_oidc_parent_error' => :'debugOidcParentError', @@ -98,7 +94,6 @@ def self.openapi_types :'oidc_legacy_introspection' => :'Boolean', :'user_schema' => :'Boolean', :'oidc_token_exchange' => :'Boolean', - :'actions' => :'Boolean', :'improved_performance' => :'Array', :'web_key' => :'Boolean', :'debug_oidc_parent_error' => :'Boolean', @@ -155,10 +150,6 @@ def initialize(attributes = {}) self.oidc_token_exchange = attributes[:'oidc_token_exchange'] end - if attributes.key?(:'actions') - self.actions = attributes[:'actions'] - end - if attributes.key?(:'improved_performance') if (value = attributes[:'improved_performance']).is_a?(Array) self.improved_performance = value @@ -223,7 +214,6 @@ def ==(o) oidc_legacy_introspection == o.oidc_legacy_introspection && user_schema == o.user_schema && oidc_token_exchange == o.oidc_token_exchange && - actions == o.actions && improved_performance == o.improved_performance && web_key == o.web_key && debug_oidc_parent_error == o.debug_oidc_parent_error && @@ -244,7 +234,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [login_default_org, oidc_trigger_introspection_projections, oidc_legacy_introspection, user_schema, oidc_token_exchange, actions, improved_performance, web_key, debug_oidc_parent_error, oidc_single_v1_session_termination, disable_user_token_event, enable_back_channel_logout, login_v2, permission_check_v2, console_use_v2_user_api].hash + [login_default_org, oidc_trigger_introspection_projections, oidc_legacy_introspection, user_schema, oidc_token_exchange, improved_performance, web_key, debug_oidc_parent_error, oidc_single_v1_session_termination, disable_user_token_event, enable_back_channel_logout, login_v2, permission_check_v2, console_use_v2_user_api].hash end # Builds the object from hash diff --git a/lib/zitadel/client/models/feature_service_set_system_features_request.rb b/lib/zitadel/client/models/feature_service_set_system_features_request.rb index 2ba4cc62..aba2bc8a 100644 --- a/lib/zitadel/client/models/feature_service_set_system_features_request.rb +++ b/lib/zitadel/client/models/feature_service_set_system_features_request.rb @@ -30,9 +30,6 @@ class FeatureServiceSetSystemFeaturesRequest # Enable the experimental `urn:ietf:params:oauth:grant-type:token-exchange` grant type for the OIDC token endpoint. Token exchange can be used to request tokens with a lesser scope or impersonate other users. See the security policy to allow impersonation on an instance. attr_accessor :oidc_token_exchange - # Actions allow to manage data executions and targets. If the flag is enabled, you'll be able to use the new API and its features. Note that it is still in an early stage. - attr_accessor :actions - # Improves performance of specified execution paths. attr_accessor :improved_performance @@ -58,7 +55,6 @@ def self.attribute_map :'oidc_legacy_introspection' => :'oidcLegacyIntrospection', :'user_schema' => :'userSchema', :'oidc_token_exchange' => :'oidcTokenExchange', - :'actions' => :'actions', :'improved_performance' => :'improvedPerformance', :'oidc_single_v1_session_termination' => :'oidcSingleV1SessionTermination', :'disable_user_token_event' => :'disableUserTokenEvent', @@ -86,7 +82,6 @@ def self.openapi_types :'oidc_legacy_introspection' => :'Boolean', :'user_schema' => :'Boolean', :'oidc_token_exchange' => :'Boolean', - :'actions' => :'Boolean', :'improved_performance' => :'Array', :'oidc_single_v1_session_termination' => :'Boolean', :'disable_user_token_event' => :'Boolean', @@ -140,10 +135,6 @@ def initialize(attributes = {}) self.oidc_token_exchange = attributes[:'oidc_token_exchange'] end - if attributes.key?(:'actions') - self.actions = attributes[:'actions'] - end - if attributes.key?(:'improved_performance') if (value = attributes[:'improved_performance']).is_a?(Array) self.improved_performance = value @@ -196,7 +187,6 @@ def ==(o) oidc_legacy_introspection == o.oidc_legacy_introspection && user_schema == o.user_schema && oidc_token_exchange == o.oidc_token_exchange && - actions == o.actions && improved_performance == o.improved_performance && oidc_single_v1_session_termination == o.oidc_single_v1_session_termination && disable_user_token_event == o.disable_user_token_event && @@ -214,7 +204,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [login_default_org, oidc_trigger_introspection_projections, oidc_legacy_introspection, user_schema, oidc_token_exchange, actions, improved_performance, oidc_single_v1_session_termination, disable_user_token_event, enable_back_channel_logout, login_v2, permission_check_v2].hash + [login_default_org, oidc_trigger_introspection_projections, oidc_legacy_introspection, user_schema, oidc_token_exchange, improved_performance, oidc_single_v1_session_termination, disable_user_token_event, enable_back_channel_logout, login_v2, permission_check_v2].hash end # Builds the object from hash diff --git a/lib/zitadel/client/models/identity_provider_service_s_a_m_l_config.rb b/lib/zitadel/client/models/identity_provider_service_s_a_m_l_config.rb index 3676bf08..f5fe83ac 100644 --- a/lib/zitadel/client/models/identity_provider_service_s_a_m_l_config.rb +++ b/lib/zitadel/client/models/identity_provider_service_s_a_m_l_config.rb @@ -28,6 +28,9 @@ class IdentityProviderServiceSAMLConfig # Optional name of the attribute, which will be used to map the user in case the nameid-format returned is `urn:oasis:names:tc:SAML:2.0:nameid-format:transient`. attr_accessor :transient_mapping_attribute_name + # Boolean weather federated logout is enabled. If enabled, ZITADEL will send a logout request to the identity provider, if the user terminates the session in ZITADEL. Be sure to provide a SLO endpoint as part of the metadata. + attr_accessor :federated_logout_enabled + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -57,7 +60,8 @@ def self.attribute_map :'binding' => :'binding', :'with_signed_request' => :'withSignedRequest', :'name_id_format' => :'nameIdFormat', - :'transient_mapping_attribute_name' => :'transientMappingAttributeName' + :'transient_mapping_attribute_name' => :'transientMappingAttributeName', + :'federated_logout_enabled' => :'federatedLogoutEnabled' } end @@ -78,7 +82,8 @@ def self.openapi_types :'binding' => :'IdentityProviderServiceSAMLBinding', :'with_signed_request' => :'Boolean', :'name_id_format' => :'IdentityProviderServiceSAMLNameIDFormat', - :'transient_mapping_attribute_name' => :'String' + :'transient_mapping_attribute_name' => :'String', + :'federated_logout_enabled' => :'Boolean' } end @@ -129,6 +134,10 @@ def initialize(attributes = {}) if attributes.key?(:'transient_mapping_attribute_name') self.transient_mapping_attribute_name = attributes[:'transient_mapping_attribute_name'] end + + if attributes.key?(:'federated_logout_enabled') + self.federated_logout_enabled = attributes[:'federated_logout_enabled'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -155,7 +164,8 @@ def ==(o) binding == o.binding && with_signed_request == o.with_signed_request && name_id_format == o.name_id_format && - transient_mapping_attribute_name == o.transient_mapping_attribute_name + transient_mapping_attribute_name == o.transient_mapping_attribute_name && + federated_logout_enabled == o.federated_logout_enabled end # @see the `==` method @@ -167,7 +177,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [metadata_xml, binding, with_signed_request, name_id_format, transient_mapping_attribute_name].hash + [metadata_xml, binding, with_signed_request, name_id_format, transient_mapping_attribute_name, federated_logout_enabled].hash end # Builds the object from hash