Skip to content

Commit f92504a

Browse files
authored
Merge branch 'main' into fix/banner-link
2 parents ce7c589 + 6c13ee9 commit f92504a

File tree

261 files changed

+105
-11913
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

261 files changed

+105
-11913
lines changed

clients/algoliasearch-client-csharp/algoliasearch/Clients/SearchClient.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2199,6 +2199,7 @@ public async Task<BrowseResponse<T>> BrowseAsync<T>(string indexName, BrowsePara
21992199
requestOptions.PathParameters.Add("indexName", QueryStringHelper.ParameterToString(indexName));
22002200

22012201
requestOptions.Data = browseParams;
2202+
requestOptions.UseReadTransporter = true;
22022203
return await _transport.ExecuteRequestAsync<BrowseResponse<T>>(new HttpMethod("POST"), "/1/indexes/{indexName}/browse", requestOptions, cancellationToken).ConfigureAwait(false);
22032204
}
22042205

clients/algoliasearch-client-dart/packages/client_search/lib/src/api/search_client.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ final class SearchClient implements ApiClient {
374374
method: RequestMethod.post,
375375
path: r'/1/indexes/{indexName}/browse'.replaceAll(
376376
'{' r'indexName' '}', Uri.encodeComponent(indexName.toString())),
377+
isRead: true,
377378
body: browseParams?.toJson(),
378379
);
379380
final response = await _retryStrategy.execute(

clients/algoliasearch-client-go/algolia/insights/api_insights.go

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/algoliasearch-client-go/algolia/search/api_search.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/algoliasearch-client-java/algoliasearch/src/main/java/com/algolia/api/SearchClient.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,7 @@ public <T> CompletableFuture<BrowseResponse<T>> browseAsync(
678678
.setPath("/1/indexes/{indexName}/browse", indexName)
679679
.setMethod("POST")
680680
.setBody(browseParams)
681+
.setRead(true)
681682
.build();
682683
return executeAsync(request, requestOptions, BrowseResponse.class, innerType);
683684
}

clients/algoliasearch-client-javascript/packages/client-search/src/searchClient.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,6 +1029,7 @@ export function createSearchClient({
10291029
queryParameters,
10301030
headers,
10311031
data: browseParams ? browseParams : {},
1032+
useReadTransporter: true,
10321033
};
10331034

10341035
return transporter.request(request, requestOptions);

clients/algoliasearch-client-kotlin/client/src/commonMain/kotlin/com/algolia/client/api/SearchClient.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ public class SearchClient(
200200
val requestConfig = RequestConfig(
201201
method = RequestMethod.POST,
202202
path = listOf("1", "indexes", "$indexName", "browse"),
203+
isRead = true,
203204
body = browseParams,
204205
)
205206
return requester.execute(

clients/algoliasearch-client-php/composer.json

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,14 @@
22
"name": "algolia/algoliasearch-client-php",
33
"version": "4.6.0",
44
"description": "API powering the features of Algolia.",
5-
"keywords": [
6-
"openapitools",
7-
"openapi-generator",
8-
"openapi",
9-
"php",
10-
"sdk",
11-
"rest",
12-
"api"
13-
],
14-
"homepage": "https://openapi-generator.tech",
15-
"license": "unlicense",
5+
"keywords": ["algolia", "search", "api", "client", "php"],
6+
"type": "library",
7+
"homepage": "https://github.com/algolia/algoliasearch-client-php",
8+
"license": "MIT",
169
"authors": [
1710
{
18-
"name": "OpenAPI-Generator contributors",
19-
"homepage": "https://openapi-generator.tech"
11+
"name": "Algolia Team",
12+
"homepage": "https://alg.li/support"
2013
}
2114
],
2215
"require": {

clients/algoliasearch-client-php/lib/Api/AbtestingClient.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -391,10 +391,6 @@ public function getABTest($id, $requestOptions = [])
391391
*/
392392
public function listABTests($offset = null, $limit = null, $indexPrefix = null, $indexSuffix = null, $requestOptions = [])
393393
{
394-
if (null !== $offset && $offset < 0) {
395-
throw new \InvalidArgumentException('invalid value for "$offset" when calling AbtestingClient.listABTests, must be bigger than or equal to 0.');
396-
}
397-
398394
$resourcePath = '/2/abtests';
399395
$queryParameters = [];
400396
$headers = [];

clients/algoliasearch-client-php/lib/Api/AnalyticsClient.php

Lines changed: 0 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -759,16 +759,6 @@ public function getSearchesNoClicks($index, $startDate = null, $endDate = null,
759759
'Parameter `index` is required when calling `getSearchesNoClicks`.'
760760
);
761761
}
762-
if (null !== $limit && $limit > 1000) {
763-
throw new \InvalidArgumentException('invalid value for "$limit" when calling AnalyticsClient.getSearchesNoClicks, must be smaller than or equal to 1000.');
764-
}
765-
766-
if (null !== $offset && $offset > 1000) {
767-
throw new \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getSearchesNoClicks, must be smaller than or equal to 1000.');
768-
}
769-
if (null !== $offset && $offset < 0) {
770-
throw new \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getSearchesNoClicks, must be bigger than or equal to 0.');
771-
}
772762

773763
$resourcePath = '/2/searches/noClicks';
774764
$queryParameters = [];
@@ -826,16 +816,6 @@ public function getSearchesNoResults($index, $startDate = null, $endDate = null,
826816
'Parameter `index` is required when calling `getSearchesNoResults`.'
827817
);
828818
}
829-
if (null !== $limit && $limit > 1000) {
830-
throw new \InvalidArgumentException('invalid value for "$limit" when calling AnalyticsClient.getSearchesNoResults, must be smaller than or equal to 1000.');
831-
}
832-
833-
if (null !== $offset && $offset > 1000) {
834-
throw new \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getSearchesNoResults, must be smaller than or equal to 1000.');
835-
}
836-
if (null !== $offset && $offset < 0) {
837-
throw new \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getSearchesNoResults, must be bigger than or equal to 0.');
838-
}
839819

840820
$resourcePath = '/2/searches/noResults';
841821
$queryParameters = [];
@@ -925,16 +905,6 @@ public function getTopCountries($index, $startDate = null, $endDate = null, $lim
925905
'Parameter `index` is required when calling `getTopCountries`.'
926906
);
927907
}
928-
if (null !== $limit && $limit > 1000) {
929-
throw new \InvalidArgumentException('invalid value for "$limit" when calling AnalyticsClient.getTopCountries, must be smaller than or equal to 1000.');
930-
}
931-
932-
if (null !== $offset && $offset > 1000) {
933-
throw new \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopCountries, must be smaller than or equal to 1000.');
934-
}
935-
if (null !== $offset && $offset < 0) {
936-
throw new \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopCountries, must be bigger than or equal to 0.');
937-
}
938908

939909
$resourcePath = '/2/countries';
940910
$queryParameters = [];
@@ -993,16 +963,6 @@ public function getTopFilterAttributes($index, $search = null, $startDate = null
993963
'Parameter `index` is required when calling `getTopFilterAttributes`.'
994964
);
995965
}
996-
if (null !== $limit && $limit > 1000) {
997-
throw new \InvalidArgumentException('invalid value for "$limit" when calling AnalyticsClient.getTopFilterAttributes, must be smaller than or equal to 1000.');
998-
}
999-
1000-
if (null !== $offset && $offset > 1000) {
1001-
throw new \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopFilterAttributes, must be smaller than or equal to 1000.');
1002-
}
1003-
if (null !== $offset && $offset < 0) {
1004-
throw new \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopFilterAttributes, must be bigger than or equal to 0.');
1005-
}
1006966

1007967
$resourcePath = '/2/filters';
1008968
$queryParameters = [];
@@ -1072,16 +1032,6 @@ public function getTopFilterForAttribute($attribute, $index, $search = null, $st
10721032
'Parameter `index` is required when calling `getTopFilterForAttribute`.'
10731033
);
10741034
}
1075-
if (null !== $limit && $limit > 1000) {
1076-
throw new \InvalidArgumentException('invalid value for "$limit" when calling AnalyticsClient.getTopFilterForAttribute, must be smaller than or equal to 1000.');
1077-
}
1078-
1079-
if (null !== $offset && $offset > 1000) {
1080-
throw new \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopFilterForAttribute, must be smaller than or equal to 1000.');
1081-
}
1082-
if (null !== $offset && $offset < 0) {
1083-
throw new \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopFilterForAttribute, must be bigger than or equal to 0.');
1084-
}
10851035

10861036
$resourcePath = '/2/filters/{attribute}';
10871037
$queryParameters = [];
@@ -1153,16 +1103,6 @@ public function getTopFiltersNoResults($index, $search = null, $startDate = null
11531103
'Parameter `index` is required when calling `getTopFiltersNoResults`.'
11541104
);
11551105
}
1156-
if (null !== $limit && $limit > 1000) {
1157-
throw new \InvalidArgumentException('invalid value for "$limit" when calling AnalyticsClient.getTopFiltersNoResults, must be smaller than or equal to 1000.');
1158-
}
1159-
1160-
if (null !== $offset && $offset > 1000) {
1161-
throw new \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopFiltersNoResults, must be smaller than or equal to 1000.');
1162-
}
1163-
if (null !== $offset && $offset < 0) {
1164-
throw new \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopFiltersNoResults, must be bigger than or equal to 0.');
1165-
}
11661106

