@pitcher/js-api 1.22.0-alpha.4 → 1.22.0-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/js-api.esm.js +361 -102
  2. package/js-api.esm.js.map +1 -1
  3. package/js-api.umd.min.js +10 -10
  4. package/js-api.umd.min.js.map +1 -1
  5. package/lib/api/canvases/canvases.queries.d.ts +1 -1
  6. package/lib/apps/browser/stores/api.d.ts +53 -53
  7. package/lib/apps/browser/stores/app.d.ts +18 -15
  8. package/lib/apps/browser/stores/upload.d.ts +29 -29
  9. package/lib/apps/canvas-builder/composables/useCanvas.d.ts +607 -621
  10. package/lib/apps/canvas-builder/composables/useCanvasDnd.d.ts +12 -0
  11. package/lib/apps/canvas-builder/composables/useCanvasHistory.d.ts +93 -95
  12. package/lib/apps/canvas-builder/composables/useCanvasPages.d.ts +1 -0
  13. package/lib/apps/canvas-builder/composables/useCanvasSectionOverrides.d.ts +8 -7
  14. package/lib/apps/canvas-builder/composables/useCanvasTheme.d.ts +11 -11
  15. package/lib/apps/canvas-builder/composables/useCanvasVisibility.d.ts +5 -4
  16. package/lib/apps/canvas-builder/composables/useCollapsibles.d.ts +2 -2
  17. package/lib/apps/canvas-builder/composables/useContentSelector.d.ts +9 -9
  18. package/lib/apps/canvas-builder/composables/useRecommendations.d.ts +13 -10
  19. package/lib/apps/canvas-builder/types/canvas.d.ts +4 -3
  20. package/lib/apps/canvas-builder/util/tree.d.ts +1 -0
  21. package/lib/apps/content-selector/stores/app.d.ts +16 -15
  22. package/lib/components/CFileViewer/CFileViewer.use.d.ts +1 -1
  23. package/lib/composables/bulkActions.use.d.ts +4 -4
  24. package/lib/composables/recentFiles.use.d.ts +1 -1
  25. package/lib/composables/useDetailsView.d.ts +1 -1
  26. package/lib/composables/useLocation.d.ts +1 -1
  27. package/lib/composables/useLocationAPI.d.ts +2 -2
  28. package/lib/composables/useLocationManipulation.d.ts +1 -1
  29. package/lib/composables/useWindowEvents.d.ts +1 -1
  30. package/lib/custom-naive-locales/el.d.ts +1 -1
  31. package/lib/sdk/api/HighLevelApi.d.ts +31 -31
  32. package/lib/sdk/api/modules/ui/canvas.ui.d.ts +6 -1
  33. package/lib/sdk/api/modules/ui/index.d.ts +7 -2
  34. package/lib/sdk/api/modules/ui/post-call.ui.d.ts +4 -1
  35. package/lib/sdk/api/modules/ui/types.ui.d.ts +56 -2
  36. package/lib/sdk/api/onlineRestApiHandlers.d.ts +4 -0
  37. package/lib/sdk/interfaces.d.ts +2 -0
  38. package/lib/sdk/main.d.ts +134 -95
  39. package/lib/sdk/utils/httpFetch.d.ts +15 -0
  40. package/lib/theme/light.d.ts +5 -315
  41. package/lib/types/instanceSettings.d.ts +1 -0
  42. package/lib/types/launchDarkly.types.d.ts +1 -1
  43. package/lib/util/network.d.ts +1 -1
  44. package/package.json +1 -1
