algolia 3.0.0.beta.10 → 3.0.0.beta.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +19 -0
  3. data/Gemfile.lock +2 -2
  4. data/lib/algolia/api/ingestion_client.rb +912 -359
  5. data/lib/algolia/api/query_suggestions_client.rb +4 -10
  6. data/lib/algolia/api/search_client.rb +4 -4
  7. data/lib/algolia/api/usage_client.rb +4 -4
  8. data/lib/algolia/error.rb +10 -0
  9. data/lib/algolia/logger_helper.rb +11 -2
  10. data/lib/algolia/models/abtesting/{filter_effects_empty_search.rb → empty_search_filter.rb} +3 -3
  11. data/lib/algolia/models/abtesting/filter_effects.rb +2 -2
  12. data/lib/algolia/models/abtesting/{filter_effects_outliers.rb → outliers_filter.rb} +3 -3
  13. data/lib/algolia/models/analytics/{click_positions_inner.rb → click_position.rb} +3 -3
  14. data/lib/algolia/models/analytics/get_click_positions_response.rb +1 -1
  15. data/lib/algolia/models/analytics/top_search_with_analytics.rb +1 -1
  16. data/lib/algolia/models/analytics/top_search_with_revenue_analytics.rb +1 -1
  17. data/lib/algolia/models/ingestion/action.rb +45 -0
  18. data/lib/algolia/models/{search/search_for_hits_options.rb → ingestion/batch_request.rb} +22 -20
  19. data/lib/algolia/models/ingestion/{source_shopify_base.rb → batch_write_params.rb} +14 -12
  20. data/lib/algolia/models/ingestion/docker_streams_input.rb +1 -0
  21. data/lib/algolia/models/{recommend/recommendations_hits.rb → ingestion/list_tasks_response_v1.rb} +26 -14
  22. data/lib/algolia/models/ingestion/task.rb +30 -9
  23. data/lib/algolia/models/ingestion/task_create.rb +11 -12
  24. data/lib/algolia/models/{search/search_for_facets_options.rb → ingestion/task_create_v1.rb} +86 -51
  25. data/lib/algolia/models/ingestion/task_update.rb +8 -7
  26. data/lib/algolia/models/{search/browse_pagination.rb → ingestion/task_update_v1.rb} +50 -55
  27. data/lib/algolia/models/{recommend/looking_similar.rb → ingestion/task_v1.rb} +147 -30
  28. data/lib/algolia/models/ingestion/{transformation_try_response_error.rb → transformation_error.rb} +3 -3
  29. data/lib/algolia/models/ingestion/transformation_try_response.rb +1 -1
  30. data/lib/algolia/models/monitoring/{incidents_inner.rb → incident_entry.rb} +3 -3
  31. data/lib/algolia/models/monitoring/{indexing_time_response_metrics.rb → indexing_metric.rb} +3 -3
  32. data/lib/algolia/models/monitoring/indexing_time_response.rb +1 -1
  33. data/lib/algolia/models/monitoring/infrastructure_response.rb +1 -1
  34. data/lib/algolia/models/monitoring/{latency_response_metrics.rb → latency_metric.rb} +3 -3
  35. data/lib/algolia/models/monitoring/latency_response.rb +1 -1
  36. data/lib/algolia/models/monitoring/{infrastructure_response_metrics.rb → metrics.rb} +3 -6
  37. data/lib/algolia/models/monitoring/{time_inner.rb → time_entry.rb} +3 -3
  38. data/lib/algolia/models/{recommend/trending_items.rb → query-suggestions/config_status.rb} +46 -58
  39. data/lib/algolia/models/{recommend/related_products.rb → query-suggestions/log_file.rb} +36 -32
  40. data/lib/algolia/models/recommend/around_precision.rb +1 -1
  41. data/lib/algolia/models/recommend/fallback_params.rb +1 -1
  42. data/lib/algolia/models/recommend/{around_precision_from_value_inner.rb → range.rb} +3 -6
  43. data/lib/algolia/models/recommend/recommend_rule.rb +1 -1
  44. data/lib/algolia/models/recommend/{redirect_rule_index_metadata_data.rb → redirect_rule_index_data.rb} +3 -3
  45. data/lib/algolia/models/recommend/redirect_rule_index_metadata.rb +1 -1
  46. data/lib/algolia/models/recommend/{recommend_rule_metadata.rb → rule_metadata.rb} +3 -3
  47. data/lib/algolia/models/recommend/search_params.rb +1 -1
  48. data/lib/algolia/models/recommend/search_params_object.rb +1 -1
  49. data/lib/algolia/models/search/around_precision.rb +1 -1
  50. data/lib/algolia/models/search/browse_params_object.rb +1 -1
  51. data/lib/algolia/models/search/built_in_operation.rb +1 -2
  52. data/lib/algolia/models/search/built_in_operation_value.rb +105 -0
  53. data/lib/algolia/models/search/consequence_params.rb +1 -1
  54. data/lib/algolia/models/search/dictionary_entry.rb +0 -2
  55. data/lib/algolia/models/search/index_settings.rb +2 -2
  56. data/lib/algolia/models/search/{around_precision_from_value_inner.rb → range.rb} +3 -6
  57. data/lib/algolia/models/search/{redirect_rule_index_metadata_data.rb → redirect_rule_index_data.rb} +3 -3
  58. data/lib/algolia/models/search/redirect_rule_index_metadata.rb +1 -1
  59. data/lib/algolia/models/search/search_for_facets.rb +1 -1
  60. data/lib/algolia/models/search/search_for_hits.rb +1 -1
  61. data/lib/algolia/models/search/search_params_object.rb +1 -1
  62. data/lib/algolia/models/search/search_params_string.rb +1 -0
  63. data/lib/algolia/models/search/{index_settings_as_search_params.rb → settings_response.rb} +251 -11
  64. data/lib/algolia/models/usage/{get_usage400_response_error_errors_inner.rb → error_item.rb} +3 -3
  65. data/lib/algolia/models/usage/{get_usage400_response_error.rb → forbidden_error.rb} +4 -4
  66. data/lib/algolia/models/usage/{get_usage200_response.rb → index_usage.rb} +4 -4
  67. data/lib/algolia/models/usage/invalid_request_error.rb +231 -0
  68. data/lib/algolia/models/usage/{get_usage200_response_statistics_inner.rb → statistic_entry.rb} +3 -3
  69. data/lib/algolia/transport/transport.rb +8 -2
  70. data/lib/algolia/version.rb +1 -1
  71. metadata +32 -63
  72. data/lib/algolia/models/abtesting/custom_search_params.rb +0 -214
  73. data/lib/algolia/models/abtesting/error_base.rb +0 -212
  74. data/lib/algolia/models/analytics/error_base.rb +0 -212
  75. data/lib/algolia/models/ingestion/error_base.rb +0 -212
  76. data/lib/algolia/models/insights/error_base.rb +0 -212
  77. data/lib/algolia/models/monitoring/error_base.rb +0 -212
  78. data/lib/algolia/models/monitoring/get_servers403_response.rb +0 -211
  79. data/lib/algolia/models/personalization/error_base.rb +0 -212
  80. data/lib/algolia/models/query-suggestions/app_id.rb +0 -209
  81. data/lib/algolia/models/query-suggestions/error_base.rb +0 -212
  82. data/lib/algolia/models/recommend/base_recommend_request.rb +0 -281
  83. data/lib/algolia/models/recommend/base_search_params.rb +0 -635
  84. data/lib/algolia/models/recommend/base_search_params_without_query.rb +0 -616
  85. data/lib/algolia/models/recommend/base_search_response.rb +0 -499
  86. data/lib/algolia/models/recommend/error_base.rb +0 -212
  87. data/lib/algolia/models/recommend/frequently_bought_together.rb +0 -247
  88. data/lib/algolia/models/recommend/index_settings_as_search_params.rb +0 -788
  89. data/lib/algolia/models/recommend/recommended_for_you.rb +0 -244
  90. data/lib/algolia/models/recommend/search_pagination.rb +0 -282
  91. data/lib/algolia/models/recommend/search_params_query.rb +0 -212
  92. data/lib/algolia/models/recommend/trending_facets.rb +0 -258
  93. data/lib/algolia/models/search/base_get_api_key_response.rb +0 -224
  94. data/lib/algolia/models/search/base_index_settings.rb +0 -426
  95. data/lib/algolia/models/search/base_search_params.rb +0 -635
  96. data/lib/algolia/models/search/base_search_params_without_query.rb +0 -616
  97. data/lib/algolia/models/search/base_search_response.rb +0 -499
  98. data/lib/algolia/models/search/cursor.rb +0 -209
  99. data/lib/algolia/models/search/error_base.rb +0 -212
  100. data/lib/algolia/models/search/params.rb +0 -236
  101. data/lib/algolia/models/search/search_hits.rb +0 -240
  102. data/lib/algolia/models/search/search_pagination.rb +0 -282
  103. data/lib/algolia/models/search/search_params_query.rb +0 -212
  104. data/lib/algolia/models/usage/error_base.rb +0 -212
  105. data/lib/algolia/models/usage/get_usage400_response.rb +0 -213
