algolia 3.15.0 → 3.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/lib/algolia/api/abtesting_client.rb +12 -12
- data/lib/algolia/api/analytics_client.rb +12 -12
- data/lib/algolia/api/composition_client.rb +12 -0
- data/lib/algolia/api/ingestion_client.rb +21 -12
- data/lib/algolia/api/insights_client.rb +12 -12
- data/lib/algolia/api/monitoring_client.rb +12 -0
- data/lib/algolia/api/personalization_client.rb +12 -12
- data/lib/algolia/api/query_suggestions_client.rb +12 -12
- data/lib/algolia/api/recommend_client.rb +12 -0
- data/lib/algolia/api/search_client.rb +21 -0
- data/lib/algolia/configuration.rb +3 -3
- data/lib/algolia/version.rb +1 -1
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: a106e15f1c245792147c6203b4e4d7992b898e112609fd66524f30044c602d94
         | 
| 4 | 
            +
              data.tar.gz: 7218bfbd386013ae4b2abb953b127642bb887cf83ad89902bffbe3d02e6eaf02
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 4e1bba4413b05b92980c3c70447919cd60ff997c9e7f7b9217ce2137c5dde27baf198a9d5e31f08f249ab7a3270addc94e27b87f1784453774b3245cc762d7e4
         | 
