Skip to content

Commit bc61749

Browse files
algolia-botrenovate[bot]shortcuts
committed
chore(deps): dependencies 2025-07-14 (generated)
algolia/api-clients-automation#5091 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Algolia Bot <30854082+algolia-bot@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: shortcuts <vannicattec@gmail.com>
1 parent 4ac9bd0 commit bc61749

16 files changed

+74
-83
lines changed

Sources/Abtesting/AbtestingClientConfiguration.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ public struct AbtestingClientConfiguration: BaseConfiguration, Credentials {
6060
}
6161

6262
if let region {
63-
guard let url = URL(string: "https://analytics.{region}.algolia.com"
64-
.replacingOccurrences(of: "{region}", with: region.rawValue)
65-
) else {
63+
guard let url = URL(string: "https://analytics.{region}.algolia.com".replacingOccurrences(
64+
of: "{region}",
65+
with: region.rawValue
66+
)) else {
6667
throw AlgoliaError.runtimeError("Malformed URL")
6768
}
6869

Sources/Analytics/AnalyticsClientConfiguration.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ public struct AnalyticsClientConfiguration: BaseConfiguration, Credentials {
6060
}
6161

6262
if let region {
63-
guard let url = URL(string: "https://analytics.{region}.algolia.com"
64-
.replacingOccurrences(of: "{region}", with: region.rawValue)
65-
) else {
63+
guard let url = URL(string: "https://analytics.{region}.algolia.com".replacingOccurrences(
64+
of: "{region}",
65+
with: region.rawValue
66+
)) else {
6667
throw AlgoliaError.runtimeError("Malformed URL")
6768
}
6869

Sources/Composition/Models/CompositionBaseSearchResponse.swift

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,12 @@ public struct CompositionBaseSearchResponse: Codable, JSONEncodable {
219219
for (key, value) in dictionary {
220220
switch key {
221221
case "abTestID", "abTestVariantID", "aroundLatLng", "automaticRadius", "exhaustive", "appliedRules",
222-
"exhaustiveFacetsCount", "exhaustiveNbHits", "exhaustiveTypo", "facets", "facetsStats", "index",
223-
"indexUsed", "message", "nbSortedHits", "parsedQuery", "processingTimeMS", "processingTimingsMS",
224-
"queryAfterRemoval", "redirect", "renderingContent", "serverTimeMS", "serverUsed", "userData",
225-
"queryID",
226-
"automaticInsights":
222+
"exhaustiveFacetsCount",
223+
"exhaustiveNbHits", "exhaustiveTypo", "facets", "facetsStats", "index", "indexUsed", "message",
224+
"nbSortedHits",
225+
"parsedQuery", "processingTimeMS", "processingTimingsMS", "queryAfterRemoval", "redirect",
226+
"renderingContent",
227+
"serverTimeMS", "serverUsed", "userData", "queryID", "automaticInsights":
227228
continue
228229
default:
229230
self.additionalProperties[key] = value

Sources/Core/Networking/RequestBuilder/EchoRequestBuilder.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ public struct EchoResponse: Codable {
3131
final class EchoRequestBuilder: RequestBuilder {
3232
let statusCode: HTTPStatusСode
3333

34-
public init() {
34+
init() {
3535
self.statusCode = 200
3636
}
3737

38-
public init(statusCode: HTTPStatusСode) {
38+
init(statusCode: HTTPStatusСode) {
3939
self.statusCode = statusCode
4040
}
4141

Sources/Core/Networking/RetryStrategy/AlgoliaRetryStrategy.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class AlgoliaRetryStrategy: RetryStrategy {
117117
// MARK: CustomDebugStringConvertible
118118

119119
extension AlgoliaRetryStrategy: CustomDebugStringConvertible {
120-
public var debugDescription: String {
120+
var debugDescription: String {
121121
self.hosts.map(\.debugDescription).joined(separator: "\n")
122122
}
123123
}

Sources/Ingestion/IngestionClient.swift

Lines changed: 13 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -825,8 +825,7 @@ open class IngestionClient {
825825

826826
var resourcePath = "/2/tasks/{taskID}"
827827
let taskIDPreEscape = "\(APIHelper.mapValueToPathItem(taskID))"
828-
let taskIDPostEscape = taskIDPreEscape
829-
.addingPercentEncoding(withAllowedCharacters: .urlPathAlgoliaAllowed) ?? ""
828+
let taskIDPostEscape = taskIDPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAlgoliaAllowed) ?? ""
830829
resourcePath = resourcePath.replacingOccurrences(
831830
of: "{taskID}",
832831
with: taskIDPostEscape,
@@ -885,8 +884,7 @@ open class IngestionClient {
885884

886885
var resourcePath = "/1/tasks/{taskID}"
887886
let taskIDPreEscape = "\(APIHelper.mapValueToPathItem(taskID))"
888-
let taskIDPostEscape = taskIDPreEscape
889-
.addingPercentEncoding(withAllowedCharacters: .urlPathAlgoliaAllowed) ?? ""
887+
let taskIDPostEscape = taskIDPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAlgoliaAllowed) ?? ""
890888
resourcePath = resourcePath.replacingOccurrences(
891889
of: "{taskID}",
892890
with: taskIDPostEscape,
@@ -1007,8 +1005,7 @@ open class IngestionClient {
10071005

10081006
var resourcePath = "/2/tasks/{taskID}/disable"
10091007
let taskIDPreEscape = "\(APIHelper.mapValueToPathItem(taskID))"
1010-
let taskIDPostEscape = taskIDPreEscape
1011-
.addingPercentEncoding(withAllowedCharacters: .urlPathAlgoliaAllowed) ?? ""
1008+
let taskIDPostEscape = taskIDPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAlgoliaAllowed) ?? ""
10121009
resourcePath = resourcePath.replacingOccurrences(
10131010
of: "{taskID}",
10141011
with: taskIDPostEscape,
@@ -1070,8 +1067,7 @@ open class IngestionClient {
10701067

10711068
var resourcePath = "/1/tasks/{taskID}/disable"
10721069
let taskIDPreEscape = "\(APIHelper.mapValueToPathItem(taskID))"
1073-
let taskIDPostEscape = taskIDPreEscape
1074-
.addingPercentEncoding(withAllowedCharacters: .urlPathAlgoliaAllowed) ?? ""
1070+
let taskIDPostEscape = taskIDPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAlgoliaAllowed) ?? ""
10751071
resourcePath = resourcePath.replacingOccurrences(
10761072
of: "{taskID}",
10771073
with: taskIDPostEscape,
@@ -1131,8 +1127,7 @@ open class IngestionClient {
11311127

11321128
var resourcePath = "/2/tasks/{taskID}/enable"
11331129
let taskIDPreEscape = "\(APIHelper.mapValueToPathItem(taskID))"
1134-
let taskIDPostEscape = taskIDPreEscape
1135-
.addingPercentEncoding(withAllowedCharacters: .urlPathAlgoliaAllowed) ?? ""
1130+
let taskIDPostEscape = taskIDPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAlgoliaAllowed) ?? ""
11361131
resourcePath = resourcePath.replacingOccurrences(
11371132
of: "{taskID}",
11381133
with: taskIDPostEscape,
@@ -1194,8 +1189,7 @@ open class IngestionClient {
11941189

11951190
var resourcePath = "/1/tasks/{taskID}/enable"
11961191
let taskIDPreEscape = "\(APIHelper.mapValueToPathItem(taskID))"
1197-
let taskIDPostEscape = taskIDPreEscape
1198-
.addingPercentEncoding(withAllowedCharacters: .urlPathAlgoliaAllowed) ?? ""
1192+
let taskIDPostEscape = taskIDPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAlgoliaAllowed) ?? ""
11991193
resourcePath = resourcePath.replacingOccurrences(
12001194
of: "{taskID}",
12011195
with: taskIDPostEscape,
@@ -1580,8 +1574,7 @@ open class IngestionClient {
15801574

15811575
var resourcePath = "/2/tasks/{taskID}"
15821576
let taskIDPreEscape = "\(APIHelper.mapValueToPathItem(taskID))"
1583-
let taskIDPostEscape = taskIDPreEscape
1584-
.addingPercentEncoding(withAllowedCharacters: .urlPathAlgoliaAllowed) ?? ""
1577+
let taskIDPostEscape = taskIDPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAlgoliaAllowed) ?? ""
15851578
resourcePath = resourcePath.replacingOccurrences(
15861579
of: "{taskID}",
15871580
with: taskIDPostEscape,
@@ -1640,8 +1633,7 @@ open class IngestionClient {
16401633

16411634
var resourcePath = "/1/tasks/{taskID}"
16421635
let taskIDPreEscape = "\(APIHelper.mapValueToPathItem(taskID))"
1643-
let taskIDPostEscape = taskIDPreEscape
1644-
.addingPercentEncoding(withAllowedCharacters: .urlPathAlgoliaAllowed) ?? ""
1636+
let taskIDPostEscape = taskIDPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAlgoliaAllowed) ?? ""
16451637
resourcePath = resourcePath.replacingOccurrences(
16461638
of: "{taskID}",
16471639
with: taskIDPostEscape,
@@ -2703,8 +2695,7 @@ open class IngestionClient {
27032695

27042696
var resourcePath = "/2/tasks/{taskID}/push"
27052697
let taskIDPreEscape = "\(APIHelper.mapValueToPathItem(taskID))"
2706-
let taskIDPostEscape = taskIDPreEscape
2707-
.addingPercentEncoding(withAllowedCharacters: .urlPathAlgoliaAllowed) ?? ""
2698+
let taskIDPostEscape = taskIDPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAlgoliaAllowed) ?? ""
27082699
resourcePath = resourcePath.replacingOccurrences(
27092700
of: "{taskID}",
27102701
with: taskIDPostEscape,
@@ -2848,8 +2839,7 @@ open class IngestionClient {
28482839

28492840
var resourcePath = "/2/tasks/{taskID}/run"
28502841
let taskIDPreEscape = "\(APIHelper.mapValueToPathItem(taskID))"
2851-
let taskIDPostEscape = taskIDPreEscape
2852-
.addingPercentEncoding(withAllowedCharacters: .urlPathAlgoliaAllowed) ?? ""
2842+
let taskIDPostEscape = taskIDPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAlgoliaAllowed) ?? ""
28532843
resourcePath = resourcePath.replacingOccurrences(
28542844
of: "{taskID}",
28552845
with: taskIDPostEscape,
@@ -2921,8 +2911,7 @@ open class IngestionClient {
29212911

29222912
var resourcePath = "/1/tasks/{taskID}/run"
29232913
let taskIDPreEscape = "\(APIHelper.mapValueToPathItem(taskID))"
2924-
let taskIDPostEscape = taskIDPreEscape
2925-
.addingPercentEncoding(withAllowedCharacters: .urlPathAlgoliaAllowed) ?? ""
2914+
let taskIDPostEscape = taskIDPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAlgoliaAllowed) ?? ""
29262915
resourcePath = resourcePath.replacingOccurrences(
29272916
of: "{taskID}",
29282917
with: taskIDPostEscape,
@@ -3691,8 +3680,7 @@ open class IngestionClient {
36913680

36923681
var resourcePath = "/2/tasks/{taskID}"
36933682
let taskIDPreEscape = "\(APIHelper.mapValueToPathItem(taskID))"
3694-
let taskIDPostEscape = taskIDPreEscape
3695-
.addingPercentEncoding(withAllowedCharacters: .urlPathAlgoliaAllowed) ?? ""
3683+
let taskIDPostEscape = taskIDPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAlgoliaAllowed) ?? ""
36963684
resourcePath = resourcePath.replacingOccurrences(
36973685
of: "{taskID}",
36983686
with: taskIDPostEscape,
@@ -3760,8 +3748,7 @@ open class IngestionClient {
37603748

37613749
var resourcePath = "/1/tasks/{taskID}"
37623750
let taskIDPreEscape = "\(APIHelper.mapValueToPathItem(taskID))"
3763-
let taskIDPostEscape = taskIDPreEscape
3764-
.addingPercentEncoding(withAllowedCharacters: .urlPathAlgoliaAllowed) ?? ""
3751+
let taskIDPostEscape = taskIDPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAlgoliaAllowed) ?? ""
37653752
resourcePath = resourcePath.replacingOccurrences(
37663753
of: "{taskID}",
37673754
with: taskIDPostEscape,

Sources/Ingestion/IngestionClientConfiguration.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ public struct IngestionClientConfiguration: BaseConfiguration, Credentials {
5959
)
6060
}
6161

62-
guard let url = URL(string: "https://data.{region}.algolia.com"
63-
.replacingOccurrences(of: "{region}", with: region.rawValue)
64-
) else {
62+
guard let url = URL(string: "https://data.{region}.algolia.com".replacingOccurrences(
63+
of: "{region}",
64+
with: region.rawValue
65+
)) else {
6566
throw AlgoliaError.runtimeError("Malformed URL")
6667
}
6768

Sources/Insights/InsightsClientConfiguration.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ public struct InsightsClientConfiguration: BaseConfiguration, Credentials {
6060
}
6161

6262
if let region {
63-
guard let url = URL(string: "https://insights.{region}.algolia.io"
64-
.replacingOccurrences(of: "{region}", with: region.rawValue)
65-
) else {
63+
guard let url = URL(string: "https://insights.{region}.algolia.io".replacingOccurrences(
64+
of: "{region}",
65+
with: region.rawValue
66+
)) else {
6667
throw AlgoliaError.runtimeError("Malformed URL")
6768
}
6869

Sources/Monitoring/MonitoringClient.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -628,17 +628,15 @@ open class MonitoringClient {
628628
) async throws -> Response<InfrastructureResponse> {
629629
var resourcePath = "/1/infrastructure/{metric}/period/{period}"
630630
let metricPreEscape = "\(APIHelper.mapValueToPathItem(metric))"
631-
let metricPostEscape = metricPreEscape
632-
.addingPercentEncoding(withAllowedCharacters: .urlPathAlgoliaAllowed) ?? ""
631+
let metricPostEscape = metricPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAlgoliaAllowed) ?? ""
633632
resourcePath = resourcePath.replacingOccurrences(
634633
of: "{metric}",
635634
with: metricPostEscape,
636635
options: .literal,
637636
range: nil
638637
)
639638
let periodPreEscape = "\(APIHelper.mapValueToPathItem(period))"
640-
let periodPostEscape = periodPreEscape
641-
.addingPercentEncoding(withAllowedCharacters: .urlPathAlgoliaAllowed) ?? ""
639+
let periodPostEscape = periodPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAlgoliaAllowed) ?? ""
642640
resourcePath = resourcePath.replacingOccurrences(
643641
of: "{period}",
644642
with: periodPostEscape,

Sources/Personalization/PersonalizationClientConfiguration.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ public struct PersonalizationClientConfiguration: BaseConfiguration, Credentials
5959
)
6060
}
6161

62-
guard let url = URL(string: "https://personalization.{region}.algolia.com"
63-
.replacingOccurrences(of: "{region}", with: region.rawValue)
64-
) else {
62+
guard let url = URL(string: "https://personalization.{region}.algolia.com".replacingOccurrences(
63+
of: "{region}",
64+
with: region.rawValue
65+
)) else {
6566
throw AlgoliaError.runtimeError("Malformed URL")
6667
}
6768

0 commit comments

Comments
 (0)