diff --git a/.bundle/config b/.bundle/config index 6bab2a77..70275940 100644 --- a/.bundle/config +++ b/.bundle/config @@ -1,6 +1,3 @@ ---- -BUNDLE_PATH: "/home/runner/work/client-ruby/client-ruby/vendor/bundle" +BUNDLE_PATH: "./vendor" BUNDLE_IGNORE_FUNDING_REQUESTS: "true" -BUNDLE_DEPLOYMENT: "true" BUNDLE_JOBS: "4" -BUNDLE_WITH: "development:test" diff --git a/.gitignore b/.gitignore index 2ce7d160..63cea27e 100644 --- a/.gitignore +++ b/.gitignore @@ -26,7 +26,7 @@ build/ ## Environment normalization: /.bundle/ -/vendor/bundle +/vendor/ /lib/bundler/man/ # for a library or gem, you might want to ignore these files since the code is diff --git a/.releaserc.json b/.releaserc.json index bcd3ac83..ec66a271 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -20,7 +20,7 @@ [ "@semantic-release/exec", { - "prepareCmd": "sed -i 's/[0-9]\\+\\.[0-9]\\+\\.[0-9]\\+/${nextRelease.version}/' lib/zitadel-client/version.rb" + "prepareCmd": "sed -i 's/[0-9]\\+\\.[0-9]\\+\\.[0-9]\\+/${nextRelease.version}/' lib/zitadel/client/version.rb" } ], [ @@ -58,7 +58,7 @@ { "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}", "assets": [ - "lib/zitadel-client/version.rb", + "lib/zitadel/client/version.rb", "Gemfile.lock" ] } diff --git a/.rubocop.yml b/.rubocop.yml index a8333fb1..07506c54 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -4,8 +4,8 @@ plugins: AllCops: Exclude: - - 'lib/zitadel-client/models/**/*' - - 'lib/zitadel-client/api/**/*' + - 'lib/zitadel/client/models/**/*' + - 'lib/zitadel/client/api/**/*' - 'vendor/**/*' NewCops: enable TargetRubyVersion: 3.0 diff --git a/README.md b/README.md index 5b199ac9..d315248d 100644 --- a/README.md +++ b/README.md @@ -39,13 +39,13 @@ Ensure you have Ruby 3 or higher installed. Install the SDK by running one of the following commands: ``` -gem install zitadel_client +gem install zitadel-client ``` If you're using Bundler use, ``` -bundle add zitadel_client +bundle add zitadel-client ``` ## Authentication Methods @@ -72,20 +72,20 @@ JSON file. This process creates a secure token. **Example:** ```ruby -require 'zitadel_client' +require 'zitadel-client' require 'securerandom' -client = ZitadelClient::Zitadel.with_private_key("https://example.us1.zitadel.cloud", "path/to/jwt-key.json") +client = Zitadel::Client::Zitadel.with_private_key("https://example.us1.zitadel.cloud", "path/to/jwt-key.json") begin response = client.users.user_service_add_human_user( - ZitadelClient::UserServiceAddHumanUserRequest.new( + Zitadel::Client::UserServiceAddHumanUserRequest.new( username: SecureRandom.hex, - profile: ZitadelClient::UserServiceSetHumanProfile.new( + profile: Zitadel::Client::UserServiceSetHumanProfile.new( given_name: 'John', family_name: 'Doe' ), - email: ZitadelClient::UserServiceSetHumanEmail.new( + email: Zitadel::Client::UserServiceSetHumanEmail.new( email: "john.doe@example.com" ) ) @@ -115,20 +115,20 @@ which is then used to authenticate. **Example:** ```ruby -require 'zitadel_client' +require 'zitadel-client' require 'securerandom' -client = ZitadelClient::Zitadel.with_client_credentials("https://example.us1.zitadel.cloud", "id", "secret") +client = Zitadel::Client::Zitadel.with_client_credentials("https://example.us1.zitadel.cloud", "id", "secret") begin response = client.users.user_service_add_human_user( - ZitadelClient::UserServiceAddHumanUserRequest.new( + Zitadel::Client::UserServiceAddHumanUserRequest.new( username: SecureRandom.hex, - profile: ZitadelClient::UserServiceSetHumanProfile.new( + profile: Zitadel::Client::UserServiceSetHumanProfile.new( given_name: 'John', family_name: 'Doe' ), - email: ZitadelClient::UserServiceSetHumanEmail.new( + email: Zitadel::Client::UserServiceSetHumanEmail.new( email: "john.doe@example.com" ) ) @@ -158,20 +158,20 @@ authenticate without exchanging credentials every time. **Example:** ```ruby -require 'zitadel_client' +require 'zitadel-client' require 'securerandom' -client = ZitadelClient::Zitadel.with_access_token("https://example.us1.zitadel.cloud", "token") +client = Zitadel::Client::Zitadel.with_access_token("https://example.us1.zitadel.cloud", "token") begin response = client.users.user_service_add_human_user( - ZitadelClient::UserServiceAddHumanUserRequest.new( + Zitadel::Client::UserServiceAddHumanUserRequest.new( username: SecureRandom.hex, - profile: ZitadelClient::UserServiceSetHumanProfile.new( + profile: Zitadel::Client::UserServiceSetHumanProfile.new( given_name: 'John', family_name: 'Doe' ), - email: ZitadelClient::UserServiceSetHumanEmail.new( + email: Zitadel::Client::UserServiceSetHumanEmail.new( email: "john.doe@example.com" ) ) diff --git a/Steepfile b/Steepfile index 307698db..0123410c 100644 --- a/Steepfile +++ b/Steepfile @@ -6,8 +6,8 @@ target :app do library 'json', 'time', 'date', 'uri', 'pathname', 'net-http', 'tempfile' - ignore 'lib/zitadel-client/models' - ignore 'lib/zitadel-client/api' + ignore 'lib/zitadel/client/models' + ignore 'lib/zitadel/client/api' ignore 'lib/patch.rb' Steep.logger.level = Logger::FATAL diff --git a/devbox.lock b/devbox.lock index ab89b6da..81e0a0f4 100644 --- a/devbox.lock +++ b/devbox.lock @@ -2,50 +2,50 @@ "lockfile_version": "1", "packages": { "lefthook@latest": { - "last_modified": "2025-04-07T13:23:10Z", - "resolved": "github:NixOS/nixpkgs/b0b4b5f8f621bfe213b8b21694bab52ecfcbf30b#lefthook", + "last_modified": "2025-05-16T20:19:48Z", + "resolved": "github:NixOS/nixpkgs/12a55407652e04dcf2309436eb06fef0d3713ef3#lefthook", "source": "devbox-search", - "version": "1.11.5", + "version": "1.11.12", "systems": { "aarch64-darwin": { "outputs": [ { "name": "out", - "path": "/nix/store/4fmy4hm7wq4knkgr22afradj65dhl44j-lefthook-1.11.5", + "path": "/nix/store/kilfcgmnvx98lzr85mbbxrfa9px5879m-lefthook-1.11.12", "default": true } ], - "store_path": "/nix/store/4fmy4hm7wq4knkgr22afradj65dhl44j-lefthook-1.11.5" + "store_path": "/nix/store/kilfcgmnvx98lzr85mbbxrfa9px5879m-lefthook-1.11.12" }, "aarch64-linux": { "outputs": [ { "name": "out", - "path": "/nix/store/gbzlzd5kri8q91hsr0a5ndsqwzar6c80-lefthook-1.11.5", + "path": "/nix/store/pvxs97fc0ba492bciazlqnh5ak0lcgiq-lefthook-1.11.12", "default": true } ], - "store_path": "/nix/store/gbzlzd5kri8q91hsr0a5ndsqwzar6c80-lefthook-1.11.5" + "store_path": "/nix/store/pvxs97fc0ba492bciazlqnh5ak0lcgiq-lefthook-1.11.12" }, "x86_64-darwin": { "outputs": [ { "name": "out", - "path": "/nix/store/91ngsvl5frcd6fa21b2wp0mrz2mxv0c9-lefthook-1.11.5", + "path": "/nix/store/9lrdwi4flvhkvyk6ipb2b8hikyhrr1gq-lefthook-1.11.12", "default": true } ], - "store_path": "/nix/store/91ngsvl5frcd6fa21b2wp0mrz2mxv0c9-lefthook-1.11.5" + "store_path": "/nix/store/9lrdwi4flvhkvyk6ipb2b8hikyhrr1gq-lefthook-1.11.12" }, "x86_64-linux": { "outputs": [ { "name": "out", - "path": "/nix/store/bza0zs1fhm718vq4xr0n8rg4lnbj65p2-lefthook-1.11.5", + "path": "/nix/store/mpdpmidc3fpv6xnwkblwmnykgb8483sm-lefthook-1.11.12", "default": true } ], - "store_path": "/nix/store/bza0zs1fhm718vq4xr0n8rg4lnbj65p2-lefthook-1.11.5" + "store_path": "/nix/store/mpdpmidc3fpv6xnwkblwmnykgb8483sm-lefthook-1.11.12" } } }, diff --git a/lib/zitadel-client/api_client.rb b/lib/zitadel-client/api_client.rb deleted file mode 100644 index 6f10b7d3..00000000 --- a/lib/zitadel-client/api_client.rb +++ /dev/null @@ -1,376 +0,0 @@ -# frozen_string_literal: true - -# rubocop:disable Style/ClassVars -# rubocop:disable Metrics/AbcSize -# rubocop:disable Metrics/CyclomaticComplexity -# rubocop:disable Metrics/MethodLength -# rubocop:disable Metrics/PerceivedComplexity -# rubocop:disable Metrics/ClassLength - -require 'date' -require 'json' -require 'logger' -require 'tempfile' -require 'time' -require 'typhoeus' -require 'uri' - -module ZitadelClient - # ApiClient handles all HTTP interactions with the Zitadel API. - # - # It is responsible for: - # - Constructing and signing requests via the configured authenticator - # - Executing HTTP calls and handling errors (timeouts, non-2xx responses) - # - Streaming file downloads into temporary files - # - Deserializing JSON responses into Ruby types and model objects - # - # === Usage Example: - # config = ZitadelClient::Configuration.new do |c| - # c.authenticator = ZitadelClient::ClientCredentialsAuthenticator.builder(base_url, id, secret).build - # end - # client = ZitadelClient::ApiClient.new(config) - # data, status, headers = client.call_api(:get, '/users', query_params: { limit: 10 }) - class ApiClient - # The Configuration object holding settings to be used in the API client. - attr_accessor :config - - # Defines the headers to be used in HTTP requests of all API calls by default. - # - # @return [Hash[String, String]] - attr_accessor :default_headers - - # Initializes the ApiClient - # @option config [Configuration] Configuration for initializing the object, default to the - # default configuration. - def initialize(config = Configuration.new) - @config = config - @default_headers = { - 'Content-Type' => 'application/json', - 'User-Agent' => config.user_agent - } - end - - # noinspection RubyClassVariableUsageInspection,RbsMissingTypeSignature - # @return [ZitadelClient::ApiClient] - def self.default - @@default ||= ApiClient.new - end - - # Call an API with given options. - # - # @return [Array<(Object, Integer, Hash)>] an array of 3 elements: - # the data deserialized from response body (which may be a Tempfile or nil), response status code and response headers. - # noinspection RbsMissingTypeSignature - def call_api(http_method, path, opts = {}) - request = build_request(http_method, path, opts) - tempfile = nil - (download_file(request) { tempfile = _1 }) if opts[:return_type] == 'File' - response = request.run - - @config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n" if @config.debugging - - unless response.success? - if response.timed_out? - raise 'Connection timed out' - elsif response.return_code != :ok - raise "Network error (#{response.return_code}): #{response.return_message}" - else - raise ApiError.new(response.code, response.headers, response.body) - end - end - - data = if opts[:return_type] == 'File' - tempfile - elsif opts[:return_type] - deserialize(response, opts[:return_type]) - end - [data, response.code, response.headers] - end - - def build_request(http_method, path, opts = {}) - url = URI.join("#{@config.authenticator.send(:host).chomp('/')}/", path).to_s - http_method = http_method.to_sym.downcase - - query_params = opts[:query_params] || {} - form_params = opts[:form_params] || {} - follow_location = opts[:follow_location] || true - header_params = @default_headers.merge(opts[:header_params] || {}).merge(@config.authenticator.send(:auth_headers)) - - req_opts = { - method: http_method, - headers: header_params, - params: query_params, - params_encoding: @config.params_encoding, - timeout: @config.timeout, - ssl_verifypeer: @config.verify_ssl, - ssl_verifyhost: (@config.verify_ssl_host ? 2 : 0), - sslcert: @config.cert_file, - sslkey: @config.key_file, - verbose: @config.debugging, - followlocation: follow_location - } - - # set custom cert, if provided - req_opts[:cainfo] = @config.ssl_ca_cert if @config.ssl_ca_cert - - if %i[post patch put delete].include?(http_method) - req_body = build_request_body(header_params, form_params, opts[:body]) - req_opts.update body: req_body - @config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n" if @config.debugging - end - - Typhoeus::Request.new(url, req_opts) - end - - # Builds the HTTP request body - # - # @param [Hash] header_params Header parameters - # @param [Hash] form_params Query parameters - # @param [Object] body HTTP body (JSON/XML) - # @return [String] HTTP body data in the form of string - # noinspection RubyMismatchedReturnType,RubyArgCount,RbsMissingTypeSignature - def build_request_body(header_params, form_params, body) - # http form - if ['application/x-www-form-urlencoded', - 'multipart/form-data'].include?(header_params['Content-Type']) - data = {} - form_params.each do |key, value| - data[key] = case value - when ::File, ::Array, nil - # let typhoeus handle File, Array and nil parameters - value - else - value.to_s - end - end - elsif body - data = body.is_a?(String) ? body : body.to_json - else - data = nil - end - data - end - - # Save response body into a file in (the defined) temporary folder, using the filename - # from the "Content-Disposition" header if provided, otherwise a random filename. - # The response body is written to the file in chunks in order to handle files which - # size is larger than maximum Ruby String or even larger than the maximum memory a Ruby - # process can use. - # - # @see Configuration#temp_folder_path - # - # @return [Tempfile] the tempfile generated - # noinspection RbsMissingTypeSignature - def download_file(request) - tempfile = nil - encoding = nil - - request.on_headers do |response| - content_disposition = response.headers['Content-Disposition'] - if content_disposition && content_disposition =~ /filename=/i - filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1] - prefix = sanitize_filename(filename) - else - prefix = 'download-' - end - prefix += '-' unless prefix.end_with?('-') - encoding = response.body.encoding - tempfile = Tempfile.open(prefix, @config.temp_folder_path, encoding: encoding) - end - - request.on_body do |chunk| - chunk.force_encoding(encoding) if encoding - ensure_tempfile(tempfile).write(chunk) - end - - request.on_complete do - t = ensure_tempfile(tempfile) - t.close - @config.logger.info "Temp file written to #{t.path}, please copy the file to a proper folder " \ - "with e.g. `FileUtils.cp(t.path, '/new/file/path')` otherwise the temp file " \ - "will be deleted automatically with GC. It's also recommended to delete the temp file " \ - 'explicitly with `t.delete`' - yield t if block_given? - end - end - - def ensure_tempfile(temp) - temp || (raise 'Tempfile not created') - end - - # Check if the given MIME is a JSON MIME. - # JSON MIME examples: - # application/json - # application/json; charset=UTF8 - # APPLICATION/JSON - # */* - # @param [String] mime MIME - # @return [Boolean] True if the MIME is application/json - # noinspection RbsMissingTypeSignature - def json_mime?(mime) - (mime == '*/*') || !(mime =~ %r{^Application/.*json(?!p)(;.*)?}i).nil? - end - - # Deserialize the response to the given return type. - # - # @param [Response] response HTTP response - # @param [String] return_type some examples: "User", "Array", "Hash" - # noinspection RbsMissingTypeSignature - def deserialize(response, return_type) - body = response.body - return nil if body.nil? || body.empty? - - # return response body directly for String return type - return body.to_s if return_type == 'String' - - # ensuring a default content type - content_type = response.headers['Content-Type'] || 'application/json' - - raise "Content-Type is not supported: #{content_type}" unless json_mime?(content_type) - - begin - data = JSON.parse("[#{body}]", symbolize_names: true)[0] - rescue JSON::ParserError => e - raise e unless %w[String Date Time].include?(return_type) - - data = body - end - - convert_to_type data, return_type - end - - # Convert data to the given return type. - # @param [Object] data Data to be converted - # @param [String] return_type Return type - # @return [Mixed] Data in a particular type - # noinspection RubyArgCount,RubyMismatchedArgumentType,RbsMissingTypeSignature - def convert_to_type(data, return_type) - return nil if data.nil? - - # noinspection RegExpRedundantEscape - case return_type - when 'String' - data.to_s - when 'Integer' - data.to_i - when 'Float' - data.to_f - when 'Boolean' - data == true - when 'Time' - # parse date time (expecting ISO 8601 format) - Time.parse data - when 'Date' - # parse date time (expecting ISO 8601 format) - Date.parse data - when 'Object' - # generic object (usually a Hash), return directly - data - when /\AArray<(.+)>\z/ - # e.g. Array - sub_type = ::Regexp.last_match(1) - data.map { |item| convert_to_type(item, sub_type) } - when /\AHash\z/ - # e.g. Hash - sub_type = ::Regexp.last_match(1) - {}.tap do |hash| - data.each { |k, v| hash[k] = convert_to_type(v, sub_type) } - end - else - # models (e.g. Pet) or oneOf - klass = ZitadelClient::Models.const_get(return_type) - klass.respond_to?(:openapi_one_of) ? klass.build(data) : klass.build_from_hash(data) - end - end - - # Sanitize filename by removing path. - # e.g. ../../sun.gif becomes sun.gif - # - # @param [String] filename the filename to be sanitized - # @return [String] the sanitized filename - # noinspection RubyMismatchedReturnType,RbsMissingTypeSignature - def sanitize_filename(filename) - filename.split(%r{[/\\]}).last - end - - # Return Accept header based on an array of accepts provided. - # @param [Array] accepts array for Accept - # @return [String] the Accept header (e.g. application/json) - # noinspection RubyArgCount,RbsMissingTypeSignature - def select_header_accept(accepts) - return nil if accepts.nil? || accepts.empty? - - # use JSON when present, otherwise use all the provided - json_accept = accepts.find { |s| json_mime?(s) } - json_accept || accepts.join(',') - end - - # Return Content-Type header based on an array of content types provided. - # @param [Array] content_types array for Content-Type - # @return [String] the Content-Type header (e.g. application/json) - # noinspection RubyArgCount,RbsMissingTypeSignature - def select_header_content_type(content_types) - # return nil by default - return if content_types.nil? || content_types.empty? - - # use JSON when present, otherwise use the first one - json_content_type = content_types.find { |s| json_mime?(s) } - json_content_type || content_types.first - end - - # Convert object (array, hash, object, etc.) to JSON string. - # @param [Object] model object to be converted into JSON string - # @return [String] JSON string representation of the object - # noinspection RubyMismatchedReturnType,RbsMissingTypeSignature - def object_to_http_body(model) - return model if model.nil? || model.is_a?(String) - - local_body = if model.is_a?(Array) - model.map { |m| object_to_hash(m) } - else - object_to_hash(model) - end - local_body.to_json - end - - # Convert object(non-array) to hash. - # @param [Object] obj object to be converted into JSON string - # @return [String] JSON string representation of the object - # noinspection RubyMismatchedReturnType,RbsMissingTypeSignature - def object_to_hash(obj) - if obj.respond_to?(:to_hash) - obj.to_hash - else - obj - end - end - - # Build parameter value according to the given collection format. - # @param [String] collection_format one of :csv, :ssv, :tsv, :pipes and :multi - # noinspection RbsMissingTypeSignature - def build_collection_param(param, collection_format) - case collection_format - when :csv - param.join(',') - when :ssv - param.join(' ') - when :tsv - param.join("\t") - when :pipes - param.join('|') - when :multi - # return the array directly as typhoeus will handle it as expected - param - else - raise "unknown collection format: #{collection_format.inspect}" - end - end - end -end - -# rubocop:enable Style/ClassVars -# rubocop:enable Metrics/AbcSize -# rubocop:enable Metrics/CyclomaticComplexity -# rubocop:enable Metrics/MethodLength -# rubocop:enable Metrics/PerceivedComplexity -# rubocop:enable Metrics/ClassLength diff --git a/lib/zitadel-client/api_error.rb b/lib/zitadel-client/api_error.rb deleted file mode 100644 index e863c70a..00000000 --- a/lib/zitadel-client/api_error.rb +++ /dev/null @@ -1,29 +0,0 @@ -# frozen_string_literal: true - -module ZitadelClient - ## - # Represents an HTTP error returned from the Zitadel API. - # - # Exposes the HTTP status code, response headers, and response body. - class ApiError < ZitadelError - # @return [Integer] HTTP status code - attr_reader :code - - # @return [Hash{String=>Array}] HTTP response headers - attr_reader :response_headers - - # @return [String, Typhoeus::Response] HTTP response body - attr_reader :response_body - - ## - # @param code [Integer] HTTP status code - # @param response_headers [Hash{String=>Array}] HTTP response headers - # @param response_body [String, Typhoeus::Response] HTTP response body - def initialize(code, response_headers, response_body) - super("Error #{code}") - @code = code - @response_headers = response_headers - @response_body = response_body - end - end -end diff --git a/lib/zitadel-client/auth/authenticator.rb b/lib/zitadel-client/auth/authenticator.rb deleted file mode 100644 index 196fec17..00000000 --- a/lib/zitadel-client/auth/authenticator.rb +++ /dev/null @@ -1,78 +0,0 @@ -# frozen_string_literal: true - -require 'time' - -module ZitadelClient - module Auth - ## - # Abstract base class for authenticators. - # - # This class defines the basic structure for any authenticator by requiring the implementation - # of a method to retrieve authentication headers, and provides a way to store and retrieve the host. - # - class Authenticator - protected - - attr_reader :host - - ## - # Initializes the Authenticator with the specified host. - # - # @param host [String] the base URL or endpoint for the service. - # - def initialize(host) - @host = host - end - - ## - # Retrieves the authentication headers to be sent with requests. - # - # Subclasses must override this method to return the appropriate headers. - # - # @raise [NotImplementedError] Always raised to require implementation in a subclass. - # - # @return [Hash{String => String}] - # - def auth_headers - # :nocov: - raise NotImplementedError, - "#{self.class}#get_auth_headers is an abstract method. Please override it in a subclass." - # :nocov: - end - end - - ## - # Abstract builder class for constructing OAuth authenticator instances. - # - # This builder provides common configuration options such as the OpenId instance and authentication scopes. - # - class OAuthAuthenticatorBuilder - protected - - attr_reader :open_id, :auth_scopes - - ## - # Initializes the OAuthAuthenticatorBuilder with a given host. - # - # @param host [String] the base URL for the OAuth provider. - # - def initialize(host) - @open_id = OpenId.new(host) - @auth_scopes = Set.new(%w[openid urn:zitadel:iam:org:project:id:zitadel:aud]) - end - - public - - ## - # Sets the authentication scopes for the OAuth authenticator. - # - # @param scopes [Array] a variable number of scope strings. - # @return [self] the builder instance to allow for method chaining. - # - def scopes(*scopes) - @auth_scopes = Set.new(scopes) - self - end - end - end -end diff --git a/lib/zitadel-client/auth/client_credentials_authenticator.rb b/lib/zitadel-client/auth/client_credentials_authenticator.rb deleted file mode 100644 index cfb0a1fe..00000000 --- a/lib/zitadel-client/auth/client_credentials_authenticator.rb +++ /dev/null @@ -1,63 +0,0 @@ -# frozen_string_literal: true - -module ZitadelClient - module Auth - # ClientCredentialsAuthenticator implements the client credentials flow. - class ClientCredentialsAuthenticator < ZitadelClient::Auth::OAuthAuthenticator - # Constructs a ClientCredentialsAuthenticator using client credentials flow. - # - # @param open_id [OpenId] The OpenId instance with OAuth endpoint info. - # @param client_id [String] The OAuth client identifier. - # @param client_secret [String] The OAuth client secret. - # @param auth_scopes [Set] The scope(s) for the token request. - def initialize(open_id, client_id, client_secret, auth_scopes) - # noinspection RubyArgCount - super(open_id, auth_scopes, OAuth2::Client.new(client_id, client_secret, { - site: open_id.host_endpoint, - token_url: open_id.token_endpoint - })) - end - - # Returns a new builder for constructing a ClientCredentialsAuthenticator. - # - # @param host [String] The OAuth provider's base URL. - # @param client_id [String] The OAuth client identifier. - # @param client_secret [String] The OAuth client secret. - # @return [ClientCredentialsAuthenticatorBuilder] A builder instance. - def self.builder(host, client_id, client_secret) - ClientCredentialsAuthenticatorBuilder.new(host, client_id, client_secret) - end - - protected - - # Overrides the base get_grant to return client credentials grant parameters. - - # @return [OAuth2::AccessToken] A hash containing the grant type. - def get_grant(client, auth_scopes) - client.client_credentials.get_token({ scope: auth_scopes }) - end - - # Builder class for ClientCredentialsAuthenticator. - class ClientCredentialsAuthenticatorBuilder < OAuthAuthenticatorBuilder - # Initializes the builder with host, client ID, and client secret. - # - # @param host [String] The OAuth provider's base URL. - # @param client_id [String] The OAuth client identifier. - # @param client_secret [String] The OAuth client secret. - def initialize(host, client_id, client_secret) - # noinspection RubyArgCount - super(host) - @client_id = client_id - @client_secret = client_secret - end - - # Constructs and returns a ClientCredentialsAuthenticator using the configured parameters. - # - # @return [ClientCredentialsAuthenticator] A configured instance. - def build - ClientCredentialsAuthenticator.new(open_id, @client_id, @client_secret, auth_scopes) - end - end - end - end -end diff --git a/lib/zitadel-client/auth/no_auth_authenticator.rb b/lib/zitadel-client/auth/no_auth_authenticator.rb deleted file mode 100644 index ae8bc712..00000000 --- a/lib/zitadel-client/auth/no_auth_authenticator.rb +++ /dev/null @@ -1,33 +0,0 @@ -# frozen_string_literal: true - -module ZitadelClient - module Auth - ## - # A simple authenticator that performs no authentication. - # - # This authenticator is useful for cases where no token or credentials are required. - # It simply returns an empty dictionary for authentication headers. - # - class NoAuthAuthenticator < Authenticator - ## - # Initializes the NoAuthAuthenticator with a default host. - # - # @param host [String] the base URL for the service. Defaults to "http://localhost". - # - def initialize(host = 'http://localhost') - super - end - - protected - - ## - # Returns an empty dictionary since no authentication is performed. - # - # @return [Hash{String => String}] an empty hash. - # - def auth_headers - {} - end - end - end -end diff --git a/lib/zitadel-client/auth/o_auth_authenticator.rb b/lib/zitadel-client/auth/o_auth_authenticator.rb deleted file mode 100644 index 3c378cac..00000000 --- a/lib/zitadel-client/auth/o_auth_authenticator.rb +++ /dev/null @@ -1,97 +0,0 @@ -# frozen_string_literal: true - -require 'time' -require 'oauth2' - -OAuth2.configure do |config| - # noinspection RubyResolve - config.silence_extra_tokens_warning = true -end - -module ZitadelClient - module Auth - ## - # Base class for OAuth-based authentication using an OAuth2 client. - # - # Attributes: - # open_id: An object providing OAuth endpoint information. - # auth_session: An OAuth2Session instance used for fetching tokens. - # - class OAuthAuthenticator < Authenticator - protected - - ## - # Constructs an OAuthAuthenticator. - # - # @param open_id [OpenId] An object that must implement `get_host_endpoint` and `get_token_endpoint`. - # @param auth_session [OAuth2Session] The OAuth2Session instance used for token requests. - # - def initialize(open_id, auth_scopes, auth_session) - super(open_id.host_endpoint) - @open_id = open_id - @token = nil - @auth_session = auth_session - @auth_scopes = auth_scopes.to_a.join(' ') - end - - ## - # Returns the current access token, refreshing it if necessary. - # - # @return [String] The current access token. - # - def auth_token - token = @token - if token.nil? || token.expired? - refresh_token - token = @token - end - - raise 'Token is nil after refresh' if token.nil? - - token.token - end - - ## - # Retrieves authentication headers. - # - # @return [Hash{String => String}] A hash containing the 'Authorization' header. - # - def auth_headers - { 'Authorization' => "Bearer #{auth_token}" } - end - - ## - # Builds and returns a hash of grant parameters required for the token request. - # - # The base class will invoke this method by passing its OAuth2 client. - # The subclass implementation should return the result of either: - # client.client_credentials.get_token(scope: scopes) - # or - # client.assertion.get_token(claims) - # - # @param auth_client [OAuth2::Client] The OAuth2 client instance. - # @param [String] auth_scopes - # @return [OAuth2::AccessToken] A hash of parameters used to fetch a token. - # - def get_grant(auth_client, auth_scopes) - # :nocov: - raise NotImplementedError, "#{self.class}#get_grant must be implemented" - # :nocov: - end - - ## - # Refreshes the access token using the OAuth flow. - # - # It uses `get_grant` to obtain all necessary parameters for the token request. - # - # @return [OAuth2::AccessToken] A new Token instance. - # @raise [RuntimeError] if the token refresh fails. - # - def refresh_token - @token = get_grant(@auth_session, @auth_scopes) - rescue StandardError => e - raise ZitadelError.new("Failed to refresh token: #{e.message}"), cause: e - end - end - end -end diff --git a/lib/zitadel-client/auth/open_id.rb b/lib/zitadel-client/auth/open_id.rb deleted file mode 100644 index 205d6643..00000000 --- a/lib/zitadel-client/auth/open_id.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -require 'json' -require 'uri' -require 'net/http' - -module ZitadelClient - module Auth - ## - # OpenId retrieves OpenID Connect configuration from a given host. - # - # It builds the well-known configuration URL from the provided hostname, - # fetches the configuration, and extracts the token endpoint. - # - class OpenId - attr_accessor :token_endpoint, :host_endpoint - - ## - # Initializes a new OpenId instance. - # - # @param hostname [String] the hostname for the OpenID provider. - # @raise [RuntimeError] if the OpenID configuration cannot be fetched or the token_endpoint is missing. - # - # noinspection HttpUrlsUsage - def initialize(hostname) - hostname = "https://#{hostname}" unless hostname.start_with?('http://', 'https://') - @host_endpoint = hostname - well_known_url = self.class.build_well_known_url(hostname) - - uri = URI.parse(well_known_url) - response = Net::HTTP.get_response(uri) - raise "Failed to fetch OpenID configuration: HTTP #{response.code}" unless response.code.to_i == 200 - - config = JSON.parse(response.body) - token_endpoint = config['token_endpoint'] - raise 'token_endpoint not found in OpenID configuration' unless token_endpoint - - @token_endpoint = token_endpoint - end - - ## - # Builds the well-known OpenID configuration URL for the given hostname. - # - # @param hostname [String] the hostname for the OpenID provider. - # @return [String] the well-known configuration URL. - # - def self.build_well_known_url(hostname) - URI.join(hostname, '/.well-known/openid-configuration').to_s - end - end - end -end diff --git a/lib/zitadel-client/auth/personal_access_token_authenticator.rb b/lib/zitadel-client/auth/personal_access_token_authenticator.rb deleted file mode 100644 index f360b76d..00000000 --- a/lib/zitadel-client/auth/personal_access_token_authenticator.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -module ZitadelClient - module Auth - ## - # Personal Access Token Authenticator. - # - # Uses a static personal access token for API authentication. - # - class PersonalAccessTokenAuthenticator < Authenticator - ## - # Initializes the PersonalAccessTokenAuthenticator with host and token. - # - # @param host [String] the base URL for the service. - # @param token [String] the personal access token. - # - def initialize(host, token) - # noinspection RubyArgCount - super(ZitadelClient::Utils::UrlUtil.build_hostname(host)) - @token = token - end - - protected - - ## - # Returns the authentication headers using the personal access token. - # - # @return [Hash{String => String}] a hash containing the 'Authorization' header. - # - def auth_headers - { 'Authorization' => "Bearer #{@token}" } - end - end - end -end diff --git a/lib/zitadel-client/auth/web_token_authenticator.rb b/lib/zitadel-client/auth/web_token_authenticator.rb deleted file mode 100644 index 1320d3b2..00000000 --- a/lib/zitadel-client/auth/web_token_authenticator.rb +++ /dev/null @@ -1,161 +0,0 @@ -# frozen_string_literal: true - -require 'time' -require 'openssl' - -module ZitadelClient - module Auth - # ----------------------------------------------------------------------------- - # WebTokenAuthenticator - # ----------------------------------------------------------------------------- - - # OAuth authenticator implementing the JWT bearer flow. - # - # This implementation builds a JWT assertion dynamically in get_grant(). - class WebTokenAuthenticator < ZitadelClient::Auth::OAuthAuthenticator - # Constructs a WebTokenAuthenticator. - # - # @param open_id [OpenId] The OpenId instance with OAuth endpoint information. - # @param auth_scopes [Set] The scope(s) for the token request. - # @param jwt_issuer [String] The JWT issuer. - # @param jwt_subject [String] The JWT subject. - # @param jwt_audience [String] The JWT audience. - # @param private_key [String] The private key used to sign the JWT. - # @param jwt_lifetime [Integer] Lifetime of the JWT in seconds (default 3600 seconds). - # @param jwt_algorithm [String] The JWT signing algorithm (default "RS256"). - # @param key_id [String, nil] Optional key identifier for the JWT header (default: nil). - # rubocop:disable Metrics/ParameterLists,Metrics/MethodLength - def initialize(open_id, auth_scopes, jwt_issuer, jwt_subject, jwt_audience, private_key, - jwt_lifetime: 3600, jwt_algorithm: 'RS256', key_id: nil) - # noinspection RubyArgCount,RubyMismatchedArgumentType - super(open_id, auth_scopes, OAuth2::Client.new('zitadel', 'zitadel', { - site: open_id.host_endpoint, - token_url: open_id.token_endpoint - })) - @jwt_issuer = jwt_issuer - @jwt_subject = jwt_subject - @jwt_audience = jwt_audience - @private_key = private_key - @jwt_lifetime = jwt_lifetime - @jwt_algorithm = jwt_algorithm - @key_id = key_id - end - - # rubocop:enable Metrics/ParameterLists,Metrics/MethodLength - - # Creates a WebTokenAuthenticator instance from a JSON configuration file. - # - # The JSON file must be formatted as follows: - # - # { - # "type": "serviceaccount", - # "keyId": "", - # "key": "", - # "userId": "" - # } - # - # @param host [String] Base URL for the API endpoints. - # @param json_path [String] File path to the JSON configuration file. - # @return [WebTokenAuthenticator] A new instance of WebTokenAuthenticator. - # @raise [RuntimeError] If the file cannot be read, the JSON is invalid, or required keys are missing. - def self.from_json(host, json_path) - config = JSON.parse(File.read(json_path)) - rescue Errno::ENOENT => e - raise "Unable to read JSON file at #{json_path}: #{e.message}" - rescue JSON::ParserError => e - raise "Invalid JSON in file at #{json_path}: #{e.message}" - else - raise "Expected a JSON object, got #{config.class}" unless config.is_a?(Hash) - - user_id, private_key, key_id = config.values_at('userId', 'key', 'keyId') - raise "Missing required keys 'userId', 'keyId' or 'key'" unless user_id && key_id && private_key - - WebTokenAuthenticator.builder(host, user_id, private_key).key_identifier(key_id).build - end - - # Returns a builder for constructing a WebTokenAuthenticator. - # - # @param host [String] The base URL for the OAuth provider. - # @param user_id [String] The user identifier (used as both the issuer and subject). - # @param private_key [String] The private key used to sign the JWT. - # @return [WebTokenAuthenticatorBuilder] A builder instance. - def self.builder(host, user_id, private_key) - WebTokenAuthenticatorBuilder.new(host, user_id, user_id, host, private_key) - end - - protected - - # Overrides the base get_grant to return client credentials grant parameters. - # - # @return [OAuth2::AccessToken] A hash containing the grant type. - # rubocop:disable Metrics/MethodLength - def get_grant(client, auth_scopes) - client.assertion.get_token( - { iss: @jwt_issuer, - sub: @jwt_subject, - aud: @jwt_audience, - iat: Time.now.utc.to_i, - exp: (Time.now.utc + @jwt_lifetime).to_i }, - { - algorithm: @jwt_algorithm, - key: OpenSSL::PKey::RSA.new(@private_key), - kid: @key_id - }, - { - scope: auth_scopes - } - ) - end - - # rubocop:enable Metrics/MethodLength - - # ----------------------------------------------------------------------------- - # WebTokenAuthenticatorBuilder - # ----------------------------------------------------------------------------- - - # Builder for WebTokenAuthenticator. - # - # Provides a fluent API for configuring and constructing a WebTokenAuthenticator instance. - class WebTokenAuthenticatorBuilder < OAuthAuthenticatorBuilder - # Initializes the WebTokenAuthenticatorBuilder with required parameters. - # - # @param host [String] The base URL for API endpoints. - # @param jwt_issuer [String] The issuer claim for the JWT. - # @param jwt_subject [String] The subject claim for the JWT. - # @param jwt_audience [String] The audience claim for the JWT. - # @param private_key [String] The PEM-formatted private key used for signing the JWT. - def initialize(host, jwt_issuer, jwt_subject, jwt_audience, private_key) - # noinspection RubyArgCount - super(host) - @jwt_issuer = jwt_issuer - @jwt_subject = jwt_subject - @jwt_audience = jwt_audience - @private_key = private_key - @jwt_lifetime = 3600 - end - - # Sets the JWT token lifetime in seconds. - # - # @param seconds [Integer] Lifetime of the JWT in seconds. - # @return [WebTokenAuthenticatorBuilder] The builder instance. - def token_lifetime_seconds(seconds) - @jwt_lifetime = seconds - self - end - - def key_identifier(key_id) - @key_id = key_id - self - end - - # Constructs and returns a new WebTokenAuthenticator instance using the configured parameters. - # - # @return [WebTokenAuthenticator] A configured instance. - def build - WebTokenAuthenticator.new(open_id, auth_scopes, @jwt_issuer, @jwt_subject, @jwt_audience, - @private_key, jwt_lifetime: @jwt_lifetime, key_id: @key_id) - end - end - end - end -end diff --git a/lib/zitadel-client/configuration.rb b/lib/zitadel-client/configuration.rb deleted file mode 100644 index cdd64109..00000000 --- a/lib/zitadel-client/configuration.rb +++ /dev/null @@ -1,178 +0,0 @@ -# frozen_string_literal: true - -module ZitadelClient - ## - # Configuration class for the ZitadelClient SDK. - # - # This class defines all client-level options including timeouts, - # logging, SSL behavior, and validation controls. It allows you - # to customize how API calls are made and handled internally. - # - # Example: - # - # config = ZitadelClient::Configuration.new do |c| - # c.debugging = true - # c.timeout = 10 - # c.verify_ssl = true - # end - # - # noinspection RubyTooManyInstanceVariablesInspection - class Configuration - USER_AGENT = [ - "zitadel-client/#{ZitadelClient::VERSION}", - - [ - 'lang=ruby', - "lang_version=#{RUBY_VERSION}", - "os=#{RUBY_PLATFORM}", - "arch=#{RbConfig::CONFIG['host_cpu']}" - ].join('; ') - .prepend('(').concat(')') - ].join(' ') - - ## - # The authentication strategy used to authorize requests. - # - # This is typically an instance of a class implementing an interface - # like `#authenticate(request)`, such as `NoAuthAuthenticator` or - # a custom implementation. - # - # @return [Authenticator] the authenticator instance - attr_reader :authenticator - - ## - # Enables or disables debug logging. - # - # When enabled, HTTP request and response details are logged - # via the configured `logger` instance. - # - # @return [Boolean] - attr_accessor :debugging - - ## - # The logger used to output debugging information. - # - # Defaults to `Rails.logger` if Rails is defined; otherwise, - # logs to STDOUT. - # - # @return [#debug] - attr_accessor :logger - - ## - # Directory path used to temporarily store files returned - # by API responses (e.g., when downloading files). - # - # @return [String] - attr_accessor :temp_folder_path - - ## - # Request timeout duration in seconds. - # - # If set to `0`, requests will never time out. - # - # @return [Integer] - attr_accessor :timeout - - ## - # Enables or disables client-side request validation. - # - # When disabled, validation of input parameters is skipped. - # Defaults to `true`. - # - # @return [Boolean] - attr_accessor :client_side_validation - - ## - # Controls whether SSL certificates are verified when - # making HTTPS requests. - # - # Set to `false` to bypass certificate verification. Defaults to `true`. - # **Note:** This should always be `true` in production. - # - # @return [Boolean] - attr_accessor :verify_ssl - - ## - # Controls whether SSL hostnames are verified during - # HTTPS communication. - # - # Set to `false` to skip hostname verification. Defaults to `true`. - # **Note:** Disabling this weakens transport security. - # - # @return [Boolean] - attr_accessor :verify_ssl_host - - ## - # Path to the certificate file used to verify the peer. - # - # This is used in place of system-level certificate stores. - # - # @return [String] - # - # @see https://github.com/typhoeus/typhoeus/blob/master/lib/typhoeus/easy_factory.rb#L145 - attr_accessor :ssl_ca_cert - - ## - # Path to the client certificate file for mutual TLS (mTLS). - # - # This is optional and only required when server expects - # client-side certificates. - # - # @return [String] - attr_accessor :cert_file - - ## - # Path to the private key file for the client certificate. - # - # Used with `cert_file` during mutual TLS authentication. - # - # @return [String] - attr_accessor :key_file - - ## - # Custom encoding strategy for query parameters that are arrays. - # - # Set this if your server expects a specific collection format - # (e.g., `multi`, `csv`, etc.). Defaults to `nil`. - # - # @return [Symbol, nil] - # - # @see https://github.com/typhoeus/ethon/blob/master/lib/ethon/easy/queryable.rb#L96 - attr_accessor :params_encoding - - ## - # The User-Agent header to be sent with HTTP requests. - # - # Set this to identify your client or library when making requests. - # - # @return [String, nil] - attr_accessor :user_agent - - # rubocop:disable Metrics/MethodLength - def initialize(authenticator = Auth::NoAuthAuthenticator.new) - @authenticator = authenticator - @client_side_validation = true - @verify_ssl = true - @verify_ssl_host = true - @cert_file = nil - @key_file = nil - @timeout = 0 - @params_encoding = nil - @debugging = false - @logger = nil? - @user_agent = USER_AGENT - - yield(self) if block_given? - end - - # rubocop:enable Metrics/MethodLength - - ## - # Allows modifying the current instance using a configuration block. - # - # @yieldparam [Configuration] self - def configure - yield(self) if block_given? - end - end -end diff --git a/lib/zitadel-client/utils/url_util.rb b/lib/zitadel-client/utils/url_util.rb deleted file mode 100644 index e3cf747e..00000000 --- a/lib/zitadel-client/utils/url_util.rb +++ /dev/null @@ -1,23 +0,0 @@ -# frozen_string_literal: true - -require 'uri' - -module ZitadelClient - module Utils - # Utility module for URL related operations. - # This is a placeholder for UrlUtil, which provides URL utility methods. - class UrlUtil - ## - # Builds the hostname for the provided host. - # - # @param host [String] the base URL for the service. - # @return [String] the fully qualified hostname (defaults to HTTPS if no scheme is provided). - # - def self.build_hostname(host) - uri = URI.parse(host) - host = "https://#{host}" unless uri.scheme - host - end - end - end -end diff --git a/lib/zitadel-client/version.rb b/lib/zitadel-client/version.rb deleted file mode 100644 index 0e6c71cb..00000000 --- a/lib/zitadel-client/version.rb +++ /dev/null @@ -1,5 +0,0 @@ -# frozen_string_literal: true - -module ZitadelClient - VERSION = '1.4.2' -end diff --git a/lib/zitadel-client/zitadel.rb b/lib/zitadel-client/zitadel.rb deleted file mode 100644 index def8675a..00000000 --- a/lib/zitadel-client/zitadel.rb +++ /dev/null @@ -1,82 +0,0 @@ -# frozen_string_literal: true - -module ZitadelClient - # Main entry point for the Zitadel SDK. - # - # Initializes and configures the SDK with the provided authentication strategy. - # Sets up service APIs for interacting with various Zitadel features. - class Zitadel - attr_reader :features, - :idps, - :oidc, - :organizations, - :sessions, - :settings, - :users, - :saml - - # Initialize the Zitadel SDK. - # - # @param authenticator [Authenticator] the authentication strategy to use - # rubocop:disable Metrics/MethodLength - def initialize(authenticator) - # noinspection RubyArgCount - @configuration = Configuration.new(authenticator) - yield @configuration if block_given? - - client = ApiClient.new(@configuration) - - @features = ZitadelClient::Api::FeatureServiceApi.new(client) - @idps = ZitadelClient::Api::IdentityProviderServiceApi.new(client) - @oidc = ZitadelClient::Api::OIDCServiceApi.new(client) - @organizations = ZitadelClient::Api::OrganizationServiceApi.new(client) - @sessions = ZitadelClient::Api::SessionServiceApi.new(client) - @settings = ZitadelClient::Api::SettingsServiceApi.new(client) - @users = ZitadelClient::Api::UserServiceApi.new(client) - @saml = ZitadelClient::Api::SAMLServiceApi.new(client) - end - - # rubocop:enable Metrics/MethodLength - - class << self - # @!group Authentication Entry Points - - # Initialize the SDK with a Personal Access Token (PAT). - # - # @param host [String] API URL (e.g. "https://api.zitadel.example.com"). - # @param access_token [String] Personal Access Token for Bearer authentication. - # @return [Zitadel] SDK client configured with PAT authentication. - # @see https://zitadel.com/docs/guides/integrate/service-users/personal-access-token - def with_access_token(host, access_token) - new(Auth::PersonalAccessTokenAuthenticator.new(host, access_token)) - end - - # Initialize the SDK using OAuth2 Client Credentials flow. - # - # @param host [String] API URL. - # @param client_id [String] OAuth2 client identifier. - # @param client_secret [String] OAuth2 client secret. - # @return [Zitadel] SDK client with automatic token acquisition & refresh. - # @see https://zitadel.com/docs/guides/integrate/service-users/client-credentials - def with_client_credentials(host, client_id, client_secret) - new( - Auth::ClientCredentialsAuthenticator - .builder(host, client_id, client_secret) - .build - ) - end - - # Initialize the SDK via Private Key JWT assertion. - # - # @param host [String] API URL. - # @param key_file [String] Path to service account JSON/PEM key file. - # @return [Zitadel] SDK client using JWT assertion for secure, secret-less auth. - # @see https://zitadel.com/docs/guides/integrate/service-users/private-key-jwt - def with_private_key(host, key_file) - new(Auth::WebTokenAuthenticator.from_json(host, key_file)) - end - - # @!endgroup - end - end -end diff --git a/lib/zitadel-client/zitadel_error.rb b/lib/zitadel-client/zitadel_error.rb deleted file mode 100644 index 136cd65a..00000000 --- a/lib/zitadel-client/zitadel_error.rb +++ /dev/null @@ -1,8 +0,0 @@ -# frozen_string_literal: true - -module ZitadelClient - ## - # Base error for all Zitadel client exceptions. - class ZitadelError < StandardError - end -end diff --git a/lib/zitadel-client/api/.openapi b/lib/zitadel/client/api/.openapi similarity index 100% rename from lib/zitadel-client/api/.openapi rename to lib/zitadel/client/api/.openapi diff --git a/lib/zitadel-client/api/feature_service_api.rb b/lib/zitadel/client/api/feature_service_api.rb similarity index 98% rename from lib/zitadel-client/api/feature_service_api.rb rename to lib/zitadel/client/api/feature_service_api.rb index a5591918..d0a9cd12 100644 --- a/lib/zitadel-client/api/feature_service_api.rb +++ b/lib/zitadel/client/api/feature_service_api.rb @@ -12,7 +12,7 @@ require 'cgi' -module ZitadelClient +module Zitadel::Client module Api # Added Api module class FeatureServiceApi attr_accessor :api_client @@ -82,7 +82,7 @@ def feature_service_get_instance_features_with_http_info(opts = {}) # Get Organization Features # Returns all configured features for an organization. Unset fields mean the feature is the current instance default. Required permissions: - org.feature.read - no permission required for the organization the user belongs to - # @param organization_id [String] + # @param organization_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :inheritance Inherit unset features from the resource owners. This option is recursive: if the flag is set, the resource's ancestors are consulted up to system defaults. If this option is disabled and the feature is not set on the organization, it will be omitted from the response or Not Found is returned when the organization has no features flags at all. # @return [FeatureServiceGetOrganizationFeaturesResponse] @@ -93,7 +93,7 @@ def feature_service_get_organization_features(organization_id, opts = {}) # Get Organization Features # Returns all configured features for an organization. Unset fields mean the feature is the current instance default. Required permissions: - org.feature.read - no permission required for the organization the user belongs to - # @param organization_id [String] + # @param organization_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :inheritance Inherit unset features from the resource owners. This option is recursive: if the flag is set, the resource's ancestors are consulted up to system defaults. If this option is disabled and the feature is not set on the organization, it will be omitted from the response or Not Found is returned when the organization has no features flags at all. # @return [Array<(FeatureServiceGetOrganizationFeaturesResponse, Integer, Hash)>] FeatureServiceGetOrganizationFeaturesResponse data, response status code and response headers @@ -205,7 +205,7 @@ def feature_service_get_system_features_with_http_info(opts = {}) # Get User Features # Returns all configured features for a user. Unset fields mean the feature is the current organization default. Required permissions: - user.feature.read - no permission required for the own user - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :inheritance Inherit unset features from the resource owners. This option is recursive: if the flag is set, the resource's ancestors are consulted up to system defaults. If this option is disabled and the feature is not set on the user, it will be ommitted from the response or Not Found is returned when the user has no features flags at all. # @return [FeatureServiceGetUserFeaturesResponse] @@ -216,7 +216,7 @@ def feature_service_get_user_features(user_id, opts = {}) # Get User Features # Returns all configured features for a user. Unset fields mean the feature is the current organization default. Required permissions: - user.feature.read - no permission required for the own user - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :inheritance Inherit unset features from the resource owners. This option is recursive: if the flag is set, the resource's ancestors are consulted up to system defaults. If this option is disabled and the feature is not set on the user, it will be ommitted from the response or Not Found is returned when the user has no features flags at all. # @return [Array<(FeatureServiceGetUserFeaturesResponse, Integer, Hash)>] FeatureServiceGetUserFeaturesResponse data, response status code and response headers @@ -328,7 +328,7 @@ def feature_service_reset_instance_features_with_http_info(opts = {}) # Reset Organization Features # Deletes ALL configured features for an organization, reverting the behaviors to instance defaults. Required permissions: - org.feature.delete - # @param organization_id [String] + # @param organization_id [String] # @param [Hash] opts the optional parameters # @return [FeatureServiceResetOrganizationFeaturesResponse] def feature_service_reset_organization_features(organization_id, opts = {}) @@ -338,7 +338,7 @@ def feature_service_reset_organization_features(organization_id, opts = {}) # Reset Organization Features # Deletes ALL configured features for an organization, reverting the behaviors to instance defaults. Required permissions: - org.feature.delete - # @param organization_id [String] + # @param organization_id [String] # @param [Hash] opts the optional parameters # @return [Array<(FeatureServiceResetOrganizationFeaturesResponse, Integer, Hash)>] FeatureServiceResetOrganizationFeaturesResponse data, response status code and response headers def feature_service_reset_organization_features_with_http_info(organization_id, opts = {}) @@ -448,7 +448,7 @@ def feature_service_reset_system_features_with_http_info(opts = {}) # Reset User Features # Deletes ALL configured features for a user, reverting the behaviors to organization defaults. Required permissions: - user.feature.delete - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [FeatureServiceResetUserFeaturesResponse] def feature_service_reset_user_features(user_id, opts = {}) @@ -458,7 +458,7 @@ def feature_service_reset_user_features(user_id, opts = {}) # Reset User Features # Deletes ALL configured features for a user, reverting the behaviors to organization defaults. Required permissions: - user.feature.delete - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [Array<(FeatureServiceResetUserFeaturesResponse, Integer, Hash)>] FeatureServiceResetUserFeaturesResponse data, response status code and response headers def feature_service_reset_user_features_with_http_info(user_id, opts = {}) @@ -511,7 +511,7 @@ def feature_service_reset_user_features_with_http_info(user_id, opts = {}) # Set Instance Features # Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. Required permissions: - iam.feature.write - # @param feature_service_set_instance_features_request [FeatureServiceSetInstanceFeaturesRequest] + # @param feature_service_set_instance_features_request [FeatureServiceSetInstanceFeaturesRequest] # @param [Hash] opts the optional parameters # @return [FeatureServiceSetInstanceFeaturesResponse] def feature_service_set_instance_features(feature_service_set_instance_features_request, opts = {}) @@ -521,7 +521,7 @@ def feature_service_set_instance_features(feature_service_set_instance_features_ # Set Instance Features # Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. Required permissions: - iam.feature.write - # @param feature_service_set_instance_features_request [FeatureServiceSetInstanceFeaturesRequest] + # @param feature_service_set_instance_features_request [FeatureServiceSetInstanceFeaturesRequest] # @param [Hash] opts the optional parameters # @return [Array<(FeatureServiceSetInstanceFeaturesResponse, Integer, Hash)>] FeatureServiceSetInstanceFeaturesResponse data, response status code and response headers def feature_service_set_instance_features_with_http_info(feature_service_set_instance_features_request, opts = {}) @@ -579,7 +579,7 @@ def feature_service_set_instance_features_with_http_info(feature_service_set_ins # Set Organization Features # Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. Required permissions: - org.feature.write - # @param organization_id [String] + # @param organization_id [String] # @param [Hash] opts the optional parameters # @return [FeatureServiceSetOrganizationFeaturesResponse] def feature_service_set_organization_features(organization_id, opts = {}) @@ -589,7 +589,7 @@ def feature_service_set_organization_features(organization_id, opts = {}) # Set Organization Features # Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. Required permissions: - org.feature.write - # @param organization_id [String] + # @param organization_id [String] # @param [Hash] opts the optional parameters # @return [Array<(FeatureServiceSetOrganizationFeaturesResponse, Integer, Hash)>] FeatureServiceSetOrganizationFeaturesResponse data, response status code and response headers def feature_service_set_organization_features_with_http_info(organization_id, opts = {}) @@ -647,7 +647,7 @@ def feature_service_set_organization_features_with_http_info(organization_id, op # Set System Features # Configure and set features that apply to the complete system. Only fields present in the request are set or unset. Required permissions: - system.feature.write - # @param feature_service_set_system_features_request [FeatureServiceSetSystemFeaturesRequest] + # @param feature_service_set_system_features_request [FeatureServiceSetSystemFeaturesRequest] # @param [Hash] opts the optional parameters # @return [FeatureServiceSetSystemFeaturesResponse] def feature_service_set_system_features(feature_service_set_system_features_request, opts = {}) @@ -657,7 +657,7 @@ def feature_service_set_system_features(feature_service_set_system_features_requ # Set System Features # Configure and set features that apply to the complete system. Only fields present in the request are set or unset. Required permissions: - system.feature.write - # @param feature_service_set_system_features_request [FeatureServiceSetSystemFeaturesRequest] + # @param feature_service_set_system_features_request [FeatureServiceSetSystemFeaturesRequest] # @param [Hash] opts the optional parameters # @return [Array<(FeatureServiceSetSystemFeaturesResponse, Integer, Hash)>] FeatureServiceSetSystemFeaturesResponse data, response status code and response headers def feature_service_set_system_features_with_http_info(feature_service_set_system_features_request, opts = {}) @@ -715,7 +715,7 @@ def feature_service_set_system_features_with_http_info(feature_service_set_syste # Set User Features # Configure and set features that apply to an user. Only fields present in the request are set or unset. Required permissions: - user.feature.write - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [FeatureServiceSetUserFeaturesResponse] def feature_service_set_user_features(user_id, opts = {}) @@ -725,7 +725,7 @@ def feature_service_set_user_features(user_id, opts = {}) # Set User Features # Configure and set features that apply to an user. Only fields present in the request are set or unset. Required permissions: - user.feature.write - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [Array<(FeatureServiceSetUserFeaturesResponse, Integer, Hash)>] FeatureServiceSetUserFeaturesResponse data, response status code and response headers def feature_service_set_user_features_with_http_info(user_id, opts = {}) diff --git a/lib/zitadel-client/api/identity_provider_service_api.rb b/lib/zitadel/client/api/identity_provider_service_api.rb similarity index 97% rename from lib/zitadel-client/api/identity_provider_service_api.rb rename to lib/zitadel/client/api/identity_provider_service_api.rb index 41d6a4e0..0b532534 100644 --- a/lib/zitadel-client/api/identity_provider_service_api.rb +++ b/lib/zitadel/client/api/identity_provider_service_api.rb @@ -12,7 +12,7 @@ require 'cgi' -module ZitadelClient +module Zitadel::Client module Api # Added Api module class IdentityProviderServiceApi attr_accessor :api_client @@ -22,7 +22,7 @@ def initialize(api_client = ApiClient.default) end # Get identity provider (IdP) by ID # Returns an identity provider (social/enterprise login) by its ID, which can be of the type Google, AzureAD, etc. - # @param id [String] + # @param id [String] # @param [Hash] opts the optional parameters # @return [IdentityProviderServiceGetIDPByIDResponse] def identity_provider_service_get_idpby_id(id, opts = {}) @@ -32,7 +32,7 @@ def identity_provider_service_get_idpby_id(id, opts = {}) # Get identity provider (IdP) by ID # Returns an identity provider (social/enterprise login) by its ID, which can be of the type Google, AzureAD, etc. - # @param id [String] + # @param id [String] # @param [Hash] opts the optional parameters # @return [Array<(IdentityProviderServiceGetIDPByIDResponse, Integer, Hash)>] IdentityProviderServiceGetIDPByIDResponse data, response status code and response headers def identity_provider_service_get_idpby_id_with_http_info(id, opts = {}) diff --git a/lib/zitadel-client/api/o_i_d_c_service_api.rb b/lib/zitadel/client/api/o_i_d_c_service_api.rb similarity index 99% rename from lib/zitadel-client/api/o_i_d_c_service_api.rb rename to lib/zitadel/client/api/o_i_d_c_service_api.rb index 31a1ee3d..871b43e9 100644 --- a/lib/zitadel-client/api/o_i_d_c_service_api.rb +++ b/lib/zitadel/client/api/o_i_d_c_service_api.rb @@ -12,7 +12,7 @@ require 'cgi' -module ZitadelClient +module Zitadel::Client module Api # Added Api module class OIDCServiceApi attr_accessor :api_client @@ -23,7 +23,7 @@ def initialize(api_client = ApiClient.default) # Authorize or deny device authorization # Authorize or deny the device authorization request based on the provided device authorization id. # @param device_authorization_id [String] The device authorization id returned when submitting the user code. - # @param oidc_service_authorize_or_deny_device_authorization_request [OIDCServiceAuthorizeOrDenyDeviceAuthorizationRequest] + # @param oidc_service_authorize_or_deny_device_authorization_request [OIDCServiceAuthorizeOrDenyDeviceAuthorizationRequest] # @param [Hash] opts the optional parameters # @return [Object] def o_idc_service_authorize_or_deny_device_authorization(device_authorization_id, oidc_service_authorize_or_deny_device_authorization_request, opts = {}) @@ -34,7 +34,7 @@ def o_idc_service_authorize_or_deny_device_authorization(device_authorization_id # Authorize or deny device authorization # Authorize or deny the device authorization request based on the provided device authorization id. # @param device_authorization_id [String] The device authorization id returned when submitting the user code. - # @param oidc_service_authorize_or_deny_device_authorization_request [OIDCServiceAuthorizeOrDenyDeviceAuthorizationRequest] + # @param oidc_service_authorize_or_deny_device_authorization_request [OIDCServiceAuthorizeOrDenyDeviceAuthorizationRequest] # @param [Hash] opts the optional parameters # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers def o_idc_service_authorize_or_deny_device_authorization_with_http_info(device_authorization_id, oidc_service_authorize_or_deny_device_authorization_request, opts = {}) @@ -97,7 +97,7 @@ def o_idc_service_authorize_or_deny_device_authorization_with_http_info(device_a # Finalize an Auth Request and get the callback URL. # Finalize an Auth Request and get the callback URL for success or failure. The user must be redirected to the URL in order to inform the application about the success or failure. On success, the URL contains details for the application to obtain the tokens. This method can only be called once for an Auth request. # @param auth_request_id [String] ID of the Auth Request. - # @param oidc_service_create_callback_request [OIDCServiceCreateCallbackRequest] + # @param oidc_service_create_callback_request [OIDCServiceCreateCallbackRequest] # @param [Hash] opts the optional parameters # @return [OIDCServiceCreateCallbackResponse] def o_idc_service_create_callback(auth_request_id, oidc_service_create_callback_request, opts = {}) @@ -108,7 +108,7 @@ def o_idc_service_create_callback(auth_request_id, oidc_service_create_callback_ # Finalize an Auth Request and get the callback URL. # Finalize an Auth Request and get the callback URL for success or failure. The user must be redirected to the URL in order to inform the application about the success or failure. On success, the URL contains details for the application to obtain the tokens. This method can only be called once for an Auth request. # @param auth_request_id [String] ID of the Auth Request. - # @param oidc_service_create_callback_request [OIDCServiceCreateCallbackRequest] + # @param oidc_service_create_callback_request [OIDCServiceCreateCallbackRequest] # @param [Hash] opts the optional parameters # @return [Array<(OIDCServiceCreateCallbackResponse, Integer, Hash)>] OIDCServiceCreateCallbackResponse data, response status code and response headers def o_idc_service_create_callback_with_http_info(auth_request_id, oidc_service_create_callback_request, opts = {}) diff --git a/lib/zitadel-client/api/organization_service_api.rb b/lib/zitadel/client/api/organization_service_api.rb similarity index 97% rename from lib/zitadel-client/api/organization_service_api.rb rename to lib/zitadel/client/api/organization_service_api.rb index 94e9fb76..301f6546 100644 --- a/lib/zitadel-client/api/organization_service_api.rb +++ b/lib/zitadel/client/api/organization_service_api.rb @@ -12,7 +12,7 @@ require 'cgi' -module ZitadelClient +module Zitadel::Client module Api # Added Api module class OrganizationServiceApi attr_accessor :api_client @@ -22,7 +22,7 @@ def initialize(api_client = ApiClient.default) end # Create an Organization # Create a new organization with an administrative user. If no specific roles are sent for the users, they will be granted the role ORG_OWNER. - # @param organization_service_add_organization_request [OrganizationServiceAddOrganizationRequest] + # @param organization_service_add_organization_request [OrganizationServiceAddOrganizationRequest] # @param [Hash] opts the optional parameters # @return [OrganizationServiceAddOrganizationResponse] def organization_service_add_organization(organization_service_add_organization_request, opts = {}) @@ -32,7 +32,7 @@ def organization_service_add_organization(organization_service_add_organization_ # Create an Organization # Create a new organization with an administrative user. If no specific roles are sent for the users, they will be granted the role ORG_OWNER. - # @param organization_service_add_organization_request [OrganizationServiceAddOrganizationRequest] + # @param organization_service_add_organization_request [OrganizationServiceAddOrganizationRequest] # @param [Hash] opts the optional parameters # @return [Array<(OrganizationServiceAddOrganizationResponse, Integer, Hash)>] OrganizationServiceAddOrganizationResponse data, response status code and response headers def organization_service_add_organization_with_http_info(organization_service_add_organization_request, opts = {}) @@ -90,7 +90,7 @@ def organization_service_add_organization_with_http_info(organization_service_ad # Search Organizations # Search for Organizations. By default, we will return all organization of the instance. Make sure to include a limit and sorting for pagination.. - # @param organization_service_list_organizations_request [OrganizationServiceListOrganizationsRequest] + # @param organization_service_list_organizations_request [OrganizationServiceListOrganizationsRequest] # @param [Hash] opts the optional parameters # @return [OrganizationServiceListOrganizationsResponse] def organization_service_list_organizations(organization_service_list_organizations_request, opts = {}) @@ -100,7 +100,7 @@ def organization_service_list_organizations(organization_service_list_organizati # Search Organizations # Search for Organizations. By default, we will return all organization of the instance. Make sure to include a limit and sorting for pagination.. - # @param organization_service_list_organizations_request [OrganizationServiceListOrganizationsRequest] + # @param organization_service_list_organizations_request [OrganizationServiceListOrganizationsRequest] # @param [Hash] opts the optional parameters # @return [Array<(OrganizationServiceListOrganizationsResponse, Integer, Hash)>] OrganizationServiceListOrganizationsResponse data, response status code and response headers def organization_service_list_organizations_with_http_info(organization_service_list_organizations_request, opts = {}) diff --git a/lib/zitadel-client/api/s_a_m_l_service_api.rb b/lib/zitadel/client/api/s_a_m_l_service_api.rb similarity index 99% rename from lib/zitadel-client/api/s_a_m_l_service_api.rb rename to lib/zitadel/client/api/s_a_m_l_service_api.rb index 57f616ab..93229305 100644 --- a/lib/zitadel-client/api/s_a_m_l_service_api.rb +++ b/lib/zitadel/client/api/s_a_m_l_service_api.rb @@ -12,7 +12,7 @@ require 'cgi' -module ZitadelClient +module Zitadel::Client module Api # Added Api module class SAMLServiceApi attr_accessor :api_client @@ -23,7 +23,7 @@ def initialize(api_client = ApiClient.default) # Finalize a SAML Request and get the response. # Finalize a SAML Request and get the response definition for success or failure. The response must be handled as per the SAML definition to inform the application about the success or failure. On success, the response contains details for the application to obtain the SAMLResponse. This method can only be called once for an SAML request. # @param saml_request_id [String] ID of the SAML Request. - # @param saml_service_create_response_request [SAMLServiceCreateResponseRequest] + # @param saml_service_create_response_request [SAMLServiceCreateResponseRequest] # @param [Hash] opts the optional parameters # @return [SAMLServiceCreateResponseResponse] def s_aml_service_create_response(saml_request_id, saml_service_create_response_request, opts = {}) @@ -34,7 +34,7 @@ def s_aml_service_create_response(saml_request_id, saml_service_create_response_ # Finalize a SAML Request and get the response. # Finalize a SAML Request and get the response definition for success or failure. The response must be handled as per the SAML definition to inform the application about the success or failure. On success, the response contains details for the application to obtain the SAMLResponse. This method can only be called once for an SAML request. # @param saml_request_id [String] ID of the SAML Request. - # @param saml_service_create_response_request [SAMLServiceCreateResponseRequest] + # @param saml_service_create_response_request [SAMLServiceCreateResponseRequest] # @param [Hash] opts the optional parameters # @return [Array<(SAMLServiceCreateResponseResponse, Integer, Hash)>] SAMLServiceCreateResponseResponse data, response status code and response headers def s_aml_service_create_response_with_http_info(saml_request_id, saml_service_create_response_request, opts = {}) diff --git a/lib/zitadel-client/api/session_service_api.rb b/lib/zitadel/client/api/session_service_api.rb similarity index 97% rename from lib/zitadel-client/api/session_service_api.rb rename to lib/zitadel/client/api/session_service_api.rb index 90af69d7..ccb83f12 100644 --- a/lib/zitadel-client/api/session_service_api.rb +++ b/lib/zitadel/client/api/session_service_api.rb @@ -12,7 +12,7 @@ require 'cgi' -module ZitadelClient +module Zitadel::Client module Api # Added Api module class SessionServiceApi attr_accessor :api_client @@ -22,7 +22,7 @@ def initialize(api_client = ApiClient.default) end # Create a new session # Create a new session. A token will be returned, which is required for further updates of the session. - # @param session_service_create_session_request [SessionServiceCreateSessionRequest] + # @param session_service_create_session_request [SessionServiceCreateSessionRequest] # @param [Hash] opts the optional parameters # @return [SessionServiceCreateSessionResponse] def session_service_create_session(session_service_create_session_request, opts = {}) @@ -32,7 +32,7 @@ def session_service_create_session(session_service_create_session_request, opts # Create a new session # Create a new session. A token will be returned, which is required for further updates of the session. - # @param session_service_create_session_request [SessionServiceCreateSessionRequest] + # @param session_service_create_session_request [SessionServiceCreateSessionRequest] # @param [Hash] opts the optional parameters # @return [Array<(SessionServiceCreateSessionResponse, Integer, Hash)>] SessionServiceCreateSessionResponse data, response status code and response headers def session_service_create_session_with_http_info(session_service_create_session_request, opts = {}) @@ -91,7 +91,7 @@ def session_service_create_session_with_http_info(session_service_create_session # Terminate an existing session # Terminate your own session or if granted any other session. # @param session_id [String] \"id of the session to terminate\" - # @param session_service_delete_session_request [SessionServiceDeleteSessionRequest] + # @param session_service_delete_session_request [SessionServiceDeleteSessionRequest] # @param [Hash] opts the optional parameters # @return [SessionServiceDeleteSessionResponse] def session_service_delete_session(session_id, session_service_delete_session_request, opts = {}) @@ -102,7 +102,7 @@ def session_service_delete_session(session_id, session_service_delete_session_re # Terminate an existing session # Terminate your own session or if granted any other session. # @param session_id [String] \"id of the session to terminate\" - # @param session_service_delete_session_request [SessionServiceDeleteSessionRequest] + # @param session_service_delete_session_request [SessionServiceDeleteSessionRequest] # @param [Hash] opts the optional parameters # @return [Array<(SessionServiceDeleteSessionResponse, Integer, Hash)>] SessionServiceDeleteSessionResponse data, response status code and response headers def session_service_delete_session_with_http_info(session_id, session_service_delete_session_request, opts = {}) @@ -164,9 +164,9 @@ def session_service_delete_session_with_http_info(session_id, session_service_de # Get a session # Get a session and all its information like the time of the user or password verification - # @param session_id [String] + # @param session_id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :session_token + # @option opts [String] :session_token # @return [SessionServiceGetSessionResponse] def session_service_get_session(session_id, opts = {}) data, _status_code, _headers = session_service_get_session_with_http_info(session_id, opts) @@ -175,9 +175,9 @@ def session_service_get_session(session_id, opts = {}) # Get a session # Get a session and all its information like the time of the user or password verification - # @param session_id [String] + # @param session_id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :session_token + # @option opts [String] :session_token # @return [Array<(SessionServiceGetSessionResponse, Integer, Hash)>] SessionServiceGetSessionResponse data, response status code and response headers def session_service_get_session_with_http_info(session_id, opts = {}) if @api_client.config.debugging @@ -230,7 +230,7 @@ def session_service_get_session_with_http_info(session_id, opts = {}) # Search sessions # Search for sessions - # @param session_service_list_sessions_request [SessionServiceListSessionsRequest] + # @param session_service_list_sessions_request [SessionServiceListSessionsRequest] # @param [Hash] opts the optional parameters # @return [SessionServiceListSessionsResponse] def session_service_list_sessions(session_service_list_sessions_request, opts = {}) @@ -240,7 +240,7 @@ def session_service_list_sessions(session_service_list_sessions_request, opts = # Search sessions # Search for sessions - # @param session_service_list_sessions_request [SessionServiceListSessionsRequest] + # @param session_service_list_sessions_request [SessionServiceListSessionsRequest] # @param [Hash] opts the optional parameters # @return [Array<(SessionServiceListSessionsResponse, Integer, Hash)>] SessionServiceListSessionsResponse data, response status code and response headers def session_service_list_sessions_with_http_info(session_service_list_sessions_request, opts = {}) @@ -299,7 +299,7 @@ def session_service_list_sessions_with_http_info(session_service_list_sessions_r # Update an existing session # Update an existing session with new information. # @param session_id [String] \"id of the session to update\" - # @param session_service_set_session_request [SessionServiceSetSessionRequest] + # @param session_service_set_session_request [SessionServiceSetSessionRequest] # @param [Hash] opts the optional parameters # @return [SessionServiceSetSessionResponse] def session_service_set_session(session_id, session_service_set_session_request, opts = {}) @@ -310,7 +310,7 @@ def session_service_set_session(session_id, session_service_set_session_request, # Update an existing session # Update an existing session with new information. # @param session_id [String] \"id of the session to update\" - # @param session_service_set_session_request [SessionServiceSetSessionRequest] + # @param session_service_set_session_request [SessionServiceSetSessionRequest] # @param [Hash] opts the optional parameters # @return [Array<(SessionServiceSetSessionResponse, Integer, Hash)>] SessionServiceSetSessionResponse data, response status code and response headers def session_service_set_session_with_http_info(session_id, session_service_set_session_request, opts = {}) diff --git a/lib/zitadel-client/api/settings_api.rb b/lib/zitadel/client/api/settings_api.rb similarity index 98% rename from lib/zitadel-client/api/settings_api.rb rename to lib/zitadel/client/api/settings_api.rb index c7e59635..d0b0e829 100644 --- a/lib/zitadel-client/api/settings_api.rb +++ b/lib/zitadel/client/api/settings_api.rb @@ -12,7 +12,7 @@ require 'cgi' -module ZitadelClient +module Zitadel::Client module Api # Added Api module class SettingsApi attr_accessor :api_client @@ -79,7 +79,7 @@ def settings_service_get_security_settings_with_http_info(opts = {}) # Set Security Settings # Set the security settings of the ZITADEL instance. - # @param settings_service_set_security_settings_request [SettingsServiceSetSecuritySettingsRequest] + # @param settings_service_set_security_settings_request [SettingsServiceSetSecuritySettingsRequest] # @param [Hash] opts the optional parameters # @return [SettingsServiceSetSecuritySettingsResponse] def settings_service_set_security_settings(settings_service_set_security_settings_request, opts = {}) @@ -89,7 +89,7 @@ def settings_service_set_security_settings(settings_service_set_security_setting # Set Security Settings # Set the security settings of the ZITADEL instance. - # @param settings_service_set_security_settings_request [SettingsServiceSetSecuritySettingsRequest] + # @param settings_service_set_security_settings_request [SettingsServiceSetSecuritySettingsRequest] # @param [Hash] opts the optional parameters # @return [Array<(SettingsServiceSetSecuritySettingsResponse, Integer, Hash)>] SettingsServiceSetSecuritySettingsResponse data, response status code and response headers def settings_service_set_security_settings_with_http_info(settings_service_set_security_settings_request, opts = {}) diff --git a/lib/zitadel-client/api/settings_service_api.rb b/lib/zitadel/client/api/settings_service_api.rb similarity index 92% rename from lib/zitadel-client/api/settings_service_api.rb rename to lib/zitadel/client/api/settings_service_api.rb index ebe182f4..badf908c 100644 --- a/lib/zitadel-client/api/settings_service_api.rb +++ b/lib/zitadel/client/api/settings_service_api.rb @@ -12,7 +12,7 @@ require 'cgi' -module ZitadelClient +module Zitadel::Client module Api # Added Api module class SettingsServiceApi attr_accessor :api_client @@ -23,12 +23,12 @@ def initialize(api_client = ApiClient.default) # Get the current active identity providers # Return the current active identity providers for the requested context # @param [Hash] opts the optional parameters - # @option opts [String] :ctx_org_id - # @option opts [Boolean] :ctx_instance - # @option opts [Boolean] :creation_allowed - # @option opts [Boolean] :linking_allowed - # @option opts [Boolean] :auto_creation - # @option opts [Boolean] :auto_linking + # @option opts [String] :ctx_org_id + # @option opts [Boolean] :ctx_instance + # @option opts [Boolean] :creation_allowed + # @option opts [Boolean] :linking_allowed + # @option opts [Boolean] :auto_creation + # @option opts [Boolean] :auto_linking # @return [SettingsServiceGetActiveIdentityProvidersResponse] def settings_service_get_active_identity_providers(opts = {}) data, _status_code, _headers = settings_service_get_active_identity_providers_with_http_info(opts) @@ -38,12 +38,12 @@ def settings_service_get_active_identity_providers(opts = {}) # Get the current active identity providers # Return the current active identity providers for the requested context # @param [Hash] opts the optional parameters - # @option opts [String] :ctx_org_id - # @option opts [Boolean] :ctx_instance - # @option opts [Boolean] :creation_allowed - # @option opts [Boolean] :linking_allowed - # @option opts [Boolean] :auto_creation - # @option opts [Boolean] :auto_linking + # @option opts [String] :ctx_org_id + # @option opts [Boolean] :ctx_instance + # @option opts [Boolean] :creation_allowed + # @option opts [Boolean] :linking_allowed + # @option opts [Boolean] :auto_creation + # @option opts [Boolean] :auto_linking # @return [Array<(SettingsServiceGetActiveIdentityProvidersResponse, Integer, Hash)>] SettingsServiceGetActiveIdentityProvidersResponse data, response status code and response headers def settings_service_get_active_identity_providers_with_http_info(opts = {}) if @api_client.config.debugging @@ -98,8 +98,8 @@ def settings_service_get_active_identity_providers_with_http_info(opts = {}) # Get the current active branding settings # Return the current active branding settings for the requested context # @param [Hash] opts the optional parameters - # @option opts [String] :ctx_org_id - # @option opts [Boolean] :ctx_instance + # @option opts [String] :ctx_org_id + # @option opts [Boolean] :ctx_instance # @return [SettingsServiceGetBrandingSettingsResponse] def settings_service_get_branding_settings(opts = {}) data, _status_code, _headers = settings_service_get_branding_settings_with_http_info(opts) @@ -109,8 +109,8 @@ def settings_service_get_branding_settings(opts = {}) # Get the current active branding settings # Return the current active branding settings for the requested context # @param [Hash] opts the optional parameters - # @option opts [String] :ctx_org_id - # @option opts [Boolean] :ctx_instance + # @option opts [String] :ctx_org_id + # @option opts [Boolean] :ctx_instance # @return [Array<(SettingsServiceGetBrandingSettingsResponse, Integer, Hash)>] SettingsServiceGetBrandingSettingsResponse data, response status code and response headers def settings_service_get_branding_settings_with_http_info(opts = {}) if @api_client.config.debugging @@ -161,8 +161,8 @@ def settings_service_get_branding_settings_with_http_info(opts = {}) # Get the domain settings # Return the domain settings for the requested context # @param [Hash] opts the optional parameters - # @option opts [String] :ctx_org_id - # @option opts [Boolean] :ctx_instance + # @option opts [String] :ctx_org_id + # @option opts [Boolean] :ctx_instance # @return [SettingsServiceGetDomainSettingsResponse] def settings_service_get_domain_settings(opts = {}) data, _status_code, _headers = settings_service_get_domain_settings_with_http_info(opts) @@ -172,8 +172,8 @@ def settings_service_get_domain_settings(opts = {}) # Get the domain settings # Return the domain settings for the requested context # @param [Hash] opts the optional parameters - # @option opts [String] :ctx_org_id - # @option opts [Boolean] :ctx_instance + # @option opts [String] :ctx_org_id + # @option opts [Boolean] :ctx_instance # @return [Array<(SettingsServiceGetDomainSettingsResponse, Integer, Hash)>] SettingsServiceGetDomainSettingsResponse data, response status code and response headers def settings_service_get_domain_settings_with_http_info(opts = {}) if @api_client.config.debugging @@ -281,8 +281,8 @@ def settings_service_get_general_settings_with_http_info(opts = {}) # Get the legal and support settings # Return the legal settings for the requested context # @param [Hash] opts the optional parameters - # @option opts [String] :ctx_org_id - # @option opts [Boolean] :ctx_instance + # @option opts [String] :ctx_org_id + # @option opts [Boolean] :ctx_instance # @return [SettingsServiceGetLegalAndSupportSettingsResponse] def settings_service_get_legal_and_support_settings(opts = {}) data, _status_code, _headers = settings_service_get_legal_and_support_settings_with_http_info(opts) @@ -292,8 +292,8 @@ def settings_service_get_legal_and_support_settings(opts = {}) # Get the legal and support settings # Return the legal settings for the requested context # @param [Hash] opts the optional parameters - # @option opts [String] :ctx_org_id - # @option opts [Boolean] :ctx_instance + # @option opts [String] :ctx_org_id + # @option opts [Boolean] :ctx_instance # @return [Array<(SettingsServiceGetLegalAndSupportSettingsResponse, Integer, Hash)>] SettingsServiceGetLegalAndSupportSettingsResponse data, response status code and response headers def settings_service_get_legal_and_support_settings_with_http_info(opts = {}) if @api_client.config.debugging @@ -344,8 +344,8 @@ def settings_service_get_legal_and_support_settings_with_http_info(opts = {}) # Get the lockout settings # Return the lockout settings for the requested context, which define when a user will be locked # @param [Hash] opts the optional parameters - # @option opts [String] :ctx_org_id - # @option opts [Boolean] :ctx_instance + # @option opts [String] :ctx_org_id + # @option opts [Boolean] :ctx_instance # @return [SettingsServiceGetLockoutSettingsResponse] def settings_service_get_lockout_settings(opts = {}) data, _status_code, _headers = settings_service_get_lockout_settings_with_http_info(opts) @@ -355,8 +355,8 @@ def settings_service_get_lockout_settings(opts = {}) # Get the lockout settings # Return the lockout settings for the requested context, which define when a user will be locked # @param [Hash] opts the optional parameters - # @option opts [String] :ctx_org_id - # @option opts [Boolean] :ctx_instance + # @option opts [String] :ctx_org_id + # @option opts [Boolean] :ctx_instance # @return [Array<(SettingsServiceGetLockoutSettingsResponse, Integer, Hash)>] SettingsServiceGetLockoutSettingsResponse data, response status code and response headers def settings_service_get_lockout_settings_with_http_info(opts = {}) if @api_client.config.debugging @@ -407,8 +407,8 @@ def settings_service_get_lockout_settings_with_http_info(opts = {}) # Get the login settings # Return the settings for the requested context # @param [Hash] opts the optional parameters - # @option opts [String] :ctx_org_id - # @option opts [Boolean] :ctx_instance + # @option opts [String] :ctx_org_id + # @option opts [Boolean] :ctx_instance # @return [SettingsServiceGetLoginSettingsResponse] def settings_service_get_login_settings(opts = {}) data, _status_code, _headers = settings_service_get_login_settings_with_http_info(opts) @@ -418,8 +418,8 @@ def settings_service_get_login_settings(opts = {}) # Get the login settings # Return the settings for the requested context # @param [Hash] opts the optional parameters - # @option opts [String] :ctx_org_id - # @option opts [Boolean] :ctx_instance + # @option opts [String] :ctx_org_id + # @option opts [Boolean] :ctx_instance # @return [Array<(SettingsServiceGetLoginSettingsResponse, Integer, Hash)>] SettingsServiceGetLoginSettingsResponse data, response status code and response headers def settings_service_get_login_settings_with_http_info(opts = {}) if @api_client.config.debugging @@ -470,8 +470,8 @@ def settings_service_get_login_settings_with_http_info(opts = {}) # Get the password complexity settings # Return the password complexity settings for the requested context # @param [Hash] opts the optional parameters - # @option opts [String] :ctx_org_id - # @option opts [Boolean] :ctx_instance + # @option opts [String] :ctx_org_id + # @option opts [Boolean] :ctx_instance # @return [SettingsServiceGetPasswordComplexitySettingsResponse] def settings_service_get_password_complexity_settings(opts = {}) data, _status_code, _headers = settings_service_get_password_complexity_settings_with_http_info(opts) @@ -481,8 +481,8 @@ def settings_service_get_password_complexity_settings(opts = {}) # Get the password complexity settings # Return the password complexity settings for the requested context # @param [Hash] opts the optional parameters - # @option opts [String] :ctx_org_id - # @option opts [Boolean] :ctx_instance + # @option opts [String] :ctx_org_id + # @option opts [Boolean] :ctx_instance # @return [Array<(SettingsServiceGetPasswordComplexitySettingsResponse, Integer, Hash)>] SettingsServiceGetPasswordComplexitySettingsResponse data, response status code and response headers def settings_service_get_password_complexity_settings_with_http_info(opts = {}) if @api_client.config.debugging @@ -533,8 +533,8 @@ def settings_service_get_password_complexity_settings_with_http_info(opts = {}) # Get the password expiry settings # Return the password expiry settings for the requested context # @param [Hash] opts the optional parameters - # @option opts [String] :ctx_org_id - # @option opts [Boolean] :ctx_instance + # @option opts [String] :ctx_org_id + # @option opts [Boolean] :ctx_instance # @return [SettingsServiceGetPasswordExpirySettingsResponse] def settings_service_get_password_expiry_settings(opts = {}) data, _status_code, _headers = settings_service_get_password_expiry_settings_with_http_info(opts) @@ -544,8 +544,8 @@ def settings_service_get_password_expiry_settings(opts = {}) # Get the password expiry settings # Return the password expiry settings for the requested context # @param [Hash] opts the optional parameters - # @option opts [String] :ctx_org_id - # @option opts [Boolean] :ctx_instance + # @option opts [String] :ctx_org_id + # @option opts [Boolean] :ctx_instance # @return [Array<(SettingsServiceGetPasswordExpirySettingsResponse, Integer, Hash)>] SettingsServiceGetPasswordExpirySettingsResponse data, response status code and response headers def settings_service_get_password_expiry_settings_with_http_info(opts = {}) if @api_client.config.debugging diff --git a/lib/zitadel-client/api/user_service_api.rb b/lib/zitadel/client/api/user_service_api.rb similarity index 96% rename from lib/zitadel-client/api/user_service_api.rb rename to lib/zitadel/client/api/user_service_api.rb index b54519f0..41f0a8c3 100644 --- a/lib/zitadel-client/api/user_service_api.rb +++ b/lib/zitadel/client/api/user_service_api.rb @@ -12,7 +12,7 @@ require 'cgi' -module ZitadelClient +module Zitadel::Client module Api # Added Api module class UserServiceApi attr_accessor :api_client @@ -22,7 +22,7 @@ def initialize(api_client = ApiClient.default) end # Create a new human user # Create/import a new user with the type human. The newly created user will get a verification email if either the email address is not marked as verified and you did not request the verification to be returned. - # @param user_service_add_human_user_request [UserServiceAddHumanUserRequest] + # @param user_service_add_human_user_request [UserServiceAddHumanUserRequest] # @param [Hash] opts the optional parameters # @return [UserServiceAddHumanUserResponse] def user_service_add_human_user(user_service_add_human_user_request, opts = {}) @@ -32,7 +32,7 @@ def user_service_add_human_user(user_service_add_human_user_request, opts = {}) # Create a new human user # Create/import a new user with the type human. The newly created user will get a verification email if either the email address is not marked as verified and you did not request the verification to be returned. - # @param user_service_add_human_user_request [UserServiceAddHumanUserRequest] + # @param user_service_add_human_user_request [UserServiceAddHumanUserRequest] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceAddHumanUserResponse, Integer, Hash)>] UserServiceAddHumanUserResponse data, response status code and response headers def user_service_add_human_user_with_http_info(user_service_add_human_user_request, opts = {}) @@ -90,8 +90,8 @@ def user_service_add_human_user_with_http_info(user_service_add_human_user_reque # Add link to an identity provider to an user # Add link to an identity provider to an user.. - # @param user_id [String] - # @param user_service_add_idp_link_request [UserServiceAddIDPLinkRequest] + # @param user_id [String] + # @param user_service_add_idp_link_request [UserServiceAddIDPLinkRequest] # @param [Hash] opts the optional parameters # @return [UserServiceAddIDPLinkResponse] def user_service_add_idp_link(user_id, user_service_add_idp_link_request, opts = {}) @@ -101,8 +101,8 @@ def user_service_add_idp_link(user_id, user_service_add_idp_link_request, opts = # Add link to an identity provider to an user # Add link to an identity provider to an user.. - # @param user_id [String] - # @param user_service_add_idp_link_request [UserServiceAddIDPLinkRequest] + # @param user_id [String] + # @param user_service_add_idp_link_request [UserServiceAddIDPLinkRequest] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceAddIDPLinkResponse, Integer, Hash)>] UserServiceAddIDPLinkResponse data, response status code and response headers def user_service_add_idp_link_with_http_info(user_id, user_service_add_idp_link_request, opts = {}) @@ -164,7 +164,7 @@ def user_service_add_idp_link_with_http_info(user_id, user_service_add_idp_link_ # Add OTP Email for a user # Add a new One-Time Password (OTP) Email factor to the authenticated user. OTP Email will enable the user to verify a OTP with the latest verified email. The email has to be verified to add the second factor.. - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [UserServiceAddOTPEmailResponse] def user_service_add_otp_email(user_id, opts = {}) @@ -174,7 +174,7 @@ def user_service_add_otp_email(user_id, opts = {}) # Add OTP Email for a user # Add a new One-Time Password (OTP) Email factor to the authenticated user. OTP Email will enable the user to verify a OTP with the latest verified email. The email has to be verified to add the second factor.. - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceAddOTPEmailResponse, Integer, Hash)>] UserServiceAddOTPEmailResponse data, response status code and response headers def user_service_add_otp_email_with_http_info(user_id, opts = {}) @@ -232,7 +232,7 @@ def user_service_add_otp_email_with_http_info(user_id, opts = {}) # Add OTP SMS for a user # Add a new One-Time Password (OTP) SMS factor to the authenticated user. OTP SMS will enable the user to verify a OTP with the latest verified phone number. The phone number has to be verified to add the second factor.. - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [UserServiceAddOTPSMSResponse] def user_service_add_otpsms(user_id, opts = {}) @@ -242,7 +242,7 @@ def user_service_add_otpsms(user_id, opts = {}) # Add OTP SMS for a user # Add a new One-Time Password (OTP) SMS factor to the authenticated user. OTP SMS will enable the user to verify a OTP with the latest verified phone number. The phone number has to be verified to add the second factor.. - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceAddOTPSMSResponse, Integer, Hash)>] UserServiceAddOTPSMSResponse data, response status code and response headers def user_service_add_otpsms_with_http_info(user_id, opts = {}) @@ -300,8 +300,8 @@ def user_service_add_otpsms_with_http_info(user_id, opts = {}) # Create an invite code for a user # Create an invite code for a user to initialize their first authentication method (password, passkeys, IdP) depending on the organization's available methods. - # @param user_id [String] - # @param user_service_create_invite_code_request [UserServiceCreateInviteCodeRequest] + # @param user_id [String] + # @param user_service_create_invite_code_request [UserServiceCreateInviteCodeRequest] # @param [Hash] opts the optional parameters # @return [UserServiceCreateInviteCodeResponse] def user_service_create_invite_code(user_id, user_service_create_invite_code_request, opts = {}) @@ -311,8 +311,8 @@ def user_service_create_invite_code(user_id, user_service_create_invite_code_req # Create an invite code for a user # Create an invite code for a user to initialize their first authentication method (password, passkeys, IdP) depending on the organization's available methods. - # @param user_id [String] - # @param user_service_create_invite_code_request [UserServiceCreateInviteCodeRequest] + # @param user_id [String] + # @param user_service_create_invite_code_request [UserServiceCreateInviteCodeRequest] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceCreateInviteCodeResponse, Integer, Hash)>] UserServiceCreateInviteCodeResponse data, response status code and response headers def user_service_create_invite_code_with_http_info(user_id, user_service_create_invite_code_request, opts = {}) @@ -374,8 +374,8 @@ def user_service_create_invite_code_with_http_info(user_id, user_service_create_ # Create a passkey registration link for a user # Create a passkey registration link which includes a code and either return it or send it to the user.. - # @param user_id [String] - # @param user_service_create_passkey_registration_link_request [UserServiceCreatePasskeyRegistrationLinkRequest] + # @param user_id [String] + # @param user_service_create_passkey_registration_link_request [UserServiceCreatePasskeyRegistrationLinkRequest] # @param [Hash] opts the optional parameters # @return [UserServiceCreatePasskeyRegistrationLinkResponse] def user_service_create_passkey_registration_link(user_id, user_service_create_passkey_registration_link_request, opts = {}) @@ -385,8 +385,8 @@ def user_service_create_passkey_registration_link(user_id, user_service_create_p # Create a passkey registration link for a user # Create a passkey registration link which includes a code and either return it or send it to the user.. - # @param user_id [String] - # @param user_service_create_passkey_registration_link_request [UserServiceCreatePasskeyRegistrationLinkRequest] + # @param user_id [String] + # @param user_service_create_passkey_registration_link_request [UserServiceCreatePasskeyRegistrationLinkRequest] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceCreatePasskeyRegistrationLinkResponse, Integer, Hash)>] UserServiceCreatePasskeyRegistrationLinkResponse data, response status code and response headers def user_service_create_passkey_registration_link_with_http_info(user_id, user_service_create_passkey_registration_link_request, opts = {}) @@ -448,7 +448,7 @@ def user_service_create_passkey_registration_link_with_http_info(user_id, user_s # Deactivate user # The state of the user will be changed to 'deactivated'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'deactivated'. Use deactivate user when the user should not be able to use the account anymore, but you still need access to the user data.. - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [UserServiceDeactivateUserResponse] def user_service_deactivate_user(user_id, opts = {}) @@ -458,7 +458,7 @@ def user_service_deactivate_user(user_id, opts = {}) # Deactivate user # The state of the user will be changed to 'deactivated'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'deactivated'. Use deactivate user when the user should not be able to use the account anymore, but you still need access to the user data.. - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceDeactivateUserResponse, Integer, Hash)>] UserServiceDeactivateUserResponse data, response status code and response headers def user_service_deactivate_user_with_http_info(user_id, opts = {}) @@ -516,7 +516,7 @@ def user_service_deactivate_user_with_http_info(user_id, opts = {}) # Delete user # The state of the user will be changed to 'deleted'. The user will not be able to log in anymore. Endpoints requesting this user will return an error 'User not found.. - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [UserServiceDeleteUserResponse] def user_service_delete_user(user_id, opts = {}) @@ -526,7 +526,7 @@ def user_service_delete_user(user_id, opts = {}) # Delete user # The state of the user will be changed to 'deleted'. The user will not be able to log in anymore. Endpoints requesting this user will return an error 'User not found.. - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceDeleteUserResponse, Integer, Hash)>] UserServiceDeleteUserResponse data, response status code and response headers def user_service_delete_user_with_http_info(user_id, opts = {}) @@ -642,7 +642,7 @@ def user_service_get_user_by_id_with_http_info(user_id, opts = {}) # MFA Init Skipped # Update the last time the user has skipped MFA initialization. The server timestamp is used. - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [UserServiceHumanMFAInitSkippedResponse] def user_service_human_mfa_init_skipped(user_id, opts = {}) @@ -652,7 +652,7 @@ def user_service_human_mfa_init_skipped(user_id, opts = {}) # MFA Init Skipped # Update the last time the user has skipped MFA initialization. The server timestamp is used. - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceHumanMFAInitSkippedResponse, Integer, Hash)>] UserServiceHumanMFAInitSkippedResponse data, response status code and response headers def user_service_human_mfa_init_skipped_with_http_info(user_id, opts = {}) @@ -708,7 +708,7 @@ def user_service_human_mfa_init_skipped_with_http_info(user_id, opts = {}) return data, status_code, headers end - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @option opts [Array] :auth_factors Specify the Auth Factors you are interested in # @option opts [Array] :states Specify the state of the Auth Factors @@ -718,7 +718,7 @@ def user_service_list_authentication_factors(user_id, opts = {}) data end - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @option opts [Array] :auth_factors Specify the Auth Factors you are interested in # @option opts [Array] :states Specify the state of the Auth Factors @@ -783,7 +783,7 @@ def user_service_list_authentication_factors_with_http_info(user_id, opts = {}) # List all possible authentication methods of a user # List all possible authentication methods of a user like password, passwordless, (T)OTP and more.. - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :domain_query_include_without_domain List also auth method types without domain information like passkey and U2F added through V1 APIs / Login UI. # @option opts [String] :domain_query_domain List only auth methods with specific domain. @@ -795,7 +795,7 @@ def user_service_list_authentication_method_types(user_id, opts = {}) # List all possible authentication methods of a user # List all possible authentication methods of a user like password, passwordless, (T)OTP and more.. - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :domain_query_include_without_domain List also auth method types without domain information like passkey and U2F added through V1 APIs / Login UI. # @option opts [String] :domain_query_domain List only auth methods with specific domain. @@ -852,8 +852,8 @@ def user_service_list_authentication_method_types_with_http_info(user_id, opts = # List links to an identity provider of an user # List links to an identity provider of an user. - # @param user_id [String] - # @param user_service_list_idp_links_request [UserServiceListIDPLinksRequest] + # @param user_id [String] + # @param user_service_list_idp_links_request [UserServiceListIDPLinksRequest] # @param [Hash] opts the optional parameters # @return [UserServiceListIDPLinksResponse] def user_service_list_idp_links(user_id, user_service_list_idp_links_request, opts = {}) @@ -863,8 +863,8 @@ def user_service_list_idp_links(user_id, user_service_list_idp_links_request, op # List links to an identity provider of an user # List links to an identity provider of an user. - # @param user_id [String] - # @param user_service_list_idp_links_request [UserServiceListIDPLinksRequest] + # @param user_id [String] + # @param user_service_list_idp_links_request [UserServiceListIDPLinksRequest] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceListIDPLinksResponse, Integer, Hash)>] UserServiceListIDPLinksResponse data, response status code and response headers def user_service_list_idp_links_with_http_info(user_id, user_service_list_idp_links_request, opts = {}) @@ -926,7 +926,7 @@ def user_service_list_idp_links_with_http_info(user_id, user_service_list_idp_li # List passkeys of an user # List passkeys of an user - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [UserServiceListPasskeysResponse] def user_service_list_passkeys(user_id, opts = {}) @@ -936,7 +936,7 @@ def user_service_list_passkeys(user_id, opts = {}) # List passkeys of an user # List passkeys of an user - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceListPasskeysResponse, Integer, Hash)>] UserServiceListPasskeysResponse data, response status code and response headers def user_service_list_passkeys_with_http_info(user_id, opts = {}) @@ -994,7 +994,7 @@ def user_service_list_passkeys_with_http_info(user_id, opts = {}) # Search Users # Search for users. By default, we will return all users of your instance that you have permission to read. Make sure to include a limit and sorting for pagination. - # @param user_service_list_users_request [UserServiceListUsersRequest] + # @param user_service_list_users_request [UserServiceListUsersRequest] # @param [Hash] opts the optional parameters # @return [UserServiceListUsersResponse] def user_service_list_users(user_service_list_users_request, opts = {}) @@ -1004,7 +1004,7 @@ def user_service_list_users(user_service_list_users_request, opts = {}) # Search Users # Search for users. By default, we will return all users of your instance that you have permission to read. Make sure to include a limit and sorting for pagination. - # @param user_service_list_users_request [UserServiceListUsersRequest] + # @param user_service_list_users_request [UserServiceListUsersRequest] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceListUsersResponse, Integer, Hash)>] UserServiceListUsersResponse data, response status code and response headers def user_service_list_users_with_http_info(user_service_list_users_request, opts = {}) @@ -1062,7 +1062,7 @@ def user_service_list_users_with_http_info(user_service_list_users_request, opts # Lock user # The state of the user will be changed to 'locked'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'locked'. Use this endpoint if the user should not be able to log in temporarily because of an event that happened (wrong password, etc.).. - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [UserServiceLockUserResponse] def user_service_lock_user(user_id, opts = {}) @@ -1072,7 +1072,7 @@ def user_service_lock_user(user_id, opts = {}) # Lock user # The state of the user will be changed to 'locked'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'locked'. Use this endpoint if the user should not be able to log in temporarily because of an event that happened (wrong password, etc.).. - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceLockUserResponse, Integer, Hash)>] UserServiceLockUserResponse data, response status code and response headers def user_service_lock_user_with_http_info(user_id, opts = {}) @@ -1130,8 +1130,8 @@ def user_service_lock_user_with_http_info(user_id, opts = {}) # Request a code to reset a password # Request a code to reset a password.. - # @param user_id [String] - # @param user_service_password_reset_request [UserServicePasswordResetRequest] + # @param user_id [String] + # @param user_service_password_reset_request [UserServicePasswordResetRequest] # @param [Hash] opts the optional parameters # @return [UserServicePasswordResetResponse] def user_service_password_reset(user_id, user_service_password_reset_request, opts = {}) @@ -1141,8 +1141,8 @@ def user_service_password_reset(user_id, user_service_password_reset_request, op # Request a code to reset a password # Request a code to reset a password.. - # @param user_id [String] - # @param user_service_password_reset_request [UserServicePasswordResetRequest] + # @param user_id [String] + # @param user_service_password_reset_request [UserServicePasswordResetRequest] # @param [Hash] opts the optional parameters # @return [Array<(UserServicePasswordResetResponse, Integer, Hash)>] UserServicePasswordResetResponse data, response status code and response headers def user_service_password_reset_with_http_info(user_id, user_service_password_reset_request, opts = {}) @@ -1204,7 +1204,7 @@ def user_service_password_reset_with_http_info(user_id, user_service_password_re # Reactivate user # Reactivate a user with the state 'deactivated'. The user will be able to log in again afterward. The endpoint returns an error if the user is not in the state 'deactivated'.. - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [UserServiceReactivateUserResponse] def user_service_reactivate_user(user_id, opts = {}) @@ -1214,7 +1214,7 @@ def user_service_reactivate_user(user_id, opts = {}) # Reactivate user # Reactivate a user with the state 'deactivated'. The user will be able to log in again afterward. The endpoint returns an error if the user is not in the state 'deactivated'.. - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceReactivateUserResponse, Integer, Hash)>] UserServiceReactivateUserResponse data, response status code and response headers def user_service_reactivate_user_with_http_info(user_id, opts = {}) @@ -1272,8 +1272,8 @@ def user_service_reactivate_user_with_http_info(user_id, opts = {}) # Start the registration of passkey for a user # Start the registration of a passkey for a user, as a response the public key credential creation options are returned, which are used to verify the passkey.. - # @param user_id [String] - # @param user_service_register_passkey_request [UserServiceRegisterPasskeyRequest] + # @param user_id [String] + # @param user_service_register_passkey_request [UserServiceRegisterPasskeyRequest] # @param [Hash] opts the optional parameters # @return [UserServiceRegisterPasskeyResponse] def user_service_register_passkey(user_id, user_service_register_passkey_request, opts = {}) @@ -1283,8 +1283,8 @@ def user_service_register_passkey(user_id, user_service_register_passkey_request # Start the registration of passkey for a user # Start the registration of a passkey for a user, as a response the public key credential creation options are returned, which are used to verify the passkey.. - # @param user_id [String] - # @param user_service_register_passkey_request [UserServiceRegisterPasskeyRequest] + # @param user_id [String] + # @param user_service_register_passkey_request [UserServiceRegisterPasskeyRequest] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceRegisterPasskeyResponse, Integer, Hash)>] UserServiceRegisterPasskeyResponse data, response status code and response headers def user_service_register_passkey_with_http_info(user_id, user_service_register_passkey_request, opts = {}) @@ -1346,7 +1346,7 @@ def user_service_register_passkey_with_http_info(user_id, user_service_register_ # Start the registration of a TOTP generator for a user # Start the registration of a TOTP generator for a user, as a response a secret returned, which is used to initialize a TOTP app or device.. - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [UserServiceRegisterTOTPResponse] def user_service_register_totp(user_id, opts = {}) @@ -1356,7 +1356,7 @@ def user_service_register_totp(user_id, opts = {}) # Start the registration of a TOTP generator for a user # Start the registration of a TOTP generator for a user, as a response a secret returned, which is used to initialize a TOTP app or device.. - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceRegisterTOTPResponse, Integer, Hash)>] UserServiceRegisterTOTPResponse data, response status code and response headers def user_service_register_totp_with_http_info(user_id, opts = {}) @@ -1414,8 +1414,8 @@ def user_service_register_totp_with_http_info(user_id, opts = {}) # Start the registration of a u2f token for a user # Start the registration of a u2f token for a user, as a response the public key credential creation options are returned, which are used to verify the u2f token.. - # @param user_id [String] - # @param user_service_register_u2_f_request [UserServiceRegisterU2FRequest] + # @param user_id [String] + # @param user_service_register_u2_f_request [UserServiceRegisterU2FRequest] # @param [Hash] opts the optional parameters # @return [UserServiceRegisterU2FResponse] def user_service_register_u2_f(user_id, user_service_register_u2_f_request, opts = {}) @@ -1425,8 +1425,8 @@ def user_service_register_u2_f(user_id, user_service_register_u2_f_request, opts # Start the registration of a u2f token for a user # Start the registration of a u2f token for a user, as a response the public key credential creation options are returned, which are used to verify the u2f token.. - # @param user_id [String] - # @param user_service_register_u2_f_request [UserServiceRegisterU2FRequest] + # @param user_id [String] + # @param user_service_register_u2_f_request [UserServiceRegisterU2FRequest] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceRegisterU2FResponse, Integer, Hash)>] UserServiceRegisterU2FResponse data, response status code and response headers def user_service_register_u2_f_with_http_info(user_id, user_service_register_u2_f_request, opts = {}) @@ -1488,9 +1488,9 @@ def user_service_register_u2_f_with_http_info(user_id, user_service_register_u2_ # Remove link of an identity provider to an user # Remove link of an identity provider to an user. - # @param user_id [String] - # @param idp_id [String] - # @param linked_user_id [String] + # @param user_id [String] + # @param idp_id [String] + # @param linked_user_id [String] # @param [Hash] opts the optional parameters # @return [UserServiceRemoveIDPLinkResponse] def user_service_remove_idp_link(user_id, idp_id, linked_user_id, opts = {}) @@ -1500,9 +1500,9 @@ def user_service_remove_idp_link(user_id, idp_id, linked_user_id, opts = {}) # Remove link of an identity provider to an user # Remove link of an identity provider to an user. - # @param user_id [String] - # @param idp_id [String] - # @param linked_user_id [String] + # @param user_id [String] + # @param idp_id [String] + # @param linked_user_id [String] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceRemoveIDPLinkResponse, Integer, Hash)>] UserServiceRemoveIDPLinkResponse data, response status code and response headers def user_service_remove_idp_link_with_http_info(user_id, idp_id, linked_user_id, opts = {}) @@ -1568,7 +1568,7 @@ def user_service_remove_idp_link_with_http_info(user_id, idp_id, linked_user_id, # Remove One-Time Password (OTP) Email from a user # Remove the configured One-Time Password (OTP) Email factor of a user. As only one OTP Email per user is allowed, the user will not have OTP Email as a second factor afterward. - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [UserServiceRemoveOTPEmailResponse] def user_service_remove_otp_email(user_id, opts = {}) @@ -1578,7 +1578,7 @@ def user_service_remove_otp_email(user_id, opts = {}) # Remove One-Time Password (OTP) Email from a user # Remove the configured One-Time Password (OTP) Email factor of a user. As only one OTP Email per user is allowed, the user will not have OTP Email as a second factor afterward. - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceRemoveOTPEmailResponse, Integer, Hash)>] UserServiceRemoveOTPEmailResponse data, response status code and response headers def user_service_remove_otp_email_with_http_info(user_id, opts = {}) @@ -1631,7 +1631,7 @@ def user_service_remove_otp_email_with_http_info(user_id, opts = {}) # Remove One-Time Password (OTP) SMS from a user # Remove the configured One-Time Password (OTP) SMS factor of a user. As only one OTP SMS per user is allowed, the user will not have OTP SMS as a second factor afterward. - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [UserServiceRemoveOTPSMSResponse] def user_service_remove_otpsms(user_id, opts = {}) @@ -1641,7 +1641,7 @@ def user_service_remove_otpsms(user_id, opts = {}) # Remove One-Time Password (OTP) SMS from a user # Remove the configured One-Time Password (OTP) SMS factor of a user. As only one OTP SMS per user is allowed, the user will not have OTP SMS as a second factor afterward. - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceRemoveOTPSMSResponse, Integer, Hash)>] UserServiceRemoveOTPSMSResponse data, response status code and response headers def user_service_remove_otpsms_with_http_info(user_id, opts = {}) @@ -1694,8 +1694,8 @@ def user_service_remove_otpsms_with_http_info(user_id, opts = {}) # Remove passkey from a user # Remove passkey from a user. - # @param user_id [String] - # @param passkey_id [String] + # @param user_id [String] + # @param passkey_id [String] # @param [Hash] opts the optional parameters # @return [UserServiceRemovePasskeyResponse] def user_service_remove_passkey(user_id, passkey_id, opts = {}) @@ -1705,8 +1705,8 @@ def user_service_remove_passkey(user_id, passkey_id, opts = {}) # Remove passkey from a user # Remove passkey from a user. - # @param user_id [String] - # @param passkey_id [String] + # @param user_id [String] + # @param passkey_id [String] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceRemovePasskeyResponse, Integer, Hash)>] UserServiceRemovePasskeyResponse data, response status code and response headers def user_service_remove_passkey_with_http_info(user_id, passkey_id, opts = {}) @@ -1763,7 +1763,7 @@ def user_service_remove_passkey_with_http_info(user_id, passkey_id, opts = {}) # Delete the user phone # Delete the phone number of a user. - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [UserServiceRemovePhoneResponse] def user_service_remove_phone(user_id, opts = {}) @@ -1773,7 +1773,7 @@ def user_service_remove_phone(user_id, opts = {}) # Delete the user phone # Delete the phone number of a user. - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceRemovePhoneResponse, Integer, Hash)>] UserServiceRemovePhoneResponse data, response status code and response headers def user_service_remove_phone_with_http_info(user_id, opts = {}) @@ -1831,7 +1831,7 @@ def user_service_remove_phone_with_http_info(user_id, opts = {}) # Remove TOTP generator from a user # Remove the configured TOTP generator of a user. As only one TOTP generator per user is allowed, the user will not have TOTP as a second factor afterward. - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [UserServiceRemoveTOTPResponse] def user_service_remove_totp(user_id, opts = {}) @@ -1841,7 +1841,7 @@ def user_service_remove_totp(user_id, opts = {}) # Remove TOTP generator from a user # Remove the configured TOTP generator of a user. As only one TOTP generator per user is allowed, the user will not have TOTP as a second factor afterward. - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceRemoveTOTPResponse, Integer, Hash)>] UserServiceRemoveTOTPResponse data, response status code and response headers def user_service_remove_totp_with_http_info(user_id, opts = {}) @@ -1894,8 +1894,8 @@ def user_service_remove_totp_with_http_info(user_id, opts = {}) # Remove u2f token from a user # Remove u2f token from a user - # @param user_id [String] - # @param u2f_id [String] + # @param user_id [String] + # @param u2f_id [String] # @param [Hash] opts the optional parameters # @return [UserServiceRemoveU2FResponse] def user_service_remove_u2_f(user_id, u2f_id, opts = {}) @@ -1905,8 +1905,8 @@ def user_service_remove_u2_f(user_id, u2f_id, opts = {}) # Remove u2f token from a user # Remove u2f token from a user - # @param user_id [String] - # @param u2f_id [String] + # @param user_id [String] + # @param u2f_id [String] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceRemoveU2FResponse, Integer, Hash)>] UserServiceRemoveU2FResponse data, response status code and response headers def user_service_remove_u2_f_with_http_info(user_id, u2f_id, opts = {}) @@ -1963,8 +1963,8 @@ def user_service_remove_u2_f_with_http_info(user_id, u2f_id, opts = {}) # Resend code to verify user email # Resend code to verify user email. - # @param user_id [String] - # @param user_service_resend_email_code_request [UserServiceResendEmailCodeRequest] + # @param user_id [String] + # @param user_service_resend_email_code_request [UserServiceResendEmailCodeRequest] # @param [Hash] opts the optional parameters # @return [UserServiceResendEmailCodeResponse] def user_service_resend_email_code(user_id, user_service_resend_email_code_request, opts = {}) @@ -1974,8 +1974,8 @@ def user_service_resend_email_code(user_id, user_service_resend_email_code_reque # Resend code to verify user email # Resend code to verify user email. - # @param user_id [String] - # @param user_service_resend_email_code_request [UserServiceResendEmailCodeRequest] + # @param user_id [String] + # @param user_service_resend_email_code_request [UserServiceResendEmailCodeRequest] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceResendEmailCodeResponse, Integer, Hash)>] UserServiceResendEmailCodeResponse data, response status code and response headers def user_service_resend_email_code_with_http_info(user_id, user_service_resend_email_code_request, opts = {}) @@ -2037,7 +2037,7 @@ def user_service_resend_email_code_with_http_info(user_id, user_service_resend_e # Resend an invite code for a user # Resend an invite code for a user to initialize their first authentication method (password, passkeys, IdP) depending on the organization's available methods. A resend is only possible if a code has been created previously and sent to the user. If there is no code or it was directly returned, an error will be returned. - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [UserServiceResendInviteCodeResponse] def user_service_resend_invite_code(user_id, opts = {}) @@ -2047,7 +2047,7 @@ def user_service_resend_invite_code(user_id, opts = {}) # Resend an invite code for a user # Resend an invite code for a user to initialize their first authentication method (password, passkeys, IdP) depending on the organization's available methods. A resend is only possible if a code has been created previously and sent to the user. If there is no code or it was directly returned, an error will be returned. - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceResendInviteCodeResponse, Integer, Hash)>] UserServiceResendInviteCodeResponse data, response status code and response headers def user_service_resend_invite_code_with_http_info(user_id, opts = {}) @@ -2100,8 +2100,8 @@ def user_service_resend_invite_code_with_http_info(user_id, opts = {}) # Resend code to verify user phone # Resend code to verify user phone. - # @param user_id [String] - # @param user_service_resend_phone_code_request [UserServiceResendPhoneCodeRequest] + # @param user_id [String] + # @param user_service_resend_phone_code_request [UserServiceResendPhoneCodeRequest] # @param [Hash] opts the optional parameters # @return [UserServiceResendPhoneCodeResponse] def user_service_resend_phone_code(user_id, user_service_resend_phone_code_request, opts = {}) @@ -2111,8 +2111,8 @@ def user_service_resend_phone_code(user_id, user_service_resend_phone_code_reque # Resend code to verify user phone # Resend code to verify user phone. - # @param user_id [String] - # @param user_service_resend_phone_code_request [UserServiceResendPhoneCodeRequest] + # @param user_id [String] + # @param user_service_resend_phone_code_request [UserServiceResendPhoneCodeRequest] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceResendPhoneCodeResponse, Integer, Hash)>] UserServiceResendPhoneCodeResponse data, response status code and response headers def user_service_resend_phone_code_with_http_info(user_id, user_service_resend_phone_code_request, opts = {}) @@ -2175,7 +2175,7 @@ def user_service_resend_phone_code_with_http_info(user_id, user_service_resend_p # Retrieve the information returned by the identity provider # Retrieve the information returned by the identity provider for registration or updating an existing user with new information.. # @param idp_intent_id [String] ID of the idp intent, previously returned on the success response of the IDP callback - # @param user_service_retrieve_identity_provider_intent_request [UserServiceRetrieveIdentityProviderIntentRequest] + # @param user_service_retrieve_identity_provider_intent_request [UserServiceRetrieveIdentityProviderIntentRequest] # @param [Hash] opts the optional parameters # @return [UserServiceRetrieveIdentityProviderIntentResponse] def user_service_retrieve_identity_provider_intent(idp_intent_id, user_service_retrieve_identity_provider_intent_request, opts = {}) @@ -2186,7 +2186,7 @@ def user_service_retrieve_identity_provider_intent(idp_intent_id, user_service_r # Retrieve the information returned by the identity provider # Retrieve the information returned by the identity provider for registration or updating an existing user with new information.. # @param idp_intent_id [String] ID of the idp intent, previously returned on the success response of the IDP callback - # @param user_service_retrieve_identity_provider_intent_request [UserServiceRetrieveIdentityProviderIntentRequest] + # @param user_service_retrieve_identity_provider_intent_request [UserServiceRetrieveIdentityProviderIntentRequest] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceRetrieveIdentityProviderIntentResponse, Integer, Hash)>] UserServiceRetrieveIdentityProviderIntentResponse data, response status code and response headers def user_service_retrieve_identity_provider_intent_with_http_info(idp_intent_id, user_service_retrieve_identity_provider_intent_request, opts = {}) @@ -2248,8 +2248,8 @@ def user_service_retrieve_identity_provider_intent_with_http_info(idp_intent_id, # Send code to verify user email # Send code to verify user email. - # @param user_id [String] - # @param user_service_send_email_code_request [UserServiceSendEmailCodeRequest] + # @param user_id [String] + # @param user_service_send_email_code_request [UserServiceSendEmailCodeRequest] # @param [Hash] opts the optional parameters # @return [UserServiceSendEmailCodeResponse] def user_service_send_email_code(user_id, user_service_send_email_code_request, opts = {}) @@ -2259,8 +2259,8 @@ def user_service_send_email_code(user_id, user_service_send_email_code_request, # Send code to verify user email # Send code to verify user email. - # @param user_id [String] - # @param user_service_send_email_code_request [UserServiceSendEmailCodeRequest] + # @param user_id [String] + # @param user_service_send_email_code_request [UserServiceSendEmailCodeRequest] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceSendEmailCodeResponse, Integer, Hash)>] UserServiceSendEmailCodeResponse data, response status code and response headers def user_service_send_email_code_with_http_info(user_id, user_service_send_email_code_request, opts = {}) @@ -2322,8 +2322,8 @@ def user_service_send_email_code_with_http_info(user_id, user_service_send_email # Change the user email # Change the email address of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by email.. - # @param user_id [String] - # @param user_service_set_email_request [UserServiceSetEmailRequest] + # @param user_id [String] + # @param user_service_set_email_request [UserServiceSetEmailRequest] # @param [Hash] opts the optional parameters # @return [UserServiceSetEmailResponse] def user_service_set_email(user_id, user_service_set_email_request, opts = {}) @@ -2333,8 +2333,8 @@ def user_service_set_email(user_id, user_service_set_email_request, opts = {}) # Change the user email # Change the email address of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by email.. - # @param user_id [String] - # @param user_service_set_email_request [UserServiceSetEmailRequest] + # @param user_id [String] + # @param user_service_set_email_request [UserServiceSetEmailRequest] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceSetEmailResponse, Integer, Hash)>] UserServiceSetEmailResponse data, response status code and response headers def user_service_set_email_with_http_info(user_id, user_service_set_email_request, opts = {}) @@ -2396,8 +2396,8 @@ def user_service_set_email_with_http_info(user_id, user_service_set_email_reques # Change password # Change the password of a user with either a verification code or the current password.. - # @param user_id [String] - # @param user_service_set_password_request [UserServiceSetPasswordRequest] + # @param user_id [String] + # @param user_service_set_password_request [UserServiceSetPasswordRequest] # @param [Hash] opts the optional parameters # @return [UserServiceSetPasswordResponse] def user_service_set_password(user_id, user_service_set_password_request, opts = {}) @@ -2407,8 +2407,8 @@ def user_service_set_password(user_id, user_service_set_password_request, opts = # Change password # Change the password of a user with either a verification code or the current password.. - # @param user_id [String] - # @param user_service_set_password_request [UserServiceSetPasswordRequest] + # @param user_id [String] + # @param user_service_set_password_request [UserServiceSetPasswordRequest] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceSetPasswordResponse, Integer, Hash)>] UserServiceSetPasswordResponse data, response status code and response headers def user_service_set_password_with_http_info(user_id, user_service_set_password_request, opts = {}) @@ -2470,8 +2470,8 @@ def user_service_set_password_with_http_info(user_id, user_service_set_password_ # Set the user phone # Set the phone number of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by sms.. - # @param user_id [String] - # @param user_service_set_phone_request [UserServiceSetPhoneRequest] + # @param user_id [String] + # @param user_service_set_phone_request [UserServiceSetPhoneRequest] # @param [Hash] opts the optional parameters # @return [UserServiceSetPhoneResponse] def user_service_set_phone(user_id, user_service_set_phone_request, opts = {}) @@ -2481,8 +2481,8 @@ def user_service_set_phone(user_id, user_service_set_phone_request, opts = {}) # Set the user phone # Set the phone number of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by sms.. - # @param user_id [String] - # @param user_service_set_phone_request [UserServiceSetPhoneRequest] + # @param user_id [String] + # @param user_service_set_phone_request [UserServiceSetPhoneRequest] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceSetPhoneResponse, Integer, Hash)>] UserServiceSetPhoneResponse data, response status code and response headers def user_service_set_phone_with_http_info(user_id, user_service_set_phone_request, opts = {}) @@ -2544,7 +2544,7 @@ def user_service_set_phone_with_http_info(user_id, user_service_set_phone_reques # Start flow with an identity provider # Start a flow with an identity provider, for external login, registration or linking.. - # @param user_service_start_identity_provider_intent_request [UserServiceStartIdentityProviderIntentRequest] + # @param user_service_start_identity_provider_intent_request [UserServiceStartIdentityProviderIntentRequest] # @param [Hash] opts the optional parameters # @return [UserServiceStartIdentityProviderIntentResponse] def user_service_start_identity_provider_intent(user_service_start_identity_provider_intent_request, opts = {}) @@ -2554,7 +2554,7 @@ def user_service_start_identity_provider_intent(user_service_start_identity_prov # Start flow with an identity provider # Start a flow with an identity provider, for external login, registration or linking.. - # @param user_service_start_identity_provider_intent_request [UserServiceStartIdentityProviderIntentRequest] + # @param user_service_start_identity_provider_intent_request [UserServiceStartIdentityProviderIntentRequest] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceStartIdentityProviderIntentResponse, Integer, Hash)>] UserServiceStartIdentityProviderIntentResponse data, response status code and response headers def user_service_start_identity_provider_intent_with_http_info(user_service_start_identity_provider_intent_request, opts = {}) @@ -2612,7 +2612,7 @@ def user_service_start_identity_provider_intent_with_http_info(user_service_star # Unlock user # The state of the user will be changed to 'locked'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'locked'. Use this endpoint if the user should not be able to log in temporarily because of an event that happened (wrong password, etc.).. - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [UserServiceUnlockUserResponse] def user_service_unlock_user(user_id, opts = {}) @@ -2622,7 +2622,7 @@ def user_service_unlock_user(user_id, opts = {}) # Unlock user # The state of the user will be changed to 'locked'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'locked'. Use this endpoint if the user should not be able to log in temporarily because of an event that happened (wrong password, etc.).. - # @param user_id [String] + # @param user_id [String] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceUnlockUserResponse, Integer, Hash)>] UserServiceUnlockUserResponse data, response status code and response headers def user_service_unlock_user_with_http_info(user_id, opts = {}) @@ -2680,8 +2680,8 @@ def user_service_unlock_user_with_http_info(user_id, opts = {}) # Update User # Update all information from a user.. - # @param user_id [String] - # @param user_service_update_human_user_request [UserServiceUpdateHumanUserRequest] + # @param user_id [String] + # @param user_service_update_human_user_request [UserServiceUpdateHumanUserRequest] # @param [Hash] opts the optional parameters # @return [UserServiceUpdateHumanUserResponse] def user_service_update_human_user(user_id, user_service_update_human_user_request, opts = {}) @@ -2691,8 +2691,8 @@ def user_service_update_human_user(user_id, user_service_update_human_user_reque # Update User # Update all information from a user.. - # @param user_id [String] - # @param user_service_update_human_user_request [UserServiceUpdateHumanUserRequest] + # @param user_id [String] + # @param user_service_update_human_user_request [UserServiceUpdateHumanUserRequest] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceUpdateHumanUserResponse, Integer, Hash)>] UserServiceUpdateHumanUserResponse data, response status code and response headers def user_service_update_human_user_with_http_info(user_id, user_service_update_human_user_request, opts = {}) @@ -2754,8 +2754,8 @@ def user_service_update_human_user_with_http_info(user_id, user_service_update_h # Verify the email # Verify the email with the generated code. - # @param user_id [String] - # @param user_service_verify_email_request [UserServiceVerifyEmailRequest] + # @param user_id [String] + # @param user_service_verify_email_request [UserServiceVerifyEmailRequest] # @param [Hash] opts the optional parameters # @return [UserServiceVerifyEmailResponse] def user_service_verify_email(user_id, user_service_verify_email_request, opts = {}) @@ -2765,8 +2765,8 @@ def user_service_verify_email(user_id, user_service_verify_email_request, opts = # Verify the email # Verify the email with the generated code. - # @param user_id [String] - # @param user_service_verify_email_request [UserServiceVerifyEmailRequest] + # @param user_id [String] + # @param user_service_verify_email_request [UserServiceVerifyEmailRequest] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceVerifyEmailResponse, Integer, Hash)>] UserServiceVerifyEmailResponse data, response status code and response headers def user_service_verify_email_with_http_info(user_id, user_service_verify_email_request, opts = {}) @@ -2828,8 +2828,8 @@ def user_service_verify_email_with_http_info(user_id, user_service_verify_email_ # Verify an invite code for a user # Verify the invite code of a user previously issued. This will set their email to a verified state and allow the user to set up their first authentication method (password, passkeys, IdP) depending on the organization's available methods. - # @param user_id [String] - # @param user_service_verify_invite_code_request [UserServiceVerifyInviteCodeRequest] + # @param user_id [String] + # @param user_service_verify_invite_code_request [UserServiceVerifyInviteCodeRequest] # @param [Hash] opts the optional parameters # @return [UserServiceVerifyInviteCodeResponse] def user_service_verify_invite_code(user_id, user_service_verify_invite_code_request, opts = {}) @@ -2839,8 +2839,8 @@ def user_service_verify_invite_code(user_id, user_service_verify_invite_code_req # Verify an invite code for a user # Verify the invite code of a user previously issued. This will set their email to a verified state and allow the user to set up their first authentication method (password, passkeys, IdP) depending on the organization's available methods. - # @param user_id [String] - # @param user_service_verify_invite_code_request [UserServiceVerifyInviteCodeRequest] + # @param user_id [String] + # @param user_service_verify_invite_code_request [UserServiceVerifyInviteCodeRequest] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceVerifyInviteCodeResponse, Integer, Hash)>] UserServiceVerifyInviteCodeResponse data, response status code and response headers def user_service_verify_invite_code_with_http_info(user_id, user_service_verify_invite_code_request, opts = {}) @@ -2902,9 +2902,9 @@ def user_service_verify_invite_code_with_http_info(user_id, user_service_verify_ # Verify a passkey for a user # Verify the passkey registration with the public key credential.. - # @param user_id [String] - # @param passkey_id [String] - # @param user_service_verify_passkey_registration_request [UserServiceVerifyPasskeyRegistrationRequest] + # @param user_id [String] + # @param passkey_id [String] + # @param user_service_verify_passkey_registration_request [UserServiceVerifyPasskeyRegistrationRequest] # @param [Hash] opts the optional parameters # @return [UserServiceVerifyPasskeyRegistrationResponse] def user_service_verify_passkey_registration(user_id, passkey_id, user_service_verify_passkey_registration_request, opts = {}) @@ -2914,9 +2914,9 @@ def user_service_verify_passkey_registration(user_id, passkey_id, user_service_v # Verify a passkey for a user # Verify the passkey registration with the public key credential.. - # @param user_id [String] - # @param passkey_id [String] - # @param user_service_verify_passkey_registration_request [UserServiceVerifyPasskeyRegistrationRequest] + # @param user_id [String] + # @param passkey_id [String] + # @param user_service_verify_passkey_registration_request [UserServiceVerifyPasskeyRegistrationRequest] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceVerifyPasskeyRegistrationResponse, Integer, Hash)>] UserServiceVerifyPasskeyRegistrationResponse data, response status code and response headers def user_service_verify_passkey_registration_with_http_info(user_id, passkey_id, user_service_verify_passkey_registration_request, opts = {}) @@ -2982,8 +2982,8 @@ def user_service_verify_passkey_registration_with_http_info(user_id, passkey_id, # Verify the phone # Verify the phone with the generated code.. - # @param user_id [String] - # @param user_service_verify_phone_request [UserServiceVerifyPhoneRequest] + # @param user_id [String] + # @param user_service_verify_phone_request [UserServiceVerifyPhoneRequest] # @param [Hash] opts the optional parameters # @return [UserServiceVerifyPhoneResponse] def user_service_verify_phone(user_id, user_service_verify_phone_request, opts = {}) @@ -2993,8 +2993,8 @@ def user_service_verify_phone(user_id, user_service_verify_phone_request, opts = # Verify the phone # Verify the phone with the generated code.. - # @param user_id [String] - # @param user_service_verify_phone_request [UserServiceVerifyPhoneRequest] + # @param user_id [String] + # @param user_service_verify_phone_request [UserServiceVerifyPhoneRequest] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceVerifyPhoneResponse, Integer, Hash)>] UserServiceVerifyPhoneResponse data, response status code and response headers def user_service_verify_phone_with_http_info(user_id, user_service_verify_phone_request, opts = {}) @@ -3056,8 +3056,8 @@ def user_service_verify_phone_with_http_info(user_id, user_service_verify_phone_ # Verify a TOTP generator for a user # Verify the TOTP registration with a generated code.. - # @param user_id [String] - # @param user_service_verify_totp_registration_request [UserServiceVerifyTOTPRegistrationRequest] + # @param user_id [String] + # @param user_service_verify_totp_registration_request [UserServiceVerifyTOTPRegistrationRequest] # @param [Hash] opts the optional parameters # @return [UserServiceVerifyTOTPRegistrationResponse] def user_service_verify_totp_registration(user_id, user_service_verify_totp_registration_request, opts = {}) @@ -3067,8 +3067,8 @@ def user_service_verify_totp_registration(user_id, user_service_verify_totp_regi # Verify a TOTP generator for a user # Verify the TOTP registration with a generated code.. - # @param user_id [String] - # @param user_service_verify_totp_registration_request [UserServiceVerifyTOTPRegistrationRequest] + # @param user_id [String] + # @param user_service_verify_totp_registration_request [UserServiceVerifyTOTPRegistrationRequest] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceVerifyTOTPRegistrationResponse, Integer, Hash)>] UserServiceVerifyTOTPRegistrationResponse data, response status code and response headers def user_service_verify_totp_registration_with_http_info(user_id, user_service_verify_totp_registration_request, opts = {}) @@ -3130,9 +3130,9 @@ def user_service_verify_totp_registration_with_http_info(user_id, user_service_v # Verify a u2f token for a user # Verify the u2f token registration with the public key credential.. - # @param user_id [String] - # @param u2f_id [String] - # @param user_service_verify_u2_f_registration_request [UserServiceVerifyU2FRegistrationRequest] + # @param user_id [String] + # @param u2f_id [String] + # @param user_service_verify_u2_f_registration_request [UserServiceVerifyU2FRegistrationRequest] # @param [Hash] opts the optional parameters # @return [UserServiceVerifyU2FRegistrationResponse] def user_service_verify_u2_f_registration(user_id, u2f_id, user_service_verify_u2_f_registration_request, opts = {}) @@ -3142,9 +3142,9 @@ def user_service_verify_u2_f_registration(user_id, u2f_id, user_service_verify_u # Verify a u2f token for a user # Verify the u2f token registration with the public key credential.. - # @param user_id [String] - # @param u2f_id [String] - # @param user_service_verify_u2_f_registration_request [UserServiceVerifyU2FRegistrationRequest] + # @param user_id [String] + # @param u2f_id [String] + # @param user_service_verify_u2_f_registration_request [UserServiceVerifyU2FRegistrationRequest] # @param [Hash] opts the optional parameters # @return [Array<(UserServiceVerifyU2FRegistrationResponse, Integer, Hash)>] UserServiceVerifyU2FRegistrationResponse data, response status code and response headers def user_service_verify_u2_f_registration_with_http_info(user_id, u2f_id, user_service_verify_u2_f_registration_request, opts = {}) diff --git a/lib/zitadel/client/api_client.rb b/lib/zitadel/client/api_client.rb new file mode 100644 index 00000000..511dcbcb --- /dev/null +++ b/lib/zitadel/client/api_client.rb @@ -0,0 +1,378 @@ +# frozen_string_literal: true + +# rubocop:disable Style/ClassVars +# rubocop:disable Metrics/AbcSize +# rubocop:disable Metrics/CyclomaticComplexity +# rubocop:disable Metrics/MethodLength +# rubocop:disable Metrics/PerceivedComplexity +# rubocop:disable Metrics/ClassLength + +require 'date' +require 'json' +require 'logger' +require 'tempfile' +require 'time' +require 'typhoeus' +require 'uri' + +module Zitadel + module Client + # ApiClient handles all HTTP interactions with the Zitadel API. + # + # It is responsible for: + # - Constructing and signing requests via the configured authenticator + # - Executing HTTP calls and handling errors (timeouts, non-2xx responses) + # - Streaming file downloads into temporary files + # - Deserializing JSON responses into Ruby types and model objects + # + # === Usage Example: + # config = Zitadel::Client::Configuration.new do |c| + # c.authenticator = Zitadel::Client::ClientCredentialsAuthenticator.builder(base_url, id, secret).build + # end + # client = Zitadel::Client::ApiClient.new(config) + # data, status, headers = client.call_api(:get, '/users', query_params: { limit: 10 }) + class ApiClient + # The Configuration object holding settings to be used in the API client. + attr_accessor :config + + # Defines the headers to be used in HTTP requests of all API calls by default. + # + # @return [Hash[String, String]] + attr_accessor :default_headers + + # Initializes the ApiClient + # @option config [Configuration] Configuration for initializing the object, default to the + # default configuration. + def initialize(config = Configuration.new) + @config = config + @default_headers = { + 'Content-Type' => 'application/json', + 'User-Agent' => config.user_agent + } + end + + # noinspection RubyClassVariableUsageInspection,RbsMissingTypeSignature + # @return [Zitadel::Client::ApiClient] + def self.default + @@default ||= ApiClient.new + end + + # Call an API with given options. + # + # @return [Array<(Object, Integer, Hash)>] an array of 3 elements: + # the data deserialized from response body (which may be a Tempfile or nil), response status code and response headers. + # noinspection RbsMissingTypeSignature + def call_api(http_method, path, opts = {}) + request = build_request(http_method, path, opts) + tempfile = nil + (download_file(request) { tempfile = _1 }) if opts[:return_type] == 'File' + response = request.run + + @config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n" if @config.debugging + + unless response.success? + if response.timed_out? + raise 'Connection timed out' + elsif response.return_code != :ok + raise "Network error (#{response.return_code}): #{response.return_message}" + else + raise ApiError.new(response.code, response.headers, response.body) + end + end + + data = if opts[:return_type] == 'File' + tempfile + elsif opts[:return_type] + deserialize(response, opts[:return_type]) + end + [data, response.code, response.headers] + end + + def build_request(http_method, path, opts = {}) + url = URI.join("#{@config.authenticator.send(:host).chomp('/')}/", path).to_s + http_method = http_method.to_sym.downcase + + query_params = opts[:query_params] || {} + form_params = opts[:form_params] || {} + follow_location = opts[:follow_location] || true + header_params = @default_headers.merge(opts[:header_params] || {}).merge(@config.authenticator.send(:auth_headers)) + + req_opts = { + method: http_method, + headers: header_params, + params: query_params, + params_encoding: @config.params_encoding, + timeout: @config.timeout, + ssl_verifypeer: @config.verify_ssl, + ssl_verifyhost: (@config.verify_ssl_host ? 2 : 0), + sslcert: @config.cert_file, + sslkey: @config.key_file, + verbose: @config.debugging, + followlocation: follow_location + } + + # set custom cert, if provided + req_opts[:cainfo] = @config.ssl_ca_cert if @config.ssl_ca_cert + + if %i[post patch put delete].include?(http_method) + req_body = build_request_body(header_params, form_params, opts[:body]) + req_opts.update body: req_body + @config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n" if @config.debugging + end + + Typhoeus::Request.new(url, req_opts) + end + + # Builds the HTTP request body + # + # @param [Hash] header_params Header parameters + # @param [Hash] form_params Query parameters + # @param [Object] body HTTP body (JSON/XML) + # @return [String] HTTP body data in the form of string + # noinspection RubyMismatchedReturnType,RubyArgCount,RbsMissingTypeSignature + def build_request_body(header_params, form_params, body) + # http form + if ['application/x-www-form-urlencoded', + 'multipart/form-data'].include?(header_params['Content-Type']) + data = {} + form_params.each do |key, value| + data[key] = case value + when ::File, ::Array, nil + # let typhoeus handle File, Array and nil parameters + value + else + value.to_s + end + end + elsif body + data = body.is_a?(String) ? body : body.to_json + else + data = nil + end + data + end + + # Save response body into a file in (the defined) temporary folder, using the filename + # from the "Content-Disposition" header if provided, otherwise a random filename. + # The response body is written to the file in chunks in order to handle files which + # size is larger than maximum Ruby String or even larger than the maximum memory a Ruby + # process can use. + # + # @see Configuration#temp_folder_path + # + # @return [Tempfile] the tempfile generated + # noinspection RbsMissingTypeSignature + def download_file(request) + tempfile = nil + encoding = nil + + request.on_headers do |response| + content_disposition = response.headers['Content-Disposition'] + if content_disposition && content_disposition =~ /filename=/i + filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1] + prefix = sanitize_filename(filename) + else + prefix = 'download-' + end + prefix += '-' unless prefix.end_with?('-') + encoding = response.body.encoding + tempfile = Tempfile.open(prefix, @config.temp_folder_path, encoding: encoding) + end + + request.on_body do |chunk| + chunk.force_encoding(encoding) if encoding + ensure_tempfile(tempfile).write(chunk) + end + + request.on_complete do + t = ensure_tempfile(tempfile) + t.close + @config.logger.info "Temp file written to #{t.path}, please copy the file to a proper folder " \ + "with e.g. `FileUtils.cp(t.path, '/new/file/path')` otherwise the temp file " \ + "will be deleted automatically with GC. It's also recommended to delete the temp file " \ + 'explicitly with `t.delete`' + yield t if block_given? + end + end + + def ensure_tempfile(temp) + temp || (raise 'Tempfile not created') + end + + # Check if the given MIME is a JSON MIME. + # JSON MIME examples: + # application/json + # application/json; charset=UTF8 + # APPLICATION/JSON + # */* + # @param [String] mime MIME + # @return [Boolean] True if the MIME is application/json + # noinspection RbsMissingTypeSignature + def json_mime?(mime) + (mime == '*/*') || !(mime =~ %r{^Application/.*json(?!p)(;.*)?}i).nil? + end + + # Deserialize the response to the given return type. + # + # @param [Response] response HTTP response + # @param [String] return_type some examples: "User", "Array", "Hash" + # noinspection RbsMissingTypeSignature + def deserialize(response, return_type) + body = response.body + return nil if body.nil? || body.empty? + + # return response body directly for String return type + return body.to_s if return_type == 'String' + + # ensuring a default content type + content_type = response.headers['Content-Type'] || 'application/json' + + raise "Content-Type is not supported: #{content_type}" unless json_mime?(content_type) + + begin + data = JSON.parse("[#{body}]", symbolize_names: true)[0] + rescue JSON::ParserError => e + raise e unless %w[String Date Time].include?(return_type) + + data = body + end + + convert_to_type data, return_type + end + + # Convert data to the given return type. + # @param [Object] data Data to be converted + # @param [String] return_type Return type + # @return [Mixed] Data in a particular type + # noinspection RubyArgCount,RubyMismatchedArgumentType,RbsMissingTypeSignature + def convert_to_type(data, return_type) + return nil if data.nil? + + # noinspection RegExpRedundantEscape + case return_type + when 'String' + data.to_s + when 'Integer' + data.to_i + when 'Float' + data.to_f + when 'Boolean' + data == true + when 'Time' + # parse date time (expecting ISO 8601 format) + Time.parse data + when 'Date' + # parse date time (expecting ISO 8601 format) + Date.parse data + when 'Object' + # generic object (usually a Hash), return directly + data + when /\AArray<(.+)>\z/ + # e.g. Array + sub_type = ::Regexp.last_match(1) + data.map { |item| convert_to_type(item, sub_type) } + when /\AHash\z/ + # e.g. Hash + sub_type = ::Regexp.last_match(1) + {}.tap do |hash| + data.each { |k, v| hash[k] = convert_to_type(v, sub_type) } + end + else + # models (e.g. Pet) or oneOf + klass = Models.const_get(return_type) + klass.respond_to?(:openapi_one_of) ? klass.build(data) : klass.build_from_hash(data) + end + end + + # Sanitize filename by removing path. + # e.g. ../../sun.gif becomes sun.gif + # + # @param [String] filename the filename to be sanitized + # @return [String] the sanitized filename + # noinspection RubyMismatchedReturnType,RbsMissingTypeSignature + def sanitize_filename(filename) + filename.split(%r{[/\\]}).last + end + + # Return Accept header based on an array of accepts provided. + # @param [Array] accepts array for Accept + # @return [String] the Accept header (e.g. application/json) + # noinspection RubyArgCount,RbsMissingTypeSignature + def select_header_accept(accepts) + return nil if accepts.nil? || accepts.empty? + + # use JSON when present, otherwise use all the provided + json_accept = accepts.find { |s| json_mime?(s) } + json_accept || accepts.join(',') + end + + # Return Content-Type header based on an array of content types provided. + # @param [Array] content_types array for Content-Type + # @return [String] the Content-Type header (e.g. application/json) + # noinspection RubyArgCount,RbsMissingTypeSignature + def select_header_content_type(content_types) + # return nil by default + return if content_types.nil? || content_types.empty? + + # use JSON when present, otherwise use the first one + json_content_type = content_types.find { |s| json_mime?(s) } + json_content_type || content_types.first + end + + # Convert object (array, hash, object, etc.) to JSON string. + # @param [Object] model object to be converted into JSON string + # @return [String] JSON string representation of the object + # noinspection RubyMismatchedReturnType,RbsMissingTypeSignature + def object_to_http_body(model) + return model if model.nil? || model.is_a?(String) + + local_body = if model.is_a?(Array) + model.map { |m| object_to_hash(m) } + else + object_to_hash(model) + end + local_body.to_json + end + + # Convert object(non-array) to hash. + # @param [Object] obj object to be converted into JSON string + # @return [String] JSON string representation of the object + # noinspection RubyMismatchedReturnType,RbsMissingTypeSignature + def object_to_hash(obj) + if obj.respond_to?(:to_hash) + obj.to_hash + else + obj + end + end + + # Build parameter value according to the given collection format. + # @param [String] collection_format one of :csv, :ssv, :tsv, :pipes and :multi + # noinspection RbsMissingTypeSignature + def build_collection_param(param, collection_format) + case collection_format + when :csv + param.join(',') + when :ssv + param.join(' ') + when :tsv + param.join("\t") + when :pipes + param.join('|') + when :multi + # return the array directly as typhoeus will handle it as expected + param + else + raise "unknown collection format: #{collection_format.inspect}" + end + end + end + end +end + +# rubocop:enable Style/ClassVars +# rubocop:enable Metrics/AbcSize +# rubocop:enable Metrics/CyclomaticComplexity +# rubocop:enable Metrics/MethodLength +# rubocop:enable Metrics/PerceivedComplexity +# rubocop:enable Metrics/ClassLength diff --git a/lib/zitadel/client/api_error.rb b/lib/zitadel/client/api_error.rb new file mode 100644 index 00000000..dc84f395 --- /dev/null +++ b/lib/zitadel/client/api_error.rb @@ -0,0 +1,31 @@ +# frozen_string_literal: true + +module Zitadel + module Client + ## + # Represents an HTTP error returned from the Zitadel API. + # + # Exposes the HTTP status code, response headers, and response body. + class ApiError < ZitadelError + # @return [Integer] HTTP status code + attr_reader :code + + # @return [Hash{String=>Array}] HTTP response headers + attr_reader :response_headers + + # @return [String, Typhoeus::Response] HTTP response body + attr_reader :response_body + + ## + # @param code [Integer] HTTP status code + # @param response_headers [Hash{String=>Array}] HTTP response headers + # @param response_body [String, Typhoeus::Response] HTTP response body + def initialize(code, response_headers, response_body) + super("Error #{code}") + @code = code + @response_headers = response_headers + @response_body = response_body + end + end + end +end diff --git a/lib/zitadel/client/auth/authenticator.rb b/lib/zitadel/client/auth/authenticator.rb new file mode 100644 index 00000000..e1a816f9 --- /dev/null +++ b/lib/zitadel/client/auth/authenticator.rb @@ -0,0 +1,80 @@ +# frozen_string_literal: true + +require 'time' + +module Zitadel + module Client + module Auth + ## + # Abstract base class for authenticators. + # + # This class defines the basic structure for any authenticator by requiring the implementation + # of a method to retrieve authentication headers, and provides a way to store and retrieve the host. + # + class Authenticator + protected + + attr_reader :host + + ## + # Initializes the Authenticator with the specified host. + # + # @param host [String] the base URL or endpoint for the service. + # + def initialize(host) + @host = host + end + + ## + # Retrieves the authentication headers to be sent with requests. + # + # Subclasses must override this method to return the appropriate headers. + # + # @raise [NotImplementedError] Always raised to require implementation in a subclass. + # + # @return [Hash{String => String}] + # + def auth_headers + # :nocov: + raise NotImplementedError, + "#{self.class}#get_auth_headers is an abstract method. Please override it in a subclass." + # :nocov: + end + end + + ## + # Abstract builder class for constructing OAuth authenticator instances. + # + # This builder provides common configuration options such as the OpenId instance and authentication scopes. + # + class OAuthAuthenticatorBuilder + protected + + attr_reader :open_id, :auth_scopes + + ## + # Initializes the OAuthAuthenticatorBuilder with a given host. + # + # @param host [String] the base URL for the OAuth provider. + # + def initialize(host) + @open_id = OpenId.new(host) + @auth_scopes = Set.new(%w[openid urn:zitadel:iam:org:project:id:zitadel:aud]) + end + + public + + ## + # Sets the authentication scopes for the OAuth authenticator. + # + # @param scopes [Array] a variable number of scope strings. + # @return [self] the builder instance to allow for method chaining. + # + def scopes(*scopes) + @auth_scopes = Set.new(scopes) + self + end + end + end + end +end diff --git a/lib/zitadel/client/auth/client_credentials_authenticator.rb b/lib/zitadel/client/auth/client_credentials_authenticator.rb new file mode 100644 index 00000000..b726a5c2 --- /dev/null +++ b/lib/zitadel/client/auth/client_credentials_authenticator.rb @@ -0,0 +1,65 @@ +# frozen_string_literal: true + +module Zitadel + module Client + module Auth + # ClientCredentialsAuthenticator implements the client credentials flow. + class ClientCredentialsAuthenticator < Auth::OAuthAuthenticator + # Constructs a ClientCredentialsAuthenticator using client credentials flow. + # + # @param open_id [OpenId] The OpenId instance with OAuth endpoint info. + # @param client_id [String] The OAuth client identifier. + # @param client_secret [String] The OAuth client secret. + # @param auth_scopes [Set] The scope(s) for the token request. + def initialize(open_id, client_id, client_secret, auth_scopes) + # noinspection RubyArgCount + super(open_id, auth_scopes, OAuth2::Client.new(client_id, client_secret, { + site: open_id.host_endpoint, + token_url: open_id.token_endpoint + })) + end + + # Returns a new builder for constructing a ClientCredentialsAuthenticator. + # + # @param host [String] The OAuth provider's base URL. + # @param client_id [String] The OAuth client identifier. + # @param client_secret [String] The OAuth client secret. + # @return [ClientCredentialsAuthenticatorBuilder] A builder instance. + def self.builder(host, client_id, client_secret) + ClientCredentialsAuthenticatorBuilder.new(host, client_id, client_secret) + end + + protected + + # Overrides the base get_grant to return client credentials grant parameters. + + # @return [OAuth2::AccessToken] A hash containing the grant type. + def get_grant(client, auth_scopes) + client.client_credentials.get_token({ scope: auth_scopes }) + end + + # Builder class for ClientCredentialsAuthenticator. + class ClientCredentialsAuthenticatorBuilder < OAuthAuthenticatorBuilder + # Initializes the builder with host, client ID, and client secret. + # + # @param host [String] The OAuth provider's base URL. + # @param client_id [String] The OAuth client identifier. + # @param client_secret [String] The OAuth client secret. + def initialize(host, client_id, client_secret) + # noinspection RubyArgCount + super(host) + @client_id = client_id + @client_secret = client_secret + end + + # Constructs and returns a ClientCredentialsAuthenticator using the configured parameters. + # + # @return [ClientCredentialsAuthenticator] A configured instance. + def build + ClientCredentialsAuthenticator.new(open_id, @client_id, @client_secret, auth_scopes) + end + end + end + end + end +end diff --git a/lib/zitadel/client/auth/no_auth_authenticator.rb b/lib/zitadel/client/auth/no_auth_authenticator.rb new file mode 100644 index 00000000..07a1ba8a --- /dev/null +++ b/lib/zitadel/client/auth/no_auth_authenticator.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: true + +module Zitadel + module Client + module Auth + ## + # A simple authenticator that performs no authentication. + # + # This authenticator is useful for cases where no token or credentials are required. + # It simply returns an empty dictionary for authentication headers. + # + class NoAuthAuthenticator < Authenticator + ## + # Initializes the NoAuthAuthenticator with a default host. + # + # @param host [String] the base URL for the service. Defaults to "http://localhost". + # + def initialize(host = 'http://localhost') + super + end + + protected + + ## + # Returns an empty dictionary since no authentication is performed. + # + # @return [Hash{String => String}] an empty hash. + # + def auth_headers + {} + end + end + end + end +end diff --git a/lib/zitadel/client/auth/o_auth_authenticator.rb b/lib/zitadel/client/auth/o_auth_authenticator.rb new file mode 100644 index 00000000..654d2d82 --- /dev/null +++ b/lib/zitadel/client/auth/o_auth_authenticator.rb @@ -0,0 +1,99 @@ +# frozen_string_literal: true + +require 'time' +require 'oauth2' + +OAuth2.configure do |config| + # noinspection RubyResolve + config.silence_extra_tokens_warning = true +end + +module Zitadel + module Client + module Auth + ## + # Base class for OAuth-based authentication using an OAuth2 client. + # + # Attributes: + # open_id: An object providing OAuth endpoint information. + # auth_session: An OAuth2Session instance used for fetching tokens. + # + class OAuthAuthenticator < Authenticator + protected + + ## + # Constructs an OAuthAuthenticator. + # + # @param open_id [OpenId] An object that must implement `get_host_endpoint` and `get_token_endpoint`. + # @param auth_session [OAuth2Session] The OAuth2Session instance used for token requests. + # + def initialize(open_id, auth_scopes, auth_session) + super(open_id.host_endpoint) + @open_id = open_id + @token = nil + @auth_session = auth_session + @auth_scopes = auth_scopes.to_a.join(' ') + end + + ## + # Returns the current access token, refreshing it if necessary. + # + # @return [String] The current access token. + # + def auth_token + token = @token + if token.nil? || token.expired? + refresh_token + token = @token + end + + raise 'Token is nil after refresh' if token.nil? + + token.token + end + + ## + # Retrieves authentication headers. + # + # @return [Hash{String => String}] A hash containing the 'Authorization' header. + # + def auth_headers + { 'Authorization' => "Bearer #{auth_token}" } + end + + ## + # Builds and returns a hash of grant parameters required for the token request. + # + # The base class will invoke this method by passing its OAuth2 client. + # The subclass implementation should return the result of either: + # client.client_credentials.get_token(scope: scopes) + # or + # client.assertion.get_token(claims) + # + # @param auth_client [OAuth2::Client] The OAuth2 client instance. + # @param [String] auth_scopes + # @return [OAuth2::AccessToken] A hash of parameters used to fetch a token. + # + def get_grant(auth_client, auth_scopes) + # :nocov: + raise NotImplementedError, "#{self.class}#get_grant must be implemented" + # :nocov: + end + + ## + # Refreshes the access token using the OAuth flow. + # + # It uses `get_grant` to obtain all necessary parameters for the token request. + # + # @return [OAuth2::AccessToken] A new Token instance. + # @raise [RuntimeError] if the token refresh fails. + # + def refresh_token + @token = get_grant(@auth_session, @auth_scopes) + rescue StandardError => e + raise ZitadelError.new("Failed to refresh token: #{e.message}"), cause: e + end + end + end + end +end diff --git a/lib/zitadel/client/auth/open_id.rb b/lib/zitadel/client/auth/open_id.rb new file mode 100644 index 00000000..7283e7f8 --- /dev/null +++ b/lib/zitadel/client/auth/open_id.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +require 'json' +require 'uri' +require 'net/http' + +module Zitadel + module Client + module Auth + ## + # OpenId retrieves OpenID Connect configuration from a given host. + # + # It builds the well-known configuration URL from the provided hostname, + # fetches the configuration, and extracts the token endpoint. + # + class OpenId + attr_accessor :token_endpoint, :host_endpoint + + ## + # Initializes a new OpenId instance. + # + # @param hostname [String] the hostname for the OpenID provider. + # @raise [RuntimeError] if the OpenID configuration cannot be fetched or the token_endpoint is missing. + # + # noinspection HttpUrlsUsage + def initialize(hostname) + hostname = "https://#{hostname}" unless hostname.start_with?('http://', 'https://') + @host_endpoint = hostname + well_known_url = self.class.build_well_known_url(hostname) + + uri = URI.parse(well_known_url) + response = Net::HTTP.get_response(uri) + raise "Failed to fetch OpenID configuration: HTTP #{response.code}" unless response.code.to_i == 200 + + config = JSON.parse(response.body) + token_endpoint = config['token_endpoint'] + raise 'token_endpoint not found in OpenID configuration' unless token_endpoint + + @token_endpoint = token_endpoint + end + + ## + # Builds the well-known OpenID configuration URL for the given hostname. + # + # @param hostname [String] the hostname for the OpenID provider. + # @return [String] the well-known configuration URL. + # + def self.build_well_known_url(hostname) + URI.join(hostname, '/.well-known/openid-configuration').to_s + end + end + end + end +end diff --git a/lib/zitadel/client/auth/personal_access_token_authenticator.rb b/lib/zitadel/client/auth/personal_access_token_authenticator.rb new file mode 100644 index 00000000..0afcb1a8 --- /dev/null +++ b/lib/zitadel/client/auth/personal_access_token_authenticator.rb @@ -0,0 +1,37 @@ +# frozen_string_literal: true + +module Zitadel + module Client + module Auth + ## + # Personal Access Token Authenticator. + # + # Uses a static personal access token for API authentication. + # + class PersonalAccessTokenAuthenticator < Authenticator + ## + # Initializes the PersonalAccessTokenAuthenticator with host and token. + # + # @param host [String] the base URL for the service. + # @param token [String] the personal access token. + # + def initialize(host, token) + # noinspection RubyArgCount + super(Utils::UrlUtil.build_hostname(host)) + @token = token + end + + protected + + ## + # Returns the authentication headers using the personal access token. + # + # @return [Hash{String => String}] a hash containing the 'Authorization' header. + # + def auth_headers + { 'Authorization' => "Bearer #{@token}" } + end + end + end + end +end diff --git a/lib/zitadel/client/auth/web_token_authenticator.rb b/lib/zitadel/client/auth/web_token_authenticator.rb new file mode 100644 index 00000000..ee6c05c4 --- /dev/null +++ b/lib/zitadel/client/auth/web_token_authenticator.rb @@ -0,0 +1,163 @@ +# frozen_string_literal: true + +require 'time' +require 'openssl' + +module Zitadel + module Client + module Auth + # ----------------------------------------------------------------------------- + # WebTokenAuthenticator + # ----------------------------------------------------------------------------- + + # OAuth authenticator implementing the JWT bearer flow. + # + # This implementation builds a JWT assertion dynamically in get_grant(). + class WebTokenAuthenticator < Auth::OAuthAuthenticator + # Constructs a WebTokenAuthenticator. + # + # @param open_id [OpenId] The OpenId instance with OAuth endpoint information. + # @param auth_scopes [Set] The scope(s) for the token request. + # @param jwt_issuer [String] The JWT issuer. + # @param jwt_subject [String] The JWT subject. + # @param jwt_audience [String] The JWT audience. + # @param private_key [String] The private key used to sign the JWT. + # @param jwt_lifetime [Integer] Lifetime of the JWT in seconds (default 3600 seconds). + # @param jwt_algorithm [String] The JWT signing algorithm (default "RS256"). + # @param key_id [String, nil] Optional key identifier for the JWT header (default: nil). + # rubocop:disable Metrics/ParameterLists,Metrics/MethodLength + def initialize(open_id, auth_scopes, jwt_issuer, jwt_subject, jwt_audience, private_key, + jwt_lifetime: 3600, jwt_algorithm: 'RS256', key_id: nil) + # noinspection RubyArgCount,RubyMismatchedArgumentType + super(open_id, auth_scopes, OAuth2::Client.new('zitadel', 'zitadel', { + site: open_id.host_endpoint, + token_url: open_id.token_endpoint + })) + @jwt_issuer = jwt_issuer + @jwt_subject = jwt_subject + @jwt_audience = jwt_audience + @private_key = private_key + @jwt_lifetime = jwt_lifetime + @jwt_algorithm = jwt_algorithm + @key_id = key_id + end + + # rubocop:enable Metrics/ParameterLists,Metrics/MethodLength + + # Creates a WebTokenAuthenticator instance from a JSON configuration file. + # + # The JSON file must be formatted as follows: + # + # { + # "type": "serviceaccount", + # "keyId": "", + # "key": "", + # "userId": "" + # } + # + # @param host [String] Base URL for the API endpoints. + # @param json_path [String] File path to the JSON configuration file. + # @return [WebTokenAuthenticator] A new instance of WebTokenAuthenticator. + # @raise [RuntimeError] If the file cannot be read, the JSON is invalid, or required keys are missing. + def self.from_json(host, json_path) + config = JSON.parse(File.read(json_path)) + rescue Errno::ENOENT => e + raise "Unable to read JSON file at #{json_path}: #{e.message}" + rescue JSON::ParserError => e + raise "Invalid JSON in file at #{json_path}: #{e.message}" + else + raise "Expected a JSON object, got #{config.class}" unless config.is_a?(Hash) + + user_id, private_key, key_id = config.values_at('userId', 'key', 'keyId') + raise "Missing required keys 'userId', 'keyId' or 'key'" unless user_id && key_id && private_key + + WebTokenAuthenticator.builder(host, user_id, private_key).key_identifier(key_id).build + end + + # Returns a builder for constructing a WebTokenAuthenticator. + # + # @param host [String] The base URL for the OAuth provider. + # @param user_id [String] The user identifier (used as both the issuer and subject). + # @param private_key [String] The private key used to sign the JWT. + # @return [WebTokenAuthenticatorBuilder] A builder instance. + def self.builder(host, user_id, private_key) + WebTokenAuthenticatorBuilder.new(host, user_id, user_id, host, private_key) + end + + protected + + # Overrides the base get_grant to return client credentials grant parameters. + # + # @return [OAuth2::AccessToken] A hash containing the grant type. + # rubocop:disable Metrics/MethodLength + def get_grant(client, auth_scopes) + client.assertion.get_token( + { iss: @jwt_issuer, + sub: @jwt_subject, + aud: @jwt_audience, + iat: Time.now.utc.to_i, + exp: (Time.now.utc + @jwt_lifetime).to_i }, + { + algorithm: @jwt_algorithm, + key: OpenSSL::PKey::RSA.new(@private_key), + kid: @key_id + }, + { + scope: auth_scopes + } + ) + end + + # rubocop:enable Metrics/MethodLength + + # ----------------------------------------------------------------------------- + # WebTokenAuthenticatorBuilder + # ----------------------------------------------------------------------------- + + # Builder for WebTokenAuthenticator. + # + # Provides a fluent API for configuring and constructing a WebTokenAuthenticator instance. + class WebTokenAuthenticatorBuilder < OAuthAuthenticatorBuilder + # Initializes the WebTokenAuthenticatorBuilder with required parameters. + # + # @param host [String] The base URL for API endpoints. + # @param jwt_issuer [String] The issuer claim for the JWT. + # @param jwt_subject [String] The subject claim for the JWT. + # @param jwt_audience [String] The audience claim for the JWT. + # @param private_key [String] The PEM-formatted private key used for signing the JWT. + def initialize(host, jwt_issuer, jwt_subject, jwt_audience, private_key) + # noinspection RubyArgCount + super(host) + @jwt_issuer = jwt_issuer + @jwt_subject = jwt_subject + @jwt_audience = jwt_audience + @private_key = private_key + @jwt_lifetime = 3600 + end + + # Sets the JWT token lifetime in seconds. + # + # @param seconds [Integer] Lifetime of the JWT in seconds. + # @return [WebTokenAuthenticatorBuilder] The builder instance. + def token_lifetime_seconds(seconds) + @jwt_lifetime = seconds + self + end + + def key_identifier(key_id) + @key_id = key_id + self + end + + # Constructs and returns a new WebTokenAuthenticator instance using the configured parameters. + # + # @return [WebTokenAuthenticator] A configured instance. + def build + WebTokenAuthenticator.new(open_id, auth_scopes, @jwt_issuer, @jwt_subject, @jwt_audience, + @private_key, jwt_lifetime: @jwt_lifetime, key_id: @key_id) + end + end + end + end + end +end diff --git a/lib/zitadel/client/configuration.rb b/lib/zitadel/client/configuration.rb new file mode 100644 index 00000000..6fa1da41 --- /dev/null +++ b/lib/zitadel/client/configuration.rb @@ -0,0 +1,180 @@ +# frozen_string_literal: true + +module Zitadel + module Client + ## + # Configuration class for the Zitadel::Client SDK. + # + # This class defines all client-level options including timeouts, + # logging, SSL behavior, and validation controls. It allows you + # to customize how API calls are made and handled internally. + # + # Example: + # + # config = Zitadel::Client::Configuration.new do |c| + # c.debugging = true + # c.timeout = 10 + # c.verify_ssl = true + # end + # + # noinspection RubyTooManyInstanceVariablesInspection + class Configuration + USER_AGENT = [ + "zitadel-client/#{VERSION}", + + [ + 'lang=ruby', + "lang_version=#{RUBY_VERSION}", + "os=#{RUBY_PLATFORM}", + "arch=#{RbConfig::CONFIG['host_cpu']}" + ].join('; ') + .prepend('(').concat(')') + ].join(' ') + + ## + # The authentication strategy used to authorize requests. + # + # This is typically an instance of a class implementing an interface + # like `#authenticate(request)`, such as `NoAuthAuthenticator` or + # a custom implementation. + # + # @return [Authenticator] the authenticator instance + attr_reader :authenticator + + ## + # Enables or disables debug logging. + # + # When enabled, HTTP request and response details are logged + # via the configured `logger` instance. + # + # @return [Boolean] + attr_accessor :debugging + + ## + # The logger used to output debugging information. + # + # Defaults to `Rails.logger` if Rails is defined; otherwise, + # logs to STDOUT. + # + # @return [#debug] + attr_accessor :logger + + ## + # Directory path used to temporarily store files returned + # by API responses (e.g., when downloading files). + # + # @return [String] + attr_accessor :temp_folder_path + + ## + # Request timeout duration in seconds. + # + # If set to `0`, requests will never time out. + # + # @return [Integer] + attr_accessor :timeout + + ## + # Enables or disables client-side request validation. + # + # When disabled, validation of input parameters is skipped. + # Defaults to `true`. + # + # @return [Boolean] + attr_accessor :client_side_validation + + ## + # Controls whether SSL certificates are verified when + # making HTTPS requests. + # + # Set to `false` to bypass certificate verification. Defaults to `true`. + # **Note:** This should always be `true` in production. + # + # @return [Boolean] + attr_accessor :verify_ssl + + ## + # Controls whether SSL hostnames are verified during + # HTTPS communication. + # + # Set to `false` to skip hostname verification. Defaults to `true`. + # **Note:** Disabling this weakens transport security. + # + # @return [Boolean] + attr_accessor :verify_ssl_host + + ## + # Path to the certificate file used to verify the peer. + # + # This is used in place of system-level certificate stores. + # + # @return [String] + # + # @see https://github.com/typhoeus/typhoeus/blob/master/lib/typhoeus/easy_factory.rb#L145 + attr_accessor :ssl_ca_cert + + ## + # Path to the client certificate file for mutual TLS (mTLS). + # + # This is optional and only required when server expects + # client-side certificates. + # + # @return [String] + attr_accessor :cert_file + + ## + # Path to the private key file for the client certificate. + # + # Used with `cert_file` during mutual TLS authentication. + # + # @return [String] + attr_accessor :key_file + + ## + # Custom encoding strategy for query parameters that are arrays. + # + # Set this if your server expects a specific collection format + # (e.g., `multi`, `csv`, etc.). Defaults to `nil`. + # + # @return [Symbol, nil] + # + # @see https://github.com/typhoeus/ethon/blob/master/lib/ethon/easy/queryable.rb#L96 + attr_accessor :params_encoding + + ## + # The User-Agent header to be sent with HTTP requests. + # + # Set this to identify your client or library when making requests. + # + # @return [String, nil] + attr_accessor :user_agent + + # rubocop:disable Metrics/MethodLength + def initialize(authenticator = Auth::NoAuthAuthenticator.new) + @authenticator = authenticator + @client_side_validation = true + @verify_ssl = true + @verify_ssl_host = true + @cert_file = nil + @key_file = nil + @timeout = 0 + @params_encoding = nil + @debugging = false + @logger = nil? + @user_agent = USER_AGENT + + yield(self) if block_given? + end + + # rubocop:enable Metrics/MethodLength + + ## + # Allows modifying the current instance using a configuration block. + # + # @yieldparam [Configuration] self + def configure + yield(self) if block_given? + end + end + end +end diff --git a/lib/zitadel-client/models/.openapi b/lib/zitadel/client/models/.openapi similarity index 100% rename from lib/zitadel-client/models/.openapi rename to lib/zitadel/client/models/.openapi diff --git a/lib/zitadel-client/models/feature_service_details.rb b/lib/zitadel/client/models/feature_service_details.rb similarity index 96% rename from lib/zitadel-client/models/feature_service_details.rb rename to lib/zitadel/client/models/feature_service_details.rb index bd30bac9..fb5b596a 100644 --- a/lib/zitadel-client/models/feature_service_details.rb +++ b/lib/zitadel/client/models/feature_service_details.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class FeatureServiceDetails # on read: the sequence of the last event reduced by the projection on manipulation: the timestamp of the event(s) added by the manipulation attr_accessor :sequence @@ -66,7 +66,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::FeatureServiceDetails` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::FeatureServiceDetails` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -74,7 +74,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::FeatureServiceDetails`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::FeatureServiceDetails`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -197,7 +197,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/feature_service_feature_flag.rb b/lib/zitadel/client/models/feature_service_feature_flag.rb similarity index 95% rename from lib/zitadel-client/models/feature_service_feature_flag.rb rename to lib/zitadel/client/models/feature_service_feature_flag.rb index 0f513264..dbbaef8b 100644 --- a/lib/zitadel-client/models/feature_service_feature_flag.rb +++ b/lib/zitadel/client/models/feature_service_feature_flag.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models # FeatureFlag is a simple boolean Feature setting, without further payload. class FeatureServiceFeatureFlag # Whether a feature is enabled. @@ -80,7 +80,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::FeatureServiceFeatureFlag` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::FeatureServiceFeatureFlag` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -88,7 +88,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::FeatureServiceFeatureFlag`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::FeatureServiceFeatureFlag`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -203,7 +203,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) 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 similarity index 97% rename from lib/zitadel-client/models/feature_service_get_instance_features_response.rb rename to lib/zitadel/client/models/feature_service_get_instance_features_response.rb index 51b10ff5..e2664c66 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 @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class FeatureServiceGetInstanceFeaturesResponse attr_accessor :details @@ -112,7 +112,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::FeatureServiceGetInstanceFeaturesResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::FeatureServiceGetInstanceFeaturesResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -120,7 +120,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::FeatureServiceGetInstanceFeaturesResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::FeatureServiceGetInstanceFeaturesResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -303,7 +303,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/feature_service_get_organization_features_response.rb b/lib/zitadel/client/models/feature_service_get_organization_features_response.rb similarity index 94% rename from lib/zitadel-client/models/feature_service_get_organization_features_response.rb rename to lib/zitadel/client/models/feature_service_get_organization_features_response.rb index 86b7dc23..09e03a52 100644 --- a/lib/zitadel-client/models/feature_service_get_organization_features_response.rb +++ b/lib/zitadel/client/models/feature_service_get_organization_features_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class FeatureServiceGetOrganizationFeaturesResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::FeatureServiceGetOrganizationFeaturesResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::FeatureServiceGetOrganizationFeaturesResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::FeatureServiceGetOrganizationFeaturesResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::FeatureServiceGetOrganizationFeaturesResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) 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 similarity index 96% rename from lib/zitadel-client/models/feature_service_get_system_features_response.rb rename to lib/zitadel/client/models/feature_service_get_system_features_response.rb index dfa2da88..3d75aec1 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 @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class FeatureServiceGetSystemFeaturesResponse attr_accessor :details @@ -100,7 +100,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::FeatureServiceGetSystemFeaturesResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::FeatureServiceGetSystemFeaturesResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -108,7 +108,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::FeatureServiceGetSystemFeaturesResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::FeatureServiceGetSystemFeaturesResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -276,7 +276,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/feature_service_get_user_features_response.rb b/lib/zitadel/client/models/feature_service_get_user_features_response.rb similarity index 95% rename from lib/zitadel-client/models/feature_service_get_user_features_response.rb rename to lib/zitadel/client/models/feature_service_get_user_features_response.rb index 8e707625..95da1ec0 100644 --- a/lib/zitadel-client/models/feature_service_get_user_features_response.rb +++ b/lib/zitadel/client/models/feature_service_get_user_features_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class FeatureServiceGetUserFeaturesResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::FeatureServiceGetUserFeaturesResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::FeatureServiceGetUserFeaturesResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::FeatureServiceGetUserFeaturesResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::FeatureServiceGetUserFeaturesResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/feature_service_improved_performance.rb b/lib/zitadel/client/models/feature_service_improved_performance.rb similarity index 92% rename from lib/zitadel-client/models/feature_service_improved_performance.rb rename to lib/zitadel/client/models/feature_service_improved_performance.rb index ad4e40d6..79117ba6 100644 --- a/lib/zitadel-client/models/feature_service_improved_performance.rb +++ b/lib/zitadel/client/models/feature_service_improved_performance.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class FeatureServiceImprovedPerformance IMPROVED_PERFORMANCE_UNSPECIFIED = "IMPROVED_PERFORMANCE_UNSPECIFIED".freeze IMPROVED_PERFORMANCE_ORG_BY_ID = "IMPROVED_PERFORMANCE_ORG_BY_ID".freeze @@ -38,7 +38,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if FeatureServiceImprovedPerformance.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::FeatureServiceImprovedPerformance" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::FeatureServiceImprovedPerformance" end end diff --git a/lib/zitadel-client/models/feature_service_improved_performance_feature_flag.rb b/lib/zitadel/client/models/feature_service_improved_performance_feature_flag.rb similarity index 95% rename from lib/zitadel-client/models/feature_service_improved_performance_feature_flag.rb rename to lib/zitadel/client/models/feature_service_improved_performance_feature_flag.rb index 535f2354..6f35b41e 100644 --- a/lib/zitadel-client/models/feature_service_improved_performance_feature_flag.rb +++ b/lib/zitadel/client/models/feature_service_improved_performance_feature_flag.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class FeatureServiceImprovedPerformanceFeatureFlag # Which of the performance improvements is enabled attr_accessor :execution_paths @@ -79,7 +79,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::FeatureServiceImprovedPerformanceFeatureFlag` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::FeatureServiceImprovedPerformanceFeatureFlag` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -87,7 +87,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::FeatureServiceImprovedPerformanceFeatureFlag`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::FeatureServiceImprovedPerformanceFeatureFlag`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -204,7 +204,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/feature_service_login_v2.rb b/lib/zitadel/client/models/feature_service_login_v2.rb similarity index 95% rename from lib/zitadel-client/models/feature_service_login_v2.rb rename to lib/zitadel/client/models/feature_service_login_v2.rb index 46bf9cea..32360ab8 100644 --- a/lib/zitadel-client/models/feature_service_login_v2.rb +++ b/lib/zitadel/client/models/feature_service_login_v2.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class FeatureServiceLoginV2 # Require that all users must use the new login UI. If enabled, all users will be redirected to the login V2 regardless of the application's preference. attr_accessor :required @@ -58,7 +58,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::FeatureServiceLoginV2` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::FeatureServiceLoginV2` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -66,7 +66,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::FeatureServiceLoginV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::FeatureServiceLoginV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -179,7 +179,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/feature_service_login_v2_feature_flag.rb b/lib/zitadel/client/models/feature_service_login_v2_feature_flag.rb similarity index 95% rename from lib/zitadel-client/models/feature_service_login_v2_feature_flag.rb rename to lib/zitadel/client/models/feature_service_login_v2_feature_flag.rb index 8db7b10c..e61c5597 100644 --- a/lib/zitadel-client/models/feature_service_login_v2_feature_flag.rb +++ b/lib/zitadel/client/models/feature_service_login_v2_feature_flag.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class FeatureServiceLoginV2FeatureFlag attr_accessor :required @@ -82,7 +82,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::FeatureServiceLoginV2FeatureFlag` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::FeatureServiceLoginV2FeatureFlag` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -90,7 +90,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::FeatureServiceLoginV2FeatureFlag`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::FeatureServiceLoginV2FeatureFlag`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -210,7 +210,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/feature_service_protobuf_any.rb b/lib/zitadel/client/models/feature_service_protobuf_any.rb similarity index 95% rename from lib/zitadel-client/models/feature_service_protobuf_any.rb rename to lib/zitadel/client/models/feature_service_protobuf_any.rb index ba3b04fb..788683c1 100644 --- a/lib/zitadel-client/models/feature_service_protobuf_any.rb +++ b/lib/zitadel/client/models/feature_service_protobuf_any.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class FeatureServiceProtobufAny attr_accessor :type @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::FeatureServiceProtobufAny` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::FeatureServiceProtobufAny` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::FeatureServiceProtobufAny`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::FeatureServiceProtobufAny`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/feature_service_reset_instance_features_response.rb b/lib/zitadel/client/models/feature_service_reset_instance_features_response.rb similarity index 94% rename from lib/zitadel-client/models/feature_service_reset_instance_features_response.rb rename to lib/zitadel/client/models/feature_service_reset_instance_features_response.rb index 1c7eaebe..b060bc9b 100644 --- a/lib/zitadel-client/models/feature_service_reset_instance_features_response.rb +++ b/lib/zitadel/client/models/feature_service_reset_instance_features_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class FeatureServiceResetInstanceFeaturesResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::FeatureServiceResetInstanceFeaturesResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::FeatureServiceResetInstanceFeaturesResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::FeatureServiceResetInstanceFeaturesResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::FeatureServiceResetInstanceFeaturesResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/feature_service_reset_organization_features_response.rb b/lib/zitadel/client/models/feature_service_reset_organization_features_response.rb similarity index 94% rename from lib/zitadel-client/models/feature_service_reset_organization_features_response.rb rename to lib/zitadel/client/models/feature_service_reset_organization_features_response.rb index 2a8919b8..573cb3f1 100644 --- a/lib/zitadel-client/models/feature_service_reset_organization_features_response.rb +++ b/lib/zitadel/client/models/feature_service_reset_organization_features_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class FeatureServiceResetOrganizationFeaturesResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::FeatureServiceResetOrganizationFeaturesResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::FeatureServiceResetOrganizationFeaturesResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::FeatureServiceResetOrganizationFeaturesResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::FeatureServiceResetOrganizationFeaturesResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/feature_service_reset_system_features_response.rb b/lib/zitadel/client/models/feature_service_reset_system_features_response.rb similarity index 94% rename from lib/zitadel-client/models/feature_service_reset_system_features_response.rb rename to lib/zitadel/client/models/feature_service_reset_system_features_response.rb index dd5b74c7..c27edb08 100644 --- a/lib/zitadel-client/models/feature_service_reset_system_features_response.rb +++ b/lib/zitadel/client/models/feature_service_reset_system_features_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class FeatureServiceResetSystemFeaturesResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::FeatureServiceResetSystemFeaturesResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::FeatureServiceResetSystemFeaturesResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::FeatureServiceResetSystemFeaturesResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::FeatureServiceResetSystemFeaturesResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/feature_service_reset_user_features_response.rb b/lib/zitadel/client/models/feature_service_reset_user_features_response.rb similarity index 95% rename from lib/zitadel-client/models/feature_service_reset_user_features_response.rb rename to lib/zitadel/client/models/feature_service_reset_user_features_response.rb index b5658830..ec61962a 100644 --- a/lib/zitadel-client/models/feature_service_reset_user_features_response.rb +++ b/lib/zitadel/client/models/feature_service_reset_user_features_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class FeatureServiceResetUserFeaturesResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::FeatureServiceResetUserFeaturesResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::FeatureServiceResetUserFeaturesResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::FeatureServiceResetUserFeaturesResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::FeatureServiceResetUserFeaturesResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/feature_service_rpc_status.rb b/lib/zitadel/client/models/feature_service_rpc_status.rb similarity index 95% rename from lib/zitadel-client/models/feature_service_rpc_status.rb rename to lib/zitadel/client/models/feature_service_rpc_status.rb index 159875ea..484bd7fb 100644 --- a/lib/zitadel-client/models/feature_service_rpc_status.rb +++ b/lib/zitadel/client/models/feature_service_rpc_status.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class FeatureServiceRpcStatus attr_accessor :code @@ -60,7 +60,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::FeatureServiceRpcStatus` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::FeatureServiceRpcStatus` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -68,7 +68,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::FeatureServiceRpcStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::FeatureServiceRpcStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -188,7 +188,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) 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 similarity index 97% rename from lib/zitadel-client/models/feature_service_set_instance_features_request.rb rename to lib/zitadel/client/models/feature_service_set_instance_features_request.rb index 98500d23..7cfd7bf8 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 @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class FeatureServiceSetInstanceFeaturesRequest # The login UI will use the settings of the default org (and not from the instance) if no organization context is set attr_accessor :login_default_org @@ -122,7 +122,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::FeatureServiceSetInstanceFeaturesRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::FeatureServiceSetInstanceFeaturesRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -130,7 +130,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::FeatureServiceSetInstanceFeaturesRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::FeatureServiceSetInstanceFeaturesRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -310,7 +310,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/feature_service_set_instance_features_response.rb b/lib/zitadel/client/models/feature_service_set_instance_features_response.rb similarity index 94% rename from lib/zitadel-client/models/feature_service_set_instance_features_response.rb rename to lib/zitadel/client/models/feature_service_set_instance_features_response.rb index 605331d1..934f6277 100644 --- a/lib/zitadel-client/models/feature_service_set_instance_features_response.rb +++ b/lib/zitadel/client/models/feature_service_set_instance_features_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class FeatureServiceSetInstanceFeaturesResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::FeatureServiceSetInstanceFeaturesResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::FeatureServiceSetInstanceFeaturesResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::FeatureServiceSetInstanceFeaturesResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::FeatureServiceSetInstanceFeaturesResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/feature_service_set_organization_features_response.rb b/lib/zitadel/client/models/feature_service_set_organization_features_response.rb similarity index 94% rename from lib/zitadel-client/models/feature_service_set_organization_features_response.rb rename to lib/zitadel/client/models/feature_service_set_organization_features_response.rb index 18e76e19..1113a525 100644 --- a/lib/zitadel-client/models/feature_service_set_organization_features_response.rb +++ b/lib/zitadel/client/models/feature_service_set_organization_features_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class FeatureServiceSetOrganizationFeaturesResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::FeatureServiceSetOrganizationFeaturesResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::FeatureServiceSetOrganizationFeaturesResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::FeatureServiceSetOrganizationFeaturesResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::FeatureServiceSetOrganizationFeaturesResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) 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 similarity index 97% rename from lib/zitadel-client/models/feature_service_set_system_features_request.rb rename to lib/zitadel/client/models/feature_service_set_system_features_request.rb index 45638d6e..2ba4cc62 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 @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class FeatureServiceSetSystemFeaturesRequest # The login UI will use the settings of the default org (and not from the instance) if no organization context is set attr_accessor :login_default_org @@ -107,7 +107,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::FeatureServiceSetSystemFeaturesRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::FeatureServiceSetSystemFeaturesRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -115,7 +115,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::FeatureServiceSetSystemFeaturesRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::FeatureServiceSetSystemFeaturesRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -280,7 +280,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/feature_service_set_system_features_response.rb b/lib/zitadel/client/models/feature_service_set_system_features_response.rb similarity index 95% rename from lib/zitadel-client/models/feature_service_set_system_features_response.rb rename to lib/zitadel/client/models/feature_service_set_system_features_response.rb index 896619dd..07bf5cac 100644 --- a/lib/zitadel-client/models/feature_service_set_system_features_response.rb +++ b/lib/zitadel/client/models/feature_service_set_system_features_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class FeatureServiceSetSystemFeaturesResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::FeatureServiceSetSystemFeaturesResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::FeatureServiceSetSystemFeaturesResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::FeatureServiceSetSystemFeaturesResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::FeatureServiceSetSystemFeaturesResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/feature_service_set_user_features_response.rb b/lib/zitadel/client/models/feature_service_set_user_features_response.rb similarity index 95% rename from lib/zitadel-client/models/feature_service_set_user_features_response.rb rename to lib/zitadel/client/models/feature_service_set_user_features_response.rb index 5726ef29..413988f6 100644 --- a/lib/zitadel-client/models/feature_service_set_user_features_response.rb +++ b/lib/zitadel/client/models/feature_service_set_user_features_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class FeatureServiceSetUserFeaturesResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::FeatureServiceSetUserFeaturesResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::FeatureServiceSetUserFeaturesResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::FeatureServiceSetUserFeaturesResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::FeatureServiceSetUserFeaturesResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/feature_service_source.rb b/lib/zitadel/client/models/feature_service_source.rb similarity index 91% rename from lib/zitadel-client/models/feature_service_source.rb rename to lib/zitadel/client/models/feature_service_source.rb index f791b236..56742c52 100644 --- a/lib/zitadel-client/models/feature_service_source.rb +++ b/lib/zitadel/client/models/feature_service_source.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class FeatureServiceSource SOURCE_UNSPECIFIED = "SOURCE_UNSPECIFIED".freeze SOURCE_SYSTEM = "SOURCE_SYSTEM".freeze @@ -39,7 +39,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if FeatureServiceSource.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::FeatureServiceSource" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::FeatureServiceSource" end end diff --git a/lib/zitadel-client/models/identity_provider_service_apple_config.rb b/lib/zitadel/client/models/identity_provider_service_apple_config.rb similarity index 95% rename from lib/zitadel-client/models/identity_provider_service_apple_config.rb rename to lib/zitadel/client/models/identity_provider_service_apple_config.rb index a09a7d29..77e5129a 100644 --- a/lib/zitadel-client/models/identity_provider_service_apple_config.rb +++ b/lib/zitadel/client/models/identity_provider_service_apple_config.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class IdentityProviderServiceAppleConfig # Client id (App ID or Service ID) provided by Apple. attr_accessor :client_id @@ -68,7 +68,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::IdentityProviderServiceAppleConfig` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::IdentityProviderServiceAppleConfig` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -76,7 +76,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::IdentityProviderServiceAppleConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::IdentityProviderServiceAppleConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -201,7 +201,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/identity_provider_service_auto_linking_option.rb b/lib/zitadel/client/models/identity_provider_service_auto_linking_option.rb similarity index 89% rename from lib/zitadel-client/models/identity_provider_service_auto_linking_option.rb rename to lib/zitadel/client/models/identity_provider_service_auto_linking_option.rb index 565c4ced..1c9119fd 100644 --- a/lib/zitadel-client/models/identity_provider_service_auto_linking_option.rb +++ b/lib/zitadel/client/models/identity_provider_service_auto_linking_option.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class IdentityProviderServiceAutoLinkingOption AUTO_LINKING_OPTION_UNSPECIFIED = "AUTO_LINKING_OPTION_UNSPECIFIED".freeze AUTO_LINKING_OPTION_USERNAME = "AUTO_LINKING_OPTION_USERNAME".freeze @@ -35,7 +35,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if IdentityProviderServiceAutoLinkingOption.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::IdentityProviderServiceAutoLinkingOption" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::IdentityProviderServiceAutoLinkingOption" end end diff --git a/lib/zitadel-client/models/identity_provider_service_azure_a_d_config.rb b/lib/zitadel/client/models/identity_provider_service_azure_a_d_config.rb similarity index 95% rename from lib/zitadel-client/models/identity_provider_service_azure_a_d_config.rb rename to lib/zitadel/client/models/identity_provider_service_azure_a_d_config.rb index e02cbdb4..ccd84e41 100644 --- a/lib/zitadel-client/models/identity_provider_service_azure_a_d_config.rb +++ b/lib/zitadel/client/models/identity_provider_service_azure_a_d_config.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class IdentityProviderServiceAzureADConfig attr_accessor :client_id @@ -66,7 +66,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::IdentityProviderServiceAzureADConfig` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::IdentityProviderServiceAzureADConfig` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -74,7 +74,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::IdentityProviderServiceAzureADConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::IdentityProviderServiceAzureADConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -199,7 +199,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/identity_provider_service_azure_a_d_tenant.rb b/lib/zitadel/client/models/identity_provider_service_azure_a_d_tenant.rb similarity index 95% rename from lib/zitadel-client/models/identity_provider_service_azure_a_d_tenant.rb rename to lib/zitadel/client/models/identity_provider_service_azure_a_d_tenant.rb index 374745b2..a673b9e4 100644 --- a/lib/zitadel-client/models/identity_provider_service_azure_a_d_tenant.rb +++ b/lib/zitadel/client/models/identity_provider_service_azure_a_d_tenant.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class IdentityProviderServiceAzureADTenant attr_accessor :tenant_type @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::IdentityProviderServiceAzureADTenant` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::IdentityProviderServiceAzureADTenant` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::IdentityProviderServiceAzureADTenant`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::IdentityProviderServiceAzureADTenant`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -179,7 +179,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/identity_provider_service_azure_a_d_tenant_type.rb b/lib/zitadel/client/models/identity_provider_service_azure_a_d_tenant_type.rb similarity index 89% rename from lib/zitadel-client/models/identity_provider_service_azure_a_d_tenant_type.rb rename to lib/zitadel/client/models/identity_provider_service_azure_a_d_tenant_type.rb index 6250da2b..571c49bd 100644 --- a/lib/zitadel-client/models/identity_provider_service_azure_a_d_tenant_type.rb +++ b/lib/zitadel/client/models/identity_provider_service_azure_a_d_tenant_type.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class IdentityProviderServiceAzureADTenantType AZURE_AD_TENANT_TYPE_COMMON = "AZURE_AD_TENANT_TYPE_COMMON".freeze AZURE_AD_TENANT_TYPE_ORGANISATIONS = "AZURE_AD_TENANT_TYPE_ORGANISATIONS".freeze @@ -35,7 +35,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if IdentityProviderServiceAzureADTenantType.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::IdentityProviderServiceAzureADTenantType" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::IdentityProviderServiceAzureADTenantType" end end diff --git a/lib/zitadel-client/models/identity_provider_service_details.rb b/lib/zitadel/client/models/identity_provider_service_details.rb similarity index 95% rename from lib/zitadel-client/models/identity_provider_service_details.rb rename to lib/zitadel/client/models/identity_provider_service_details.rb index 9c34b2bc..e2d4b9b5 100644 --- a/lib/zitadel-client/models/identity_provider_service_details.rb +++ b/lib/zitadel/client/models/identity_provider_service_details.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class IdentityProviderServiceDetails # on read: the sequence of the last event reduced by the projection on manipulation: the timestamp of the event(s) added by the manipulation attr_accessor :sequence @@ -66,7 +66,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::IdentityProviderServiceDetails` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::IdentityProviderServiceDetails` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -74,7 +74,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::IdentityProviderServiceDetails`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::IdentityProviderServiceDetails`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -197,7 +197,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/identity_provider_service_generic_o_i_d_c_config.rb b/lib/zitadel/client/models/identity_provider_service_generic_o_i_d_c_config.rb similarity index 95% rename from lib/zitadel-client/models/identity_provider_service_generic_o_i_d_c_config.rb rename to lib/zitadel/client/models/identity_provider_service_generic_o_i_d_c_config.rb index 0f2b3b52..3ed0afaa 100644 --- a/lib/zitadel-client/models/identity_provider_service_generic_o_i_d_c_config.rb +++ b/lib/zitadel/client/models/identity_provider_service_generic_o_i_d_c_config.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class IdentityProviderServiceGenericOIDCConfig # The OIDC issuer of the identity provider. attr_accessor :issuer @@ -68,7 +68,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::IdentityProviderServiceGenericOIDCConfig` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::IdentityProviderServiceGenericOIDCConfig` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -76,7 +76,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::IdentityProviderServiceGenericOIDCConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::IdentityProviderServiceGenericOIDCConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -201,7 +201,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/identity_provider_service_get_i_d_p_by_i_d_response.rb b/lib/zitadel/client/models/identity_provider_service_get_i_d_p_by_i_d_response.rb similarity index 94% rename from lib/zitadel-client/models/identity_provider_service_get_i_d_p_by_i_d_response.rb rename to lib/zitadel/client/models/identity_provider_service_get_i_d_p_by_i_d_response.rb index 7b0db1e7..3e8912d4 100644 --- a/lib/zitadel-client/models/identity_provider_service_get_i_d_p_by_i_d_response.rb +++ b/lib/zitadel/client/models/identity_provider_service_get_i_d_p_by_i_d_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class IdentityProviderServiceGetIDPByIDResponse attr_accessor :idp @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::IdentityProviderServiceGetIDPByIDResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::IdentityProviderServiceGetIDPByIDResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::IdentityProviderServiceGetIDPByIDResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::IdentityProviderServiceGetIDPByIDResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/identity_provider_service_git_hub_config.rb b/lib/zitadel/client/models/identity_provider_service_git_hub_config.rb similarity index 95% rename from lib/zitadel-client/models/identity_provider_service_git_hub_config.rb rename to lib/zitadel/client/models/identity_provider_service_git_hub_config.rb index 97a705fa..6fdcf8e6 100644 --- a/lib/zitadel-client/models/identity_provider_service_git_hub_config.rb +++ b/lib/zitadel/client/models/identity_provider_service_git_hub_config.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class IdentityProviderServiceGitHubConfig # The client ID of the GitHub App. attr_accessor :client_id @@ -58,7 +58,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::IdentityProviderServiceGitHubConfig` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::IdentityProviderServiceGitHubConfig` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -66,7 +66,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::IdentityProviderServiceGitHubConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::IdentityProviderServiceGitHubConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -181,7 +181,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/identity_provider_service_git_hub_enterprise_server_config.rb b/lib/zitadel/client/models/identity_provider_service_git_hub_enterprise_server_config.rb similarity index 95% rename from lib/zitadel-client/models/identity_provider_service_git_hub_enterprise_server_config.rb rename to lib/zitadel/client/models/identity_provider_service_git_hub_enterprise_server_config.rb index 7ee6f99b..c8f924fb 100644 --- a/lib/zitadel-client/models/identity_provider_service_git_hub_enterprise_server_config.rb +++ b/lib/zitadel/client/models/identity_provider_service_git_hub_enterprise_server_config.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class IdentityProviderServiceGitHubEnterpriseServerConfig # The client ID of the GitHub App. attr_accessor :client_id @@ -70,7 +70,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::IdentityProviderServiceGitHubEnterpriseServerConfig` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::IdentityProviderServiceGitHubEnterpriseServerConfig` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -78,7 +78,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::IdentityProviderServiceGitHubEnterpriseServerConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::IdentityProviderServiceGitHubEnterpriseServerConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -208,7 +208,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/identity_provider_service_git_lab_config.rb b/lib/zitadel/client/models/identity_provider_service_git_lab_config.rb similarity index 95% rename from lib/zitadel-client/models/identity_provider_service_git_lab_config.rb rename to lib/zitadel/client/models/identity_provider_service_git_lab_config.rb index 803206e0..94abda3c 100644 --- a/lib/zitadel-client/models/identity_provider_service_git_lab_config.rb +++ b/lib/zitadel/client/models/identity_provider_service_git_lab_config.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class IdentityProviderServiceGitLabConfig # Client id of the GitLab application. attr_accessor :client_id @@ -58,7 +58,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::IdentityProviderServiceGitLabConfig` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::IdentityProviderServiceGitLabConfig` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -66,7 +66,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::IdentityProviderServiceGitLabConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::IdentityProviderServiceGitLabConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -181,7 +181,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/identity_provider_service_git_lab_self_hosted_config.rb b/lib/zitadel/client/models/identity_provider_service_git_lab_self_hosted_config.rb similarity index 95% rename from lib/zitadel-client/models/identity_provider_service_git_lab_self_hosted_config.rb rename to lib/zitadel/client/models/identity_provider_service_git_lab_self_hosted_config.rb index 4eb7df78..6d5efebd 100644 --- a/lib/zitadel-client/models/identity_provider_service_git_lab_self_hosted_config.rb +++ b/lib/zitadel/client/models/identity_provider_service_git_lab_self_hosted_config.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class IdentityProviderServiceGitLabSelfHostedConfig attr_accessor :issuer @@ -62,7 +62,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::IdentityProviderServiceGitLabSelfHostedConfig` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::IdentityProviderServiceGitLabSelfHostedConfig` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -70,7 +70,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::IdentityProviderServiceGitLabSelfHostedConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::IdentityProviderServiceGitLabSelfHostedConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -190,7 +190,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/identity_provider_service_google_config.rb b/lib/zitadel/client/models/identity_provider_service_google_config.rb similarity index 95% rename from lib/zitadel-client/models/identity_provider_service_google_config.rb rename to lib/zitadel/client/models/identity_provider_service_google_config.rb index b0830f31..800843e9 100644 --- a/lib/zitadel-client/models/identity_provider_service_google_config.rb +++ b/lib/zitadel/client/models/identity_provider_service_google_config.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class IdentityProviderServiceGoogleConfig # Client id of the Google application. attr_accessor :client_id @@ -58,7 +58,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::IdentityProviderServiceGoogleConfig` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::IdentityProviderServiceGoogleConfig` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -66,7 +66,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::IdentityProviderServiceGoogleConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::IdentityProviderServiceGoogleConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -181,7 +181,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/identity_provider_service_i_d_p.rb b/lib/zitadel/client/models/identity_provider_service_i_d_p.rb similarity index 96% rename from lib/zitadel-client/models/identity_provider_service_i_d_p.rb rename to lib/zitadel/client/models/identity_provider_service_i_d_p.rb index 761b857b..579f8eee 100644 --- a/lib/zitadel-client/models/identity_provider_service_i_d_p.rb +++ b/lib/zitadel/client/models/identity_provider_service_i_d_p.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class IdentityProviderServiceIDP # Unique identifier for the identity provider. attr_accessor :id @@ -95,7 +95,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::IdentityProviderServiceIDP` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::IdentityProviderServiceIDP` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -103,7 +103,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::IdentityProviderServiceIDP`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::IdentityProviderServiceIDP`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -240,7 +240,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/identity_provider_service_i_d_p_config.rb b/lib/zitadel/client/models/identity_provider_service_i_d_p_config.rb similarity index 96% rename from lib/zitadel-client/models/identity_provider_service_i_d_p_config.rb rename to lib/zitadel/client/models/identity_provider_service_i_d_p_config.rb index 70ea4c9d..e8556de7 100644 --- a/lib/zitadel-client/models/identity_provider_service_i_d_p_config.rb +++ b/lib/zitadel/client/models/identity_provider_service_i_d_p_config.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class IdentityProviderServiceIDPConfig attr_accessor :options @@ -100,7 +100,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::IdentityProviderServiceIDPConfig` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::IdentityProviderServiceIDPConfig` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -108,7 +108,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::IdentityProviderServiceIDPConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::IdentityProviderServiceIDPConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -276,7 +276,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/identity_provider_service_i_d_p_state.rb b/lib/zitadel/client/models/identity_provider_service_i_d_p_state.rb similarity index 90% rename from lib/zitadel-client/models/identity_provider_service_i_d_p_state.rb rename to lib/zitadel/client/models/identity_provider_service_i_d_p_state.rb index e5f57843..6a72c524 100644 --- a/lib/zitadel-client/models/identity_provider_service_i_d_p_state.rb +++ b/lib/zitadel/client/models/identity_provider_service_i_d_p_state.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class IdentityProviderServiceIDPState IDP_STATE_UNSPECIFIED = "IDP_STATE_UNSPECIFIED".freeze IDP_STATE_ACTIVE = "IDP_STATE_ACTIVE".freeze @@ -37,7 +37,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if IdentityProviderServiceIDPState.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::IdentityProviderServiceIDPState" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::IdentityProviderServiceIDPState" end end diff --git a/lib/zitadel-client/models/identity_provider_service_i_d_p_type.rb b/lib/zitadel/client/models/identity_provider_service_i_d_p_type.rb similarity index 92% rename from lib/zitadel-client/models/identity_provider_service_i_d_p_type.rb rename to lib/zitadel/client/models/identity_provider_service_i_d_p_type.rb index 782c8071..f8bc969f 100644 --- a/lib/zitadel-client/models/identity_provider_service_i_d_p_type.rb +++ b/lib/zitadel/client/models/identity_provider_service_i_d_p_type.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class IdentityProviderServiceIDPType IDP_TYPE_UNSPECIFIED = "IDP_TYPE_UNSPECIFIED".freeze IDP_TYPE_OIDC = "IDP_TYPE_OIDC".freeze @@ -45,7 +45,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if IdentityProviderServiceIDPType.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::IdentityProviderServiceIDPType" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::IdentityProviderServiceIDPType" end end diff --git a/lib/zitadel-client/models/identity_provider_service_j_w_t_config.rb b/lib/zitadel/client/models/identity_provider_service_j_w_t_config.rb similarity index 95% rename from lib/zitadel-client/models/identity_provider_service_j_w_t_config.rb rename to lib/zitadel/client/models/identity_provider_service_j_w_t_config.rb index 1e4e9604..f5e795a3 100644 --- a/lib/zitadel-client/models/identity_provider_service_j_w_t_config.rb +++ b/lib/zitadel/client/models/identity_provider_service_j_w_t_config.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class IdentityProviderServiceJWTConfig # The endpoint where the JWT can be extracted. attr_accessor :jwt_endpoint @@ -68,7 +68,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::IdentityProviderServiceJWTConfig` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::IdentityProviderServiceJWTConfig` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -76,7 +76,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::IdentityProviderServiceJWTConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::IdentityProviderServiceJWTConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -199,7 +199,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/identity_provider_service_l_d_a_p_attributes.rb b/lib/zitadel/client/models/identity_provider_service_l_d_a_p_attributes.rb similarity index 97% rename from lib/zitadel-client/models/identity_provider_service_l_d_a_p_attributes.rb rename to lib/zitadel/client/models/identity_provider_service_l_d_a_p_attributes.rb index 1ae62e27..d5f8c406 100644 --- a/lib/zitadel-client/models/identity_provider_service_l_d_a_p_attributes.rb +++ b/lib/zitadel/client/models/identity_provider_service_l_d_a_p_attributes.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class IdentityProviderServiceLDAPAttributes attr_accessor :id_attribute @@ -104,7 +104,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::IdentityProviderServiceLDAPAttributes` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::IdentityProviderServiceLDAPAttributes` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -112,7 +112,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::IdentityProviderServiceLDAPAttributes`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::IdentityProviderServiceLDAPAttributes`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -285,7 +285,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/identity_provider_service_l_d_a_p_config.rb b/lib/zitadel/client/models/identity_provider_service_l_d_a_p_config.rb similarity index 96% rename from lib/zitadel-client/models/identity_provider_service_l_d_a_p_config.rb rename to lib/zitadel/client/models/identity_provider_service_l_d_a_p_config.rb index 611a75ce..cdcbe55f 100644 --- a/lib/zitadel-client/models/identity_provider_service_l_d_a_p_config.rb +++ b/lib/zitadel/client/models/identity_provider_service_l_d_a_p_config.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class IdentityProviderServiceLDAPConfig attr_accessor :servers @@ -88,7 +88,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::IdentityProviderServiceLDAPConfig` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::IdentityProviderServiceLDAPConfig` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -96,7 +96,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::IdentityProviderServiceLDAPConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::IdentityProviderServiceLDAPConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -255,7 +255,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/identity_provider_service_o_auth_config.rb b/lib/zitadel/client/models/identity_provider_service_o_auth_config.rb similarity index 96% rename from lib/zitadel-client/models/identity_provider_service_o_auth_config.rb rename to lib/zitadel/client/models/identity_provider_service_o_auth_config.rb index 9d0fa32f..6a36b30b 100644 --- a/lib/zitadel-client/models/identity_provider_service_o_auth_config.rb +++ b/lib/zitadel/client/models/identity_provider_service_o_auth_config.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class IdentityProviderServiceOAuthConfig # Client id generated by the identity provider. attr_accessor :client_id @@ -78,7 +78,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::IdentityProviderServiceOAuthConfig` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::IdentityProviderServiceOAuthConfig` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -86,7 +86,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::IdentityProviderServiceOAuthConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::IdentityProviderServiceOAuthConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -221,7 +221,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/identity_provider_service_options.rb b/lib/zitadel/client/models/identity_provider_service_options.rb similarity index 96% rename from lib/zitadel-client/models/identity_provider_service_options.rb rename to lib/zitadel/client/models/identity_provider_service_options.rb index 580825ec..43a19043 100644 --- a/lib/zitadel-client/models/identity_provider_service_options.rb +++ b/lib/zitadel/client/models/identity_provider_service_options.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class IdentityProviderServiceOptions # Enable if users should be able to link an existing ZITADEL user with an external account. attr_accessor :is_linking_allowed @@ -94,7 +94,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::IdentityProviderServiceOptions` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::IdentityProviderServiceOptions` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -102,7 +102,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::IdentityProviderServiceOptions`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::IdentityProviderServiceOptions`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -232,7 +232,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/identity_provider_service_protobuf_any.rb b/lib/zitadel/client/models/identity_provider_service_protobuf_any.rb similarity index 95% rename from lib/zitadel-client/models/identity_provider_service_protobuf_any.rb rename to lib/zitadel/client/models/identity_provider_service_protobuf_any.rb index a3746864..00c0d965 100644 --- a/lib/zitadel-client/models/identity_provider_service_protobuf_any.rb +++ b/lib/zitadel/client/models/identity_provider_service_protobuf_any.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class IdentityProviderServiceProtobufAny attr_accessor :type @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::IdentityProviderServiceProtobufAny` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::IdentityProviderServiceProtobufAny` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::IdentityProviderServiceProtobufAny`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::IdentityProviderServiceProtobufAny`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/identity_provider_service_rpc_status.rb b/lib/zitadel/client/models/identity_provider_service_rpc_status.rb similarity index 95% rename from lib/zitadel-client/models/identity_provider_service_rpc_status.rb rename to lib/zitadel/client/models/identity_provider_service_rpc_status.rb index 094807ba..ac1d7555 100644 --- a/lib/zitadel-client/models/identity_provider_service_rpc_status.rb +++ b/lib/zitadel/client/models/identity_provider_service_rpc_status.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class IdentityProviderServiceRpcStatus attr_accessor :code @@ -60,7 +60,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::IdentityProviderServiceRpcStatus` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::IdentityProviderServiceRpcStatus` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -68,7 +68,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::IdentityProviderServiceRpcStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::IdentityProviderServiceRpcStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -188,7 +188,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/identity_provider_service_s_a_m_l_binding.rb b/lib/zitadel/client/models/identity_provider_service_s_a_m_l_binding.rb similarity index 90% rename from lib/zitadel-client/models/identity_provider_service_s_a_m_l_binding.rb rename to lib/zitadel/client/models/identity_provider_service_s_a_m_l_binding.rb index a9883890..1c637d74 100644 --- a/lib/zitadel-client/models/identity_provider_service_s_a_m_l_binding.rb +++ b/lib/zitadel/client/models/identity_provider_service_s_a_m_l_binding.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class IdentityProviderServiceSAMLBinding SAML_BINDING_UNSPECIFIED = "SAML_BINDING_UNSPECIFIED".freeze SAML_BINDING_POST = "SAML_BINDING_POST".freeze @@ -36,7 +36,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if IdentityProviderServiceSAMLBinding.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::IdentityProviderServiceSAMLBinding" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::IdentityProviderServiceSAMLBinding" end end 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 similarity index 96% rename from lib/zitadel-client/models/identity_provider_service_s_a_m_l_config.rb rename to lib/zitadel/client/models/identity_provider_service_s_a_m_l_config.rb index 2c0fb308..3676bf08 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 @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class IdentityProviderServiceSAMLConfig # Metadata of the SAML identity provider. attr_accessor :metadata_xml @@ -93,7 +93,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::IdentityProviderServiceSAMLConfig` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::IdentityProviderServiceSAMLConfig` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -101,7 +101,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::IdentityProviderServiceSAMLConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::IdentityProviderServiceSAMLConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -233,7 +233,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/identity_provider_service_s_a_m_l_name_i_d_format.rb b/lib/zitadel/client/models/identity_provider_service_s_a_m_l_name_i_d_format.rb similarity index 90% rename from lib/zitadel-client/models/identity_provider_service_s_a_m_l_name_i_d_format.rb rename to lib/zitadel/client/models/identity_provider_service_s_a_m_l_name_i_d_format.rb index 79cf05e4..71650a2f 100644 --- a/lib/zitadel-client/models/identity_provider_service_s_a_m_l_name_i_d_format.rb +++ b/lib/zitadel/client/models/identity_provider_service_s_a_m_l_name_i_d_format.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class IdentityProviderServiceSAMLNameIDFormat SAML_NAME_ID_FORMAT_UNSPECIFIED = "SAML_NAME_ID_FORMAT_UNSPECIFIED".freeze SAML_NAME_ID_FORMAT_EMAIL_ADDRESS = "SAML_NAME_ID_FORMAT_EMAIL_ADDRESS".freeze @@ -36,7 +36,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if IdentityProviderServiceSAMLNameIDFormat.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::IdentityProviderServiceSAMLNameIDFormat" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::IdentityProviderServiceSAMLNameIDFormat" end end diff --git a/lib/zitadel-client/models/o_i_d_c_service_auth_request.rb b/lib/zitadel/client/models/o_i_d_c_service_auth_request.rb similarity index 96% rename from lib/zitadel-client/models/o_i_d_c_service_auth_request.rb rename to lib/zitadel/client/models/o_i_d_c_service_auth_request.rb index 8258c4fc..e264aeab 100644 --- a/lib/zitadel-client/models/o_i_d_c_service_auth_request.rb +++ b/lib/zitadel/client/models/o_i_d_c_service_auth_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OIDCServiceAuthRequest # ID of the authorization request attr_accessor :id @@ -98,7 +98,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OIDCServiceAuthRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OIDCServiceAuthRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -106,7 +106,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OIDCServiceAuthRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OIDCServiceAuthRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -265,7 +265,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/o_i_d_c_service_authorization_error.rb b/lib/zitadel/client/models/o_i_d_c_service_authorization_error.rb similarity index 95% rename from lib/zitadel-client/models/o_i_d_c_service_authorization_error.rb rename to lib/zitadel/client/models/o_i_d_c_service_authorization_error.rb index 4b8dd269..913656b9 100644 --- a/lib/zitadel-client/models/o_i_d_c_service_authorization_error.rb +++ b/lib/zitadel/client/models/o_i_d_c_service_authorization_error.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OIDCServiceAuthorizationError attr_accessor :error @@ -82,7 +82,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OIDCServiceAuthorizationError` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OIDCServiceAuthorizationError` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -90,7 +90,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OIDCServiceAuthorizationError`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OIDCServiceAuthorizationError`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -210,7 +210,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/o_i_d_c_service_authorize_or_deny_device_authorization_request.rb b/lib/zitadel/client/models/o_i_d_c_service_authorize_or_deny_device_authorization_request.rb similarity index 94% rename from lib/zitadel-client/models/o_i_d_c_service_authorize_or_deny_device_authorization_request.rb rename to lib/zitadel/client/models/o_i_d_c_service_authorize_or_deny_device_authorization_request.rb index a8f0c522..ab1595f3 100644 --- a/lib/zitadel-client/models/o_i_d_c_service_authorize_or_deny_device_authorization_request.rb +++ b/lib/zitadel/client/models/o_i_d_c_service_authorize_or_deny_device_authorization_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OIDCServiceAuthorizeOrDenyDeviceAuthorizationRequest attr_accessor :session @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OIDCServiceAuthorizeOrDenyDeviceAuthorizationRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OIDCServiceAuthorizeOrDenyDeviceAuthorizationRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OIDCServiceAuthorizeOrDenyDeviceAuthorizationRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OIDCServiceAuthorizeOrDenyDeviceAuthorizationRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -177,7 +177,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/o_i_d_c_service_create_callback_request.rb b/lib/zitadel/client/models/o_i_d_c_service_create_callback_request.rb similarity index 95% rename from lib/zitadel-client/models/o_i_d_c_service_create_callback_request.rb rename to lib/zitadel/client/models/o_i_d_c_service_create_callback_request.rb index 96ff9553..90d9fa82 100644 --- a/lib/zitadel-client/models/o_i_d_c_service_create_callback_request.rb +++ b/lib/zitadel/client/models/o_i_d_c_service_create_callback_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OIDCServiceCreateCallbackRequest attr_accessor :session @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OIDCServiceCreateCallbackRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OIDCServiceCreateCallbackRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OIDCServiceCreateCallbackRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OIDCServiceCreateCallbackRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -177,7 +177,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/o_i_d_c_service_create_callback_response.rb b/lib/zitadel/client/models/o_i_d_c_service_create_callback_response.rb similarity index 95% rename from lib/zitadel-client/models/o_i_d_c_service_create_callback_response.rb rename to lib/zitadel/client/models/o_i_d_c_service_create_callback_response.rb index 8d80586d..2883d8b2 100644 --- a/lib/zitadel-client/models/o_i_d_c_service_create_callback_response.rb +++ b/lib/zitadel/client/models/o_i_d_c_service_create_callback_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OIDCServiceCreateCallbackResponse attr_accessor :details @@ -57,7 +57,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OIDCServiceCreateCallbackResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OIDCServiceCreateCallbackResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -65,7 +65,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OIDCServiceCreateCallbackResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OIDCServiceCreateCallbackResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -178,7 +178,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/o_i_d_c_service_details.rb b/lib/zitadel/client/models/o_i_d_c_service_details.rb similarity index 96% rename from lib/zitadel-client/models/o_i_d_c_service_details.rb rename to lib/zitadel/client/models/o_i_d_c_service_details.rb index 55478856..8153947b 100644 --- a/lib/zitadel-client/models/o_i_d_c_service_details.rb +++ b/lib/zitadel/client/models/o_i_d_c_service_details.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OIDCServiceDetails # on read: the sequence of the last event reduced by the projection on manipulation: the timestamp of the event(s) added by the manipulation attr_accessor :sequence @@ -66,7 +66,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OIDCServiceDetails` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OIDCServiceDetails` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -74,7 +74,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OIDCServiceDetails`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OIDCServiceDetails`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -197,7 +197,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/o_i_d_c_service_device_authorization_request.rb b/lib/zitadel/client/models/o_i_d_c_service_device_authorization_request.rb similarity index 95% rename from lib/zitadel-client/models/o_i_d_c_service_device_authorization_request.rb rename to lib/zitadel/client/models/o_i_d_c_service_device_authorization_request.rb index 3fea44b3..d06221ca 100644 --- a/lib/zitadel-client/models/o_i_d_c_service_device_authorization_request.rb +++ b/lib/zitadel/client/models/o_i_d_c_service_device_authorization_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OIDCServiceDeviceAuthorizationRequest # The unique identifier of the device authorization request to be used for authorizing or denying the request. attr_accessor :id @@ -73,7 +73,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OIDCServiceDeviceAuthorizationRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OIDCServiceDeviceAuthorizationRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -81,7 +81,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OIDCServiceDeviceAuthorizationRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OIDCServiceDeviceAuthorizationRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -211,7 +211,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/o_i_d_c_service_error_reason.rb b/lib/zitadel/client/models/o_i_d_c_service_error_reason.rb similarity index 95% rename from lib/zitadel-client/models/o_i_d_c_service_error_reason.rb rename to lib/zitadel/client/models/o_i_d_c_service_error_reason.rb index 42eba011..559d0051 100644 --- a/lib/zitadel-client/models/o_i_d_c_service_error_reason.rb +++ b/lib/zitadel/client/models/o_i_d_c_service_error_reason.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OIDCServiceErrorReason ERROR_REASON_UNSPECIFIED = "ERROR_REASON_UNSPECIFIED".freeze ERROR_REASON_INVALID_REQUEST = "ERROR_REASON_INVALID_REQUEST".freeze @@ -49,7 +49,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if OIDCServiceErrorReason.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::OIDCServiceErrorReason" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::OIDCServiceErrorReason" end end diff --git a/lib/zitadel-client/models/o_i_d_c_service_get_auth_request_response.rb b/lib/zitadel/client/models/o_i_d_c_service_get_auth_request_response.rb similarity index 95% rename from lib/zitadel-client/models/o_i_d_c_service_get_auth_request_response.rb rename to lib/zitadel/client/models/o_i_d_c_service_get_auth_request_response.rb index ab2c80ef..4fee18af 100644 --- a/lib/zitadel-client/models/o_i_d_c_service_get_auth_request_response.rb +++ b/lib/zitadel/client/models/o_i_d_c_service_get_auth_request_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OIDCServiceGetAuthRequestResponse attr_accessor :auth_request @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OIDCServiceGetAuthRequestResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OIDCServiceGetAuthRequestResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OIDCServiceGetAuthRequestResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OIDCServiceGetAuthRequestResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/o_i_d_c_service_get_device_authorization_request_response.rb b/lib/zitadel/client/models/o_i_d_c_service_get_device_authorization_request_response.rb similarity index 94% rename from lib/zitadel-client/models/o_i_d_c_service_get_device_authorization_request_response.rb rename to lib/zitadel/client/models/o_i_d_c_service_get_device_authorization_request_response.rb index 6957e9b2..51d48476 100644 --- a/lib/zitadel-client/models/o_i_d_c_service_get_device_authorization_request_response.rb +++ b/lib/zitadel/client/models/o_i_d_c_service_get_device_authorization_request_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OIDCServiceGetDeviceAuthorizationRequestResponse attr_accessor :device_authorization_request @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OIDCServiceGetDeviceAuthorizationRequestResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OIDCServiceGetDeviceAuthorizationRequestResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OIDCServiceGetDeviceAuthorizationRequestResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OIDCServiceGetDeviceAuthorizationRequestResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/o_i_d_c_service_prompt.rb b/lib/zitadel/client/models/o_i_d_c_service_prompt.rb similarity index 91% rename from lib/zitadel-client/models/o_i_d_c_service_prompt.rb rename to lib/zitadel/client/models/o_i_d_c_service_prompt.rb index ebb28dd8..a4368004 100644 --- a/lib/zitadel-client/models/o_i_d_c_service_prompt.rb +++ b/lib/zitadel/client/models/o_i_d_c_service_prompt.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OIDCServicePrompt PROMPT_UNSPECIFIED = "PROMPT_UNSPECIFIED".freeze PROMPT_NONE = "PROMPT_NONE".freeze @@ -38,7 +38,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if OIDCServicePrompt.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::OIDCServicePrompt" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::OIDCServicePrompt" end end diff --git a/lib/zitadel-client/models/o_i_d_c_service_protobuf_any.rb b/lib/zitadel/client/models/o_i_d_c_service_protobuf_any.rb similarity index 95% rename from lib/zitadel-client/models/o_i_d_c_service_protobuf_any.rb rename to lib/zitadel/client/models/o_i_d_c_service_protobuf_any.rb index 2733cb2d..6ae4aa78 100644 --- a/lib/zitadel-client/models/o_i_d_c_service_protobuf_any.rb +++ b/lib/zitadel/client/models/o_i_d_c_service_protobuf_any.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OIDCServiceProtobufAny attr_accessor :type @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OIDCServiceProtobufAny` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OIDCServiceProtobufAny` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OIDCServiceProtobufAny`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OIDCServiceProtobufAny`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/o_i_d_c_service_rpc_status.rb b/lib/zitadel/client/models/o_i_d_c_service_rpc_status.rb similarity index 95% rename from lib/zitadel-client/models/o_i_d_c_service_rpc_status.rb rename to lib/zitadel/client/models/o_i_d_c_service_rpc_status.rb index d7ea35dc..11451a0f 100644 --- a/lib/zitadel-client/models/o_i_d_c_service_rpc_status.rb +++ b/lib/zitadel/client/models/o_i_d_c_service_rpc_status.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OIDCServiceRpcStatus attr_accessor :code @@ -60,7 +60,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OIDCServiceRpcStatus` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OIDCServiceRpcStatus` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -68,7 +68,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OIDCServiceRpcStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OIDCServiceRpcStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -188,7 +188,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/o_i_d_c_service_session.rb b/lib/zitadel/client/models/o_i_d_c_service_session.rb similarity index 96% rename from lib/zitadel-client/models/o_i_d_c_service_session.rb rename to lib/zitadel/client/models/o_i_d_c_service_session.rb index f2e4c990..1493e4ed 100644 --- a/lib/zitadel-client/models/o_i_d_c_service_session.rb +++ b/lib/zitadel/client/models/o_i_d_c_service_session.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OIDCServiceSession # ID of the session, used to login the user. Connects the session to the Auth Request. attr_accessor :session_id @@ -58,7 +58,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OIDCServiceSession` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OIDCServiceSession` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -66,7 +66,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OIDCServiceSession`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OIDCServiceSession`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -235,7 +235,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/organization_service_add_human_user_request.rb b/lib/zitadel/client/models/organization_service_add_human_user_request.rb similarity index 97% rename from lib/zitadel-client/models/organization_service_add_human_user_request.rb rename to lib/zitadel/client/models/organization_service_add_human_user_request.rb index d506d4a1..dd4838c1 100644 --- a/lib/zitadel-client/models/organization_service_add_human_user_request.rb +++ b/lib/zitadel/client/models/organization_service_add_human_user_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OrganizationServiceAddHumanUserRequest # optionally set your own id unique for the user. attr_accessor :user_id @@ -95,7 +95,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OrganizationServiceAddHumanUserRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OrganizationServiceAddHumanUserRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -103,7 +103,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OrganizationServiceAddHumanUserRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OrganizationServiceAddHumanUserRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -383,7 +383,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/organization_service_add_organization_request.rb b/lib/zitadel/client/models/organization_service_add_organization_request.rb similarity index 95% rename from lib/zitadel-client/models/organization_service_add_organization_request.rb rename to lib/zitadel/client/models/organization_service_add_organization_request.rb index b04f3c58..4e94397e 100644 --- a/lib/zitadel-client/models/organization_service_add_organization_request.rb +++ b/lib/zitadel/client/models/organization_service_add_organization_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OrganizationServiceAddOrganizationRequest attr_accessor :name @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OrganizationServiceAddOrganizationRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OrganizationServiceAddOrganizationRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OrganizationServiceAddOrganizationRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OrganizationServiceAddOrganizationRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -214,7 +214,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/organization_service_add_organization_request_admin.rb b/lib/zitadel/client/models/organization_service_add_organization_request_admin.rb similarity index 95% rename from lib/zitadel-client/models/organization_service_add_organization_request_admin.rb rename to lib/zitadel/client/models/organization_service_add_organization_request_admin.rb index d64ca3b2..d923e441 100644 --- a/lib/zitadel-client/models/organization_service_add_organization_request_admin.rb +++ b/lib/zitadel/client/models/organization_service_add_organization_request_admin.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OrganizationServiceAddOrganizationRequestAdmin attr_accessor :user_id @@ -60,7 +60,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OrganizationServiceAddOrganizationRequestAdmin` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OrganizationServiceAddOrganizationRequestAdmin` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -68,7 +68,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OrganizationServiceAddOrganizationRequestAdmin`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OrganizationServiceAddOrganizationRequestAdmin`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -188,7 +188,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/organization_service_add_organization_response.rb b/lib/zitadel/client/models/organization_service_add_organization_response.rb similarity index 95% rename from lib/zitadel-client/models/organization_service_add_organization_response.rb rename to lib/zitadel/client/models/organization_service_add_organization_response.rb index 127e71c4..138e04c4 100644 --- a/lib/zitadel-client/models/organization_service_add_organization_response.rb +++ b/lib/zitadel/client/models/organization_service_add_organization_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OrganizationServiceAddOrganizationResponse attr_accessor :details @@ -60,7 +60,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OrganizationServiceAddOrganizationResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OrganizationServiceAddOrganizationResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -68,7 +68,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OrganizationServiceAddOrganizationResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OrganizationServiceAddOrganizationResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -188,7 +188,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/organization_service_add_organization_response_created_admin.rb b/lib/zitadel/client/models/organization_service_add_organization_response_created_admin.rb similarity index 94% rename from lib/zitadel-client/models/organization_service_add_organization_response_created_admin.rb rename to lib/zitadel/client/models/organization_service_add_organization_response_created_admin.rb index a4ff6425..9f746208 100644 --- a/lib/zitadel-client/models/organization_service_add_organization_response_created_admin.rb +++ b/lib/zitadel/client/models/organization_service_add_organization_response_created_admin.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OrganizationServiceAddOrganizationResponseCreatedAdmin attr_accessor :user_id @@ -60,7 +60,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OrganizationServiceAddOrganizationResponseCreatedAdmin` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OrganizationServiceAddOrganizationResponseCreatedAdmin` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -68,7 +68,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OrganizationServiceAddOrganizationResponseCreatedAdmin`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OrganizationServiceAddOrganizationResponseCreatedAdmin`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -186,7 +186,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/organization_service_details.rb b/lib/zitadel/client/models/organization_service_details.rb similarity index 95% rename from lib/zitadel-client/models/organization_service_details.rb rename to lib/zitadel/client/models/organization_service_details.rb index 6de0b929..4b8d6a89 100644 --- a/lib/zitadel-client/models/organization_service_details.rb +++ b/lib/zitadel/client/models/organization_service_details.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OrganizationServiceDetails # on read: the sequence of the last event reduced by the projection on manipulation: the timestamp of the event(s) added by the manipulation attr_accessor :sequence @@ -66,7 +66,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OrganizationServiceDetails` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OrganizationServiceDetails` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -74,7 +74,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OrganizationServiceDetails`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OrganizationServiceDetails`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -197,7 +197,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/organization_service_gender.rb b/lib/zitadel/client/models/organization_service_gender.rb similarity index 89% rename from lib/zitadel-client/models/organization_service_gender.rb rename to lib/zitadel/client/models/organization_service_gender.rb index af51963f..935b3f19 100644 --- a/lib/zitadel-client/models/organization_service_gender.rb +++ b/lib/zitadel/client/models/organization_service_gender.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OrganizationServiceGender GENDER_UNSPECIFIED = "GENDER_UNSPECIFIED".freeze GENDER_FEMALE = "GENDER_FEMALE".freeze @@ -36,7 +36,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if OrganizationServiceGender.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::OrganizationServiceGender" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::OrganizationServiceGender" end end diff --git a/lib/zitadel-client/models/organization_service_hashed_password.rb b/lib/zitadel/client/models/organization_service_hashed_password.rb similarity index 96% rename from lib/zitadel-client/models/organization_service_hashed_password.rb rename to lib/zitadel/client/models/organization_service_hashed_password.rb index bfa469ee..232c25ef 100644 --- a/lib/zitadel-client/models/organization_service_hashed_password.rb +++ b/lib/zitadel/client/models/organization_service_hashed_password.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OrganizationServiceHashedPassword # \"Encoded hash of a password in Modular Crypt Format: https://zitadel.com/docs/concepts/architecture/secrets#hashed-secrets\" attr_accessor :hash @@ -57,7 +57,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OrganizationServiceHashedPassword` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OrganizationServiceHashedPassword` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -65,7 +65,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OrganizationServiceHashedPassword`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OrganizationServiceHashedPassword`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -213,7 +213,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/organization_service_i_d_p_link.rb b/lib/zitadel/client/models/organization_service_i_d_p_link.rb similarity index 96% rename from lib/zitadel-client/models/organization_service_i_d_p_link.rb rename to lib/zitadel/client/models/organization_service_i_d_p_link.rb index daf58257..bab15485 100644 --- a/lib/zitadel-client/models/organization_service_i_d_p_link.rb +++ b/lib/zitadel/client/models/organization_service_i_d_p_link.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OrganizationServiceIDPLink # ID of the identity provider attr_accessor :idp_id @@ -63,7 +63,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OrganizationServiceIDPLink` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OrganizationServiceIDPLink` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -71,7 +71,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OrganizationServiceIDPLink`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OrganizationServiceIDPLink`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -273,7 +273,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/organization_service_list_details.rb b/lib/zitadel/client/models/organization_service_list_details.rb similarity index 95% rename from lib/zitadel-client/models/organization_service_list_details.rb rename to lib/zitadel/client/models/organization_service_list_details.rb index d42294e0..5ffd426f 100644 --- a/lib/zitadel-client/models/organization_service_list_details.rb +++ b/lib/zitadel/client/models/organization_service_list_details.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OrganizationServiceListDetails attr_accessor :total_result @@ -61,7 +61,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OrganizationServiceListDetails` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OrganizationServiceListDetails` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -69,7 +69,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OrganizationServiceListDetails`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OrganizationServiceListDetails`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -187,7 +187,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/organization_service_list_organizations_request.rb b/lib/zitadel/client/models/organization_service_list_organizations_request.rb similarity index 95% rename from lib/zitadel-client/models/organization_service_list_organizations_request.rb rename to lib/zitadel/client/models/organization_service_list_organizations_request.rb index 64e43ab3..978396f0 100644 --- a/lib/zitadel-client/models/organization_service_list_organizations_request.rb +++ b/lib/zitadel/client/models/organization_service_list_organizations_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OrganizationServiceListOrganizationsRequest attr_accessor :query @@ -82,7 +82,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OrganizationServiceListOrganizationsRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OrganizationServiceListOrganizationsRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -90,7 +90,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OrganizationServiceListOrganizationsRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OrganizationServiceListOrganizationsRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -212,7 +212,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/organization_service_list_organizations_response.rb b/lib/zitadel/client/models/organization_service_list_organizations_response.rb similarity index 95% rename from lib/zitadel-client/models/organization_service_list_organizations_response.rb rename to lib/zitadel/client/models/organization_service_list_organizations_response.rb index 96412fb8..0dc2d308 100644 --- a/lib/zitadel-client/models/organization_service_list_organizations_response.rb +++ b/lib/zitadel/client/models/organization_service_list_organizations_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OrganizationServiceListOrganizationsResponse attr_accessor :details @@ -82,7 +82,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OrganizationServiceListOrganizationsResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OrganizationServiceListOrganizationsResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -90,7 +90,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OrganizationServiceListOrganizationsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OrganizationServiceListOrganizationsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -212,7 +212,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/organization_service_list_query.rb b/lib/zitadel/client/models/organization_service_list_query.rb similarity index 95% rename from lib/zitadel-client/models/organization_service_list_query.rb rename to lib/zitadel/client/models/organization_service_list_query.rb index 01a3e4b0..23b0f181 100644 --- a/lib/zitadel-client/models/organization_service_list_query.rb +++ b/lib/zitadel/client/models/organization_service_list_query.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models # Object unspecific list filters like offset, limit and asc/desc. class OrganizationServiceListQuery attr_accessor :offset @@ -63,7 +63,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OrganizationServiceListQuery` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OrganizationServiceListQuery` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -71,7 +71,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OrganizationServiceListQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OrganizationServiceListQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -189,7 +189,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/organization_service_organization_domain_query.rb b/lib/zitadel/client/models/organization_service_organization_domain_query.rb similarity index 96% rename from lib/zitadel-client/models/organization_service_organization_domain_query.rb rename to lib/zitadel/client/models/organization_service_organization_domain_query.rb index e76820fb..8050b183 100644 --- a/lib/zitadel-client/models/organization_service_organization_domain_query.rb +++ b/lib/zitadel/client/models/organization_service_organization_domain_query.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OrganizationServiceOrganizationDomainQuery # Domain used in organization, not necessary primary domain. attr_accessor :domain @@ -79,7 +79,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OrganizationServiceOrganizationDomainQuery` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OrganizationServiceOrganizationDomainQuery` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -87,7 +87,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OrganizationServiceOrganizationDomainQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OrganizationServiceOrganizationDomainQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -237,7 +237,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/organization_service_organization_field_name.rb b/lib/zitadel/client/models/organization_service_organization_field_name.rb similarity index 89% rename from lib/zitadel-client/models/organization_service_organization_field_name.rb rename to lib/zitadel/client/models/organization_service_organization_field_name.rb index 453de484..c00de812 100644 --- a/lib/zitadel-client/models/organization_service_organization_field_name.rb +++ b/lib/zitadel/client/models/organization_service_organization_field_name.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OrganizationServiceOrganizationFieldName ORGANIZATION_FIELD_NAME_UNSPECIFIED = "ORGANIZATION_FIELD_NAME_UNSPECIFIED".freeze ORGANIZATION_FIELD_NAME_NAME = "ORGANIZATION_FIELD_NAME_NAME".freeze @@ -34,7 +34,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if OrganizationServiceOrganizationFieldName.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::OrganizationServiceOrganizationFieldName" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::OrganizationServiceOrganizationFieldName" end end diff --git a/lib/zitadel-client/models/organization_service_organization_i_d_query.rb b/lib/zitadel/client/models/organization_service_organization_i_d_query.rb similarity index 95% rename from lib/zitadel-client/models/organization_service_organization_i_d_query.rb rename to lib/zitadel/client/models/organization_service_organization_i_d_query.rb index a45c7b6a..68d26344 100644 --- a/lib/zitadel-client/models/organization_service_organization_i_d_query.rb +++ b/lib/zitadel/client/models/organization_service_organization_i_d_query.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OrganizationServiceOrganizationIDQuery # Unique identifier of the organization. attr_accessor :id @@ -53,7 +53,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OrganizationServiceOrganizationIDQuery` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OrganizationServiceOrganizationIDQuery` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -61,7 +61,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OrganizationServiceOrganizationIDQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OrganizationServiceOrganizationIDQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -204,7 +204,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/organization_service_organization_name_query.rb b/lib/zitadel/client/models/organization_service_organization_name_query.rb similarity index 96% rename from lib/zitadel-client/models/organization_service_organization_name_query.rb rename to lib/zitadel/client/models/organization_service_organization_name_query.rb index 78af13c9..cc7b0eda 100644 --- a/lib/zitadel-client/models/organization_service_organization_name_query.rb +++ b/lib/zitadel/client/models/organization_service_organization_name_query.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OrganizationServiceOrganizationNameQuery # Name of the organization. attr_accessor :name @@ -79,7 +79,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OrganizationServiceOrganizationNameQuery` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OrganizationServiceOrganizationNameQuery` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -87,7 +87,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OrganizationServiceOrganizationNameQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OrganizationServiceOrganizationNameQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -237,7 +237,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/organization_service_organization_state.rb b/lib/zitadel/client/models/organization_service_organization_state.rb similarity index 90% rename from lib/zitadel-client/models/organization_service_organization_state.rb rename to lib/zitadel/client/models/organization_service_organization_state.rb index 41b1c79f..a1f261f3 100644 --- a/lib/zitadel-client/models/organization_service_organization_state.rb +++ b/lib/zitadel/client/models/organization_service_organization_state.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OrganizationServiceOrganizationState ORGANIZATION_STATE_UNSPECIFIED = "ORGANIZATION_STATE_UNSPECIFIED".freeze ORGANIZATION_STATE_ACTIVE = "ORGANIZATION_STATE_ACTIVE".freeze @@ -36,7 +36,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if OrganizationServiceOrganizationState.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::OrganizationServiceOrganizationState" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::OrganizationServiceOrganizationState" end end diff --git a/lib/zitadel-client/models/organization_service_organization_state_query.rb b/lib/zitadel/client/models/organization_service_organization_state_query.rb similarity index 95% rename from lib/zitadel-client/models/organization_service_organization_state_query.rb rename to lib/zitadel/client/models/organization_service_organization_state_query.rb index e1047a29..ccd127ed 100644 --- a/lib/zitadel-client/models/organization_service_organization_state_query.rb +++ b/lib/zitadel/client/models/organization_service_organization_state_query.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OrganizationServiceOrganizationStateQuery attr_accessor :state @@ -74,7 +74,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OrganizationServiceOrganizationStateQuery` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OrganizationServiceOrganizationStateQuery` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -82,7 +82,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OrganizationServiceOrganizationStateQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OrganizationServiceOrganizationStateQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -192,7 +192,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/organization_service_password.rb b/lib/zitadel/client/models/organization_service_password.rb similarity index 96% rename from lib/zitadel-client/models/organization_service_password.rb rename to lib/zitadel/client/models/organization_service_password.rb index 2ab87e3c..a584ee61 100644 --- a/lib/zitadel-client/models/organization_service_password.rb +++ b/lib/zitadel/client/models/organization_service_password.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OrganizationServicePassword attr_accessor :password @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OrganizationServicePassword` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OrganizationServicePassword` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OrganizationServicePassword`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OrganizationServicePassword`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -212,7 +212,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/organization_service_protobuf_any.rb b/lib/zitadel/client/models/organization_service_protobuf_any.rb similarity index 95% rename from lib/zitadel-client/models/organization_service_protobuf_any.rb rename to lib/zitadel/client/models/organization_service_protobuf_any.rb index 5c69056b..815a1efe 100644 --- a/lib/zitadel-client/models/organization_service_protobuf_any.rb +++ b/lib/zitadel/client/models/organization_service_protobuf_any.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OrganizationServiceProtobufAny attr_accessor :type @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OrganizationServiceProtobufAny` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OrganizationServiceProtobufAny` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OrganizationServiceProtobufAny`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OrganizationServiceProtobufAny`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/organization_service_rpc_status.rb b/lib/zitadel/client/models/organization_service_rpc_status.rb similarity index 95% rename from lib/zitadel-client/models/organization_service_rpc_status.rb rename to lib/zitadel/client/models/organization_service_rpc_status.rb index 90f51ed7..f42b6076 100644 --- a/lib/zitadel-client/models/organization_service_rpc_status.rb +++ b/lib/zitadel/client/models/organization_service_rpc_status.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OrganizationServiceRpcStatus attr_accessor :code @@ -60,7 +60,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OrganizationServiceRpcStatus` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OrganizationServiceRpcStatus` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -68,7 +68,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OrganizationServiceRpcStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OrganizationServiceRpcStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -188,7 +188,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/organization_service_search_query.rb b/lib/zitadel/client/models/organization_service_search_query.rb similarity index 95% rename from lib/zitadel-client/models/organization_service_search_query.rb rename to lib/zitadel/client/models/organization_service_search_query.rb index b5d9b1c7..e6efd29b 100644 --- a/lib/zitadel-client/models/organization_service_search_query.rb +++ b/lib/zitadel/client/models/organization_service_search_query.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OrganizationServiceSearchQuery attr_accessor :name_query @@ -68,7 +68,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OrganizationServiceSearchQuery` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OrganizationServiceSearchQuery` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -76,7 +76,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OrganizationServiceSearchQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OrganizationServiceSearchQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -204,7 +204,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/organization_service_send_email_verification_code.rb b/lib/zitadel/client/models/organization_service_send_email_verification_code.rb similarity index 95% rename from lib/zitadel-client/models/organization_service_send_email_verification_code.rb rename to lib/zitadel/client/models/organization_service_send_email_verification_code.rb index 235e0547..9f0e07e6 100644 --- a/lib/zitadel-client/models/organization_service_send_email_verification_code.rb +++ b/lib/zitadel/client/models/organization_service_send_email_verification_code.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OrganizationServiceSendEmailVerificationCode # Optionally set a url_template, which will be used in the verification mail sent by ZITADEL to guide the user to your verification page. If no template is set, the default ZITADEL url will be used. The following placeholders can be used: UserID, OrgID, Code attr_accessor :url_template @@ -53,7 +53,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OrganizationServiceSendEmailVerificationCode` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OrganizationServiceSendEmailVerificationCode` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -61,7 +61,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OrganizationServiceSendEmailVerificationCode`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OrganizationServiceSendEmailVerificationCode`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -197,7 +197,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/organization_service_set_human_email.rb b/lib/zitadel/client/models/organization_service_set_human_email.rb similarity index 96% rename from lib/zitadel-client/models/organization_service_set_human_email.rb rename to lib/zitadel/client/models/organization_service_set_human_email.rb index 74ee9ffc..319a29ee 100644 --- a/lib/zitadel-client/models/organization_service_set_human_email.rb +++ b/lib/zitadel/client/models/organization_service_set_human_email.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OrganizationServiceSetHumanEmail attr_accessor :email @@ -64,7 +64,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OrganizationServiceSetHumanEmail` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OrganizationServiceSetHumanEmail` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -72,7 +72,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OrganizationServiceSetHumanEmail`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OrganizationServiceSetHumanEmail`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -230,7 +230,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/organization_service_set_human_phone.rb b/lib/zitadel/client/models/organization_service_set_human_phone.rb similarity index 95% rename from lib/zitadel-client/models/organization_service_set_human_phone.rb rename to lib/zitadel/client/models/organization_service_set_human_phone.rb index f506e7ce..826b79d7 100644 --- a/lib/zitadel-client/models/organization_service_set_human_phone.rb +++ b/lib/zitadel/client/models/organization_service_set_human_phone.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OrganizationServiceSetHumanPhone attr_accessor :phone @@ -64,7 +64,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OrganizationServiceSetHumanPhone` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OrganizationServiceSetHumanPhone` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -72,7 +72,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OrganizationServiceSetHumanPhone`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OrganizationServiceSetHumanPhone`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -214,7 +214,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/organization_service_set_human_profile.rb b/lib/zitadel/client/models/organization_service_set_human_profile.rb similarity index 97% rename from lib/zitadel-client/models/organization_service_set_human_profile.rb rename to lib/zitadel/client/models/organization_service_set_human_profile.rb index ac08c8cd..5a7b5a4d 100644 --- a/lib/zitadel-client/models/organization_service_set_human_profile.rb +++ b/lib/zitadel/client/models/organization_service_set_human_profile.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OrganizationServiceSetHumanProfile attr_accessor :given_name @@ -94,7 +94,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OrganizationServiceSetHumanProfile` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OrganizationServiceSetHumanProfile` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -102,7 +102,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OrganizationServiceSetHumanProfile`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OrganizationServiceSetHumanProfile`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -364,7 +364,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/organization_service_set_metadata_entry.rb b/lib/zitadel/client/models/organization_service_set_metadata_entry.rb similarity index 96% rename from lib/zitadel-client/models/organization_service_set_metadata_entry.rb rename to lib/zitadel/client/models/organization_service_set_metadata_entry.rb index 8cc3127b..d2177396 100644 --- a/lib/zitadel-client/models/organization_service_set_metadata_entry.rb +++ b/lib/zitadel/client/models/organization_service_set_metadata_entry.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OrganizationServiceSetMetadataEntry attr_accessor :key @@ -57,7 +57,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::OrganizationServiceSetMetadataEntry` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::OrganizationServiceSetMetadataEntry` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -65,7 +65,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::OrganizationServiceSetMetadataEntry`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::OrganizationServiceSetMetadataEntry`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -248,7 +248,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/organization_service_text_query_method.rb b/lib/zitadel/client/models/organization_service_text_query_method.rb similarity index 93% rename from lib/zitadel-client/models/organization_service_text_query_method.rb rename to lib/zitadel/client/models/organization_service_text_query_method.rb index cd7c27ef..5152fe17 100644 --- a/lib/zitadel-client/models/organization_service_text_query_method.rb +++ b/lib/zitadel/client/models/organization_service_text_query_method.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class OrganizationServiceTextQueryMethod TEXT_QUERY_METHOD_EQUALS = "TEXT_QUERY_METHOD_EQUALS".freeze TEXT_QUERY_METHOD_EQUALS_IGNORE_CASE = "TEXT_QUERY_METHOD_EQUALS_IGNORE_CASE".freeze @@ -40,7 +40,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if OrganizationServiceTextQueryMethod.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::OrganizationServiceTextQueryMethod" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::OrganizationServiceTextQueryMethod" end end diff --git a/lib/zitadel-client/models/s_a_m_l_service_authorization_error.rb b/lib/zitadel/client/models/s_a_m_l_service_authorization_error.rb similarity index 95% rename from lib/zitadel-client/models/s_a_m_l_service_authorization_error.rb rename to lib/zitadel/client/models/s_a_m_l_service_authorization_error.rb index ff936689..53e24906 100644 --- a/lib/zitadel-client/models/s_a_m_l_service_authorization_error.rb +++ b/lib/zitadel/client/models/s_a_m_l_service_authorization_error.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SAMLServiceAuthorizationError attr_accessor :error @@ -78,7 +78,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SAMLServiceAuthorizationError` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SAMLServiceAuthorizationError` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -86,7 +86,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SAMLServiceAuthorizationError`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SAMLServiceAuthorizationError`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -201,7 +201,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/s_a_m_l_service_create_response_request.rb b/lib/zitadel/client/models/s_a_m_l_service_create_response_request.rb similarity index 95% rename from lib/zitadel-client/models/s_a_m_l_service_create_response_request.rb rename to lib/zitadel/client/models/s_a_m_l_service_create_response_request.rb index 258c2cb4..1bd0a70b 100644 --- a/lib/zitadel-client/models/s_a_m_l_service_create_response_request.rb +++ b/lib/zitadel/client/models/s_a_m_l_service_create_response_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SAMLServiceCreateResponseRequest attr_accessor :session @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SAMLServiceCreateResponseRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SAMLServiceCreateResponseRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SAMLServiceCreateResponseRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SAMLServiceCreateResponseRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -177,7 +177,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/s_a_m_l_service_create_response_response.rb b/lib/zitadel/client/models/s_a_m_l_service_create_response_response.rb similarity index 95% rename from lib/zitadel-client/models/s_a_m_l_service_create_response_response.rb rename to lib/zitadel/client/models/s_a_m_l_service_create_response_response.rb index b3ff6149..c84d8c9f 100644 --- a/lib/zitadel-client/models/s_a_m_l_service_create_response_response.rb +++ b/lib/zitadel/client/models/s_a_m_l_service_create_response_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SAMLServiceCreateResponseResponse attr_accessor :details @@ -65,7 +65,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SAMLServiceCreateResponseResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SAMLServiceCreateResponseResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -73,7 +73,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SAMLServiceCreateResponseResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SAMLServiceCreateResponseResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -196,7 +196,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/s_a_m_l_service_details.rb b/lib/zitadel/client/models/s_a_m_l_service_details.rb similarity index 96% rename from lib/zitadel-client/models/s_a_m_l_service_details.rb rename to lib/zitadel/client/models/s_a_m_l_service_details.rb index c3cf9cf6..abc08358 100644 --- a/lib/zitadel-client/models/s_a_m_l_service_details.rb +++ b/lib/zitadel/client/models/s_a_m_l_service_details.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SAMLServiceDetails # on read: the sequence of the last event reduced by the projection on manipulation: the timestamp of the event(s) added by the manipulation attr_accessor :sequence @@ -66,7 +66,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SAMLServiceDetails` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SAMLServiceDetails` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -74,7 +74,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SAMLServiceDetails`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SAMLServiceDetails`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -197,7 +197,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/s_a_m_l_service_error_reason.rb b/lib/zitadel/client/models/s_a_m_l_service_error_reason.rb similarity index 93% rename from lib/zitadel-client/models/s_a_m_l_service_error_reason.rb rename to lib/zitadel/client/models/s_a_m_l_service_error_reason.rb index 31709c99..67d3c02e 100644 --- a/lib/zitadel-client/models/s_a_m_l_service_error_reason.rb +++ b/lib/zitadel/client/models/s_a_m_l_service_error_reason.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SAMLServiceErrorReason ERROR_REASON_UNSPECIFIED = "ERROR_REASON_UNSPECIFIED".freeze ERROR_REASON_VERSION_MISSMATCH = "ERROR_REASON_VERSION_MISSMATCH".freeze @@ -40,7 +40,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if SAMLServiceErrorReason.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::SAMLServiceErrorReason" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::SAMLServiceErrorReason" end end diff --git a/lib/zitadel-client/models/s_a_m_l_service_get_s_a_m_l_request_response.rb b/lib/zitadel/client/models/s_a_m_l_service_get_s_a_m_l_request_response.rb similarity index 95% rename from lib/zitadel-client/models/s_a_m_l_service_get_s_a_m_l_request_response.rb rename to lib/zitadel/client/models/s_a_m_l_service_get_s_a_m_l_request_response.rb index 1721477d..5e2d78d8 100644 --- a/lib/zitadel-client/models/s_a_m_l_service_get_s_a_m_l_request_response.rb +++ b/lib/zitadel/client/models/s_a_m_l_service_get_s_a_m_l_request_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SAMLServiceGetSAMLRequestResponse attr_accessor :saml_request @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SAMLServiceGetSAMLRequestResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SAMLServiceGetSAMLRequestResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SAMLServiceGetSAMLRequestResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SAMLServiceGetSAMLRequestResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/s_a_m_l_service_post_response.rb b/lib/zitadel/client/models/s_a_m_l_service_post_response.rb similarity index 95% rename from lib/zitadel-client/models/s_a_m_l_service_post_response.rb rename to lib/zitadel/client/models/s_a_m_l_service_post_response.rb index c72460e7..98881dd3 100644 --- a/lib/zitadel-client/models/s_a_m_l_service_post_response.rb +++ b/lib/zitadel/client/models/s_a_m_l_service_post_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SAMLServicePostResponse attr_accessor :relay_state @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SAMLServicePostResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SAMLServicePostResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SAMLServicePostResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SAMLServicePostResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -177,7 +177,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/s_a_m_l_service_protobuf_any.rb b/lib/zitadel/client/models/s_a_m_l_service_protobuf_any.rb similarity index 95% rename from lib/zitadel-client/models/s_a_m_l_service_protobuf_any.rb rename to lib/zitadel/client/models/s_a_m_l_service_protobuf_any.rb index 1b5dee36..7e8d2def 100644 --- a/lib/zitadel-client/models/s_a_m_l_service_protobuf_any.rb +++ b/lib/zitadel/client/models/s_a_m_l_service_protobuf_any.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SAMLServiceProtobufAny attr_accessor :type @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SAMLServiceProtobufAny` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SAMLServiceProtobufAny` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SAMLServiceProtobufAny`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SAMLServiceProtobufAny`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/s_a_m_l_service_rpc_status.rb b/lib/zitadel/client/models/s_a_m_l_service_rpc_status.rb similarity index 95% rename from lib/zitadel-client/models/s_a_m_l_service_rpc_status.rb rename to lib/zitadel/client/models/s_a_m_l_service_rpc_status.rb index 07f1924c..e1880b5a 100644 --- a/lib/zitadel-client/models/s_a_m_l_service_rpc_status.rb +++ b/lib/zitadel/client/models/s_a_m_l_service_rpc_status.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SAMLServiceRpcStatus attr_accessor :code @@ -60,7 +60,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SAMLServiceRpcStatus` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SAMLServiceRpcStatus` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -68,7 +68,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SAMLServiceRpcStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SAMLServiceRpcStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -188,7 +188,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/s_a_m_l_service_s_a_m_l_request.rb b/lib/zitadel/client/models/s_a_m_l_service_s_a_m_l_request.rb similarity index 96% rename from lib/zitadel-client/models/s_a_m_l_service_s_a_m_l_request.rb rename to lib/zitadel/client/models/s_a_m_l_service_s_a_m_l_request.rb index 85a14613..58482625 100644 --- a/lib/zitadel-client/models/s_a_m_l_service_s_a_m_l_request.rb +++ b/lib/zitadel/client/models/s_a_m_l_service_s_a_m_l_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SAMLServiceSAMLRequest # ID of the SAMLRequest attr_accessor :id @@ -78,7 +78,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SAMLServiceSAMLRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SAMLServiceSAMLRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -86,7 +86,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SAMLServiceSAMLRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SAMLServiceSAMLRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -219,7 +219,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/s_a_m_l_service_session.rb b/lib/zitadel/client/models/s_a_m_l_service_session.rb similarity index 96% rename from lib/zitadel-client/models/s_a_m_l_service_session.rb rename to lib/zitadel/client/models/s_a_m_l_service_session.rb index 9dfdf135..3f0d5004 100644 --- a/lib/zitadel-client/models/s_a_m_l_service_session.rb +++ b/lib/zitadel/client/models/s_a_m_l_service_session.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SAMLServiceSession # ID of the session, used to login the user. Connects the session to the SAML Request. attr_accessor :session_id @@ -58,7 +58,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SAMLServiceSession` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SAMLServiceSession` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -66,7 +66,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SAMLServiceSession`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SAMLServiceSession`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -235,7 +235,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_challenges.rb b/lib/zitadel/client/models/session_service_challenges.rb similarity index 95% rename from lib/zitadel-client/models/session_service_challenges.rb rename to lib/zitadel/client/models/session_service_challenges.rb index 2a93eba1..698085ff 100644 --- a/lib/zitadel-client/models/session_service_challenges.rb +++ b/lib/zitadel/client/models/session_service_challenges.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceChallenges attr_accessor :web_auth_n @@ -60,7 +60,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceChallenges` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceChallenges` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -68,7 +68,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceChallenges`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceChallenges`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -186,7 +186,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_challenges_web_auth_n.rb b/lib/zitadel/client/models/session_service_challenges_web_auth_n.rb similarity index 95% rename from lib/zitadel-client/models/session_service_challenges_web_auth_n.rb rename to lib/zitadel/client/models/session_service_challenges_web_auth_n.rb index 6768451d..993d463d 100644 --- a/lib/zitadel-client/models/session_service_challenges_web_auth_n.rb +++ b/lib/zitadel/client/models/session_service_challenges_web_auth_n.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceChallengesWebAuthN # Options for Assertion Generaration (dictionary PublicKeyCredentialRequestOptions). Generated helper methods transform the field to JSON, for use in a WebauthN client. See also: https://www.w3.org/TR/webauthn/#dictdef-publickeycredentialrequestoptions attr_accessor :public_key_credential_request_options @@ -53,7 +53,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceChallengesWebAuthN` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceChallengesWebAuthN` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -61,7 +61,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceChallengesWebAuthN`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceChallengesWebAuthN`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -169,7 +169,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_check_i_d_p_intent.rb b/lib/zitadel/client/models/session_service_check_i_d_p_intent.rb similarity index 96% rename from lib/zitadel-client/models/session_service_check_i_d_p_intent.rb rename to lib/zitadel/client/models/session_service_check_i_d_p_intent.rb index a817c4cd..a9cde4b0 100644 --- a/lib/zitadel-client/models/session_service_check_i_d_p_intent.rb +++ b/lib/zitadel/client/models/session_service_check_i_d_p_intent.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceCheckIDPIntent # ID of the idp intent, previously returned on the success response of the IDP callback attr_accessor :idp_intent_id @@ -58,7 +58,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceCheckIDPIntent` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceCheckIDPIntent` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -66,7 +66,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceCheckIDPIntent`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceCheckIDPIntent`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -235,7 +235,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_check_o_t_p.rb b/lib/zitadel/client/models/session_service_check_o_t_p.rb similarity index 95% rename from lib/zitadel-client/models/session_service_check_o_t_p.rb rename to lib/zitadel/client/models/session_service_check_o_t_p.rb index 97669b40..27e0cb01 100644 --- a/lib/zitadel-client/models/session_service_check_o_t_p.rb +++ b/lib/zitadel/client/models/session_service_check_o_t_p.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceCheckOTP attr_accessor :code @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceCheckOTP` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceCheckOTP` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceCheckOTP`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceCheckOTP`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -187,7 +187,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_check_password.rb b/lib/zitadel/client/models/session_service_check_password.rb similarity index 95% rename from lib/zitadel-client/models/session_service_check_password.rb rename to lib/zitadel/client/models/session_service_check_password.rb index f915c0a9..c815ab40 100644 --- a/lib/zitadel-client/models/session_service_check_password.rb +++ b/lib/zitadel/client/models/session_service_check_password.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceCheckPassword attr_accessor :password @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceCheckPassword` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceCheckPassword` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceCheckPassword`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceCheckPassword`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -196,7 +196,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_check_t_o_t_p.rb b/lib/zitadel/client/models/session_service_check_t_o_t_p.rb similarity index 95% rename from lib/zitadel-client/models/session_service_check_t_o_t_p.rb rename to lib/zitadel/client/models/session_service_check_t_o_t_p.rb index fe808363..aef73e2d 100644 --- a/lib/zitadel-client/models/session_service_check_t_o_t_p.rb +++ b/lib/zitadel/client/models/session_service_check_t_o_t_p.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceCheckTOTP attr_accessor :code @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceCheckTOTP` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceCheckTOTP` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceCheckTOTP`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceCheckTOTP`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -196,7 +196,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_check_user.rb b/lib/zitadel/client/models/session_service_check_user.rb similarity index 96% rename from lib/zitadel-client/models/session_service_check_user.rb rename to lib/zitadel/client/models/session_service_check_user.rb index 90d117c9..9f275195 100644 --- a/lib/zitadel-client/models/session_service_check_user.rb +++ b/lib/zitadel/client/models/session_service_check_user.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceCheckUser attr_accessor :user_id @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceCheckUser` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceCheckUser` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceCheckUser`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceCheckUser`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -233,7 +233,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_check_web_auth_n.rb b/lib/zitadel/client/models/session_service_check_web_auth_n.rb similarity index 95% rename from lib/zitadel-client/models/session_service_check_web_auth_n.rb rename to lib/zitadel/client/models/session_service_check_web_auth_n.rb index 6fdb20c5..0a786577 100644 --- a/lib/zitadel-client/models/session_service_check_web_auth_n.rb +++ b/lib/zitadel/client/models/session_service_check_web_auth_n.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceCheckWebAuthN # JSON representation of public key credential issued by the webAuthN client attr_accessor :credential_assertion_data @@ -53,7 +53,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceCheckWebAuthN` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceCheckWebAuthN` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -61,7 +61,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceCheckWebAuthN`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceCheckWebAuthN`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -186,7 +186,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_checks.rb b/lib/zitadel/client/models/session_service_checks.rb similarity index 96% rename from lib/zitadel-client/models/session_service_checks.rb rename to lib/zitadel/client/models/session_service_checks.rb index 40528ff7..ad5c6577 100644 --- a/lib/zitadel-client/models/session_service_checks.rb +++ b/lib/zitadel/client/models/session_service_checks.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceChecks attr_accessor :user @@ -76,7 +76,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceChecks` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceChecks` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -84,7 +84,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceChecks`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceChecks`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -222,7 +222,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_create_session_request.rb b/lib/zitadel/client/models/session_service_create_session_request.rb similarity index 95% rename from lib/zitadel-client/models/session_service_create_session_request.rb rename to lib/zitadel/client/models/session_service_create_session_request.rb index 7f0cabf7..caa4d95e 100644 --- a/lib/zitadel-client/models/session_service_create_session_request.rb +++ b/lib/zitadel/client/models/session_service_create_session_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceCreateSessionRequest attr_accessor :checks @@ -70,7 +70,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceCreateSessionRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceCreateSessionRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -78,7 +78,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceCreateSessionRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceCreateSessionRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -208,7 +208,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_create_session_response.rb b/lib/zitadel/client/models/session_service_create_session_response.rb similarity index 95% rename from lib/zitadel-client/models/session_service_create_session_response.rb rename to lib/zitadel/client/models/session_service_create_session_response.rb index a510d481..08b5cdc3 100644 --- a/lib/zitadel-client/models/session_service_create_session_response.rb +++ b/lib/zitadel/client/models/session_service_create_session_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceCreateSessionResponse attr_accessor :details @@ -66,7 +66,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceCreateSessionResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceCreateSessionResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -74,7 +74,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceCreateSessionResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceCreateSessionResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -197,7 +197,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_creation_date_query.rb b/lib/zitadel/client/models/session_service_creation_date_query.rb similarity index 95% rename from lib/zitadel-client/models/session_service_creation_date_query.rb rename to lib/zitadel/client/models/session_service_creation_date_query.rb index 169a695c..d8a83f13 100644 --- a/lib/zitadel-client/models/session_service_creation_date_query.rb +++ b/lib/zitadel/client/models/session_service_creation_date_query.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceCreationDateQuery attr_accessor :creation_date @@ -78,7 +78,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceCreationDateQuery` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceCreationDateQuery` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -86,7 +86,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceCreationDateQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceCreationDateQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -201,7 +201,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_creator_query.rb b/lib/zitadel/client/models/session_service_creator_query.rb similarity index 95% rename from lib/zitadel-client/models/session_service_creator_query.rb rename to lib/zitadel/client/models/session_service_creator_query.rb index d137d1ea..51185823 100644 --- a/lib/zitadel-client/models/session_service_creator_query.rb +++ b/lib/zitadel/client/models/session_service_creator_query.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceCreatorQuery # ID of the user who created the session. If empty, the calling user's ID is used. attr_accessor :id @@ -53,7 +53,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceCreatorQuery` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceCreatorQuery` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -61,7 +61,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceCreatorQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceCreatorQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -188,7 +188,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_delete_session_request.rb b/lib/zitadel/client/models/session_service_delete_session_request.rb similarity index 95% rename from lib/zitadel-client/models/session_service_delete_session_request.rb rename to lib/zitadel/client/models/session_service_delete_session_request.rb index df210061..7bb5d5d7 100644 --- a/lib/zitadel-client/models/session_service_delete_session_request.rb +++ b/lib/zitadel/client/models/session_service_delete_session_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceDeleteSessionRequest # \"The current token of the session, previously returned on the create / update request. The token is required unless the authenticated user terminates the own session or is granted the `session.delete` permission.\" attr_accessor :session_token @@ -53,7 +53,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceDeleteSessionRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceDeleteSessionRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -61,7 +61,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceDeleteSessionRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceDeleteSessionRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -169,7 +169,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_delete_session_response.rb b/lib/zitadel/client/models/session_service_delete_session_response.rb similarity index 95% rename from lib/zitadel-client/models/session_service_delete_session_response.rb rename to lib/zitadel/client/models/session_service_delete_session_response.rb index 6ae16253..3a73d74a 100644 --- a/lib/zitadel-client/models/session_service_delete_session_response.rb +++ b/lib/zitadel/client/models/session_service_delete_session_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceDeleteSessionResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceDeleteSessionResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceDeleteSessionResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceDeleteSessionResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceDeleteSessionResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_details.rb b/lib/zitadel/client/models/session_service_details.rb similarity index 96% rename from lib/zitadel-client/models/session_service_details.rb rename to lib/zitadel/client/models/session_service_details.rb index b8a14eb6..bdc7f55b 100644 --- a/lib/zitadel-client/models/session_service_details.rb +++ b/lib/zitadel/client/models/session_service_details.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceDetails # on read: the sequence of the last event reduced by the projection on manipulation: the timestamp of the event(s) added by the manipulation attr_accessor :sequence @@ -66,7 +66,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceDetails` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceDetails` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -74,7 +74,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceDetails`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceDetails`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -197,7 +197,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_factors.rb b/lib/zitadel/client/models/session_service_factors.rb similarity index 96% rename from lib/zitadel-client/models/session_service_factors.rb rename to lib/zitadel/client/models/session_service_factors.rb index 4e94f5b3..41c73301 100644 --- a/lib/zitadel-client/models/session_service_factors.rb +++ b/lib/zitadel/client/models/session_service_factors.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceFactors attr_accessor :user @@ -76,7 +76,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceFactors` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceFactors` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -84,7 +84,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceFactors`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceFactors`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -222,7 +222,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_get_session_response.rb b/lib/zitadel/client/models/session_service_get_session_response.rb similarity index 95% rename from lib/zitadel-client/models/session_service_get_session_response.rb rename to lib/zitadel/client/models/session_service_get_session_response.rb index ee9cd522..697656d8 100644 --- a/lib/zitadel-client/models/session_service_get_session_response.rb +++ b/lib/zitadel/client/models/session_service_get_session_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceGetSessionResponse attr_accessor :session @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceGetSessionResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceGetSessionResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceGetSessionResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceGetSessionResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_i_ds_query.rb b/lib/zitadel/client/models/session_service_i_ds_query.rb similarity index 95% rename from lib/zitadel-client/models/session_service_i_ds_query.rb rename to lib/zitadel/client/models/session_service_i_ds_query.rb index bfb95eb3..13deb1d9 100644 --- a/lib/zitadel-client/models/session_service_i_ds_query.rb +++ b/lib/zitadel/client/models/session_service_i_ds_query.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceIDsQuery attr_accessor :ids @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceIDsQuery` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceIDsQuery` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceIDsQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceIDsQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -170,7 +170,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_intent_factor.rb b/lib/zitadel/client/models/session_service_intent_factor.rb similarity index 95% rename from lib/zitadel-client/models/session_service_intent_factor.rb rename to lib/zitadel/client/models/session_service_intent_factor.rb index 3351ac06..2e7c9a97 100644 --- a/lib/zitadel-client/models/session_service_intent_factor.rb +++ b/lib/zitadel/client/models/session_service_intent_factor.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceIntentFactor # \"time when an intent was last checked\" attr_accessor :verified_at @@ -53,7 +53,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceIntentFactor` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceIntentFactor` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -61,7 +61,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceIntentFactor`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceIntentFactor`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -169,7 +169,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_list_details.rb b/lib/zitadel/client/models/session_service_list_details.rb similarity index 95% rename from lib/zitadel-client/models/session_service_list_details.rb rename to lib/zitadel/client/models/session_service_list_details.rb index 39014603..2ba8edb3 100644 --- a/lib/zitadel-client/models/session_service_list_details.rb +++ b/lib/zitadel/client/models/session_service_list_details.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceListDetails attr_accessor :total_result @@ -61,7 +61,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceListDetails` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceListDetails` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -69,7 +69,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceListDetails`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceListDetails`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -187,7 +187,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_list_query.rb b/lib/zitadel/client/models/session_service_list_query.rb similarity index 95% rename from lib/zitadel-client/models/session_service_list_query.rb rename to lib/zitadel/client/models/session_service_list_query.rb index 8e6a085d..474220b8 100644 --- a/lib/zitadel-client/models/session_service_list_query.rb +++ b/lib/zitadel/client/models/session_service_list_query.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models # Object unspecific list filters like offset, limit and asc/desc. class SessionServiceListQuery attr_accessor :offset @@ -63,7 +63,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceListQuery` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceListQuery` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -71,7 +71,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceListQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceListQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -189,7 +189,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_list_sessions_request.rb b/lib/zitadel/client/models/session_service_list_sessions_request.rb similarity index 95% rename from lib/zitadel-client/models/session_service_list_sessions_request.rb rename to lib/zitadel/client/models/session_service_list_sessions_request.rb index 59805f4e..5ae30ae0 100644 --- a/lib/zitadel-client/models/session_service_list_sessions_request.rb +++ b/lib/zitadel/client/models/session_service_list_sessions_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceListSessionsRequest attr_accessor :query @@ -82,7 +82,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceListSessionsRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceListSessionsRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -90,7 +90,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceListSessionsRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceListSessionsRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -212,7 +212,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_list_sessions_response.rb b/lib/zitadel/client/models/session_service_list_sessions_response.rb similarity index 95% rename from lib/zitadel-client/models/session_service_list_sessions_response.rb rename to lib/zitadel/client/models/session_service_list_sessions_response.rb index 87498db2..7c7843b6 100644 --- a/lib/zitadel-client/models/session_service_list_sessions_response.rb +++ b/lib/zitadel/client/models/session_service_list_sessions_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceListSessionsResponse attr_accessor :details @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceListSessionsResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceListSessionsResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceListSessionsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceListSessionsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -179,7 +179,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_o_t_p_email_send_code.rb b/lib/zitadel/client/models/session_service_o_t_p_email_send_code.rb similarity index 96% rename from lib/zitadel-client/models/session_service_o_t_p_email_send_code.rb rename to lib/zitadel/client/models/session_service_o_t_p_email_send_code.rb index 0f42cb12..5d961491 100644 --- a/lib/zitadel-client/models/session_service_o_t_p_email_send_code.rb +++ b/lib/zitadel/client/models/session_service_o_t_p_email_send_code.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceOTPEmailSendCode # Optionally set a url_template, which will be used in the mail sent by ZITADEL to guide the user to your verification page. If no template is set, the default ZITADEL url will be used. The following placeholders can be used: Code, UserID, LoginName, DisplayName, PreferredLanguage, SessionID attr_accessor :url_template @@ -53,7 +53,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceOTPEmailSendCode` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceOTPEmailSendCode` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -61,7 +61,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceOTPEmailSendCode`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceOTPEmailSendCode`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -197,7 +197,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_o_t_p_factor.rb b/lib/zitadel/client/models/session_service_o_t_p_factor.rb similarity index 95% rename from lib/zitadel-client/models/session_service_o_t_p_factor.rb rename to lib/zitadel/client/models/session_service_o_t_p_factor.rb index 96e2ff15..4ca3a445 100644 --- a/lib/zitadel-client/models/session_service_o_t_p_factor.rb +++ b/lib/zitadel/client/models/session_service_o_t_p_factor.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceOTPFactor # \"time when the One-Time Password was last checked\" attr_accessor :verified_at @@ -53,7 +53,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceOTPFactor` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceOTPFactor` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -61,7 +61,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceOTPFactor`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceOTPFactor`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -169,7 +169,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_password_factor.rb b/lib/zitadel/client/models/session_service_password_factor.rb similarity index 95% rename from lib/zitadel-client/models/session_service_password_factor.rb rename to lib/zitadel/client/models/session_service_password_factor.rb index c73ce2a5..019af5d6 100644 --- a/lib/zitadel-client/models/session_service_password_factor.rb +++ b/lib/zitadel/client/models/session_service_password_factor.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServicePasswordFactor # \"time when the password was last checked\" attr_accessor :verified_at @@ -53,7 +53,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServicePasswordFactor` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServicePasswordFactor` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -61,7 +61,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServicePasswordFactor`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServicePasswordFactor`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -169,7 +169,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_protobuf_any.rb b/lib/zitadel/client/models/session_service_protobuf_any.rb similarity index 95% rename from lib/zitadel-client/models/session_service_protobuf_any.rb rename to lib/zitadel/client/models/session_service_protobuf_any.rb index 80bb22b5..0d1a4038 100644 --- a/lib/zitadel-client/models/session_service_protobuf_any.rb +++ b/lib/zitadel/client/models/session_service_protobuf_any.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceProtobufAny attr_accessor :type @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceProtobufAny` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceProtobufAny` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceProtobufAny`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceProtobufAny`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_request_challenges.rb b/lib/zitadel/client/models/session_service_request_challenges.rb similarity index 95% rename from lib/zitadel-client/models/session_service_request_challenges.rb rename to lib/zitadel/client/models/session_service_request_challenges.rb index 2b49be0f..a4b73df2 100644 --- a/lib/zitadel-client/models/session_service_request_challenges.rb +++ b/lib/zitadel/client/models/session_service_request_challenges.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceRequestChallenges attr_accessor :web_auth_n @@ -60,7 +60,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceRequestChallenges` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceRequestChallenges` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -68,7 +68,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceRequestChallenges`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceRequestChallenges`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -186,7 +186,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_request_challenges_o_t_p_email.rb b/lib/zitadel/client/models/session_service_request_challenges_o_t_p_email.rb similarity index 95% rename from lib/zitadel-client/models/session_service_request_challenges_o_t_p_email.rb rename to lib/zitadel/client/models/session_service_request_challenges_o_t_p_email.rb index 85e02af6..4fddc4e2 100644 --- a/lib/zitadel-client/models/session_service_request_challenges_o_t_p_email.rb +++ b/lib/zitadel/client/models/session_service_request_challenges_o_t_p_email.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceRequestChallengesOTPEmail attr_accessor :send_code @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceRequestChallengesOTPEmail` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceRequestChallengesOTPEmail` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceRequestChallengesOTPEmail`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceRequestChallengesOTPEmail`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -177,7 +177,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_request_challenges_o_t_p_s_m_s.rb b/lib/zitadel/client/models/session_service_request_challenges_o_t_p_s_m_s.rb similarity index 95% rename from lib/zitadel-client/models/session_service_request_challenges_o_t_p_s_m_s.rb rename to lib/zitadel/client/models/session_service_request_challenges_o_t_p_s_m_s.rb index dd5ba0b8..3ff6f216 100644 --- a/lib/zitadel-client/models/session_service_request_challenges_o_t_p_s_m_s.rb +++ b/lib/zitadel/client/models/session_service_request_challenges_o_t_p_s_m_s.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceRequestChallengesOTPSMS attr_accessor :return_code @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceRequestChallengesOTPSMS` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceRequestChallengesOTPSMS` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceRequestChallengesOTPSMS`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceRequestChallengesOTPSMS`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_request_challenges_web_auth_n.rb b/lib/zitadel/client/models/session_service_request_challenges_web_auth_n.rb similarity index 96% rename from lib/zitadel-client/models/session_service_request_challenges_web_auth_n.rb rename to lib/zitadel/client/models/session_service_request_challenges_web_auth_n.rb index 44dc6bdd..33c7350f 100644 --- a/lib/zitadel-client/models/session_service_request_challenges_web_auth_n.rb +++ b/lib/zitadel/client/models/session_service_request_challenges_web_auth_n.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceRequestChallengesWebAuthN # \"Domain on which the session was created. Will be used in the WebAuthN challenge.\" attr_accessor :domain @@ -79,7 +79,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceRequestChallengesWebAuthN` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceRequestChallengesWebAuthN` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -87,7 +87,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceRequestChallengesWebAuthN`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceRequestChallengesWebAuthN`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -234,7 +234,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_rpc_status.rb b/lib/zitadel/client/models/session_service_rpc_status.rb similarity index 95% rename from lib/zitadel-client/models/session_service_rpc_status.rb rename to lib/zitadel/client/models/session_service_rpc_status.rb index 02cecb4f..39bc2f5c 100644 --- a/lib/zitadel-client/models/session_service_rpc_status.rb +++ b/lib/zitadel/client/models/session_service_rpc_status.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceRpcStatus attr_accessor :code @@ -60,7 +60,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceRpcStatus` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceRpcStatus` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -68,7 +68,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceRpcStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceRpcStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -188,7 +188,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_search_query.rb b/lib/zitadel/client/models/session_service_search_query.rb similarity index 96% rename from lib/zitadel-client/models/session_service_search_query.rb rename to lib/zitadel/client/models/session_service_search_query.rb index 45f776a7..4b92a5ea 100644 --- a/lib/zitadel-client/models/session_service_search_query.rb +++ b/lib/zitadel/client/models/session_service_search_query.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceSearchQuery attr_accessor :ids_query @@ -68,7 +68,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceSearchQuery` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceSearchQuery` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -76,7 +76,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceSearchQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceSearchQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -204,7 +204,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_session.rb b/lib/zitadel/client/models/session_service_session.rb similarity index 96% rename from lib/zitadel-client/models/session_service_session.rb rename to lib/zitadel/client/models/session_service_session.rb index ce272762..4757ec4c 100644 --- a/lib/zitadel-client/models/session_service_session.rb +++ b/lib/zitadel/client/models/session_service_session.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceSession # \"id of the session\" attr_accessor :id @@ -86,7 +86,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceSession` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceSession` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -94,7 +94,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceSession`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceSession`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -239,7 +239,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_session_field_name.rb b/lib/zitadel/client/models/session_service_session_field_name.rb similarity index 89% rename from lib/zitadel-client/models/session_service_session_field_name.rb rename to lib/zitadel/client/models/session_service_session_field_name.rb index 54267f2b..a3a20fe2 100644 --- a/lib/zitadel-client/models/session_service_session_field_name.rb +++ b/lib/zitadel/client/models/session_service_session_field_name.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceSessionFieldName SESSION_FIELD_NAME_UNSPECIFIED = "SESSION_FIELD_NAME_UNSPECIFIED".freeze SESSION_FIELD_NAME_CREATION_DATE = "SESSION_FIELD_NAME_CREATION_DATE".freeze @@ -34,7 +34,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if SessionServiceSessionFieldName.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::SessionServiceSessionFieldName" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::SessionServiceSessionFieldName" end end diff --git a/lib/zitadel-client/models/session_service_set_session_request.rb b/lib/zitadel/client/models/session_service_set_session_request.rb similarity index 96% rename from lib/zitadel-client/models/session_service_set_session_request.rb rename to lib/zitadel/client/models/session_service_set_session_request.rb index 58a7b2d3..983a19d3 100644 --- a/lib/zitadel-client/models/session_service_set_session_request.rb +++ b/lib/zitadel/client/models/session_service_set_session_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceSetSessionRequest # \"DEPRECATED: this field is ignored.\" attr_accessor :session_token @@ -71,7 +71,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceSetSessionRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceSetSessionRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -79,7 +79,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceSetSessionRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceSetSessionRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -237,7 +237,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_set_session_response.rb b/lib/zitadel/client/models/session_service_set_session_response.rb similarity index 95% rename from lib/zitadel-client/models/session_service_set_session_response.rb rename to lib/zitadel/client/models/session_service_set_session_response.rb index 24ce0c0c..9582fd11 100644 --- a/lib/zitadel-client/models/session_service_set_session_response.rb +++ b/lib/zitadel/client/models/session_service_set_session_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceSetSessionResponse attr_accessor :details @@ -61,7 +61,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceSetSessionResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceSetSessionResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -69,7 +69,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceSetSessionResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceSetSessionResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -187,7 +187,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_t_o_t_p_factor.rb b/lib/zitadel/client/models/session_service_t_o_t_p_factor.rb similarity index 95% rename from lib/zitadel-client/models/session_service_t_o_t_p_factor.rb rename to lib/zitadel/client/models/session_service_t_o_t_p_factor.rb index 37de08cb..c5771e18 100644 --- a/lib/zitadel-client/models/session_service_t_o_t_p_factor.rb +++ b/lib/zitadel/client/models/session_service_t_o_t_p_factor.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceTOTPFactor # \"time when the Time-based One-Time Password was last checked\" attr_accessor :verified_at @@ -53,7 +53,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceTOTPFactor` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceTOTPFactor` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -61,7 +61,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceTOTPFactor`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceTOTPFactor`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -169,7 +169,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_timestamp_query_method.rb b/lib/zitadel/client/models/session_service_timestamp_query_method.rb similarity index 91% rename from lib/zitadel-client/models/session_service_timestamp_query_method.rb rename to lib/zitadel/client/models/session_service_timestamp_query_method.rb index d8a8981f..892460cc 100644 --- a/lib/zitadel-client/models/session_service_timestamp_query_method.rb +++ b/lib/zitadel/client/models/session_service_timestamp_query_method.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceTimestampQueryMethod TIMESTAMP_QUERY_METHOD_EQUALS = "TIMESTAMP_QUERY_METHOD_EQUALS".freeze TIMESTAMP_QUERY_METHOD_GREATER = "TIMESTAMP_QUERY_METHOD_GREATER".freeze @@ -37,7 +37,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if SessionServiceTimestampQueryMethod.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::SessionServiceTimestampQueryMethod" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::SessionServiceTimestampQueryMethod" end end diff --git a/lib/zitadel-client/models/session_service_user_agent.rb b/lib/zitadel/client/models/session_service_user_agent.rb similarity index 95% rename from lib/zitadel-client/models/session_service_user_agent.rb rename to lib/zitadel/client/models/session_service_user_agent.rb index 111bc3e6..6416fcfd 100644 --- a/lib/zitadel-client/models/session_service_user_agent.rb +++ b/lib/zitadel/client/models/session_service_user_agent.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceUserAgent attr_accessor :fingerprint_id @@ -64,7 +64,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceUserAgent` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceUserAgent` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -72,7 +72,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceUserAgent`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceUserAgent`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -197,7 +197,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_user_agent_header_values.rb b/lib/zitadel/client/models/session_service_user_agent_header_values.rb similarity index 95% rename from lib/zitadel-client/models/session_service_user_agent_header_values.rb rename to lib/zitadel/client/models/session_service_user_agent_header_values.rb index a816be10..8ff13cfb 100644 --- a/lib/zitadel-client/models/session_service_user_agent_header_values.rb +++ b/lib/zitadel/client/models/session_service_user_agent_header_values.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models # A header may have multiple values. In Go, headers are defined as map[string][]string, but protobuf doesn't allow this scheme. class SessionServiceUserAgentHeaderValues attr_accessor :values @@ -53,7 +53,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceUserAgentHeaderValues` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceUserAgentHeaderValues` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -61,7 +61,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceUserAgentHeaderValues`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceUserAgentHeaderValues`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -171,7 +171,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_user_agent_query.rb b/lib/zitadel/client/models/session_service_user_agent_query.rb similarity index 95% rename from lib/zitadel-client/models/session_service_user_agent_query.rb rename to lib/zitadel/client/models/session_service_user_agent_query.rb index 3e49c1c2..921105d0 100644 --- a/lib/zitadel-client/models/session_service_user_agent_query.rb +++ b/lib/zitadel/client/models/session_service_user_agent_query.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceUserAgentQuery # Finger print id of the user agent used for the session. Set an empty fingerprint_id to use the user agent from the call. If the user agent is not available from the current token, an error will be returned. attr_accessor :fingerprint_id @@ -53,7 +53,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceUserAgentQuery` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceUserAgentQuery` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -61,7 +61,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceUserAgentQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceUserAgentQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -188,7 +188,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_user_factor.rb b/lib/zitadel/client/models/session_service_user_factor.rb similarity index 96% rename from lib/zitadel-client/models/session_service_user_factor.rb rename to lib/zitadel/client/models/session_service_user_factor.rb index 0db4631c..5d97f938 100644 --- a/lib/zitadel-client/models/session_service_user_factor.rb +++ b/lib/zitadel/client/models/session_service_user_factor.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceUserFactor # \"time when the user was last checked\" attr_accessor :verified_at @@ -73,7 +73,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceUserFactor` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceUserFactor` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -81,7 +81,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceUserFactor`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceUserFactor`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -209,7 +209,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_user_i_d_query.rb b/lib/zitadel/client/models/session_service_user_i_d_query.rb similarity index 95% rename from lib/zitadel-client/models/session_service_user_i_d_query.rb rename to lib/zitadel/client/models/session_service_user_i_d_query.rb index 9261a479..bdcdad12 100644 --- a/lib/zitadel-client/models/session_service_user_i_d_query.rb +++ b/lib/zitadel/client/models/session_service_user_i_d_query.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceUserIDQuery attr_accessor :id @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceUserIDQuery` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceUserIDQuery` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceUserIDQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceUserIDQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/session_service_user_verification_requirement.rb b/lib/zitadel/client/models/session_service_user_verification_requirement.rb similarity index 91% rename from lib/zitadel-client/models/session_service_user_verification_requirement.rb rename to lib/zitadel/client/models/session_service_user_verification_requirement.rb index eb1ce23c..66fd0f67 100644 --- a/lib/zitadel-client/models/session_service_user_verification_requirement.rb +++ b/lib/zitadel/client/models/session_service_user_verification_requirement.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceUserVerificationRequirement USER_VERIFICATION_REQUIREMENT_UNSPECIFIED = "USER_VERIFICATION_REQUIREMENT_UNSPECIFIED".freeze USER_VERIFICATION_REQUIREMENT_REQUIRED = "USER_VERIFICATION_REQUIREMENT_REQUIRED".freeze @@ -36,7 +36,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if SessionServiceUserVerificationRequirement.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::SessionServiceUserVerificationRequirement" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::SessionServiceUserVerificationRequirement" end end diff --git a/lib/zitadel-client/models/session_service_web_auth_n_factor.rb b/lib/zitadel/client/models/session_service_web_auth_n_factor.rb similarity index 95% rename from lib/zitadel-client/models/session_service_web_auth_n_factor.rb rename to lib/zitadel/client/models/session_service_web_auth_n_factor.rb index 2ef17f61..f438365a 100644 --- a/lib/zitadel-client/models/session_service_web_auth_n_factor.rb +++ b/lib/zitadel/client/models/session_service_web_auth_n_factor.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SessionServiceWebAuthNFactor # \"time when the passkey challenge was last checked\" attr_accessor :verified_at @@ -57,7 +57,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SessionServiceWebAuthNFactor` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceWebAuthNFactor` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -65,7 +65,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SessionServiceWebAuthNFactor`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceWebAuthNFactor`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -178,7 +178,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/settings_service_auto_linking_option.rb b/lib/zitadel/client/models/settings_service_auto_linking_option.rb similarity index 90% rename from lib/zitadel-client/models/settings_service_auto_linking_option.rb rename to lib/zitadel/client/models/settings_service_auto_linking_option.rb index d65d9c89..6b389433 100644 --- a/lib/zitadel-client/models/settings_service_auto_linking_option.rb +++ b/lib/zitadel/client/models/settings_service_auto_linking_option.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServiceAutoLinkingOption AUTO_LINKING_OPTION_UNSPECIFIED = "AUTO_LINKING_OPTION_UNSPECIFIED".freeze AUTO_LINKING_OPTION_USERNAME = "AUTO_LINKING_OPTION_USERNAME".freeze @@ -35,7 +35,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if SettingsServiceAutoLinkingOption.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::SettingsServiceAutoLinkingOption" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::SettingsServiceAutoLinkingOption" end end diff --git a/lib/zitadel-client/models/settings_service_branding_settings.rb b/lib/zitadel/client/models/settings_service_branding_settings.rb similarity index 96% rename from lib/zitadel-client/models/settings_service_branding_settings.rb rename to lib/zitadel/client/models/settings_service_branding_settings.rb index 9d5ee980..b0016184 100644 --- a/lib/zitadel-client/models/settings_service_branding_settings.rb +++ b/lib/zitadel/client/models/settings_service_branding_settings.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServiceBrandingSettings attr_accessor :light_theme @@ -101,7 +101,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SettingsServiceBrandingSettings` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SettingsServiceBrandingSettings` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -109,7 +109,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SettingsServiceBrandingSettings`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SettingsServiceBrandingSettings`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -251,7 +251,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/settings_service_details.rb b/lib/zitadel/client/models/settings_service_details.rb similarity index 96% rename from lib/zitadel-client/models/settings_service_details.rb rename to lib/zitadel/client/models/settings_service_details.rb index 3fa2e258..cefe1357 100644 --- a/lib/zitadel-client/models/settings_service_details.rb +++ b/lib/zitadel/client/models/settings_service_details.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServiceDetails # on read: the sequence of the last event reduced by the projection on manipulation: the timestamp of the event(s) added by the manipulation attr_accessor :sequence @@ -66,7 +66,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SettingsServiceDetails` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SettingsServiceDetails` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -74,7 +74,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SettingsServiceDetails`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SettingsServiceDetails`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -197,7 +197,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/settings_service_domain_settings.rb b/lib/zitadel/client/models/settings_service_domain_settings.rb similarity index 96% rename from lib/zitadel-client/models/settings_service_domain_settings.rb rename to lib/zitadel/client/models/settings_service_domain_settings.rb index 53c65501..57999128 100644 --- a/lib/zitadel-client/models/settings_service_domain_settings.rb +++ b/lib/zitadel/client/models/settings_service_domain_settings.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServiceDomainSettings # the username has to end with the domain of its organization attr_accessor :login_name_includes_domain @@ -89,7 +89,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SettingsServiceDomainSettings` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SettingsServiceDomainSettings` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -97,7 +97,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SettingsServiceDomainSettings`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SettingsServiceDomainSettings`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -222,7 +222,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/settings_service_embedded_iframe_settings.rb b/lib/zitadel/client/models/settings_service_embedded_iframe_settings.rb similarity index 95% rename from lib/zitadel-client/models/settings_service_embedded_iframe_settings.rb rename to lib/zitadel/client/models/settings_service_embedded_iframe_settings.rb index 7853925f..033a345a 100644 --- a/lib/zitadel-client/models/settings_service_embedded_iframe_settings.rb +++ b/lib/zitadel/client/models/settings_service_embedded_iframe_settings.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServiceEmbeddedIframeSettings # states if iframe embedding is enabled or disabled attr_accessor :enabled @@ -58,7 +58,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SettingsServiceEmbeddedIframeSettings` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SettingsServiceEmbeddedIframeSettings` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -66,7 +66,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SettingsServiceEmbeddedIframeSettings`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SettingsServiceEmbeddedIframeSettings`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -181,7 +181,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/settings_service_get_active_identity_providers_response.rb b/lib/zitadel/client/models/settings_service_get_active_identity_providers_response.rb similarity index 95% rename from lib/zitadel-client/models/settings_service_get_active_identity_providers_response.rb rename to lib/zitadel/client/models/settings_service_get_active_identity_providers_response.rb index f7a29f1d..4f43fc90 100644 --- a/lib/zitadel-client/models/settings_service_get_active_identity_providers_response.rb +++ b/lib/zitadel/client/models/settings_service_get_active_identity_providers_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServiceGetActiveIdentityProvidersResponse attr_accessor :details @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SettingsServiceGetActiveIdentityProvidersResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SettingsServiceGetActiveIdentityProvidersResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SettingsServiceGetActiveIdentityProvidersResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SettingsServiceGetActiveIdentityProvidersResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -179,7 +179,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/settings_service_get_branding_settings_response.rb b/lib/zitadel/client/models/settings_service_get_branding_settings_response.rb similarity index 95% rename from lib/zitadel-client/models/settings_service_get_branding_settings_response.rb rename to lib/zitadel/client/models/settings_service_get_branding_settings_response.rb index ebcf1526..4c2a98e8 100644 --- a/lib/zitadel-client/models/settings_service_get_branding_settings_response.rb +++ b/lib/zitadel/client/models/settings_service_get_branding_settings_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServiceGetBrandingSettingsResponse attr_accessor :details @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SettingsServiceGetBrandingSettingsResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SettingsServiceGetBrandingSettingsResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SettingsServiceGetBrandingSettingsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SettingsServiceGetBrandingSettingsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -177,7 +177,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/settings_service_get_domain_settings_response.rb b/lib/zitadel/client/models/settings_service_get_domain_settings_response.rb similarity index 95% rename from lib/zitadel-client/models/settings_service_get_domain_settings_response.rb rename to lib/zitadel/client/models/settings_service_get_domain_settings_response.rb index c40784fe..2742b4cf 100644 --- a/lib/zitadel-client/models/settings_service_get_domain_settings_response.rb +++ b/lib/zitadel/client/models/settings_service_get_domain_settings_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServiceGetDomainSettingsResponse attr_accessor :details @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SettingsServiceGetDomainSettingsResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SettingsServiceGetDomainSettingsResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SettingsServiceGetDomainSettingsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SettingsServiceGetDomainSettingsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -177,7 +177,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/settings_service_get_general_settings_response.rb b/lib/zitadel/client/models/settings_service_get_general_settings_response.rb similarity index 95% rename from lib/zitadel-client/models/settings_service_get_general_settings_response.rb rename to lib/zitadel/client/models/settings_service_get_general_settings_response.rb index a7fbdb83..24d1fec1 100644 --- a/lib/zitadel-client/models/settings_service_get_general_settings_response.rb +++ b/lib/zitadel/client/models/settings_service_get_general_settings_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServiceGetGeneralSettingsResponse # default organization for the current context attr_accessor :default_org_id @@ -62,7 +62,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SettingsServiceGetGeneralSettingsResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SettingsServiceGetGeneralSettingsResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -70,7 +70,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SettingsServiceGetGeneralSettingsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SettingsServiceGetGeneralSettingsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -190,7 +190,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/settings_service_get_legal_and_support_settings_response.rb b/lib/zitadel/client/models/settings_service_get_legal_and_support_settings_response.rb similarity index 94% rename from lib/zitadel-client/models/settings_service_get_legal_and_support_settings_response.rb rename to lib/zitadel/client/models/settings_service_get_legal_and_support_settings_response.rb index 8231bde8..f4613363 100644 --- a/lib/zitadel-client/models/settings_service_get_legal_and_support_settings_response.rb +++ b/lib/zitadel/client/models/settings_service_get_legal_and_support_settings_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServiceGetLegalAndSupportSettingsResponse attr_accessor :details @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SettingsServiceGetLegalAndSupportSettingsResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SettingsServiceGetLegalAndSupportSettingsResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SettingsServiceGetLegalAndSupportSettingsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SettingsServiceGetLegalAndSupportSettingsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -177,7 +177,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/settings_service_get_lockout_settings_response.rb b/lib/zitadel/client/models/settings_service_get_lockout_settings_response.rb similarity index 95% rename from lib/zitadel-client/models/settings_service_get_lockout_settings_response.rb rename to lib/zitadel/client/models/settings_service_get_lockout_settings_response.rb index 042ba75d..dd32c06b 100644 --- a/lib/zitadel-client/models/settings_service_get_lockout_settings_response.rb +++ b/lib/zitadel/client/models/settings_service_get_lockout_settings_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServiceGetLockoutSettingsResponse attr_accessor :details @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SettingsServiceGetLockoutSettingsResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SettingsServiceGetLockoutSettingsResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SettingsServiceGetLockoutSettingsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SettingsServiceGetLockoutSettingsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -177,7 +177,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/settings_service_get_login_settings_response.rb b/lib/zitadel/client/models/settings_service_get_login_settings_response.rb similarity index 95% rename from lib/zitadel-client/models/settings_service_get_login_settings_response.rb rename to lib/zitadel/client/models/settings_service_get_login_settings_response.rb index c90b70f9..68373ce9 100644 --- a/lib/zitadel-client/models/settings_service_get_login_settings_response.rb +++ b/lib/zitadel/client/models/settings_service_get_login_settings_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServiceGetLoginSettingsResponse attr_accessor :details @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SettingsServiceGetLoginSettingsResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SettingsServiceGetLoginSettingsResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SettingsServiceGetLoginSettingsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SettingsServiceGetLoginSettingsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -177,7 +177,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/settings_service_get_password_complexity_settings_response.rb b/lib/zitadel/client/models/settings_service_get_password_complexity_settings_response.rb similarity index 94% rename from lib/zitadel-client/models/settings_service_get_password_complexity_settings_response.rb rename to lib/zitadel/client/models/settings_service_get_password_complexity_settings_response.rb index e3edd92d..91d4cba0 100644 --- a/lib/zitadel-client/models/settings_service_get_password_complexity_settings_response.rb +++ b/lib/zitadel/client/models/settings_service_get_password_complexity_settings_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServiceGetPasswordComplexitySettingsResponse attr_accessor :details @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SettingsServiceGetPasswordComplexitySettingsResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SettingsServiceGetPasswordComplexitySettingsResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SettingsServiceGetPasswordComplexitySettingsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SettingsServiceGetPasswordComplexitySettingsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -177,7 +177,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/settings_service_get_password_expiry_settings_response.rb b/lib/zitadel/client/models/settings_service_get_password_expiry_settings_response.rb similarity index 94% rename from lib/zitadel-client/models/settings_service_get_password_expiry_settings_response.rb rename to lib/zitadel/client/models/settings_service_get_password_expiry_settings_response.rb index cb8a5ec2..0f8fe3b7 100644 --- a/lib/zitadel-client/models/settings_service_get_password_expiry_settings_response.rb +++ b/lib/zitadel/client/models/settings_service_get_password_expiry_settings_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServiceGetPasswordExpirySettingsResponse attr_accessor :details @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SettingsServiceGetPasswordExpirySettingsResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SettingsServiceGetPasswordExpirySettingsResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SettingsServiceGetPasswordExpirySettingsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SettingsServiceGetPasswordExpirySettingsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -177,7 +177,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/settings_service_get_security_settings_response.rb b/lib/zitadel/client/models/settings_service_get_security_settings_response.rb similarity index 95% rename from lib/zitadel-client/models/settings_service_get_security_settings_response.rb rename to lib/zitadel/client/models/settings_service_get_security_settings_response.rb index 4bc75b39..94198f21 100644 --- a/lib/zitadel-client/models/settings_service_get_security_settings_response.rb +++ b/lib/zitadel/client/models/settings_service_get_security_settings_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServiceGetSecuritySettingsResponse attr_accessor :details @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SettingsServiceGetSecuritySettingsResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SettingsServiceGetSecuritySettingsResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SettingsServiceGetSecuritySettingsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SettingsServiceGetSecuritySettingsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -177,7 +177,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/settings_service_identity_provider.rb b/lib/zitadel/client/models/settings_service_identity_provider.rb similarity index 95% rename from lib/zitadel-client/models/settings_service_identity_provider.rb rename to lib/zitadel/client/models/settings_service_identity_provider.rb index 8c2c45ae..3a5dfaa0 100644 --- a/lib/zitadel-client/models/settings_service_identity_provider.rb +++ b/lib/zitadel/client/models/settings_service_identity_provider.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServiceIdentityProvider attr_accessor :id @@ -86,7 +86,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SettingsServiceIdentityProvider` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SettingsServiceIdentityProvider` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -94,7 +94,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SettingsServiceIdentityProvider`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SettingsServiceIdentityProvider`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -219,7 +219,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/settings_service_identity_provider_type.rb b/lib/zitadel/client/models/settings_service_identity_provider_type.rb similarity index 94% rename from lib/zitadel-client/models/settings_service_identity_provider_type.rb rename to lib/zitadel/client/models/settings_service_identity_provider_type.rb index 9d1f4167..29de3c86 100644 --- a/lib/zitadel-client/models/settings_service_identity_provider_type.rb +++ b/lib/zitadel/client/models/settings_service_identity_provider_type.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServiceIdentityProviderType IDENTITY_PROVIDER_TYPE_UNSPECIFIED = "IDENTITY_PROVIDER_TYPE_UNSPECIFIED".freeze IDENTITY_PROVIDER_TYPE_OIDC = "IDENTITY_PROVIDER_TYPE_OIDC".freeze @@ -45,7 +45,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if SettingsServiceIdentityProviderType.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::SettingsServiceIdentityProviderType" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::SettingsServiceIdentityProviderType" end end diff --git a/lib/zitadel-client/models/settings_service_legal_and_support_settings.rb b/lib/zitadel/client/models/settings_service_legal_and_support_settings.rb similarity index 96% rename from lib/zitadel-client/models/settings_service_legal_and_support_settings.rb rename to lib/zitadel/client/models/settings_service_legal_and_support_settings.rb index 6475377b..35a27227 100644 --- a/lib/zitadel-client/models/settings_service_legal_and_support_settings.rb +++ b/lib/zitadel/client/models/settings_service_legal_and_support_settings.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServiceLegalAndSupportSettings attr_accessor :tos_link @@ -106,7 +106,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SettingsServiceLegalAndSupportSettings` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SettingsServiceLegalAndSupportSettings` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -114,7 +114,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SettingsServiceLegalAndSupportSettings`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SettingsServiceLegalAndSupportSettings`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -259,7 +259,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/settings_service_list_details.rb b/lib/zitadel/client/models/settings_service_list_details.rb similarity index 95% rename from lib/zitadel-client/models/settings_service_list_details.rb rename to lib/zitadel/client/models/settings_service_list_details.rb index 2caafc3a..9ce658f1 100644 --- a/lib/zitadel-client/models/settings_service_list_details.rb +++ b/lib/zitadel/client/models/settings_service_list_details.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServiceListDetails attr_accessor :total_result @@ -61,7 +61,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SettingsServiceListDetails` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SettingsServiceListDetails` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -69,7 +69,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SettingsServiceListDetails`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SettingsServiceListDetails`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -187,7 +187,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/settings_service_lockout_settings.rb b/lib/zitadel/client/models/settings_service_lockout_settings.rb similarity index 96% rename from lib/zitadel-client/models/settings_service_lockout_settings.rb rename to lib/zitadel/client/models/settings_service_lockout_settings.rb index 63f5eeed..e9962bb2 100644 --- a/lib/zitadel-client/models/settings_service_lockout_settings.rb +++ b/lib/zitadel/client/models/settings_service_lockout_settings.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServiceLockoutSettings # Maximum password check attempts before the account gets locked. Attempts are reset as soon as the password is entered correctly or the password is reset. If set to 0 the account will never be locked. attr_accessor :max_password_attempts @@ -84,7 +84,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SettingsServiceLockoutSettings` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SettingsServiceLockoutSettings` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -92,7 +92,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SettingsServiceLockoutSettings`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SettingsServiceLockoutSettings`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -212,7 +212,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/settings_service_login_settings.rb b/lib/zitadel/client/models/settings_service_login_settings.rb similarity index 97% rename from lib/zitadel-client/models/settings_service_login_settings.rb rename to lib/zitadel/client/models/settings_service_login_settings.rb index 56000344..088100f2 100644 --- a/lib/zitadel-client/models/settings_service_login_settings.rb +++ b/lib/zitadel/client/models/settings_service_login_settings.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServiceLoginSettings # defines if a user is allowed to log in with username and password attr_accessor :allow_username_password @@ -166,7 +166,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SettingsServiceLoginSettings` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SettingsServiceLoginSettings` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -174,7 +174,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SettingsServiceLoginSettings`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SettingsServiceLoginSettings`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -385,7 +385,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/settings_service_multi_factor_type.rb b/lib/zitadel/client/models/settings_service_multi_factor_type.rb similarity index 89% rename from lib/zitadel-client/models/settings_service_multi_factor_type.rb rename to lib/zitadel/client/models/settings_service_multi_factor_type.rb index 43270300..5552e671 100644 --- a/lib/zitadel-client/models/settings_service_multi_factor_type.rb +++ b/lib/zitadel/client/models/settings_service_multi_factor_type.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServiceMultiFactorType MULTI_FACTOR_TYPE_UNSPECIFIED = "MULTI_FACTOR_TYPE_UNSPECIFIED".freeze MULTI_FACTOR_TYPE_U2_F_WITH_VERIFICATION = "MULTI_FACTOR_TYPE_U2F_WITH_VERIFICATION".freeze @@ -34,7 +34,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if SettingsServiceMultiFactorType.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::SettingsServiceMultiFactorType" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::SettingsServiceMultiFactorType" end end diff --git a/lib/zitadel-client/models/settings_service_options.rb b/lib/zitadel/client/models/settings_service_options.rb similarity index 96% rename from lib/zitadel-client/models/settings_service_options.rb rename to lib/zitadel/client/models/settings_service_options.rb index ab8f3f91..7d665fb7 100644 --- a/lib/zitadel-client/models/settings_service_options.rb +++ b/lib/zitadel/client/models/settings_service_options.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServiceOptions # Enable if users should be able to link an existing ZITADEL user with an external account. attr_accessor :is_linking_allowed @@ -94,7 +94,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SettingsServiceOptions` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SettingsServiceOptions` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -102,7 +102,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SettingsServiceOptions`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SettingsServiceOptions`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -232,7 +232,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/settings_service_passkeys_type.rb b/lib/zitadel/client/models/settings_service_passkeys_type.rb similarity index 89% rename from lib/zitadel-client/models/settings_service_passkeys_type.rb rename to lib/zitadel/client/models/settings_service_passkeys_type.rb index 63aaaf77..ae6fbdf8 100644 --- a/lib/zitadel-client/models/settings_service_passkeys_type.rb +++ b/lib/zitadel/client/models/settings_service_passkeys_type.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServicePasskeysType PASSKEYS_TYPE_NOT_ALLOWED = "PASSKEYS_TYPE_NOT_ALLOWED".freeze PASSKEYS_TYPE_ALLOWED = "PASSKEYS_TYPE_ALLOWED".freeze @@ -34,7 +34,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if SettingsServicePasskeysType.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::SettingsServicePasskeysType" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::SettingsServicePasskeysType" end end diff --git a/lib/zitadel-client/models/settings_service_password_complexity_settings.rb b/lib/zitadel/client/models/settings_service_password_complexity_settings.rb similarity index 96% rename from lib/zitadel-client/models/settings_service_password_complexity_settings.rb rename to lib/zitadel/client/models/settings_service_password_complexity_settings.rb index e73e9649..ba59b76f 100644 --- a/lib/zitadel-client/models/settings_service_password_complexity_settings.rb +++ b/lib/zitadel/client/models/settings_service_password_complexity_settings.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServicePasswordComplexitySettings # Defines the minimum length of a password. attr_accessor :min_length @@ -99,7 +99,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SettingsServicePasswordComplexitySettings` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SettingsServicePasswordComplexitySettings` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -107,7 +107,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SettingsServicePasswordComplexitySettings`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SettingsServicePasswordComplexitySettings`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -242,7 +242,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/settings_service_password_expiry_settings.rb b/lib/zitadel/client/models/settings_service_password_expiry_settings.rb similarity index 95% rename from lib/zitadel-client/models/settings_service_password_expiry_settings.rb rename to lib/zitadel/client/models/settings_service_password_expiry_settings.rb index 83cfc19d..b62cd49d 100644 --- a/lib/zitadel-client/models/settings_service_password_expiry_settings.rb +++ b/lib/zitadel/client/models/settings_service_password_expiry_settings.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServicePasswordExpirySettings # Amount of days after which a password will expire. The user will be forced to change the password on the following authentication. attr_accessor :max_age_days @@ -84,7 +84,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SettingsServicePasswordExpirySettings` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SettingsServicePasswordExpirySettings` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -92,7 +92,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SettingsServicePasswordExpirySettings`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SettingsServicePasswordExpirySettings`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -212,7 +212,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/settings_service_protobuf_any.rb b/lib/zitadel/client/models/settings_service_protobuf_any.rb similarity index 95% rename from lib/zitadel-client/models/settings_service_protobuf_any.rb rename to lib/zitadel/client/models/settings_service_protobuf_any.rb index b2559aa6..8b94f40c 100644 --- a/lib/zitadel-client/models/settings_service_protobuf_any.rb +++ b/lib/zitadel/client/models/settings_service_protobuf_any.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServiceProtobufAny attr_accessor :type @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SettingsServiceProtobufAny` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SettingsServiceProtobufAny` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SettingsServiceProtobufAny`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SettingsServiceProtobufAny`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/settings_service_resource_owner_type.rb b/lib/zitadel/client/models/settings_service_resource_owner_type.rb similarity index 90% rename from lib/zitadel-client/models/settings_service_resource_owner_type.rb rename to lib/zitadel/client/models/settings_service_resource_owner_type.rb index e9b153f0..290be2f5 100644 --- a/lib/zitadel-client/models/settings_service_resource_owner_type.rb +++ b/lib/zitadel/client/models/settings_service_resource_owner_type.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServiceResourceOwnerType RESOURCE_OWNER_TYPE_UNSPECIFIED = "RESOURCE_OWNER_TYPE_UNSPECIFIED".freeze RESOURCE_OWNER_TYPE_INSTANCE = "RESOURCE_OWNER_TYPE_INSTANCE".freeze @@ -35,7 +35,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if SettingsServiceResourceOwnerType.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::SettingsServiceResourceOwnerType" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::SettingsServiceResourceOwnerType" end end diff --git a/lib/zitadel-client/models/settings_service_rpc_status.rb b/lib/zitadel/client/models/settings_service_rpc_status.rb similarity index 95% rename from lib/zitadel-client/models/settings_service_rpc_status.rb rename to lib/zitadel/client/models/settings_service_rpc_status.rb index 901ca17d..0c9e3e3f 100644 --- a/lib/zitadel-client/models/settings_service_rpc_status.rb +++ b/lib/zitadel/client/models/settings_service_rpc_status.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServiceRpcStatus attr_accessor :code @@ -60,7 +60,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SettingsServiceRpcStatus` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SettingsServiceRpcStatus` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -68,7 +68,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SettingsServiceRpcStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SettingsServiceRpcStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -188,7 +188,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/settings_service_second_factor_type.rb b/lib/zitadel/client/models/settings_service_second_factor_type.rb similarity index 91% rename from lib/zitadel-client/models/settings_service_second_factor_type.rb rename to lib/zitadel/client/models/settings_service_second_factor_type.rb index 2b5e667c..12db1eca 100644 --- a/lib/zitadel-client/models/settings_service_second_factor_type.rb +++ b/lib/zitadel/client/models/settings_service_second_factor_type.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServiceSecondFactorType SECOND_FACTOR_TYPE_UNSPECIFIED = "SECOND_FACTOR_TYPE_UNSPECIFIED".freeze SECOND_FACTOR_TYPE_OTP = "SECOND_FACTOR_TYPE_OTP".freeze @@ -37,7 +37,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if SettingsServiceSecondFactorType.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::SettingsServiceSecondFactorType" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::SettingsServiceSecondFactorType" end end diff --git a/lib/zitadel-client/models/settings_service_security_settings.rb b/lib/zitadel/client/models/settings_service_security_settings.rb similarity index 95% rename from lib/zitadel-client/models/settings_service_security_settings.rb rename to lib/zitadel/client/models/settings_service_security_settings.rb index 315e5631..a7bc40ee 100644 --- a/lib/zitadel-client/models/settings_service_security_settings.rb +++ b/lib/zitadel/client/models/settings_service_security_settings.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServiceSecuritySettings attr_accessor :embedded_iframe @@ -57,7 +57,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SettingsServiceSecuritySettings` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SettingsServiceSecuritySettings` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -65,7 +65,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SettingsServiceSecuritySettings`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SettingsServiceSecuritySettings`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -178,7 +178,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/settings_service_set_security_settings_request.rb b/lib/zitadel/client/models/settings_service_set_security_settings_request.rb similarity index 95% rename from lib/zitadel-client/models/settings_service_set_security_settings_request.rb rename to lib/zitadel/client/models/settings_service_set_security_settings_request.rb index 87fbd00a..0316d361 100644 --- a/lib/zitadel-client/models/settings_service_set_security_settings_request.rb +++ b/lib/zitadel/client/models/settings_service_set_security_settings_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServiceSetSecuritySettingsRequest attr_accessor :embedded_iframe @@ -57,7 +57,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SettingsServiceSetSecuritySettingsRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SettingsServiceSetSecuritySettingsRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -65,7 +65,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SettingsServiceSetSecuritySettingsRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SettingsServiceSetSecuritySettingsRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -178,7 +178,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/settings_service_set_security_settings_response.rb b/lib/zitadel/client/models/settings_service_set_security_settings_response.rb similarity index 94% rename from lib/zitadel-client/models/settings_service_set_security_settings_response.rb rename to lib/zitadel/client/models/settings_service_set_security_settings_response.rb index ff9b59a3..7354ac4a 100644 --- a/lib/zitadel-client/models/settings_service_set_security_settings_response.rb +++ b/lib/zitadel/client/models/settings_service_set_security_settings_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServiceSetSecuritySettingsResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SettingsServiceSetSecuritySettingsResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SettingsServiceSetSecuritySettingsResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SettingsServiceSetSecuritySettingsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SettingsServiceSetSecuritySettingsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/settings_service_theme.rb b/lib/zitadel/client/models/settings_service_theme.rb similarity index 96% rename from lib/zitadel-client/models/settings_service_theme.rb rename to lib/zitadel/client/models/settings_service_theme.rb index cc59ac60..a85624ee 100644 --- a/lib/zitadel-client/models/settings_service_theme.rb +++ b/lib/zitadel/client/models/settings_service_theme.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServiceTheme # hex value for primary color attr_accessor :primary_color @@ -78,7 +78,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::SettingsServiceTheme` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SettingsServiceTheme` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -86,7 +86,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::SettingsServiceTheme`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SettingsServiceTheme`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -219,7 +219,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/settings_service_theme_mode.rb b/lib/zitadel/client/models/settings_service_theme_mode.rb similarity index 90% rename from lib/zitadel-client/models/settings_service_theme_mode.rb rename to lib/zitadel/client/models/settings_service_theme_mode.rb index 17dc8ee4..fe78c972 100644 --- a/lib/zitadel-client/models/settings_service_theme_mode.rb +++ b/lib/zitadel/client/models/settings_service_theme_mode.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class SettingsServiceThemeMode THEME_MODE_UNSPECIFIED = "THEME_MODE_UNSPECIFIED".freeze THEME_MODE_AUTO = "THEME_MODE_AUTO".freeze @@ -36,7 +36,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if SettingsServiceThemeMode.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::SettingsServiceThemeMode" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::SettingsServiceThemeMode" end end diff --git a/lib/zitadel-client/models/user_service_access_token_type.rb b/lib/zitadel/client/models/user_service_access_token_type.rb similarity index 89% rename from lib/zitadel-client/models/user_service_access_token_type.rb rename to lib/zitadel/client/models/user_service_access_token_type.rb index ea495655..d3d2154e 100644 --- a/lib/zitadel-client/models/user_service_access_token_type.rb +++ b/lib/zitadel/client/models/user_service_access_token_type.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceAccessTokenType ACCESS_TOKEN_TYPE_BEARER = "ACCESS_TOKEN_TYPE_BEARER".freeze ACCESS_TOKEN_TYPE_JWT = "ACCESS_TOKEN_TYPE_JWT".freeze @@ -34,7 +34,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if UserServiceAccessTokenType.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::UserServiceAccessTokenType" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::UserServiceAccessTokenType" end end diff --git a/lib/zitadel-client/models/user_service_add_human_user_request.rb b/lib/zitadel/client/models/user_service_add_human_user_request.rb similarity index 97% rename from lib/zitadel-client/models/user_service_add_human_user_request.rb rename to lib/zitadel/client/models/user_service_add_human_user_request.rb index 5aaba747..561c15e9 100644 --- a/lib/zitadel-client/models/user_service_add_human_user_request.rb +++ b/lib/zitadel/client/models/user_service_add_human_user_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceAddHumanUserRequest # optionally set your own id unique for the user. attr_accessor :user_id @@ -95,7 +95,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceAddHumanUserRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceAddHumanUserRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -103,7 +103,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceAddHumanUserRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceAddHumanUserRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -383,7 +383,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_add_human_user_response.rb b/lib/zitadel/client/models/user_service_add_human_user_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_add_human_user_response.rb rename to lib/zitadel/client/models/user_service_add_human_user_response.rb index b036eb6a..28cb54ef 100644 --- a/lib/zitadel-client/models/user_service_add_human_user_response.rb +++ b/lib/zitadel/client/models/user_service_add_human_user_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceAddHumanUserResponse attr_accessor :user_id @@ -64,7 +64,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceAddHumanUserResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceAddHumanUserResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -72,7 +72,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceAddHumanUserResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceAddHumanUserResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -195,7 +195,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_add_i_d_p_link_request.rb b/lib/zitadel/client/models/user_service_add_i_d_p_link_request.rb similarity index 95% rename from lib/zitadel-client/models/user_service_add_i_d_p_link_request.rb rename to lib/zitadel/client/models/user_service_add_i_d_p_link_request.rb index e73db16e..6aef28bf 100644 --- a/lib/zitadel-client/models/user_service_add_i_d_p_link_request.rb +++ b/lib/zitadel/client/models/user_service_add_i_d_p_link_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceAddIDPLinkRequest attr_accessor :idp_link @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceAddIDPLinkRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceAddIDPLinkRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceAddIDPLinkRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceAddIDPLinkRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_add_i_d_p_link_response.rb b/lib/zitadel/client/models/user_service_add_i_d_p_link_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_add_i_d_p_link_response.rb rename to lib/zitadel/client/models/user_service_add_i_d_p_link_response.rb index 5e3bd85d..587b599a 100644 --- a/lib/zitadel-client/models/user_service_add_i_d_p_link_response.rb +++ b/lib/zitadel/client/models/user_service_add_i_d_p_link_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceAddIDPLinkResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceAddIDPLinkResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceAddIDPLinkResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceAddIDPLinkResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceAddIDPLinkResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_add_o_t_p_email_response.rb b/lib/zitadel/client/models/user_service_add_o_t_p_email_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_add_o_t_p_email_response.rb rename to lib/zitadel/client/models/user_service_add_o_t_p_email_response.rb index 85424c88..8b89ec45 100644 --- a/lib/zitadel-client/models/user_service_add_o_t_p_email_response.rb +++ b/lib/zitadel/client/models/user_service_add_o_t_p_email_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceAddOTPEmailResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceAddOTPEmailResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceAddOTPEmailResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceAddOTPEmailResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceAddOTPEmailResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_add_o_t_p_s_m_s_response.rb b/lib/zitadel/client/models/user_service_add_o_t_p_s_m_s_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_add_o_t_p_s_m_s_response.rb rename to lib/zitadel/client/models/user_service_add_o_t_p_s_m_s_response.rb index cc74ff01..aae704a0 100644 --- a/lib/zitadel-client/models/user_service_add_o_t_p_s_m_s_response.rb +++ b/lib/zitadel/client/models/user_service_add_o_t_p_s_m_s_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceAddOTPSMSResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceAddOTPSMSResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceAddOTPSMSResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceAddOTPSMSResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceAddOTPSMSResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_and_query.rb b/lib/zitadel/client/models/user_service_and_query.rb similarity index 95% rename from lib/zitadel-client/models/user_service_and_query.rb rename to lib/zitadel/client/models/user_service_and_query.rb index c3dff12c..111d0bd0 100644 --- a/lib/zitadel-client/models/user_service_and_query.rb +++ b/lib/zitadel/client/models/user_service_and_query.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models # Connect multiple sub-condition with and AND operator. class UserServiceAndQuery # the sub queries to 'AND' @@ -54,7 +54,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceAndQuery` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceAndQuery` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -62,7 +62,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceAndQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceAndQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -172,7 +172,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_auth_factor.rb b/lib/zitadel/client/models/user_service_auth_factor.rb similarity index 95% rename from lib/zitadel-client/models/user_service_auth_factor.rb rename to lib/zitadel/client/models/user_service_auth_factor.rb index 7af9f6d0..1bcc02c4 100644 --- a/lib/zitadel-client/models/user_service_auth_factor.rb +++ b/lib/zitadel/client/models/user_service_auth_factor.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceAuthFactor attr_accessor :state @@ -68,7 +68,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceAuthFactor` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceAuthFactor` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -76,7 +76,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceAuthFactor`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceAuthFactor`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -206,7 +206,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_auth_factor_state.rb b/lib/zitadel/client/models/user_service_auth_factor_state.rb similarity index 90% rename from lib/zitadel-client/models/user_service_auth_factor_state.rb rename to lib/zitadel/client/models/user_service_auth_factor_state.rb index e81f1fb6..44348691 100644 --- a/lib/zitadel-client/models/user_service_auth_factor_state.rb +++ b/lib/zitadel/client/models/user_service_auth_factor_state.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceAuthFactorState AUTH_FACTOR_STATE_UNSPECIFIED = "AUTH_FACTOR_STATE_UNSPECIFIED".freeze AUTH_FACTOR_STATE_NOT_READY = "AUTH_FACTOR_STATE_NOT_READY".freeze @@ -36,7 +36,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if UserServiceAuthFactorState.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::UserServiceAuthFactorState" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::UserServiceAuthFactorState" end end diff --git a/lib/zitadel-client/models/user_service_auth_factor_u2_f.rb b/lib/zitadel/client/models/user_service_auth_factor_u2_f.rb similarity index 95% rename from lib/zitadel-client/models/user_service_auth_factor_u2_f.rb rename to lib/zitadel/client/models/user_service_auth_factor_u2_f.rb index 7fe86504..fa1048a6 100644 --- a/lib/zitadel-client/models/user_service_auth_factor_u2_f.rb +++ b/lib/zitadel/client/models/user_service_auth_factor_u2_f.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceAuthFactorU2F attr_accessor :id @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceAuthFactorU2F` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceAuthFactorU2F` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceAuthFactorU2F`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceAuthFactorU2F`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -177,7 +177,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_authentication_method_type.rb b/lib/zitadel/client/models/user_service_authentication_method_type.rb similarity index 93% rename from lib/zitadel-client/models/user_service_authentication_method_type.rb rename to lib/zitadel/client/models/user_service_authentication_method_type.rb index fafbbfde..d3e70a79 100644 --- a/lib/zitadel-client/models/user_service_authentication_method_type.rb +++ b/lib/zitadel/client/models/user_service_authentication_method_type.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceAuthenticationMethodType AUTHENTICATION_METHOD_TYPE_UNSPECIFIED = "AUTHENTICATION_METHOD_TYPE_UNSPECIFIED".freeze AUTHENTICATION_METHOD_TYPE_PASSWORD = "AUTHENTICATION_METHOD_TYPE_PASSWORD".freeze @@ -40,7 +40,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if UserServiceAuthenticationMethodType.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::UserServiceAuthenticationMethodType" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::UserServiceAuthenticationMethodType" end end diff --git a/lib/zitadel-client/models/user_service_create_invite_code_request.rb b/lib/zitadel/client/models/user_service_create_invite_code_request.rb similarity index 95% rename from lib/zitadel-client/models/user_service_create_invite_code_request.rb rename to lib/zitadel/client/models/user_service_create_invite_code_request.rb index ff0d26f8..d691a4c2 100644 --- a/lib/zitadel-client/models/user_service_create_invite_code_request.rb +++ b/lib/zitadel/client/models/user_service_create_invite_code_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceCreateInviteCodeRequest attr_accessor :send_code @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceCreateInviteCodeRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceCreateInviteCodeRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceCreateInviteCodeRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceCreateInviteCodeRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -177,7 +177,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_create_invite_code_response.rb b/lib/zitadel/client/models/user_service_create_invite_code_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_create_invite_code_response.rb rename to lib/zitadel/client/models/user_service_create_invite_code_response.rb index a879f88c..2ad90a73 100644 --- a/lib/zitadel-client/models/user_service_create_invite_code_response.rb +++ b/lib/zitadel/client/models/user_service_create_invite_code_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceCreateInviteCodeResponse attr_accessor :details @@ -57,7 +57,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceCreateInviteCodeResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceCreateInviteCodeResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -65,7 +65,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceCreateInviteCodeResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceCreateInviteCodeResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -178,7 +178,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_create_passkey_registration_link_request.rb b/lib/zitadel/client/models/user_service_create_passkey_registration_link_request.rb similarity index 95% rename from lib/zitadel-client/models/user_service_create_passkey_registration_link_request.rb rename to lib/zitadel/client/models/user_service_create_passkey_registration_link_request.rb index f9caf36a..2db10461 100644 --- a/lib/zitadel-client/models/user_service_create_passkey_registration_link_request.rb +++ b/lib/zitadel/client/models/user_service_create_passkey_registration_link_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceCreatePasskeyRegistrationLinkRequest attr_accessor :send_link @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceCreatePasskeyRegistrationLinkRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceCreatePasskeyRegistrationLinkRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceCreatePasskeyRegistrationLinkRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceCreatePasskeyRegistrationLinkRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -177,7 +177,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_create_passkey_registration_link_response.rb b/lib/zitadel/client/models/user_service_create_passkey_registration_link_response.rb similarity index 94% rename from lib/zitadel-client/models/user_service_create_passkey_registration_link_response.rb rename to lib/zitadel/client/models/user_service_create_passkey_registration_link_response.rb index dd51e9c9..d3592b03 100644 --- a/lib/zitadel-client/models/user_service_create_passkey_registration_link_response.rb +++ b/lib/zitadel/client/models/user_service_create_passkey_registration_link_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceCreatePasskeyRegistrationLinkResponse attr_accessor :details @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceCreatePasskeyRegistrationLinkResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceCreatePasskeyRegistrationLinkResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceCreatePasskeyRegistrationLinkResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceCreatePasskeyRegistrationLinkResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -177,7 +177,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_deactivate_user_response.rb b/lib/zitadel/client/models/user_service_deactivate_user_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_deactivate_user_response.rb rename to lib/zitadel/client/models/user_service_deactivate_user_response.rb index 6e02e7af..9efb53ab 100644 --- a/lib/zitadel-client/models/user_service_deactivate_user_response.rb +++ b/lib/zitadel/client/models/user_service_deactivate_user_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceDeactivateUserResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceDeactivateUserResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceDeactivateUserResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceDeactivateUserResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceDeactivateUserResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_delete_user_response.rb b/lib/zitadel/client/models/user_service_delete_user_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_delete_user_response.rb rename to lib/zitadel/client/models/user_service_delete_user_response.rb index 698ec4a3..a4254b64 100644 --- a/lib/zitadel-client/models/user_service_delete_user_response.rb +++ b/lib/zitadel/client/models/user_service_delete_user_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceDeleteUserResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceDeleteUserResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceDeleteUserResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceDeleteUserResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceDeleteUserResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_details.rb b/lib/zitadel/client/models/user_service_details.rb similarity index 96% rename from lib/zitadel-client/models/user_service_details.rb rename to lib/zitadel/client/models/user_service_details.rb index 63ba9a50..ac688016 100644 --- a/lib/zitadel-client/models/user_service_details.rb +++ b/lib/zitadel/client/models/user_service_details.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceDetails # on read: the sequence of the last event reduced by the projection on manipulation: the timestamp of the event(s) added by the manipulation attr_accessor :sequence @@ -66,7 +66,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceDetails` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceDetails` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -74,7 +74,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceDetails`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceDetails`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -197,7 +197,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_display_name_query.rb b/lib/zitadel/client/models/user_service_display_name_query.rb similarity index 96% rename from lib/zitadel-client/models/user_service_display_name_query.rb rename to lib/zitadel/client/models/user_service_display_name_query.rb index ed51910b..9c3239bf 100644 --- a/lib/zitadel-client/models/user_service_display_name_query.rb +++ b/lib/zitadel/client/models/user_service_display_name_query.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models # Query for users with a specific display name. class UserServiceDisplayNameQuery attr_accessor :display_name @@ -79,7 +79,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceDisplayNameQuery` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceDisplayNameQuery` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -87,7 +87,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceDisplayNameQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceDisplayNameQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -237,7 +237,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_email_query.rb b/lib/zitadel/client/models/user_service_email_query.rb similarity index 96% rename from lib/zitadel-client/models/user_service_email_query.rb rename to lib/zitadel/client/models/user_service_email_query.rb index e048dba7..f62341f1 100644 --- a/lib/zitadel-client/models/user_service_email_query.rb +++ b/lib/zitadel/client/models/user_service_email_query.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models # Query for users with a specific email. class UserServiceEmailQuery # email address of the user @@ -80,7 +80,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceEmailQuery` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceEmailQuery` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -88,7 +88,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceEmailQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceEmailQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -229,7 +229,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_first_name_query.rb b/lib/zitadel/client/models/user_service_first_name_query.rb similarity index 96% rename from lib/zitadel-client/models/user_service_first_name_query.rb rename to lib/zitadel/client/models/user_service_first_name_query.rb index 4d87b707..a015372c 100644 --- a/lib/zitadel-client/models/user_service_first_name_query.rb +++ b/lib/zitadel/client/models/user_service_first_name_query.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models # Query for users with a specific first name. class UserServiceFirstNameQuery attr_accessor :first_name @@ -79,7 +79,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceFirstNameQuery` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceFirstNameQuery` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -87,7 +87,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceFirstNameQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceFirstNameQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -237,7 +237,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_gender.rb b/lib/zitadel/client/models/user_service_gender.rb similarity index 90% rename from lib/zitadel-client/models/user_service_gender.rb rename to lib/zitadel/client/models/user_service_gender.rb index 066b22c5..9ad89198 100644 --- a/lib/zitadel-client/models/user_service_gender.rb +++ b/lib/zitadel/client/models/user_service_gender.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceGender GENDER_UNSPECIFIED = "GENDER_UNSPECIFIED".freeze GENDER_FEMALE = "GENDER_FEMALE".freeze @@ -36,7 +36,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if UserServiceGender.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::UserServiceGender" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::UserServiceGender" end end diff --git a/lib/zitadel-client/models/user_service_get_user_by_i_d_response.rb b/lib/zitadel/client/models/user_service_get_user_by_i_d_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_get_user_by_i_d_response.rb rename to lib/zitadel/client/models/user_service_get_user_by_i_d_response.rb index d4e1847f..6fd54dc1 100644 --- a/lib/zitadel-client/models/user_service_get_user_by_i_d_response.rb +++ b/lib/zitadel/client/models/user_service_get_user_by_i_d_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceGetUserByIDResponse attr_accessor :details @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceGetUserByIDResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceGetUserByIDResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceGetUserByIDResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceGetUserByIDResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -177,7 +177,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_hashed_password.rb b/lib/zitadel/client/models/user_service_hashed_password.rb similarity index 96% rename from lib/zitadel-client/models/user_service_hashed_password.rb rename to lib/zitadel/client/models/user_service_hashed_password.rb index b13ee264..fc033983 100644 --- a/lib/zitadel-client/models/user_service_hashed_password.rb +++ b/lib/zitadel/client/models/user_service_hashed_password.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceHashedPassword # \"Encoded hash of a password in Modular Crypt Format: https://zitadel.com/docs/concepts/architecture/secrets#hashed-secrets\" attr_accessor :hash @@ -57,7 +57,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceHashedPassword` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceHashedPassword` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -65,7 +65,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceHashedPassword`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceHashedPassword`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -213,7 +213,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_human_email.rb b/lib/zitadel/client/models/user_service_human_email.rb similarity index 96% rename from lib/zitadel-client/models/user_service_human_email.rb rename to lib/zitadel/client/models/user_service_human_email.rb index d52ef27c..5c088847 100644 --- a/lib/zitadel-client/models/user_service_human_email.rb +++ b/lib/zitadel/client/models/user_service_human_email.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceHumanEmail attr_accessor :email @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceHumanEmail` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceHumanEmail` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceHumanEmail`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceHumanEmail`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -205,7 +205,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_human_m_f_a_init_skipped_response.rb b/lib/zitadel/client/models/user_service_human_m_f_a_init_skipped_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_human_m_f_a_init_skipped_response.rb rename to lib/zitadel/client/models/user_service_human_m_f_a_init_skipped_response.rb index b79ac940..532c5a95 100644 --- a/lib/zitadel-client/models/user_service_human_m_f_a_init_skipped_response.rb +++ b/lib/zitadel/client/models/user_service_human_m_f_a_init_skipped_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceHumanMFAInitSkippedResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceHumanMFAInitSkippedResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceHumanMFAInitSkippedResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceHumanMFAInitSkippedResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceHumanMFAInitSkippedResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_human_phone.rb b/lib/zitadel/client/models/user_service_human_phone.rb similarity index 95% rename from lib/zitadel-client/models/user_service_human_phone.rb rename to lib/zitadel/client/models/user_service_human_phone.rb index 32ead9f4..0c4a4acc 100644 --- a/lib/zitadel-client/models/user_service_human_phone.rb +++ b/lib/zitadel/client/models/user_service_human_phone.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceHumanPhone attr_accessor :phone @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceHumanPhone` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceHumanPhone` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceHumanPhone`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceHumanPhone`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -196,7 +196,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_human_profile.rb b/lib/zitadel/client/models/user_service_human_profile.rb similarity index 97% rename from lib/zitadel-client/models/user_service_human_profile.rb rename to lib/zitadel/client/models/user_service_human_profile.rb index 6f070ed1..072c9b81 100644 --- a/lib/zitadel-client/models/user_service_human_profile.rb +++ b/lib/zitadel/client/models/user_service_human_profile.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceHumanProfile attr_accessor :given_name @@ -99,7 +99,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceHumanProfile` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceHumanProfile` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -107,7 +107,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceHumanProfile`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceHumanProfile`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -360,7 +360,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_human_user.rb b/lib/zitadel/client/models/user_service_human_user.rb similarity index 97% rename from lib/zitadel-client/models/user_service_human_user.rb rename to lib/zitadel/client/models/user_service_human_user.rb index d65a16c5..d9e3a8b0 100644 --- a/lib/zitadel-client/models/user_service_human_user.rb +++ b/lib/zitadel/client/models/user_service_human_user.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceHumanUser # Unique identifier of the user. attr_accessor :user_id @@ -121,7 +121,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceHumanUser` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceHumanUser` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -129,7 +129,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceHumanUser`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceHumanUser`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -291,7 +291,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_i_d_p_information.rb b/lib/zitadel/client/models/user_service_i_d_p_information.rb similarity index 96% rename from lib/zitadel-client/models/user_service_i_d_p_information.rb rename to lib/zitadel/client/models/user_service_i_d_p_information.rb index 8545839f..c4b5b7ab 100644 --- a/lib/zitadel-client/models/user_service_i_d_p_information.rb +++ b/lib/zitadel/client/models/user_service_i_d_p_information.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceIDPInformation attr_accessor :oauth @@ -80,7 +80,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceIDPInformation` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceIDPInformation` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -88,7 +88,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceIDPInformation`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceIDPInformation`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -226,7 +226,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_i_d_p_intent.rb b/lib/zitadel/client/models/user_service_i_d_p_intent.rb similarity index 97% rename from lib/zitadel-client/models/user_service_i_d_p_intent.rb rename to lib/zitadel/client/models/user_service_i_d_p_intent.rb index 1a191d3b..74b4ecf9 100644 --- a/lib/zitadel-client/models/user_service_i_d_p_intent.rb +++ b/lib/zitadel/client/models/user_service_i_d_p_intent.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceIDPIntent # ID of the IDP intent attr_accessor :idp_intent_id @@ -63,7 +63,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceIDPIntent` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceIDPIntent` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -71,7 +71,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceIDPIntent`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceIDPIntent`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -264,7 +264,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_i_d_p_l_d_a_p_access_information.rb b/lib/zitadel/client/models/user_service_i_d_p_l_d_a_p_access_information.rb similarity index 95% rename from lib/zitadel-client/models/user_service_i_d_p_l_d_a_p_access_information.rb rename to lib/zitadel/client/models/user_service_i_d_p_l_d_a_p_access_information.rb index 297cf8da..d35ecb6d 100644 --- a/lib/zitadel-client/models/user_service_i_d_p_l_d_a_p_access_information.rb +++ b/lib/zitadel/client/models/user_service_i_d_p_l_d_a_p_access_information.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceIDPLDAPAccessInformation attr_accessor :attributes @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceIDPLDAPAccessInformation` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceIDPLDAPAccessInformation` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceIDPLDAPAccessInformation`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceIDPLDAPAccessInformation`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_i_d_p_link.rb b/lib/zitadel/client/models/user_service_i_d_p_link.rb similarity index 97% rename from lib/zitadel-client/models/user_service_i_d_p_link.rb rename to lib/zitadel/client/models/user_service_i_d_p_link.rb index 0c5f36e7..5bc754ed 100644 --- a/lib/zitadel-client/models/user_service_i_d_p_link.rb +++ b/lib/zitadel/client/models/user_service_i_d_p_link.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceIDPLink # ID of the identity provider attr_accessor :idp_id @@ -63,7 +63,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceIDPLink` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceIDPLink` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -71,7 +71,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceIDPLink`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceIDPLink`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -273,7 +273,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_i_d_p_o_auth_access_information.rb b/lib/zitadel/client/models/user_service_i_d_p_o_auth_access_information.rb similarity index 95% rename from lib/zitadel-client/models/user_service_i_d_p_o_auth_access_information.rb rename to lib/zitadel/client/models/user_service_i_d_p_o_auth_access_information.rb index 5a8f71bf..5be6b497 100644 --- a/lib/zitadel-client/models/user_service_i_d_p_o_auth_access_information.rb +++ b/lib/zitadel/client/models/user_service_i_d_p_o_auth_access_information.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceIDPOAuthAccessInformation attr_accessor :access_token @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceIDPOAuthAccessInformation` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceIDPOAuthAccessInformation` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceIDPOAuthAccessInformation`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceIDPOAuthAccessInformation`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -177,7 +177,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_i_d_p_s_a_m_l_access_information.rb b/lib/zitadel/client/models/user_service_i_d_p_s_a_m_l_access_information.rb similarity index 95% rename from lib/zitadel-client/models/user_service_i_d_p_s_a_m_l_access_information.rb rename to lib/zitadel/client/models/user_service_i_d_p_s_a_m_l_access_information.rb index 6652e453..6b6f1f67 100644 --- a/lib/zitadel-client/models/user_service_i_d_p_s_a_m_l_access_information.rb +++ b/lib/zitadel/client/models/user_service_i_d_p_s_a_m_l_access_information.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceIDPSAMLAccessInformation attr_accessor :assertion @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceIDPSAMLAccessInformation` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceIDPSAMLAccessInformation` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceIDPSAMLAccessInformation`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceIDPSAMLAccessInformation`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_in_user_emails_query.rb b/lib/zitadel/client/models/user_service_in_user_emails_query.rb similarity index 95% rename from lib/zitadel-client/models/user_service_in_user_emails_query.rb rename to lib/zitadel/client/models/user_service_in_user_emails_query.rb index 1a0a4ac7..a92f79de 100644 --- a/lib/zitadel-client/models/user_service_in_user_emails_query.rb +++ b/lib/zitadel/client/models/user_service_in_user_emails_query.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models # Query for users with email in list of emails. class UserServiceInUserEmailsQuery # the emails of the users to include @@ -54,7 +54,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceInUserEmailsQuery` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceInUserEmailsQuery` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -62,7 +62,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceInUserEmailsQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceInUserEmailsQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -172,7 +172,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_in_user_i_d_query.rb b/lib/zitadel/client/models/user_service_in_user_i_d_query.rb similarity index 95% rename from lib/zitadel-client/models/user_service_in_user_i_d_query.rb rename to lib/zitadel/client/models/user_service_in_user_i_d_query.rb index fd19757a..f84c0588 100644 --- a/lib/zitadel-client/models/user_service_in_user_i_d_query.rb +++ b/lib/zitadel/client/models/user_service_in_user_i_d_query.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models # Query for users with ID in list of IDs. class UserServiceInUserIDQuery # the ids of the users to include @@ -54,7 +54,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceInUserIDQuery` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceInUserIDQuery` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -62,7 +62,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceInUserIDQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceInUserIDQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -172,7 +172,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_l_d_a_p_credentials.rb b/lib/zitadel/client/models/user_service_l_d_a_p_credentials.rb similarity index 96% rename from lib/zitadel-client/models/user_service_l_d_a_p_credentials.rb rename to lib/zitadel/client/models/user_service_l_d_a_p_credentials.rb index eed10fc0..f8cb8b68 100644 --- a/lib/zitadel-client/models/user_service_l_d_a_p_credentials.rb +++ b/lib/zitadel/client/models/user_service_l_d_a_p_credentials.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceLDAPCredentials # Username used to login through LDAP attr_accessor :username @@ -58,7 +58,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceLDAPCredentials` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceLDAPCredentials` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -66,7 +66,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceLDAPCredentials`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceLDAPCredentials`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -235,7 +235,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_last_name_query.rb b/lib/zitadel/client/models/user_service_last_name_query.rb similarity index 96% rename from lib/zitadel-client/models/user_service_last_name_query.rb rename to lib/zitadel/client/models/user_service_last_name_query.rb index 67db2b4e..cc86a387 100644 --- a/lib/zitadel-client/models/user_service_last_name_query.rb +++ b/lib/zitadel/client/models/user_service_last_name_query.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models # Query for users with a specific last name. class UserServiceLastNameQuery attr_accessor :last_name @@ -79,7 +79,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceLastNameQuery` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceLastNameQuery` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -87,7 +87,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceLastNameQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceLastNameQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -237,7 +237,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_list_authentication_factors_response.rb b/lib/zitadel/client/models/user_service_list_authentication_factors_response.rb similarity index 94% rename from lib/zitadel-client/models/user_service_list_authentication_factors_response.rb rename to lib/zitadel/client/models/user_service_list_authentication_factors_response.rb index a54741de..d4f994bd 100644 --- a/lib/zitadel-client/models/user_service_list_authentication_factors_response.rb +++ b/lib/zitadel/client/models/user_service_list_authentication_factors_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceListAuthenticationFactorsResponse attr_accessor :result @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceListAuthenticationFactorsResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceListAuthenticationFactorsResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceListAuthenticationFactorsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceListAuthenticationFactorsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -170,7 +170,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_list_authentication_method_types_response.rb b/lib/zitadel/client/models/user_service_list_authentication_method_types_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_list_authentication_method_types_response.rb rename to lib/zitadel/client/models/user_service_list_authentication_method_types_response.rb index bbaedaf1..5f741241 100644 --- a/lib/zitadel-client/models/user_service_list_authentication_method_types_response.rb +++ b/lib/zitadel/client/models/user_service_list_authentication_method_types_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceListAuthenticationMethodTypesResponse attr_accessor :details @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceListAuthenticationMethodTypesResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceListAuthenticationMethodTypesResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceListAuthenticationMethodTypesResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceListAuthenticationMethodTypesResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -179,7 +179,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_list_details.rb b/lib/zitadel/client/models/user_service_list_details.rb similarity index 95% rename from lib/zitadel-client/models/user_service_list_details.rb rename to lib/zitadel/client/models/user_service_list_details.rb index a37836d0..c2424933 100644 --- a/lib/zitadel-client/models/user_service_list_details.rb +++ b/lib/zitadel/client/models/user_service_list_details.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceListDetails attr_accessor :total_result @@ -61,7 +61,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceListDetails` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceListDetails` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -69,7 +69,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceListDetails`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceListDetails`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -187,7 +187,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_list_i_d_p_links_request.rb b/lib/zitadel/client/models/user_service_list_i_d_p_links_request.rb similarity index 95% rename from lib/zitadel-client/models/user_service_list_i_d_p_links_request.rb rename to lib/zitadel/client/models/user_service_list_i_d_p_links_request.rb index 9f790d37..44cb5210 100644 --- a/lib/zitadel-client/models/user_service_list_i_d_p_links_request.rb +++ b/lib/zitadel/client/models/user_service_list_i_d_p_links_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceListIDPLinksRequest attr_accessor :query @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceListIDPLinksRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceListIDPLinksRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceListIDPLinksRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceListIDPLinksRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_list_i_d_p_links_response.rb b/lib/zitadel/client/models/user_service_list_i_d_p_links_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_list_i_d_p_links_response.rb rename to lib/zitadel/client/models/user_service_list_i_d_p_links_response.rb index 1f8781a6..c5033431 100644 --- a/lib/zitadel-client/models/user_service_list_i_d_p_links_response.rb +++ b/lib/zitadel/client/models/user_service_list_i_d_p_links_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceListIDPLinksResponse attr_accessor :details @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceListIDPLinksResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceListIDPLinksResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceListIDPLinksResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceListIDPLinksResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -179,7 +179,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_list_passkeys_response.rb b/lib/zitadel/client/models/user_service_list_passkeys_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_list_passkeys_response.rb rename to lib/zitadel/client/models/user_service_list_passkeys_response.rb index 6e4ec849..d5ffb0de 100644 --- a/lib/zitadel-client/models/user_service_list_passkeys_response.rb +++ b/lib/zitadel/client/models/user_service_list_passkeys_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceListPasskeysResponse attr_accessor :details @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceListPasskeysResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceListPasskeysResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceListPasskeysResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceListPasskeysResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -179,7 +179,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_list_query.rb b/lib/zitadel/client/models/user_service_list_query.rb similarity index 95% rename from lib/zitadel-client/models/user_service_list_query.rb rename to lib/zitadel/client/models/user_service_list_query.rb index 40798a09..3484fe15 100644 --- a/lib/zitadel-client/models/user_service_list_query.rb +++ b/lib/zitadel/client/models/user_service_list_query.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models # Object unspecific list filters like offset, limit and asc/desc. class UserServiceListQuery attr_accessor :offset @@ -63,7 +63,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceListQuery` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceListQuery` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -71,7 +71,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceListQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceListQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -189,7 +189,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_list_users_request.rb b/lib/zitadel/client/models/user_service_list_users_request.rb similarity index 95% rename from lib/zitadel-client/models/user_service_list_users_request.rb rename to lib/zitadel/client/models/user_service_list_users_request.rb index 860cab80..ab8aa922 100644 --- a/lib/zitadel-client/models/user_service_list_users_request.rb +++ b/lib/zitadel/client/models/user_service_list_users_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceListUsersRequest attr_accessor :query @@ -82,7 +82,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceListUsersRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceListUsersRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -90,7 +90,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceListUsersRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceListUsersRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -212,7 +212,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_list_users_response.rb b/lib/zitadel/client/models/user_service_list_users_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_list_users_response.rb rename to lib/zitadel/client/models/user_service_list_users_response.rb index faed1650..04bf87fb 100644 --- a/lib/zitadel-client/models/user_service_list_users_response.rb +++ b/lib/zitadel/client/models/user_service_list_users_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceListUsersResponse attr_accessor :details @@ -82,7 +82,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceListUsersResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceListUsersResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -90,7 +90,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceListUsersResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceListUsersResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -212,7 +212,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_lock_user_response.rb b/lib/zitadel/client/models/user_service_lock_user_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_lock_user_response.rb rename to lib/zitadel/client/models/user_service_lock_user_response.rb index 4d297dad..a75059ad 100644 --- a/lib/zitadel-client/models/user_service_lock_user_response.rb +++ b/lib/zitadel/client/models/user_service_lock_user_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceLockUserResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceLockUserResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceLockUserResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceLockUserResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceLockUserResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_login_name_query.rb b/lib/zitadel/client/models/user_service_login_name_query.rb similarity index 96% rename from lib/zitadel-client/models/user_service_login_name_query.rb rename to lib/zitadel/client/models/user_service_login_name_query.rb index 1e351ed5..e6842159 100644 --- a/lib/zitadel-client/models/user_service_login_name_query.rb +++ b/lib/zitadel/client/models/user_service_login_name_query.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models # Query for users with a specific state. class UserServiceLoginNameQuery attr_accessor :login_name @@ -79,7 +79,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceLoginNameQuery` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceLoginNameQuery` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -87,7 +87,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceLoginNameQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceLoginNameQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -237,7 +237,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_machine_user.rb b/lib/zitadel/client/models/user_service_machine_user.rb similarity index 96% rename from lib/zitadel-client/models/user_service_machine_user.rb rename to lib/zitadel/client/models/user_service_machine_user.rb index 247bacd1..84a9c87c 100644 --- a/lib/zitadel-client/models/user_service_machine_user.rb +++ b/lib/zitadel/client/models/user_service_machine_user.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceMachineUser attr_accessor :name @@ -86,7 +86,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceMachineUser` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceMachineUser` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -94,7 +94,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceMachineUser`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceMachineUser`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -219,7 +219,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_nick_name_query.rb b/lib/zitadel/client/models/user_service_nick_name_query.rb similarity index 96% rename from lib/zitadel-client/models/user_service_nick_name_query.rb rename to lib/zitadel/client/models/user_service_nick_name_query.rb index 8eff5900..632b2194 100644 --- a/lib/zitadel-client/models/user_service_nick_name_query.rb +++ b/lib/zitadel/client/models/user_service_nick_name_query.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models # Query for users with a specific nickname. class UserServiceNickNameQuery attr_accessor :nick_name @@ -79,7 +79,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceNickNameQuery` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceNickNameQuery` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -87,7 +87,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceNickNameQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceNickNameQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -237,7 +237,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_not_query.rb b/lib/zitadel/client/models/user_service_not_query.rb similarity index 95% rename from lib/zitadel-client/models/user_service_not_query.rb rename to lib/zitadel/client/models/user_service_not_query.rb index 0c7a663f..1ab607a5 100644 --- a/lib/zitadel-client/models/user_service_not_query.rb +++ b/lib/zitadel/client/models/user_service_not_query.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models # Negate the sub-condition. class UserServiceNotQuery attr_accessor :query @@ -53,7 +53,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceNotQuery` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceNotQuery` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -61,7 +61,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceNotQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceNotQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -169,7 +169,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_notification_type.rb b/lib/zitadel/client/models/user_service_notification_type.rb similarity index 90% rename from lib/zitadel-client/models/user_service_notification_type.rb rename to lib/zitadel/client/models/user_service_notification_type.rb index d1ffb8d6..f09b9130 100644 --- a/lib/zitadel-client/models/user_service_notification_type.rb +++ b/lib/zitadel/client/models/user_service_notification_type.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceNotificationType NOTIFICATION_TYPE_UNSPECIFIED = "NOTIFICATION_TYPE_Unspecified".freeze NOTIFICATION_TYPE_EMAIL = "NOTIFICATION_TYPE_Email".freeze @@ -35,7 +35,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if UserServiceNotificationType.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::UserServiceNotificationType" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::UserServiceNotificationType" end end diff --git a/lib/zitadel-client/models/user_service_or_query.rb b/lib/zitadel/client/models/user_service_or_query.rb similarity index 95% rename from lib/zitadel-client/models/user_service_or_query.rb rename to lib/zitadel/client/models/user_service_or_query.rb index 0a86c09e..2a00e6d0 100644 --- a/lib/zitadel-client/models/user_service_or_query.rb +++ b/lib/zitadel/client/models/user_service_or_query.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models # Connect multiple sub-condition with and OR operator. class UserServiceOrQuery # the sub queries to 'OR' @@ -54,7 +54,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceOrQuery` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceOrQuery` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -62,7 +62,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceOrQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceOrQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -172,7 +172,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_organization.rb b/lib/zitadel/client/models/user_service_organization.rb similarity index 95% rename from lib/zitadel-client/models/user_service_organization.rb rename to lib/zitadel/client/models/user_service_organization.rb index 4baa405e..bc6dc577 100644 --- a/lib/zitadel-client/models/user_service_organization.rb +++ b/lib/zitadel/client/models/user_service_organization.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceOrganization attr_accessor :org_id @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceOrganization` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceOrganization` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceOrganization`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceOrganization`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -177,7 +177,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_organization_id_query.rb b/lib/zitadel/client/models/user_service_organization_id_query.rb similarity index 96% rename from lib/zitadel-client/models/user_service_organization_id_query.rb rename to lib/zitadel/client/models/user_service_organization_id_query.rb index 4f26a3da..f6d330f6 100644 --- a/lib/zitadel-client/models/user_service_organization_id_query.rb +++ b/lib/zitadel/client/models/user_service_organization_id_query.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models # Query for users under a specific organization as resource owner. class UserServiceOrganizationIdQuery attr_accessor :organization_id @@ -53,7 +53,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceOrganizationIdQuery` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceOrganizationIdQuery` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -61,7 +61,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceOrganizationIdQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceOrganizationIdQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -204,7 +204,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_passkey.rb b/lib/zitadel/client/models/user_service_passkey.rb similarity index 96% rename from lib/zitadel-client/models/user_service_passkey.rb rename to lib/zitadel/client/models/user_service_passkey.rb index 6e59ebfc..9e720f1b 100644 --- a/lib/zitadel-client/models/user_service_passkey.rb +++ b/lib/zitadel/client/models/user_service_passkey.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServicePasskey attr_accessor :id @@ -82,7 +82,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServicePasskey` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServicePasskey` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -90,7 +90,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServicePasskey`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServicePasskey`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -238,7 +238,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_passkey_authenticator.rb b/lib/zitadel/client/models/user_service_passkey_authenticator.rb similarity index 90% rename from lib/zitadel-client/models/user_service_passkey_authenticator.rb rename to lib/zitadel/client/models/user_service_passkey_authenticator.rb index 646292f0..3af3e336 100644 --- a/lib/zitadel-client/models/user_service_passkey_authenticator.rb +++ b/lib/zitadel/client/models/user_service_passkey_authenticator.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServicePasskeyAuthenticator PASSKEY_AUTHENTICATOR_UNSPECIFIED = "PASSKEY_AUTHENTICATOR_UNSPECIFIED".freeze PASSKEY_AUTHENTICATOR_PLATFORM = "PASSKEY_AUTHENTICATOR_PLATFORM".freeze @@ -35,7 +35,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if UserServicePasskeyAuthenticator.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::UserServicePasskeyAuthenticator" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::UserServicePasskeyAuthenticator" end end diff --git a/lib/zitadel-client/models/user_service_passkey_registration_code.rb b/lib/zitadel/client/models/user_service_passkey_registration_code.rb similarity index 96% rename from lib/zitadel-client/models/user_service_passkey_registration_code.rb rename to lib/zitadel/client/models/user_service_passkey_registration_code.rb index 4bcc0b60..8947e2f7 100644 --- a/lib/zitadel-client/models/user_service_passkey_registration_code.rb +++ b/lib/zitadel/client/models/user_service_passkey_registration_code.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServicePasskeyRegistrationCode # \"id to the one time code generated by ZITADEL\" attr_accessor :id @@ -58,7 +58,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServicePasskeyRegistrationCode` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServicePasskeyRegistrationCode` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -66,7 +66,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServicePasskeyRegistrationCode`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServicePasskeyRegistrationCode`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -231,7 +231,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_password.rb b/lib/zitadel/client/models/user_service_password.rb similarity index 96% rename from lib/zitadel-client/models/user_service_password.rb rename to lib/zitadel/client/models/user_service_password.rb index 6349b36c..cea82b92 100644 --- a/lib/zitadel-client/models/user_service_password.rb +++ b/lib/zitadel/client/models/user_service_password.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServicePassword attr_accessor :password @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServicePassword` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServicePassword` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServicePassword`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServicePassword`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -212,7 +212,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_password_reset_request.rb b/lib/zitadel/client/models/user_service_password_reset_request.rb similarity index 95% rename from lib/zitadel-client/models/user_service_password_reset_request.rb rename to lib/zitadel/client/models/user_service_password_reset_request.rb index 94e1e82a..cc87ec38 100644 --- a/lib/zitadel-client/models/user_service_password_reset_request.rb +++ b/lib/zitadel/client/models/user_service_password_reset_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServicePasswordResetRequest attr_accessor :send_link @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServicePasswordResetRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServicePasswordResetRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServicePasswordResetRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServicePasswordResetRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -177,7 +177,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_password_reset_response.rb b/lib/zitadel/client/models/user_service_password_reset_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_password_reset_response.rb rename to lib/zitadel/client/models/user_service_password_reset_response.rb index 84c461ff..c314793e 100644 --- a/lib/zitadel-client/models/user_service_password_reset_response.rb +++ b/lib/zitadel/client/models/user_service_password_reset_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServicePasswordResetResponse attr_accessor :details @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServicePasswordResetResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServicePasswordResetResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServicePasswordResetResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServicePasswordResetResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -177,7 +177,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_phone_query.rb b/lib/zitadel/client/models/user_service_phone_query.rb similarity index 96% rename from lib/zitadel-client/models/user_service_phone_query.rb rename to lib/zitadel/client/models/user_service_phone_query.rb index b3783063..01c9f1b4 100644 --- a/lib/zitadel-client/models/user_service_phone_query.rb +++ b/lib/zitadel/client/models/user_service_phone_query.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models # Query for users with a specific phone. class UserServicePhoneQuery # Phone number of the user @@ -80,7 +80,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServicePhoneQuery` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServicePhoneQuery` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -88,7 +88,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServicePhoneQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServicePhoneQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -238,7 +238,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_protobuf_any.rb b/lib/zitadel/client/models/user_service_protobuf_any.rb similarity index 95% rename from lib/zitadel-client/models/user_service_protobuf_any.rb rename to lib/zitadel/client/models/user_service_protobuf_any.rb index 345282dd..f4f105db 100644 --- a/lib/zitadel-client/models/user_service_protobuf_any.rb +++ b/lib/zitadel/client/models/user_service_protobuf_any.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceProtobufAny attr_accessor :type @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceProtobufAny` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceProtobufAny` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceProtobufAny`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceProtobufAny`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_reactivate_user_response.rb b/lib/zitadel/client/models/user_service_reactivate_user_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_reactivate_user_response.rb rename to lib/zitadel/client/models/user_service_reactivate_user_response.rb index 2fbac62f..ee446655 100644 --- a/lib/zitadel-client/models/user_service_reactivate_user_response.rb +++ b/lib/zitadel/client/models/user_service_reactivate_user_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceReactivateUserResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceReactivateUserResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceReactivateUserResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceReactivateUserResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceReactivateUserResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_redirect_u_r_ls.rb b/lib/zitadel/client/models/user_service_redirect_u_r_ls.rb similarity index 96% rename from lib/zitadel-client/models/user_service_redirect_u_r_ls.rb rename to lib/zitadel/client/models/user_service_redirect_u_r_ls.rb index 6ec4d105..b735baac 100644 --- a/lib/zitadel-client/models/user_service_redirect_u_r_ls.rb +++ b/lib/zitadel/client/models/user_service_redirect_u_r_ls.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceRedirectURLs # URL on which the user will be redirected after a successful login attr_accessor :success_url @@ -58,7 +58,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceRedirectURLs` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceRedirectURLs` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -66,7 +66,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceRedirectURLs`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceRedirectURLs`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -235,7 +235,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_register_passkey_request.rb b/lib/zitadel/client/models/user_service_register_passkey_request.rb similarity index 95% rename from lib/zitadel-client/models/user_service_register_passkey_request.rb rename to lib/zitadel/client/models/user_service_register_passkey_request.rb index 7a5c6a49..9989822d 100644 --- a/lib/zitadel-client/models/user_service_register_passkey_request.rb +++ b/lib/zitadel/client/models/user_service_register_passkey_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceRegisterPasskeyRequest attr_accessor :code @@ -83,7 +83,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceRegisterPasskeyRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceRegisterPasskeyRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -91,7 +91,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceRegisterPasskeyRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceRegisterPasskeyRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -211,7 +211,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_register_passkey_response.rb b/lib/zitadel/client/models/user_service_register_passkey_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_register_passkey_response.rb rename to lib/zitadel/client/models/user_service_register_passkey_response.rb index 3ecf9a4e..cf29deb4 100644 --- a/lib/zitadel-client/models/user_service_register_passkey_response.rb +++ b/lib/zitadel/client/models/user_service_register_passkey_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceRegisterPasskeyResponse attr_accessor :details @@ -61,7 +61,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceRegisterPasskeyResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceRegisterPasskeyResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -69,7 +69,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceRegisterPasskeyResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceRegisterPasskeyResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -187,7 +187,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_register_t_o_t_p_response.rb b/lib/zitadel/client/models/user_service_register_t_o_t_p_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_register_t_o_t_p_response.rb rename to lib/zitadel/client/models/user_service_register_t_o_t_p_response.rb index d09ce8bf..828ad8bf 100644 --- a/lib/zitadel-client/models/user_service_register_t_o_t_p_response.rb +++ b/lib/zitadel/client/models/user_service_register_t_o_t_p_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceRegisterTOTPResponse attr_accessor :details @@ -60,7 +60,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceRegisterTOTPResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceRegisterTOTPResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -68,7 +68,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceRegisterTOTPResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceRegisterTOTPResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -186,7 +186,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_register_u2_f_request.rb b/lib/zitadel/client/models/user_service_register_u2_f_request.rb similarity index 95% rename from lib/zitadel-client/models/user_service_register_u2_f_request.rb rename to lib/zitadel/client/models/user_service_register_u2_f_request.rb index a7005b68..6f4da41f 100644 --- a/lib/zitadel-client/models/user_service_register_u2_f_request.rb +++ b/lib/zitadel/client/models/user_service_register_u2_f_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceRegisterU2FRequest # \"Domain on which the user is authenticated.\" attr_accessor :domain @@ -53,7 +53,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceRegisterU2FRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceRegisterU2FRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -61,7 +61,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceRegisterU2FRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceRegisterU2FRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -169,7 +169,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_register_u2_f_response.rb b/lib/zitadel/client/models/user_service_register_u2_f_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_register_u2_f_response.rb rename to lib/zitadel/client/models/user_service_register_u2_f_response.rb index f176d4fc..57637f21 100644 --- a/lib/zitadel-client/models/user_service_register_u2_f_response.rb +++ b/lib/zitadel/client/models/user_service_register_u2_f_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceRegisterU2FResponse attr_accessor :details @@ -61,7 +61,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceRegisterU2FResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceRegisterU2FResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -69,7 +69,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceRegisterU2FResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceRegisterU2FResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -187,7 +187,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_remove_i_d_p_link_response.rb b/lib/zitadel/client/models/user_service_remove_i_d_p_link_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_remove_i_d_p_link_response.rb rename to lib/zitadel/client/models/user_service_remove_i_d_p_link_response.rb index 6f8e2a6a..ec2a938a 100644 --- a/lib/zitadel-client/models/user_service_remove_i_d_p_link_response.rb +++ b/lib/zitadel/client/models/user_service_remove_i_d_p_link_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceRemoveIDPLinkResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceRemoveIDPLinkResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceRemoveIDPLinkResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceRemoveIDPLinkResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceRemoveIDPLinkResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_remove_o_t_p_email_response.rb b/lib/zitadel/client/models/user_service_remove_o_t_p_email_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_remove_o_t_p_email_response.rb rename to lib/zitadel/client/models/user_service_remove_o_t_p_email_response.rb index ca96414c..40a78f7f 100644 --- a/lib/zitadel-client/models/user_service_remove_o_t_p_email_response.rb +++ b/lib/zitadel/client/models/user_service_remove_o_t_p_email_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceRemoveOTPEmailResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceRemoveOTPEmailResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceRemoveOTPEmailResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceRemoveOTPEmailResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceRemoveOTPEmailResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_remove_o_t_p_s_m_s_response.rb b/lib/zitadel/client/models/user_service_remove_o_t_p_s_m_s_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_remove_o_t_p_s_m_s_response.rb rename to lib/zitadel/client/models/user_service_remove_o_t_p_s_m_s_response.rb index ec164fe2..06fd6379 100644 --- a/lib/zitadel-client/models/user_service_remove_o_t_p_s_m_s_response.rb +++ b/lib/zitadel/client/models/user_service_remove_o_t_p_s_m_s_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceRemoveOTPSMSResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceRemoveOTPSMSResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceRemoveOTPSMSResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceRemoveOTPSMSResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceRemoveOTPSMSResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_remove_passkey_response.rb b/lib/zitadel/client/models/user_service_remove_passkey_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_remove_passkey_response.rb rename to lib/zitadel/client/models/user_service_remove_passkey_response.rb index ca7ceb65..c42a24a7 100644 --- a/lib/zitadel-client/models/user_service_remove_passkey_response.rb +++ b/lib/zitadel/client/models/user_service_remove_passkey_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceRemovePasskeyResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceRemovePasskeyResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceRemovePasskeyResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceRemovePasskeyResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceRemovePasskeyResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_remove_phone_response.rb b/lib/zitadel/client/models/user_service_remove_phone_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_remove_phone_response.rb rename to lib/zitadel/client/models/user_service_remove_phone_response.rb index 7089f29e..d8148a7f 100644 --- a/lib/zitadel-client/models/user_service_remove_phone_response.rb +++ b/lib/zitadel/client/models/user_service_remove_phone_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceRemovePhoneResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceRemovePhoneResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceRemovePhoneResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceRemovePhoneResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceRemovePhoneResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_remove_t_o_t_p_response.rb b/lib/zitadel/client/models/user_service_remove_t_o_t_p_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_remove_t_o_t_p_response.rb rename to lib/zitadel/client/models/user_service_remove_t_o_t_p_response.rb index bbb321a0..f43f2869 100644 --- a/lib/zitadel-client/models/user_service_remove_t_o_t_p_response.rb +++ b/lib/zitadel/client/models/user_service_remove_t_o_t_p_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceRemoveTOTPResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceRemoveTOTPResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceRemoveTOTPResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceRemoveTOTPResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceRemoveTOTPResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_remove_u2_f_response.rb b/lib/zitadel/client/models/user_service_remove_u2_f_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_remove_u2_f_response.rb rename to lib/zitadel/client/models/user_service_remove_u2_f_response.rb index 69b35a23..c3323f40 100644 --- a/lib/zitadel-client/models/user_service_remove_u2_f_response.rb +++ b/lib/zitadel/client/models/user_service_remove_u2_f_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceRemoveU2FResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceRemoveU2FResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceRemoveU2FResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceRemoveU2FResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceRemoveU2FResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_resend_email_code_request.rb b/lib/zitadel/client/models/user_service_resend_email_code_request.rb similarity index 95% rename from lib/zitadel-client/models/user_service_resend_email_code_request.rb rename to lib/zitadel/client/models/user_service_resend_email_code_request.rb index 2bea230a..0a93585b 100644 --- a/lib/zitadel-client/models/user_service_resend_email_code_request.rb +++ b/lib/zitadel/client/models/user_service_resend_email_code_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceResendEmailCodeRequest attr_accessor :send_code @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceResendEmailCodeRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceResendEmailCodeRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceResendEmailCodeRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceResendEmailCodeRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -177,7 +177,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_resend_email_code_response.rb b/lib/zitadel/client/models/user_service_resend_email_code_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_resend_email_code_response.rb rename to lib/zitadel/client/models/user_service_resend_email_code_response.rb index 473855ac..3f66585e 100644 --- a/lib/zitadel-client/models/user_service_resend_email_code_response.rb +++ b/lib/zitadel/client/models/user_service_resend_email_code_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceResendEmailCodeResponse attr_accessor :details @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceResendEmailCodeResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceResendEmailCodeResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceResendEmailCodeResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceResendEmailCodeResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -177,7 +177,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_resend_invite_code_response.rb b/lib/zitadel/client/models/user_service_resend_invite_code_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_resend_invite_code_response.rb rename to lib/zitadel/client/models/user_service_resend_invite_code_response.rb index d39bb043..c2106d48 100644 --- a/lib/zitadel-client/models/user_service_resend_invite_code_response.rb +++ b/lib/zitadel/client/models/user_service_resend_invite_code_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceResendInviteCodeResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceResendInviteCodeResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceResendInviteCodeResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceResendInviteCodeResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceResendInviteCodeResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_resend_phone_code_request.rb b/lib/zitadel/client/models/user_service_resend_phone_code_request.rb similarity index 95% rename from lib/zitadel-client/models/user_service_resend_phone_code_request.rb rename to lib/zitadel/client/models/user_service_resend_phone_code_request.rb index 44fe00af..4f529081 100644 --- a/lib/zitadel-client/models/user_service_resend_phone_code_request.rb +++ b/lib/zitadel/client/models/user_service_resend_phone_code_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceResendPhoneCodeRequest attr_accessor :send_code @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceResendPhoneCodeRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceResendPhoneCodeRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceResendPhoneCodeRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceResendPhoneCodeRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -177,7 +177,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_resend_phone_code_response.rb b/lib/zitadel/client/models/user_service_resend_phone_code_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_resend_phone_code_response.rb rename to lib/zitadel/client/models/user_service_resend_phone_code_response.rb index 5f269323..56d7eb45 100644 --- a/lib/zitadel-client/models/user_service_resend_phone_code_response.rb +++ b/lib/zitadel/client/models/user_service_resend_phone_code_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceResendPhoneCodeResponse attr_accessor :details @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceResendPhoneCodeResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceResendPhoneCodeResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceResendPhoneCodeResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceResendPhoneCodeResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -177,7 +177,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_retrieve_identity_provider_intent_request.rb b/lib/zitadel/client/models/user_service_retrieve_identity_provider_intent_request.rb similarity index 95% rename from lib/zitadel-client/models/user_service_retrieve_identity_provider_intent_request.rb rename to lib/zitadel/client/models/user_service_retrieve_identity_provider_intent_request.rb index 74208af3..7a8d45c8 100644 --- a/lib/zitadel-client/models/user_service_retrieve_identity_provider_intent_request.rb +++ b/lib/zitadel/client/models/user_service_retrieve_identity_provider_intent_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceRetrieveIdentityProviderIntentRequest # token of the idp intent, previously returned on the success response of the IDP callback attr_accessor :idp_intent_token @@ -53,7 +53,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceRetrieveIdentityProviderIntentRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceRetrieveIdentityProviderIntentRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -61,7 +61,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceRetrieveIdentityProviderIntentRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceRetrieveIdentityProviderIntentRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -197,7 +197,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_retrieve_identity_provider_intent_response.rb b/lib/zitadel/client/models/user_service_retrieve_identity_provider_intent_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_retrieve_identity_provider_intent_response.rb rename to lib/zitadel/client/models/user_service_retrieve_identity_provider_intent_response.rb index 20654a86..8827b956 100644 --- a/lib/zitadel-client/models/user_service_retrieve_identity_provider_intent_response.rb +++ b/lib/zitadel/client/models/user_service_retrieve_identity_provider_intent_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceRetrieveIdentityProviderIntentResponse attr_accessor :details @@ -65,7 +65,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceRetrieveIdentityProviderIntentResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceRetrieveIdentityProviderIntentResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -73,7 +73,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceRetrieveIdentityProviderIntentResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceRetrieveIdentityProviderIntentResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -196,7 +196,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_rpc_status.rb b/lib/zitadel/client/models/user_service_rpc_status.rb similarity index 95% rename from lib/zitadel-client/models/user_service_rpc_status.rb rename to lib/zitadel/client/models/user_service_rpc_status.rb index 1ea111c4..c518c004 100644 --- a/lib/zitadel-client/models/user_service_rpc_status.rb +++ b/lib/zitadel/client/models/user_service_rpc_status.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceRpcStatus attr_accessor :code @@ -60,7 +60,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceRpcStatus` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceRpcStatus` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -68,7 +68,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceRpcStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceRpcStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -188,7 +188,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_search_query.rb b/lib/zitadel/client/models/user_service_search_query.rb similarity index 97% rename from lib/zitadel-client/models/user_service_search_query.rb rename to lib/zitadel/client/models/user_service_search_query.rb index 464701ae..84ec646d 100644 --- a/lib/zitadel-client/models/user_service_search_query.rb +++ b/lib/zitadel/client/models/user_service_search_query.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceSearchQuery attr_accessor :user_name_query @@ -112,7 +112,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceSearchQuery` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceSearchQuery` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -120,7 +120,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceSearchQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceSearchQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -303,7 +303,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_send_email_code_request.rb b/lib/zitadel/client/models/user_service_send_email_code_request.rb similarity index 95% rename from lib/zitadel-client/models/user_service_send_email_code_request.rb rename to lib/zitadel/client/models/user_service_send_email_code_request.rb index 0955eef7..5d24f6ad 100644 --- a/lib/zitadel-client/models/user_service_send_email_code_request.rb +++ b/lib/zitadel/client/models/user_service_send_email_code_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceSendEmailCodeRequest attr_accessor :send_code @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceSendEmailCodeRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceSendEmailCodeRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceSendEmailCodeRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceSendEmailCodeRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -177,7 +177,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_send_email_code_response.rb b/lib/zitadel/client/models/user_service_send_email_code_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_send_email_code_response.rb rename to lib/zitadel/client/models/user_service_send_email_code_response.rb index 8caeb7b5..7f6f3cec 100644 --- a/lib/zitadel-client/models/user_service_send_email_code_response.rb +++ b/lib/zitadel/client/models/user_service_send_email_code_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceSendEmailCodeResponse attr_accessor :details @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceSendEmailCodeResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceSendEmailCodeResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceSendEmailCodeResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceSendEmailCodeResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -177,7 +177,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_send_email_verification_code.rb b/lib/zitadel/client/models/user_service_send_email_verification_code.rb similarity index 95% rename from lib/zitadel-client/models/user_service_send_email_verification_code.rb rename to lib/zitadel/client/models/user_service_send_email_verification_code.rb index 508b496a..320d5d09 100644 --- a/lib/zitadel-client/models/user_service_send_email_verification_code.rb +++ b/lib/zitadel/client/models/user_service_send_email_verification_code.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceSendEmailVerificationCode # Optionally set a url_template, which will be used in the verification mail sent by ZITADEL to guide the user to your verification page. If no template is set, the default ZITADEL url will be used. The following placeholders can be used: UserID, OrgID, Code attr_accessor :url_template @@ -53,7 +53,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceSendEmailVerificationCode` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceSendEmailVerificationCode` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -61,7 +61,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceSendEmailVerificationCode`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceSendEmailVerificationCode`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -197,7 +197,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_send_invite_code.rb b/lib/zitadel/client/models/user_service_send_invite_code.rb similarity index 96% rename from lib/zitadel-client/models/user_service_send_invite_code.rb rename to lib/zitadel/client/models/user_service_send_invite_code.rb index 175ef83c..2c785487 100644 --- a/lib/zitadel-client/models/user_service_send_invite_code.rb +++ b/lib/zitadel/client/models/user_service_send_invite_code.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceSendInviteCode # Optionally set a url_template, which will be used in the invite mail sent by ZITADEL to guide the user to your invitation page. If no template is set, the default ZITADEL url will be used. The following placeholders can be used: UserID, OrgID, Code attr_accessor :url_template @@ -58,7 +58,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceSendInviteCode` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceSendInviteCode` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -66,7 +66,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceSendInviteCode`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceSendInviteCode`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -235,7 +235,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_send_passkey_registration_link.rb b/lib/zitadel/client/models/user_service_send_passkey_registration_link.rb similarity index 95% rename from lib/zitadel-client/models/user_service_send_passkey_registration_link.rb rename to lib/zitadel/client/models/user_service_send_passkey_registration_link.rb index 2dc561c9..1e330b68 100644 --- a/lib/zitadel-client/models/user_service_send_passkey_registration_link.rb +++ b/lib/zitadel/client/models/user_service_send_passkey_registration_link.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceSendPasskeyRegistrationLink # Optionally set a url_template, which will be used in the mail sent by ZITADEL to guide the user to your passkey registration page. If no template is set, the default ZITADEL url will be used. The following placeholders can be used: UserID, OrgID, CodeID, Code attr_accessor :url_template @@ -53,7 +53,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceSendPasskeyRegistrationLink` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceSendPasskeyRegistrationLink` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -61,7 +61,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceSendPasskeyRegistrationLink`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceSendPasskeyRegistrationLink`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -197,7 +197,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_send_password_reset_link.rb b/lib/zitadel/client/models/user_service_send_password_reset_link.rb similarity index 96% rename from lib/zitadel-client/models/user_service_send_password_reset_link.rb rename to lib/zitadel/client/models/user_service_send_password_reset_link.rb index 90d31d6b..b8a50d97 100644 --- a/lib/zitadel-client/models/user_service_send_password_reset_link.rb +++ b/lib/zitadel/client/models/user_service_send_password_reset_link.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceSendPasswordResetLink attr_accessor :notification_type @@ -79,7 +79,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceSendPasswordResetLink` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceSendPasswordResetLink` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -87,7 +87,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceSendPasswordResetLink`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceSendPasswordResetLink`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -230,7 +230,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_set_email_request.rb b/lib/zitadel/client/models/user_service_set_email_request.rb similarity index 96% rename from lib/zitadel-client/models/user_service_set_email_request.rb rename to lib/zitadel/client/models/user_service_set_email_request.rb index 7d7075e5..df755e8d 100644 --- a/lib/zitadel-client/models/user_service_set_email_request.rb +++ b/lib/zitadel/client/models/user_service_set_email_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceSetEmailRequest attr_accessor :email @@ -64,7 +64,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceSetEmailRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceSetEmailRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -72,7 +72,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceSetEmailRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceSetEmailRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -230,7 +230,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_set_email_response.rb b/lib/zitadel/client/models/user_service_set_email_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_set_email_response.rb rename to lib/zitadel/client/models/user_service_set_email_response.rb index 92af298c..124d0afe 100644 --- a/lib/zitadel-client/models/user_service_set_email_response.rb +++ b/lib/zitadel/client/models/user_service_set_email_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceSetEmailResponse attr_accessor :details @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceSetEmailResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceSetEmailResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceSetEmailResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceSetEmailResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -177,7 +177,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_set_human_email.rb b/lib/zitadel/client/models/user_service_set_human_email.rb similarity index 96% rename from lib/zitadel-client/models/user_service_set_human_email.rb rename to lib/zitadel/client/models/user_service_set_human_email.rb index fc73a02e..52a15ac5 100644 --- a/lib/zitadel-client/models/user_service_set_human_email.rb +++ b/lib/zitadel/client/models/user_service_set_human_email.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceSetHumanEmail attr_accessor :email @@ -64,7 +64,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceSetHumanEmail` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceSetHumanEmail` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -72,7 +72,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceSetHumanEmail`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceSetHumanEmail`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -230,7 +230,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_set_human_phone.rb b/lib/zitadel/client/models/user_service_set_human_phone.rb similarity index 96% rename from lib/zitadel-client/models/user_service_set_human_phone.rb rename to lib/zitadel/client/models/user_service_set_human_phone.rb index f799c7e6..31662441 100644 --- a/lib/zitadel-client/models/user_service_set_human_phone.rb +++ b/lib/zitadel/client/models/user_service_set_human_phone.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceSetHumanPhone attr_accessor :phone @@ -64,7 +64,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceSetHumanPhone` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceSetHumanPhone` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -72,7 +72,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceSetHumanPhone`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceSetHumanPhone`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -214,7 +214,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_set_human_profile.rb b/lib/zitadel/client/models/user_service_set_human_profile.rb similarity index 97% rename from lib/zitadel-client/models/user_service_set_human_profile.rb rename to lib/zitadel/client/models/user_service_set_human_profile.rb index a2c97262..9f023728 100644 --- a/lib/zitadel-client/models/user_service_set_human_profile.rb +++ b/lib/zitadel/client/models/user_service_set_human_profile.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceSetHumanProfile attr_accessor :given_name @@ -94,7 +94,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceSetHumanProfile` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceSetHumanProfile` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -102,7 +102,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceSetHumanProfile`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceSetHumanProfile`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -364,7 +364,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_set_metadata_entry.rb b/lib/zitadel/client/models/user_service_set_metadata_entry.rb similarity index 96% rename from lib/zitadel-client/models/user_service_set_metadata_entry.rb rename to lib/zitadel/client/models/user_service_set_metadata_entry.rb index 55551fb3..a2be6e20 100644 --- a/lib/zitadel-client/models/user_service_set_metadata_entry.rb +++ b/lib/zitadel/client/models/user_service_set_metadata_entry.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceSetMetadataEntry attr_accessor :key @@ -57,7 +57,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceSetMetadataEntry` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceSetMetadataEntry` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -65,7 +65,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceSetMetadataEntry`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceSetMetadataEntry`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -248,7 +248,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_set_password.rb b/lib/zitadel/client/models/user_service_set_password.rb similarity index 97% rename from lib/zitadel-client/models/user_service_set_password.rb rename to lib/zitadel/client/models/user_service_set_password.rb index e4518b6d..80b40dfb 100644 --- a/lib/zitadel-client/models/user_service_set_password.rb +++ b/lib/zitadel/client/models/user_service_set_password.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceSetPassword attr_accessor :password @@ -65,7 +65,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceSetPassword` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceSetPassword` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -73,7 +73,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceSetPassword`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceSetPassword`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -266,7 +266,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_set_password_request.rb b/lib/zitadel/client/models/user_service_set_password_request.rb similarity index 96% rename from lib/zitadel-client/models/user_service_set_password_request.rb rename to lib/zitadel/client/models/user_service_set_password_request.rb index 11aa5fc9..5311477f 100644 --- a/lib/zitadel-client/models/user_service_set_password_request.rb +++ b/lib/zitadel/client/models/user_service_set_password_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceSetPasswordRequest attr_accessor :new_password @@ -61,7 +61,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceSetPasswordRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceSetPasswordRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -69,7 +69,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceSetPasswordRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceSetPasswordRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -257,7 +257,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_set_password_response.rb b/lib/zitadel/client/models/user_service_set_password_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_set_password_response.rb rename to lib/zitadel/client/models/user_service_set_password_response.rb index 07b9e922..75f9114d 100644 --- a/lib/zitadel-client/models/user_service_set_password_response.rb +++ b/lib/zitadel/client/models/user_service_set_password_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceSetPasswordResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceSetPasswordResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceSetPasswordResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceSetPasswordResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceSetPasswordResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_set_phone_request.rb b/lib/zitadel/client/models/user_service_set_phone_request.rb similarity index 96% rename from lib/zitadel-client/models/user_service_set_phone_request.rb rename to lib/zitadel/client/models/user_service_set_phone_request.rb index 98590b96..321ea1f4 100644 --- a/lib/zitadel-client/models/user_service_set_phone_request.rb +++ b/lib/zitadel/client/models/user_service_set_phone_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceSetPhoneRequest attr_accessor :phone @@ -64,7 +64,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceSetPhoneRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceSetPhoneRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -72,7 +72,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceSetPhoneRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceSetPhoneRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -230,7 +230,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_set_phone_response.rb b/lib/zitadel/client/models/user_service_set_phone_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_set_phone_response.rb rename to lib/zitadel/client/models/user_service_set_phone_response.rb index ebc2a88d..7538b765 100644 --- a/lib/zitadel-client/models/user_service_set_phone_response.rb +++ b/lib/zitadel/client/models/user_service_set_phone_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceSetPhoneResponse attr_accessor :details @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceSetPhoneResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceSetPhoneResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceSetPhoneResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceSetPhoneResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -177,7 +177,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_start_identity_provider_intent_request.rb b/lib/zitadel/client/models/user_service_start_identity_provider_intent_request.rb similarity index 95% rename from lib/zitadel-client/models/user_service_start_identity_provider_intent_request.rb rename to lib/zitadel/client/models/user_service_start_identity_provider_intent_request.rb index 184da9c9..e1a29887 100644 --- a/lib/zitadel-client/models/user_service_start_identity_provider_intent_request.rb +++ b/lib/zitadel/client/models/user_service_start_identity_provider_intent_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceStartIdentityProviderIntentRequest # ID for existing identity provider attr_accessor :idp_id @@ -61,7 +61,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceStartIdentityProviderIntentRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceStartIdentityProviderIntentRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -69,7 +69,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceStartIdentityProviderIntentRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceStartIdentityProviderIntentRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -215,7 +215,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_start_identity_provider_intent_response.rb b/lib/zitadel/client/models/user_service_start_identity_provider_intent_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_start_identity_provider_intent_response.rb rename to lib/zitadel/client/models/user_service_start_identity_provider_intent_response.rb index 38374968..85f784b7 100644 --- a/lib/zitadel-client/models/user_service_start_identity_provider_intent_response.rb +++ b/lib/zitadel/client/models/user_service_start_identity_provider_intent_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceStartIdentityProviderIntentResponse attr_accessor :details @@ -66,7 +66,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceStartIdentityProviderIntentResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceStartIdentityProviderIntentResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -74,7 +74,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceStartIdentityProviderIntentResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceStartIdentityProviderIntentResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -197,7 +197,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_state_query.rb b/lib/zitadel/client/models/user_service_state_query.rb similarity index 96% rename from lib/zitadel-client/models/user_service_state_query.rb rename to lib/zitadel/client/models/user_service_state_query.rb index 7017ecc0..e81039e0 100644 --- a/lib/zitadel-client/models/user_service_state_query.rb +++ b/lib/zitadel/client/models/user_service_state_query.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models # Query for users with a specific state. class UserServiceStateQuery attr_accessor :state @@ -75,7 +75,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceStateQuery` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceStateQuery` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -83,7 +83,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceStateQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceStateQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -208,7 +208,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_text_query_method.rb b/lib/zitadel/client/models/user_service_text_query_method.rb similarity index 93% rename from lib/zitadel-client/models/user_service_text_query_method.rb rename to lib/zitadel/client/models/user_service_text_query_method.rb index be815318..52a96305 100644 --- a/lib/zitadel-client/models/user_service_text_query_method.rb +++ b/lib/zitadel/client/models/user_service_text_query_method.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceTextQueryMethod TEXT_QUERY_METHOD_EQUALS = "TEXT_QUERY_METHOD_EQUALS".freeze TEXT_QUERY_METHOD_EQUALS_IGNORE_CASE = "TEXT_QUERY_METHOD_EQUALS_IGNORE_CASE".freeze @@ -40,7 +40,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if UserServiceTextQueryMethod.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::UserServiceTextQueryMethod" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::UserServiceTextQueryMethod" end end diff --git a/lib/zitadel-client/models/user_service_type.rb b/lib/zitadel/client/models/user_service_type.rb similarity index 89% rename from lib/zitadel-client/models/user_service_type.rb rename to lib/zitadel/client/models/user_service_type.rb index 76ea6010..3810ec4b 100644 --- a/lib/zitadel-client/models/user_service_type.rb +++ b/lib/zitadel/client/models/user_service_type.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceType TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED".freeze TYPE_HUMAN = "TYPE_HUMAN".freeze @@ -35,7 +35,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if UserServiceType.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::UserServiceType" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::UserServiceType" end end diff --git a/lib/zitadel-client/models/user_service_type_query.rb b/lib/zitadel/client/models/user_service_type_query.rb similarity index 96% rename from lib/zitadel-client/models/user_service_type_query.rb rename to lib/zitadel/client/models/user_service_type_query.rb index 695f6c4a..ba61c5b3 100644 --- a/lib/zitadel-client/models/user_service_type_query.rb +++ b/lib/zitadel/client/models/user_service_type_query.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models # Query for users with a specific type. class UserServiceTypeQuery attr_accessor :type @@ -75,7 +75,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceTypeQuery` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceTypeQuery` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -83,7 +83,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceTypeQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceTypeQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -208,7 +208,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_unlock_user_response.rb b/lib/zitadel/client/models/user_service_unlock_user_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_unlock_user_response.rb rename to lib/zitadel/client/models/user_service_unlock_user_response.rb index 23862cca..02b59081 100644 --- a/lib/zitadel-client/models/user_service_unlock_user_response.rb +++ b/lib/zitadel/client/models/user_service_unlock_user_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceUnlockUserResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceUnlockUserResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceUnlockUserResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceUnlockUserResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceUnlockUserResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_update_human_user_request.rb b/lib/zitadel/client/models/user_service_update_human_user_request.rb similarity index 96% rename from lib/zitadel-client/models/user_service_update_human_user_request.rb rename to lib/zitadel/client/models/user_service_update_human_user_request.rb index 990b0a3f..11618e09 100644 --- a/lib/zitadel-client/models/user_service_update_human_user_request.rb +++ b/lib/zitadel/client/models/user_service_update_human_user_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceUpdateHumanUserRequest attr_accessor :username @@ -68,7 +68,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceUpdateHumanUserRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceUpdateHumanUserRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -76,7 +76,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceUpdateHumanUserRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceUpdateHumanUserRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -232,7 +232,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_update_human_user_response.rb b/lib/zitadel/client/models/user_service_update_human_user_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_update_human_user_response.rb rename to lib/zitadel/client/models/user_service_update_human_user_response.rb index 3f250c1b..f026d4bf 100644 --- a/lib/zitadel-client/models/user_service_update_human_user_response.rb +++ b/lib/zitadel/client/models/user_service_update_human_user_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceUpdateHumanUserResponse attr_accessor :details @@ -60,7 +60,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceUpdateHumanUserResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceUpdateHumanUserResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -68,7 +68,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceUpdateHumanUserResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceUpdateHumanUserResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -186,7 +186,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_user.rb b/lib/zitadel/client/models/user_service_user.rb similarity index 96% rename from lib/zitadel-client/models/user_service_user.rb rename to lib/zitadel/client/models/user_service_user.rb index 4b42bbf5..c03797de 100644 --- a/lib/zitadel-client/models/user_service_user.rb +++ b/lib/zitadel/client/models/user_service_user.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceUser attr_accessor :user_id @@ -80,7 +80,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceUser` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceUser` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -88,7 +88,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceUser`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceUser`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -235,7 +235,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_user_field_name.rb b/lib/zitadel/client/models/user_service_user_field_name.rb similarity index 93% rename from lib/zitadel-client/models/user_service_user_field_name.rb rename to lib/zitadel/client/models/user_service_user_field_name.rb index edabe556..fd907e9e 100644 --- a/lib/zitadel-client/models/user_service_user_field_name.rb +++ b/lib/zitadel/client/models/user_service_user_field_name.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceUserFieldName USER_FIELD_NAME_UNSPECIFIED = "USER_FIELD_NAME_UNSPECIFIED".freeze USER_FIELD_NAME_USER_NAME = "USER_FIELD_NAME_USER_NAME".freeze @@ -42,7 +42,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if UserServiceUserFieldName.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::UserServiceUserFieldName" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::UserServiceUserFieldName" end end diff --git a/lib/zitadel-client/models/user_service_user_name_query.rb b/lib/zitadel/client/models/user_service_user_name_query.rb similarity index 96% rename from lib/zitadel-client/models/user_service_user_name_query.rb rename to lib/zitadel/client/models/user_service_user_name_query.rb index 44958948..3e83519a 100644 --- a/lib/zitadel-client/models/user_service_user_name_query.rb +++ b/lib/zitadel/client/models/user_service_user_name_query.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models # Query for users with a specific user name. class UserServiceUserNameQuery attr_accessor :user_name @@ -79,7 +79,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceUserNameQuery` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceUserNameQuery` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -87,7 +87,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceUserNameQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceUserNameQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -237,7 +237,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_user_state.rb b/lib/zitadel/client/models/user_service_user_state.rb similarity index 91% rename from lib/zitadel-client/models/user_service_user_state.rb rename to lib/zitadel/client/models/user_service_user_state.rb index 5521ebb0..69ca26c5 100644 --- a/lib/zitadel-client/models/user_service_user_state.rb +++ b/lib/zitadel/client/models/user_service_user_state.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceUserState USER_STATE_UNSPECIFIED = "USER_STATE_UNSPECIFIED".freeze USER_STATE_ACTIVE = "USER_STATE_ACTIVE".freeze @@ -38,7 +38,7 @@ def self.build_from_hash(value) # @return [String] The enum value def build_from_hash(value) return value if UserServiceUserState.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #ZitadelClient::Models::UserServiceUserState" + raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::UserServiceUserState" end end diff --git a/lib/zitadel-client/models/user_service_verify_email_request.rb b/lib/zitadel/client/models/user_service_verify_email_request.rb similarity index 96% rename from lib/zitadel-client/models/user_service_verify_email_request.rb rename to lib/zitadel/client/models/user_service_verify_email_request.rb index e1c70e88..1dd96760 100644 --- a/lib/zitadel-client/models/user_service_verify_email_request.rb +++ b/lib/zitadel/client/models/user_service_verify_email_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceVerifyEmailRequest # \"the verification code generated during the set email request\" attr_accessor :verification_code @@ -53,7 +53,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceVerifyEmailRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceVerifyEmailRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -61,7 +61,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceVerifyEmailRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceVerifyEmailRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -204,7 +204,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_verify_email_response.rb b/lib/zitadel/client/models/user_service_verify_email_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_verify_email_response.rb rename to lib/zitadel/client/models/user_service_verify_email_response.rb index 7d0ca810..dcc059f7 100644 --- a/lib/zitadel-client/models/user_service_verify_email_response.rb +++ b/lib/zitadel/client/models/user_service_verify_email_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceVerifyEmailResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceVerifyEmailResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceVerifyEmailResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceVerifyEmailResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceVerifyEmailResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_verify_invite_code_request.rb b/lib/zitadel/client/models/user_service_verify_invite_code_request.rb similarity index 96% rename from lib/zitadel-client/models/user_service_verify_invite_code_request.rb rename to lib/zitadel/client/models/user_service_verify_invite_code_request.rb index 7c8e0f42..4f6dd1b0 100644 --- a/lib/zitadel-client/models/user_service_verify_invite_code_request.rb +++ b/lib/zitadel/client/models/user_service_verify_invite_code_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceVerifyInviteCodeRequest # \"the verification code generated during the invite code request\" attr_accessor :verification_code @@ -53,7 +53,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceVerifyInviteCodeRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceVerifyInviteCodeRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -61,7 +61,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceVerifyInviteCodeRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceVerifyInviteCodeRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -204,7 +204,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_verify_invite_code_response.rb b/lib/zitadel/client/models/user_service_verify_invite_code_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_verify_invite_code_response.rb rename to lib/zitadel/client/models/user_service_verify_invite_code_response.rb index c1c25c41..f52dd29a 100644 --- a/lib/zitadel-client/models/user_service_verify_invite_code_response.rb +++ b/lib/zitadel/client/models/user_service_verify_invite_code_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceVerifyInviteCodeResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceVerifyInviteCodeResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceVerifyInviteCodeResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceVerifyInviteCodeResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceVerifyInviteCodeResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_verify_passkey_registration_request.rb b/lib/zitadel/client/models/user_service_verify_passkey_registration_request.rb similarity index 96% rename from lib/zitadel-client/models/user_service_verify_passkey_registration_request.rb rename to lib/zitadel/client/models/user_service_verify_passkey_registration_request.rb index 0b160225..59b65487 100644 --- a/lib/zitadel-client/models/user_service_verify_passkey_registration_request.rb +++ b/lib/zitadel/client/models/user_service_verify_passkey_registration_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceVerifyPasskeyRegistrationRequest # PublicKeyCredential Interface. Generated helper methods populate the field from JSON created by a WebauthN client. See also: https://www.w3.org/TR/webauthn/#publickeycredential attr_accessor :public_key_credential @@ -57,7 +57,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceVerifyPasskeyRegistrationRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceVerifyPasskeyRegistrationRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -65,7 +65,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceVerifyPasskeyRegistrationRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceVerifyPasskeyRegistrationRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -230,7 +230,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_verify_passkey_registration_response.rb b/lib/zitadel/client/models/user_service_verify_passkey_registration_response.rb similarity index 94% rename from lib/zitadel-client/models/user_service_verify_passkey_registration_response.rb rename to lib/zitadel/client/models/user_service_verify_passkey_registration_response.rb index cba88e61..bf7c42d9 100644 --- a/lib/zitadel-client/models/user_service_verify_passkey_registration_response.rb +++ b/lib/zitadel/client/models/user_service_verify_passkey_registration_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceVerifyPasskeyRegistrationResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceVerifyPasskeyRegistrationResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceVerifyPasskeyRegistrationResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceVerifyPasskeyRegistrationResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceVerifyPasskeyRegistrationResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_verify_phone_request.rb b/lib/zitadel/client/models/user_service_verify_phone_request.rb similarity index 96% rename from lib/zitadel-client/models/user_service_verify_phone_request.rb rename to lib/zitadel/client/models/user_service_verify_phone_request.rb index c38ae958..3ca9780d 100644 --- a/lib/zitadel-client/models/user_service_verify_phone_request.rb +++ b/lib/zitadel/client/models/user_service_verify_phone_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceVerifyPhoneRequest # \"the verification code generated during the set phone request\" attr_accessor :verification_code @@ -53,7 +53,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceVerifyPhoneRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceVerifyPhoneRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -61,7 +61,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceVerifyPhoneRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceVerifyPhoneRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -204,7 +204,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_verify_phone_response.rb b/lib/zitadel/client/models/user_service_verify_phone_response.rb similarity index 95% rename from lib/zitadel-client/models/user_service_verify_phone_response.rb rename to lib/zitadel/client/models/user_service_verify_phone_response.rb index 9d5c8093..c61c681b 100644 --- a/lib/zitadel-client/models/user_service_verify_phone_response.rb +++ b/lib/zitadel/client/models/user_service_verify_phone_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceVerifyPhoneResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceVerifyPhoneResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceVerifyPhoneResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceVerifyPhoneResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceVerifyPhoneResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_verify_t_o_t_p_registration_request.rb b/lib/zitadel/client/models/user_service_verify_t_o_t_p_registration_request.rb similarity index 95% rename from lib/zitadel-client/models/user_service_verify_t_o_t_p_registration_request.rb rename to lib/zitadel/client/models/user_service_verify_t_o_t_p_registration_request.rb index 215dc0b3..f1774297 100644 --- a/lib/zitadel-client/models/user_service_verify_t_o_t_p_registration_request.rb +++ b/lib/zitadel/client/models/user_service_verify_t_o_t_p_registration_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceVerifyTOTPRegistrationRequest # Code generated by TOTP app or device attr_accessor :code @@ -53,7 +53,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceVerifyTOTPRegistrationRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceVerifyTOTPRegistrationRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -61,7 +61,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceVerifyTOTPRegistrationRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceVerifyTOTPRegistrationRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -186,7 +186,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_verify_t_o_t_p_registration_response.rb b/lib/zitadel/client/models/user_service_verify_t_o_t_p_registration_response.rb similarity index 94% rename from lib/zitadel-client/models/user_service_verify_t_o_t_p_registration_response.rb rename to lib/zitadel/client/models/user_service_verify_t_o_t_p_registration_response.rb index 87464f4f..6e822258 100644 --- a/lib/zitadel-client/models/user_service_verify_t_o_t_p_registration_response.rb +++ b/lib/zitadel/client/models/user_service_verify_t_o_t_p_registration_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceVerifyTOTPRegistrationResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceVerifyTOTPRegistrationResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceVerifyTOTPRegistrationResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceVerifyTOTPRegistrationResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceVerifyTOTPRegistrationResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_verify_u2_f_registration_request.rb b/lib/zitadel/client/models/user_service_verify_u2_f_registration_request.rb similarity index 96% rename from lib/zitadel-client/models/user_service_verify_u2_f_registration_request.rb rename to lib/zitadel/client/models/user_service_verify_u2_f_registration_request.rb index 60667a33..22acce0a 100644 --- a/lib/zitadel-client/models/user_service_verify_u2_f_registration_request.rb +++ b/lib/zitadel/client/models/user_service_verify_u2_f_registration_request.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceVerifyU2FRegistrationRequest # PublicKeyCredential Interface. Generated helper methods populate the field from JSON created by a WebauthN client. See also: https://www.w3.org/TR/webauthn/#publickeycredential attr_accessor :public_key_credential @@ -57,7 +57,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceVerifyU2FRegistrationRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceVerifyU2FRegistrationRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -65,7 +65,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceVerifyU2FRegistrationRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceVerifyU2FRegistrationRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -230,7 +230,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/user_service_verify_u2_f_registration_response.rb b/lib/zitadel/client/models/user_service_verify_u2_f_registration_response.rb similarity index 94% rename from lib/zitadel-client/models/user_service_verify_u2_f_registration_response.rb rename to lib/zitadel/client/models/user_service_verify_u2_f_registration_response.rb index 34a7b125..72793fd1 100644 --- a/lib/zitadel-client/models/user_service_verify_u2_f_registration_response.rb +++ b/lib/zitadel/client/models/user_service_verify_u2_f_registration_response.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class UserServiceVerifyU2FRegistrationResponse attr_accessor :details @@ -52,7 +52,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::UserServiceVerifyU2FRegistrationResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceVerifyU2FRegistrationResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -60,7 +60,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::UserServiceVerifyU2FRegistrationResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceVerifyU2FRegistrationResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -168,7 +168,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/zitadelobjectv2_organization.rb b/lib/zitadel/client/models/zitadelobjectv2_organization.rb similarity index 95% rename from lib/zitadel-client/models/zitadelobjectv2_organization.rb rename to lib/zitadel/client/models/zitadelobjectv2_organization.rb index 1004fb0b..1e58f140 100644 --- a/lib/zitadel-client/models/zitadelobjectv2_organization.rb +++ b/lib/zitadel/client/models/zitadelobjectv2_organization.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class Zitadelobjectv2Organization attr_accessor :org_id @@ -56,7 +56,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::Zitadelobjectv2Organization` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::Zitadelobjectv2Organization` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -64,7 +64,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::Zitadelobjectv2Organization`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::Zitadelobjectv2Organization`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -177,7 +177,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel-client/models/zitadelorgv2_organization.rb b/lib/zitadel/client/models/zitadelorgv2_organization.rb similarity index 96% rename from lib/zitadel-client/models/zitadelorgv2_organization.rb rename to lib/zitadel/client/models/zitadelorgv2_organization.rb index 46f6ffa4..f8727a95 100644 --- a/lib/zitadel-client/models/zitadelorgv2_organization.rb +++ b/lib/zitadel/client/models/zitadelorgv2_organization.rb @@ -13,7 +13,7 @@ require 'date' require 'time' -module ZitadelClient::Models +module Zitadel::Client::Models class Zitadelorgv2Organization # Unique identifier of the organization. attr_accessor :id @@ -93,7 +93,7 @@ def self.openapi_nullable 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 `ZitadelClient::Models::Zitadelorgv2Organization` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::Zitadelorgv2Organization` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -101,7 +101,7 @@ def initialize(attributes = {}) 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 `ZitadelClient::Models::Zitadelorgv2Organization`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::Zitadelorgv2Organization`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -231,7 +231,7 @@ def self._deserialize(type, value) # 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 = ZitadelClient::Models.const_get(type) + 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) diff --git a/lib/zitadel/client/utils/url_util.rb b/lib/zitadel/client/utils/url_util.rb new file mode 100644 index 00000000..72832900 --- /dev/null +++ b/lib/zitadel/client/utils/url_util.rb @@ -0,0 +1,25 @@ +# frozen_string_literal: true + +require 'uri' + +module Zitadel + module Client + module Utils + # Utility module for URL related operations. + # This is a placeholder for UrlUtil, which provides URL utility methods. + class UrlUtil + ## + # Builds the hostname for the provided host. + # + # @param host [String] the base URL for the service. + # @return [String] the fully qualified hostname (defaults to HTTPS if no scheme is provided). + # + def self.build_hostname(host) + uri = URI.parse(host) + host = "https://#{host}" unless uri.scheme + host + end + end + end + end +end diff --git a/lib/zitadel/client/version.rb b/lib/zitadel/client/version.rb new file mode 100644 index 00000000..72f79ace --- /dev/null +++ b/lib/zitadel/client/version.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +module Zitadel + module Client + VERSION = '1.4.2' + end +end diff --git a/lib/zitadel/client/zitadel.rb b/lib/zitadel/client/zitadel.rb new file mode 100644 index 00000000..3e02f1e9 --- /dev/null +++ b/lib/zitadel/client/zitadel.rb @@ -0,0 +1,84 @@ +# frozen_string_literal: true + +module Zitadel + module Client + # Main entry point for the Zitadel SDK. + # + # Initializes and configures the SDK with the provided authentication strategy. + # Sets up service APIs for interacting with various Zitadel features. + class Zitadel + attr_reader :features, + :idps, + :oidc, + :organizations, + :sessions, + :settings, + :users, + :saml + + # Initialize the Zitadel SDK. + # + # @param authenticator [Authenticator] the authentication strategy to use + # rubocop:disable Metrics/MethodLength + def initialize(authenticator) + # noinspection RubyArgCount + @configuration = Configuration.new(authenticator) + yield @configuration if block_given? + + client = ApiClient.new(@configuration) + + @features = Api::FeatureServiceApi.new(client) + @idps = Api::IdentityProviderServiceApi.new(client) + @oidc = Api::OIDCServiceApi.new(client) + @organizations = Api::OrganizationServiceApi.new(client) + @sessions = Api::SessionServiceApi.new(client) + @settings = Api::SettingsServiceApi.new(client) + @users = Api::UserServiceApi.new(client) + @saml = Api::SAMLServiceApi.new(client) + end + + # rubocop:enable Metrics/MethodLength + + class << self + # @!group Authentication Entry Points + + # Initialize the SDK with a Personal Access Token (PAT). + # + # @param host [String] API URL (e.g. "https://api.zitadel.example.com"). + # @param access_token [String] Personal Access Token for Bearer authentication. + # @return [Zitadel] SDK client configured with PAT authentication. + # @see https://zitadel.com/docs/guides/integrate/service-users/personal-access-token + def with_access_token(host, access_token) + new(Auth::PersonalAccessTokenAuthenticator.new(host, access_token)) + end + + # Initialize the SDK using OAuth2 Client Credentials flow. + # + # @param host [String] API URL. + # @param client_id [String] OAuth2 client identifier. + # @param client_secret [String] OAuth2 client secret. + # @return [Zitadel] SDK client with automatic token acquisition & refresh. + # @see https://zitadel.com/docs/guides/integrate/service-users/client-credentials + def with_client_credentials(host, client_id, client_secret) + new( + Auth::ClientCredentialsAuthenticator + .builder(host, client_id, client_secret) + .build + ) + end + + # Initialize the SDK via Private Key JWT assertion. + # + # @param host [String] API URL. + # @param key_file [String] Path to service account JSON/PEM key file. + # @return [Zitadel] SDK client using JWT assertion for secure, secret-less auth. + # @see https://zitadel.com/docs/guides/integrate/service-users/private-key-jwt + def with_private_key(host, key_file) + new(Auth::WebTokenAuthenticator.from_json(host, key_file)) + end + + # @!endgroup + end + end + end +end diff --git a/lib/zitadel/client/zitadel_error.rb b/lib/zitadel/client/zitadel_error.rb new file mode 100644 index 00000000..46d534f8 --- /dev/null +++ b/lib/zitadel/client/zitadel_error.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +module Zitadel + module Client + ## + # Base error for all Zitadel client exceptions. + class ZitadelError < StandardError + end + end +end diff --git a/lib/zitadel_client.rb b/lib/zitadel_client.rb index 9c7c7245..b0603607 100644 --- a/lib/zitadel_client.rb +++ b/lib/zitadel_client.rb @@ -6,7 +6,7 @@ Warning.ignore(:method_redefined, __dir__) -# Main entrypoint for the ZitadelClient Ruby SDK. +# Main entrypoint for the Zitadel::Client Ruby SDK. # # This module encapsulates all functionality for authenticating with and accessing # Zitadel's identity and access management APIs. @@ -14,15 +14,29 @@ # Usage: # require 'zitadel-client' # -# client = ZitadelClient::SomeService.new(...) +# client = Zitadel::Client::SomeService.new(...) # -# For more details, see: https://github.com/zitadel/zitadel-client-ruby +# For more details, see: https://github.com/zitadel/zitadel-ruby # -module ZitadelClient +module Zitadel + # Main entrypoint for the Zitadel::Client Ruby SDK. + # + # This module encapsulates all functionality for authenticating with and accessing + # Zitadel's identity and access management APIs. + # + # Usage: + # require 'zitadel-client' + # + # client = Zitadel::Client::SomeService.new(...) + # + # For more details, see: https://github.com/zitadel/zitadel-ruby + # + module Client + end end loader = Zeitwerk::Loader.new -loader.inflector.inflect('version' => 'VERSION') loader.tag = File.basename(__FILE__, '.rb') -loader.push_dir("#{__dir__}/zitadel-client", namespace: ZitadelClient) +loader.push_dir("#{__dir__}/zitadel", namespace: Zitadel) +loader.inflector.inflect('version' => 'VERSION') loader.setup diff --git a/qodana.yaml b/qodana.yaml index 76296fb6..c18cd1ff 100644 --- a/qodana.yaml +++ b/qodana.yaml @@ -6,7 +6,7 @@ profile: exclude: - name: All paths: - - lib/zitadel-client/api - - lib/zitadel-client/models + - lib/zitadel/client/api + - lib/zitadel/client/models linter: jetbrains/qodana-php:2025.1 diff --git a/sig/lib.rbs b/sig/lib.rbs index 7edf2bea..d0d40fec 100644 --- a/sig/lib.rbs +++ b/sig/lib.rbs @@ -1,291 +1,294 @@ -module ZitadelClient +module Zitadel - VERSION: String + module Client - module Models + VERSION: String - end - - module Utils - class UrlUtil - - def self.build_hostname: (String) -> String - end - end - - module Api - class FeatureServiceApi + module Models - def initialize: (ApiClient) -> void end - class IdentityProviderServiceApi - - def initialize: (ApiClient) -> void - end + module Utils + class UrlUtil - class OIDCServiceApi - - def initialize: (ApiClient) -> void + def self.build_hostname: (String) -> String + end end - class OrganizationServiceApi + module Api + class FeatureServiceApi - def initialize: (ApiClient) -> void - end + def initialize: (ApiClient) -> void + end - class SessionServiceApi + class IdentityProviderServiceApi - def initialize: (ApiClient) -> void - end + def initialize: (ApiClient) -> void + end - class SettingsServiceApi + class OIDCServiceApi - def initialize: (ApiClient) -> void - end + def initialize: (ApiClient) -> void + end - class UserServiceApi + class OrganizationServiceApi - def initialize: (ApiClient) -> void - end + def initialize: (ApiClient) -> void + end - class SAMLServiceApi + class SessionServiceApi - def initialize: (ApiClient) -> void - end - end + def initialize: (ApiClient) -> void + end - class Configuration - USER_AGENT: String + class SettingsServiceApi - @@default: Configuration + def initialize: (ApiClient) -> void + end - attr_reader authenticator: Auth::Authenticator - attr_accessor debugging: bool - attr_accessor logger: untyped - attr_accessor temp_folder_path: String - attr_accessor timeout: Integer - attr_accessor client_side_validation: bool - attr_accessor user_agent: String - attr_accessor verify_ssl: bool - attr_accessor verify_ssl_host: bool - attr_accessor ssl_ca_cert: String? - attr_accessor cert_file: String? - attr_accessor key_file: String? - attr_accessor params_encoding: Symbol? + class UserServiceApi - def self.default: () -> Configuration + def initialize: (ApiClient) -> void + end - def initialize: (?Auth::Authenticator) ?{ (Configuration) -> untyped } -> void + class SAMLServiceApi - def configure: () ?{ (Configuration) -> untyped } -> void + def initialize: (ApiClient) -> void + end + end - end + class Configuration + USER_AGENT: String - class ApiClient + @@default: Configuration - @config: Configuration - @default_headers: Hash[String, String] - @user_agent: String + attr_reader authenticator: Auth::Authenticator + attr_accessor debugging: bool + attr_accessor logger: untyped + attr_accessor temp_folder_path: String + attr_accessor timeout: Integer + attr_accessor client_side_validation: bool + attr_accessor user_agent: String + attr_accessor verify_ssl: bool + attr_accessor verify_ssl_host: bool + attr_accessor ssl_ca_cert: String? + attr_accessor cert_file: String? + attr_accessor key_file: String? + attr_accessor params_encoding: Symbol? - attr_accessor config: Configuration + def self.default: () -> Configuration - attr_accessor default_headers: Hash[String, String] + def initialize: (?Auth::Authenticator) ?{ (Configuration) -> untyped } -> void - def initialize: (?Configuration) -> void + def configure: () ?{ (Configuration) -> untyped } -> void - def self.default: () -> untyped + end - def call_api: (untyped http_method, untyped path, ?::Hash[untyped, untyped] opts) -> ::Array[untyped] + class ApiClient - def build_request: (Symbol http_method, String path, Hash[Symbol, untyped] opts) -> Typhoeus::Request + @config: Configuration + @default_headers: Hash[String, String] + @user_agent: String - def build_request_body: (untyped header_params, untyped form_params, untyped body) -> untyped + attr_accessor config: Configuration - def download_file: (untyped request) ?{ (untyped) -> untyped } -> untyped + attr_accessor default_headers: Hash[String, String] - def ensure_tempfile: (::Tempfile?) -> ::Tempfile + def initialize: (?Configuration) -> void - def json_mime?: (untyped mime) -> untyped + def self.default: () -> untyped - def deserialize: (untyped response, untyped return_type) -> (nil | untyped) + def call_api: (untyped http_method, untyped path, ?::Hash[untyped, untyped] opts) -> ::Array[untyped] - def convert_to_type: (untyped data, untyped return_type) -> (nil | untyped) + def build_request: (Symbol http_method, String path, Hash[Symbol, untyped] opts) -> Typhoeus::Request - def sanitize_filename: (untyped filename) -> untyped + def build_request_body: (untyped header_params, untyped form_params, untyped body) -> untyped - def select_header_accept: (untyped accepts) -> (nil | untyped) + def download_file: (untyped request) ?{ (untyped) -> untyped } -> untyped - def select_header_content_type: (untyped content_types) -> (nil | untyped) + def ensure_tempfile: (::Tempfile?) -> ::Tempfile - def object_to_http_body: (untyped model) -> untyped + def json_mime?: (untyped mime) -> untyped - def object_to_hash: (untyped obj) -> untyped + def deserialize: (untyped response, untyped return_type) -> (nil | untyped) - def build_collection_param: (untyped param, untyped collection_format) -> untyped - end + def convert_to_type: (untyped data, untyped return_type) -> (nil | untyped) - class ZitadelError < StandardError - def initialize: (String) -> void - end + def sanitize_filename: (untyped filename) -> untyped - # - # Represents an HTTP error returned from the Zitadel API. - # - # This class captures the HTTP status code, headers, and body, - # and provides a helpful string representation for debugging. - # - class ApiError < ZitadelError - attr_reader code: Integer - attr_reader response_headers: Hash[String, Array[String]] - attr_reader response_body: String | Typhoeus::Response - - def initialize: (Integer, Hash[String, Array[String]], String | Typhoeus::Response) -> void - end + def select_header_accept: (untyped accepts) -> (nil | untyped) - module Auth + def select_header_content_type: (untyped content_types) -> (nil | untyped) - class Authenticator + def object_to_http_body: (untyped model) -> untyped - @host: String + def object_to_hash: (untyped obj) -> untyped - attr_reader host: String + def build_collection_param: (untyped param, untyped collection_format) -> untyped + end + class ZitadelError < StandardError def initialize: (String) -> void - - def auth_headers: () -> Hash[String, String] end - class ClientCredentialsAuthenticator < OAuthAuthenticator + # + # Represents an HTTP error returned from the Zitadel API. + # + # This class captures the HTTP status code, headers, and body, + # and provides a helpful string representation for debugging. + # + class ApiError < ZitadelError + attr_reader code: Integer + attr_reader response_headers: Hash[String, Array[String]] + attr_reader response_body: String | Typhoeus::Response + + def initialize: (Integer, Hash[String, Array[String]], String | Typhoeus::Response) -> void + end - def initialize: (OpenId, String, String, Set[String]) -> void + module Auth - def get_grant: (OAuth2::Client, String) -> OAuth2::AccessToken + class Authenticator - def self.builder: (String, String, String) -> ClientCredentialsAuthenticatorBuilder + @host: String - class ClientCredentialsAuthenticatorBuilder < OAuthAuthenticatorBuilder - @client_id: String - @client_secret: String + attr_reader host: String - def initialize: (String, String, String) -> void + def initialize: (String) -> void - def build: -> ClientCredentialsAuthenticator + def auth_headers: () -> Hash[String, String] end - end + class ClientCredentialsAuthenticator < OAuthAuthenticator - class NoAuthAuthenticator < Authenticator + def initialize: (OpenId, String, String, Set[String]) -> void - def initialize: (?String) -> void + def get_grant: (OAuth2::Client, String) -> OAuth2::AccessToken - def auth_headers: () -> Hash[String, String] - end + def self.builder: (String, String, String) -> ClientCredentialsAuthenticatorBuilder - class OAuthAuthenticatorBuilder - @auth_scopes: Set[String] - @open_id: OpenId + class ClientCredentialsAuthenticatorBuilder < OAuthAuthenticatorBuilder + @client_id: String + @client_secret: String - attr_reader open_id: OpenId - attr_reader auth_scopes: Set[String] + def initialize: (String, String, String) -> void - def initialize: (String) -> void + def build: -> ClientCredentialsAuthenticator + end - def scopes: -> untyped - end + end - class OAuthAuthenticator < Authenticator - @auth_session: OAuth2::Client - @open_id: OpenId - @token: OAuth2::AccessToken | nil - @auth_scopes: String + class NoAuthAuthenticator < Authenticator - def initialize: (OpenId, Set[String], OAuth2::Client) -> void + def initialize: (?String) -> void - def auth_token: () -> String + def auth_headers: () -> Hash[String, String] + end - def auth_headers: () -> Hash[String, String] + class OAuthAuthenticatorBuilder + @auth_scopes: Set[String] + @open_id: OpenId - def get_grant: (OAuth2::Client, String) -> OAuth2::AccessToken + attr_reader open_id: OpenId + attr_reader auth_scopes: Set[String] - def refresh_token: () -> OAuth2::AccessToken - end + def initialize: (String) -> void - class OpenId - @host_endpoint: String - @token_endpoint: String + def scopes: -> untyped + end - attr_accessor host_endpoint: String - attr_accessor token_endpoint: String + class OAuthAuthenticator < Authenticator + @auth_session: OAuth2::Client + @open_id: OpenId + @token: OAuth2::AccessToken | nil + @auth_scopes: String - def initialize: (String) -> void + def initialize: (OpenId, Set[String], OAuth2::Client) -> void - def self.build_well_known_url: (String) -> String - end + def auth_token: () -> String - class PersonalAccessTokenAuthenticator < Authenticator - @token: String + def auth_headers: () -> Hash[String, String] - def initialize: (String, String) -> void + def get_grant: (OAuth2::Client, String) -> OAuth2::AccessToken - def auth_headers: -> Hash[String, String] - end + def refresh_token: () -> OAuth2::AccessToken + end + + class OpenId + @host_endpoint: String + @token_endpoint: String - class WebTokenAuthenticator < OAuthAuthenticator - @jwt_algorithm: String - @jwt_audience: String - @jwt_issuer: String - @jwt_lifetime: Integer - @jwt_subject: String - @key_id: String? - @private_key: String + attr_accessor host_endpoint: String + attr_accessor token_endpoint: String - def self.builder: (String, String, String) -> WebTokenAuthenticatorBuilder + def initialize: (String) -> void - def self.from_json: (String, String) -> WebTokenAuthenticator + def self.build_well_known_url: (String) -> String + end - def get_grant: (OAuth2::Client, String) -> OAuth2::AccessToken + class PersonalAccessTokenAuthenticator < Authenticator + @token: String - def initialize: (OpenId, Set[String], String, String, String, String | OpenSSL::PKey::PKey, ?jwt_lifetime: Integer, ?jwt_algorithm: String, ?key_id: String?) -> void + def initialize: (String, String) -> void - class WebTokenAuthenticatorBuilder < OAuthAuthenticatorBuilder + def auth_headers: -> Hash[String, String] + end + + class WebTokenAuthenticator < OAuthAuthenticator + @jwt_algorithm: String @jwt_audience: String @jwt_issuer: String @jwt_lifetime: Integer @jwt_subject: String - @key_id: String + @key_id: String? @private_key: String - def initialize: (String, String, String, String, String) -> void + def self.builder: (String, String, String) -> WebTokenAuthenticatorBuilder + + def self.from_json: (String, String) -> WebTokenAuthenticator + + def get_grant: (OAuth2::Client, String) -> OAuth2::AccessToken - def build: -> WebTokenAuthenticator + def initialize: (OpenId, Set[String], String, String, String, String | OpenSSL::PKey::PKey, ?jwt_lifetime: Integer, ?jwt_algorithm: String, ?key_id: String?) -> void - def key_identifier: (String) -> self + class WebTokenAuthenticatorBuilder < OAuthAuthenticatorBuilder + @jwt_audience: String + @jwt_issuer: String + @jwt_lifetime: Integer + @jwt_subject: String + @key_id: String + @private_key: String - def token_lifetime_seconds: (Integer) -> self + def initialize: (String, String, String, String, String) -> void + + def build: -> WebTokenAuthenticator + + def key_identifier: (String) -> self + + def token_lifetime_seconds: (Integer) -> self + end end end - end - class Zitadel - def self.with_access_token: (String, String) -> Zitadel + class Zitadel + def self.with_access_token: (String, String) -> Zitadel - def self.with_client_credentials: (String, String, String) -> Zitadel + def self.with_client_credentials: (String, String, String) -> Zitadel - def self.with_private_key: (String, String) -> Zitadel + def self.with_private_key: (String, String) -> Zitadel - attr_reader configuration: Configuration - attr_reader features: untyped - attr_reader idps: untyped - attr_reader oidc: untyped - attr_reader organizations: untyped - attr_reader saml: untyped - attr_reader sessions: untyped - attr_reader settings: untyped - attr_reader users: untyped + attr_reader configuration: Configuration + attr_reader features: untyped + attr_reader idps: untyped + attr_reader oidc: untyped + attr_reader organizations: untyped + attr_reader saml: untyped + attr_reader sessions: untyped + attr_reader settings: untyped + attr_reader users: untyped - def initialize: (Auth::Authenticator) ?{ (Configuration) -> void } -> void + def initialize: (Auth::Authenticator) ?{ (Configuration) -> void } -> void - end + end + end end diff --git a/spec/auth/use_access_token_spec.rb b/spec/auth/use_access_token_spec.rb index 87f90ea3..e8e621ba 100644 --- a/spec/auth/use_access_token_spec.rb +++ b/spec/auth/use_access_token_spec.rb @@ -17,7 +17,7 @@ let(:base_url) { ENV.fetch('BASE_URL') { raise 'BASE_URL not set' } } let(:valid_token) { ENV.fetch('AUTH_TOKEN') { raise 'AUTH_TOKEN not set' } } let(:zitadel_client) do - ZitadelClient::Zitadel.with_access_token( + Zitadel::Client::Zitadel.with_access_token( base_url, valid_token ) @@ -29,11 +29,11 @@ end it 'raises an ApiError with invalid token' do - client = ZitadelClient::Zitadel.with_access_token( + client = Zitadel::Client::Zitadel.with_access_token( base_url, 'invalid' ) - assert_raises(ZitadelClient::ZitadelError) do + assert_raises(Zitadel::Client::ZitadelError) do client.settings.settings_service_get_general_settings end end diff --git a/spec/auth/use_client_credentials_spec.rb b/spec/auth/use_client_credentials_spec.rb index 3a6c1418..22d3e8b3 100644 --- a/spec/auth/use_client_credentials_spec.rb +++ b/spec/auth/use_client_credentials_spec.rb @@ -18,7 +18,7 @@ let(:client_id) { ENV.fetch('CLIENT_ID') { raise 'CLIENT_ID not set' } } let(:client_secret) { ENV.fetch('CLIENT_SECRET') { raise 'CLIENT_SECRET not set' } } let(:zitadel_client) do - ZitadelClient::Zitadel.with_client_credentials( + Zitadel::Client::Zitadel.with_client_credentials( base_url, client_id, client_secret @@ -31,12 +31,12 @@ end it 'raises an ApiError with invalid credentials' do - client = ZitadelClient::Zitadel.with_client_credentials( + client = Zitadel::Client::Zitadel.with_client_credentials( base_url, 'invalid', 'invalid' ) - assert_raises(ZitadelClient::ZitadelError) do + assert_raises(Zitadel::Client::ZitadelError) do client.settings.settings_service_get_general_settings end end diff --git a/spec/auth/use_private_key_spec.rb b/spec/auth/use_private_key_spec.rb index ae35e95a..490ae015 100644 --- a/spec/auth/use_private_key_spec.rb +++ b/spec/auth/use_private_key_spec.rb @@ -24,7 +24,7 @@ file end let(:zitadel_client) do - ZitadelClient::Zitadel.with_private_key( + Zitadel::Client::Zitadel.with_private_key( base_url, jwt_file.path ) @@ -36,11 +36,11 @@ end it 'raises an ApiError with invalid private key' do - client = ZitadelClient::Zitadel.with_private_key( + client = Zitadel::Client::Zitadel.with_private_key( 'https://zitadel.cloud', jwt_file.path ) - assert_raises(ZitadelClient::ZitadelError) do + assert_raises(Zitadel::Client::ZitadelError) do client.settings.settings_service_get_general_settings end end diff --git a/spec/check_session_service_spec.rb b/spec/check_session_service_spec.rb index 9daa6f58..10effab6 100644 --- a/spec/check_session_service_spec.rb +++ b/spec/check_session_service_spec.rb @@ -22,16 +22,16 @@ let(:base_url) { ENV.fetch('BASE_URL') { raise 'BASE_URL not set' } } let(:valid_token) { ENV.fetch('AUTH_TOKEN') { raise 'AUTH_TOKEN not set' } } let(:client) do - ZitadelClient::Zitadel.with_access_token( + Zitadel::Client::Zitadel.with_access_token( base_url, valid_token ) end before do - req = ZitadelClient::Models::SessionServiceCreateSessionRequest.new( - checks: ZitadelClient::Models::SessionServiceChecks.new( - user: ZitadelClient::Models::SessionServiceCheckUser.new(login_name: 'johndoe') + req = Zitadel::Client::Models::SessionServiceCreateSessionRequest.new( + checks: Zitadel::Client::Models::SessionServiceChecks.new( + user: Zitadel::Client::Models::SessionServiceCheckUser.new(login_name: 'johndoe') ), lifetime: '18000s' ) @@ -41,7 +41,7 @@ end after do - delete_req = ZitadelClient::Models::SessionServiceDeleteSessionRequest.new + delete_req = Zitadel::Client::Models::SessionServiceDeleteSessionRequest.new begin client.sessions.session_service_delete_session(@session_id, delete_req) rescue StandardError @@ -58,7 +58,7 @@ end it 'raises an error when retrieving a non-existent session' do - assert_raises(ZitadelClient::ApiError) do + assert_raises(Zitadel::Client::ApiError) do client.sessions.session_service_get_session( SecureRandom.uuid, session_token: @session_token @@ -67,13 +67,13 @@ end it 'includes the created session when listing all sessions' do - request = ZitadelClient::Models::SessionServiceListSessionsRequest.new(queries: []) + request = Zitadel::Client::Models::SessionServiceListSessionsRequest.new(queries: []) response = client.sessions.session_service_list_sessions(request) _(response.sessions.map(&:id)).must_include @session_id end it 'updates the session lifetime and returns a new token' do - request = ZitadelClient::Models::SessionServiceSetSessionRequest.new(lifetime: '36000s') + request = Zitadel::Client::Models::SessionServiceSetSessionRequest.new(lifetime: '36000s') response = client.sessions.session_service_set_session( @session_id, request diff --git a/spec/check_user_service_spec.rb b/spec/check_user_service_spec.rb index d304d30e..6ad4f4dd 100644 --- a/spec/check_user_service_spec.rb +++ b/spec/check_user_service_spec.rb @@ -22,20 +22,20 @@ let(:base_url) { ENV.fetch('BASE_URL') { raise 'BASE_URL not set' } } let(:valid_token) { ENV.fetch('AUTH_TOKEN') { raise 'AUTH_TOKEN not set' } } let(:client) do - ZitadelClient::Zitadel.with_access_token( + Zitadel::Client::Zitadel.with_access_token( base_url, valid_token ) end before do - request = ZitadelClient::Models::UserServiceAddHumanUserRequest.new( + request = Zitadel::Client::Models::UserServiceAddHumanUserRequest.new( username: SecureRandom.hex, - profile: ZitadelClient::Models::UserServiceSetHumanProfile.new( + profile: Zitadel::Client::Models::UserServiceSetHumanProfile.new( given_name: 'John', family_name: 'Doe' ), - email: ZitadelClient::Models::UserServiceSetHumanEmail.new( + email: Zitadel::Client::Models::UserServiceSetHumanEmail.new( email: "johndoe#{SecureRandom.hex}@example.com" ) ) @@ -55,21 +55,21 @@ end it 'raises an error when retrieving a non-existent user' do - assert_raises(ZitadelClient::ApiError) do + assert_raises(Zitadel::Client::ApiError) do client.users.user_service_get_user_by_id(SecureRandom.uuid) end end it 'includes the created user when listing all users' do - request = ZitadelClient::Models::UserServiceListUsersRequest.new(queries: []) + request = Zitadel::Client::Models::UserServiceListUsersRequest.new(queries: []) response = client.users.user_service_list_users(request) _(response.result.map(&:user_id)).must_include @user.user_id end it "updates the user's email and reflects the change" do new_email = "updated#{SecureRandom.hex}@example.com" - update_req = ZitadelClient::Models::UserServiceUpdateHumanUserRequest.new( - email: ZitadelClient::Models::UserServiceSetHumanEmail.new(email: new_email) + update_req = Zitadel::Client::Models::UserServiceUpdateHumanUserRequest.new( + email: Zitadel::Client::Models::UserServiceSetHumanEmail.new(email: new_email) ) client.users.user_service_update_human_user(@user.user_id, update_req) diff --git a/test/zitadel-client/api_client_test.rb b/test/zitadel-client/api_client_test.rb deleted file mode 100644 index 81972e9f..00000000 --- a/test/zitadel-client/api_client_test.rb +++ /dev/null @@ -1,97 +0,0 @@ -# frozen_string_literal: true - -# API Client Test -# -# This test verifies that the ApiClient correctly builds the endpoint path using the base URL provided by -# the authenticator and includes the Personal Access Token in the Authorization header. -# -# A WireMock server is started using TestContainers and configured via a JSON mapping to simulate the -# response for '/your/endpoint'. The test then invokes the API using an ApiClient that utilizes a -# PersonalAccessTokenAuthenticator and asserts that the API response matches the expected output. - -# noinspection RubyResolve -require 'test_helper' -require 'minitest/autorun' -require 'minitest/hooks/test' -require 'testcontainers' -require 'net/http' -require 'json' -require 'logger' - -module ZitadelClient - class ApiClientTest < Minitest::Test - include Minitest::Hooks - - def before_all - super - @mock_server = Testcontainers::DockerContainer - .new('wiremock/wiremock:3.12.1') - .with_exposed_port(8080) - .start - - @mock_server.wait_for_http(container_port: 8080, path: '/', status: 403) - # noinspection HttpUrlsUsage - @oauth_host = "http://#{@mock_server.host}:#{@mock_server.mapped_port(8080)}" - end - - def after_all - @mock_server&.stop - @mock_server&.remove - super - end - - ## - # Test the ApiClient#call_api method to ensure that the correct headers and content type - # are applied, and that a GET request to '/your/endpoint' returns the expected response. - # - # @return [void] - # rubocop:disable Minitest/MultipleAssertions,Metrics/MethodLength - def test_assert_headers_and_content_type - mapping_uri = URI("#{@oauth_host}/__admin/mappings") - http = Net::HTTP.new(mapping_uri.host || raise('Host is missing'), mapping_uri.port) - mapping_request = Net::HTTP::Post.new(mapping_uri, { 'Content-Type' => 'application/json' }) - mapping_request.body = JSON.generate( - { - request: { - method: 'GET', - url: '/your/endpoint', - headers: { - 'Authorization' => { - equalTo: 'Bearer mm' - }, - 'User-Agent' => { - matches: '^zitadel-client/\\d\\.\\d\\.\\d \\(lang=ruby; lang_version=[^;]+; os=[^;]+; arch=[^;]+\\)$' - } - } - }, - response: { - status: 200, - body: '{"key": "value"}', - headers: { - 'Content-Type' => 'application/json' - } - } - } - ) - mapping_response = http.request(mapping_request) - - assert_includes [200, 201], mapping_response.code.to_i, - "Mapping creation failed with status #{mapping_response.code}" - - config = Configuration.new(Auth::PersonalAccessTokenAuthenticator.new(@oauth_host, 'mm')) - api_client = ZitadelClient::ApiClient.new(config) - data, status, headers = api_client.call_api('GET', '/your/endpoint', return_type: 'Object') - - assert_equal 200, status, "Expected status 200, but got #{status}" - assert_instance_of(Hash, data, 'Expected response data to be a Hash') - assert_equal 'application/json', headers['Content-Type'], - "Expected Content-Type header to be 'application/json'" - expected = { 'key' => 'value' } - response_data = data.transform_keys(&:to_s) - - assert_equal expected, response_data, "Expected response body #{expected}, but got #{data}" - end - - # rubocop:enable Minitest/MultipleAssertions,Metrics/MethodLength - end -end diff --git a/test/zitadel-client/api_error_test.rb b/test/zitadel-client/api_error_test.rb deleted file mode 100644 index ff1a39e0..00000000 --- a/test/zitadel-client/api_error_test.rb +++ /dev/null @@ -1,21 +0,0 @@ -# frozen_string_literal: true - -require 'minitest/autorun' - -module ZitadelClient - class ApiErrorTest < Minitest::Test - # rubocop:disable Minitest/MultipleAssertions - def test_api_error_attributes - headers = { 'H' => ['v'] } - err = ZitadelClient::ApiError.new(418, headers, 'body') - - assert_kind_of ZitadelClient::ZitadelError, err - assert_equal 'Error 418', err.message - assert_equal 418, err.code - assert_equal headers, err.response_headers - assert_equal 'body', err.response_body - end - - # rubocop:enable Minitest/MultipleAssertions - end -end diff --git a/test/zitadel-client/auth/client_credentials_authenticator_test.rb b/test/zitadel-client/auth/client_credentials_authenticator_test.rb deleted file mode 100644 index 3e21223c..00000000 --- a/test/zitadel-client/auth/client_credentials_authenticator_test.rb +++ /dev/null @@ -1,118 +0,0 @@ -# frozen_string_literal: true - -# Test for ClientCredentialsAuthenticator to verify token refresh functionality. -# Extends the base OAuthAuthenticatorTest class. -# -# Usage: -# bundle exec ruby test/auth/client_credentials_authenticator_test.rb - -# noinspection RubyResolve -require 'test_helper' -require 'minitest/autorun' -require 'time' -require_relative 'oauth_authenticator_test' - -module ZitadelClient - module Auth - ## - # Test suite for the ClientCredentialsAuthenticator class. - # - # This suite verifies that the authenticator correctly builds tokens, - # handles refresh logic, and respects configuration values passed to its builder. - # - # @example - # authenticator = ClientCredentialsAuthenticator.builder(oauth_host, "client-id", "secret") - # .scopes("openid", "foo") - # .build - # # use authenticator methods to verify token refresh functionality - # - class ClientCredentialsAuthenticatorTest < OAuthAuthenticatorTest - def setup - @authenticator = ClientCredentialsAuthenticator - .builder(oauth_host, 'dummy-client', 'dummy-secret') - .scopes('openid', 'foo') - .build - end - - ## - # @return [void] - # - # Ensures the generated access token is present and not empty. - # - # This verifies that the authenticator is capable of producing - # a valid access token under normal conditions. - def test_access_token_is_not_empty - token = @authenticator.send(:auth_token) - - refute_nil token - refute_empty token - end - - ## - # @return [void] - # - # Validates that the Authorization header contains the correct Bearer token. - # - # This ensures that consumers of the authenticator can retrieve properly - # formatted headers for authenticated HTTP requests. - def test_auth_headers_contains_bearer_token - token = @authenticator.send(:refresh_token) - - expected = { 'Authorization' => "Bearer #{token.token}" } - - assert_equal expected, @authenticator.send(:auth_headers) - end - - ## - # @return [void] - # - # Ensures that `refresh_token` returns a usable, non-expired token. - # - # This test confirms that token refresh behavior works correctly - # and produces a valid, active token that has not yet expired. - def test_refresh_token_returns_valid_token - token = @authenticator.send(:refresh_token) - - refute_nil token.token - refute_predicate token, :expired? - end - - ## - # @return [void] - # - # Asserts that the latest access token matches the token returned by `auth_token`. - # - # This verifies that the authenticator memoizes or reuses the token internally as expected. - def test_auth_token_matches_refreshed_token - token = @authenticator.send(:refresh_token) - - assert_equal token.token, @authenticator.send(:auth_token) - end - - ## - # @return [void] - # - # Ensures the authenticator uses the configured OAuth host. - # - # This verifies that the `host` parameter passed into the builder - # is correctly retained and exposed via the `#host` method. - def test_authenticator_honors_supplied_host - assert_equal oauth_host, @authenticator.send(:host) - end - - ## - # @return [void] - # - # Verifies that each call to `refresh_token` returns a unique token. - # - # This confirms that the authenticator does not cache or reuse tokens - # and generates fresh credentials on demand. - def test_refresh_token_produces_unique_tokens - token1 = @authenticator.send(:refresh_token).token - token2 = @authenticator.send(:refresh_token).token - - refute_equal token1, token2 - end - end - end -end diff --git a/test/zitadel-client/auth/no_auth_authenticator_test.rb b/test/zitadel-client/auth/no_auth_authenticator_test.rb deleted file mode 100644 index 5f391cb8..00000000 --- a/test/zitadel-client/auth/no_auth_authenticator_test.rb +++ /dev/null @@ -1,56 +0,0 @@ -# frozen_string_literal: true - -# Test suite for ZitadelClient::NoAuthAuthenticator. -# -# This test suite verifies that: -# - When no host is provided, the authenticator returns empty headers and defaults to "http://localhost" for the host. -# - When a custom host is provided, the authenticator returns empty headers and the custom host. -# -# Usage: -# Run this file using: -# bundle exec ruby test/auth/no_auth_authenticator_test.rb - -# noinspection RubyResolve -require 'test_helper' -require 'minitest/autorun' - -module ZitadelClient - module Auth - ## - # Test suite for the NoAuthAuthenticator class. - # - # @example When no host is provided, the default host "http://localhost" is used. - # auth = ZitadelClient::NoAuthAuthenticator.new - # auth.get_auth_headers # => {} - # auth.host # => "http://localhost" - # - # @example When a custom host is provided, it is used. - # auth = ZitadelClient::NoAuthAuthenticator.new("https://custom-host") - # auth.get_auth_headers # => {} - # auth.host # => "https://custom-host" - # noinspection RbsMissingTypeSignature - class NoAuthAuthenticatorTest < Minitest::Test - ## - # Verifies that the authenticator returns empty headers and the default host when no host is provided. - # - # @return [void] - def test_default_host - auth = NoAuthAuthenticator.new - - assert_empty(auth.send(:auth_headers)) - assert_equal('http://localhost', auth.send(:host)) - end - - ## - # Verifies that the authenticator returns empty headers and the custom host when one is provided. - # - # @return [void] - def test_custom_host - auth = NoAuthAuthenticator.new('https://custom-host') - - assert_empty(auth.send(:auth_headers)) - assert_equal('https://custom-host', auth.send(:host)) - end - end - end -end diff --git a/test/zitadel-client/auth/oauth_authenticator_test.rb b/test/zitadel-client/auth/oauth_authenticator_test.rb deleted file mode 100644 index 2dd8d0ac..00000000 --- a/test/zitadel-client/auth/oauth_authenticator_test.rb +++ /dev/null @@ -1,43 +0,0 @@ -# frozen_string_literal: true - -# Base test class for OAuth authenticators. -# -# This class starts a Docker container running the mock OAuth2 server -# (ghcr.io/navikt/mock-oauth2-server:2.1.10) before any tests run and stops it after all tests. -# It sets the class variable `oauth_host` to the container’s accessible URL. -# -# The container is expected to expose port 8080 and, if supported, may be configured to wait -# for an HTTP response from the "/" endpoint with a status code of 405 (using a wait strategy). - -# noinspection RubyResolve -require 'test_helper' -require 'minitest/autorun' -require 'minitest/hooks/test' -require 'testcontainers' - -module ZitadelClient - module Auth - class OAuthAuthenticatorTest < Minitest::Test - # noinspection RbsMissingTypeSignature - include Minitest::Hooks - - def before_all - super - @mock_server = Testcontainers::DockerContainer.new('ghcr.io/navikt/mock-oauth2-server:2.1.10') - .with_exposed_port(8080) - .start - @mock_server.wait_for_http(container_port: 8080, status: 405) - # noinspection HttpUrlsUsage - @oauth_host = "http://#{@mock_server.host}:#{@mock_server.mapped_port(8080)}" - end - - def after_all - @mock_server&.stop - super - end - - # Helper for subclasses to access the OAuth host. - attr_reader :oauth_host - end - end -end diff --git a/test/zitadel-client/auth/personal_access_token_authenticator_test.rb b/test/zitadel-client/auth/personal_access_token_authenticator_test.rb deleted file mode 100644 index c5f65ff1..00000000 --- a/test/zitadel-client/auth/personal_access_token_authenticator_test.rb +++ /dev/null @@ -1,40 +0,0 @@ -# frozen_string_literal: true - -# Test suite for ZitadelClient::PersonalAccessTokenAuthenticator. -# -# This suite verifies that: -# - The authenticator returns the correct authorization headers using the provided personal access token. -# - The authenticator exposes the expected host provided during initialization. -# -# Usage: -# bundle exec ruby test/auth/personal_access_token_authenticator_test.rb - -# noinspection RubyResolve -require 'test_helper' -require 'minitest/autorun' - -module ZitadelClient - module Auth - ## - # Test suite for the PersonalAccessTokenAuthenticator class. - # - # @example Initialization and header retrieval: - # auth = ZitadelClient::PersonalAccessTokenAuthenticator.new("https://api.example.com", "my-secret-token") - # auth.get_auth_headers # => { "Authorization" => "Bearer my-secret-token" } - # auth.host # => "https://api.example.com" - # - class PersonalAccessTokenAuthenticatorTest < Minitest::Test - ## - # Verifies that the PersonalAccessTokenAuthenticator returns the expected authorization headers and host. - # - # @return [void] - def test_returns_expected_headers_and_host - auth = ZitadelClient::Auth::PersonalAccessTokenAuthenticator.new('https://api.example.com', - 'my-secret-token') - - assert_equal({ 'Authorization' => 'Bearer my-secret-token' }, auth.send(:auth_headers)) - assert_equal('https://api.example.com', auth.send(:host)) - end - end - end -end diff --git a/test/zitadel-client/auth/web_token_authenticator_test.rb b/test/zitadel-client/auth/web_token_authenticator_test.rb deleted file mode 100644 index 74106ed3..00000000 --- a/test/zitadel-client/auth/web_token_authenticator_test.rb +++ /dev/null @@ -1,108 +0,0 @@ -# frozen_string_literal: true - -# Test for WebTokenAuthenticator to verify JWT token refresh functionality using the builder. -# Extends the base OAuthAuthenticatorTest class. -# -# Usage: -# bundle exec ruby test/auth/web_token_authenticator_test.rb - -# noinspection RubyResolve -require 'test_helper' -require 'minitest/autorun' -require 'openssl' -require 'time' -require_relative 'oauth_authenticator_test' - -module ZitadelClient - module Auth - ## - # Test suite for the WebTokenAuthenticator class. - # - # This suite verifies that the JWT-based authenticator correctly builds tokens, - # handles refresh logic, and respects configuration values passed to its builder. - # - # @example - # authenticator = WebTokenAuthenticator.builder(oauth_host, "dummy-client", private_key_pem) - # .token_lifetime_seconds(3600) - # .build - # # use authenticator methods to verify JWT token refresh functionality - # - class WebTokenAuthenticatorTest < OAuthAuthenticatorTest - def setup - key = OpenSSL::PKey::RSA.new(2048).to_pem - @authenticator = WebTokenAuthenticator - .builder(oauth_host, 'dummy-client', key) - .token_lifetime_seconds(3600) - .build - end - - ## - # @return [void] - # - # Ensures the generated access token is present and not empty. - # - # This verifies that the authenticator is capable of producing - # a valid JWT access token under normal conditions. - def test_access_token_is_not_empty - token = @authenticator.send(:auth_token) - - refute_nil token - refute_empty token - end - - ## - # @return [void] - # - # Ensures that `refresh_token` returns a usable, non-expired token. - # - # This test confirms that token refresh behavior works correctly - # and produces a valid, active token that has not yet expired. - def test_refresh_token_returns_valid_token - token = @authenticator.send(:refresh_token) - - refute_nil token.token - refute_predicate token, :expired? - end - - ## - # @return [void] - # - # Validates that the Authorization header contains the correct Bearer token. - # - # This ensures that consumers of the authenticator can retrieve properly - # formatted headers for authenticated HTTP requests. - def test_auth_headers_contains_bearer_token - token = @authenticator.send(:refresh_token) - - expected = { 'Authorization' => "Bearer #{token.token}" } - - assert_equal expected, @authenticator.send(:auth_headers) - end - - ## - # @return [void] - # - # Verifies that each call to `refresh_token` returns a unique token. - # - # This confirms that the authenticator does not cache or reuse tokens - # and generates fresh credentials on demand. - def test_refresh_token_produces_unique_tokens - token1 = @authenticator.send(:refresh_token).token - token2 = @authenticator.send(:refresh_token).token - - refute_equal token1, token2 - end - - ## - # @return [void] - # - # Ensures the authenticator uses the configured OAuth host. - # - # This verifies that the `host` parameter passed into the builder - # is correctly retained and exposed via the `#host` method. - def test_authenticator_honors_supplied_host - assert_equal oauth_host, @authenticator.send(:host) - end - end - end -end diff --git a/test/zitadel-client/configuration_test.rb b/test/zitadel-client/configuration_test.rb deleted file mode 100644 index a450806e..00000000 --- a/test/zitadel-client/configuration_test.rb +++ /dev/null @@ -1,23 +0,0 @@ -# frozen_string_literal: true - -# noinspection RubyResolve -require 'test_helper' -require 'minitest/autorun' - -class ConfigurationTest < Minitest::Test - ## - # Test user agent getter and setter - # - # @return [void] - def test_user_agent_getter_and_setter - config = ZitadelClient::Configuration.new - - assert_match( - %r{\Azitadel-client/\d+\.\d+\.\d+ \(lang=ruby; lang_version=[^;]+; os=[^;]+; arch=[^;]+\)\z}, - config.user_agent - ) - config.user_agent = 'CustomUserAgent/1.0' - - assert_equal 'CustomUserAgent/1.0', config.user_agent - end -end diff --git a/test/zitadel-client/zitadel_test.rb b/test/zitadel-client/zitadel_test.rb deleted file mode 100644 index 202a3442..00000000 --- a/test/zitadel-client/zitadel_test.rb +++ /dev/null @@ -1,37 +0,0 @@ -# frozen_string_literal: true - -# noinspection RubyResolve -require 'test_helper' -require 'minitest/autorun' - -module ZitadelClient - # This test ensures that the Zitadel SDK class exposes a reader method - # for every service API class defined in the ZitadelClient namespace - # that ends with "ServiceApi". - # - # It dynamically collects all service classes and compares them with - # the classes returned by each public method defined directly on the - # Zitadel instance. - # noinspection RbsMissingTypeSignature - class ZitadelClientTest < Minitest::Test - # noinspection RubyArgCount - def test_zitadel_exposes_all_service_apis - # Collect all classes under ZitadelClient that end with "ServiceApi" - expected = ZitadelClient::Api.constants - .map { |const| ZitadelClient::Api.const_get(const) } - .select { |klass| klass.is_a?(Class) && klass.name.end_with?('ServiceApi') } - .to_set - - # Instantiate the Zitadel SDK with a dummy authenticator - zitadel = Zitadel.new(Auth::NoAuthAuthenticator.new) - - # Collect all instance method return types that are service API classes - actual = Zitadel.instance_methods(false) - .map { |meth| zitadel.public_send(meth).class } - .select { |klass| klass.name.end_with?('ServiceApi') } - .to_set - - assert_equal expected, actual - end - end -end diff --git a/test/zitadel/client/api_client_test.rb b/test/zitadel/client/api_client_test.rb new file mode 100644 index 00000000..9d4fb4ac --- /dev/null +++ b/test/zitadel/client/api_client_test.rb @@ -0,0 +1,99 @@ +# frozen_string_literal: true + +# API Client Test +# +# This test verifies that the ApiClient correctly builds the endpoint path using the base URL provided by +# the authenticator and includes the Personal Access Token in the Authorization header. +# +# A WireMock server is started using TestContainers and configured via a JSON mapping to simulate the +# response for '/your/endpoint'. The test then invokes the API using an ApiClient that utilizes a +# PersonalAccessTokenAuthenticator and asserts that the API response matches the expected output. + +# noinspection RubyResolve +require 'test_helper' +require 'minitest/autorun' +require 'minitest/hooks/test' +require 'testcontainers' +require 'net/http' +require 'json' +require 'logger' + +module Zitadel + module Client + class ApiClientTest < Minitest::Test + include Minitest::Hooks + + def before_all + super + @mock_server = Testcontainers::DockerContainer + .new('wiremock/wiremock:3.12.1') + .with_exposed_port(8080) + .start + + @mock_server.wait_for_http(container_port: 8080, path: '/', status: 403) + # noinspection HttpUrlsUsage + @oauth_host = "http://#{@mock_server.host}:#{@mock_server.mapped_port(8080)}" + end + + def after_all + @mock_server&.stop + @mock_server&.remove + super + end + + ## + # Test the ApiClient#call_api method to ensure that the correct headers and content type + # are applied, and that a GET request to '/your/endpoint' returns the expected response. + # + # @return [void] + # rubocop:disable Minitest/MultipleAssertions,Metrics/MethodLength + def test_assert_headers_and_content_type + mapping_uri = URI("#{@oauth_host}/__admin/mappings") + http = Net::HTTP.new(mapping_uri.host || raise('Host is missing'), mapping_uri.port) + mapping_request = Net::HTTP::Post.new(mapping_uri, { 'Content-Type' => 'application/json' }) + mapping_request.body = JSON.generate( + { + request: { + method: 'GET', + url: '/your/endpoint', + headers: { + 'Authorization' => { + equalTo: 'Bearer mm' + }, + 'User-Agent' => { + matches: '^zitadel-client/\\d\\.\\d\\.\\d \\(lang=ruby; lang_version=[^;]+; os=[^;]+; arch=[^;]+\\)$' + } + } + }, + response: { + status: 200, + body: '{"key": "value"}', + headers: { + 'Content-Type' => 'application/json' + } + } + } + ) + mapping_response = http.request(mapping_request) + + assert_includes [200, 201], mapping_response.code.to_i, + "Mapping creation failed with status #{mapping_response.code}" + + config = Configuration.new(Auth::PersonalAccessTokenAuthenticator.new(@oauth_host, 'mm')) + api_client = ApiClient.new(config) + data, status, headers = api_client.call_api('GET', '/your/endpoint', return_type: 'Object') + + assert_equal 200, status, "Expected status 200, but got #{status}" + assert_instance_of(Hash, data, 'Expected response data to be a Hash') + assert_equal 'application/json', headers['Content-Type'], + "Expected Content-Type header to be 'application/json'" + expected = { 'key' => 'value' } + response_data = data.transform_keys(&:to_s) + + assert_equal expected, response_data, "Expected response body #{expected}, but got #{data}" + end + + # rubocop:enable Minitest/MultipleAssertions,Metrics/MethodLength + end + end +end diff --git a/test/zitadel/client/api_error_test.rb b/test/zitadel/client/api_error_test.rb new file mode 100644 index 00000000..e230dd7e --- /dev/null +++ b/test/zitadel/client/api_error_test.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +require 'minitest/autorun' + +module Zitadel + module Client + class ApiErrorTest < Minitest::Test + # rubocop:disable Minitest/MultipleAssertions + def test_api_error_attributes + headers = { 'H' => ['v'] } + err = ApiError.new(418, headers, 'body') + + assert_kind_of ZitadelError, err + assert_equal 'Error 418', err.message + assert_equal 418, err.code + assert_equal headers, err.response_headers + assert_equal 'body', err.response_body + end + + # rubocop:enable Minitest/MultipleAssertions + end + end +end diff --git a/test/zitadel/client/auth/client_credentials_authenticator_test.rb b/test/zitadel/client/auth/client_credentials_authenticator_test.rb new file mode 100644 index 00000000..7ac3bc3e --- /dev/null +++ b/test/zitadel/client/auth/client_credentials_authenticator_test.rb @@ -0,0 +1,120 @@ +# frozen_string_literal: true + +# Test for ClientCredentialsAuthenticator to verify token refresh functionality. +# Extends the base OAuthAuthenticatorTest class. +# +# Usage: +# bundle exec ruby test/auth/client_credentials_authenticator_test.rb + +# noinspection RubyResolve +require 'test_helper' +require 'minitest/autorun' +require 'time' +require_relative 'oauth_authenticator_test' + +module Zitadel + module Client + module Auth + ## + # Test suite for the ClientCredentialsAuthenticator class. + # + # This suite verifies that the authenticator correctly builds tokens, + # handles refresh logic, and respects configuration values passed to its builder. + # + # @example + # authenticator = ClientCredentialsAuthenticator.builder(oauth_host, "client-id", "secret") + # .scopes("openid", "foo") + # .build + # # use authenticator methods to verify token refresh functionality + # + class ClientCredentialsAuthenticatorTest < OAuthAuthenticatorTest + def setup + @authenticator = ClientCredentialsAuthenticator + .builder(oauth_host, 'dummy-client', 'dummy-secret') + .scopes('openid', 'foo') + .build + end + + ## + # @return [void] + # + # Ensures the generated access token is present and not empty. + # + # This verifies that the authenticator is capable of producing + # a valid access token under normal conditions. + def test_access_token_is_not_empty + token = @authenticator.send(:auth_token) + + refute_nil token + refute_empty token + end + + ## + # @return [void] + # + # Validates that the Authorization header contains the correct Bearer token. + # + # This ensures that consumers of the authenticator can retrieve properly + # formatted headers for authenticated HTTP requests. + def test_auth_headers_contains_bearer_token + token = @authenticator.send(:refresh_token) + + expected = { 'Authorization' => "Bearer #{token.token}" } + + assert_equal expected, @authenticator.send(:auth_headers) + end + + ## + # @return [void] + # + # Ensures that `refresh_token` returns a usable, non-expired token. + # + # This test confirms that token refresh behavior works correctly + # and produces a valid, active token that has not yet expired. + def test_refresh_token_returns_valid_token + token = @authenticator.send(:refresh_token) + + refute_nil token.token + refute_predicate token, :expired? + end + + ## + # @return [void] + # + # Asserts that the latest access token matches the token returned by `auth_token`. + # + # This verifies that the authenticator memoizes or reuses the token internally as expected. + def test_auth_token_matches_refreshed_token + token = @authenticator.send(:refresh_token) + + assert_equal token.token, @authenticator.send(:auth_token) + end + + ## + # @return [void] + # + # Ensures the authenticator uses the configured OAuth host. + # + # This verifies that the `host` parameter passed into the builder + # is correctly retained and exposed via the `#host` method. + def test_authenticator_honors_supplied_host + assert_equal oauth_host, @authenticator.send(:host) + end + + ## + # @return [void] + # + # Verifies that each call to `refresh_token` returns a unique token. + # + # This confirms that the authenticator does not cache or reuse tokens + # and generates fresh credentials on demand. + def test_refresh_token_produces_unique_tokens + token1 = @authenticator.send(:refresh_token).token + token2 = @authenticator.send(:refresh_token).token + + refute_equal token1, token2 + end + end + end + end +end diff --git a/test/zitadel/client/auth/no_auth_authenticator_test.rb b/test/zitadel/client/auth/no_auth_authenticator_test.rb new file mode 100644 index 00000000..1eb1ab8d --- /dev/null +++ b/test/zitadel/client/auth/no_auth_authenticator_test.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: true + +# Test suite for NoAuthAuthenticator. +# +# This test suite verifies that: +# - When no host is provided, the authenticator returns empty headers and defaults to "http://localhost" for the host. +# - When a custom host is provided, the authenticator returns empty headers and the custom host. +# +# Usage: +# Run this file using: +# bundle exec ruby test/auth/no_auth_authenticator_test.rb + +# noinspection RubyResolve +require 'test_helper' +require 'minitest/autorun' + +module Zitadel + module Client + module Auth + ## + # Test suite for the NoAuthAuthenticator class. + # + # @example When no host is provided, the default host "http://localhost" is used. + # auth = NoAuthAuthenticator.new + # auth.get_auth_headers # => {} + # auth.host # => "http://localhost" + # + # @example When a custom host is provided, it is used. + # auth = NoAuthAuthenticator.new("https://custom-host") + # auth.get_auth_headers # => {} + # auth.host # => "https://custom-host" + # noinspection RbsMissingTypeSignature + class NoAuthAuthenticatorTest < Minitest::Test + ## + # Verifies that the authenticator returns empty headers and the default host when no host is provided. + # + # @return [void] + def test_default_host + auth = NoAuthAuthenticator.new + + assert_empty(auth.send(:auth_headers)) + assert_equal('http://localhost', auth.send(:host)) + end + + ## + # Verifies that the authenticator returns empty headers and the custom host when one is provided. + # + # @return [void] + def test_custom_host + auth = NoAuthAuthenticator.new('https://custom-host') + + assert_empty(auth.send(:auth_headers)) + assert_equal('https://custom-host', auth.send(:host)) + end + end + end + end +end diff --git a/test/zitadel/client/auth/oauth_authenticator_test.rb b/test/zitadel/client/auth/oauth_authenticator_test.rb new file mode 100644 index 00000000..f5b0c6b1 --- /dev/null +++ b/test/zitadel/client/auth/oauth_authenticator_test.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true + +# Base test class for OAuth authenticators. +# +# This class starts a Docker container running the mock OAuth2 server +# (ghcr.io/navikt/mock-oauth2-server:2.1.10) before any tests run and stops it after all tests. +# It sets the class variable `oauth_host` to the container’s accessible URL. +# +# The container is expected to expose port 8080 and, if supported, may be configured to wait +# for an HTTP response from the "/" endpoint with a status code of 405 (using a wait strategy). + +# noinspection RubyResolve +require 'test_helper' +require 'minitest/autorun' +require 'minitest/hooks/test' +require 'testcontainers' + +module Zitadel + module Client + module Auth + class OAuthAuthenticatorTest < Minitest::Test + # noinspection RbsMissingTypeSignature + include Minitest::Hooks + + def before_all + super + @mock_server = Testcontainers::DockerContainer.new('ghcr.io/navikt/mock-oauth2-server:2.1.10') + .with_exposed_port(8080) + .start + @mock_server.wait_for_http(container_port: 8080, status: 405) + # noinspection HttpUrlsUsage + @oauth_host = "http://#{@mock_server.host}:#{@mock_server.mapped_port(8080)}" + end + + def after_all + @mock_server&.stop + super + end + + # Helper for subclasses to access the OAuth host. + attr_reader :oauth_host + end + end + end +end diff --git a/test/zitadel/client/auth/personal_access_token_authenticator_test.rb b/test/zitadel/client/auth/personal_access_token_authenticator_test.rb new file mode 100644 index 00000000..2b801072 --- /dev/null +++ b/test/zitadel/client/auth/personal_access_token_authenticator_test.rb @@ -0,0 +1,42 @@ +# frozen_string_literal: true + +# Test suite for PersonalAccessTokenAuthenticator. +# +# This suite verifies that: +# - The authenticator returns the correct authorization headers using the provided personal access token. +# - The authenticator exposes the expected host provided during initialization. +# +# Usage: +# bundle exec ruby test/auth/personal_access_token_authenticator_test.rb + +# noinspection RubyResolve +require 'test_helper' +require 'minitest/autorun' + +module Zitadel + module Client + module Auth + ## + # Test suite for the PersonalAccessTokenAuthenticator class. + # + # @example Initialization and header retrieval: + # auth = PersonalAccessTokenAuthenticator.new("https://api.example.com", "my-secret-token") + # auth.get_auth_headers # => { "Authorization" => "Bearer my-secret-token" } + # auth.host # => "https://api.example.com" + # + class PersonalAccessTokenAuthenticatorTest < Minitest::Test + ## + # Verifies that the PersonalAccessTokenAuthenticator returns the expected authorization headers and host. + # + # @return [void] + def test_returns_expected_headers_and_host + auth = Auth::PersonalAccessTokenAuthenticator.new('https://api.example.com', + 'my-secret-token') + + assert_equal({ 'Authorization' => 'Bearer my-secret-token' }, auth.send(:auth_headers)) + assert_equal('https://api.example.com', auth.send(:host)) + end + end + end + end +end diff --git a/test/zitadel/client/auth/web_token_authenticator_test.rb b/test/zitadel/client/auth/web_token_authenticator_test.rb new file mode 100644 index 00000000..5ba03121 --- /dev/null +++ b/test/zitadel/client/auth/web_token_authenticator_test.rb @@ -0,0 +1,110 @@ +# frozen_string_literal: true + +# Test for WebTokenAuthenticator to verify JWT token refresh functionality using the builder. +# Extends the base OAuthAuthenticatorTest class. +# +# Usage: +# bundle exec ruby test/auth/web_token_authenticator_test.rb + +# noinspection RubyResolve +require 'test_helper' +require 'minitest/autorun' +require 'openssl' +require 'time' +require_relative 'oauth_authenticator_test' + +module Zitadel + module Client + module Auth + ## + # Test suite for the WebTokenAuthenticator class. + # + # This suite verifies that the JWT-based authenticator correctly builds tokens, + # handles refresh logic, and respects configuration values passed to its builder. + # + # @example + # authenticator = WebTokenAuthenticator.builder(oauth_host, "dummy-client", private_key_pem) + # .token_lifetime_seconds(3600) + # .build + # # use authenticator methods to verify JWT token refresh functionality + # + class WebTokenAuthenticatorTest < OAuthAuthenticatorTest + def setup + key = OpenSSL::PKey::RSA.new(2048).to_pem + @authenticator = WebTokenAuthenticator + .builder(oauth_host, 'dummy-client', key) + .token_lifetime_seconds(3600) + .build + end + + ## + # @return [void] + # + # Ensures the generated access token is present and not empty. + # + # This verifies that the authenticator is capable of producing + # a valid JWT access token under normal conditions. + def test_access_token_is_not_empty + token = @authenticator.send(:auth_token) + + refute_nil token + refute_empty token + end + + ## + # @return [void] + # + # Ensures that `refresh_token` returns a usable, non-expired token. + # + # This test confirms that token refresh behavior works correctly + # and produces a valid, active token that has not yet expired. + def test_refresh_token_returns_valid_token + token = @authenticator.send(:refresh_token) + + refute_nil token.token + refute_predicate token, :expired? + end + + ## + # @return [void] + # + # Validates that the Authorization header contains the correct Bearer token. + # + # This ensures that consumers of the authenticator can retrieve properly + # formatted headers for authenticated HTTP requests. + def test_auth_headers_contains_bearer_token + token = @authenticator.send(:refresh_token) + + expected = { 'Authorization' => "Bearer #{token.token}" } + + assert_equal expected, @authenticator.send(:auth_headers) + end + + ## + # @return [void] + # + # Verifies that each call to `refresh_token` returns a unique token. + # + # This confirms that the authenticator does not cache or reuse tokens + # and generates fresh credentials on demand. + def test_refresh_token_produces_unique_tokens + token1 = @authenticator.send(:refresh_token).token + token2 = @authenticator.send(:refresh_token).token + + refute_equal token1, token2 + end + + ## + # @return [void] + # + # Ensures the authenticator uses the configured OAuth host. + # + # This verifies that the `host` parameter passed into the builder + # is correctly retained and exposed via the `#host` method. + def test_authenticator_honors_supplied_host + assert_equal oauth_host, @authenticator.send(:host) + end + end + end + end +end diff --git a/test/zitadel/client/configuration_test.rb b/test/zitadel/client/configuration_test.rb new file mode 100644 index 00000000..fe3aad8d --- /dev/null +++ b/test/zitadel/client/configuration_test.rb @@ -0,0 +1,27 @@ +# frozen_string_literal: true + +# noinspection RubyResolve +require 'test_helper' +require 'minitest/autorun' + +module Zitadel + module Client + class ConfigurationTest < Minitest::Test + ## + # Test user agent getter and setter + # + # @return [void] + def test_user_agent_getter_and_setter + config = Configuration.new + + assert_match( + %r{\Azitadel-client/\d+\.\d+\.\d+ \(lang=ruby; lang_version=[^;]+; os=[^;]+; arch=[^;]+\)\z}, + config.user_agent + ) + config.user_agent = 'CustomUserAgent/1.0' + + assert_equal 'CustomUserAgent/1.0', config.user_agent + end + end + end +end diff --git a/test/zitadel/client/zitadel_test.rb b/test/zitadel/client/zitadel_test.rb new file mode 100644 index 00000000..b2a0ccd9 --- /dev/null +++ b/test/zitadel/client/zitadel_test.rb @@ -0,0 +1,39 @@ +# frozen_string_literal: true + +# noinspection RubyResolve +require 'test_helper' +require 'minitest/autorun' + +module Zitadel + module Client + # This test ensures that the Zitadel SDK class exposes a reader method + # for every service API class defined in the Zitadel::Client namespace + # that ends with "ServiceApi". + # + # It dynamically collects all service classes and compares them with + # the classes returned by each public method defined directly on the + # Zitadel instance. + # noinspection RbsMissingTypeSignature + class ZitadelTest < Minitest::Test + # noinspection RubyArgCount + def test_zitadel_exposes_all_service_apis + # Collect all classes under Zitadel::Client that end with "ServiceApi" + expected = Api.constants + .map { |const| Api.const_get(const) } + .select { |klass| klass.is_a?(Class) && klass.name.end_with?('ServiceApi') } + .to_set + + # Instantiate the Zitadel SDK with a dummy authenticator + zitadel = Zitadel.new(Auth::NoAuthAuthenticator.new) + + # Collect all instance method return types that are service API classes + actual = Zitadel.instance_methods(false) + .map { |meth| zitadel.public_send(meth).class } + .select { |klass| klass.name.end_with?('ServiceApi') } + .to_set + + assert_equal expected, actual + end + end + end +end diff --git a/zitadel-client.gemspec b/zitadel-client.gemspec index 4367ebb2..57862824 100644 --- a/zitadel-client.gemspec +++ b/zitadel-client.gemspec @@ -1,12 +1,11 @@ # frozen_string_literal: true -$LOAD_PATH.push File.expand_path('lib', __dir__) -require 'zitadel-client/version' +require_relative 'lib/zitadel/client/version' # noinspection RubyArgCount Gem::Specification.new do |gemspec| gemspec.name = 'zitadel-client' - gemspec.version = ZitadelClient::VERSION + gemspec.version = Zitadel::Client::VERSION gemspec.platform = Gem::Platform::RUBY gemspec.authors = ['Zitadel'] gemspec.email = ['hi@zitadel.com']