@@ -0,0 +1,231 @@
1
+ # Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ require "date"
4
+ require "time"
5
+
6
+ module Algolia
7
+ module Usage
8
+ class InvalidRequestError
9
+ attr_accessor :code
10
+
11
+ attr_accessor :message
12
+
13
+ attr_accessor :errors
14
+
15
+ # Attribute mapping from ruby-style variable name to JSON key.
16
+ def self.attribute_map
17
+ {
18
+ :code => :code,
19
+ :message => :message,
20
+ :errors => :errors
21
+ }
22
+ end
23
+
24
+ # Returns all the JSON keys this model knows about
25
+ def self.acceptable_attributes
26
+ attribute_map.values
27
+ end
28
+
29
+ # Attribute type mapping.
30
+ def self.types_mapping
31
+ {
32
+ :code => :"String",
33
+ :message => :"String",
34
+ :errors => :"Array<ErrorItem>"
35
+ }
36
+ end
37
+
38
+ # List of attributes with nullable: true
39
+ def self.openapi_nullable
40
+ Set.new(
41
+ []
42
+ )
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param [Hash] attributes Model attributes in the form of hash
47
+ def initialize(attributes = {})
48
+ if (!attributes.is_a?(Hash))
49
+ raise(
50
+ ArgumentError,
51
+ "The input argument (attributes) must be a hash in `Algolia::InvalidRequestError` initialize method"
52
+ )
53
+ end
54
+
55
+ # check to see if the attribute exists and convert string to symbol for hash key
56
+ attributes = attributes.each_with_object({}) { |(k, v), h|
57
+ if (!self.class.attribute_map.key?(k.to_sym))
58
+ raise(
59
+ ArgumentError,
60
+ "`#{k}` is not a valid attribute in `Algolia::InvalidRequestError`. Please check the name to make sure it's valid. List of attributes: " +
61
+ self.class.attribute_map.keys.inspect
62
+ )
63
+ end
64
+
65
+ h[k.to_sym] = v
66
+ }
67
+
68
+ if attributes.key?(:code)
69
+ self.code = attributes[:code]
70
+ end
71
+
72
+ if attributes.key?(:message)
73
+ self.message = attributes[:message]
74
+ end
75
+
76
+ if attributes.key?(:errors)
77
+ if (value = attributes[:errors]).is_a?(Array)
78
+ self.errors = value
79
+ end
80
+ end
81
+ end
82
+
83
+ # Checks equality by comparing each attribute.
84
+ # @param [Object] Object to be compared
85
+ def ==(other)
86
+ return true if self.equal?(other)
87
+ self.class == other.class &&
88
+ code == other.code &&
89
+ message == other.message &&
90
+ errors == other.errors
91
+ end
92
+
93
+ # @see the `==` method
94
+ # @param [Object] Object to be compared
95
+ def eql?(other)
96
+ self == other
97
+ end
98
+
99
+ # Calculates hash code according to all attributes.
100
+ # @return [Integer] Hash code
101
+ def hash
102
+ [code, message, errors].hash
103
+ end
104
+
105
+ # Builds the object from hash
106
+ # @param [Hash] attributes Model attributes in the form of hash
107
+ # @return [Object] Returns the model itself
108
+ def self.build_from_hash(attributes)
109
+ return nil unless attributes.is_a?(Hash)
110
+ attributes = attributes.transform_keys(&:to_sym)
111
+ transformed_hash = {}
112
+ types_mapping.each_pair do |key, type|
113
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
114
+ transformed_hash[key.to_sym] = nil
115
+ elsif type =~ /\AArray<(.*)>/i
116
+ # check to ensure the input is an array given that the attribute
117
+ # is documented as an array but the input is not
118
+ if attributes[attribute_map[key]].is_a?(Array)
119
+ transformed_hash[key.to_sym] = attributes[attribute_map[key]].map { |v|
120
+ _deserialize(::Regexp.last_match(1), v)
121
+ }
122
+ end
123
+ elsif !attributes[attribute_map[key]].nil?
124
+ transformed_hash[key.to_sym] = _deserialize(type, attributes[attribute_map[key]])
125
+ end
126
+ end
127
+
128
+ new(transformed_hash)
129
+ end
130
+
131
+ # Deserializes the data based on type
132
+ # @param string type Data type
133
+ # @param string value Value to be deserialized
134
+ # @return [Object] Deserialized data
135
+ def self._deserialize(type, value)
136
+ case type.to_sym
137
+ when :Time
138
+ Time.parse(value)
139
+ when :Date
140
+ Date.parse(value)
141
+ when :String
142
+ value.to_s
143
+ when :Integer
144
+ value.to_i
145
+ when :Float
146
+ value.to_f
147
+ when :Boolean
148
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
149
+ true
150
+ else
151
+ false
152
+ end
153
+
154
+ when :Object
155
+ # generic object (usually a Hash), return directly
156
+ value
157
+ when /\AArray<(?<inner_type>.+)>\z/
158
+ inner_type = Regexp.last_match[:inner_type]
159
+ value.map { |v| _deserialize(inner_type, v) }
160
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
161
+ k_type = Regexp.last_match[:k_type]
162
+ v_type = Regexp.last_match[:v_type]
163
+ {}.tap do |hash|
164
+ value.each do |k, v|
165
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
166
+ end
167
+ end
168
+ # model
169
+ else
170
+ # models (e.g. Pet) or oneOf
171
+ klass = Algolia::Usage.const_get(type)
172
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass
173
+ .build_from_hash(value)
174
+ end
175
+ end
176
+
177
+ # Returns the string representation of the object
178
+ # @return [String] String presentation of the object
179
+ def to_s
180
+ to_hash.to_s
181
+ end
182
+
183
+ # to_body is an alias to to_hash (backward compatibility)
184
+ # @return [Hash] Returns the object in the form of hash
185
+ def to_body
186
+ to_hash
187
+ end
188
+
189
+ def to_json(*_args)
190
+ to_hash.to_json
191
+ end
192
+
193
+ # Returns the object in the form of hash
194
+ # @return [Hash] Returns the object in the form of hash
195
+ def to_hash
196
+ hash = {}
197
+ self.class.attribute_map.each_pair do |attr, param|
198
+ value = send(attr)
199
+ if value.nil?
200
+ is_nullable = self.class.openapi_nullable.include?(attr)
201
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
202
+ end
203
+
204
+ hash[param] = _to_hash(value)
205
+ end
206
+
207
+ hash
208
+ end
209
+
210
+ # Outputs non-array value in the form of hash
211
+ # For object, use to_hash. Otherwise, just return the value
212
+ # @param [Object] value Any valid value
213
+ # @return [Hash] Returns the value in the form of hash
214
+ def _to_hash(value)
215
+ if value.is_a?(Array)
216
+ value.compact.map { |v| _to_hash(v) }
217
+ elsif value.is_a?(Hash)
218
+ {}.tap do |hash|
219
+ value.each { |k, v| hash[k] = _to_hash(v) }
220
+ end
221
+ elsif value.respond_to?(:to_hash)
222
+ value.to_hash
223
+ else
224
+ value
225
+ end
226
+ end
227
+
228
+ end
229
+
230
+ end
231
+ end
@@ -5,7 +5,7 @@ require "time"
5
5
 
