We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d7ebbd commit f84e3a7Copy full SHA for f84e3a7
packages/core/storage-js/src/lib/types.ts
@@ -143,10 +143,25 @@ export interface SearchV2Options {
143
sortBy?: SortByV2
144
}
145
146
+export interface SearchV2Object {
147
+ id: string
148
+ key: string
149
+ name: string
150
+ updated_at: string
151
+ created_at: string
152
+ metadata: Record<string, any>
153
+ /**
154
+ * @deprecated
155
+ */
156
+ last_accessed_at: string
157
+}
158
+
159
+export type SearchV2Folder = Omit<SearchV2Object, 'id' | 'metadata' | 'last_accessed_at'>
160
161
export interface SearchV2Result {
162
hasNext: boolean
- folders: { name: string }[]
- objects: FileObject[]
163
+ folders: SearchV2Folder[]
164
+ objects: SearchV2Object[]
165
nextCursor?: string
166
167
0 commit comments