| 7 | 
            +
              data.tar.gz: 71feb928a3cc095624ab5feb5f358514585ce9bd458aedbfa25e5bbfa0a94cadc9bd8a84d67274adf67ace0e9267241c86b5f5247877346ef9daa94d100cca70
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -1,3 +1,8 @@ | |
| 1 | 
            +
            ## [3.15.1](https://github.com/algolia/algoliasearch-client-ruby/compare/3.15.0...3.15.1)
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            - [a51683025e](https://github.com/algolia/api-clients-automation/commit/a51683025e) chore: deprecate mcm methods ([#4694](https://github.com/algolia/api-clients-automation/pull/4694)) by [@kai687](https://github.com/kai687/)
         | 
| 4 | 
            +
            - [2ced1c526b](https://github.com/algolia/api-clients-automation/commit/2ced1c526b) chore: assert long lasting requests on the ingestion api ([#4615](https://github.com/algolia/api-clients-automation/pull/4615)) by [@shortcuts](https://github.com/shortcuts/)
         | 
| 5 | 
            +
             | 
| 1 6 | 
             
            ## [3.15.0](https://github.com/algolia/algoliasearch-client-ruby/compare/3.14.0...3.15.0)
         | 
| 2 7 |  | 
| 3 8 | 
             
            - [c3addb449](https://github.com/algolia/api-clients-automation/commit/c3addb449) feat(specs): add CT Query predicate property ([#4654](https://github.com/algolia/api-clients-automation/pull/4654)) by [@morganleroi](https://github.com/morganleroi/)
         | 
    
        data/Gemfile.lock
    CHANGED
    
    
| @@ -23,18 +23,6 @@ module Algolia | |
| 23 23 | 
             
                    region = nil
         | 
| 24 24 | 
             
                  end
         | 
| 25 25 |  | 
| 26 | 
            -
                  if opts.nil? || opts[:connect_timeout].nil?
         | 
| 27 | 
            -
                    opts[:connect_timeout] = 2000
         | 
| 28 | 
            -
                  end
         | 
| 29 | 
            -
             | 
| 30 | 
            -
                  if opts.nil? || opts[:read_timeout].nil?
         | 
| 31 | 
            -
                    opts[:read_timeout] = 5000
         | 
| 32 | 
            -
                  end
         | 
| 33 | 
            -
             | 
| 34 | 
            -
                  if opts.nil? || opts[:write_timeout].nil?
         | 
| 35 | 
            -
                    opts[:write_timeout] = 30000
         | 
| 36 | 
            -
                  end
         | 
| 37 | 
            -
             | 
| 38 26 | 
             
                  if !region.nil? && (!region.is_a?(String) || !regions.include?(region))
         | 
| 39 27 | 
             
                    raise "`region` must be one of the following: #{regions.join(", ")}"
         | 
| 40 28 | 
             
                  end
         | 
| @@ -50,6 +38,18 @@ module Algolia | |
| 50 38 | 
             
                end
         | 
| 51 39 |  | 
| 52 40 | 
             
                def self.create_with_config(config)
         | 
| 41 | 
            +
                  if config.connect_timeout.nil? || config.connect_timeout.empty?
         | 
| 42 | 
            +
                    config.connect_timeout = 2000
         | 
| 43 | 
            +
                  end
         | 
| 44 | 
            +
             | 
| 45 | 
            +
                  if config.read_timeout.nil? || config.read_timeout.empty?
         | 
| 46 | 
            +
                    config.read_timeout = 5000
         | 
| 47 | 
            +
                  end
         | 
| 48 | 
            +
             | 
| 49 | 
            +
                  if config.write_timeout.nil? || config.write_timeout.empty?
         | 
| 50 | 
            +
                    config.write_timeout = 30000
         | 
| 51 | 
            +
                  end
         | 
| 52 | 
            +
             | 
| 53 53 | 
             
                  new(config)
         | 
| 54 54 | 
             
                end
         | 
| 55 55 |  | 
| @@ -23,18 +23,6 @@ module Algolia | |
| 23 23 | 
             
                    region = nil
         | 
| 24 24 | 
             
                  end
         | 
| 25 25 |  | 
| 26 | 
            -
                  if opts.nil? || opts[:connect_timeout].nil?
         | 
| 27 | 
            -
                    opts[:connect_timeout] = 2000
         | 
| 28 | 
            -
                  end
         | 
| 29 | 
            -
             | 
| 30 | 
            -
                  if opts.nil? || opts[:read_timeout].nil?
         | 
| 31 | 
            -
                    opts[:read_timeout] = 5000
         | 
| 32 | 
            -
                  end
         | 
| 33 | 
            -
             | 
| 34 | 
            -
                  if opts.nil? || opts[:write_timeout].nil?
         | 
| 35 | 
            -
                    opts[:write_timeout] = 30000
         | 
| 36 | 
            -
                  end
         | 
| 37 | 
            -
             | 
| 38 26 | 
             
                  if !region.nil? && (!region.is_a?(String) || !regions.include?(region))
         | 
| 39 27 | 
             
                    raise "`region` must be one of the following: #{regions.join(", ")}"
         | 
| 40 28 | 
             
                  end
         | 
| @@ -50,6 +38,18 @@ module Algolia | |
| 50 38 | 
             
                end
         | 
| 51 39 |  | 
| 52 40 | 
             
                def self.create_with_config(config)
         | 
| 41 | 
            +
                  if config.connect_timeout.nil? || config.connect_timeout.empty?
         | 
| 42 | 
            +
                    config.connect_timeout = 2000
         | 
| 43 | 
            +
                  end
         | 
| 44 | 
            +
             | 
| 45 | 
            +
                  if config.read_timeout.nil? || config.read_timeout.empty?
         | 
| 46 | 
            +
                    config.read_timeout = 5000
         | 
| 47 | 
            +
                  end
         | 
| 48 | 
            +
             | 
| 49 | 
            +
                  if config.write_timeout.nil? || config.write_timeout.empty?
         | 
| 50 | 
            +
                    config.write_timeout = 30000
         | 
| 51 | 
            +
                  end
         | 
| 52 | 
            +
             | 
| 53 53 | 
             
                  new(config)
         | 
| 54 54 | 
             
                end
         | 
| 55 55 |  | 
| @@ -31,6 +31,18 @@ module Algolia | |
| 31 31 | 
             
                end
         | 
| 32 32 |  | 
| 33 33 | 
             
                def self.create_with_config(config)
         | 
| 34 | 
            +
                  if config.connect_timeout.nil? || config.connect_timeout.empty?
         | 
| 35 | 
            +
                    config.connect_timeout = 2000
         | 
| 36 | 
            +
                  end
         | 
| 37 | 
            +
             | 
| 38 | 
            +
                  if config.read_timeout.nil? || config.read_timeout.empty?
         | 
| 39 | 
            +
                    config.read_timeout = 5000
         | 
| 40 | 
            +
                  end
         | 
| 41 | 
            +
             | 
| 42 | 
            +
                  if config.write_timeout.nil? || config.write_timeout.empty?
         | 
| 43 | 
            +
                    config.write_timeout = 30000
         | 
| 44 | 
            +
                  end
         | 
| 45 | 
            +
             | 
| 34 46 | 
             
                  new(config)
         | 
| 35 47 | 
             
                end
         | 
| 36 48 |  | 
| @@ -23,18 +23,6 @@ module Algolia | |
| 23 23 | 
             
                    region = nil
         | 
| 24 24 | 
             
                  end
         | 
| 25 25 |  | 
| 26 | 
            -
                  if opts.nil? || opts[:connect_timeout].nil?
         | 
| 27 | 
            -
                    opts[:connect_timeout] = 25000
         | 
| 28 | 
            -
                  end
         | 
| 29 | 
            -
             | 
| 30 | 
            -
                  if opts.nil? || opts[:read_timeout].nil?
         | 
| 31 | 
            -
                    opts[:read_timeout] = 25000
         | 
| 32 | 
            -
                  end
         | 
| 33 | 
            -
             | 
| 34 | 
            -
                  if opts.nil? || opts[:write_timeout].nil?
         | 
| 35 | 
            -
                    opts[:write_timeout] = 25000
         | 
| 36 | 
            -
                  end
         | 
| 37 | 
            -
             | 
| 38 26 | 
             
                  if region.nil? || !region.is_a?(String) || !regions.include?(region)
         | 
| 39 27 | 
             
                    raise "`region` is required and must be one of the following: #{regions.join(", ")}"
         | 
| 40 28 | 
             
                  end
         | 
| @@ -50,6 +38,18 @@ module Algolia | |
| 50 38 | 
             
                end
         | 
| 51 39 |  | 
| 52 40 | 
             
                def self.create_with_config(config)
         | 
| 41 | 
            +
                  if config.connect_timeout.nil? || config.connect_timeout.empty?
         | 
| 42 | 
            +
                    config.connect_timeout = 25000
         | 
| 43 | 
            +
                  end
         | 
| 44 | 
            +
             | 
| 45 | 
            +
                  if config.read_timeout.nil? || config.read_timeout.empty?
         | 
| 46 | 
            +
                    config.read_timeout = 25000
         | 
| 47 | 
            +
                  end
         | 
| 48 | 
            +
             | 
| 49 | 
            +
                  if config.write_timeout.nil? || config.write_timeout.empty?
         | 
| 50 | 
            +
                    config.write_timeout = 25000
         | 
| 51 | 
            +
                  end
         | 
| 52 | 
            +
             | 
| 53 53 | 
             
                  new(config)
         | 
| 54 54 | 
             
                end
         | 
| 55 55 |  | 
| @@ -261,6 +261,7 @@ module Algolia | |
| 261 261 |  | 
| 262 262 | 
             
                # Creates a new task using the v1 endpoint, please use `createTask` instead.
         | 
| 263 263 |  | 
| 264 | 
            +
                # THIS OPERATION IS DEPRECATED
         | 
| 264 265 | 
             
                # @param task_create [TaskCreateV1] Request body for creating a task. (required)
         | 
| 265 266 | 
             
                # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
         | 
| 266 267 | 
             
                # @return [Http::Response] the response
         | 
| @@ -710,6 +711,7 @@ module Algolia | |
| 710 711 |  | 
| 711 712 | 
             
                # Deletes a task by its ID using the v1 endpoint, please use `deleteTask` instead.
         | 
| 712 713 |  | 
| 714 | 
            +
                # THIS OPERATION IS DEPRECATED
         | 
| 713 715 | 
             
                # @param task_id [String] Unique identifier of a task. (required)
         | 
| 714 716 | 
             
                # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
         | 
| 715 717 | 
             
                # @return [Http::Response] the response
         | 
| @@ -845,6 +847,7 @@ module Algolia | |
| 845 847 | 
             
                #   - addObject
         | 
| 846 848 | 
             
                #   - deleteIndex
         | 
| 847 849 | 
             
                #   - editSettings
         | 
| 850 | 
            +
                # THIS OPERATION IS DEPRECATED
         | 
| 848 851 | 
             
                # @param task_id [String] Unique identifier of a task. (required)
         | 
| 849 852 | 
             
                # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
         | 
| 850 853 | 
             
                # @return [Http::Response] the response
         | 
| @@ -941,6 +944,7 @@ module Algolia | |
| 941 944 | 
             
                #   - addObject
         | 
| 942 945 | 
             
                #   - deleteIndex
         | 
| 943 946 | 
             
                #   - editSettings
         | 
| 947 | 
            +
                # THIS OPERATION IS DEPRECATED
         | 
| 944 948 | 
             
                # @param task_id [String] Unique identifier of a task. (required)
         | 
| 945 949 | 
             
                # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
         | 
| 946 950 | 
             
                # @return [Http::Response] the response
         | 
| @@ -1292,6 +1296,7 @@ module Algolia | |
| 1292 1296 | 
             
                #   - addObject
         | 
| 1293 1297 | 
             
                #   - deleteIndex
         | 
| 1294 1298 | 
             
                #   - editSettings
         | 
| 1299 | 
            +
                # THIS OPERATION IS DEPRECATED
         | 
| 1295 1300 | 
             
                # @param task_id [String] Unique identifier of a task. (required)
         | 
| 1296 1301 | 
             
                # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
         | 
| 1297 1302 | 
             
                # @return [Http::Response] the response
         | 
| @@ -1972,6 +1977,7 @@ module Algolia | |
| 1972 1977 | 
             
                #   - addObject
         | 
| 1973 1978 | 
             
                #   - deleteIndex
         | 
| 1974 1979 | 
             
                #   - editSettings
         | 
| 1980 | 
            +
                # THIS OPERATION IS DEPRECATED
         | 
| 1975 1981 | 
             
                # @param items_per_page [Integer] Number of items per page. (default to 10)
         | 
| 1976 1982 | 
             
                # @param page [Integer] Page number of the paginated API response.
         | 
| 1977 1983 | 
             
                # @param action [Array<ActionType>] Actions for filtering the list of tasks.
         | 
| @@ -2295,6 +2301,7 @@ module Algolia | |
| 2295 2301 | 
             
                #   - addObject
         | 
| 2296 2302 | 
             
                #   - deleteIndex
         | 
| 2297 2303 | 
             
                #   - editSettings
         | 
| 2304 | 
            +
                # THIS OPERATION IS DEPRECATED
         | 
| 2298 2305 | 
             
                # @param task_id [String] Unique identifier of a task. (required)
         | 
| 2299 2306 | 
             
                # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
         | 
| 2300 2307 | 
             
                # @return [Http::Response] the response
         | 
| @@ -2535,6 +2542,7 @@ module Algolia | |
| 2535 2542 | 
             
                #   - addObject
         | 
| 2536 2543 | 
             
                #   - deleteIndex
         | 
| 2537 2544 | 
             
                #   - editSettings
         | 
| 2545 | 
            +
                # THIS OPERATION IS DEPRECATED
         | 
| 2538 2546 | 
             
                # @param task_search [TaskSearch]  (required)
         | 
| 2539 2547 | 
             
                # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
         | 
| 2540 2548 | 
             
                # @return [Http::Response] the response
         | 
| @@ -3014,6 +3022,7 @@ module Algolia | |
| 3014 3022 |  | 
| 3015 3023 | 
             
                # Updates a task by its ID using the v1 endpoint, please use `updateTask` instead.
         | 
| 3016 3024 |  | 
| 3025 | 
            +
                # THIS OPERATION IS DEPRECATED
         | 
| 3017 3026 | 
             
                # @param task_id [String] Unique identifier of a task. (required)
         | 
| 3018 3027 | 
             
                # @param task_update [TaskUpdateV1]  (required)
         | 
| 3019 3028 | 
             
                # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
         | 
| @@ -23,18 +23,6 @@ module Algolia | |
| 23 23 | 
             
                    region = nil
         | 
| 24 24 | 
             
                  end
         | 
| 25 25 |  | 
| 26 | 
            -
                  if opts.nil? || opts[:connect_timeout].nil?
         | 
| 27 | 
            -
                    opts[:connect_timeout] = 2000
         | 
| 28 | 
            -
                  end
         | 
| 29 | 
            -
             | 
| 30 | 
            -
                  if opts.nil? || opts[:read_timeout].nil?
         | 
| 31 | 
            -
                    opts[:read_timeout] = 5000
         | 
| 32 | 
            -
                  end
         | 
| 33 | 
            -
             | 
| 34 | 
            -
                  if opts.nil? || opts[:write_timeout].nil?
         | 
| 35 | 
            -
                    opts[:write_timeout] = 30000
         | 
| 36 | 
            -
                  end
         | 
| 37 | 
            -
             | 
| 38 26 | 
             
                  if !region.nil? && (!region.is_a?(String) || !regions.include?(region))
         | 
| 39 27 | 
             
                    raise "`region` must be one of the following: #{regions.join(", ")}"
         | 
| 40 28 | 
             
                  end
         | 
| @@ -50,6 +38,18 @@ module Algolia | |
| 50 38 | 
             
                end
         | 
| 51 39 |  | 
| 52 40 | 
             
                def self.create_with_config(config)
         | 
| 41 | 
            +
                  if config.connect_timeout.nil? || config.connect_timeout.empty?
         | 
| 42 | 
            +
                    config.connect_timeout = 2000
         | 
| 43 | 
            +
                  end
         | 
| 44 | 
            +
             | 
| 45 | 
            +
                  if config.read_timeout.nil? || config.read_timeout.empty?
         | 
| 46 | 
            +
                    config.read_timeout = 5000
         | 
| 47 | 
            +
                  end
         | 
| 48 | 
            +
             | 
| 49 | 
            +
                  if config.write_timeout.nil? || config.write_timeout.empty?
         | 
| 50 | 
            +
                    config.write_timeout = 30000
         | 
| 51 | 
            +
                  end
         | 
| 52 | 
            +
             | 
| 53 53 | 
             
                  new(config)
         | 
| 54 54 | 
             
                end
         | 
| 55 55 |  | 
| @@ -23,6 +23,18 @@ module Algolia | |
| 23 23 | 
             
                end
         | 
| 24 24 |  | 
| 25 25 | 
             
                def self.create_with_config(config)
         | 
| 26 | 
            +
                  if config.connect_timeout.nil? || config.connect_timeout.empty?
         | 
| 27 | 
            +
                    config.connect_timeout = 2000
         | 
| 28 | 
            +
                  end
         | 
| 29 | 
            +
             | 
| 30 | 
            +
                  if config.read_timeout.nil? || config.read_timeout.empty?
         | 
| 31 | 
            +
                    config.read_timeout = 5000
         | 
| 32 | 
            +
                  end
         | 
| 33 | 
            +
             | 
| 34 | 
            +
                  if config.write_timeout.nil? || config.write_timeout.empty?
         | 
| 35 | 
            +
                    config.write_timeout = 30000
         | 
| 36 | 
            +
                  end
         | 
| 37 | 
            +
             | 
| 26 38 | 
             
                  new(config)
         | 
| 27 39 | 
             
                end
         | 
| 28 40 |  | 
| @@ -23,18 +23,6 @@ module Algolia | |
| 23 23 | 
             
                    region = nil
         | 
| 24 24 | 
             
                  end
         | 
| 25 25 |  | 
| 26 | 
            -
                  if opts.nil? || opts[:connect_timeout].nil?
         | 
| 27 | 
            -
                    opts[:connect_timeout] = 2000
         | 
| 28 | 
            -
                  end
         | 
| 29 | 
            -
             | 
| 30 | 
            -
                  if opts.nil? || opts[:read_timeout].nil?
         | 
| 31 | 
            -
                    opts[:read_timeout] = 5000
         | 
| 32 | 
            -
                  end
         | 
| 33 | 
            -
             | 
| 34 | 
            -
                  if opts.nil? || opts[:write_timeout].nil?
         | 
| 35 | 
            -
                    opts[:write_timeout] = 30000
         | 
| 36 | 
            -
                  end
         | 
| 37 | 
            -
             | 
| 38 26 | 
             
                  if region.nil? || !region.is_a?(String) || !regions.include?(region)
         | 
| 39 27 | 
             
                    raise "`region` is required and must be one of the following: #{regions.join(", ")}"
         | 
| 40 28 | 
             
                  end
         | 
| @@ -50,6 +38,18 @@ module Algolia | |
| 50 38 | 
             
                end
         | 
| 51 39 |  | 
| 52 40 | 
             
                def self.create_with_config(config)
         | 
| 41 | 
            +
                  if config.connect_timeout.nil? || config.connect_timeout.empty?
         | 
| 42 | 
            +
                    config.connect_timeout = 2000
         | 
| 43 | 
            +
                  end
         | 
| 44 | 
            +
             | 
| 45 | 
            +
                  if config.read_timeout.nil? || config.read_timeout.empty?
         | 
| 46 | 
            +
                    config.read_timeout = 5000
         | 
| 47 | 
            +
                  end
         | 
| 48 | 
            +
             | 
| 49 | 
            +
                  if config.write_timeout.nil? || config.write_timeout.empty?
         | 
| 50 | 
            +
                    config.write_timeout = 30000
         | 
| 51 | 
            +
                  end
         | 
| 52 | 
            +
             | 
| 53 53 | 
             
                  new(config)
         | 
| 54 54 | 
             
                end
         | 
| 55 55 |  | 
| @@ -23,18 +23,6 @@ module Algolia | |
| 23 23 | 
             
                    region = nil
         | 
| 24 24 | 
             
                  end
         | 
| 25 25 |  | 
| 26 | 
            -
                  if opts.nil? || opts[:connect_timeout].nil?
         | 
| 27 | 
            -
                    opts[:connect_timeout] = 2000
         | 
| 28 | 
            -
                  end
         | 
| 29 | 
            -
             | 
| 30 | 
            -
                  if opts.nil? || opts[:read_timeout].nil?
         | 
| 31 | 
            -
                    opts[:read_timeout] = 5000
         | 
| 32 | 
            -
                  end
         | 
| 33 | 
            -
             | 
| 34 | 
            -
                  if opts.nil? || opts[:write_timeout].nil?
         | 
| 35 | 
            -
                    opts[:write_timeout] = 30000
         | 
| 36 | 
            -
                  end
         | 
| 37 | 
            -
             | 
| 38 26 | 
             
                  if region.nil? || !region.is_a?(String) || !regions.include?(region)
         | 
| 39 27 | 
             
                    raise "`region` is required and must be one of the following: #{regions.join(", ")}"
         | 
| 40 28 | 
             
                  end
         | 
| @@ -50,6 +38,18 @@ module Algolia | |
| 50 38 | 
             
                end
         | 
| 51 39 |  | 
| 52 40 | 
             
                def self.create_with_config(config)
         | 
| 41 | 
            +
                  if config.connect_timeout.nil? || config.connect_timeout.empty?
         | 
| 42 | 
            +
                    config.connect_timeout = 2000
         | 
| 43 | 
            +
                  end
         | 
| 44 | 
            +
             | 
| 45 | 
            +
                  if config.read_timeout.nil? || config.read_timeout.empty?
         | 
| 46 | 
            +
                    config.read_timeout = 5000
         | 
| 47 | 
            +
                  end
         | 
| 48 | 
            +
             | 
| 49 | 
            +
                  if config.write_timeout.nil? || config.write_timeout.empty?
         | 
| 50 | 
            +
                    config.write_timeout = 30000
         | 
| 51 | 
            +
                  end
         | 
| 52 | 
            +
             | 
| 53 53 | 
             
                  new(config)
         | 
| 54 54 | 
             
                end
         | 
| 55 55 |  | 
| @@ -31,6 +31,18 @@ module Algolia | |
| 31 31 | 
             
                end
         | 
| 32 32 |  | 
| 33 33 | 
             
                def self.create_with_config(config)
         | 
| 34 | 
            +
                  if config.connect_timeout.nil? || config.connect_timeout.empty?
         | 
| 35 | 
            +
                    config.connect_timeout = 2000
         | 
| 36 | 
            +
                  end
         | 
| 37 | 
            +
             | 
| 38 | 
            +
                  if config.read_timeout.nil? || config.read_timeout.empty?
         | 
| 39 | 
            +
                    config.read_timeout = 5000
         | 
| 40 | 
            +
                  end
         | 
| 41 | 
            +
             | 
| 42 | 
            +
                  if config.write_timeout.nil? || config.write_timeout.empty?
         | 
| 43 | 
            +
                    config.write_timeout = 30000
         | 
| 44 | 
            +
                  end
         | 
| 45 | 
            +
             | 
| 34 46 | 
             
                  new(config)
         | 
| 35 47 | 
             
                end
         | 
| 36 48 |  | 
| @@ -34,6 +34,18 @@ module Algolia | |
| 34 34 | 
             
                end
         | 
| 35 35 |  | 
| 36 36 | 
             
                def self.create_with_config(config)
         | 
| 37 | 
            +
                  if config.connect_timeout.nil? || config.connect_timeout.empty?
         | 
| 38 | 
            +
                    config.connect_timeout = 2000
         | 
| 39 | 
            +
                  end
         | 
| 40 | 
            +
             | 
| 41 | 
            +
                  if config.read_timeout.nil? || config.read_timeout.empty?
         | 
| 42 | 
            +
                    config.read_timeout = 5000
         | 
| 43 | 
            +
                  end
         | 
| 44 | 
            +
             | 
| 45 | 
            +
                  if config.write_timeout.nil? || config.write_timeout.empty?
         | 
| 46 | 
            +
                    config.write_timeout = 30000
         | 
| 47 | 
            +
                  end
         | 
| 48 | 
            +
             | 
| 37 49 | 
             
                  new(config)
         | 
| 38 50 | 
             
                end
         | 
| 39 51 |  | 
| @@ -207,6 +219,7 @@ module Algolia | |
| 207 219 | 
             
                #
         | 
| 208 220 | 
             
                # Required API Key ACLs:
         | 
| 209 221 | 
             
                #   - admin
         | 
| 222 | 
            +
                # THIS OPERATION IS DEPRECATED
         | 
| 210 223 | 
             
                # @param x_algolia_user_id [String] Unique identifier of the user who makes the search request. (required)
         | 
| 211 224 | 
             
                # @param assign_user_id_params [AssignUserIdParams]  (required)
         | 
| 212 225 | 
             
                # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
         | 
| @@ -304,6 +317,7 @@ module Algolia | |
| 304 317 | 
             
                #
         | 
| 305 318 | 
             
                # Required API Key ACLs:
         | 
| 306 319 | 
             
                #   - admin
         | 
| 320 | 
            +
                # THIS OPERATION IS DEPRECATED
         | 
| 307 321 | 
             
                # @param x_algolia_user_id [String] Unique identifier of the user who makes the search request. (required)
         | 
| 308 322 | 
             
                # @param batch_assign_user_ids_params [BatchAssignUserIdsParams]  (required)
         | 
| 309 323 | 
             
                # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
         | 
| @@ -1673,6 +1687,7 @@ module Algolia | |
| 1673 1687 | 
             
                #
         | 
| 1674 1688 | 
             
                # Required API Key ACLs:
         | 
| 1675 1689 | 
             
                #   - admin
         | 
| 1690 | 
            +
                # THIS OPERATION IS DEPRECATED
         | 
| 1676 1691 | 
             
                # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
         | 
| 1677 1692 | 
             
                # @return [Http::Response] the response
         | 
| 1678 1693 | 
             
                def get_top_user_ids_with_http_info(request_options = {})
         | 
| @@ -1710,6 +1725,7 @@ module Algolia | |
| 1710 1725 | 
             
                #
         | 
| 1711 1726 | 
             
                # Required API Key ACLs:
         | 
| 1712 1727 | 
             
                #   - admin
         | 
| 1728 | 
            +
                # THIS OPERATION IS DEPRECATED
         | 
| 1713 1729 | 
             
                # @param user_id [String] Unique identifier of the user who makes the search request. (required)
         | 
| 1714 1730 | 
             
                # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
         | 
| 1715 1731 | 
             
                # @return [Http::Response] the response
         | 
| @@ -1754,6 +1770,7 @@ module Algolia | |
| 1754 1770 | 
             
                #
         | 
| 1755 1771 | 
             
                # Required API Key ACLs:
         | 
| 1756 1772 | 
             
                #   - admin
         | 
| 1773 | 
            +
                # THIS OPERATION IS DEPRECATED
         | 
| 1757 1774 | 
             
                # @param get_clusters [Boolean] Whether to include the cluster's pending mapping state in the response.
         | 
| 1758 1775 | 
             
                # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
         | 
| 1759 1776 | 
             
                # @return [Http::Response] the response
         | 
| @@ -1834,6 +1851,7 @@ module Algolia | |
| 1834 1851 | 
             
                #
         | 
| 1835 1852 | 
             
                # Required API Key ACLs:
         | 
| 1836 1853 | 
             
                #   - admin
         | 
| 1854 | 
            +
                # THIS OPERATION IS DEPRECATED
         | 
| 1837 1855 | 
             
                # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
         | 
| 1838 1856 | 
             
                # @return [Http::Response] the response
         | 
| 1839 1857 | 
             
                def list_clusters_with_http_info(request_options = {})
         | 
| @@ -1914,6 +1932,7 @@ module Algolia | |
| 1914 1932 | 
             
                #
         | 
| 1915 1933 | 
             
                # Required API Key ACLs:
         | 
| 1916 1934 | 
             
                #   - admin
         | 
| 1935 | 
            +
                # THIS OPERATION IS DEPRECATED
         | 
| 1917 1936 | 
             
                # @param page [Integer] Requested page of the API response. If `null`, the API response is not paginated.
         | 
| 1918 1937 | 
             
                # @param hits_per_page [Integer] Number of hits per page. (default to 100)
         | 
| 1919 1938 | 
             
                # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
         | 
| @@ -2129,6 +2148,7 @@ module Algolia | |
| 2129 2148 | 
             
                #
         | 
| 2130 2149 | 
             
                # Required API Key ACLs:
         | 
| 2131 2150 | 
             
                #   - admin
         | 
| 2151 | 
            +
                # THIS OPERATION IS DEPRECATED
         | 
| 2132 2152 | 
             
                # @param user_id [String] Unique identifier of the user who makes the search request. (required)
         | 
| 2133 2153 | 
             
                # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
         | 
| 2134 2154 | 
             
                # @return [Http::Response] the response
         | 
| @@ -2906,6 +2926,7 @@ module Algolia | |
| 2906 2926 | 
             
                #
         | 
| 2907 2927 | 
             
                # Required API Key ACLs:
         | 
| 2908 2928 | 
             
                #   - admin
         | 
| 2929 | 
            +
                # THIS OPERATION IS DEPRECATED
         | 
| 2909 2930 | 
             
                # @param search_user_ids_params [SearchUserIdsParams]  (required)
         | 
| 2910 2931 | 
             
                # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
         | 
| 2911 2932 | 
             
                # @return [Http::Response] the response
         | 
| @@ -25,9 +25,9 @@ module Algolia | |
| 25 25 | 
             
                  @app_id = app_id
         | 
| 26 26 | 
             
                  @api_key = api_key
         | 
| 27 27 | 
             
                  @client_side_validation = opts[:client_side_validation].nil? ? true : opts[:client_side_validation]
         | 
| 28 | 
            -
                  @connect_timeout = opts[:connect_timeout] | 
| 29 | 
            -
                  @read_timeout = opts[:read_timeout] | 
| 30 | 
            -
                  @write_timeout = opts[:write_timeout] | 
| 28 | 
            +
                  @connect_timeout = opts[:connect_timeout]
         | 
| 29 | 
            +
                  @read_timeout = opts[:read_timeout]
         | 
| 30 | 
            +
                  @write_timeout = opts[:write_timeout]
         | 
| 31 31 | 
             
                  @compression_type = opts[:compression_type] || "none"
         | 
| 32 32 | 
             
                  @requester = opts[:requester]
         | 
| 33 33 |  | 
    
        data/lib/algolia/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,13 +1,13 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: algolia
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 3.15. | 
| 4 | 
            +
              version: 3.15.1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - https://alg.li/support
         | 
| 8 8 | 
             
            bindir: bin
         | 
| 9 9 | 
             
            cert_chain: []
         | 
| 10 | 
            -
            date: 2025- | 
| 10 | 
            +
            date: 2025-04-01 00:00:00.000000000 Z
         | 
| 11 11 | 
             
            dependencies:
         | 
| 12 12 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 13 13 | 
             
              name: faraday
         |