6
6
  module Algolia
7
7
  module Usage
8
- class GetUsage200ResponseStatisticsInner
8
+ class StatisticEntry
9
9
  # Timestamp, measured in milliseconds since the Unix epoch.
10
10
  attr_accessor :t
11
11
 
@@ -45,7 +45,7 @@ module Algolia
45
45
  if (!attributes.is_a?(Hash))
46
46
  raise(
47
47
  ArgumentError,
48
- "The input argument (attributes) must be a hash in `Algolia::GetUsage200ResponseStatisticsInner` initialize method"
48
+ "The input argument (attributes) must be a hash in `Algolia::StatisticEntry` initialize method"
49
49
  )
50
50
  end
51
51
 
@@ -54,7 +54,7 @@ module Algolia
54
54
  if (!self.class.attribute_map.key?(k.to_sym))
55
55
  raise(
56
56
  ArgumentError,
57
- "`#{k}` is not a valid attribute in `Algolia::GetUsage200ResponseStatisticsInner`. Please check the name to make sure it's valid. List of attributes: " +
57
+ "`#{k}` is not a valid attribute in `Algolia::StatisticEntry`. Please check the name to make sure it's valid. List of attributes: " +
58
58
  self.class.attribute_map.keys.inspect
59
59
  )
60
60
  end
