algolia 3.34.0 → 3.34.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 72b95250946c2ec0549f3ccb45bc8d6a19798fb718823f6785070670ab9dcb77
4
- data.tar.gz: de2118558f108ca16cd821f7e22c616454bbb0fef657ef8768cc529891109b5b
3
+ metadata.gz: 8189a4e0cfb23cab2ef3d512f074ea026e2a1bd034fb76edad6258cd8670f5f7
4
+ data.tar.gz: e6c801ad5cd7a3ee902cccd82fbb76196be67baff93da35c5812ce67147f92a5
5
5
  SHA512:
6
- metadata.gz: f1c66a50bd34bd38336057f4d320f93e66502c4cfb0b108b524c6bb4dc0650fb5d33bcaa3cdf15c302d428b2242135c2e28b6a7a5ee6375404b3dcbd987e62a0
7
- data.tar.gz: ab55900d51d0ed5e50236023a71d4b76db9a723584d62fc06eb76ac8f587134857b5bf07d39877a843538e460ce75393c835ef4368a9e75d9d49d1ae9b95c77c
6
+ metadata.gz: efae6679ac62a8194a5df95e09989fb706d139b79b3550305f31ef82664002c50b28a5b8fa86736f01157f2c88148e60624ead81634c6226e2a57abc2a5c266f
7
+ data.tar.gz: 979c0aecb5b39fd70e07261d049e707650d2ca764f615f72a360357fa70d1218642f0d46168d7f5601fb233460e5b30958f54369d7f2083147da1d86e514f144
@@ -14,7 +14,7 @@ jobs:
14
14
  name: Close PR
15
15
  runs-on: ubuntu-latest
16
16
  steps:
17
- - uses: actions/checkout@v5
17
+ - uses: actions/checkout@v6
18
18
 
19
19
  - name: Close PR
20
20
  env:
@@ -16,7 +16,7 @@ jobs:
16
16
  id-token: write
17
17
  contents: write
18
18
  steps:
19
- - uses: actions/checkout@v5
19
+ - uses: actions/checkout@v6
20
20
 
21
21
  - name: Install Ruby
