diff --git a/client/src/commonMain/kotlin/com/algolia/client/api/QuerySuggestionsClient.kt b/client/src/commonMain/kotlin/com/algolia/client/api/QuerySuggestionsClient.kt index 17dd51eb4..cffcd17ed 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/api/QuerySuggestionsClient.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/api/QuerySuggestionsClient.kt @@ -202,7 +202,7 @@ public class QuerySuggestionsClient( * @param indexName Query Suggestions index name. * @param requestOptions additional request configuration. */ - public suspend fun getConfigStatus(indexName: String, requestOptions: RequestOptions? = null): GetConfigStatus200Response { + public suspend fun getConfigStatus(indexName: String, requestOptions: RequestOptions? = null): ConfigStatus { require(indexName.isNotBlank()) { "Parameter `indexName` is required when calling `getConfigStatus`." } val requestConfig = RequestConfig( method = RequestMethod.GET, @@ -222,7 +222,7 @@ public class QuerySuggestionsClient( * @param indexName Query Suggestions index name. * @param requestOptions additional request configuration. */ - public suspend fun getLogFile(indexName: String, requestOptions: RequestOptions? = null): GetLogFile200Response { + public suspend fun getLogFile(indexName: String, requestOptions: RequestOptions? = null): LogFile { require(indexName.isNotBlank()) { "Parameter `indexName` is required when calling `getLogFile`." } val requestConfig = RequestConfig( method = RequestMethod.GET, diff --git a/client/src/commonMain/kotlin/com/algolia/client/api/UsageClient.kt b/client/src/commonMain/kotlin/com/algolia/client/api/UsageClient.kt index 624b3603a..a817216f7 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/api/UsageClient.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/api/UsageClient.kt @@ -128,7 +128,7 @@ public class UsageClient( * @param granularity Granularity of the aggregated metrics. - `hourly`: the maximum time range for hourly metrics is 7 days. - `daily`: the maximum time range for daily metrics is 365 days. (default to daily) * @param requestOptions additional request configuration. */ - public suspend fun getIndexUsage(statistic: Statistic, indexName: String, startDate: String, endDate: String, granularity: Granularity? = null, requestOptions: RequestOptions? = null): GetUsage200Response { + public suspend fun getIndexUsage(statistic: Statistic, indexName: String, startDate: String, endDate: String, granularity: Granularity? = null, requestOptions: RequestOptions? = null): IndexUsage { require(indexName.isNotBlank()) { "Parameter `indexName` is required when calling `getIndexUsage`." } require(startDate.isNotBlank()) { "Parameter `startDate` is required when calling `getIndexUsage`." } require(endDate.isNotBlank()) { "Parameter `endDate` is required when calling `getIndexUsage`." } @@ -155,7 +155,7 @@ public class UsageClient( * @param granularity Granularity of the aggregated metrics. - `hourly`: the maximum time range for hourly metrics is 7 days. - `daily`: the maximum time range for daily metrics is 365 days. (default to daily) * @param requestOptions additional request configuration. */ - public suspend fun getUsage(statistic: Statistic, startDate: String, endDate: String, granularity: Granularity? = null, requestOptions: RequestOptions? = null): GetUsage200Response { + public suspend fun getUsage(statistic: Statistic, startDate: String, endDate: String, granularity: Granularity? = null, requestOptions: RequestOptions? = null): IndexUsage { require(startDate.isNotBlank()) { "Parameter `startDate` is required when calling `getUsage`." } require(endDate.isNotBlank()) { "Parameter `endDate` is required when calling `getUsage`." } val requestConfig = RequestConfig( diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/abtesting/FilterEffectsEmptySearch.kt b/client/src/commonMain/kotlin/com/algolia/client/model/abtesting/EmptySearchFilter.kt similarity index 94% rename from client/src/commonMain/kotlin/com/algolia/client/model/abtesting/FilterEffectsEmptySearch.kt rename to client/src/commonMain/kotlin/com/algolia/client/model/abtesting/EmptySearchFilter.kt index 3e168c72d..843a1b448 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/abtesting/FilterEffectsEmptySearch.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/abtesting/EmptySearchFilter.kt @@ -11,7 +11,7 @@ import kotlinx.serialization.json.* * @param trackedSearchesCount Number of tracked searches removed from the A/B test. */ @Serializable -public data class FilterEffectsEmptySearch( +public data class EmptySearchFilter( /** Number of users removed from the A/B test. */ @SerialName(value = "usersCount") val usersCount: Int? = null, diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/abtesting/FilterEffects.kt b/client/src/commonMain/kotlin/com/algolia/client/model/abtesting/FilterEffects.kt index 58024fef5..30fb59c5f 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/abtesting/FilterEffects.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/abtesting/FilterEffects.kt @@ -13,7 +13,7 @@ import kotlinx.serialization.json.* @Serializable public data class FilterEffects( - @SerialName(value = "outliers") val outliers: FilterEffectsOutliers? = null, + @SerialName(value = "outliers") val outliers: OutliersFilter? = null, - @SerialName(value = "emptySearch") val emptySearch: FilterEffectsEmptySearch? = null, + @SerialName(value = "emptySearch") val emptySearch: EmptySearchFilter? = null, ) diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/abtesting/FilterEffectsOutliers.kt b/client/src/commonMain/kotlin/com/algolia/client/model/abtesting/OutliersFilter.kt similarity index 95% rename from client/src/commonMain/kotlin/com/algolia/client/model/abtesting/FilterEffectsOutliers.kt rename to client/src/commonMain/kotlin/com/algolia/client/model/abtesting/OutliersFilter.kt index 743130e9a..756e325e7 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/abtesting/FilterEffectsOutliers.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/abtesting/OutliersFilter.kt @@ -11,7 +11,7 @@ import kotlinx.serialization.json.* * @param trackedSearchesCount Number of tracked searches removed from the A/B test. */ @Serializable -public data class FilterEffectsOutliers( +public data class OutliersFilter( /** Number of users removed from the A/B test. */ @SerialName(value = "usersCount") val usersCount: Int? = null, diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/analytics/ClickPositionsInner.kt b/client/src/commonMain/kotlin/com/algolia/client/model/analytics/ClickPosition.kt similarity index 96% rename from client/src/commonMain/kotlin/com/algolia/client/model/analytics/ClickPositionsInner.kt rename to client/src/commonMain/kotlin/com/algolia/client/model/analytics/ClickPosition.kt index 23d34cd9f..64bd9dbf9 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/analytics/ClickPositionsInner.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/analytics/ClickPosition.kt @@ -11,7 +11,7 @@ import kotlinx.serialization.json.* * @param clickCount Number of times this search has been clicked at that position. */ @Serializable -public data class ClickPositionsInner( +public data class ClickPosition( /** Range of positions in the search results, using the pattern `[start,end]`. For positions 11 and up, click events are summed over the specified range. `-1` indicates the end of the list of search results. */ @SerialName(value = "position") val position: List? = null, diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/analytics/GetClickPositionsResponse.kt b/client/src/commonMain/kotlin/com/algolia/client/model/analytics/GetClickPositionsResponse.kt index cd9626990..c3186fb10 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/analytics/GetClickPositionsResponse.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/analytics/GetClickPositionsResponse.kt @@ -13,5 +13,5 @@ import kotlinx.serialization.json.* public data class GetClickPositionsResponse( /** List of positions in the search results and clicks associated with this search. */ - @SerialName(value = "positions") val positions: List, + @SerialName(value = "positions") val positions: List, ) diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/analytics/TopSearchWithAnalytics.kt b/client/src/commonMain/kotlin/com/algolia/client/model/analytics/TopSearchWithAnalytics.kt index a2cc6cb56..4a830f362 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/analytics/TopSearchWithAnalytics.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/analytics/TopSearchWithAnalytics.kt @@ -34,7 +34,7 @@ public data class TopSearchWithAnalytics( @SerialName(value = "averageClickPosition") val averageClickPosition: Double, /** List of positions in the search results and clicks associated with this search. */ - @SerialName(value = "clickPositions") val clickPositions: List, + @SerialName(value = "clickPositions") val clickPositions: List, /** Conversion rate, calculated as number of tracked searches with at least one conversion event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true. */ @SerialName(value = "conversionRate") val conversionRate: Double, diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/analytics/TopSearchWithRevenueAnalytics.kt b/client/src/commonMain/kotlin/com/algolia/client/model/analytics/TopSearchWithRevenueAnalytics.kt index c729edcb5..1f05eaaef 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/analytics/TopSearchWithRevenueAnalytics.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/analytics/TopSearchWithRevenueAnalytics.kt @@ -39,7 +39,7 @@ public data class TopSearchWithRevenueAnalytics( @SerialName(value = "averageClickPosition") val averageClickPosition: Double, /** List of positions in the search results and clicks associated with this search. */ - @SerialName(value = "clickPositions") val clickPositions: List, + @SerialName(value = "clickPositions") val clickPositions: List, /** Conversion rate, calculated as number of tracked searches with at least one conversion event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true. */ @SerialName(value = "conversionRate") val conversionRate: Double, diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/DockerStreamsInput.kt b/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/DockerStreamsInput.kt index deed69138..b7b077595 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/DockerStreamsInput.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/DockerStreamsInput.kt @@ -5,7 +5,7 @@ import kotlinx.serialization.* import kotlinx.serialization.json.* /** - * DockerStreamsInput + * The selected streams of a singer or airbyte connector. * * @param streams */ diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/TransformationTryResponseError.kt b/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/TransformationError.kt similarity index 93% rename from client/src/commonMain/kotlin/com/algolia/client/model/ingestion/TransformationTryResponseError.kt rename to client/src/commonMain/kotlin/com/algolia/client/model/ingestion/TransformationError.kt index 9c626c002..eaa6811d6 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/TransformationTryResponseError.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/TransformationError.kt @@ -11,7 +11,7 @@ import kotlinx.serialization.json.* * @param message A descriptive message explaining the failure. */ @Serializable -public data class TransformationTryResponseError( +public data class TransformationError( /** The error status code. */ @SerialName(value = "code") val code: Int? = null, diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/TransformationTryResponse.kt b/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/TransformationTryResponse.kt index 398d738fc..ff6511bdc 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/TransformationTryResponse.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/TransformationTryResponse.kt @@ -16,5 +16,5 @@ public data class TransformationTryResponse( /** The array of records returned by the transformation service. */ @SerialName(value = "payloads") val payloads: List, - @SerialName(value = "error") val error: TransformationTryResponseError? = null, + @SerialName(value = "error") val error: TransformationError? = null, ) diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/GetServers403Response.kt b/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/BadRequest.kt similarity index 85% rename from client/src/commonMain/kotlin/com/algolia/client/model/monitoring/GetServers403Response.kt rename to client/src/commonMain/kotlin/com/algolia/client/model/monitoring/BadRequest.kt index 142aff3c6..30316dfd0 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/GetServers403Response.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/BadRequest.kt @@ -5,12 +5,12 @@ import kotlinx.serialization.* import kotlinx.serialization.json.* /** - * GetServers403Response + * BadRequest * * @param reason */ @Serializable -public data class GetServers403Response( +public data class BadRequest( @SerialName(value = "reason") val reason: String? = null, ) diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/Forbidden.kt b/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/Forbidden.kt new file mode 100644 index 000000000..e7888c45b --- /dev/null +++ b/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/Forbidden.kt @@ -0,0 +1,16 @@ +/** 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. */ +package com.algolia.client.model.monitoring + +import kotlinx.serialization.* +import kotlinx.serialization.json.* + +/** + * Forbidden + * + * @param reason + */ +@Serializable +public data class Forbidden( + + @SerialName(value = "reason") val reason: String? = null, +) diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/IncidentsInner.kt b/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/IncidentEntry.kt similarity index 91% rename from client/src/commonMain/kotlin/com/algolia/client/model/monitoring/IncidentsInner.kt rename to client/src/commonMain/kotlin/com/algolia/client/model/monitoring/IncidentEntry.kt index 0d43ae7b9..2a1f54373 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/IncidentsInner.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/IncidentEntry.kt @@ -5,13 +5,13 @@ import kotlinx.serialization.* import kotlinx.serialization.json.* /** - * IncidentsInner + * IncidentEntry * * @param t Timestamp, measured in milliseconds since the Unix epoch. * @param v */ @Serializable -public data class IncidentsInner( +public data class IncidentEntry( /** Timestamp, measured in milliseconds since the Unix epoch. */ @SerialName(value = "t") val t: Long? = null, diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/IncidentsResponse.kt b/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/IncidentsResponse.kt index 24098b003..a507d2988 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/IncidentsResponse.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/IncidentsResponse.kt @@ -12,5 +12,5 @@ import kotlinx.serialization.json.* @Serializable public data class IncidentsResponse( - @SerialName(value = "incidents") val incidents: Map>? = null, + @SerialName(value = "incidents") val incidents: Map>? = null, ) diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/IndexingTimeResponseMetrics.kt b/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/IndexingMetric.kt similarity index 79% rename from client/src/commonMain/kotlin/com/algolia/client/model/monitoring/IndexingTimeResponseMetrics.kt rename to client/src/commonMain/kotlin/com/algolia/client/model/monitoring/IndexingMetric.kt index 5a3052fc1..b7274f1fc 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/IndexingTimeResponseMetrics.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/IndexingMetric.kt @@ -5,12 +5,12 @@ import kotlinx.serialization.* import kotlinx.serialization.json.* /** - * IndexingTimeResponseMetrics + * IndexingMetric * * @param indexing */ @Serializable -public data class IndexingTimeResponseMetrics( +public data class IndexingMetric( - @SerialName(value = "indexing") val indexing: Map>? = null, + @SerialName(value = "indexing") val indexing: Map>? = null, ) diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/IndexingTimeResponse.kt b/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/IndexingTimeResponse.kt index 6cce70021..db302b662 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/IndexingTimeResponse.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/IndexingTimeResponse.kt @@ -12,5 +12,5 @@ import kotlinx.serialization.json.* @Serializable public data class IndexingTimeResponse( - @SerialName(value = "metrics") val metrics: IndexingTimeResponseMetrics? = null, + @SerialName(value = "metrics") val metrics: IndexingMetric? = null, ) diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/InfrastructureResponse.kt b/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/InfrastructureResponse.kt index 2b71c9770..ceb1fb5a4 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/InfrastructureResponse.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/InfrastructureResponse.kt @@ -12,5 +12,5 @@ import kotlinx.serialization.json.* @Serializable public data class InfrastructureResponse( - @SerialName(value = "metrics") val metrics: InfrastructureResponseMetrics? = null, + @SerialName(value = "metrics") val metrics: Metrics? = null, ) diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/LatencyResponseMetrics.kt b/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/LatencyMetric.kt similarity index 81% rename from client/src/commonMain/kotlin/com/algolia/client/model/monitoring/LatencyResponseMetrics.kt rename to client/src/commonMain/kotlin/com/algolia/client/model/monitoring/LatencyMetric.kt index 167b1e189..97160f27b 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/LatencyResponseMetrics.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/LatencyMetric.kt @@ -5,12 +5,12 @@ import kotlinx.serialization.* import kotlinx.serialization.json.* /** - * LatencyResponseMetrics + * LatencyMetric * * @param latency */ @Serializable -public data class LatencyResponseMetrics( +public data class LatencyMetric( - @SerialName(value = "latency") val latency: Map>? = null, + @SerialName(value = "latency") val latency: Map>? = null, ) diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/LatencyResponse.kt b/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/LatencyResponse.kt index 68cf686ab..b8e218969 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/LatencyResponse.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/LatencyResponse.kt @@ -12,5 +12,5 @@ import kotlinx.serialization.json.* @Serializable public data class LatencyResponse( - @SerialName(value = "metrics") val metrics: LatencyResponseMetrics? = null, + @SerialName(value = "metrics") val metrics: LatencyMetric? = null, ) diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/InfrastructureResponseMetrics.kt b/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/Metrics.kt similarity index 95% rename from client/src/commonMain/kotlin/com/algolia/client/model/monitoring/InfrastructureResponseMetrics.kt rename to client/src/commonMain/kotlin/com/algolia/client/model/monitoring/Metrics.kt index b04ce9657..c7f23864a 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/InfrastructureResponseMetrics.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/Metrics.kt @@ -5,7 +5,7 @@ import kotlinx.serialization.* import kotlinx.serialization.json.* /** - * InfrastructureResponseMetrics + * Metrics * * @param cpuUsage CPU idleness in %. * @param ramIndexingUsage RAM used for indexing in MB. @@ -14,7 +14,7 @@ import kotlinx.serialization.json.* * @param avgBuildTime Average build time of the indices in seconds. */ @Serializable -public data class InfrastructureResponseMetrics( +public data class Metrics( /** CPU idleness in %. */ @SerialName(value = "cpu_usage") val cpuUsage: Map>? = null, diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/TimeInner.kt b/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/TimeEntry.kt similarity index 93% rename from client/src/commonMain/kotlin/com/algolia/client/model/monitoring/TimeInner.kt rename to client/src/commonMain/kotlin/com/algolia/client/model/monitoring/TimeEntry.kt index 4654c44ca..032b5787b 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/TimeInner.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/TimeEntry.kt @@ -5,13 +5,13 @@ import kotlinx.serialization.* import kotlinx.serialization.json.* /** - * TimeInner + * TimeEntry * * @param t Timestamp, measured in milliseconds since the Unix epoch. * @param v Time in ms. */ @Serializable -public data class TimeInner( +public data class TimeEntry( /** Timestamp, measured in milliseconds since the Unix epoch. */ @SerialName(value = "t") val t: Long? = null, diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/Unauthorized.kt b/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/Unauthorized.kt new file mode 100644 index 000000000..8f3c76ece --- /dev/null +++ b/client/src/commonMain/kotlin/com/algolia/client/model/monitoring/Unauthorized.kt @@ -0,0 +1,16 @@ +/** 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. */ +package com.algolia.client.model.monitoring + +import kotlinx.serialization.* +import kotlinx.serialization.json.* + +/** + * Unauthorized + * + * @param reason + */ +@Serializable +public data class Unauthorized( + + @SerialName(value = "reason") val reason: String? = null, +) diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/querysuggestions/GetConfigStatus200Response.kt b/client/src/commonMain/kotlin/com/algolia/client/model/querysuggestions/ConfigStatus.kt similarity index 95% rename from client/src/commonMain/kotlin/com/algolia/client/model/querysuggestions/GetConfigStatus200Response.kt rename to client/src/commonMain/kotlin/com/algolia/client/model/querysuggestions/ConfigStatus.kt index c16966902..1cfc191b5 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/querysuggestions/GetConfigStatus200Response.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/querysuggestions/ConfigStatus.kt @@ -5,7 +5,7 @@ import kotlinx.serialization.* import kotlinx.serialization.json.* /** - * GetConfigStatus200Response + * ConfigStatus * * @param indexName Name of the Query Suggestions index (case-sensitive). * @param isRunning Whether the creation or update of the Query Suggestions index is in progress. @@ -14,7 +14,7 @@ import kotlinx.serialization.json.* * @param lastSuccessfulBuildDuration Duration of the last successful build in seconds. */ @Serializable -public data class GetConfigStatus200Response( +public data class ConfigStatus( /** Name of the Query Suggestions index (case-sensitive). */ @SerialName(value = "indexName") val indexName: String? = null, diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/querysuggestions/GetLogFile200Response.kt b/client/src/commonMain/kotlin/com/algolia/client/model/querysuggestions/LogFile.kt similarity index 94% rename from client/src/commonMain/kotlin/com/algolia/client/model/querysuggestions/GetLogFile200Response.kt rename to client/src/commonMain/kotlin/com/algolia/client/model/querysuggestions/LogFile.kt index deb7e4247..3cf00b54d 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/querysuggestions/GetLogFile200Response.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/querysuggestions/LogFile.kt @@ -5,7 +5,7 @@ import kotlinx.serialization.* import kotlinx.serialization.json.* /** - * GetLogFile200Response + * LogFile * * @param timestamp Date and time of the log entry, in RFC 3339 format. * @param level @@ -13,7 +13,7 @@ import kotlinx.serialization.json.* * @param contextLevel Level indicating the position of a suggestion in a hierarchy of records. For example, a `contextLevel` of 1 indicates that this suggestion belongs to a previous suggestion with `contextLevel` 0. */ @Serializable -public data class GetLogFile200Response( +public data class LogFile( /** Date and time of the log entry, in RFC 3339 format. */ @SerialName(value = "timestamp") val timestamp: String? = null, diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/recommend/AroundPrecision.kt b/client/src/commonMain/kotlin/com/algolia/client/model/recommend/AroundPrecision.kt index 40fe08814..d15d1895f 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/recommend/AroundPrecision.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/recommend/AroundPrecision.kt @@ -15,7 +15,7 @@ import kotlin.jvm.JvmInline * * Implementations: * - [Int] - *[AroundPrecision.of]* - * - [List] - *[AroundPrecision.of]* + * - [List] - *[AroundPrecision.of]* */ @Serializable(AroundPrecisionSerializer::class) public sealed interface AroundPrecision { @@ -25,15 +25,15 @@ public sealed interface AroundPrecision { @Serializable @JvmInline - public value class ListOfAroundPrecisionFromValueInnerValue(public val value: List) : AroundPrecision + public value class ListOfRangeValue(public val value: List) : AroundPrecision public companion object { public fun of(value: Int): AroundPrecision { return IntValue(value) } - public fun of(value: List): AroundPrecision { - return ListOfAroundPrecisionFromValueInnerValue(value) + public fun of(value: List): AroundPrecision { + return ListOfRangeValue(value) } } } @@ -42,7 +42,7 @@ internal class AroundPrecisionSerializer : JsonContentPolymorphicSerializer { return when { element.isInt -> AroundPrecision.IntValue.serializer() - element.isJsonArrayOfObjects -> AroundPrecision.ListOfAroundPrecisionFromValueInnerValue.serializer() + element.isJsonArrayOfObjects -> AroundPrecision.ListOfRangeValue.serializer() else -> throw AlgoliaClientException("Failed to deserialize json element: $element") } } diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/recommend/AroundPrecisionFromValueInner.kt b/client/src/commonMain/kotlin/com/algolia/client/model/recommend/Range.kt similarity index 95% rename from client/src/commonMain/kotlin/com/algolia/client/model/recommend/AroundPrecisionFromValueInner.kt rename to client/src/commonMain/kotlin/com/algolia/client/model/recommend/Range.kt index 91f12c5ed..a0a828d08 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/recommend/AroundPrecisionFromValueInner.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/recommend/Range.kt @@ -11,7 +11,7 @@ import kotlinx.serialization.json.* * @param `value` Upper boundary of a range in meters. The Geo ranking criterion considers all records within the range to be equal. */ @Serializable -public data class AroundPrecisionFromValueInner( +public data class Range( /** Lower boundary of a range in meters. The Geo ranking criterion considers all records within the range to be equal. */ @SerialName(value = "from") val from: Int? = null, diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/recommend/RecommendRule.kt b/client/src/commonMain/kotlin/com/algolia/client/model/recommend/RecommendRule.kt index 83281b457..71065d5a0 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/recommend/RecommendRule.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/recommend/RecommendRule.kt @@ -17,7 +17,7 @@ import kotlinx.serialization.json.* @Serializable public data class RecommendRule( - @SerialName(value = "_metadata") val metadata: RecommendRuleMetadata? = null, + @SerialName(value = "_metadata") val metadata: RuleMetadata? = null, /** Unique identifier of a rule object. */ @SerialName(value = "objectID") val objectID: String? = null, diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/recommend/RedirectRuleIndexMetadataData.kt b/client/src/commonMain/kotlin/com/algolia/client/model/recommend/RedirectRuleIndexData.kt similarity index 89% rename from client/src/commonMain/kotlin/com/algolia/client/model/recommend/RedirectRuleIndexMetadataData.kt rename to client/src/commonMain/kotlin/com/algolia/client/model/recommend/RedirectRuleIndexData.kt index 9924f9064..4b5446a8f 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/recommend/RedirectRuleIndexMetadataData.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/recommend/RedirectRuleIndexData.kt @@ -10,7 +10,7 @@ import kotlinx.serialization.json.* * @param ruleObjectID */ @Serializable -public data class RedirectRuleIndexMetadataData( +public data class RedirectRuleIndexData( @SerialName(value = "ruleObjectID") val ruleObjectID: String, ) diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/recommend/RedirectRuleIndexMetadata.kt b/client/src/commonMain/kotlin/com/algolia/client/model/recommend/RedirectRuleIndexMetadata.kt index bc448d29f..61d139c6c 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/recommend/RedirectRuleIndexMetadata.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/recommend/RedirectRuleIndexMetadata.kt @@ -28,5 +28,5 @@ public data class RedirectRuleIndexMetadata( /** Redirect rule status. */ @SerialName(value = "succeed") val succeed: Boolean, - @SerialName(value = "data") val `data`: RedirectRuleIndexMetadataData, + @SerialName(value = "data") val `data`: RedirectRuleIndexData, ) diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/recommend/RecommendRuleMetadata.kt b/client/src/commonMain/kotlin/com/algolia/client/model/recommend/RuleMetadata.kt similarity index 93% rename from client/src/commonMain/kotlin/com/algolia/client/model/recommend/RecommendRuleMetadata.kt rename to client/src/commonMain/kotlin/com/algolia/client/model/recommend/RuleMetadata.kt index 3099c31d9..a0b6d8614 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/recommend/RecommendRuleMetadata.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/recommend/RuleMetadata.kt @@ -10,7 +10,7 @@ import kotlinx.serialization.json.* * @param lastUpdate Date and time when the object was updated, in RFC 3339 format. */ @Serializable -public data class RecommendRuleMetadata( +public data class RuleMetadata( /** Date and time when the object was updated, in RFC 3339 format. */ @SerialName(value = "lastUpdate") val lastUpdate: String? = null, diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/search/AroundPrecision.kt b/client/src/commonMain/kotlin/com/algolia/client/model/search/AroundPrecision.kt index 4ae16ee3c..8dc7f837c 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/search/AroundPrecision.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/search/AroundPrecision.kt @@ -15,7 +15,7 @@ import kotlin.jvm.JvmInline * * Implementations: * - [Int] - *[AroundPrecision.of]* - * - [List] - *[AroundPrecision.of]* + * - [List] - *[AroundPrecision.of]* */ @Serializable(AroundPrecisionSerializer::class) public sealed interface AroundPrecision { @@ -25,15 +25,15 @@ public sealed interface AroundPrecision { @Serializable @JvmInline - public value class ListOfAroundPrecisionFromValueInnerValue(public val value: List) : AroundPrecision + public value class ListOfRangeValue(public val value: List) : AroundPrecision public companion object { public fun of(value: Int): AroundPrecision { return IntValue(value) } - public fun of(value: List): AroundPrecision { - return ListOfAroundPrecisionFromValueInnerValue(value) + public fun of(value: List): AroundPrecision { + return ListOfRangeValue(value) } } } @@ -42,7 +42,7 @@ internal class AroundPrecisionSerializer : JsonContentPolymorphicSerializer { return when { element.isInt -> AroundPrecision.IntValue.serializer() - element.isJsonArrayOfObjects -> AroundPrecision.ListOfAroundPrecisionFromValueInnerValue.serializer() + element.isJsonArrayOfObjects -> AroundPrecision.ListOfRangeValue.serializer() else -> throw AlgoliaClientException("Failed to deserialize json element: $element") } } diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/search/AroundPrecisionFromValueInner.kt b/client/src/commonMain/kotlin/com/algolia/client/model/search/Range.kt similarity index 95% rename from client/src/commonMain/kotlin/com/algolia/client/model/search/AroundPrecisionFromValueInner.kt rename to client/src/commonMain/kotlin/com/algolia/client/model/search/Range.kt index 3998d4a38..03de79fe6 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/search/AroundPrecisionFromValueInner.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/search/Range.kt @@ -11,7 +11,7 @@ import kotlinx.serialization.json.* * @param `value` Upper boundary of a range in meters. The Geo ranking criterion considers all records within the range to be equal. */ @Serializable -public data class AroundPrecisionFromValueInner( +public data class Range( /** Lower boundary of a range in meters. The Geo ranking criterion considers all records within the range to be equal. */ @SerialName(value = "from") val from: Int? = null, diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/search/RedirectRuleIndexMetadataData.kt b/client/src/commonMain/kotlin/com/algolia/client/model/search/RedirectRuleIndexData.kt similarity index 89% rename from client/src/commonMain/kotlin/com/algolia/client/model/search/RedirectRuleIndexMetadataData.kt rename to client/src/commonMain/kotlin/com/algolia/client/model/search/RedirectRuleIndexData.kt index 4c1b00506..8505fa90c 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/search/RedirectRuleIndexMetadataData.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/search/RedirectRuleIndexData.kt @@ -10,7 +10,7 @@ import kotlinx.serialization.json.* * @param ruleObjectID */ @Serializable -public data class RedirectRuleIndexMetadataData( +public data class RedirectRuleIndexData( @SerialName(value = "ruleObjectID") val ruleObjectID: String, ) diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/search/RedirectRuleIndexMetadata.kt b/client/src/commonMain/kotlin/com/algolia/client/model/search/RedirectRuleIndexMetadata.kt index 62737032f..fb1fe5368 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/search/RedirectRuleIndexMetadata.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/search/RedirectRuleIndexMetadata.kt @@ -28,5 +28,5 @@ public data class RedirectRuleIndexMetadata( /** Redirect rule status. */ @SerialName(value = "succeed") val succeed: Boolean, - @SerialName(value = "data") val `data`: RedirectRuleIndexMetadataData, + @SerialName(value = "data") val `data`: RedirectRuleIndexData, ) diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/search/SearchParamsString.kt b/client/src/commonMain/kotlin/com/algolia/client/model/search/SearchParamsString.kt index 4a0ace479..f9e49f65d 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/search/SearchParamsString.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/search/SearchParamsString.kt @@ -5,7 +5,7 @@ import kotlinx.serialization.* import kotlinx.serialization.json.* /** - * SearchParamsString + * Search parameters as query string. * * @param params Search parameters as a URL-encoded query string. */ diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/usage/GetUsage400ResponseErrorErrorsInner.kt b/client/src/commonMain/kotlin/com/algolia/client/model/usage/ErrorItem.kt similarity index 86% rename from client/src/commonMain/kotlin/com/algolia/client/model/usage/GetUsage400ResponseErrorErrorsInner.kt rename to client/src/commonMain/kotlin/com/algolia/client/model/usage/ErrorItem.kt index 22e1f70e7..b8195fc93 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/usage/GetUsage400ResponseErrorErrorsInner.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/usage/ErrorItem.kt @@ -5,7 +5,7 @@ import kotlinx.serialization.* import kotlinx.serialization.json.* /** - * GetUsage400ResponseErrorErrorsInner + * ErrorItem * * @param message * @param code @@ -13,7 +13,7 @@ import kotlinx.serialization.json.* * @param position */ @Serializable -public data class GetUsage400ResponseErrorErrorsInner( +public data class ErrorItem( @SerialName(value = "message") val message: String, diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/usage/GetUsage400Response.kt b/client/src/commonMain/kotlin/com/algolia/client/model/usage/Forbidden.kt similarity index 72% rename from client/src/commonMain/kotlin/com/algolia/client/model/usage/GetUsage400Response.kt rename to client/src/commonMain/kotlin/com/algolia/client/model/usage/Forbidden.kt index c38f23860..bc08634d0 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/usage/GetUsage400Response.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/usage/Forbidden.kt @@ -5,12 +5,12 @@ import kotlinx.serialization.* import kotlinx.serialization.json.* /** - * GetUsage400Response + * Forbidden * * @param error */ @Serializable -public data class GetUsage400Response( +public data class Forbidden( - @SerialName(value = "error") val error: GetUsage400ResponseError, + @SerialName(value = "error") val error: ForbiddenError, ) diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/usage/GetUsage400ResponseError.kt b/client/src/commonMain/kotlin/com/algolia/client/model/usage/ForbiddenError.kt similarity index 74% rename from client/src/commonMain/kotlin/com/algolia/client/model/usage/GetUsage400ResponseError.kt rename to client/src/commonMain/kotlin/com/algolia/client/model/usage/ForbiddenError.kt index 080dc068f..26977b422 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/usage/GetUsage400ResponseError.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/usage/ForbiddenError.kt @@ -5,18 +5,18 @@ import kotlinx.serialization.* import kotlinx.serialization.json.* /** - * GetUsage400ResponseError + * ForbiddenError * * @param code * @param message * @param errors */ @Serializable -public data class GetUsage400ResponseError( +public data class ForbiddenError( @SerialName(value = "code") val code: String? = null, @SerialName(value = "message") val message: String? = null, - @SerialName(value = "errors") val errors: List? = null, + @SerialName(value = "errors") val errors: List? = null, ) diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/usage/GetUsage200Response.kt b/client/src/commonMain/kotlin/com/algolia/client/model/usage/IndexUsage.kt similarity index 67% rename from client/src/commonMain/kotlin/com/algolia/client/model/usage/GetUsage200Response.kt rename to client/src/commonMain/kotlin/com/algolia/client/model/usage/IndexUsage.kt index 936618670..688f5f13b 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/usage/GetUsage200Response.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/usage/IndexUsage.kt @@ -5,12 +5,12 @@ import kotlinx.serialization.* import kotlinx.serialization.json.* /** - * GetUsage200Response + * IndexUsage * * @param statistics */ @Serializable -public data class GetUsage200Response( +public data class IndexUsage( - @SerialName(value = "statistics") val statistics: List? = null, + @SerialName(value = "statistics") val statistics: List? = null, ) diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/usage/InvalidRequest.kt b/client/src/commonMain/kotlin/com/algolia/client/model/usage/InvalidRequest.kt new file mode 100644 index 000000000..3024cafba --- /dev/null +++ b/client/src/commonMain/kotlin/com/algolia/client/model/usage/InvalidRequest.kt @@ -0,0 +1,16 @@ +/** 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. */ +package com.algolia.client.model.usage + +import kotlinx.serialization.* +import kotlinx.serialization.json.* + +/** + * InvalidRequest + * + * @param error + */ +@Serializable +public data class InvalidRequest( + + @SerialName(value = "error") val error: InvalidRequestError, +) diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/usage/InvalidRequestError.kt b/client/src/commonMain/kotlin/com/algolia/client/model/usage/InvalidRequestError.kt new file mode 100644 index 000000000..e24128bf5 --- /dev/null +++ b/client/src/commonMain/kotlin/com/algolia/client/model/usage/InvalidRequestError.kt @@ -0,0 +1,22 @@ +/** 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. */ +package com.algolia.client.model.usage + +import kotlinx.serialization.* +import kotlinx.serialization.json.* + +/** + * InvalidRequestError + * + * @param code + * @param message + * @param errors + */ +@Serializable +public data class InvalidRequestError( + + @SerialName(value = "code") val code: String? = null, + + @SerialName(value = "message") val message: String? = null, + + @SerialName(value = "errors") val errors: List? = null, +) diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/usage/GetUsage200ResponseStatisticsInner.kt b/client/src/commonMain/kotlin/com/algolia/client/model/usage/StatisticEntry.kt similarity index 86% rename from client/src/commonMain/kotlin/com/algolia/client/model/usage/GetUsage200ResponseStatisticsInner.kt rename to client/src/commonMain/kotlin/com/algolia/client/model/usage/StatisticEntry.kt index af75e118f..55e11d1e6 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/usage/GetUsage200ResponseStatisticsInner.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/usage/StatisticEntry.kt @@ -5,13 +5,13 @@ import kotlinx.serialization.* import kotlinx.serialization.json.* /** - * GetUsage200ResponseStatisticsInner + * StatisticEntry * * @param t Timestamp, measured in milliseconds since the Unix epoch. * @param v */ @Serializable -public data class GetUsage200ResponseStatisticsInner( +public data class StatisticEntry( /** Timestamp, measured in milliseconds since the Unix epoch. */ @SerialName(value = "t") val t: Int? = null,