@@ -39,6 +39,8 @@ module Algolia
39
39
  # @return [Response] response of the request
40
40
  #
41
41
  def request(call_type, method, path, body, opts = {})
42
+ retry_errors = []
43
+
42
44
  @retry_strategy.get_tryable_hosts(call_type).each do |host|
43
45
  opts[:timeout] ||= get_timeout(call_type) * (host.retry_count + 1)
44
46
  opts[:connect_timeout] ||= @config.connect_timeout * (host.retry_count + 1)
@@ -71,10 +73,14 @@ module Algolia
71
73
  raise Algolia::AlgoliaHttpError.new(response.status, decoded_error[:message])
72
74
  end
73
75
 
74
- return response unless outcome == RETRY
76
+ if outcome == RETRY
77
+ retry_errors << {host: host.url, error: response.error}
78
+ else
79
+ return response
80
+ end
75
81
  end
76
82
 
77
- raise Algolia::AlgoliaUnreachableHostError, "Unreachable hosts"
83
+ raise Algolia::AlgoliaUnreachableHostError.new("Unreachable hosts.", retry_errors)
78
84
  end
79
85
 
80
86
  private
@@ -1,5 +1,5 @@
1
1
  # Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  module Algolia
4
- VERSION = "3.0.0.beta.10".freeze
4
+ VERSION = "3.0.0.beta.12".freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: algolia
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.beta.10
4
+ version: 3.0.0.beta.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - https://alg.li/support
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-19 00:00:00.000000000 Z
11
+ date: 2024-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -151,19 +151,17 @@ files:
151
151
  - lib/algolia/models/abtesting/add_ab_tests_request.rb
152
152
  - lib/algolia/models/abtesting/add_ab_tests_variant.rb
153
153
  - lib/algolia/models/abtesting/currency.rb
154
- - lib/algolia/models/abtesting/custom_search_params.rb
155
154
  - lib/algolia/models/abtesting/effect.rb
156
155
  - lib/algolia/models/abtesting/empty_search.rb
157
- - lib/algolia/models/abtesting/error_base.rb
156
+ - lib/algolia/models/abtesting/empty_search_filter.rb
158
157
  - lib/algolia/models/abtesting/filter_effects.rb
159
- - lib/algolia/models/abtesting/filter_effects_empty_search.rb
160
- - lib/algolia/models/abtesting/filter_effects_outliers.rb
161
158
  - lib/algolia/models/abtesting/list_ab_tests_response.rb
162
159
  - lib/algolia/models/abtesting/minimum_detectable_effect.rb
163
160
  - lib/algolia/models/abtesting/outliers.rb
161
+ - lib/algolia/models/abtesting/outliers_filter.rb
164
162
  - lib/algolia/models/abtesting/status.rb
165
163
  - lib/algolia/models/abtesting/variant.rb
166
- - lib/algolia/models/analytics/click_positions_inner.rb
164
+ - lib/algolia/models/analytics/click_position.rb
167
165
  - lib/algolia/models/analytics/currencies_value.rb
168
166
  - lib/algolia/models/analytics/daily_add_to_cart_rates.rb
169
167
  - lib/algolia/models/analytics/daily_average_clicks.rb
@@ -178,7 +176,6 @@ files:
178
176
  - lib/algolia/models/analytics/daily_searches_no_results.rb
179
177
  - lib/algolia/models/analytics/daily_users.rb
180
178
  - lib/algolia/models/analytics/direction.rb
181
- - lib/algolia/models/analytics/error_base.rb
182
179
  - lib/algolia/models/analytics/get_add_to_cart_rate_response.rb
183
180
  - lib/algolia/models/analytics/get_average_click_position_response.rb
184
181
  - lib/algolia/models/analytics/get_click_positions_response.rb
@@ -218,6 +215,7 @@ files:
218
215
  - lib/algolia/models/analytics/top_searches_response.rb
219
216
  - lib/algolia/models/analytics/top_searches_response_with_analytics.rb
220
217
  - lib/algolia/models/analytics/top_searches_response_with_revenue_analytics.rb
218
+ - lib/algolia/models/ingestion/action.rb
221
219
  - lib/algolia/models/ingestion/action_type.rb
222
220
  - lib/algolia/models/ingestion/auth_algolia.rb
223
221
  - lib/algolia/models/ingestion/auth_algolia_insights.rb
@@ -241,6 +239,8 @@ files:
241
239
  - lib/algolia/models/ingestion/authentication_type.rb
242
240
  - lib/algolia/models/ingestion/authentication_update.rb