@@ -11,5 +11,5 @@ export declare const useCanvasesAsInfinity: (params: MaybeRef<GetCanvasesParams>
11
11
  export declare const useFetchCanvases: (params: MaybeRef<GetCanvasesParams>, options?: {
12
12
  enabled?: boolean;
13
13
  }) => import('@tanstack/vue-query').UseQueryReturnType<PaginatedData<Canvas>, unknown>;
14
- export declare const useCanvasById: (id: MaybeRef<Canvas['id']>) => import('@tanstack/vue-query').UseQueryReturnType<Canvas, unknown>;
14
+ export declare const useCanvasById: (id: MaybeRef<Canvas["id"]>) => import('@tanstack/vue-query').UseQueryReturnType<Canvas, unknown>;
15
15
  export {};
@@ -87,8 +87,8 @@ declare const _default: () => {
87
87
  readonly favoritesDeleter: FavoritesDeleter | null;
88
88
  readonly favoritesSetter: FavoritesSetter | null;
89
89
  readonly recentFilesFetcher: RecentFilesFetcher | null;
90
- readonly selectDeviceFile?: SelectDeviceFile | null | undefined;
91
- readonly metadataTemplateFetcher?: MetadataTemplateFetcher | null | undefined;
90
+ readonly selectDeviceFile?: SelectDeviceFile | null;
91
+ readonly metadataTemplateFetcher?: MetadataTemplateFetcher | null;
92
92
  readonly itemsMover: ItemsMover | null;
93
93
  readonly convertingFileIdsTimeout: {
94
94
  readonly ref: () => NodeJS.Timeout;
@@ -100,7 +100,7 @@ declare const _default: () => {
100
100
  } | null;
101
101
  readonly isUpdatingFolderItems: boolean;
102
102
  readonly isFetchingFolderItems: boolean;
103
- readonly fetchingFolderId: string;
103
+ readonly fetchingFolderId: Folder["id"];
104
104
  readonly isFetchingSelectedFile: boolean;
105
105
  readonly isFetchingSelectedFolder: boolean;
106
106
  readonly isFetchingRecentFiles: boolean;
@@ -116,7 +116,7 @@ declare const _default: () => {
116
116
  }[];
117
117
  readonly files: readonly {
118
118
  readonly status: FileStatusEnum;
119
- readonly name?: string | undefined;
119
+ readonly name?: string;
120
120
  readonly id: string;
121
121
  readonly content_type: import('../../../../types/openapi').FileContentTypeEnum;
122
122
  readonly thumbnail_url: string | null;
@@ -124,12 +124,12 @@ declare const _default: () => {
124
124
  readonly created_by: {
125
125
  readonly id: number;
126
126
  readonly name: string;
127
- readonly email?: string | undefined;
127
+ readonly email?: string;
128
128
  };
129
129
  readonly modified_at: string;
130
130
  }[];
131
131
  readonly recent: readonly {
132
- readonly name?: string | undefined;
132
+ readonly name?: string;
133
133
  readonly id: string;
134
134
  readonly content_type: import('../../../../types/openapi').FileContentTypeEnum;
135
135
  readonly thumbnail_url: string | null;
@@ -138,7 +138,7 @@ declare const _default: () => {
138
138
  readonly selectedFile: {
139
139
  readonly id: string;
140
140
  readonly global_id: string;
141
- readonly name?: string | undefined;
141
+ readonly name?: string;
142
142
  readonly type: import('../../../../types/openapi').FileTypeEnum;
143
143
  readonly size: number | null;
144
144
  readonly status: FileStatusEnum;
@@ -149,10 +149,10 @@ declare const _default: () => {
149
149
  readonly content_thumbnails: readonly string[];
150
150
  readonly original_extension: string | null;
151
151
  readonly thumbnail_url: string | null;
152
- readonly download_type?: import('../../../../types/openapi').DownloadTypeEnum | undefined;
152
+ readonly download_type?: import('../../../../types/openapi').DownloadTypeEnum;
153
153
  readonly zip_size: number | null;
154
154
  readonly zip_url: string | null;
155
- readonly access_type?: import('../../../../types/openapi').AccessTypeEnum | undefined;
155
+ readonly access_type?: import('../../../../types/openapi').AccessTypeEnum;
156
156
  readonly role: import('../../../../types/openapi').CollaborationRoleEnum;
157
157
  readonly pspdfkit_server_url: string | null;
158
158
  readonly pspdfkit_auth_payload: {
@@ -166,31 +166,31 @@ declare const _default: () => {
166
166
  } | undefined;
167
167
  readonly tags?: readonly string[] | undefined;
168
168
  readonly published_at: string | null;
169
- readonly expires_at?: string | null | undefined;
169
+ readonly expires_at?: string | null;
170
170
  readonly instance_id: string;
171
- readonly folder_id?: string | undefined;
171
+ readonly folder_id?: string;
172
172
  readonly shared_link: {
173
173
  readonly url: string;
174
- readonly short_url?: string | null | undefined;
174
+ readonly short_url?: string | null;
175
175
  };
176
176
  readonly created_at: string;
177
177
  readonly created_by: {
178
178
  readonly id: number;
179
179
  readonly name: string;
180
- readonly email?: string | undefined;
180
+ readonly email?: string;
181
181
  };
182
182
  readonly modified_at: string;
183
183
  readonly modified_by: {
184
184
  readonly id: number;
185
185
  readonly name: string;
186
- readonly email?: string | undefined;
186
+ readonly email?: string;
187
187
  };
188
188
  } | null;
189
189
  readonly selectedFolder: {
190
190
  readonly id: string;
191
191
  readonly name: string;
192
192
  readonly instance_id: string;
193
- readonly access_type?: import('../../../../types/openapi').AccessTypeEnum | undefined;
193
+ readonly access_type?: import('../../../../types/openapi').AccessTypeEnum;
194
194
  readonly materialized_path: string;
195
195
  readonly depth: number;
196
196
  readonly files: readonly {
@@ -203,7 +203,7 @@ declare const _default: () => {
203
203
  readonly created_by: {
204
204
  readonly id: number;
205
205
  readonly name: string;
206
- readonly email?: string | undefined;
206
+ readonly email?: string;
207
207
  };
208
208
  readonly modified_at: string;
209
209
  }[];
@@ -227,13 +227,13 @@ declare const _default: () => {
227
227
  readonly created_by: {
228
228
  readonly id: number;
229
229
  readonly name: string;
230
- readonly email?: string | undefined;
230
+ readonly email?: string;
231
231
  };
232
232
  readonly modified_at: string;
233
233
  readonly modified_by: {
234
234
  readonly id: number;
235
235
  readonly name: string;
236
- readonly email?: string | undefined;
236
+ readonly email?: string;
237
237
  };
238
238
  } | null;
239
239
  readonly favorites: {
@@ -249,7 +249,7 @@ declare const _default: () => {
249
249
  } | null;
250
250
  readonly page: {
251
251
  readonly id: string;
252
- readonly page_index?: number | undefined;
252
+ readonly page_index?: number;
253
253
  } | null;
254
254
  readonly folder: {
255
255
  readonly id: string;
@@ -259,13 +259,13 @@ declare const _default: () => {
259
259
  readonly created_by: {
260
260
  readonly id: number;
261
261
  readonly name: string;
262
- readonly email?: string | undefined;
262
+ readonly email?: string;
263
263
  };
264
264
  readonly modified_at: string;
265
265
  readonly modified_by: {
266
266
  readonly id: number;
267
267
  readonly name: string;
268
- readonly email?: string | undefined;
268
+ readonly email?: string;
269
269
  };
270
270
  };
271
271
  };
@@ -275,8 +275,8 @@ declare const _default: () => {
275
275
  readonly files_count: number;
276
276
  readonly folders_count: number;
277
277
  }[];
278
- readonly currentFolderName: string;
279
- readonly currentFolderId: string;
278
+ readonly currentFolderName: Awaited<ReturnType<FolderItemsFetcher>>["name"];
279
+ readonly currentFolderId: Awaited<ReturnType<FolderItemsFetcher>>["id"];
280
280
  readonly sectionFieldsDict: {
281
281
  readonly [x: string]: any;
282
282
  };
@@ -285,7 +285,7 @@ declare const _default: () => {
285
285
  getters: {
286
286
  readonly sortedFiles: readonly {
287
287
  readonly status: FileStatusEnum;
288
- readonly name?: string | undefined;
288
+ readonly name?: string;
289
289
  readonly id: string;
290
290
  readonly content_type: import('../../../../types/openapi').FileContentTypeEnum;
291
291
  readonly thumbnail_url: string | null;
@@ -293,7 +293,7 @@ declare const _default: () => {
293
293
  readonly created_by: {
294
294
  readonly id: number;
295
295
  readonly name: string;
296
- readonly email?: string | undefined;
296
+ readonly email?: string;
297
297
  };
298
298
  readonly modified_at: string;
299
299
  }[];
@@ -372,8 +372,8 @@ declare const _default: () => {
372
372
  favoritesDeleter: FavoritesDeleter | null;
373
373
  favoritesSetter: FavoritesSetter | null;
374
374
  recentFilesFetcher: RecentFilesFetcher | null;
375
- selectDeviceFile?: SelectDeviceFile | null | undefined;
376
- metadataTemplateFetcher?: MetadataTemplateFetcher | null | undefined;
375
+ selectDeviceFile?: SelectDeviceFile | null;
376
+ metadataTemplateFetcher?: MetadataTemplateFetcher | null;
377
377
  itemsMover: ItemsMover | null;
378
378
  convertingFileIdsTimeout: {
379
379
  ref: () => NodeJS.Timeout;
@@ -385,7 +385,7 @@ declare const _default: () => {
385
385
  } | null;
386
386
  isUpdatingFolderItems: boolean;
387
387
  isFetchingFolderItems: boolean;
388
- fetchingFolderId: string;
388
+ fetchingFolderId: Folder["id"];
389
389
  isFetchingSelectedFile: boolean;
390
390
  isFetchingSelectedFolder: boolean;
391
391
  isFetchingRecentFiles: boolean;
@@ -401,20 +401,20 @@ declare const _default: () => {
401
401
  }[];
402
402
  files: {
403
403
  readonly status: FileStatusEnum;
404
- name?: string | undefined;
404
+ name?: string;
405
405
  readonly id: string;
406
406
  readonly content_type: import('../../../../types/openapi').FileContentTypeEnum;
407
407
  readonly thumbnail_url: string | null;
408
- tags?: string[] | undefined;
408
+ tags?: Array<string>;
409
409
  readonly created_by: {
410
410
  readonly id: number;
411
411
  readonly name: string;
412
- email?: string | undefined;
412
+ email?: string;
413
413
  };
414
414
  readonly modified_at: string;
415
415
  }[];
416
416
  recent: {
417
- name?: string | undefined;
417
+ name?: string;
418
418
  readonly id: string;
419
419
  readonly content_type: import('../../../../types/openapi').FileContentTypeEnum;
420
420
  readonly thumbnail_url: string | null;
@@ -423,7 +423,7 @@ declare const _default: () => {
423
423
  selectedFile: {
424
424
  readonly id: string;
425
425
  readonly global_id: string;
426
- name?: string | undefined;
426
+ name?: string;
427
427
  readonly type: import('../../../../types/openapi').FileTypeEnum;
428
428
  readonly size: number | null;
429
429
  readonly status: FileStatusEnum;
@@ -431,45 +431,45 @@ declare const _default: () => {
431
431
  readonly content_extension: string | null;
432
432
  readonly content_length: number | null;
433
433
  readonly content_url: string | null;
434
- readonly content_thumbnails: string[];
434
+ readonly content_thumbnails: Array<string>;
435
435
  readonly original_extension: string | null;
436
436
  readonly thumbnail_url: string | null;
437
- download_type?: import('../../../../types/openapi').DownloadTypeEnum | undefined;
437
+ download_type?: import('../../../../types/openapi').DownloadTypeEnum;
438
438
  readonly zip_size: number | null;
439
439
  readonly zip_url: string | null;
440
- access_type?: import('../../../../types/openapi').AccessTypeEnum | undefined;
440
+ access_type?: import('../../../../types/openapi').AccessTypeEnum;
441
441
  readonly role: import('../../../../types/openapi').CollaborationRoleEnum;
442
442
  readonly pspdfkit_server_url: string | null;
443
443
  readonly pspdfkit_auth_payload: Record<string, any> | null;
444
- metadata?: Record<string, any> | undefined;
445
- app_metadata?: Record<string, any> | undefined;
446
- tags?: string[] | undefined;
444
+ metadata?: Record<string, any>;
445
+ app_metadata?: Record<string, any>;
446
+ tags?: Array<string>;
447
447
  readonly published_at: string | null;
448
- expires_at?: string | null | undefined;
448
+ expires_at?: string | null;
449
449
  readonly instance_id: string;
450
- folder_id?: string | undefined;
450
+ folder_id?: string;
451
451
  readonly shared_link: {
452
452
  readonly url: string;
453
- short_url?: string | null | undefined;
453
+ short_url?: string | null;
454
454
  };
455
455
  readonly created_at: string;
456
456
  readonly created_by: {
457
457
  readonly id: number;
458
458
  readonly name: string;
459
- email?: string | undefined;
459
+ email?: string;
460
460
  };
461
461
  readonly modified_at: string;
462
462
  readonly modified_by: {
463
463
  readonly id: number;
464
464
  readonly name: string;
465
- email?: string | undefined;
465
+ email?: string;
466
466
  };
467
467
  } | null;
468
468
  selectedFolder: {
469
469
  readonly id: string;
470
470
  name: string;
471
471
  readonly instance_id: string;
472
- access_type?: import('../../../../types/openapi').AccessTypeEnum | undefined;
472
+ access_type?: import('../../../../types/openapi').AccessTypeEnum;
473
473
  readonly materialized_path: string;
474
474
  readonly depth: number;
475
475
  readonly files: {
@@ -478,16 +478,16 @@ declare const _default: () => {
478
478
  readonly status: FileStatusEnum;
479
479
  readonly content_type: import('../../../../types/openapi').FileContentTypeEnum;
480
480
  readonly thumbnail_url: string;
481
- readonly tags: string[];
481
+ readonly tags: Array<string>;
482
482
  readonly created_by: {
483
483
  readonly id: number;
484
484
  readonly name: string;
485
- email?: string | undefined;
485
+ email?: string;
486
486
  };
487
487
  readonly modified_at: string;
488
488
  }[];
489
489
  readonly files_count: number;
490
- readonly file_thumbnail_urls: string[];
490
+ readonly file_thumbnail_urls: Array<string>;
491
491
  readonly thumbnail_url: string | null;
492
492
  readonly folders: {
493
493
  readonly id: string;
@@ -506,24 +506,24 @@ declare const _default: () => {
506
506
  readonly created_by: {
507
507
  readonly id: number;
508
508
  readonly name: string;
509
- email?: string | undefined;
509
+ email?: string;
510
510
  };
511
511
  readonly modified_at: string;
512
512
  readonly modified_by: {
513
513
  readonly id: number;
514
514
  readonly name: string;
515
- email?: string | undefined;
515
+ email?: string;
516
516
  };
517
517
  } | null;
518
- favorites: Record<string, Favorite>;
518
+ favorites: Record<MiniPage["id"] | File["id"] | Folder["id"], Favorite>;
519
519
  currentFolderPath: {
520
520
  readonly id: string;
521
521
  name: string;
522
522
  readonly files_count: number;
523
523
  readonly folders_count: number;
524
524
  }[];
525
- currentFolderName: string;
526
- currentFolderId: string;
525
+ currentFolderName: Awaited<ReturnType<FolderItemsFetcher>>["name"];
526
+ currentFolderId: Awaited<ReturnType<FolderItemsFetcher>>["id"];
527
527
  sectionFieldsDict: Record<string, any>;
528
528
  searchQuery: string;
529
529
  } & {
@@ -30,6 +30,9 @@ export type RenderableFile = (Favorite & {
30
30
  }) | RecentFile | ViewCompactFileFolder;
31
31
  export type AppCurrentState = 'browse' | 'create-folder' | 'upload-files' | 'update-folder' | 'update-file' | 'batch-move';
32
32
  export type BrowserSectionType = 'all' | 'favorites' | 'recent' | 'trash';
33
+ type SelectedItemId = Folder['id'] | File['id'] | RecentFile['id'] | (Favorite['page'] extends {
34
+ id: any;
35
+ } ? Favorite['page']['id'] : never);
33
36
  type View = 'grid' | 'table';
34
37
  type RecentFileWithFavoriteId = RecentFile & {
35
38
  favoriteId: string;
@@ -37,29 +40,29 @@ type RecentFileWithFavoriteId = RecentFile & {
37
40
  export default function (): {
38
41
  setAppName(appName: AppName): void;
39
42
  resetSelectedItems(): void;
40
- removeSelectedItems(removeIds: string[]): void;
43
+ removeSelectedItems(removeIds: SelectedItemId[]): void;
41
44
  selectAll(): void;
42
45
  toggleSelectAll(value: boolean): void;
43
- toggleItemSelection(item: Partial<Favorite | File | Folder>, { isSelected, disableMultiple }?: {
44
- isSelected?: boolean | undefined;
45
- disableMultiple?: boolean | undefined;
46
+ toggleItemSelection(item: Partial<File | Folder | Favorite>, { isSelected, disableMultiple }?: {
47
+ isSelected?: boolean;
48
+ disableMultiple?: boolean;
46
49
  }): void;
47
- toggleSingleItemSelection(item: Partial<Favorite | File | Folder>): void;
50
+ toggleSingleItemSelection(item: Partial<File | Folder | Favorite>): void;
48
51
  toggleItemFavorite(item: ViewCompactFileFolder & {
49
- favoriteId?: string | undefined;
52
+ favoriteId?: string;
50
53
  }): void;
51
- setSelectedSection(section: BrowserSectionType, folderId?: string | undefined): void;
54
+ setSelectedSection(section: BrowserSectionType, folderId?: string): void;
52
55
  toggleSelectedView(): void;
53
56
  setSearch(search: string): void;
54
- toggleSidebar(isOpen?: boolean | undefined): void;
55
- toggleContentPanel(isOpen?: boolean | undefined): void;
57
+ toggleSidebar(isOpen?: boolean): void;
58
+ toggleContentPanel(isOpen?: boolean): void;
56
59
  selectAndOpenContentPanel(item: ViewCompactFileFolder): void;
57
- setCurrentState(stateName: AppCurrentState, itemId?: string | undefined): void;
60
+ setCurrentState(stateName: AppCurrentState, itemId?: Folder["id"] | File["id"]): void;
58
61
  clearFilters(): void;
59
62
  clearInlineEditingItem(): void;
60
- appName: Ref<"" | AppName>;
63
+ appName: Ref<AppName | "">;
61
64
  currentState: Ref<AppCurrentState>;
62
- selectedItemIds: Ref<string[]>;
65
+ selectedItemIds: Ref<SelectedItemId[]>;
63
66
  selectedSection: Ref<BrowserSectionType>;
64
67
  selectedView: Ref<View>;
65
68
  search: Ref<string>;
@@ -103,9 +106,9 @@ export default function (): {
103
106
  };
104
107
  isSidebarOpen: Ref<boolean>;
105
108
  isContentPanelOpen: Ref<boolean>;
106
- updatingFolderId: Ref<string | null>;
107
- selectedFileId: ComputedRef<string | null>;
108
- selectedFolderId: ComputedRef<string | null>;
109
+ updatingFolderId: Ref<Folder["id"] | null>;
110
+ selectedFileId: ComputedRef<File["id"] | null>;
111
+ selectedFolderId: ComputedRef<Folder["id"] | null>;
109
112
  updatingFolder: ComputedRef<MiniFolder | null>;
110
113
  inlineEditingItem: Ref<{
111
114
  id: string | number;
@@ -18,26 +18,26 @@ export default function (): {
18
18
  path: string;
19
19
  size: number;
20
20
  };
21
- type?: import('../../../../types/openapi').FileTypeEnum | undefined;
22
- metadata?: Record<string, any> | undefined;
23
- name?: string | undefined;
24
- download_type?: import('../../../../types/openapi').DownloadTypeEnum | undefined;
25
- access_type?: AccessTypeEnum | undefined;
26
- app_metadata?: Record<string, any> | undefined;
27
- tags?: string[] | undefined;
28
- expires_at?: string | null | undefined;
29
- folder_id?: string | undefined;
21
+ type?: import('../../../../types/openapi').FileTypeEnum;
22
+ metadata?: Record<string, any>;
23
+ name?: string;
24
+ download_type?: import('../../../../types/openapi').DownloadTypeEnum;
25
+ access_type?: AccessTypeEnum;
26
+ app_metadata?: Record<string, any>;
27
+ tags?: Array<string>;
28
+ expires_at?: string | null;
29
+ folder_id?: string;
30
30
  thumbnail?: {
31
31
  readonly size: number;
32
32
  readonly type: string;
33
33
  arrayBuffer: () => Promise<ArrayBuffer>;
34
- slice: (start?: number | undefined, end?: number | undefined, contentType?: string | undefined) => Blob;
34
+ slice: (start?: number, end?: number, contentType?: string) => Blob;
35
35
  stream: () => ReadableStream<Uint8Array>;
36
36
  text: () => Promise<string>;
37
37
  } | undefined;
38
- is_asset?: boolean | undefined;
39
- content_upload_id?: string | undefined;
40
- thumbnail_upload_id?: string | undefined;
38
+ is_asset?: boolean;
39
+ content_upload_id?: string;
40
+ thumbnail_upload_id?: string;
41
41
  } | {
42
42
  id: string;
43
43
  isSupported: boolean;
@@ -46,34 +46,34 @@ export default function (): {
46
46
  error: string | null;
47
47
  cancelErrorMessage: string;
48
48
  genericErrorMessage: string;
49
- type?: import('../../../../types/openapi').FileTypeEnum | undefined;
50
- metadata?: Record<string, any> | undefined;
49
+ type?: import('../../../../types/openapi').FileTypeEnum;
50
+ metadata?: Record<string, any>;
51
51
  content?: {
52
52
  readonly size: number;
53
53
  readonly type: string;
54
54
  arrayBuffer: () => Promise<ArrayBuffer>;
55
- slice: (start?: number | undefined, end?: number | undefined, contentType?: string | undefined) => Blob;
55
+ slice: (start?: number, end?: number, contentType?: string) => Blob;
56
56
  stream: () => ReadableStream<Uint8Array>;
57
57
  text: () => Promise<string>;
58
58
  } | undefined;
59
- name?: string | undefined;
60
- download_type?: import('../../../../types/openapi').DownloadTypeEnum | undefined;
61
- access_type?: AccessTypeEnum | undefined;
62
- app_metadata?: Record<string, any> | undefined;
63
- tags?: string[] | undefined;
64
- expires_at?: string | null | undefined;
65
- folder_id?: string | undefined;
59
+ name?: string;
60
+ download_type?: import('../../../../types/openapi').DownloadTypeEnum;
61
+ access_type?: AccessTypeEnum;
62
+ app_metadata?: Record<string, any>;
63
+ tags?: Array<string>;
64
+ expires_at?: string | null;
65
+ folder_id?: string;
66
66
  thumbnail?: {
67
67
  readonly size: number;
68
68
  readonly type: string;
69
69
  arrayBuffer: () => Promise<ArrayBuffer>;
70
- slice: (start?: number | undefined, end?: number | undefined, contentType?: string | undefined) => Blob;
70
+ slice: (start?: number, end?: number, contentType?: string) => Blob;
71
71
  stream: () => ReadableStream<Uint8Array>;
72
72
  text: () => Promise<string>;
73
73
  } | undefined;
74
- is_asset?: boolean | undefined;
75
- content_upload_id?: string | undefined;
76
- thumbnail_upload_id?: string | undefined;
74
+ is_asset?: boolean;
75
+ content_upload_id?: string;
76
+ thumbnail_upload_id?: string;
77
77
  })[]>;
78
78
  isQueueBusy: import('vue').ComputedRef<boolean>;
79
79
  uploadSelectedFiles: import('vue').Ref<{
@@ -83,7 +83,7 @@ export default function (): {
83
83
  readonly size: number;
84
84
  readonly type: string;
85
85
  arrayBuffer: () => Promise<ArrayBuffer>;
86
- slice: (start?: number | undefined, end?: number | undefined, contentType?: string | undefined) => Blob;
86
+ slice: (start?: number, end?: number, contentType?: string) => Blob;
87
87
  stream: () => ReadableStream<Uint8Array>;
88
88
  text: () => Promise<string>;
89
89
  }[] | {
@@ -95,7 +95,7 @@ export default function (): {
95
95
  };
96
96
  actions: {
97
97
  addUploads: (uploads: Upload[], onUploadCompleteCb?: any) => void;
98
- removeUpload: (id: string) => void;
98
+ removeUpload: (id: Upload["id"]) => void;
99
99
  clearCompletedAndFailed: () => void;
100
100
  };
101
101
  };