11671107
$resourcePath = '/2/filters/noResults';
11681108
$queryParameters = [];
@@ -1227,16 +1167,6 @@ public function getTopHits($index, $search = null, $clickAnalytics = null, $reve
12271167
'Parameter `index` is required when calling `getTopHits`.'
12281168
);
12291169
}
1230-
if (null !== $limit && $limit > 1000) {
1231-
throw new \InvalidArgumentException('invalid value for "$limit" when calling AnalyticsClient.getTopHits, must be smaller than or equal to 1000.');
1232-
}
1233-
1234-
if (null !== $offset && $offset > 1000) {
1235-
throw new \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopHits, must be smaller than or equal to 1000.');
1236-
}
1237-
if (null !== $offset && $offset < 0) {
1238-
throw new \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopHits, must be bigger than or equal to 0.');
1239-
}
12401170

12411171
$resourcePath = '/2/hits';
12421172
$queryParameters = [];
@@ -1310,16 +1240,6 @@ public function getTopSearches($index, $clickAnalytics = null, $revenueAnalytics
13101240
'Parameter `index` is required when calling `getTopSearches`.'
13111241
);
13121242
}
1313-
if (null !== $limit && $limit > 1000) {
1314-
throw new \InvalidArgumentException('invalid value for "$limit" when calling AnalyticsClient.getTopSearches, must be smaller than or equal to 1000.');
1315-
}
1316-
1317-
if (null !== $offset && $offset > 1000) {
1318-
throw new \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopSearches, must be smaller than or equal to 1000.');
1319-
}
1320-
if (null !== $offset && $offset < 0) {
1321-
throw new \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopSearches, must be bigger than or equal to 0.');
1322-
}
13231243