243
241
  - lib/algolia/models/ingestion/authentication_update_response.rb
242
+ - lib/algolia/models/ingestion/batch_request.rb
243
+ - lib/algolia/models/ingestion/batch_write_params.rb
244
244
  - lib/algolia/models/ingestion/big_commerce_channel.rb
245
245
  - lib/algolia/models/ingestion/big_commerce_metafield.rb
246
246
  - lib/algolia/models/ingestion/big_query_data_type.rb
@@ -260,7 +260,6 @@ files:
260
260
  - lib/algolia/models/ingestion/docker_image_type.rb
261
261
  - lib/algolia/models/ingestion/docker_registry.rb
262
262
  - lib/algolia/models/ingestion/docker_streams_input.rb
263
- - lib/algolia/models/ingestion/error_base.rb
264
263
  - lib/algolia/models/ingestion/event.rb
265
264
  - lib/algolia/models/ingestion/event_sort_keys.rb
266
265
  - lib/algolia/models/ingestion/event_status.rb
@@ -270,6 +269,7 @@ files:
270
269
  - lib/algolia/models/ingestion/list_events_response.rb
271
270
  - lib/algolia/models/ingestion/list_sources_response.rb
272
271
  - lib/algolia/models/ingestion/list_tasks_response.rb
272
+ - lib/algolia/models/ingestion/list_tasks_response_v1.rb
273
273
  - lib/algolia/models/ingestion/list_transformations_response.rb
274
274
  - lib/algolia/models/ingestion/mapping_field_directive.rb
275
275
  - lib/algolia/models/ingestion/mapping_format_schema.rb
@@ -315,7 +315,6 @@ files:
315
315
  - lib/algolia/models/ingestion/source_json.rb
316
316
  - lib/algolia/models/ingestion/source_search.rb
317
317
  - lib/algolia/models/ingestion/source_shopify.rb
318
- - lib/algolia/models/ingestion/source_shopify_base.rb
319
318
  - lib/algolia/models/ingestion/source_sort_keys.rb
320
319
  - lib/algolia/models/ingestion/source_type.rb
321
320
  - lib/algolia/models/ingestion/source_update.rb
@@ -334,18 +333,21 @@ files:
334
333
  - lib/algolia/models/ingestion/task_create.rb
335
334
  - lib/algolia/models/ingestion/task_create_response.rb
336
335
  - lib/algolia/models/ingestion/task_create_trigger.rb
336
+ - lib/algolia/models/ingestion/task_create_v1.rb
337
337
  - lib/algolia/models/ingestion/task_input.rb
338
338
  - lib/algolia/models/ingestion/task_search.rb
339
339
  - lib/algolia/models/ingestion/task_sort_keys.rb
340
340
  - lib/algolia/models/ingestion/task_update.rb
341
341
  - lib/algolia/models/ingestion/task_update_response.rb
342
+ - lib/algolia/models/ingestion/task_update_v1.rb
343
+ - lib/algolia/models/ingestion/task_v1.rb
342
344
  - lib/algolia/models/ingestion/transformation.rb
343
345
  - lib/algolia/models/ingestion/transformation_create.rb
344
346
  - lib/algolia/models/ingestion/transformation_create_response.rb
347
+ - lib/algolia/models/ingestion/transformation_error.rb
345
348
  - lib/algolia/models/ingestion/transformation_search.rb
346
349
  - lib/algolia/models/ingestion/transformation_try.rb
347
350
  - lib/algolia/models/ingestion/transformation_try_response.rb
348
- - lib/algolia/models/ingestion/transformation_try_response_error.rb
349
351
  - lib/algolia/models/ingestion/transformation_update_response.rb
350
352
  - lib/algolia/models/ingestion/trigger.rb
351
353
  - lib/algolia/models/ingestion/trigger_type.rb
@@ -363,7 +365,6 @@ files:
363
365
  - lib/algolia/models/insights/converted_object_ids.rb
364
366
  - lib/algolia/models/insights/converted_object_ids_after_search.rb
365
367
  - lib/algolia/models/insights/discount.rb
366
- - lib/algolia/models/insights/error_base.rb
367
368
  - lib/algolia/models/insights/events_items.rb
368
369
  - lib/algolia/models/insights/events_response.rb
369
370
  - lib/algolia/models/insights/insights_events.rb
@@ -377,19 +378,17 @@ files:
377
378
  - lib/algolia/models/insights/view_event.rb
378
379
  - lib/algolia/models/insights/viewed_filters.rb
379
380
  - lib/algolia/models/insights/viewed_object_ids.rb
380
- - lib/algolia/models/monitoring/error_base.rb
381
- - lib/algolia/models/monitoring/get_servers403_response.rb
382
381
  - lib/algolia/models/monitoring/incident.rb
383
- - lib/algolia/models/monitoring/incidents_inner.rb
382
+ - lib/algolia/models/monitoring/incident_entry.rb
384
383
  - lib/algolia/models/monitoring/incidents_response.rb
384
+ - lib/algolia/models/monitoring/indexing_metric.rb
385
385
  - lib/algolia/models/monitoring/indexing_time_response.rb
386
- - lib/algolia/models/monitoring/indexing_time_response_metrics.rb
387
386
  - lib/algolia/models/monitoring/infrastructure_response.rb
388
- - lib/algolia/models/monitoring/infrastructure_response_metrics.rb
389
387
  - lib/algolia/models/monitoring/inventory_response.rb
388
+ - lib/algolia/models/monitoring/latency_metric.rb
390
389
  - lib/algolia/models/monitoring/latency_response.rb
