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.121.0
v3.122.1
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', 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' | 'model' | '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'", ""));
requestContext.setQueryParam("order_by", ObjectSerializer.serialize(orderBy, "'created' | 'collection' | 'model' | 'collection_size' | 'updated' | 'owner'", ""));
}

// Query Params
Expand Down
2 changes: 1 addition & 1 deletion docs/CollectionsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,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;**]**Array<&#39;created&#39; &#124; &#39;collection&#39; &#124; &#39;model&#39; &#124; &#39;collection_size&#39; &#124; &#39;updated&#39; &#124; &#39;11184809&#39;>** | | (optional) defaults to 'collection'
**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'
**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
7 changes: 7 additions & 0 deletions models/CollectionListItemBody.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export class CollectionListItemBody {
'modelName': string;
'officialCollection': boolean;
'teamId': number;
'updatedAt': Date;

static readonly discriminator: string | undefined = undefined;

Expand Down Expand Up @@ -94,6 +95,12 @@ export class CollectionListItemBody {
"baseName": "team_id",
"type": "number",
"format": "int64"
},
{
"name": "updatedAt",
"baseName": "updated_at",
"type": "Date",
"format": "date-time"
} ];

static getAttributeTypeMap() {
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.121.0",
"version": "3.122.1",
"description": "TypeScript SDK for the RevEng.AI API",
"author": "RevEng.AI",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions types/ObjectParamAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2975,10 +2975,10 @@ export interface CollectionsApiV3ListCollectionsRequest {
/**
*
* Defaults to: &#39;collection&#39;
* @type &#39;created&#39; | &#39;collection&#39; | &#39;model&#39; | &#39;collection_size&#39; | &#39;updated&#39;
* @type &#39;created&#39; | &#39;collection&#39; | &#39;model&#39; | &#39;collection_size&#39; | &#39;updated&#39; | &#39;owner&#39;
* @memberof CollectionsApiv3ListCollections
*/
orderBy?: 'created' | 'collection' | 'model' | 'collection_size' | 'updated'
orderBy?: 'created' | 'collection' | 'model' | 'collection_size' | 'updated' | 'owner'
/**
*
* Defaults to: &#39;ASC&#39;
Expand Down
4 changes: 2 additions & 2 deletions types/ObservableAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', order?: 'ASC' | 'DESC', _options?: ConfigurationOptions): Observable<HttpInfo<ListCollectionsOutputBody>> {
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<HttpInfo<ListCollectionsOutputBody>> {
const _config = mergeConfiguration(this.configuration, _options);

const requestContextPromise = this.requestFactory.v3ListCollections(searchTerm, filters, limit, offset, orderBy, order, _config);
Expand Down Expand Up @@ -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', order?: 'ASC' | 'DESC', _options?: ConfigurationOptions): Observable<ListCollectionsOutputBody> {
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<ListCollectionsOutputBody> {
return this.v3ListCollectionsWithHttpInfo(searchTerm, filters, limit, offset, orderBy, order, _options).pipe(map((apiResponse: HttpInfo<ListCollectionsOutputBody>) => apiResponse.data));
}

Expand Down
4 changes: 2 additions & 2 deletions types/PromiseAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', order?: 'ASC' | 'DESC', _options?: PromiseConfigurationOptions): Promise<HttpInfo<ListCollectionsOutputBody>> {
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<HttpInfo<ListCollectionsOutputBody>> {
const observableOptions = wrapOptions(_options);
const result = this.api.v3ListCollectionsWithHttpInfo(searchTerm, filters, limit, offset, orderBy, order, observableOptions);
return result.toPromise();
Expand All @@ -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', order?: 'ASC' | 'DESC', _options?: PromiseConfigurationOptions): Promise<ListCollectionsOutputBody> {
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<ListCollectionsOutputBody> {
const observableOptions = wrapOptions(_options);
const result = this.api.v3ListCollections(searchTerm, filters, limit, offset, orderBy, order, observableOptions);
return result.toPromise();
Expand Down