@@ -57,7 +57,6 @@ export class Caches extends BaseModule {
57
57
delete(params : types .DeleteCachedContentParameters ): Promise <types .DeleteCachedContentResponse >;
58
58
get(params : types .GetCachedContentParameters ): Promise <types .CachedContent >;
59
59
// Warning: (ae-forgotten-export) The symbol "types" needs to be exported by the entry point index.d.ts
60
- // Warning: (ae-forgotten-export) The symbol "Pager" needs to be exported by the entry point index.d.ts
61
60
list: (params ? : types .ListCachedContentsParameters ) => Promise <Pager <types .CachedContent >>;
62
61
update(params : types .UpdateCachedContentParameters ): Promise <types .CachedContent >;
63
62
}
@@ -388,6 +387,16 @@ export interface FileData {
388
387
mimeType? : string ;
389
388
}
390
389
390
+ // @public (undocumented)
391
+ export class Files extends BaseModule {
392
+ constructor (apiClient : ApiClient );
393
+ delete(params : types .DeleteFileParameters ): Promise <types .DeleteFileResponse >;
394
+ get(params : types .GetFileParameters ): Promise <types .File >;
395
+ list: (params ? : types .ListFilesParameters ) => Promise <Pager <types .File >>;
396
+ // Warning: (ae-forgotten-export) The symbol "common" needs to be exported by the entry point index.d.ts
397
+ upload(params : common .UploadFileParameters ): Promise <types .File >;
398
+ }
399
+
391
400
// @public (undocumented)
392
401
export enum FileSource {
393
402
// (undocumented)
@@ -719,8 +728,6 @@ export class GoogleGenAI {
719
728
readonly caches: Caches ;
720
729
// (undocumented)
721
730
readonly chats: Chats ;
722
- // Warning: (ae-forgotten-export) The symbol "Files" needs to be exported by the entry point index.d.ts
723
- //
724
731
// (undocumented)
725
732
readonly files: Files ;
726
733
// (undocumented)
@@ -1190,6 +1197,41 @@ export enum Outcome {
1190
1197
OUTCOME_UNSPECIFIED = " OUTCOME_UNSPECIFIED"
1191
1198
}
1192
1199
1200
+ // @public
1201
+ export enum PagedItem {
1202
+ // (undocumented)
1203
+ PAGED_ITEM_BATCH_JOBS = " batchJobs" ,
1204
+ // (undocumented)
1205
+ PAGED_ITEM_CACHED_CONTENTS = " cachedContents" ,
1206
+ // (undocumented)
1207
+ PAGED_ITEM_FILES = " files" ,
1208
+ // (undocumented)
1209
+ PAGED_ITEM_MODELS = " models" ,
1210
+ // (undocumented)
1211
+ PAGED_ITEM_TUNING_JOBS = " tuningJobs"
1212
+ }
1213
+
1214
+ // @public
1215
+ export class Pager <T > implements AsyncIterable <T > {
1216
+ [Symbol .asyncIterator ](): AsyncIterator <T >;
1217
+ constructor (name : PagedItem , request : (params : PagedItemConfig ) => Promise <PagedItemResponse <T >>, response : PagedItemResponse <T >, params : PagedItemConfig );
1218
+ getItem(index : number ): T ;
1219
+ hasNextPage(): boolean ;
1220
+ // (undocumented)
1221
+ protected idxInternal: number ;
1222
+ get name(): PagedItem ;
1223
+ nextPage(): Promise <T []>;
1224
+ get page(): T [];
1225
+ get pageLength(): number ;
1226
+ get pageSize(): number ;
1227
+ get params(): PagedItemConfig ;
1228
+ // Warning: (ae-forgotten-export) The symbol "PagedItemConfig" needs to be exported by the entry point index.d.ts
1229
+ // Warning: (ae-forgotten-export) The symbol "PagedItemResponse" needs to be exported by the entry point index.d.ts
1230
+ //
1231
+ // (undocumented)
1232
+ protected requestInternal: (params : PagedItemConfig ) => Promise <PagedItemResponse <T >>;
1233
+ }
1234
+
1193
1235
// @public
1194
1236
export interface Part {
1195
1237
codeExecutionResult? : CodeExecutionResult ;
0 commit comments