diff --git a/packages/algoliasearch/builds/models.ts b/packages/algoliasearch/builds/models.ts index cbc1bda4a..2c6377335 100644 --- a/packages/algoliasearch/builds/models.ts +++ b/packages/algoliasearch/builds/models.ts @@ -6,7 +6,6 @@ import { AlternativesAsExact, Anchoring, AroundPrecision, - AroundPrecisionFromValueInner, AroundRadius, AroundRadiusAll, AutomaticFacetFilter, @@ -50,11 +49,12 @@ import { PromoteObjectID, PromoteObjectIDs, QueryType, + Range, RankingInfo, ReRankingApplyFilter, Redirect, RedirectRuleIndexMetadata, - RedirectRuleIndexMetadataData, + RedirectRuleIndexData, RedirectURL, RemoveStopWords, RemoveWordsIfNoResults, @@ -92,7 +92,6 @@ export { AlternativesAsExact, Anchoring, AroundPrecision, - AroundPrecisionFromValueInner, AroundRadius, AroundRadiusAll, AutomaticFacetFilter, @@ -136,11 +135,12 @@ export { PromoteObjectID, PromoteObjectIDs, QueryType, + Range, RankingInfo, ReRankingApplyFilter, Redirect, RedirectRuleIndexMetadata, - RedirectRuleIndexMetadataData, + RedirectRuleIndexData, RedirectURL, RemoveStopWords, RemoveWordsIfNoResults, diff --git a/packages/algoliasearch/lite/model/aroundPrecision.ts b/packages/algoliasearch/lite/model/aroundPrecision.ts index 937a1e87e..8cacabcc7 100644 --- a/packages/algoliasearch/lite/model/aroundPrecision.ts +++ b/packages/algoliasearch/lite/model/aroundPrecision.ts @@ -1,8 +1,8 @@ // 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. -import type { AroundPrecisionFromValueInner } from './aroundPrecisionFromValueInner'; +import type { Range } from './range'; /** * Precision of a coordinate-based search in meters to group results with similar distances. The Geo ranking criterion considers all matches within the same range of distances to be equal. */ -export type AroundPrecision = AroundPrecisionFromValueInner[] | number; +export type AroundPrecision = Range[] | number; diff --git a/packages/algoliasearch/lite/model/index.ts b/packages/algoliasearch/lite/model/index.ts index e5dbdfbf9..b10724100 100644 --- a/packages/algoliasearch/lite/model/index.ts +++ b/packages/algoliasearch/lite/model/index.ts @@ -5,7 +5,6 @@ export * from './advancedSyntaxFeatures'; export * from './alternativesAsExact'; export * from './apiKey'; export * from './aroundPrecision'; -export * from './aroundPrecisionFromValueInner'; export * from './aroundRadius'; export * from './aroundRadiusAll'; export * from './automaticFacetFilter'; @@ -58,6 +57,7 @@ export * from './optionalFilters'; export * from './params'; export * from './personalization'; export * from './queryType'; +export * from './range'; export * from './rankingInfo'; export * from './reRankingApplyFilter'; export * from './recommendHit'; @@ -69,8 +69,8 @@ export * from './recommendedForYou'; export * from './recommendedForYouModel'; export * from './recommendedForYouQuery'; export * from './redirect'; +export * from './redirectRuleIndexData'; export * from './redirectRuleIndexMetadata'; -export * from './redirectRuleIndexMetadataData'; export * from './redirectURL'; export * from './relatedModel'; export * from './relatedProducts'; diff --git a/packages/algoliasearch/lite/model/aroundPrecisionFromValueInner.ts b/packages/algoliasearch/lite/model/range.ts similarity index 92% rename from packages/algoliasearch/lite/model/aroundPrecisionFromValueInner.ts rename to packages/algoliasearch/lite/model/range.ts index c3850a800..780b75be7 100644 --- a/packages/algoliasearch/lite/model/aroundPrecisionFromValueInner.ts +++ b/packages/algoliasearch/lite/model/range.ts @@ -3,7 +3,7 @@ /** * Range object with lower and upper values in meters to define custom ranges. */ -export type AroundPrecisionFromValueInner = { +export type Range = { /** * Lower boundary of a range in meters. The Geo ranking criterion considers all records within the range to be equal. */ diff --git a/packages/client-search/model/redirectRuleIndexMetadataData.ts b/packages/algoliasearch/lite/model/redirectRuleIndexData.ts similarity index 83% rename from packages/client-search/model/redirectRuleIndexMetadataData.ts rename to packages/algoliasearch/lite/model/redirectRuleIndexData.ts index a7f9739ad..fbb7ea140 100644 --- a/packages/client-search/model/redirectRuleIndexMetadataData.ts +++ b/packages/algoliasearch/lite/model/redirectRuleIndexData.ts @@ -3,6 +3,6 @@ /** * Redirect rule data. */ -export type RedirectRuleIndexMetadataData = { +export type RedirectRuleIndexData = { ruleObjectID: string; }; diff --git a/packages/algoliasearch/lite/model/redirectRuleIndexMetadata.ts b/packages/algoliasearch/lite/model/redirectRuleIndexMetadata.ts index 3d69bb1b5..33802fc69 100644 --- a/packages/algoliasearch/lite/model/redirectRuleIndexMetadata.ts +++ b/packages/algoliasearch/lite/model/redirectRuleIndexMetadata.ts @@ -1,6 +1,6 @@ // 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. -import type { RedirectRuleIndexMetadataData } from './redirectRuleIndexMetadataData'; +import type { RedirectRuleIndexData } from './redirectRuleIndexData'; export type RedirectRuleIndexMetadata = { /** @@ -23,5 +23,5 @@ export type RedirectRuleIndexMetadata = { */ succeed: boolean; - data: RedirectRuleIndexMetadataData; + data: RedirectRuleIndexData; }; diff --git a/packages/client-abtesting/model/filterEffectsEmptySearch.ts b/packages/client-abtesting/model/emptySearchFilter.ts similarity index 91% rename from packages/client-abtesting/model/filterEffectsEmptySearch.ts rename to packages/client-abtesting/model/emptySearchFilter.ts index 1631733b5..5fb112cdc 100644 --- a/packages/client-abtesting/model/filterEffectsEmptySearch.ts +++ b/packages/client-abtesting/model/emptySearchFilter.ts @@ -3,7 +3,7 @@ /** * Empty searches removed from the A/B test as a result of configuration settings. */ -export type FilterEffectsEmptySearch = { +export type EmptySearchFilter = { /** * Number of users removed from the A/B test. */ diff --git a/packages/client-abtesting/model/filterEffects.ts b/packages/client-abtesting/model/filterEffects.ts index b5e5c86a9..bf40d0a8d 100644 --- a/packages/client-abtesting/model/filterEffects.ts +++ b/packages/client-abtesting/model/filterEffects.ts @@ -1,13 +1,13 @@ // 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. -import type { FilterEffectsEmptySearch } from './filterEffectsEmptySearch'; -import type { FilterEffectsOutliers } from './filterEffectsOutliers'; +import type { EmptySearchFilter } from './emptySearchFilter'; +import type { OutliersFilter } from './outliersFilter'; /** * A/B test filter effects resulting from configuration settings. */ export type FilterEffects = { - outliers?: FilterEffectsOutliers; + outliers?: OutliersFilter; - emptySearch?: FilterEffectsEmptySearch; + emptySearch?: EmptySearchFilter; }; diff --git a/packages/client-abtesting/model/index.ts b/packages/client-abtesting/model/index.ts index 04aabe88a..dd5df5ad0 100644 --- a/packages/client-abtesting/model/index.ts +++ b/packages/client-abtesting/model/index.ts @@ -11,13 +11,13 @@ export * from './currency'; export * from './customSearchParams'; export * from './effect'; export * from './emptySearch'; +export * from './emptySearchFilter'; export * from './errorBase'; export * from './filterEffects'; -export * from './filterEffectsEmptySearch'; -export * from './filterEffectsOutliers'; export * from './listABTestsResponse'; export * from './minimumDetectableEffect'; export * from './outliers'; +export * from './outliersFilter'; export * from './status'; export * from './variant'; export * from './clientMethodProps'; diff --git a/packages/client-abtesting/model/filterEffectsOutliers.ts b/packages/client-abtesting/model/outliersFilter.ts similarity index 92% rename from packages/client-abtesting/model/filterEffectsOutliers.ts rename to packages/client-abtesting/model/outliersFilter.ts index 5f9a5f18c..4b82cfe5e 100644 --- a/packages/client-abtesting/model/filterEffectsOutliers.ts +++ b/packages/client-abtesting/model/outliersFilter.ts @@ -3,7 +3,7 @@ /** * Outliers removed from the A/B test as a result of configuration settings. */ -export type FilterEffectsOutliers = { +export type OutliersFilter = { /** * Number of users removed from the A/B test. */ diff --git a/packages/client-analytics/model/clickPositionsInner.ts b/packages/client-analytics/model/clickPosition.ts similarity index 93% rename from packages/client-analytics/model/clickPositionsInner.ts rename to packages/client-analytics/model/clickPosition.ts index d35945111..1f85dbf90 100644 --- a/packages/client-analytics/model/clickPositionsInner.ts +++ b/packages/client-analytics/model/clickPosition.ts @@ -3,7 +3,7 @@ /** * Click position. */ -export type ClickPositionsInner = { +export type 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. */ diff --git a/packages/client-analytics/model/getClickPositionsResponse.ts b/packages/client-analytics/model/getClickPositionsResponse.ts index 576868d51..98edf8c56 100644 --- a/packages/client-analytics/model/getClickPositionsResponse.ts +++ b/packages/client-analytics/model/getClickPositionsResponse.ts @@ -1,10 +1,10 @@ // 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. -import type { ClickPositionsInner } from './clickPositionsInner'; +import type { ClickPosition } from './clickPosition'; export type GetClickPositionsResponse = { /** * List of positions in the search results and clicks associated with this search. */ - positions: ClickPositionsInner[]; + positions: ClickPosition[]; }; diff --git a/packages/client-analytics/model/index.ts b/packages/client-analytics/model/index.ts index 0b9b9646b..8ffc05813 100644 --- a/packages/client-analytics/model/index.ts +++ b/packages/client-analytics/model/index.ts @@ -1,6 +1,6 @@ // 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. -export * from './clickPositionsInner'; +export * from './clickPosition'; export * from './currenciesValue'; export * from './dailyAddToCartRates'; export * from './dailyAverageClicks'; diff --git a/packages/client-analytics/model/topSearchWithAnalytics.ts b/packages/client-analytics/model/topSearchWithAnalytics.ts index 95b977c28..ae1f592d7 100644 --- a/packages/client-analytics/model/topSearchWithAnalytics.ts +++ b/packages/client-analytics/model/topSearchWithAnalytics.ts @@ -1,6 +1,6 @@ // 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. -import type { ClickPositionsInner } from './clickPositionsInner'; +import type { ClickPosition } from './clickPosition'; export type TopSearchWithAnalytics = { /** @@ -26,7 +26,7 @@ export type TopSearchWithAnalytics = { /** * List of positions in the search results and clicks associated with this search. */ - clickPositions: ClickPositionsInner[]; + clickPositions: ClickPosition[]; /** * 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. diff --git a/packages/client-analytics/model/topSearchWithRevenueAnalytics.ts b/packages/client-analytics/model/topSearchWithRevenueAnalytics.ts index d196626ff..98e02056d 100644 --- a/packages/client-analytics/model/topSearchWithRevenueAnalytics.ts +++ b/packages/client-analytics/model/topSearchWithRevenueAnalytics.ts @@ -1,6 +1,6 @@ // 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. -import type { ClickPositionsInner } from './clickPositionsInner'; +import type { ClickPosition } from './clickPosition'; import type { CurrenciesValue } from './currenciesValue'; export type TopSearchWithRevenueAnalytics = { @@ -27,7 +27,7 @@ export type TopSearchWithRevenueAnalytics = { /** * List of positions in the search results and clicks associated with this search. */ - clickPositions: ClickPositionsInner[]; + clickPositions: ClickPosition[]; /** * 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. diff --git a/packages/client-query-suggestions/model/getConfigStatus200Response.ts b/packages/client-query-suggestions/model/configStatus.ts similarity index 94% rename from packages/client-query-suggestions/model/getConfigStatus200Response.ts rename to packages/client-query-suggestions/model/configStatus.ts index 8c85ac369..f3a3adfc5 100644 --- a/packages/client-query-suggestions/model/getConfigStatus200Response.ts +++ b/packages/client-query-suggestions/model/configStatus.ts @@ -1,6 +1,6 @@ // 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. -export type GetConfigStatus200Response = { +export type ConfigStatus = { /** * Name of the Query Suggestions index (case-sensitive). */ diff --git a/packages/client-query-suggestions/model/index.ts b/packages/client-query-suggestions/model/index.ts index 43b8de93a..d54b9e5d7 100644 --- a/packages/client-query-suggestions/model/index.ts +++ b/packages/client-query-suggestions/model/index.ts @@ -2,14 +2,14 @@ export * from './appID'; export * from './baseResponse'; +export * from './configStatus'; export * from './configuration'; export * from './configurationResponse'; export * from './configurationWithIndex'; export * from './errorBase'; export * from './facet'; -export * from './getConfigStatus200Response'; -export * from './getLogFile200Response'; export * from './languages'; +export * from './logFile'; export * from './logLevel'; export * from './sourceIndex'; export * from './clientMethodProps'; diff --git a/packages/client-query-suggestions/model/getLogFile200Response.ts b/packages/client-query-suggestions/model/logFile.ts similarity index 94% rename from packages/client-query-suggestions/model/getLogFile200Response.ts rename to packages/client-query-suggestions/model/logFile.ts index 61845760f..352735228 100644 --- a/packages/client-query-suggestions/model/getLogFile200Response.ts +++ b/packages/client-query-suggestions/model/logFile.ts @@ -2,7 +2,7 @@ import type { LogLevel } from './logLevel'; -export type GetLogFile200Response = { +export type LogFile = { /** * Date and time of the log entry, in RFC 3339 format. */ diff --git a/packages/client-query-suggestions/src/querySuggestionsClient.ts b/packages/client-query-suggestions/src/querySuggestionsClient.ts index 994221a0e..b2be7f4df 100644 --- a/packages/client-query-suggestions/src/querySuggestionsClient.ts +++ b/packages/client-query-suggestions/src/querySuggestionsClient.ts @@ -26,10 +26,10 @@ import type { GetLogFileProps, UpdateConfigProps, } from '../model/clientMethodProps'; +import type { ConfigStatus } from '../model/configStatus'; import type { ConfigurationResponse } from '../model/configurationResponse'; import type { ConfigurationWithIndex } from '../model/configurationWithIndex'; -import type { GetConfigStatus200Response } from '../model/getConfigStatus200Response'; -import type { GetLogFile200Response } from '../model/getLogFile200Response'; +import type { LogFile } from '../model/logFile'; export const apiClientVersion = '5.0.0-beta.12'; @@ -387,7 +387,7 @@ export function createQuerySuggestionsClient({ getConfigStatus( { indexName }: GetConfigStatusProps, requestOptions?: RequestOptions - ): Promise { + ): Promise { if (!indexName) { throw new Error( 'Parameter `indexName` is required when calling `getConfigStatus`.' @@ -424,7 +424,7 @@ export function createQuerySuggestionsClient({ getLogFile( { indexName }: GetLogFileProps, requestOptions?: RequestOptions - ): Promise { + ): Promise { if (!indexName) { throw new Error( 'Parameter `indexName` is required when calling `getLogFile`.' diff --git a/packages/client-search/model/aroundPrecision.ts b/packages/client-search/model/aroundPrecision.ts index 937a1e87e..8cacabcc7 100644 --- a/packages/client-search/model/aroundPrecision.ts +++ b/packages/client-search/model/aroundPrecision.ts @@ -1,8 +1,8 @@ // 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. -import type { AroundPrecisionFromValueInner } from './aroundPrecisionFromValueInner'; +import type { Range } from './range'; /** * Precision of a coordinate-based search in meters to group results with similar distances. The Geo ranking criterion considers all matches within the same range of distances to be equal. */ -export type AroundPrecision = AroundPrecisionFromValueInner[] | number; +export type AroundPrecision = Range[] | number; diff --git a/packages/client-search/model/index.ts b/packages/client-search/model/index.ts index 05846195f..fd7c2f1a5 100644 --- a/packages/client-search/model/index.ts +++ b/packages/client-search/model/index.ts @@ -9,7 +9,6 @@ export * from './anchoring'; export * from './apiKey'; export * from './apiKeyOperation'; export * from './aroundPrecision'; -export * from './aroundPrecisionFromValueInner'; export * from './aroundRadius'; export * from './aroundRadiusAll'; export * from './assignUserIdParams'; @@ -102,11 +101,12 @@ export * from './promote'; export * from './promoteObjectID'; export * from './promoteObjectIDs'; export * from './queryType'; +export * from './range'; export * from './rankingInfo'; export * from './reRankingApplyFilter'; export * from './redirect'; +export * from './redirectRuleIndexData'; export * from './redirectRuleIndexMetadata'; -export * from './redirectRuleIndexMetadataData'; export * from './redirectURL'; export * from './removeStopWords'; export * from './removeUserIdResponse'; diff --git a/packages/client-search/model/aroundPrecisionFromValueInner.ts b/packages/client-search/model/range.ts similarity index 92% rename from packages/client-search/model/aroundPrecisionFromValueInner.ts rename to packages/client-search/model/range.ts index c3850a800..780b75be7 100644 --- a/packages/client-search/model/aroundPrecisionFromValueInner.ts +++ b/packages/client-search/model/range.ts @@ -3,7 +3,7 @@ /** * Range object with lower and upper values in meters to define custom ranges. */ -export type AroundPrecisionFromValueInner = { +export type Range = { /** * Lower boundary of a range in meters. The Geo ranking criterion considers all records within the range to be equal. */ diff --git a/packages/algoliasearch/lite/model/redirectRuleIndexMetadataData.ts b/packages/client-search/model/redirectRuleIndexData.ts similarity index 83% rename from packages/algoliasearch/lite/model/redirectRuleIndexMetadataData.ts rename to packages/client-search/model/redirectRuleIndexData.ts index a7f9739ad..fbb7ea140 100644 --- a/packages/algoliasearch/lite/model/redirectRuleIndexMetadataData.ts +++ b/packages/client-search/model/redirectRuleIndexData.ts @@ -3,6 +3,6 @@ /** * Redirect rule data. */ -export type RedirectRuleIndexMetadataData = { +export type RedirectRuleIndexData = { ruleObjectID: string; }; diff --git a/packages/client-search/model/redirectRuleIndexMetadata.ts b/packages/client-search/model/redirectRuleIndexMetadata.ts index 3d69bb1b5..33802fc69 100644 --- a/packages/client-search/model/redirectRuleIndexMetadata.ts +++ b/packages/client-search/model/redirectRuleIndexMetadata.ts @@ -1,6 +1,6 @@ // 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. -import type { RedirectRuleIndexMetadataData } from './redirectRuleIndexMetadataData'; +import type { RedirectRuleIndexData } from './redirectRuleIndexData'; export type RedirectRuleIndexMetadata = { /** @@ -23,5 +23,5 @@ export type RedirectRuleIndexMetadata = { */ succeed: boolean; - data: RedirectRuleIndexMetadataData; + data: RedirectRuleIndexData; }; diff --git a/packages/client-search/model/searchParamsString.ts b/packages/client-search/model/searchParamsString.ts index c8d544477..78e0b5950 100644 --- a/packages/client-search/model/searchParamsString.ts +++ b/packages/client-search/model/searchParamsString.ts @@ -1,5 +1,8 @@ // 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. +/** + * Search parameters as query string. + */ export type SearchParamsString = { /** * Search parameters as a URL-encoded query string. diff --git a/packages/client-usage/model/getUsage400ResponseErrorErrorsInner.ts b/packages/client-usage/model/errorItem.ts similarity index 83% rename from packages/client-usage/model/getUsage400ResponseErrorErrorsInner.ts rename to packages/client-usage/model/errorItem.ts index ebd969071..b53f82dec 100644 --- a/packages/client-usage/model/getUsage400ResponseErrorErrorsInner.ts +++ b/packages/client-usage/model/errorItem.ts @@ -1,6 +1,6 @@ // 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. -export type GetUsage400ResponseErrorErrorsInner = { +export type ErrorItem = { code?: string; message: string; diff --git a/packages/client-usage/model/forbidden.ts b/packages/client-usage/model/forbidden.ts new file mode 100644 index 000000000..5ff3b64e6 --- /dev/null +++ b/packages/client-usage/model/forbidden.ts @@ -0,0 +1,7 @@ +// 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. + +import type { ForbiddenError } from './forbiddenError'; + +export type Forbidden = { + error: ForbiddenError; +}; diff --git a/packages/monitoring/model/indexingTimeResponseMetrics.ts b/packages/client-usage/model/forbiddenError.ts similarity index 56% rename from packages/monitoring/model/indexingTimeResponseMetrics.ts rename to packages/client-usage/model/forbiddenError.ts index fe2a79e53..0100f7375 100644 --- a/packages/monitoring/model/indexingTimeResponseMetrics.ts +++ b/packages/client-usage/model/forbiddenError.ts @@ -1,7 +1,11 @@ // 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. -import type { TimeInner } from './timeInner'; +import type { ErrorItem } from './errorItem'; -export type IndexingTimeResponseMetrics = { - indexing?: Record; +export type ForbiddenError = { + code?: string; + + message?: string; + + errors?: ErrorItem[]; }; diff --git a/packages/client-usage/model/getUsage200Response.ts b/packages/client-usage/model/getUsage200Response.ts deleted file mode 100644 index d83d94664..000000000 --- a/packages/client-usage/model/getUsage200Response.ts +++ /dev/null @@ -1,7 +0,0 @@ -// 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. - -import type { GetUsage200ResponseStatisticsInner } from './getUsage200ResponseStatisticsInner'; - -export type GetUsage200Response = { - statistics?: GetUsage200ResponseStatisticsInner[]; -}; diff --git a/packages/client-usage/model/getUsage400Response.ts b/packages/client-usage/model/getUsage400Response.ts deleted file mode 100644 index 78fbed0ee..000000000 --- a/packages/client-usage/model/getUsage400Response.ts +++ /dev/null @@ -1,7 +0,0 @@ -// 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. - -import type { GetUsage400ResponseError } from './getUsage400ResponseError'; - -export type GetUsage400Response = { - error: GetUsage400ResponseError; -}; diff --git a/packages/client-usage/model/getUsage400ResponseError.ts b/packages/client-usage/model/getUsage400ResponseError.ts deleted file mode 100644 index 8577ad059..000000000 --- a/packages/client-usage/model/getUsage400ResponseError.ts +++ /dev/null @@ -1,11 +0,0 @@ -// 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. - -import type { GetUsage400ResponseErrorErrorsInner } from './getUsage400ResponseErrorErrorsInner'; - -export type GetUsage400ResponseError = { - code?: string; - - message?: string; - - errors?: GetUsage400ResponseErrorErrorsInner[]; -}; diff --git a/packages/client-usage/model/index.ts b/packages/client-usage/model/index.ts index 69e17f497..3bae42d10 100644 --- a/packages/client-usage/model/index.ts +++ b/packages/client-usage/model/index.ts @@ -1,12 +1,14 @@ // 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. export * from './errorBase'; -export * from './getUsage200Response'; -export * from './getUsage200ResponseStatisticsInner'; -export * from './getUsage400Response'; -export * from './getUsage400ResponseError'; -export * from './getUsage400ResponseErrorErrorsInner'; +export * from './errorItem'; +export * from './forbidden'; +export * from './forbiddenError'; export * from './granularity'; +export * from './indexUsage'; +export * from './invalidRequest'; +export * from './invalidRequestError'; export * from './statistic'; +export * from './statisticEntry'; export * from './statisticValue'; export * from './clientMethodProps'; diff --git a/packages/client-usage/model/indexUsage.ts b/packages/client-usage/model/indexUsage.ts new file mode 100644 index 000000000..d1bb3c81f --- /dev/null +++ b/packages/client-usage/model/indexUsage.ts @@ -0,0 +1,7 @@ +// 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. + +import type { StatisticEntry } from './statisticEntry'; + +export type IndexUsage = { + statistics?: StatisticEntry[]; +}; diff --git a/packages/monitoring/model/latencyResponseMetrics.ts b/packages/client-usage/model/invalidRequest.ts similarity index 59% rename from packages/monitoring/model/latencyResponseMetrics.ts rename to packages/client-usage/model/invalidRequest.ts index 19e892a9d..4f39387b3 100644 --- a/packages/monitoring/model/latencyResponseMetrics.ts +++ b/packages/client-usage/model/invalidRequest.ts @@ -1,7 +1,7 @@ // 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. -import type { TimeInner } from './timeInner'; +import type { InvalidRequestError } from './invalidRequestError'; -export type LatencyResponseMetrics = { - latency?: Record; +export type InvalidRequest = { + error: InvalidRequestError; }; diff --git a/packages/client-usage/model/invalidRequestError.ts b/packages/client-usage/model/invalidRequestError.ts new file mode 100644 index 000000000..6f96df12e --- /dev/null +++ b/packages/client-usage/model/invalidRequestError.ts @@ -0,0 +1,11 @@ +// 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. + +import type { ErrorItem } from './errorItem'; + +export type InvalidRequestError = { + code?: string; + + message?: string; + + errors?: ErrorItem[]; +}; diff --git a/packages/client-usage/model/getUsage200ResponseStatisticsInner.ts b/packages/client-usage/model/statisticEntry.ts similarity index 87% rename from packages/client-usage/model/getUsage200ResponseStatisticsInner.ts rename to packages/client-usage/model/statisticEntry.ts index 4c4a3aea6..5ed9a0476 100644 --- a/packages/client-usage/model/getUsage200ResponseStatisticsInner.ts +++ b/packages/client-usage/model/statisticEntry.ts @@ -2,7 +2,7 @@ import type { StatisticValue } from './statisticValue'; -export type GetUsage200ResponseStatisticsInner = { +export type StatisticEntry = { /** * Timestamp, measured in milliseconds since the Unix epoch. */ diff --git a/packages/client-usage/src/usageClient.ts b/packages/client-usage/src/usageClient.ts index 57021b610..387a1a1f4 100644 --- a/packages/client-usage/src/usageClient.ts +++ b/packages/client-usage/src/usageClient.ts @@ -23,7 +23,7 @@ import type { GetIndexUsageProps, GetUsageProps, } from '../model/clientMethodProps'; -import type { GetUsage200Response } from '../model/getUsage200Response'; +import type { IndexUsage } from '../model/indexUsage'; export const apiClientVersion = '0.0.2-beta.12'; @@ -277,7 +277,7 @@ export function createUsageClient({ granularity, }: GetIndexUsageProps, requestOptions?: RequestOptions - ): Promise { + ): Promise { if (!statistic) { throw new Error( 'Parameter `statistic` is required when calling `getIndexUsage`.' @@ -343,7 +343,7 @@ export function createUsageClient({ getUsage( { statistic, startDate, endDate, granularity }: GetUsageProps, requestOptions?: RequestOptions - ): Promise { + ): Promise { if (!statistic) { throw new Error( 'Parameter `statistic` is required when calling `getUsage`.' diff --git a/packages/ingestion/model/dockerStreamsInput.ts b/packages/ingestion/model/dockerStreamsInput.ts index 66334f677..e64d6deb5 100644 --- a/packages/ingestion/model/dockerStreamsInput.ts +++ b/packages/ingestion/model/dockerStreamsInput.ts @@ -1,5 +1,8 @@ // 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. +/** + * The selected streams of a singer or airbyte connector. + */ export type DockerStreamsInput = { streams: Record; }; diff --git a/packages/ingestion/model/index.ts b/packages/ingestion/model/index.ts index 009e98ab7..7b6e45756 100644 --- a/packages/ingestion/model/index.ts +++ b/packages/ingestion/model/index.ts @@ -131,10 +131,10 @@ export * from './taskV1'; export * from './transformation'; export * from './transformationCreate'; export * from './transformationCreateResponse'; +export * from './transformationError'; export * from './transformationSearch'; export * from './transformationTry'; export * from './transformationTryResponse'; -export * from './transformationTryResponseError'; export * from './transformationUpdateResponse'; export * from './trigger'; export * from './triggerType'; diff --git a/packages/ingestion/model/transformationTryResponseError.ts b/packages/ingestion/model/transformationError.ts similarity index 88% rename from packages/ingestion/model/transformationTryResponseError.ts rename to packages/ingestion/model/transformationError.ts index 1ae81cfc3..1974cf2a5 100644 --- a/packages/ingestion/model/transformationTryResponseError.ts +++ b/packages/ingestion/model/transformationError.ts @@ -3,7 +3,7 @@ /** * The error if the transformation failed. */ -export type TransformationTryResponseError = { +export type TransformationError = { /** * The error status code. */ diff --git a/packages/ingestion/model/transformationTryResponse.ts b/packages/ingestion/model/transformationTryResponse.ts index 2e4c09d0f..7f91565bc 100644 --- a/packages/ingestion/model/transformationTryResponse.ts +++ b/packages/ingestion/model/transformationTryResponse.ts @@ -1,6 +1,6 @@ // 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. -import type { TransformationTryResponseError } from './transformationTryResponseError'; +import type { TransformationError } from './transformationError'; export type TransformationTryResponse = { /** @@ -8,5 +8,5 @@ export type TransformationTryResponse = { */ payloads: Array>; - error?: TransformationTryResponseError; + error?: TransformationError; }; diff --git a/packages/monitoring/model/getServers403Response.ts b/packages/monitoring/model/badRequest.ts similarity index 84% rename from packages/monitoring/model/getServers403Response.ts rename to packages/monitoring/model/badRequest.ts index 3d12aa53a..630ad5fd4 100644 --- a/packages/monitoring/model/getServers403Response.ts +++ b/packages/monitoring/model/badRequest.ts @@ -1,5 +1,5 @@ // 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. -export type GetServers403Response = { +export type BadRequest = { reason?: string; }; diff --git a/packages/monitoring/model/forbidden.ts b/packages/monitoring/model/forbidden.ts new file mode 100644 index 000000000..692fcc1a4 --- /dev/null +++ b/packages/monitoring/model/forbidden.ts @@ -0,0 +1,5 @@ +// 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. + +export type Forbidden = { + reason?: string; +}; diff --git a/packages/monitoring/model/incidentsInner.ts b/packages/monitoring/model/incidentEntry.ts similarity index 91% rename from packages/monitoring/model/incidentsInner.ts rename to packages/monitoring/model/incidentEntry.ts index 06c412a31..42c5f410d 100644 --- a/packages/monitoring/model/incidentsInner.ts +++ b/packages/monitoring/model/incidentEntry.ts @@ -2,7 +2,7 @@ import type { Incident } from './incident'; -export type IncidentsInner = { +export type IncidentEntry = { /** * Timestamp, measured in milliseconds since the Unix epoch. */ diff --git a/packages/monitoring/model/incidentsResponse.ts b/packages/monitoring/model/incidentsResponse.ts index 92dce78e6..7b55fb602 100644 --- a/packages/monitoring/model/incidentsResponse.ts +++ b/packages/monitoring/model/incidentsResponse.ts @@ -1,7 +1,7 @@ // 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. -import type { IncidentsInner } from './incidentsInner'; +import type { IncidentEntry } from './incidentEntry'; export type IncidentsResponse = { - incidents?: Record; + incidents?: Record; }; diff --git a/packages/monitoring/model/index.ts b/packages/monitoring/model/index.ts index d52af8ed6..b80f8de70 100644 --- a/packages/monitoring/model/index.ts +++ b/packages/monitoring/model/index.ts @@ -1,18 +1,19 @@ // 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. +export * from './badRequest'; export * from './errorBase'; -export * from './getServers403Response'; +export * from './forbidden'; export * from './incident'; -export * from './incidentsInner'; +export * from './incidentEntry'; export * from './incidentsResponse'; +export * from './indexingMetric'; export * from './indexingTimeResponse'; -export * from './indexingTimeResponseMetrics'; export * from './infrastructureResponse'; -export * from './infrastructureResponseMetrics'; export * from './inventoryResponse'; +export * from './latencyMetric'; export * from './latencyResponse'; -export * from './latencyResponseMetrics'; export * from './metric'; +export * from './metrics'; export * from './period'; export * from './probesMetric'; export * from './region'; @@ -20,6 +21,7 @@ export * from './server'; export * from './serverStatus'; export * from './status'; export * from './statusResponse'; -export * from './timeInner'; +export * from './timeEntry'; export * from './type'; +export * from './unauthorized'; export * from './clientMethodProps'; diff --git a/packages/monitoring/model/indexingMetric.ts b/packages/monitoring/model/indexingMetric.ts new file mode 100644 index 000000000..a77e5decb --- /dev/null +++ b/packages/monitoring/model/indexingMetric.ts @@ -0,0 +1,7 @@ +// 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. + +import type { TimeEntry } from './timeEntry'; + +export type IndexingMetric = { + indexing?: Record; +}; diff --git a/packages/monitoring/model/indexingTimeResponse.ts b/packages/monitoring/model/indexingTimeResponse.ts index 3363e2c76..2d2101ada 100644 --- a/packages/monitoring/model/indexingTimeResponse.ts +++ b/packages/monitoring/model/indexingTimeResponse.ts @@ -1,7 +1,7 @@ // 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. -import type { IndexingTimeResponseMetrics } from './indexingTimeResponseMetrics'; +import type { IndexingMetric } from './indexingMetric'; export type IndexingTimeResponse = { - metrics?: IndexingTimeResponseMetrics; + metrics?: IndexingMetric; }; diff --git a/packages/monitoring/model/infrastructureResponse.ts b/packages/monitoring/model/infrastructureResponse.ts index 7889ffd9f..6edf9b711 100644 --- a/packages/monitoring/model/infrastructureResponse.ts +++ b/packages/monitoring/model/infrastructureResponse.ts @@ -1,7 +1,7 @@ // 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. -import type { InfrastructureResponseMetrics } from './infrastructureResponseMetrics'; +import type { Metrics } from './metrics'; export type InfrastructureResponse = { - metrics?: InfrastructureResponseMetrics; + metrics?: Metrics; }; diff --git a/packages/monitoring/model/latencyMetric.ts b/packages/monitoring/model/latencyMetric.ts new file mode 100644 index 000000000..cdea05efc --- /dev/null +++ b/packages/monitoring/model/latencyMetric.ts @@ -0,0 +1,7 @@ +// 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. + +import type { TimeEntry } from './timeEntry'; + +export type LatencyMetric = { + latency?: Record; +}; diff --git a/packages/monitoring/model/latencyResponse.ts b/packages/monitoring/model/latencyResponse.ts index f0ec95efb..336951ae7 100644 --- a/packages/monitoring/model/latencyResponse.ts +++ b/packages/monitoring/model/latencyResponse.ts @@ -1,7 +1,7 @@ // 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. -import type { LatencyResponseMetrics } from './latencyResponseMetrics'; +import type { LatencyMetric } from './latencyMetric'; export type LatencyResponse = { - metrics?: LatencyResponseMetrics; + metrics?: LatencyMetric; }; diff --git a/packages/monitoring/model/infrastructureResponseMetrics.ts b/packages/monitoring/model/metrics.ts similarity index 94% rename from packages/monitoring/model/infrastructureResponseMetrics.ts rename to packages/monitoring/model/metrics.ts index 5b73ef371..41e82876d 100644 --- a/packages/monitoring/model/infrastructureResponseMetrics.ts +++ b/packages/monitoring/model/metrics.ts @@ -2,7 +2,7 @@ import type { ProbesMetric } from './probesMetric'; -export type InfrastructureResponseMetrics = { +export type Metrics = { /** * CPU idleness in %. */ diff --git a/packages/monitoring/model/timeInner.ts b/packages/monitoring/model/timeEntry.ts similarity index 92% rename from packages/monitoring/model/timeInner.ts rename to packages/monitoring/model/timeEntry.ts index 8707262be..21fb9b6a4 100644 --- a/packages/monitoring/model/timeInner.ts +++ b/packages/monitoring/model/timeEntry.ts @@ -1,6 +1,6 @@ // 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. -export type TimeInner = { +export type TimeEntry = { /** * Timestamp, measured in milliseconds since the Unix epoch. */ diff --git a/packages/monitoring/model/unauthorized.ts b/packages/monitoring/model/unauthorized.ts new file mode 100644 index 000000000..bd09c5dbf --- /dev/null +++ b/packages/monitoring/model/unauthorized.ts @@ -0,0 +1,5 @@ +// 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. + +export type Unauthorized = { + reason?: string; +}; diff --git a/packages/recommend/model/aroundPrecision.ts b/packages/recommend/model/aroundPrecision.ts index 937a1e87e..8cacabcc7 100644 --- a/packages/recommend/model/aroundPrecision.ts +++ b/packages/recommend/model/aroundPrecision.ts @@ -1,8 +1,8 @@ // 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. -import type { AroundPrecisionFromValueInner } from './aroundPrecisionFromValueInner'; +import type { Range } from './range'; /** * Precision of a coordinate-based search in meters to group results with similar distances. The Geo ranking criterion considers all matches within the same range of distances to be equal. */ -export type AroundPrecision = AroundPrecisionFromValueInner[] | number; +export type AroundPrecision = Range[] | number; diff --git a/packages/recommend/model/index.ts b/packages/recommend/model/index.ts index 1cfa4fa0b..dd4e31419 100644 --- a/packages/recommend/model/index.ts +++ b/packages/recommend/model/index.ts @@ -3,7 +3,6 @@ export * from './advancedSyntaxFeatures'; export * from './alternativesAsExact'; export * from './aroundPrecision'; -export * from './aroundPrecisionFromValueInner'; export * from './aroundRadius'; export * from './aroundRadiusAll'; export * from './autoFacetFilter'; @@ -46,12 +45,12 @@ export * from './paramsConsequence'; export * from './personalization'; export * from './promoteConsequenceObject'; export * from './queryType'; +export * from './range'; export * from './rankingInfo'; export * from './reRankingApplyFilter'; export * from './recommendHit'; export * from './recommendModels'; export * from './recommendRule'; -export * from './recommendRuleMetadata'; export * from './recommendationsHit'; export * from './recommendationsHits'; export * from './recommendationsRequest'; @@ -60,8 +59,8 @@ export * from './recommendedForYou'; export * from './recommendedForYouModel'; export * from './recommendedForYouQuery'; export * from './redirect'; +export * from './redirectRuleIndexData'; export * from './redirectRuleIndexMetadata'; -export * from './redirectRuleIndexMetadataData'; export * from './redirectURL'; export * from './relatedModel'; export * from './relatedProducts'; @@ -69,6 +68,7 @@ export * from './relatedQuery'; export * from './removeStopWords'; export * from './removeWordsIfNoResults'; export * from './renderingContent'; +export * from './ruleMetadata'; export * from './searchPagination'; export * from './searchParams'; export * from './searchParamsObject'; diff --git a/packages/recommend/model/aroundPrecisionFromValueInner.ts b/packages/recommend/model/range.ts similarity index 92% rename from packages/recommend/model/aroundPrecisionFromValueInner.ts rename to packages/recommend/model/range.ts index c3850a800..780b75be7 100644 --- a/packages/recommend/model/aroundPrecisionFromValueInner.ts +++ b/packages/recommend/model/range.ts @@ -3,7 +3,7 @@ /** * Range object with lower and upper values in meters to define custom ranges. */ -export type AroundPrecisionFromValueInner = { +export type Range = { /** * Lower boundary of a range in meters. The Geo ranking criterion considers all records within the range to be equal. */ diff --git a/packages/recommend/model/recommendRule.ts b/packages/recommend/model/recommendRule.ts index 077a5fd0b..48e93d3e1 100644 --- a/packages/recommend/model/recommendRule.ts +++ b/packages/recommend/model/recommendRule.ts @@ -2,13 +2,13 @@ import type { Condition } from './condition'; import type { Consequence } from './consequence'; -import type { RecommendRuleMetadata } from './recommendRuleMetadata'; +import type { RuleMetadata } from './ruleMetadata'; /** * Recommend rule. */ export type RecommendRule = { - _metadata?: RecommendRuleMetadata; + _metadata?: RuleMetadata; /** * Unique identifier of a rule object. diff --git a/packages/recommend/model/redirectRuleIndexMetadataData.ts b/packages/recommend/model/redirectRuleIndexData.ts similarity index 83% rename from packages/recommend/model/redirectRuleIndexMetadataData.ts rename to packages/recommend/model/redirectRuleIndexData.ts index a7f9739ad..fbb7ea140 100644 --- a/packages/recommend/model/redirectRuleIndexMetadataData.ts +++ b/packages/recommend/model/redirectRuleIndexData.ts @@ -3,6 +3,6 @@ /** * Redirect rule data. */ -export type RedirectRuleIndexMetadataData = { +export type RedirectRuleIndexData = { ruleObjectID: string; }; diff --git a/packages/recommend/model/redirectRuleIndexMetadata.ts b/packages/recommend/model/redirectRuleIndexMetadata.ts index 3d69bb1b5..33802fc69 100644 --- a/packages/recommend/model/redirectRuleIndexMetadata.ts +++ b/packages/recommend/model/redirectRuleIndexMetadata.ts @@ -1,6 +1,6 @@ // 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. -import type { RedirectRuleIndexMetadataData } from './redirectRuleIndexMetadataData'; +import type { RedirectRuleIndexData } from './redirectRuleIndexData'; export type RedirectRuleIndexMetadata = { /** @@ -23,5 +23,5 @@ export type RedirectRuleIndexMetadata = { */ succeed: boolean; - data: RedirectRuleIndexMetadataData; + data: RedirectRuleIndexData; }; diff --git a/packages/recommend/model/recommendRuleMetadata.ts b/packages/recommend/model/ruleMetadata.ts similarity index 89% rename from packages/recommend/model/recommendRuleMetadata.ts rename to packages/recommend/model/ruleMetadata.ts index 58939f06a..89f28a7eb 100644 --- a/packages/recommend/model/recommendRuleMetadata.ts +++ b/packages/recommend/model/ruleMetadata.ts @@ -3,7 +3,7 @@ /** * Rule metadata. */ -export type RecommendRuleMetadata = { +export type RuleMetadata = { /** * Date and time when the object was updated, in RFC 3339 format. */