Skip to content
Merged
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
19 changes: 17 additions & 2 deletions packages/core/storage-js/src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,25 @@ export interface SearchV2Options {
sortBy?: SortByV2
}

export interface SearchV2Object {
id: string
key: string
name: string
updated_at: string
created_at: string
metadata: Record<string, any>
/**
* @deprecated
*/
last_accessed_at: string
}

export type SearchV2Folder = Omit<SearchV2Object, 'id' | 'metadata' | 'last_accessed_at'>

export interface SearchV2Result {
hasNext: boolean
folders: { name: string }[]
objects: FileObject[]
folders: SearchV2Folder[]
objects: SearchV2Object[]
nextCursor?: string
}

Expand Down