Skip to content

Commit 23a57ae

Browse files
authored
Merge branch 'main' into feat/add-chopper-requester-package
2 parents b2cc8f6 + 56b0b8e commit 23a57ae

File tree

815 files changed

+8793
-4594
lines changed

Some content is hidden

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

815 files changed

+8793
-4594
lines changed

.eslintrc.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ module.exports = {
6565
'automation-custom/out-of-line-any-of': 'error',
6666
'automation-custom/valid-acl': 'error',
6767
'automation-custom/ref-common': 'error',
68+
'automation-custom/valid-inline-title': 'error',
6869
},
6970
},
7071
],

.github/actions/setup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ runs:
211211
if: ${{ inputs.language == 'swift' }}
212212
id: swiftformat-version
213213
shell: bash
214-
run: echo "SWIFTFORMAT_VERSION=0.54.1" >> $GITHUB_OUTPUT
214+
run: echo "SWIFTFORMAT_VERSION=0.54.3" >> $GITHUB_OUTPUT
215215

216216
- name: Checkout swiftformat
217217
if: ${{ inputs.language == 'swift' }}

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

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ public interface IQuerySuggestionsClient
232232
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
233233
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
234234
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
235-
/// <returns>Task of GetConfigStatus200Response</returns>
236-
Task<GetConfigStatus200Response> GetConfigStatusAsync(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default);
235+
/// <returns>Task of ConfigStatus</returns>
236+
Task<ConfigStatus> GetConfigStatusAsync(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default);
237237

238238
/// <summary>
239239
/// Reports the status of a Query Suggestions index. (Synchronous version)
@@ -244,8 +244,8 @@ public interface IQuerySuggestionsClient
244244
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
245245
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
246246
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
247-
/// <returns>GetConfigStatus200Response</returns>
248-
GetConfigStatus200Response GetConfigStatus(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default);
247+
/// <returns>ConfigStatus</returns>
248+
ConfigStatus GetConfigStatus(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default);
249249

250250
/// <summary>
251251
/// Retrieves the logs for a single Query Suggestions index.
@@ -256,8 +256,8 @@ public interface IQuerySuggestionsClient
256256
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
257257
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
258258
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
259-
/// <returns>Task of GetLogFile200Response</returns>
260-
Task<GetLogFile200Response> GetLogFileAsync(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default);
259+
/// <returns>Task of LogFile</returns>
260+
Task<LogFile> GetLogFileAsync(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default);
261261

262262
/// <summary>
263263
/// Retrieves the logs for a single Query Suggestions index. (Synchronous version)
@@ -268,8 +268,8 @@ public interface IQuerySuggestionsClient
268268
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
269269
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
270270
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
271-
/// <returns>GetLogFile200Response</returns>
272-
GetLogFile200Response GetLogFile(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default);
271+
/// <returns>LogFile</returns>
272+
LogFile GetLogFile(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default);
273273