391
- - lib/algolia/models/monitoring/latency_response_metrics.rb
392
390
  - lib/algolia/models/monitoring/metric.rb
391
+ - lib/algolia/models/monitoring/metrics.rb
393
392
  - lib/algolia/models/monitoring/period.rb
394
393
  - lib/algolia/models/monitoring/probes_metric.rb
395
394
  - lib/algolia/models/monitoring/region.rb
@@ -397,28 +396,27 @@ files:
397
396
  - lib/algolia/models/monitoring/server_status.rb
398
397
  - lib/algolia/models/monitoring/status.rb
399
398
  - lib/algolia/models/monitoring/status_response.rb
400
- - lib/algolia/models/monitoring/time_inner.rb
399
+ - lib/algolia/models/monitoring/time_entry.rb
401
400
  - lib/algolia/models/monitoring/type.rb
402
401
  - lib/algolia/models/personalization/delete_user_profile_response.rb
403
- - lib/algolia/models/personalization/error_base.rb
404
402
  - lib/algolia/models/personalization/event_scoring.rb
405
403
  - lib/algolia/models/personalization/event_type.rb
406
404
  - lib/algolia/models/personalization/facet_scoring.rb
407
405
  - lib/algolia/models/personalization/get_user_token_response.rb
408
406
  - lib/algolia/models/personalization/personalization_strategy_params.rb
409
407
  - lib/algolia/models/personalization/set_personalization_strategy_response.rb
410
- - lib/algolia/models/query-suggestions/app_id.rb
411
408
  - lib/algolia/models/query-suggestions/base_query_suggestions_configuration_response.rb
412
409
  - lib/algolia/models/query-suggestions/base_query_suggestions_configuration_with_index.rb
413
410
  - lib/algolia/models/query-suggestions/base_response.rb
411
+ - lib/algolia/models/query-suggestions/config_status.rb
414
412
  - lib/algolia/models/query-suggestions/configuration.rb
415
413
  - lib/algolia/models/query-suggestions/configuration_response.rb
416
414
  - lib/algolia/models/query-suggestions/configuration_with_index.rb
417
- - lib/algolia/models/query-suggestions/error_base.rb
418
415
  - lib/algolia/models/query-suggestions/facet.rb
419
416
  - lib/algolia/models/query-suggestions/get_config_status200_response.rb
420
417
  - lib/algolia/models/query-suggestions/get_log_file200_response.rb
421
418
  - lib/algolia/models/query-suggestions/languages.rb
419
+ - lib/algolia/models/query-suggestions/log_file.rb
422
420
  - lib/algolia/models/query-suggestions/log_level.rb
423
421
  - lib/algolia/models/query-suggestions/query_suggestions_configuration.rb
424
422
  - lib/algolia/models/query-suggestions/query_suggestions_configuration_response.rb
@@ -427,20 +425,14 @@ files:
427
425
  - lib/algolia/models/recommend/advanced_syntax_features.rb
428
426
  - lib/algolia/models/recommend/alternatives_as_exact.rb
429
427
  - lib/algolia/models/recommend/around_precision.rb
430
- - lib/algolia/models/recommend/around_precision_from_value_inner.rb
431
428
  - lib/algolia/models/recommend/around_radius.rb
432
429
  - lib/algolia/models/recommend/around_radius_all.rb
433
430
  - lib/algolia/models/recommend/auto_facet_filter.rb
434
- - lib/algolia/models/recommend/base_recommend_request.rb
435
- - lib/algolia/models/recommend/base_search_params.rb
436
- - lib/algolia/models/recommend/base_search_params_without_query.rb
437
- - lib/algolia/models/recommend/base_search_response.rb
438
431
  - lib/algolia/models/recommend/bought_together_query.rb
439
432
  - lib/algolia/models/recommend/condition.rb
440
433
  - lib/algolia/models/recommend/consequence.rb
441
434
  - lib/algolia/models/recommend/deleted_at_response.rb
442
435
  - lib/algolia/models/recommend/distinct.rb
443
- - lib/algolia/models/recommend/error_base.rb
444
436
  - lib/algolia/models/recommend/exact_on_single_word_query.rb
445
437
  - lib/algolia/models/recommend/exhaustive.rb
446
438
  - lib/algolia/models/recommend/facet_filters.rb
@@ -449,7 +441,6 @@ files:
449
441
  - lib/algolia/models/recommend/facets_stats.rb
450
442
  - lib/algolia/models/recommend/fallback_params.rb
451
443
  - lib/algolia/models/recommend/fbt_model.rb
452
- - lib/algolia/models/recommend/frequently_bought_together.rb
453
444
  - lib/algolia/models/recommend/get_recommend_task_response.rb
454
445
  - lib/algolia/models/recommend/get_recommendations_params.rb
455
446
  - lib/algolia/models/recommend/get_recommendations_response.rb
@@ -457,8 +448,6 @@ files:
457
448
  - lib/algolia/models/recommend/highlight_result.rb
458
449
  - lib/algolia/models/recommend/highlight_result_option.rb
459
450
  - lib/algolia/models/recommend/ignore_plurals.rb
460
- - lib/algolia/models/recommend/index_settings_as_search_params.rb
461
- - lib/algolia/models/recommend/looking_similar.rb
462
451
  - lib/algolia/models/recommend/looking_similar_model.rb
463
452
  - lib/algolia/models/recommend/looking_similar_query.rb
464
453
  - lib/algolia/models/recommend/match_level.rb
@@ -470,33 +459,29 @@ files:
470
459
  - lib/algolia/models/recommend/personalization.rb
