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 +4 -4
- data/.github/workflows/do-not-edit-this-repository.yml +1 -1
- data/.github/workflows/release.yml +1 -1
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +1 -1
- data/lib/algolia/models/composition/composition_run_applied_rules.rb +1 -1
- data/lib/algolia/models/composition/composition_run_search_response.rb +1 -1
- data/lib/algolia/models/composition/results_injected_item_applied_rules_info_response.rb +1 -1
- data/lib/algolia/models/composition/results_injected_item_info_response.rb +1 -0
- data/lib/algolia/models/composition/search_results_item.rb +44 -45
- data/lib/algolia/models/search/acl.rb +17 -1
- data/lib/algolia/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8189a4e0cfb23cab2ef3d512f074ea026e2a1bd034fb76edad6258cd8670f5f7
|
|
4
|
+
data.tar.gz: e6c801ad5cd7a3ee902cccd82fbb76196be67baff93da35c5812ce67147f92a5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: efae6679ac62a8194a5df95e09989fb706d139b79b3550305f31ef82664002c50b28a5b8fa86736f01157f2c88148e60624ead81634c6226e2a57abc2a5c266f
|
|
7
|
+
data.tar.gz: 979c0aecb5b39fd70e07261d049e707650d2ca764f615f72a360357fa70d1218642f0d46168d7f5601fb233460e5b30958f54369d7f2083147da1d86e514f144
|
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
|
@@ -8,7 +8,7 @@ require "time"
|
|
|
8
8
|
module Algolia
|
|
9
9
|
module Composition
|
|
10
10
|
class CompositionRunAppliedRules
|
|
11
|
-
#
|
|
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 ResultsInjectedItemAppliedRulesInfoResponse
|
|
11
|
-
#
|
|
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.
|
|
@@ -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
|
-
#
|
|
87
|
-
attr_accessor :
|
|
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
|
-
#
|
|
96
|
-
attr_accessor :
|
|
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
|
-
:
|
|
138
|
+
:hits => :hits,
|
|
139
|
+
:hits_per_page => :hitsPerPage,
|
|
139
140
|
:nb_hits => :nbHits,
|
|
140
141
|
:nb_pages => :nbPages,
|
|
141
|
-
:
|
|
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
|
-
:
|
|
178
|
+
:hits => :"Array<Hit>",
|
|
179
|
+
:hits_per_page => :"Integer",
|
|
179
180
|
:nb_hits => :"Integer",
|
|
180
181
|
:nb_pages => :"Integer",
|
|
181
|
-
:
|
|
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
|
-
:"
|
|
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?(:
|
|
342
|
-
|
|
340
|
+
if attributes.key?(:hits)
|
|
341
|
+
if (value = attributes[:hits]).is_a?(Array)
|
|
342
|
+
self.hits = value
|
|
343
|
+
end
|
|
343
344
|
else
|
|
344
|
-
self.
|
|
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?(:
|
|
360
|
-
self.
|
|
366
|
+
if attributes.key?(:page)
|
|
367
|
+
self.page = attributes[:page]
|
|
361
368
|
else
|
|
362
|
-
self.
|
|
369
|
+
self.page = nil
|
|
363
370
|
end
|
|
364
371
|
|
|
365
|
-
if attributes.key?(:
|
|
366
|
-
|
|
367
|
-
self.hits = value
|
|
368
|
-
end
|
|
372
|
+
if attributes.key?(:params)
|
|
373
|
+
self.params = attributes[:params]
|
|
369
374
|
else
|
|
370
|
-
self.
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
470
|
+
hits,
|
|
471
|
+
hits_per_page,
|
|
472
472
|
nb_hits,
|
|
473
473
|
nb_pages,
|
|
474
|
-
|
|
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
|
|
data/lib/algolia/version.rb
CHANGED