From c54b309cf019eea0b8c0a164ea7d006617dab65b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 23 Jul 2026 08:38:50 +0000 Subject: [PATCH] Update SDK to version v3.123.0 - Generated from OpenAPI spec version v3.123.0 - Auto-generated by GitHub Actions --- .sdk-version | 2 +- apis/CollectionsApi.ts | 4 ++-- apis/SearchApi.ts | 18 ++--------------- docs/CollectionsApi.md | 3 +-- docs/SearchApi.md | 6 +----- models/AppApiRestV2CollectionsEnumsOrderBy.ts | 1 - models/CollectionCreateRequest.ts | 7 ------- models/CollectionListItem.ts | 10 ---------- models/CollectionListItemBody.ts | 7 ------- models/CollectionResponse.ts | 10 ---------- models/CollectionSearchResult.ts | 20 ------------------- models/CreateCollectionInputBody.ts | 10 ---------- models/CreateCollectionOutputBody.ts | 7 ------- models/GetCollectionOutputBody.ts | 7 ------- models/ObjectSerializer.ts | 6 +++--- models/PatchCollectionOutputBody.ts | 7 ------- package.json | 2 +- types/ObjectParamAPI.ts | 15 ++++---------- types/ObservableAPI.ts | 14 ++++++------- types/PromiseAPI.ts | 14 ++++++------- 20 files changed, 27 insertions(+), 143 deletions(-) diff --git a/.sdk-version b/.sdk-version index 93bb0a9..3d5a70b 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v3.122.1 +v3.123.0 diff --git a/apis/CollectionsApi.ts b/apis/CollectionsApi.ts index a323901..443e39d 100644 --- a/apis/CollectionsApi.ts +++ b/apis/CollectionsApi.ts @@ -673,7 +673,7 @@ export class CollectionsApiRequestFactory extends BaseAPIRequestFactory { * @param orderBy * @param order */ - public async v3ListCollections(searchTerm?: string, filters?: Array<'official_only' | 'user_only' | 'team_only' | 'public_only' | 'hide_empty'>, limit?: number, offset?: number, orderBy?: 'created' | 'collection' | 'model' | 'collection_size' | 'updated' | 'owner', order?: 'ASC' | 'DESC', _options?: Configuration): Promise { + public async v3ListCollections(searchTerm?: string, filters?: Array<'official_only' | 'user_only' | 'team_only' | 'public_only' | 'hide_empty'>, limit?: number, offset?: number, orderBy?: 'created' | 'collection' | 'collection_size' | 'updated' | 'owner', order?: 'ASC' | 'DESC', _options?: Configuration): Promise { let _config = _options || this.configuration; @@ -711,7 +711,7 @@ export class CollectionsApiRequestFactory extends BaseAPIRequestFactory { // Query Params if (orderBy !== undefined) { - requestContext.setQueryParam("order_by", ObjectSerializer.serialize(orderBy, "'created' | 'collection' | 'model' | 'collection_size' | 'updated' | 'owner'", "")); + requestContext.setQueryParam("order_by", ObjectSerializer.serialize(orderBy, "'created' | 'collection' | 'collection_size' | 'updated' | 'owner'", "")); } // Query Params diff --git a/apis/SearchApi.ts b/apis/SearchApi.ts index 2242340..4143fc6 100644 --- a/apis/SearchApi.ts +++ b/apis/SearchApi.ts @@ -125,12 +125,11 @@ export class SearchApiRequestFactory extends BaseAPIRequestFactory { * @param partialBinaryName The partial or full name of the binary belonging to the collection * @param partialBinarySha256 The partial or full sha256 of the binary belonging to the collection * @param tags The tags to be searched for - * @param modelName The name of the model used to analyze the binary the function belongs to * @param filters The filters to be used for the search * @param orderBy The field to sort the order by in the results * @param orderByDirection The order direction in which to return results */ - public async searchCollections(page?: number, pageSize?: number, partialCollectionName?: string, partialBinaryName?: string, partialBinarySha256?: string, tags?: Array, modelName?: string, filters?: Array, orderBy?: AppApiRestV2CollectionsEnumsOrderBy, orderByDirection?: Order, _options?: Configuration): Promise { + public async searchCollections(page?: number, pageSize?: number, partialCollectionName?: string, partialBinaryName?: string, partialBinarySha256?: string, tags?: Array, filters?: Array, orderBy?: AppApiRestV2CollectionsEnumsOrderBy, orderByDirection?: Order, _options?: Configuration): Promise { let _config = _options || this.configuration; @@ -142,7 +141,6 @@ export class SearchApiRequestFactory extends BaseAPIRequestFactory { - // Path Params const localVarPath = '/v2/search/collections'; @@ -183,11 +181,6 @@ export class SearchApiRequestFactory extends BaseAPIRequestFactory { } } - // Query Params - if (modelName !== undefined) { - requestContext.setQueryParam("model_name", ObjectSerializer.serialize(modelName, "string", "")); - } - // Query Params if (filters !== undefined) { const serializedParams = ObjectSerializer.serialize(filters, "Array", ""); @@ -412,14 +405,7 @@ export class SearchApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "BaseResponse", "" ) as BaseResponse; - throw new ApiException(response.httpStatusCode, "You must provide at least one of the filters; partial_collection_name, partial_binary_name, partial_binary_sha256, tags or model_name to search", body, response.headers); - } - if (isCodeInRange("404", response.httpStatusCode)) { - const body: BaseResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "BaseResponse", "" - ) as BaseResponse; - throw new ApiException(response.httpStatusCode, "The model name provided does not exist", body, response.headers); + throw new ApiException(response.httpStatusCode, "You must provide at least one of the filters; partial_collection_name, partial_binary_name, partial_binary_sha256 or tags to search", body, response.headers); } // Work around for missing responses in specification, e.g. for petstore.yaml diff --git a/docs/CollectionsApi.md b/docs/CollectionsApi.md index c478e28..738e1d2 100644 --- a/docs/CollectionsApi.md +++ b/docs/CollectionsApi.md @@ -47,7 +47,6 @@ const request: CollectionsApiCreateCollectionRequest = { binaries: [ 1, ], - modelId: 1, }, }; @@ -692,7 +691,7 @@ Name | Type | Description | Notes **filters** | **Array<'official_only' | 'user_only' | 'team_only' | 'public_only' | 'hide_empty' | '11184809'>** | | (optional) defaults to undefined **limit** | [**number**] | | (optional) defaults to 20 **offset** | [**number**] | | (optional) defaults to 0 - **orderBy** | [**'created' | 'collection' | 'model' | 'collection_size' | 'updated' | 'owner'**]**Array<'created' | 'collection' | 'model' | 'collection_size' | 'updated' | 'owner' | '11184809'>** | | (optional) defaults to 'collection' + **orderBy** | [**'created' | 'collection' | 'collection_size' | 'updated' | 'owner'**]**Array<'created' | 'collection' | 'collection_size' | 'updated' | 'owner' | '11184809'>** | | (optional) defaults to 'collection' **order** | [**'ASC' | 'DESC'**]**Array<'ASC' | 'DESC' | '11184809'>** | | (optional) defaults to 'ASC' diff --git a/docs/SearchApi.md b/docs/SearchApi.md index fb0fd0b..bf4be1d 100644 --- a/docs/SearchApi.md +++ b/docs/SearchApi.md @@ -117,8 +117,6 @@ const request: SearchApiSearchCollectionsRequest = { tags: [ "tags_example", ], - // The name of the model used to analyze the binary the function belongs to (optional) - modelName: "model_name_example", // The filters to be used for the search (optional) filters: [ "official_only", @@ -144,7 +142,6 @@ Name | Type | Description | Notes **partialBinaryName** | [**string**] | The partial or full name of the binary belonging to the collection | (optional) defaults to undefined **partialBinarySha256** | [**string**] | The partial or full sha256 of the binary belonging to the collection | (optional) defaults to undefined **tags** | **Array<string>** | The tags to be searched for | (optional) defaults to undefined - **modelName** | [**string**] | The name of the model used to analyze the binary the function belongs to | (optional) defaults to undefined **filters** | **Array<Filters>** | The filters to be used for the search | (optional) defaults to undefined **orderBy** | **AppApiRestV2CollectionsEnumsOrderBy** | The field to sort the order by in the results | (optional) defaults to undefined **orderByDirection** | **Order** | The order direction in which to return results | (optional) defaults to undefined @@ -168,8 +165,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | -**422** | You must provide at least one of the filters; partial_collection_name, partial_binary_name, partial_binary_sha256, tags or model_name to search | - | -**404** | The model name provided does not exist | - | +**422** | You must provide at least one of the filters; partial_collection_name, partial_binary_name, partial_binary_sha256 or tags to search | - | [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) diff --git a/models/AppApiRestV2CollectionsEnumsOrderBy.ts b/models/AppApiRestV2CollectionsEnumsOrderBy.ts index e53f4cc..54a364d 100644 --- a/models/AppApiRestV2CollectionsEnumsOrderBy.ts +++ b/models/AppApiRestV2CollectionsEnumsOrderBy.ts @@ -14,7 +14,6 @@ import { HttpFile } from '../http/http'; export enum AppApiRestV2CollectionsEnumsOrderBy { Created = 'created', Collection = 'collection', - Model = 'model', Owner = 'owner', CollectionSize = 'collection_size', Updated = 'updated', diff --git a/models/CollectionCreateRequest.ts b/models/CollectionCreateRequest.ts index 15ec605..a3f4a8f 100644 --- a/models/CollectionCreateRequest.ts +++ b/models/CollectionCreateRequest.ts @@ -18,7 +18,6 @@ export class CollectionCreateRequest { 'collectionScope'?: CollectionScope; 'tags'?: Array | null; 'binaries'?: Array | null; - 'modelId': number; static readonly discriminator: string | undefined = undefined; @@ -54,12 +53,6 @@ export class CollectionCreateRequest { "baseName": "binaries", "type": "Array", "format": "" - }, - { - "name": "modelId", - "baseName": "model_id", - "type": "number", - "format": "" } ]; static getAttributeTypeMap() { diff --git a/models/CollectionListItem.ts b/models/CollectionListItem.ts index aba98c2..84b487f 100644 --- a/models/CollectionListItem.ts +++ b/models/CollectionListItem.ts @@ -48,10 +48,6 @@ export class CollectionListItem { * The datetime of when the collection was created */ 'creation': Date; - /** - * The model being used for the collection - */ - 'modelName': string; 'teamId'?: number | null; static readonly discriminator: string | undefined = undefined; @@ -113,12 +109,6 @@ export class CollectionListItem { "type": "Date", "format": "date-time" }, - { - "name": "modelName", - "baseName": "model_name", - "type": "string", - "format": "" - }, { "name": "teamId", "baseName": "team_id", diff --git a/models/CollectionListItemBody.ts b/models/CollectionListItemBody.ts index 2203f36..ac1a59f 100644 --- a/models/CollectionListItemBody.ts +++ b/models/CollectionListItemBody.ts @@ -20,7 +20,6 @@ export class CollectionListItemBody { 'collectionTags': Array | null; 'creation': Date; 'description': string; - 'modelName': string; 'officialCollection': boolean; 'teamId': number; 'updatedAt': Date; @@ -78,12 +77,6 @@ export class CollectionListItemBody { "type": "string", "format": "" }, - { - "name": "modelName", - "baseName": "model_name", - "type": "string", - "format": "" - }, { "name": "officialCollection", "baseName": "official_collection", diff --git a/models/CollectionResponse.ts b/models/CollectionResponse.ts index 1f634cb..f7f57e5 100644 --- a/models/CollectionResponse.ts +++ b/models/CollectionResponse.ts @@ -27,10 +27,6 @@ export class CollectionResponse { */ 'description': string; /** - * Collection model ID - */ - 'modelId': number; - /** * Collection user ID */ 'userId': number; @@ -73,12 +69,6 @@ export class CollectionResponse { "type": "string", "format": "" }, - { - "name": "modelId", - "baseName": "model_id", - "type": "number", - "format": "" - }, { "name": "userId", "baseName": "user_id", diff --git a/models/CollectionSearchResult.ts b/models/CollectionSearchResult.ts index 8deddfc..b1bdb99 100644 --- a/models/CollectionSearchResult.ts +++ b/models/CollectionSearchResult.ts @@ -33,14 +33,6 @@ export class CollectionSearchResult { */ 'createdAt': Date; /** - * The model ID of the binary - */ - 'modelId': number; - /** - * The name of the model - */ - 'modelName': string; - /** * The owner of the collection */ 'ownedBy': string; @@ -87,18 +79,6 @@ export class CollectionSearchResult { "type": "Date", "format": "date-time" }, - { - "name": "modelId", - "baseName": "model_id", - "type": "number", - "format": "" - }, - { - "name": "modelName", - "baseName": "model_name", - "type": "string", - "format": "" - }, { "name": "ownedBy", "baseName": "owned_by", diff --git a/models/CreateCollectionInputBody.ts b/models/CreateCollectionInputBody.ts index 510a980..c0f8d9f 100644 --- a/models/CreateCollectionInputBody.ts +++ b/models/CreateCollectionInputBody.ts @@ -29,10 +29,6 @@ export class CreateCollectionInputBody { */ 'description': string; /** - * Model ID the collection is associated with. - */ - 'modelId': number; - /** * Optional tags to attach to the collection. */ 'tags'?: Array | null; @@ -66,12 +62,6 @@ export class CreateCollectionInputBody { "type": "string", "format": "" }, - { - "name": "modelId", - "baseName": "model_id", - "type": "number", - "format": "int64" - }, { "name": "tags", "baseName": "tags", diff --git a/models/CreateCollectionOutputBody.ts b/models/CreateCollectionOutputBody.ts index 8901158..bd53471 100644 --- a/models/CreateCollectionOutputBody.ts +++ b/models/CreateCollectionOutputBody.ts @@ -19,7 +19,6 @@ export class CreateCollectionOutputBody { 'collectionScope': string; 'createdAt': Date; 'description': string; - 'modelId': number; 'tags'?: Array | null; 'teamId': number; 'updatedAt': Date; @@ -66,12 +65,6 @@ export class CreateCollectionOutputBody { "type": "string", "format": "" }, - { - "name": "modelId", - "baseName": "model_id", - "type": "number", - "format": "int64" - }, { "name": "tags", "baseName": "tags", diff --git a/models/GetCollectionOutputBody.ts b/models/GetCollectionOutputBody.ts index 113cee0..b815407 100644 --- a/models/GetCollectionOutputBody.ts +++ b/models/GetCollectionOutputBody.ts @@ -20,7 +20,6 @@ export class GetCollectionOutputBody { 'createdAt': Date; 'description': string; 'hasNextPage'?: boolean; - 'modelId': number; 'pageNumber'?: number; 'pageSize'?: number; 'tags'?: Array | null; @@ -75,12 +74,6 @@ export class GetCollectionOutputBody { "type": "boolean", "format": "" }, - { - "name": "modelId", - "baseName": "model_id", - "type": "number", - "format": "int64" - }, { "name": "pageNumber", "baseName": "page_number", diff --git a/models/ObjectSerializer.ts b/models/ObjectSerializer.ts index 918be29..6935369 100644 --- a/models/ObjectSerializer.ts +++ b/models/ObjectSerializer.ts @@ -667,10 +667,10 @@ import { CodeSignatureModel } from '../models/CodeSignatureModel'; import { CollectionBinariesUpdateRequest } from '../models/CollectionBinariesUpdateRequest'; import { CollectionBinariesUpdateResponse } from '../models/CollectionBinariesUpdateResponse'; import { CollectionBinaryResponse } from '../models/CollectionBinaryResponse'; -import { CollectionCreateRequest } from '../models/CollectionCreateRequest'; +import { CollectionCreateRequest } from '../models/CollectionCreateRequest'; import { CollectionListItem } from '../models/CollectionListItem'; import { CollectionListItemBody } from '../models/CollectionListItemBody'; -import { CollectionResponse } from '../models/CollectionResponse'; +import { CollectionResponse } from '../models/CollectionResponse'; import { CollectionResponseBinariesInner } from '../models/CollectionResponseBinariesInner'; import { CollectionScope } from '../models/CollectionScope'; import { CollectionSearchResponse } from '../models/CollectionSearchResponse'; @@ -692,7 +692,7 @@ import { ConversationContext } from '../models/ConversationContext'; import { ConversationWithEvents } from '../models/ConversationWithEvents'; import { CreateAIDecompOutputBody } from '../models/CreateAIDecompOutputBody'; import { CreateCheckoutSessionInputBody } from '../models/CreateCheckoutSessionInputBody'; -import { CreateCollectionInputBody , CreateCollectionInputBodyCollectionScopeEnum } from '../models/CreateCollectionInputBody'; +import { CreateCollectionInputBody , CreateCollectionInputBodyCollectionScopeEnum } from '../models/CreateCollectionInputBody'; import { CreateCollectionOutputBody } from '../models/CreateCollectionOutputBody'; import { CreateConversationRequest } from '../models/CreateConversationRequest'; import { CreateGroupInputBody } from '../models/CreateGroupInputBody'; diff --git a/models/PatchCollectionOutputBody.ts b/models/PatchCollectionOutputBody.ts index 5e414fa..4511598 100644 --- a/models/PatchCollectionOutputBody.ts +++ b/models/PatchCollectionOutputBody.ts @@ -18,7 +18,6 @@ export class PatchCollectionOutputBody { 'collectionScope': string; 'createdAt': Date; 'description': string; - 'modelId': number; 'teamId': number; 'updatedAt': Date; 'userId': number; @@ -64,12 +63,6 @@ export class PatchCollectionOutputBody { "type": "string", "format": "" }, - { - "name": "modelId", - "baseName": "model_id", - "type": "number", - "format": "int64" - }, { "name": "teamId", "baseName": "team_id", diff --git a/package.json b/package.json index c99e26f..80ecb7b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@revengai/sdk", - "version": "3.122.1", + "version": "3.123.0", "description": "TypeScript SDK for the RevEng.AI API", "author": "RevEng.AI", "repository": { diff --git a/types/ObjectParamAPI.ts b/types/ObjectParamAPI.ts index c649ec3..30f36e5 100644 --- a/types/ObjectParamAPI.ts +++ b/types/ObjectParamAPI.ts @@ -2975,10 +2975,10 @@ export interface CollectionsApiV3ListCollectionsRequest { /** * * Defaults to: 'collection' - * @type 'created' | 'collection' | 'model' | 'collection_size' | 'updated' | 'owner' + * @type 'created' | 'collection' | 'collection_size' | 'updated' | 'owner' * @memberof CollectionsApiv3ListCollections */ - orderBy?: 'created' | 'collection' | 'model' | 'collection_size' | 'updated' | 'owner' + orderBy?: 'created' | 'collection' | 'collection_size' | 'updated' | 'owner' /** * * Defaults to: 'ASC' @@ -5961,13 +5961,6 @@ export interface SearchApiSearchCollectionsRequest { * @memberof SearchApisearchCollections */ tags?: Array - /** - * The name of the model used to analyze the binary the function belongs to - * Defaults to: undefined - * @type string - * @memberof SearchApisearchCollections - */ - modelName?: string /** * The filters to be used for the search * Defaults to: undefined @@ -6083,7 +6076,7 @@ export class ObjectSearchApi { * @param param the request object */ public searchCollectionsWithHttpInfo(param: SearchApiSearchCollectionsRequest = {}, options?: ConfigurationOptions): Promise> { - return this.api.searchCollectionsWithHttpInfo(param.page, param.pageSize, param.partialCollectionName, param.partialBinaryName, param.partialBinarySha256, param.tags, param.modelName, param.filters, param.orderBy, param.orderByDirection, options).toPromise(); + return this.api.searchCollectionsWithHttpInfo(param.page, param.pageSize, param.partialCollectionName, param.partialBinaryName, param.partialBinarySha256, param.tags, param.filters, param.orderBy, param.orderByDirection, options).toPromise(); } /** @@ -6092,7 +6085,7 @@ export class ObjectSearchApi { * @param param the request object */ public searchCollections(param: SearchApiSearchCollectionsRequest = {}, options?: ConfigurationOptions): Promise { - return this.api.searchCollections(param.page, param.pageSize, param.partialCollectionName, param.partialBinaryName, param.partialBinarySha256, param.tags, param.modelName, param.filters, param.orderBy, param.orderByDirection, options).toPromise(); + return this.api.searchCollections(param.page, param.pageSize, param.partialCollectionName, param.partialBinaryName, param.partialBinarySha256, param.tags, param.filters, param.orderBy, param.orderByDirection, options).toPromise(); } /** diff --git a/types/ObservableAPI.ts b/types/ObservableAPI.ts index 159ac52..86f8cd6 100644 --- a/types/ObservableAPI.ts +++ b/types/ObservableAPI.ts @@ -3256,7 +3256,7 @@ export class ObservableCollectionsApi { * @param [orderBy] * @param [order] */ - public v3ListCollectionsWithHttpInfo(searchTerm?: string, filters?: Array<'official_only' | 'user_only' | 'team_only' | 'public_only' | 'hide_empty'>, limit?: number, offset?: number, orderBy?: 'created' | 'collection' | 'model' | 'collection_size' | 'updated' | 'owner', order?: 'ASC' | 'DESC', _options?: ConfigurationOptions): Observable> { + public v3ListCollectionsWithHttpInfo(searchTerm?: string, filters?: Array<'official_only' | 'user_only' | 'team_only' | 'public_only' | 'hide_empty'>, limit?: number, offset?: number, orderBy?: 'created' | 'collection' | 'collection_size' | 'updated' | 'owner', order?: 'ASC' | 'DESC', _options?: ConfigurationOptions): Observable> { const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.v3ListCollections(searchTerm, filters, limit, offset, orderBy, order, _config); @@ -3286,7 +3286,7 @@ export class ObservableCollectionsApi { * @param [orderBy] * @param [order] */ - public v3ListCollections(searchTerm?: string, filters?: Array<'official_only' | 'user_only' | 'team_only' | 'public_only' | 'hide_empty'>, limit?: number, offset?: number, orderBy?: 'created' | 'collection' | 'model' | 'collection_size' | 'updated' | 'owner', order?: 'ASC' | 'DESC', _options?: ConfigurationOptions): Observable { + public v3ListCollections(searchTerm?: string, filters?: Array<'official_only' | 'user_only' | 'team_only' | 'public_only' | 'hide_empty'>, limit?: number, offset?: number, orderBy?: 'created' | 'collection' | 'collection_size' | 'updated' | 'owner', order?: 'ASC' | 'DESC', _options?: ConfigurationOptions): Observable { return this.v3ListCollectionsWithHttpInfo(searchTerm, filters, limit, offset, orderBy, order, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -6313,15 +6313,14 @@ export class ObservableSearchApi { * @param [partialBinaryName] The partial or full name of the binary belonging to the collection * @param [partialBinarySha256] The partial or full sha256 of the binary belonging to the collection * @param [tags] The tags to be searched for - * @param [modelName] The name of the model used to analyze the binary the function belongs to * @param [filters] The filters to be used for the search * @param [orderBy] The field to sort the order by in the results * @param [orderByDirection] The order direction in which to return results */ - public searchCollectionsWithHttpInfo(page?: number, pageSize?: number, partialCollectionName?: string, partialBinaryName?: string, partialBinarySha256?: string, tags?: Array, modelName?: string, filters?: Array, orderBy?: AppApiRestV2CollectionsEnumsOrderBy, orderByDirection?: Order, _options?: ConfigurationOptions): Observable> { + public searchCollectionsWithHttpInfo(page?: number, pageSize?: number, partialCollectionName?: string, partialBinaryName?: string, partialBinarySha256?: string, tags?: Array, filters?: Array, orderBy?: AppApiRestV2CollectionsEnumsOrderBy, orderByDirection?: Order, _options?: ConfigurationOptions): Observable> { const _config = mergeConfiguration(this.configuration, _options); - const requestContextPromise = this.requestFactory.searchCollections(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, modelName, filters, orderBy, orderByDirection, _config); + const requestContextPromise = this.requestFactory.searchCollections(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, filters, orderBy, orderByDirection, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); for (const middleware of _config.middleware) { @@ -6347,13 +6346,12 @@ export class ObservableSearchApi { * @param [partialBinaryName] The partial or full name of the binary belonging to the collection * @param [partialBinarySha256] The partial or full sha256 of the binary belonging to the collection * @param [tags] The tags to be searched for - * @param [modelName] The name of the model used to analyze the binary the function belongs to * @param [filters] The filters to be used for the search * @param [orderBy] The field to sort the order by in the results * @param [orderByDirection] The order direction in which to return results */ - public searchCollections(page?: number, pageSize?: number, partialCollectionName?: string, partialBinaryName?: string, partialBinarySha256?: string, tags?: Array, modelName?: string, filters?: Array, orderBy?: AppApiRestV2CollectionsEnumsOrderBy, orderByDirection?: Order, _options?: ConfigurationOptions): Observable { - return this.searchCollectionsWithHttpInfo(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, modelName, filters, orderBy, orderByDirection, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + public searchCollections(page?: number, pageSize?: number, partialCollectionName?: string, partialBinaryName?: string, partialBinarySha256?: string, tags?: Array, filters?: Array, orderBy?: AppApiRestV2CollectionsEnumsOrderBy, orderByDirection?: Order, _options?: ConfigurationOptions): Observable { + return this.searchCollectionsWithHttpInfo(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, filters, orderBy, orderByDirection, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** diff --git a/types/PromiseAPI.ts b/types/PromiseAPI.ts index b7be06c..1d532c4 100644 --- a/types/PromiseAPI.ts +++ b/types/PromiseAPI.ts @@ -2384,7 +2384,7 @@ export class PromiseCollectionsApi { * @param [orderBy] * @param [order] */ - public v3ListCollectionsWithHttpInfo(searchTerm?: string, filters?: Array<'official_only' | 'user_only' | 'team_only' | 'public_only' | 'hide_empty'>, limit?: number, offset?: number, orderBy?: 'created' | 'collection' | 'model' | 'collection_size' | 'updated' | 'owner', order?: 'ASC' | 'DESC', _options?: PromiseConfigurationOptions): Promise> { + public v3ListCollectionsWithHttpInfo(searchTerm?: string, filters?: Array<'official_only' | 'user_only' | 'team_only' | 'public_only' | 'hide_empty'>, limit?: number, offset?: number, orderBy?: 'created' | 'collection' | 'collection_size' | 'updated' | 'owner', order?: 'ASC' | 'DESC', _options?: PromiseConfigurationOptions): Promise> { const observableOptions = wrapOptions(_options); const result = this.api.v3ListCollectionsWithHttpInfo(searchTerm, filters, limit, offset, orderBy, order, observableOptions); return result.toPromise(); @@ -2400,7 +2400,7 @@ export class PromiseCollectionsApi { * @param [orderBy] * @param [order] */ - public v3ListCollections(searchTerm?: string, filters?: Array<'official_only' | 'user_only' | 'team_only' | 'public_only' | 'hide_empty'>, limit?: number, offset?: number, orderBy?: 'created' | 'collection' | 'model' | 'collection_size' | 'updated' | 'owner', order?: 'ASC' | 'DESC', _options?: PromiseConfigurationOptions): Promise { + public v3ListCollections(searchTerm?: string, filters?: Array<'official_only' | 'user_only' | 'team_only' | 'public_only' | 'hide_empty'>, limit?: number, offset?: number, orderBy?: 'created' | 'collection' | 'collection_size' | 'updated' | 'owner', order?: 'ASC' | 'DESC', _options?: PromiseConfigurationOptions): Promise { const observableOptions = wrapOptions(_options); const result = this.api.v3ListCollections(searchTerm, filters, limit, offset, orderBy, order, observableOptions); return result.toPromise(); @@ -4481,14 +4481,13 @@ export class PromiseSearchApi { * @param [partialBinaryName] The partial or full name of the binary belonging to the collection * @param [partialBinarySha256] The partial or full sha256 of the binary belonging to the collection * @param [tags] The tags to be searched for - * @param [modelName] The name of the model used to analyze the binary the function belongs to * @param [filters] The filters to be used for the search * @param [orderBy] The field to sort the order by in the results * @param [orderByDirection] The order direction in which to return results */ - public searchCollectionsWithHttpInfo(page?: number, pageSize?: number, partialCollectionName?: string, partialBinaryName?: string, partialBinarySha256?: string, tags?: Array, modelName?: string, filters?: Array, orderBy?: AppApiRestV2CollectionsEnumsOrderBy, orderByDirection?: Order, _options?: PromiseConfigurationOptions): Promise> { + public searchCollectionsWithHttpInfo(page?: number, pageSize?: number, partialCollectionName?: string, partialBinaryName?: string, partialBinarySha256?: string, tags?: Array, filters?: Array, orderBy?: AppApiRestV2CollectionsEnumsOrderBy, orderByDirection?: Order, _options?: PromiseConfigurationOptions): Promise> { const observableOptions = wrapOptions(_options); - const result = this.api.searchCollectionsWithHttpInfo(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, modelName, filters, orderBy, orderByDirection, observableOptions); + const result = this.api.searchCollectionsWithHttpInfo(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, filters, orderBy, orderByDirection, observableOptions); return result.toPromise(); } @@ -4501,14 +4500,13 @@ export class PromiseSearchApi { * @param [partialBinaryName] The partial or full name of the binary belonging to the collection * @param [partialBinarySha256] The partial or full sha256 of the binary belonging to the collection * @param [tags] The tags to be searched for - * @param [modelName] The name of the model used to analyze the binary the function belongs to * @param [filters] The filters to be used for the search * @param [orderBy] The field to sort the order by in the results * @param [orderByDirection] The order direction in which to return results */ - public searchCollections(page?: number, pageSize?: number, partialCollectionName?: string, partialBinaryName?: string, partialBinarySha256?: string, tags?: Array, modelName?: string, filters?: Array, orderBy?: AppApiRestV2CollectionsEnumsOrderBy, orderByDirection?: Order, _options?: PromiseConfigurationOptions): Promise { + public searchCollections(page?: number, pageSize?: number, partialCollectionName?: string, partialBinaryName?: string, partialBinarySha256?: string, tags?: Array, filters?: Array, orderBy?: AppApiRestV2CollectionsEnumsOrderBy, orderByDirection?: Order, _options?: PromiseConfigurationOptions): Promise { const observableOptions = wrapOptions(_options); - const result = this.api.searchCollections(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, modelName, filters, orderBy, orderByDirection, observableOptions); + const result = this.api.searchCollections(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, filters, orderBy, orderByDirection, observableOptions); return result.toPromise(); }