Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .sdk-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.122.1
v3.123.0
4 changes: 2 additions & 2 deletions apis/CollectionsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<RequestContext> {
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<RequestContext> {
let _config = _options || this.configuration;


Expand Down Expand Up @@ -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
Expand Down
18 changes: 2 additions & 16 deletions apis/SearchApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>, modelName?: string, filters?: Array<Filters>, orderBy?: AppApiRestV2CollectionsEnumsOrderBy, orderByDirection?: Order, _options?: Configuration): Promise<RequestContext> {
public async searchCollections(page?: number, pageSize?: number, partialCollectionName?: string, partialBinaryName?: string, partialBinarySha256?: string, tags?: Array<string>, filters?: Array<Filters>, orderBy?: AppApiRestV2CollectionsEnumsOrderBy, orderByDirection?: Order, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;


Expand All @@ -142,7 +141,6 @@ export class SearchApiRequestFactory extends BaseAPIRequestFactory {




// Path Params
const localVarPath = '/v2/search/collections';

Expand Down Expand Up @@ -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<Filters>", "");
Expand Down Expand Up @@ -412,14 +405,7 @@ export class SearchApiResponseProcessor {
ObjectSerializer.parse(await response.body.text(), contentType),
"BaseResponse", ""
) as BaseResponse;
throw new ApiException<BaseResponse>(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<BaseResponse>(response.httpStatusCode, "The model name provided does not exist", body, response.headers);
throw new ApiException<BaseResponse>(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
Expand Down
3 changes: 1 addition & 2 deletions docs/CollectionsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ const request: CollectionsApiCreateCollectionRequest = {
binaries: [
1,
],
modelId: 1,
},
};

Expand Down Expand Up @@ -692,7 +691,7 @@ Name | Type | Description | Notes
**filters** | **Array<&#39;official_only&#39; &#124; &#39;user_only&#39; &#124; &#39;team_only&#39; &#124; &#39;public_only&#39; &#124; &#39;hide_empty&#39; &#124; &#39;11184809&#39;>** | | (optional) defaults to undefined
**limit** | [**number**] | | (optional) defaults to 20
**offset** | [**number**] | | (optional) defaults to 0
**orderBy** | [**&#39;created&#39; | &#39;collection&#39; | &#39;model&#39; | &#39;collection_size&#39; | &#39;updated&#39; | &#39;owner&#39;**]**Array<&#39;created&#39; &#124; &#39;collection&#39; &#124; &#39;model&#39; &#124; &#39;collection_size&#39; &#124; &#39;updated&#39; &#124; &#39;owner&#39; &#124; &#39;11184809&#39;>** | | (optional) defaults to 'collection'
**orderBy** | [**&#39;created&#39; | &#39;collection&#39; | &#39;collection_size&#39; | &#39;updated&#39; | &#39;owner&#39;**]**Array<&#39;created&#39; &#124; &#39;collection&#39; &#124; &#39;collection_size&#39; &#124; &#39;updated&#39; &#124; &#39;owner&#39; &#124; &#39;11184809&#39;>** | | (optional) defaults to 'collection'
**order** | [**&#39;ASC&#39; | &#39;DESC&#39;**]**Array<&#39;ASC&#39; &#124; &#39;DESC&#39; &#124; &#39;11184809&#39;>** | | (optional) defaults to 'ASC'


Expand Down
6 changes: 1 addition & 5 deletions docs/SearchApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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&lt;string&gt;** | 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&lt;Filters&gt;** | 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
Expand All @@ -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)

Expand Down
1 change: 0 additions & 1 deletion models/AppApiRestV2CollectionsEnumsOrderBy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
7 changes: 0 additions & 7 deletions models/CollectionCreateRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export class CollectionCreateRequest {
'collectionScope'?: CollectionScope;
'tags'?: Array<string> | null;
'binaries'?: Array<number> | null;
'modelId': number;

static readonly discriminator: string | undefined = undefined;

Expand Down Expand Up @@ -54,12 +53,6 @@ export class CollectionCreateRequest {
"baseName": "binaries",
"type": "Array<number>",
"format": ""
},
{
"name": "modelId",
"baseName": "model_id",
"type": "number",
"format": ""
} ];

static getAttributeTypeMap() {
Expand Down
10 changes: 0 additions & 10 deletions models/CollectionListItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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",
Expand Down
7 changes: 0 additions & 7 deletions models/CollectionListItemBody.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export class CollectionListItemBody {
'collectionTags': Array<string> | null;
'creation': Date;
'description': string;
'modelName': string;
'officialCollection': boolean;
'teamId': number;
'updatedAt': Date;
Expand Down Expand Up @@ -78,12 +77,6 @@ export class CollectionListItemBody {
"type": "string",
"format": ""
},
{
"name": "modelName",
"baseName": "model_name",
"type": "string",
"format": ""
},
{
"name": "officialCollection",
"baseName": "official_collection",
Expand Down
10 changes: 0 additions & 10 deletions models/CollectionResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ export class CollectionResponse {
*/
'description': string;
/**
* Collection model ID
*/
'modelId': number;
/**
* Collection user ID
*/
'userId': number;
Expand Down Expand Up @@ -73,12 +69,6 @@ export class CollectionResponse {
"type": "string",
"format": ""
},
{
"name": "modelId",
"baseName": "model_id",
"type": "number",
"format": ""
},
{
"name": "userId",
"baseName": "user_id",
Expand Down
20 changes: 0 additions & 20 deletions models/CollectionSearchResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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",
Expand Down
10 changes: 0 additions & 10 deletions models/CreateCollectionInputBody.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string> | null;
Expand Down Expand Up @@ -66,12 +62,6 @@ export class CreateCollectionInputBody {
"type": "string",
"format": ""
},
{
"name": "modelId",
"baseName": "model_id",
"type": "number",
"format": "int64"
},
{
"name": "tags",
"baseName": "tags",
Expand Down
7 changes: 0 additions & 7 deletions models/CreateCollectionOutputBody.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export class CreateCollectionOutputBody {
'collectionScope': string;
'createdAt': Date;
'description': string;
'modelId': number;
'tags'?: Array<string> | null;
'teamId': number;
'updatedAt': Date;
Expand Down Expand Up @@ -66,12 +65,6 @@ export class CreateCollectionOutputBody {
"type": "string",
"format": ""
},
{
"name": "modelId",
"baseName": "model_id",
"type": "number",
"format": "int64"
},
{
"name": "tags",
"baseName": "tags",
Expand Down
7 changes: 0 additions & 7 deletions models/GetCollectionOutputBody.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export class GetCollectionOutputBody {
'createdAt': Date;
'description': string;
'hasNextPage'?: boolean;
'modelId': number;
'pageNumber'?: number;
'pageSize'?: number;
'tags'?: Array<string> | null;
Expand Down Expand Up @@ -75,12 +74,6 @@ export class GetCollectionOutputBody {
"type": "boolean",
"format": ""
},
{
"name": "modelId",
"baseName": "model_id",
"type": "number",
"format": "int64"
},
{
"name": "pageNumber",
"baseName": "page_number",
Expand Down
6 changes: 3 additions & 3 deletions models/ObjectSerializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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';
Expand Down
7 changes: 0 additions & 7 deletions models/PatchCollectionOutputBody.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export class PatchCollectionOutputBody {
'collectionScope': string;
'createdAt': Date;
'description': string;
'modelId': number;
'teamId': number;
'updatedAt': Date;
'userId': number;
Expand Down Expand Up @@ -64,12 +63,6 @@ export class PatchCollectionOutputBody {
"type": "string",
"format": ""
},
{
"name": "modelId",
"baseName": "model_id",
"type": "number",
"format": "int64"
},
{
"name": "teamId",
"baseName": "team_id",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
Loading