From 8251dffabe2d8ff0be43cd55cae9d5149735ef25 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 24 Jul 2026 08:37:51 +0000 Subject: [PATCH] Update SDK to version v3.124.0 - Generated from OpenAPI spec version v3.124.0 - Auto-generated by GitHub Actions --- .sdk-version | 2 +- apis/SearchApi.ts | 24 ++++++++++++++++++++++-- docs/SearchApi.md | 10 ++++++++++ models/Permissions.ts | 7 +++++++ package.json | 2 +- types/ObjectParamAPI.ts | 22 ++++++++++++++++++---- types/ObservableAPI.ts | 20 ++++++++++++-------- types/PromiseAPI.ts | 20 ++++++++++++-------- 8 files changed, 83 insertions(+), 24 deletions(-) diff --git a/.sdk-version b/.sdk-version index 3d5a70b..3a1a0ae 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v3.123.0 +v3.124.0 diff --git a/apis/SearchApi.ts b/apis/SearchApi.ts index 4143fc6..c5b0ae9 100644 --- a/apis/SearchApi.ts +++ b/apis/SearchApi.ts @@ -33,8 +33,9 @@ export class SearchApiRequestFactory extends BaseAPIRequestFactory { * @param modelName The name of the model used to analyze the binary the function belongs to * @param userFilesOnly Whether to only search user\'s uploaded files * @param excludeBinaryId A binary ID to exclude from the results + * @param userIds Restrict the search to binaries owned by these user IDs */ - public async searchBinaries(page?: number, pageSize?: number, partialName?: string, partialSha256?: string, tags?: Array, modelName?: string, userFilesOnly?: boolean, excludeBinaryId?: number, _options?: Configuration): Promise { + public async searchBinaries(page?: number, pageSize?: number, partialName?: string, partialSha256?: string, tags?: Array, modelName?: string, userFilesOnly?: boolean, excludeBinaryId?: number, userIds?: Array, _options?: Configuration): Promise { let _config = _options || this.configuration; @@ -45,6 +46,7 @@ export class SearchApiRequestFactory extends BaseAPIRequestFactory { + // Path Params const localVarPath = '/v2/search/binaries'; @@ -95,6 +97,14 @@ export class SearchApiRequestFactory extends BaseAPIRequestFactory { requestContext.setQueryParam("exclude_binary_id", ObjectSerializer.serialize(excludeBinaryId, "number", "")); } + // Query Params + if (userIds !== undefined) { + const serializedParams = ObjectSerializer.serialize(userIds, "Array", ""); + for (const serializedParam of serializedParams) { + requestContext.appendQueryParam("user_ids", serializedParam); + } + } + let authMethod: SecurityAuthentication | undefined; // Apply auth methods @@ -128,8 +138,9 @@ export class SearchApiRequestFactory extends BaseAPIRequestFactory { * @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 + * @param userIds Restrict the search to collections owned by these user IDs */ - public async searchCollections(page?: number, pageSize?: number, partialCollectionName?: string, partialBinaryName?: string, partialBinarySha256?: string, tags?: Array, 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, userIds?: Array, _options?: Configuration): Promise { let _config = _options || this.configuration; @@ -141,6 +152,7 @@ export class SearchApiRequestFactory extends BaseAPIRequestFactory { + // Path Params const localVarPath = '/v2/search/collections'; @@ -199,6 +211,14 @@ export class SearchApiRequestFactory extends BaseAPIRequestFactory { requestContext.setQueryParam("order_by_direction", ObjectSerializer.serialize(orderByDirection, "Order", "")); } + // Query Params + if (userIds !== undefined) { + const serializedParams = ObjectSerializer.serialize(userIds, "Array", ""); + for (const serializedParam of serializedParams) { + requestContext.appendQueryParam("user_ids", serializedParam); + } + } + let authMethod: SecurityAuthentication | undefined; // Apply auth methods diff --git a/docs/SearchApi.md b/docs/SearchApi.md index bf4be1d..40e6a37 100644 --- a/docs/SearchApi.md +++ b/docs/SearchApi.md @@ -44,6 +44,10 @@ const request: SearchApiSearchBinariesRequest = { userFilesOnly: false, // A binary ID to exclude from the results (optional) excludeBinaryId: 1, + // Restrict the search to binaries owned by these user IDs (optional) + userIds: [ + 1, + ], }; const data = await apiInstance.searchBinaries(request); @@ -63,6 +67,7 @@ Name | Type | Description | Notes **modelName** | [**string**] | The name of the model used to analyze the binary the function belongs to | (optional) defaults to undefined **userFilesOnly** | [**boolean**] | Whether to only search user\'s uploaded files | (optional) defaults to false **excludeBinaryId** | [**number**] | A binary ID to exclude from the results | (optional) defaults to undefined + **userIds** | **Array<number>** | Restrict the search to binaries owned by these user IDs | (optional) defaults to undefined ### Return type @@ -125,6 +130,10 @@ const request: SearchApiSearchCollectionsRequest = { orderBy: "created", // The order direction in which to return results (optional) orderByDirection: "ASC", + // Restrict the search to collections owned by these user IDs (optional) + userIds: [ + 1, + ], }; const data = await apiInstance.searchCollections(request); @@ -145,6 +154,7 @@ Name | Type | Description | Notes **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 + **userIds** | **Array<number>** | Restrict the search to collections owned by these user IDs | (optional) defaults to undefined ### Return type diff --git a/models/Permissions.ts b/models/Permissions.ts index 0372bfb..45a1359 100644 --- a/models/Permissions.ts +++ b/models/Permissions.ts @@ -15,6 +15,7 @@ export class Permissions { 'canExportSymbols': boolean; 'canGeneratePdfReports': boolean; 'canUseAiMalwareAnalysis': boolean; + 'canUseCompositionAnalysis': boolean; 'canUseMalwareSandbox': boolean; 'canUsePrivateAnalyses': boolean; @@ -41,6 +42,12 @@ export class Permissions { "type": "boolean", "format": "" }, + { + "name": "canUseCompositionAnalysis", + "baseName": "can_use_composition_analysis", + "type": "boolean", + "format": "" + }, { "name": "canUseMalwareSandbox", "baseName": "can_use_malware_sandbox", diff --git a/package.json b/package.json index 80ecb7b..dc3a728 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@revengai/sdk", - "version": "3.123.0", + "version": "3.124.0", "description": "TypeScript SDK for the RevEng.AI API", "author": "RevEng.AI", "repository": { diff --git a/types/ObjectParamAPI.ts b/types/ObjectParamAPI.ts index 30f36e5..a95825d 100644 --- a/types/ObjectParamAPI.ts +++ b/types/ObjectParamAPI.ts @@ -5913,6 +5913,13 @@ export interface SearchApiSearchBinariesRequest { * @memberof SearchApisearchBinaries */ excludeBinaryId?: number + /** + * Restrict the search to binaries owned by these user IDs + * Defaults to: undefined + * @type Array<number> + * @memberof SearchApisearchBinaries + */ + userIds?: Array } export interface SearchApiSearchCollectionsRequest { @@ -5982,6 +5989,13 @@ export interface SearchApiSearchCollectionsRequest { * @memberof SearchApisearchCollections */ orderByDirection?: Order + /** + * Restrict the search to collections owned by these user IDs + * Defaults to: undefined + * @type Array<number> + * @memberof SearchApisearchCollections + */ + userIds?: Array } export interface SearchApiSearchFunctionsRequest { @@ -6058,7 +6072,7 @@ export class ObjectSearchApi { * @param param the request object */ public searchBinariesWithHttpInfo(param: SearchApiSearchBinariesRequest = {}, options?: ConfigurationOptions): Promise> { - return this.api.searchBinariesWithHttpInfo(param.page, param.pageSize, param.partialName, param.partialSha256, param.tags, param.modelName, param.userFilesOnly, param.excludeBinaryId, options).toPromise(); + return this.api.searchBinariesWithHttpInfo(param.page, param.pageSize, param.partialName, param.partialSha256, param.tags, param.modelName, param.userFilesOnly, param.excludeBinaryId, param.userIds, options).toPromise(); } /** @@ -6067,7 +6081,7 @@ export class ObjectSearchApi { * @param param the request object */ public searchBinaries(param: SearchApiSearchBinariesRequest = {}, options?: ConfigurationOptions): Promise { - return this.api.searchBinaries(param.page, param.pageSize, param.partialName, param.partialSha256, param.tags, param.modelName, param.userFilesOnly, param.excludeBinaryId, options).toPromise(); + return this.api.searchBinaries(param.page, param.pageSize, param.partialName, param.partialSha256, param.tags, param.modelName, param.userFilesOnly, param.excludeBinaryId, param.userIds, options).toPromise(); } /** @@ -6076,7 +6090,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.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, param.userIds, options).toPromise(); } /** @@ -6085,7 +6099,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.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, param.userIds, options).toPromise(); } /** diff --git a/types/ObservableAPI.ts b/types/ObservableAPI.ts index 86f8cd6..a511fb5 100644 --- a/types/ObservableAPI.ts +++ b/types/ObservableAPI.ts @@ -6267,11 +6267,12 @@ export class ObservableSearchApi { * @param [modelName] The name of the model used to analyze the binary the function belongs to * @param [userFilesOnly] Whether to only search user\'s uploaded files * @param [excludeBinaryId] A binary ID to exclude from the results + * @param [userIds] Restrict the search to binaries owned by these user IDs */ - public searchBinariesWithHttpInfo(page?: number, pageSize?: number, partialName?: string, partialSha256?: string, tags?: Array, modelName?: string, userFilesOnly?: boolean, excludeBinaryId?: number, _options?: ConfigurationOptions): Observable> { + public searchBinariesWithHttpInfo(page?: number, pageSize?: number, partialName?: string, partialSha256?: string, tags?: Array, modelName?: string, userFilesOnly?: boolean, excludeBinaryId?: number, userIds?: Array, _options?: ConfigurationOptions): Observable> { const _config = mergeConfiguration(this.configuration, _options); - const requestContextPromise = this.requestFactory.searchBinaries(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly, excludeBinaryId, _config); + const requestContextPromise = this.requestFactory.searchBinaries(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly, excludeBinaryId, userIds, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); for (const middleware of _config.middleware) { @@ -6299,9 +6300,10 @@ export class ObservableSearchApi { * @param [modelName] The name of the model used to analyze the binary the function belongs to * @param [userFilesOnly] Whether to only search user\'s uploaded files * @param [excludeBinaryId] A binary ID to exclude from the results + * @param [userIds] Restrict the search to binaries owned by these user IDs */ - public searchBinaries(page?: number, pageSize?: number, partialName?: string, partialSha256?: string, tags?: Array, modelName?: string, userFilesOnly?: boolean, excludeBinaryId?: number, _options?: ConfigurationOptions): Observable { - return this.searchBinariesWithHttpInfo(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly, excludeBinaryId, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + public searchBinaries(page?: number, pageSize?: number, partialName?: string, partialSha256?: string, tags?: Array, modelName?: string, userFilesOnly?: boolean, excludeBinaryId?: number, userIds?: Array, _options?: ConfigurationOptions): Observable { + return this.searchBinariesWithHttpInfo(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly, excludeBinaryId, userIds, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** @@ -6316,11 +6318,12 @@ export class ObservableSearchApi { * @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 + * @param [userIds] Restrict the search to collections owned by these user IDs */ - public searchCollectionsWithHttpInfo(page?: number, pageSize?: number, partialCollectionName?: string, partialBinaryName?: string, partialBinarySha256?: string, tags?: Array, 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, userIds?: Array, _options?: ConfigurationOptions): Observable> { const _config = mergeConfiguration(this.configuration, _options); - const requestContextPromise = this.requestFactory.searchCollections(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, filters, orderBy, orderByDirection, _config); + const requestContextPromise = this.requestFactory.searchCollections(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, filters, orderBy, orderByDirection, userIds, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); for (const middleware of _config.middleware) { @@ -6349,9 +6352,10 @@ export class ObservableSearchApi { * @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 + * @param [userIds] Restrict the search to collections owned by these user IDs */ - 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)); + public searchCollections(page?: number, pageSize?: number, partialCollectionName?: string, partialBinaryName?: string, partialBinarySha256?: string, tags?: Array, filters?: Array, orderBy?: AppApiRestV2CollectionsEnumsOrderBy, orderByDirection?: Order, userIds?: Array, _options?: ConfigurationOptions): Observable { + return this.searchCollectionsWithHttpInfo(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, filters, orderBy, orderByDirection, userIds, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** diff --git a/types/PromiseAPI.ts b/types/PromiseAPI.ts index 1d532c4..7330555 100644 --- a/types/PromiseAPI.ts +++ b/types/PromiseAPI.ts @@ -4447,10 +4447,11 @@ export class PromiseSearchApi { * @param [modelName] The name of the model used to analyze the binary the function belongs to * @param [userFilesOnly] Whether to only search user\'s uploaded files * @param [excludeBinaryId] A binary ID to exclude from the results + * @param [userIds] Restrict the search to binaries owned by these user IDs */ - public searchBinariesWithHttpInfo(page?: number, pageSize?: number, partialName?: string, partialSha256?: string, tags?: Array, modelName?: string, userFilesOnly?: boolean, excludeBinaryId?: number, _options?: PromiseConfigurationOptions): Promise> { + public searchBinariesWithHttpInfo(page?: number, pageSize?: number, partialName?: string, partialSha256?: string, tags?: Array, modelName?: string, userFilesOnly?: boolean, excludeBinaryId?: number, userIds?: Array, _options?: PromiseConfigurationOptions): Promise> { const observableOptions = wrapOptions(_options); - const result = this.api.searchBinariesWithHttpInfo(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly, excludeBinaryId, observableOptions); + const result = this.api.searchBinariesWithHttpInfo(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly, excludeBinaryId, userIds, observableOptions); return result.toPromise(); } @@ -4465,10 +4466,11 @@ export class PromiseSearchApi { * @param [modelName] The name of the model used to analyze the binary the function belongs to * @param [userFilesOnly] Whether to only search user\'s uploaded files * @param [excludeBinaryId] A binary ID to exclude from the results + * @param [userIds] Restrict the search to binaries owned by these user IDs */ - public searchBinaries(page?: number, pageSize?: number, partialName?: string, partialSha256?: string, tags?: Array, modelName?: string, userFilesOnly?: boolean, excludeBinaryId?: number, _options?: PromiseConfigurationOptions): Promise { + public searchBinaries(page?: number, pageSize?: number, partialName?: string, partialSha256?: string, tags?: Array, modelName?: string, userFilesOnly?: boolean, excludeBinaryId?: number, userIds?: Array, _options?: PromiseConfigurationOptions): Promise { const observableOptions = wrapOptions(_options); - const result = this.api.searchBinaries(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly, excludeBinaryId, observableOptions); + const result = this.api.searchBinaries(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly, excludeBinaryId, userIds, observableOptions); return result.toPromise(); } @@ -4484,10 +4486,11 @@ export class PromiseSearchApi { * @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 + * @param [userIds] Restrict the search to collections owned by these user IDs */ - public searchCollectionsWithHttpInfo(page?: number, pageSize?: number, partialCollectionName?: string, partialBinaryName?: string, partialBinarySha256?: string, tags?: Array, 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, userIds?: Array, _options?: PromiseConfigurationOptions): Promise> { const observableOptions = wrapOptions(_options); - const result = this.api.searchCollectionsWithHttpInfo(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, filters, orderBy, orderByDirection, observableOptions); + const result = this.api.searchCollectionsWithHttpInfo(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, filters, orderBy, orderByDirection, userIds, observableOptions); return result.toPromise(); } @@ -4503,10 +4506,11 @@ export class PromiseSearchApi { * @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 + * @param [userIds] Restrict the search to collections owned by these user IDs */ - public searchCollections(page?: number, pageSize?: number, partialCollectionName?: string, partialBinaryName?: string, partialBinarySha256?: string, tags?: Array, 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, userIds?: Array, _options?: PromiseConfigurationOptions): Promise { const observableOptions = wrapOptions(_options); - const result = this.api.searchCollections(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, filters, orderBy, orderByDirection, observableOptions); + const result = this.api.searchCollections(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, filters, orderBy, orderByDirection, userIds, observableOptions); return result.toPromise(); }