22
22
  uses: ruby/setup-ruby@v1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [3.34.1](https://github.com/algolia/algoliasearch-client-ruby/compare/3.34.0...3.34.1)
2
+
3
+ - [54606b3b2](https://github.com/algolia/api-clients-automation/commit/54606b3b2) refactor(specs): extract `results` field in a dedicated directory ([#5739](https://github.com/algolia/api-clients-automation/pull/5739)) by [@ClaraMuller](https://github.com/ClaraMuller/)
4
+ - [3296a5033](https://github.com/algolia/api-clients-automation/commit/3296a5033) chore(deps): dependencies 2025-11-24 ([#5653](https://github.com/algolia/api-clients-automation/pull/5653)) by [@algolia-bot](https://github.com/algolia-bot/)
5
+ - [5dabdc540](https://github.com/algolia/api-clients-automation/commit/5dabdc540) refactor(specs): re-organise response for Composition API ([#5744](https://github.com/algolia/api-clients-automation/pull/5744)) by [@ClaraMuller](https://github.com/ClaraMuller/)
6
+ - [3d86676b0](https://github.com/algolia/api-clients-automation/commit/3d86676b0) fix(specs): update list with NLU permissions ([#5769](https://github.com/algolia/api-clients-automation/pull/5769)) by [@MarioAlexandruDan](https://github.com/MarioAlexandruDan/)
7
+
1
8
  ## [3.34.0](https://github.com/algolia/algoliasearch-client-ruby/compare/3.33.0...3.34.0)
2
9
 
3
10
  - [5335918a5](https://github.com/algolia/api-clients-automation/commit/5335918a5) chore(scripts): update the jira action ([#5678](https://github.com/algolia/api-clients-automation/pull/5678)) by [@millotp](https://github.com/millotp/)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- algolia (3.34.0)
4
+ algolia (3.34.1)
5
5
  base64 (>= 0.2.0, < 1)
6
6
  faraday (>= 1.0.1, < 3.0)
7
7
  faraday-net_http_persistent (>= 0.15, < 3)
@@ -8,7 +8,7 @@ require "time"
8
8
  module Algolia
9
9
  module Composition
10
10
  class CompositionRunAppliedRules
11
- # Unique record identifier.
11
+ # The objectID of the applied composition rule on this query.
12
12
  attr_accessor :algolia_object_id
13
13
 
14
14
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -8,7 +8,7 @@ require "time"
8
8
  module Algolia
9
9
  module Composition
10
10
  class CompositionRunSearchResponse
11
- # Unique record identifier.
11
+ # The objectID of the composition which generated this result set.
12
12
  attr_accessor :algolia_object_id
13
13
 
14
14
  attr_accessor :applied_rules
@@ -8,7 +8,7 @@ require "time"
8
8
  module Algolia
9
9
  module Composition
10
10
  class ResultsInjectedItemAppliedRulesInfoResponse
11
- # Unique record identifier.
11
+ # The objectID of the applied index level rule on this injected group.
12
12
  attr_accessor :algolia_object_id
13
13
 
14
14
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -8,6 +8,7 @@ require "time"
8
8
  module Algolia
9
9
  module Composition
10
10
  class ResultsInjectedItemInfoResponse
11
+ # The key of the injected group.
11
12
  attr_accessor :key
12
13
 
13
14
  attr_accessor :applied_rules
@@ -83,8 +83,11 @@ module Algolia
83
83
  # Whether automatic events collection is enabled for the application.
84
84
  attr_accessor :_automatic_insights
85
85
 
86
- # Page of search results to retrieve.
87
- attr_accessor :page
86
+ # Search results (hits). Hits are records from your index that match the search criteria, augmented with additional attributes, such as, for highlighting.
87
+ attr_accessor :hits
88
+
89
+ # Number of hits returned per page.
90
+ attr_accessor :hits_per_page
88
91
 
89
92
  # Number of results (hits).
90
93
  attr_accessor :nb_hits
@@ -92,18 +95,15 @@ module Algolia
92
95
  # Number of pages of results.
93
96
  attr_accessor :nb_pages
94
97
 
95
- # Number of hits per page.
96
- attr_accessor :hits_per_page
97
-
98
- # Search results (hits). Hits are records from your index that match the search criteria, augmented with additional attributes, such as, for highlighting.
99
- attr_accessor :hits
100
-
101
- # Search query.
102
- attr_accessor :query
98
+ # The current page of the results.
99
+ attr_accessor :page
103
100
 
104
101
  # URL-encoded string of all search parameters.
105
102
  attr_accessor :params
106
103
 
104
+ # The search query string.
105
+ attr_accessor :query
106
+
107
107
  attr_accessor :compositions
108
108
 
109
109
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -135,13 +135,13 @@ module Algolia
135
135
  :user_data => :userData,
136
136
  :query_id => :queryID,
137
137
  :_automatic_insights => :_automaticInsights,
138
- :page => :page,
138
+ :hits => :hits,
139
+ :hits_per_page => :hitsPerPage,
139
140
  :nb_hits => :nbHits,
140
141
  :nb_pages => :nbPages,
141
- :hits_per_page => :hitsPerPage,
142
- :hits => :hits,
143
- :query => :query,
142
+ :page => :page,
144
143
  :params => :params,
144
+ :query => :query,
145
145
  :compositions => :compositions
146
146
  }
147
147
  end
@@ -175,13 +175,13 @@ module Algolia
175
175
  :user_data => :"Object",
176
176
  :query_id => :"String",
177
177
  :_automatic_insights => :"Boolean",
178
- :page => :"Integer",
178
+ :hits => :"Array<Hit>",
179
+ :hits_per_page => :"Integer",
179
180
  :nb_hits => :"Integer",
180
181
  :nb_pages => :"Integer",
181
- :hits_per_page => :"Integer",
182
- :hits => :"Array<Hit>",
183
- :query => :"String",
182
+ :page => :"Integer",
184
183
  :params => :"String",
184
+ :query => :"String",
185
185
  :compositions => :"Hash<String, ResultsCompositionInfoResponse>"
186
186
  }
187
187
  end
@@ -200,8 +200,7 @@ module Algolia
200
200
  [
201
201
  :"BaseSearchResponse",
202
202
  :"ResultsCompositionsResponse",
203
- :"SearchHits",
204
- :"SearchPagination"
203
+ :"SearchFields"
205
204
  ]
206
205
  end
207
206
 
@@ -338,10 +337,18 @@ module Algolia
338
337
  self._automatic_insights = attributes[:_automatic_insights]
339
338
  end
340
339
 
341
- if attributes.key?(:page)
342
- self.page = attributes[:page]
340
+ if attributes.key?(:hits)
341
+ if (value = attributes[:hits]).is_a?(Array)
342
+ self.hits = value
343
+ end
343
344
  else
344
- self.page = nil
345
+ self.hits = nil
346
+ end
347
+
348
+ if attributes.key?(:hits_per_page)
349
+ self.hits_per_page = attributes[:hits_per_page]
350
+ else
351
+ self.hits_per_page = nil
345
352
  end
346
353
 
347
354
  if attributes.key?(:nb_hits)
@@ -356,18 +363,16 @@ module Algolia
356
363
  self.nb_pages = nil
357
364
  end
358
365
 
359
- if attributes.key?(:hits_per_page)
360
- self.hits_per_page = attributes[:hits_per_page]
366
+ if attributes.key?(:page)
367
+ self.page = attributes[:page]
361
368
  else
362
- self.hits_per_page = nil
369
+ self.page = nil
363
370
  end
364
371
 
365
- if attributes.key?(:hits)
366
- if (value = attributes[:hits]).is_a?(Array)
367
- self.hits = value
368
- end
372
+ if attributes.key?(:params)
373
+ self.params = attributes[:params]
369
374
  else
370
- self.hits = nil
375
+ self.params = nil
371
376
  end
372
377
 
373
378
  if attributes.key?(:query)
@@ -376,12 +381,6 @@ module Algolia
376
381
  self.query = nil
377
382
  end
378
383
 
379
- if attributes.key?(:params)
380
- self.params = attributes[:params]
381
- else
382
- self.params = nil
383
- end
384
-
385
384
  if attributes.key?(:compositions)
386
385
  if (value = attributes[:compositions]).is_a?(Hash)
387
386
  self.compositions = value
@@ -422,13 +421,13 @@ module Algolia
422
421
  user_data == other.user_data &&
423
422
  query_id == other.query_id &&
424
423
  _automatic_insights == other._automatic_insights &&
425
- page == other.page &&
424
+ hits == other.hits &&
425
+ hits_per_page == other.hits_per_page &&
426
426
  nb_hits == other.nb_hits &&
427
427
  nb_pages == other.nb_pages &&
428
- hits_per_page == other.hits_per_page &&
429
- hits == other.hits &&
430
- query == other.query &&
428
+ page == other.page &&
431
429
  params == other.params &&
430
+ query == other.query &&
432
431
  compositions == other.compositions
433
432
  end
434
433
 
@@ -468,13 +467,13 @@ module Algolia
468
467
  user_data,
469
468
  query_id,
470
469
  _automatic_insights,
471
- page,
470
+ hits,
471
+ hits_per_page,
472
472
  nb_hits,
473
473
  nb_pages,
474
- hits_per_page,
475
- hits,
476
- query,
474
+ page,
477
475
  params,
476
+ query,
478
477
  compositions
479
478
  ].hash
480
479
  end
@@ -23,6 +23,14 @@ module Algolia
23
23
  SEE_UNRETRIEVABLE_ATTRIBUTES = "seeUnretrievableAttributes".freeze
24
24
  SETTINGS = "settings".freeze
25
25
  USAGE = "usage".freeze
26
+ NLU_WRITE_PROJECT = "nluWriteProject".freeze
27
+ NLU_READ_PROJECT = "nluReadProject".freeze
28
+ NLU_WRITE_ENTITY = "nluWriteEntity".freeze
29
+ NLU_READ_ENTITY = "nluReadEntity".freeze
30
+ NLU_WRITE_INTENT = "nluWriteIntent".freeze
31
+ NLU_READ_INTENT = "nluReadIntent".freeze
32
+ NLU_PREDICTION = "nluPrediction".freeze
33
+ NLU_READ_ANSWERS = "nluReadAnswers".freeze
26
34
 
27
35
  def self.all_vars
28
36
  @all_vars ||= [
@@ -40,7 +48,15 @@ module Algolia
40
48
  SEARCH,
41
49
  SEE_UNRETRIEVABLE_ATTRIBUTES,
42
50
  SETTINGS,
43
- USAGE
51
+ USAGE,
52
+ NLU_WRITE_PROJECT,
53
+ NLU_READ_PROJECT,
54
+ NLU_WRITE_ENTITY,
55
+ NLU_READ_ENTITY,
56
+ NLU_WRITE_INTENT,
57
+ NLU_READ_INTENT,
58
+ NLU_PREDICTION,
59
+ NLU_READ_ANSWERS
44
60
  ].freeze
45
61
  end
46
62
 
@@ -3,5 +3,5 @@
3
3
  # 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.
4
4
 
5
5
  module Algolia
6
- VERSION = "3.34.0"
6
+ VERSION = "3.34.1"
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: algolia
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.34.0
4
+ version: 3.34.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - https://alg.li/support