471
460
  - lib/algolia/models/recommend/promote_consequence_object.rb
472
461
  - lib/algolia/models/recommend/query_type.rb
462
+ - lib/algolia/models/recommend/range.rb
473
463
  - lib/algolia/models/recommend/ranking_info.rb
474
464
  - lib/algolia/models/recommend/re_ranking_apply_filter.rb
475
465
  - lib/algolia/models/recommend/recommend_hit.rb
476
466
  - lib/algolia/models/recommend/recommend_models.rb
477
467
  - lib/algolia/models/recommend/recommend_rule.rb
478
- - lib/algolia/models/recommend/recommend_rule_metadata.rb
479
468
  - lib/algolia/models/recommend/recommendations_hit.rb
480
- - lib/algolia/models/recommend/recommendations_hits.rb
481
469
  - lib/algolia/models/recommend/recommendations_request.rb
482
470
  - lib/algolia/models/recommend/recommendations_results.rb
483
- - lib/algolia/models/recommend/recommended_for_you.rb
484
471
  - lib/algolia/models/recommend/recommended_for_you_model.rb
485
472
  - lib/algolia/models/recommend/recommended_for_you_query.rb
486
473
  - lib/algolia/models/recommend/redirect.rb
474
+ - lib/algolia/models/recommend/redirect_rule_index_data.rb
487
475
  - lib/algolia/models/recommend/redirect_rule_index_metadata.rb
488
- - lib/algolia/models/recommend/redirect_rule_index_metadata_data.rb
489
476
  - lib/algolia/models/recommend/redirect_url.rb
490
477
  - lib/algolia/models/recommend/related_model.rb
491
- - lib/algolia/models/recommend/related_products.rb
492
478
  - lib/algolia/models/recommend/related_query.rb
493
479
  - lib/algolia/models/recommend/remove_stop_words.rb
494
480
  - lib/algolia/models/recommend/remove_words_if_no_results.rb
495
481
  - lib/algolia/models/recommend/rendering_content.rb
496
- - lib/algolia/models/recommend/search_pagination.rb
482
+ - lib/algolia/models/recommend/rule_metadata.rb
497
483
  - lib/algolia/models/recommend/search_params.rb
498
484
  - lib/algolia/models/recommend/search_params_object.rb
499
- - lib/algolia/models/recommend/search_params_query.rb
500
485
  - lib/algolia/models/recommend/search_recommend_rules_params.rb
501
486
  - lib/algolia/models/recommend/search_recommend_rules_response.rb
502
487
  - lib/algolia/models/recommend/semantic_search.rb
@@ -507,10 +492,8 @@ files:
507
492
  - lib/algolia/models/recommend/tag_filters.rb
508
493
  - lib/algolia/models/recommend/task_status.rb
509
494
  - lib/algolia/models/recommend/trending_facet_hit.rb
510
- - lib/algolia/models/recommend/trending_facets.rb
511
495
  - lib/algolia/models/recommend/trending_facets_model.rb
512
496
  - lib/algolia/models/recommend/trending_facets_query.rb
513
- - lib/algolia/models/recommend/trending_items.rb
514
497
  - lib/algolia/models/recommend/trending_items_model.rb
515
498
  - lib/algolia/models/recommend/trending_items_query.rb
516
499
  - lib/algolia/models/recommend/typo_tolerance.rb
@@ -525,18 +508,12 @@ files:
525
508
  - lib/algolia/models/search/api_key.rb
526
509
  - lib/algolia/models/search/api_key_operation.rb
527
510
  - lib/algolia/models/search/around_precision.rb
528
- - lib/algolia/models/search/around_precision_from_value_inner.rb
529
511
  - lib/algolia/models/search/around_radius.rb
530
512
  - lib/algolia/models/search/around_radius_all.rb
531
513
  - lib/algolia/models/search/assign_user_id_params.rb
532
514
  - lib/algolia/models/search/attribute_to_update.rb
533
515
  - lib/algolia/models/search/automatic_facet_filter.rb
534
516
  - lib/algolia/models/search/automatic_facet_filters.rb
535
- - lib/algolia/models/search/base_get_api_key_response.rb
536
- - lib/algolia/models/search/base_index_settings.rb
537
- - lib/algolia/models/search/base_search_params.rb
538
- - lib/algolia/models/search/base_search_params_without_query.rb
539
- - lib/algolia/models/search/base_search_response.rb
540
517
  - lib/algolia/models/search/batch_assign_user_ids_params.rb
541
518
  - lib/algolia/models/search/batch_dictionary_entries_params.rb
542
519
  - lib/algolia/models/search/batch_dictionary_entries_request.rb
@@ -544,12 +521,12 @@ files:
544
521
  - lib/algolia/models/search/batch_request.rb
545
522
  - lib/algolia/models/search/batch_response.rb
546
523
  - lib/algolia/models/search/batch_write_params.rb
547
- - lib/algolia/models/search/browse_pagination.rb
548
524
  - lib/algolia/models/search/browse_params.rb
549
525
  - lib/algolia/models/search/browse_params_object.rb
550
526
  - lib/algolia/models/search/browse_response.rb
551
527
  - lib/algolia/models/search/built_in_operation.rb
552
528
  - lib/algolia/models/search/built_in_operation_type.rb
529
+ - lib/algolia/models/search/built_in_operation_value.rb
553
530
  - lib/algolia/models/search/condition.rb
554
531
  - lib/algolia/models/search/consequence.rb
555
532
  - lib/algolia/models/search/consequence_hide.rb
@@ -557,7 +534,6 @@ files:
557
534
  - lib/algolia/models/search/consequence_query.rb