274274
/// <summary>
275275
/// Updates a QuerySuggestions configuration.
@@ -712,8 +712,8 @@ public ConfigurationResponse GetConfig(string indexName, RequestOptions options
712712
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
713713
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
714714
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
715-
/// <returns>Task of GetConfigStatus200Response</returns>
716-
public async Task<GetConfigStatus200Response> GetConfigStatusAsync(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default)
715+
/// <returns>Task of ConfigStatus</returns>
716+
public async Task<ConfigStatus> GetConfigStatusAsync(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default)
717717
{
718718

719719
if (indexName == null)
@@ -723,7 +723,7 @@ public async Task<GetConfigStatus200Response> GetConfigStatusAsync(string indexN
723723

724724
requestOptions.PathParameters.Add("indexName", QueryStringHelper.ParameterToString(indexName));
725725

726-
return await _transport.ExecuteRequestAsync<GetConfigStatus200Response>(new HttpMethod("GET"), "/1/configs/{indexName}/status", requestOptions, cancellationToken).ConfigureAwait(false);
726+
return await _transport.ExecuteRequestAsync<ConfigStatus>(new HttpMethod("GET"), "/1/configs/{indexName}/status", requestOptions, cancellationToken).ConfigureAwait(false);
727727
}
728728

729729

@@ -739,8 +739,8 @@ public async Task<GetConfigStatus200Response> GetConfigStatusAsync(string indexN
739739
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
740740
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
741741
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
742-
/// <returns>GetConfigStatus200Response</returns>
743-
public GetConfigStatus200Response GetConfigStatus(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default) =>
742+
/// <returns>ConfigStatus</returns>
743+
public ConfigStatus GetConfigStatus(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default) =>
744744
AsyncHelper.RunSync(() => GetConfigStatusAsync(indexName, options, cancellationToken));
745745

746746

@@ -756,8 +756,8 @@ public GetConfigStatus200Response GetConfigStatus(string indexName, RequestOptio
756756
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
757757
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
758758
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
759-
/// <returns>Task of GetLogFile200Response</returns>
760-
public async Task<GetLogFile200Response> GetLogFileAsync(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default)
759+
/// <returns>Task of LogFile</returns>
760+
public async Task<LogFile> GetLogFileAsync(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default)
761761
{
762762

763763
if (indexName == null)
@@ -767,7 +767,7 @@ public async Task<GetLogFile200Response> GetLogFileAsync(string indexName, Reque
767767

768768
requestOptions.PathParameters.Add("indexName", QueryStringHelper.ParameterToString(indexName));
769769

770-
return await _transport.ExecuteRequestAsync<GetLogFile200Response>(new HttpMethod("GET"), "/1/logs/{indexName}", requestOptions, cancellationToken).ConfigureAwait(false);
770+
return await _transport.ExecuteRequestAsync<LogFile>(new HttpMethod("GET"), "/1/logs/{indexName}", requestOptions, cancellationToken).ConfigureAwait(false);
771771
}
772772

773773

@@ -783,8 +783,8 @@ public async Task<GetLogFile200Response> GetLogFileAsync(string indexName, Reque
783783
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
784784
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
785785
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
786-
/// <returns>GetLogFile200Response</returns>
787-
public GetLogFile200Response GetLogFile(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default) =>
786+
/// <returns>LogFile</returns>
787+
public LogFile GetLogFile(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default) =>
788788
AsyncHelper.RunSync(() => GetLogFileAsync(indexName, options, cancellationToken));
789789

790790

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -724,8 +724,8 @@ public interface ISearchClient
724724
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
725725
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
726726
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
727-
/// <returns>Task of Dictionary{string, string}</returns>
728-
Task<Dictionary<string, string>> GetObjectAsync(string indexName, string objectID, List<string> attributesToRetrieve = default, RequestOptions options = null, CancellationToken cancellationToken = default);
727+
/// <returns>Task of object</returns>
728+
Task<object> GetObjectAsync(string indexName, string objectID, List<string> attributesToRetrieve = default, RequestOptions options = null, CancellationToken cancellationToken = default);
729729

730730
/// <summary>
731731
/// Retrieves one record by its object ID. To retrieve more than one record, use the [`objects` operation](#tag/Records/operation/getObjects). (Synchronous version)
@@ -738,8 +738,8 @@ public interface ISearchClient
738738
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
739739
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
740740
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
741-
/// <returns>Dictionary{string, string}</returns>
742-
Dictionary<string, string> GetObject(string indexName, string objectID, List<string> attributesToRetrieve = default, RequestOptions options = null, CancellationToken cancellationToken = default);
741+
/// <returns>object</returns>
742+
object GetObject(string indexName, string objectID, List<string> attributesToRetrieve = default, RequestOptions options = null, CancellationToken cancellationToken = default);
743743

744744
/// <summary>
745745
/// Retrieves one or more records, potentially from different indices. Records are returned in the same order as the requests.
@@ -2929,8 +2929,8 @@ public GetLogsResponse GetLogs(int? offset = default, int? length = default, str
29292929
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
29302930
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
29312931
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
2932-
/// <returns>Task of Dictionary{string, string}</returns>
2933-
public async Task<Dictionary<string, string>> GetObjectAsync(string indexName, string objectID, List<string> attributesToRetrieve = default, RequestOptions options = null, CancellationToken cancellationToken = default)
2932+
/// <returns>Task of object</returns>
2933+
public async Task<object> GetObjectAsync(string indexName, string objectID, List<string> attributesToRetrieve = default, RequestOptions options = null, CancellationToken cancellationToken = default)
29342934
{
29352935

29362936
if (indexName == null)
@@ -2946,7 +2946,7 @@ public async Task<Dictionary<string, string>> GetObjectAsync(string indexName, s
29462946
requestOptions.PathParameters.Add("objectID", QueryStringHelper.ParameterToString(objectID));
29472947

29482948
requestOptions.AddQueryParameter("attributesToRetrieve", attributesToRetrieve);
2949-
return await _transport.ExecuteRequestAsync<Dictionary<string, string>>(new HttpMethod("GET"), "/1/indexes/{indexName}/{objectID}", requestOptions, cancellationToken).ConfigureAwait(false);
2949+
return await _transport.ExecuteRequestAsync<object>(new HttpMethod("GET"), "/1/indexes/{indexName}/{objectID}", requestOptions, cancellationToken).ConfigureAwait(false);
29502950
}
29512951

29522952

@@ -2964,8 +2964,8 @@ public async Task<Dictionary<string, string>> GetObjectAsync(string indexName, s
29642964
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
29652965
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
29662966
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
2967-
/// <returns>Dictionary{string, string}</returns>
2968-
public Dictionary<string, string> GetObject(string indexName, string objectID, List<string> attributesToRetrieve = default, RequestOptions options = null, CancellationToken cancellationToken = default) =>
2967+
/// <returns>object</returns>
2968+
public object GetObject(string indexName, string objectID, List<string> attributesToRetrieve = default, RequestOptions options = null, CancellationToken cancellationToken = default) =>
29692969
AsyncHelper.RunSync(() => GetObjectAsync(indexName, objectID, attributesToRetrieve, options, cancellationToken));
29702970

29712971

0 commit comments

Comments
 (0)