13241244
$resourcePath = '/2/searches';
13251245
$queryParameters = [];

clients/algoliasearch-client-php/lib/Api/IngestionClient.php

Lines changed: 0 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,17 +1225,6 @@ public function getTransformation($transformationID, $requestOptions = [])
12251225
*/
12261226
public function listAuthentications($itemsPerPage = null, $page = null, $type = null, $platform = null, $sort = null, $order = null, $requestOptions = [])
12271227
{
1228-
if (null !== $itemsPerPage && $itemsPerPage > 100) {
1229-
throw new \InvalidArgumentException('invalid value for "$itemsPerPage" when calling IngestionClient.listAuthentications, must be smaller than or equal to 100.');
1230-
}
1231-
if (null !== $itemsPerPage && $itemsPerPage < 1) {
1232-
throw new \InvalidArgumentException('invalid value for "$itemsPerPage" when calling IngestionClient.listAuthentications, must be bigger than or equal to 1.');
1233-
}
1234-
1235-
if (null !== $page && $page < 1) {
1236-
throw new \InvalidArgumentException('invalid value for "$page" when calling IngestionClient.listAuthentications, must be bigger than or equal to 1.');
1237-
}
1238-
12391228
$resourcePath = '/1/authentications';
12401229
$queryParameters = [];
12411230
$headers = [];
@@ -1295,17 +1284,6 @@ public function listAuthentications($itemsPerPage = null, $page = null, $type =
12951284
*/
12961285
public function listDestinations($itemsPerPage = null, $page = null, $type = null, $authenticationID = null, $transformationID = null, $sort = null, $order = null, $requestOptions = [])
12971286
{
1298-
if (null !== $itemsPerPage && $itemsPerPage > 100) {
1299-
throw new \InvalidArgumentException('invalid value for "$itemsPerPage" when calling IngestionClient.listDestinations, must be smaller than or equal to 100.');
1300-
}
1301-
if (null !== $itemsPerPage && $itemsPerPage < 1) {
1302-
throw new \InvalidArgumentException('invalid value for "$itemsPerPage" when calling IngestionClient.listDestinations, must be bigger than or equal to 1.');
1303-
}
1304-
1305-
if (null !== $page && $page < 1) {
1306-
throw new \InvalidArgumentException('invalid value for "$page" when calling IngestionClient.listDestinations, must be bigger than or equal to 1.');
1307-
}
1308-
13091287
$resourcePath = '/1/destinations';
13101288
$queryParameters = [];
13111289
$headers = [];
@@ -1380,16 +1358,6 @@ public function listEvents($runID, $itemsPerPage = null, $page = null, $status =
13801358
'Parameter `runID` is required when calling `listEvents`.'
13811359
);
13821360
}
1383-
if (null !== $itemsPerPage && $itemsPerPage > 100) {
1384-
throw new \InvalidArgumentException('invalid value for "$itemsPerPage" when calling IngestionClient.listEvents, must be smaller than or equal to 100.');
1385-
}
1386-
if (null !== $itemsPerPage && $itemsPerPage < 1) {
1387-
throw new \InvalidArgumentException('invalid value for "$itemsPerPage" when calling IngestionClient.listEvents, must be bigger than or equal to 1.');
1388-
}
1389-
1390-
if (null !== $page && $page < 1) {
1391-
throw new \InvalidArgumentException('invalid value for "$page" when calling IngestionClient.listEvents, must be bigger than or equal to 1.');
1392-
}
13931361

13941362
$resourcePath = '/1/runs/{runID}/events';
13951363
$queryParameters = [];
@@ -1463,17 +1431,6 @@ public function listEvents($runID, $itemsPerPage = null, $page = null, $status =
14631431
*/
14641432
public function listRuns($itemsPerPage = null, $page = null, $status = null, $type = null, $taskID = null, $sort = null, $order = null, $startDate = null, $endDate = null, $requestOptions = [])
14651433
{
1466-
if (null !== $itemsPerPage && $itemsPerPage > 100) {
1467-
throw new \InvalidArgumentException('invalid value for "$itemsPerPage" when calling IngestionClient.listRuns, must be smaller than or equal to 100.');
1468-
}
1469-
if (null !== $itemsPerPage && $itemsPerPage < 1) {
1470-
throw new \InvalidArgumentException('invalid value for "$itemsPerPage" when calling IngestionClient.listRuns, must be bigger than or equal to 1.');
1471-
}
1472-
1473-
if (null !== $page && $page < 1) {
1474-
throw new \InvalidArgumentException('invalid value for "$page" when calling IngestionClient.listRuns, must be bigger than or equal to 1.');
1475-
}
1476-
14771434
$resourcePath = '/1/runs';
14781435
$queryParameters = [];
14791436
$headers = [];
@@ -1538,17 +1495,6 @@ public function listRuns($itemsPerPage = null, $page = null, $status = null, $ty
15381495
*/
15391496
public function listSources($itemsPerPage = null, $page = null, $type = null, $authenticationID = null, $sort = null, $order = null, $requestOptions = [])
15401497
{
1541-
if (null !== $itemsPerPage && $itemsPerPage > 100) {
1542-
throw new \InvalidArgumentException('invalid value for "$itemsPerPage" when calling IngestionClient.listSources, must be smaller than or equal to 100.');
1543-
}
1544-
if (null !== $itemsPerPage && $itemsPerPage < 1) {
1545-
throw new \InvalidArgumentException('invalid value for "$itemsPerPage" when calling IngestionClient.listSources, must be bigger than or equal to 1.');
1546-
}
1547-
1548-
if (null !== $page && $page < 1) {
1549-
throw new \InvalidArgumentException('invalid value for "$page" when calling IngestionClient.listSources, must be bigger than or equal to 1.');
1550-
}
1551-
15521498
$resourcePath = '/1/sources';
15531499
$queryParameters = [];
15541500
$headers = [];
@@ -1610,17 +1556,6 @@ public function listSources($itemsPerPage = null, $page = null, $type = null, $a
16101556
*/
16111557
public function listTasks($itemsPerPage = null, $page = null, $action = null, $enabled = null, $sourceID = null, $destinationID = null, $triggerType = null, $sort = null, $order = null, $requestOptions = [])
16121558
{
1613-
if (null !== $itemsPerPage && $itemsPerPage > 100) {
1614-
throw new \InvalidArgumentException('invalid value for "$itemsPerPage" when calling IngestionClient.listTasks, must be smaller than or equal to 100.');
1615-
}
1616-
if (null !== $itemsPerPage && $itemsPerPage < 1) {
1617-
throw new \InvalidArgumentException('invalid value for "$itemsPerPage" when calling IngestionClient.listTasks, must be bigger than or equal to 1.');
1618-
}
1619-
1620-
if (null !== $page && $page < 1) {
1621-
throw new \InvalidArgumentException('invalid value for "$page" when calling IngestionClient.listTasks, must be bigger than or equal to 1.');
1622-
}
1623-
16241559
$resourcePath = '/2/tasks';
16251560
$queryParameters = [];
16261561
$headers = [];
@@ -1700,17 +1635,6 @@ public function listTasks($itemsPerPage = null, $page = null, $action = null, $e
17001635
*/
17011636
public function listTasksV1($itemsPerPage = null, $page = null, $action = null, $enabled = null, $sourceID = null, $destinationID = null, $triggerType = null, $sort = null, $order = null, $requestOptions = [])
17021637
{
1703-
if (null !== $itemsPerPage && $itemsPerPage > 100) {
1704-
throw new \InvalidArgumentException('invalid value for "$itemsPerPage" when calling IngestionClient.listTasksV1, must be smaller than or equal to 100.');
1705-
}
1706-
if (null !== $itemsPerPage && $itemsPerPage < 1) {
1707-
throw new \InvalidArgumentException('invalid value for "$itemsPerPage" when calling IngestionClient.listTasksV1, must be bigger than or equal to 1.');
1708-
}
1709-
1710-
if (null !== $page && $page < 1) {
1711-
throw new \InvalidArgumentException('invalid value for "$page" when calling IngestionClient.listTasksV1, must be bigger than or equal to 1.');
1712-
}
1713-
17141638
$resourcePath = '/1/tasks';
17151639
$queryParameters = [];
17161640
$headers = [];
@@ -1785,17 +1709,6 @@ public function listTasksV1($itemsPerPage = null, $page = null, $action = null,
17851709
*/
17861710
public function listTransformations($itemsPerPage = null, $page = null, $sort = null, $order = null, $requestOptions = [])
17871711
{
1788-
if (null !== $itemsPerPage && $itemsPerPage > 100) {
1789-
throw new \InvalidArgumentException('invalid value for "$itemsPerPage" when calling IngestionClient.listTransformations, must be smaller than or equal to 100.');
1790-
}
1791-
if (null !== $itemsPerPage && $itemsPerPage < 1) {
1792-
throw new \InvalidArgumentException('invalid value for "$itemsPerPage" when calling IngestionClient.listTransformations, must be bigger than or equal to 1.');
1793-
}
1794-
1795-
if (null !== $page && $page < 1) {
1796-
throw new \InvalidArgumentException('invalid value for "$page" when calling IngestionClient.listTransformations, must be bigger than or equal to 1.');
1797-
}
1798-
17991712
$resourcePath = '/1/transformations';
18001713
$queryParameters = [];
18011714
$headers = [];

0 commit comments

Comments
 (0)