558
535
  - lib/algolia/models/search/consequence_query_object.rb
559
536
  - lib/algolia/models/search/created_at_response.rb
560
- - lib/algolia/models/search/cursor.rb
561
537
  - lib/algolia/models/search/delete_api_key_response.rb
562
538
  - lib/algolia/models/search/delete_by_params.rb
563
539
  - lib/algolia/models/search/delete_source_response.rb
@@ -571,7 +547,6 @@ files:
571
547
  - lib/algolia/models/search/distinct.rb
572
548
  - lib/algolia/models/search/edit.rb
573
549
  - lib/algolia/models/search/edit_type.rb
574
- - lib/algolia/models/search/error_base.rb
575
550
  - lib/algolia/models/search/exact_on_single_word_query.rb
576
551
  - lib/algolia/models/search/exhaustive.rb
577
552
  - lib/algolia/models/search/facet_filters.rb
@@ -594,7 +569,6 @@ files:
594
569
  - lib/algolia/models/search/hit.rb
595
570
  - lib/algolia/models/search/ignore_plurals.rb
596
571
  - lib/algolia/models/search/index_settings.rb
597
- - lib/algolia/models/search/index_settings_as_search_params.rb
598
572
  - lib/algolia/models/search/languages.rb
599
573
  - lib/algolia/models/search/list_api_keys_response.rb
600
574
  - lib/algolia/models/search/list_clusters_response.rb
@@ -612,17 +586,17 @@ files:
612
586
  - lib/algolia/models/search/operation_index_params.rb
613
587
  - lib/algolia/models/search/operation_type.rb
614
588
  - lib/algolia/models/search/optional_filters.rb
615
- - lib/algolia/models/search/params.rb
616
589
  - lib/algolia/models/search/personalization.rb
617
590
  - lib/algolia/models/search/promote.rb
618
591
  - lib/algolia/models/search/promote_object_id.rb
619
592
  - lib/algolia/models/search/promote_object_ids.rb
620
593
  - lib/algolia/models/search/query_type.rb
594
+ - lib/algolia/models/search/range.rb
621
595
  - lib/algolia/models/search/ranking_info.rb
622
596
  - lib/algolia/models/search/re_ranking_apply_filter.rb
623
597
  - lib/algolia/models/search/redirect.rb
598
+ - lib/algolia/models/search/redirect_rule_index_data.rb
624
599
  - lib/algolia/models/search/redirect_rule_index_metadata.rb
625
- - lib/algolia/models/search/redirect_rule_index_metadata_data.rb
626
600
  - lib/algolia/models/search/redirect_url.rb
627
601
  - lib/algolia/models/search/remove_stop_words.rb
628
602
  - lib/algolia/models/search/remove_user_id_response.rb
@@ -639,15 +613,10 @@ files:
639
613
  - lib/algolia/models/search/search_for_facet_values_request.rb
640
614
  - lib/algolia/models/search/search_for_facet_values_response.rb
641
615
  - lib/algolia/models/search/search_for_facets.rb
642
- - lib/algolia/models/search/search_for_facets_options.rb
643
616
  - lib/algolia/models/search/search_for_hits.rb
644
- - lib/algolia/models/search/search_for_hits_options.rb
645
- - lib/algolia/models/search/search_hits.rb
646
617
  - lib/algolia/models/search/search_method_params.rb
647
- - lib/algolia/models/search/search_pagination.rb
648
618
  - lib/algolia/models/search/search_params.rb
649
619
  - lib/algolia/models/search/search_params_object.rb
650
- - lib/algolia/models/search/search_params_query.rb
651
620
  - lib/algolia/models/search/search_params_string.rb
652
621
  - lib/algolia/models/search/search_query.rb
653
622
  - lib/algolia/models/search/search_response.rb
@@ -664,6 +633,7 @@ files:
664
633
  - lib/algolia/models/search/search_user_ids_response.rb
665
634
  - lib/algolia/models/search/secured_api_key_restrictions.rb
666
635
  - lib/algolia/models/search/semantic_search.rb
636
+ - lib/algolia/models/search/settings_response.rb
667
637
  - lib/algolia/models/search/snippet_result.rb
668
638
  - lib/algolia/models/search/snippet_result_option.rb
669
639
  - lib/algolia/models/search/sort_remaining_by.rb
@@ -685,14 +655,13 @@ files:
685
655
  - lib/algolia/models/search/user_hit.rb
686
656
  - lib/algolia/models/search/user_id.rb
687
657
  - lib/algolia/models/search/value.rb
688
- - lib/algolia/models/usage/error_base.rb
689
- - lib/algolia/models/usage/get_usage200_response.rb
690
- - lib/algolia/models/usage/get_usage200_response_statistics_inner.rb
691
- - lib/algolia/models/usage/get_usage400_response.rb
692
- - lib/algolia/models/usage/get_usage400_response_error.rb
693
- - lib/algolia/models/usage/get_usage400_response_error_errors_inner.rb
658
+ - lib/algolia/models/usage/error_item.rb
659
+ - lib/algolia/models/usage/forbidden_error.rb
694
660
  - lib/algolia/models/usage/granularity.rb
661
+ - lib/algolia/models/usage/index_usage.rb
662
+ - lib/algolia/models/usage/invalid_request_error.rb
695
663
  - lib/algolia/models/usage/statistic.rb
664
+ - lib/algolia/models/usage/statistic_entry.rb
696
665
  - lib/algolia/models/usage/statistic_value.rb
697
666
  - lib/algolia/transport/call_type.rb
698
667
  - lib/algolia/transport/echo_requester.rb